Dough Git

commit

Migrate to Deno and SvelteKit

commit
97b3253f4f8a3e6ea3718b47252529bc1a9596ad
author
Clove Twilight <[email protected]>
date
2026-11-18 13:20
Move the API to Deno and replace the Next.js web tier with SvelteKit,
with every dependency and task in the root deno.json.

- api/: Hono on Deno, with bun:sqlite replaced by a node:sqlite adapter
  that keeps the query().get/all/run shape, so no call site changed
- api/shared/: the former packages/shared
- web/: SvelteKit on adapter-node; server actions become remote
  commands, security headers move to hooks.server.ts
- deploy/: runit services for the API and web tier
- Tests run under deno test; web tests now guard the Svelte sources
- Docker images, compose file and the Bun lockfile are removed

Co-Authored-By: Sandrone <[email protected]>

diff --git a/.DS_Store b/.DS_Store
deleted file mode 100644
index cbaf5e6..0000000
Binary files a/.DS_Store and /dev/null differ
diff --git a/.dockerignore b/.dockerignore
deleted file mode 100644
index b6e232e..0000000
--- a/.dockerignore
+++ /dev/null
@@ -1,28 +0,0 @@
-# Build context hygiene: everything below either does not belong in an image or
-# would silently bake a developer's machine into one.
-
-node_modules
-**/node_modules
-.next
-.next-prod
-**/.next
-**/.next-prod
-
-# The database and its WAL sidecars. A container gets a volume, never a copy of
-# somebody's development data.
-data
-**/data
-*.db
-*.db-shm
-*.db-wal
-
-# Secrets. The image must be built without them and given them at run time.
-.env
-.env.*
-!.env.example
-
-.git
-.github
-*.log
-.DS_Store
-tool-results
diff --git a/.env.example b/.env.example
index 4357026..5632e36 100644
--- a/.env.example
+++ b/.env.example
@@ -35,7 +35,7 @@ API_PORT=3001
 # and the browser never calls it. Containers set 0.0.0.0 and do NOT publish the
 # port — the network namespace provides the isolation instead.
 API_HOST=127.0.0.1
-# Where the Next.js tier reaches the API. Internal; never public.
+# Where the web tier reaches the API. Internal; never public.
 INTERNAL_API_ORIGIN=http://127.0.0.1:3001
 
 # --- database ------------------------------------------------------------
diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml
deleted file mode 100644
index e50b6f1..0000000
--- a/.github/workflows/images.yml
+++ /dev/null
@@ -1,92 +0,0 @@
-name: Publish images
-
-# Builds both images and pushes them to Docker Hub, so a server pulls rather
-# than compiles. Building on the box costs about seventy seconds of CPU it does
-# not have spare, and means the running code was compiled somewhere unversioned.
-#
-# Images are built for amd64 and arm64: most VPS hosts are amd64, Apple Silicon
-# is arm64, and one manifest serves both.
-#
-# Requires one repository secret, DOCKERHUB_TOKEN: an access token from
-# Docker Hub → Account settings → Personal access tokens, with Read & Write
-# scope. An access token, never the account password — a token is scoped and can
-# be revoked on its own.
-
-on:
-  push:
-    branches: [main]
-    tags: ["v*"]
-  workflow_dispatch:
-
-env:
-  # The Docker Hub account. Not a secret: it is half of every published image
-  # name, and docker-compose.yml names it too.
-  DOCKERHUB_USER: doughmination
-
-jobs:
-  build:
-    runs-on: ubuntu-latest
-    permissions:
-      contents: read
-
-    strategy:
-      fail-fast: false
-      matrix:
-        include:
-          - name: api
-            dockerfile: docker/api.Dockerfile
-          - name: web
-            dockerfile: docker/web.Dockerfile
-
-    steps:
-      - uses: actions/checkout@v4
-
-      - uses: docker/setup-qemu-action@v3
-      - uses: docker/setup-buildx-action@v3
-
-      - name: Sign in to Docker Hub
-        uses: docker/login-action@v3
-        with:
-          username: ${{ env.DOCKERHUB_USER }}
-          password: ${{ secrets.DOCKERHUB_TOKEN }}
-
-      - name: Work out tags
-        id: meta
-        uses: docker/metadata-action@v5
-        with:
-          images: ${{ env.DOCKERHUB_USER }}/pkviewer-${{ matrix.name }}
-          tags: |
-            # The two images build in parallel and finish minutes apart, so
-            # there is a window where `docker compose pull` gets a new API and
-            # an old web tier. If a deploy ever looks half-applied — a page
-            # 404ing while its API route answers — check that both images carry
-            # the same `sha-` tag before looking anywhere else, and pull again.
-            type=raw,value=latest,enable={{is_default_branch}}
-            type=semver,pattern={{version}}
-            type=semver,pattern={{major}}.{{minor}}
-            type=sha,format=short
-
-      - name: Build and push
-        uses: docker/build-push-action@v6
-        with:
-          # The repository root: both images depend on the shared workspace.
-          context: .
-          file: ${{ matrix.dockerfile }}
-          platforms: linux/amd64,linux/arm64
-          push: true
-          tags: ${{ steps.meta.outputs.tags }}
-          labels: ${{ steps.meta.outputs.labels }}
-          # Layer cache, so a source-only change does not reinstall dependencies
-          # on every run.
-          cache-from: type=gha
-          cache-to: type=gha,mode=max
-          # Docker Hub renders a plain manifest list more predictably than one
-          # carrying provenance attestations.
-          provenance: false
-
-      - name: Report what was published
-        run: |
-          echo "### Published" >> "$GITHUB_STEP_SUMMARY"
-          echo '```' >> "$GITHUB_STEP_SUMMARY"
-          echo "${{ steps.meta.outputs.tags }}" >> "$GITHUB_STEP_SUMMARY"
-          echo '```' >> "$GITHUB_STEP_SUMMARY"
diff --git a/.gitignore b/.gitignore
index 83d79cd..96c1563 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,9 @@ data/
 .env
 .env.*
 !.env.example
+
+# Deno and SvelteKit build output
+web/build/
+web/.svelte-kit/
+.DS_Store
+*.tsbuildinfo
diff --git a/README.md b/README.md
index 21ddada..f060c03 100644
--- a/README.md
+++ b/README.md
@@ -19,14 +19,15 @@ deliberately small.
 ## What is in here
 
 ```
-apps/api        Hono on Bun. Owns SQLite, sessions, the PluralKit client,
+api/            Hono on Deno. Owns SQLite, sessions, the PluralKit client,
                 Discord OAuth, and all business logic. The only process that
                 opens the database.
-apps/web        Next.js on Node. Renders pages and the management UI. Has no
+api/shared/     Types, the theme vocabulary, and validation used by both tiers.
+web/            SvelteKit on Deno. Renders pages and the management UI. Has no
                 database driver and no PluralKit client — it reaches the API
                 over HTTP.
-packages/shared Types, the theme vocabulary, and validation shared by both.
-scripts/        Dev runner and the hardcoded-origin guard.
+deploy/         runit services for the API and the web tier.
+deno.json       Every dependency and every task, for the whole repository.
 ```
 
 The split is deliberate: SQLite permits one writer at a time, and confining all
@@ -43,14 +44,16 @@ Everything a person visits lives on a single user-facing origin:
 | `/login` | Discord sign-in |
 | `/auth/...` | OAuth callbacks, proxied to the API by the web tier |
 | `/manage/...` | authenticated management UI |
+| `/admin/...` | platform administration |
 | `/s/...` | public system and member pages |
 
-The API stays internal. The browser never talks to it directly: the web tier
-proxies what needs proxying, which is what keeps `INTERNAL_API_ORIGIN` internal.
+The API stays internal. The browser never talks to it directly: page loads and
+SvelteKit remote commands run on the web tier's server and forward the session
+cookie, which is what keeps `INTERNAL_API_ORIGIN` internal.
 
-The session cookie keeps the `__Host-` prefix. It no longer separates two
-pkviewer hosts, but it still forbids a `Domain` attribute — so the cookie is
-pinned to exactly this host and no sibling subdomain can set or overwrite it.
+The session cookie keeps the `__Host-` prefix. It forbids a `Domain` attribute,
+so the cookie is pinned to exactly this host and no sibling subdomain can set or
+overwrite it.
 
 In development the origin is `http://system.localhost:3000`, which Chrome and
 Firefox resolve to 127.0.0.1 with no setup. **Safari does not resolve
@@ -58,20 +61,20 @@ Firefox resolve to 127.0.0.1 with no setup. **Safari does not resolve
 
 ## Prerequisites
 
-- [Bun](https://bun.sh) 1.4 or newer — runs the API, the tests, and the tooling
-- Node 20 or newer — Next.js runs on Node, not Bun
-- No database server. SQLite is a file.
+- [Deno](https://deno.com) 2.5 or newer. It runs both tiers, the tests and the
+  tooling. There is no Node, npm or Bun step.
+- No database server. SQLite is a file, opened through Deno's built-in
+  `node:sqlite`.
 
 ## Getting started
 
 ```bash
-bun install
+deno install
 cp .env.example .env      # then read the comments in it
-bun run dev
+deno task dev
 ```
 
-That is the supported entry point. It starts both tiers with prefixed output and
-shuts both down together, and prints the URLs:
+That starts both tiers together:
 
 ```
 site   http://system.localhost:3000   /, /login, /manage, /s/...
@@ -81,10 +84,12 @@ api    http://127.0.0.1:3001/health
 Migrations run automatically on API start, so a fresh checkout needs no bootstrap
 step.
 
-> **The API's environment comes from the repository root.** `bun run dev` loads
-> `.env` from the root and passes it to both tiers. Running the API directly from
-> `apps/api` will *not* find it and will fail at startup naming the missing
-> variable. Use `bun run dev`.
+> **Every task reads `.env` from the repository root**, through `--env-file`.
+> Run tasks from the root (`deno task ...`) rather than from inside `api/` or
+> `web/`.
+
+The database defaults to `api/data/pkviewer.db`, because `DATABASE_PATH` is
+relative and the API runs from `api/`.
 
 Signing in needs Discord OAuth credentials; see `.env.example`, which documents
 every variable. Everything else — public pages, the whole rendering path — works
@@ -94,13 +99,17 @@ without them, and the API says so at startup rather than refusing to run.
 
 | Command | What it does |
 |---|---|
-| `bun run dev` | Both tiers, prefixed output, shared shutdown |
-| `bun test` | Full test suite |
-| `bun run typecheck` | All three workspaces |
-| `bun run build` | Production build of the web tier. Writes to `.next-prod`, so it is safe to run while `bun run dev` is up. |
-| `bun run migrate` | Apply migrations without starting the server |
-| `bun run check` | Origin guard, typecheck and tests — run before pushing |
-| `bun run check:domain` | Fails if a deployment hostname is hardcoded |
+| `deno task dev` | Both tiers, with the API on `--watch` and Vite's dev server |
+| `deno task test` | Full test suite, API and web |
+| `deno task build` | Production build of the web tier into `web/build` |
+| `deno task start-api` | Run the API for production |
+| `deno task start-web` | Serve `web/build` for production |
+| `deno task migrate` | Apply migrations without starting the server |
+| `deno task check` | Origin guard, both type checks and tests — run before pushing |
+| `deno task check:domain` | Fails if a deployment hostname is hardcoded |
+| `deno task admin:list` | List platform administrators |
+| `deno task admin:grant <discord-id>` | Make an account an administrator |
+| `deno task admin:revoke <discord-id>` | Remove an administrator |
 
 ## Local test data
 
@@ -108,7 +117,7 @@ Claiming a system needs Discord OAuth. To poke at the management UI without it,
 seed a local account and session:
 
 ```bash
-bun scripts/seed-dev.ts <system-id>     # any publicly visible PluralKit system
+deno task seed <system-id>     # any publicly visible PluralKit system
 ```
 
 It prints a session token and the cookie line to paste into the browser console.
@@ -121,24 +130,31 @@ It is a development script and refuses to run when `NODE_ENV=production`.
 ## Testing
 
 ```bash
-bun test                       # everything
-bun test apps/api/test/slugs   # one file
+deno task test                                  # everything
+deno test -A api/test/slugs.test.ts             # one file
 ```
 
 Tests use in-memory SQLite and a stubbed PluralKit, so they need no network and
-no local database.
+no local database. The web tests read the source directly to guard things no
+request-level test sees: the shape of the content security policy, badges staying
+out of a theme's reach, and the management stylesheet's cascade.
+
+## Deploying
 
-## Running with Docker
+Production runs as two [runit](http://smarden.org/runit/) services, `deploy/api`
+and `deploy/web`, each with its own `svlogd` logger under
+`/var/log/pkviewer/`. Shared settings — the checkout path, ports, and the user
+to run as — live in `deploy/env.sh`. Secrets stay in `.env`.
 
 ```bash
-cp .env.example .env      # fill in real values
-docker compose pull && docker compose up -d
+deno install
+deno task build
+# link deploy/api and deploy/web into your runit service directory
 ```
 
-Two containers: `api` (Bun, owns SQLite) and `web` (Node, renders and proxies).
-The API port is never published — only the web tier is reachable, so put a TLS
-proxy or a tunnel in front. `docker-compose.yml` is commented with the reasoning
-for each choice.
+The API listens on loopback only. Only the web tier should be reachable, so put
+a TLS proxy or a tunnel in front of it. The web tier treats requests as `https`
+and trusts the `Host` header, which a tunnel such as Cloudflare Tunnel preserves.
 
 ## Documentation
 
@@ -147,9 +163,9 @@ application:** [docs.doughmination.gay](https://docs.doughmination.gay/projects/
 It also carries the support links — Discord, Matrix, and the repository.
 
 The reasoning for anything structural lives in the code, next to what it
-constrains: the migrations explain the schema, `docker-compose.yml` explains the
-deployment shape, and the tests state the invariant each one guards. Start with
-the file you are changing.
+constrains: the migrations explain the schema, `web/src/hooks.server.ts` explains
+the security headers, and the tests state the invariant each one guards. Start
+with the file you are changing.
 
 ## Third-party notices
 
@@ -157,10 +173,9 @@ pkviewer reads the public [PluralKit API](https://pluralkit.me/api/) and sends a
 consistent `User-Agent` identifying itself, as PluralKit asks. It never asks for
 a PluralKit token in order to claim a system.
 
-Built with [Hono](https://hono.dev), [Next.js](https://nextjs.org),
-[React](https://react.dev), [Bun](https://bun.sh), [Zod](https://zod.dev) and
-[Bootstrap Icons](https://icons.getbootstrap.com) via
-[react-bootstrap-icons](https://github.com/ricardo-ch/react-bootstrap-icons).
+Built with [Deno](https://deno.com), [Hono](https://hono.dev),
+[SvelteKit](https://svelte.dev/docs/kit), [Svelte](https://svelte.dev),
+[Zod](https://zod.dev) and [Bootstrap Icons](https://icons.getbootstrap.com).
 Fonts are served from [Google Fonts](https://fonts.google.com).
 
 ## Licence
diff --git a/apps/api/scripts/admin.ts b/api/scripts/admin.ts
similarity index 88%
rename from apps/api/scripts/admin.ts
rename to api/scripts/admin.ts
index 6f1baf4..43b58a4 100644
--- a/apps/api/scripts/admin.ts
+++ b/api/scripts/admin.ts
@@ -1,9 +1,9 @@
 /**
  * Grants, revokes and lists platform administrators.
  *
- *   bun run admin:list
- *   bun run admin:grant <discord-user-id>
- *   bun run admin:revoke <discord-user-id>
+ *   deno task admin:list
+ *   deno task admin:grant <discord-user-id>
+ *   deno task admin:revoke <discord-user-id>
  *
  * An operator action rather than an HTTP route, because the first admin has
  * nobody to authorise it — and rather than an environment variable, because a
@@ -14,6 +14,7 @@
  * The account must already exist: sign in with Discord once first.
  */
 
+import process from "node:process";
 import { existsSync } from "node:fs";
 import { resolve } from "node:path";
 import { grantAdmin, isAdmin, listAdmins, revokeAdmin } from "../src/admin/index.ts";
@@ -70,7 +71,7 @@ switch (action) {
     console.log(`database: ${databasePath}`);
     const admins = listAdmins(db);
     if (admins.length === 0) {
-      console.log("No administrators. Grant one with: bun run admin:grant <discord-user-id>");
+      console.log("No administrators. Grant one with: deno task admin:grant <discord-user-id>");
       break;
     }
     for (const a of admins) {
@@ -81,7 +82,7 @@ switch (action) {
 
   case "grant": {
     if (!discordId) {
-      console.error("usage: bun run admin:grant <discord-user-id>");
+      console.error("usage: deno task admin:grant <discord-user-id>");
       process.exit(2);
     }
     const accountId = accountFor(discordId);
@@ -99,7 +100,7 @@ switch (action) {
 
   case "revoke": {
     if (!discordId) {
-      console.error("usage: bun run admin:revoke <discord-user-id>");
+      console.error("usage: deno task admin:revoke <discord-user-id>");
       process.exit(2);
     }
     const accountId = accountFor(discordId);
@@ -113,6 +114,6 @@ switch (action) {
   }
 
   default:
-    console.error("usage: bun run admin:(list|grant|revoke) [discord-user-id]");
+    console.error("usage: deno task admin:(list|grant|revoke) [discord-user-id]");
     process.exit(2);
 }
diff --git a/scripts/check-no-hardcoded-origin.sh b/api/scripts/check-no-hardcoded-origin.sh
similarity index 94%
rename from scripts/check-no-hardcoded-origin.sh
rename to api/scripts/check-no-hardcoded-origin.sh
index 61a6857..6600730 100755
--- a/scripts/check-no-hardcoded-origin.sh
+++ b/api/scripts/check-no-hardcoded-origin.sh
@@ -6,7 +6,7 @@
 # does not survive months of commits; this check does. Run it in CI.
 set -uo pipefail
 
-cd "$(dirname "$0")/.." || exit 1
+cd "$(dirname "$0")/../.." || exit 1
 
 # The hostname pkviewer itself is served from. That is the one that must stay
 # configuration: moving pkviewer to another domain has to be an env change, not
@@ -24,7 +24,7 @@ cd "$(dirname "$0")/.." || exit 1
 PATTERN='pkviewer\.xyz'
 
 # Config and docs are where a deployment origin legitimately appears.
-ALLOWED='^(\./)?(\.env(\.example)?|scripts/check-no-hardcoded-origin\.sh|docs/|README\.md)'
+ALLOWED='^(\./)?(\.env(\.example)?|api/scripts/check-no-hardcoded-origin\.sh|docs/|README\.md)'
 
 files=""
 if command -v git >/dev/null 2>&1 && [ -n "$(git ls-files 2>/dev/null)" ]; then
diff --git a/scripts/seed-dev.ts b/api/scripts/seed-dev.ts
similarity index 89%
rename from scripts/seed-dev.ts
rename to api/scripts/seed-dev.ts
index 5f7b583..2b1079e 100755
--- a/scripts/seed-dev.ts
+++ b/api/scripts/seed-dev.ts
@@ -1,4 +1,4 @@
-#!/usr/bin/env bun
+#!/usr/bin/env -S deno run --allow-net --allow-env --allow-read --allow-write
 /**
  * Seeds a local development account, session and claimed system.
  *
@@ -21,7 +21,9 @@
  */
 
 import { createHash, randomBytes, randomUUID } from "node:crypto";
-import { Database } from "bun:sqlite";
+import process from "node:process";
+import { existsSync } from "node:fs";
+import { Db } from "../src/db/index.ts";
 
 if (process.env["NODE_ENV"] === "production") {
   console.error("seed-dev: refusing to run with NODE_ENV=production.");
@@ -34,8 +36,8 @@ if (!hid) {
     [
       "seed-dev: which PluralKit system should be seeded?",
       "",
-      "  bun scripts/seed-dev.ts <system-id>",
-      "  SEED_HID=<system-id> bun scripts/seed-dev.ts",
+      "  deno task --cwd api seed <system-id>",
+      "  SEED_HID=<system-id> deno task --cwd api seed",
       "",
       "Use any system whose information is public — your own is easiest.",
       "The id is the 5-6 character one PluralKit shows, e.g. from `pk;system`.",
@@ -44,7 +46,7 @@ if (!hid) {
   process.exit(1);
 }
 
-const databasePath = process.env["DATABASE_PATH"] ?? "./apps/api/data/pkviewer.db";
+const databasePath = process.env["DATABASE_PATH"] ?? "./data/pkviewer.db";
 const userAgent = `pkviewer/dev-seed (+${process.env["PK_USER_AGENT_CONTACT"] ?? "https://github.com/OWNER/pkviewer"})`;
 
 const response = await fetch(`https://api.pluralkit.me/v2/systems/${encodeURIComponent(hid)}`, {
@@ -59,23 +61,21 @@ if (!response.ok) {
 }
 const pkSystem = (await response.json()) as { id: string; uuid: string; name: string | null };
 
-let db: Database;
-try {
-  db = new Database(databasePath);
-} catch {
+if (!existsSync(databasePath)) {
   console.error(
-    `seed-dev: could not open ${databasePath}. Start the app once (bun run dev) so ` +
+    `seed-dev: could not open ${databasePath}. Start the app once (deno task dev) so ` +
       "migrations create it, or set DATABASE_PATH.",
   );
   process.exit(1);
 }
+const db = new Db(databasePath);
 db.exec("PRAGMA foreign_keys = ON");
 
 const tableExists = db
   .query("SELECT name FROM sqlite_master WHERE type='table' AND name='accounts'")
   .get();
 if (!tableExists) {
-  console.error("seed-dev: the database has no schema yet. Run `bun run migrate` first.");
+  console.error("seed-dev: the database has no schema yet. Run `deno task migrate` first.");
   process.exit(1);
 }
 
diff --git a/packages/shared/src/css/sanitize.ts b/api/shared/css/sanitize.ts
similarity index 100%
rename from packages/shared/src/css/sanitize.ts
rename to api/shared/css/sanitize.ts
diff --git a/packages/shared/src/index.ts b/api/shared/index.ts
similarity index 100%
rename from packages/shared/src/index.ts
rename to api/shared/index.ts
diff --git a/packages/shared/src/recognition.ts b/api/shared/recognition.ts
similarity index 100%
rename from packages/shared/src/recognition.ts
rename to api/shared/recognition.ts
diff --git a/packages/shared/src/social.ts b/api/shared/social.ts
similarity index 100%
rename from packages/shared/src/social.ts
rename to api/shared/social.ts
diff --git a/packages/shared/src/theme/index.ts b/api/shared/theme/index.ts
similarity index 100%
rename from packages/shared/src/theme/index.ts
rename to api/shared/theme/index.ts
diff --git a/packages/shared/src/theme/presets.ts b/api/shared/theme/presets.ts
similarity index 100%
rename from packages/shared/src/theme/presets.ts
rename to api/shared/theme/presets.ts
diff --git a/packages/shared/src/theme/resolve.ts b/api/shared/theme/resolve.ts
similarity index 100%
rename from packages/shared/src/theme/resolve.ts
rename to api/shared/theme/resolve.ts
diff --git a/packages/shared/src/theme/validate.ts b/api/shared/theme/validate.ts
similarity index 100%
rename from packages/shared/src/theme/validate.ts
rename to api/shared/theme/validate.ts
diff --git a/packages/shared/src/theme/vocabulary.ts b/api/shared/theme/vocabulary.ts
similarity index 100%
rename from packages/shared/src/theme/vocabulary.ts
rename to api/shared/theme/vocabulary.ts
diff --git a/apps/api/src/admin/index.ts b/api/src/admin/index.ts
similarity index 99%
rename from apps/api/src/admin/index.ts
rename to api/src/admin/index.ts
index 65a0190..734fa5a 100644
--- a/apps/api/src/admin/index.ts
+++ b/api/src/admin/index.ts
@@ -52,7 +52,7 @@ export function isAdmin(db: Db, accountId: string): boolean {
  * Grants admin. Deliberately not reachable over HTTP.
  *
  * The first admin has to come from outside the application — there is nobody to
- * authorise it — so it is an operator action (`bun run admin:grant`) rather than
+ * authorise it — so it is an operator action (`deno task admin:grant`) rather than
  * an environment variable that would silently make anyone holding a Discord id
  * an administrator of a running deployment.
  */
diff --git a/apps/api/src/auth/crypto.ts b/api/src/auth/crypto.ts
similarity index 98%
rename from apps/api/src/auth/crypto.ts
rename to api/src/auth/crypto.ts
index 0f63928..cadc0e5 100644
--- a/apps/api/src/auth/crypto.ts
+++ b/api/src/auth/crypto.ts
@@ -1,3 +1,4 @@
+import { Buffer } from "node:buffer";
 import { createHash, createHmac, randomBytes, timingSafeEqual } from "node:crypto";
 
 /** URL-safe base64 with no padding. */
diff --git a/apps/api/src/auth/discord.ts b/api/src/auth/discord.ts
similarity index 100%
rename from apps/api/src/auth/discord.ts
rename to api/src/auth/discord.ts
diff --git a/apps/api/src/auth/sessions.ts b/api/src/auth/sessions.ts
similarity index 100%
rename from apps/api/src/auth/sessions.ts
rename to api/src/auth/sessions.ts
diff --git a/apps/api/src/claims/index.ts b/api/src/claims/index.ts
similarity index 100%
rename from apps/api/src/claims/index.ts
rename to api/src/claims/index.ts
diff --git a/apps/api/src/config/index.ts b/api/src/config/index.ts
similarity index 99%
rename from apps/api/src/config/index.ts
rename to api/src/config/index.ts
index 27f7d9c..654cb5b 100644
--- a/apps/api/src/config/index.ts
+++ b/api/src/config/index.ts
@@ -1,3 +1,4 @@
+import process from "node:process";
 import { randomBytes } from "node:crypto";
 import { z } from "zod";
 import { PKVIEWER_VERSION } from "./version.ts";
diff --git a/apps/api/src/config/version.ts b/api/src/config/version.ts
similarity index 100%
rename from apps/api/src/config/version.ts
rename to api/src/config/version.ts
diff --git a/api/src/db/index.ts b/api/src/db/index.ts
new file mode 100644
index 0000000..a11e9de
--- /dev/null
+++ b/api/src/db/index.ts
@@ -0,0 +1,146 @@
+/* api/src/db/index.ts */
+import { mkdirSync } from "node:fs";
+import { dirname } from "node:path";
+import { DatabaseSync, type SQLInputValue, type StatementSync } from "node:sqlite";
+
+/** Values a query may bind. Booleans and undefined are normalised before binding. */
+export type Binding = string | number | bigint | boolean | null | undefined | Uint8Array;
+
+export type RunResult = {
+  changes: number;
+  lastInsertRowid: number | bigint;
+};
+
+/**
+ * A prepared statement, shaped like bun:sqlite's so call sites are unchanged.
+ *
+ * `get` returns null on no row (node:sqlite returns undefined), and rows are
+ * copied to plain objects (node:sqlite returns null-prototype objects).
+ */
+export class Statement<Row = unknown, Params extends Binding[] = Binding[]> {
+  readonly #statement: StatementSync;
+
+  constructor(statement: StatementSync) {
+    this.#statement = statement;
+  }
+
+  get(...params: Params): Row | null {
+    const row = this.#statement.get(...bind(params));
+    return row === undefined ? null : ({ ...row } as Row);
+  }
+
+  all(...params: Params): Row[] {
+    return this.#statement.all(...bind(params)).map((row) => ({ ...row }) as Row);
+  }
+
+  run(...params: Params): RunResult {
+    const result = this.#statement.run(...bind(params));
+    return {
+      changes: Number(result.changes),
+      lastInsertRowid: result.lastInsertRowid,
+    };
+  }
+}
+
+function bind(params: Binding[]): SQLInputValue[] {
+  return params.map((value) => {
+    if (value === undefined) return null;
+    if (value === true) return 1;
+    if (value === false) return 0;
+    return value;
+  });
+}
+
+/** A SQLite connection. Statements are cached per SQL string, as bun:sqlite's query() did. */
+export class Db {
+  readonly #database: DatabaseSync;
+  readonly #statements = new Map<string, StatementSync>();
+
+  constructor(path: string) {
+    this.#database = new DatabaseSync(path);
+  }
+
+  query<Row = unknown, Params extends Binding[] = Binding[]>(sql: string): Statement<Row, Params> {
+    let statement = this.#statements.get(sql);
+    if (!statement) {
+      statement = this.#database.prepare(sql);
+      this.#statements.set(sql, statement);
+    }
+    return new Statement<Row, Params>(statement);
+  }
+
+  exec(sql: string): void {
+    this.#database.exec(sql);
+  }
+
+  close(): void {
+    this.#statements.clear();
+    this.#database.close();
+  }
+}
+
+/**
+ * Opens a SQLite connection with the pragmas this application depends on.
+ *
+ * `foreign_keys` is off by default in SQLite and is per-connection, so it must
+ * be set here or every ON DELETE CASCADE in the schema silently does nothing.
+ */
+export function openDb(path: string): Db {
+  if (path !== ":memory:") {
+    mkdirSync(dirname(path), { recursive: true });
+  }
+  const db = new Db(path);
+
+  db.exec("PRAGMA journal_mode = WAL");
+  db.exec("PRAGMA foreign_keys = ON");
+  db.exec("PRAGMA busy_timeout = 5000");
+  db.exec("PRAGMA synchronous = NORMAL");
+
+  return db;
+}
+
+/**
+ * Runs `fn` inside an IMMEDIATE transaction.
+ *
+ * Deferred transactions take a read lock first and try to upgrade on the first
+ * write; if another writer holds the lock that upgrade fails with SQLITE_BUSY
+ * *after* the work is done, and busy_timeout does not help because retrying
+ * would deadlock. Taking the write lock upfront makes the transaction wait
+ * instead. Every transaction that may write must use this.
+ */
+export function writeTx<T>(db: Db, fn: (db: Db) => T): T {
+  db.exec("BEGIN IMMEDIATE");
+  try {
+    const result = fn(db);
+    db.exec("COMMIT");
+    return result;
+  } catch (err) {
+    try {
+      db.exec("ROLLBACK");
+    } catch {
+      // A failed rollback must not mask the original error.
+    }
+    throw err;
+  }
+}
+
+/** Read-only transaction, for multi-statement reads needing a consistent view. */
+export function readTx<T>(db: Db, fn: (db: Db) => T): T {
+  db.exec("BEGIN DEFERRED");
+  try {
+    const result = fn(db);
+    db.exec("COMMIT");
+    return result;
+  } catch (err) {
+    try {
+      db.exec("ROLLBACK");
+    } catch {
+      /* see above */
+    }
+    throw err;
+  }
+}
+
+/** Current time as integer Unix milliseconds. Injected so tests can control it. */
+export type Clock = () => number;
+export const systemClock: Clock = () => Date.now();
diff --git a/apps/api/src/db/migrate.ts b/api/src/db/migrate.ts
similarity index 100%
rename from apps/api/src/db/migrate.ts
rename to api/src/db/migrate.ts
diff --git a/apps/api/src/db/migrations/001_init.sql b/api/src/db/migrations/001_init.sql
similarity index 100%
rename from apps/api/src/db/migrations/001_init.sql
rename to api/src/db/migrations/001_init.sql
diff --git a/apps/api/src/db/migrations/002_claims.sql b/api/src/db/migrations/002_claims.sql
similarity index 100%
rename from apps/api/src/db/migrations/002_claims.sql
rename to api/src/db/migrations/002_claims.sql
diff --git a/apps/api/src/db/migrations/003_composition.sql b/api/src/db/migrations/003_composition.sql
similarity index 100%
rename from apps/api/src/db/migrations/003_composition.sql
rename to api/src/db/migrations/003_composition.sql
diff --git a/apps/api/src/db/migrations/004_account_deletion.sql b/api/src/db/migrations/004_account_deletion.sql
similarity index 100%
rename from apps/api/src/db/migrations/004_account_deletion.sql
rename to api/src/db/migrations/004_account_deletion.sql
diff --git a/apps/api/src/db/migrations/005_recognition.sql b/api/src/db/migrations/005_recognition.sql
similarity index 100%
rename from apps/api/src/db/migrations/005_recognition.sql
rename to api/src/db/migrations/005_recognition.sql
diff --git a/apps/api/src/db/migrations/006_pk_dev_badge.sql b/api/src/db/migrations/006_pk_dev_badge.sql
similarity index 100%
rename from apps/api/src/db/migrations/006_pk_dev_badge.sql
rename to api/src/db/migrations/006_pk_dev_badge.sql
diff --git a/apps/api/src/db/migrations/007_badge_consent.sql b/api/src/db/migrations/007_badge_consent.sql
similarity index 100%
rename from apps/api/src/db/migrations/007_badge_consent.sql
rename to api/src/db/migrations/007_badge_consent.sql
diff --git a/apps/api/src/db/migrations/008_badges_opt_out.sql b/api/src/db/migrations/008_badges_opt_out.sql
similarity index 100%
rename from apps/api/src/db/migrations/008_badges_opt_out.sql
rename to api/src/db/migrations/008_badges_opt_out.sql
diff --git a/apps/api/src/http/cookies.ts b/api/src/http/cookies.ts
similarity index 100%
rename from apps/api/src/http/cookies.ts
rename to api/src/http/cookies.ts
diff --git a/apps/api/src/http/middleware.ts b/api/src/http/middleware.ts
similarity index 100%
rename from apps/api/src/http/middleware.ts
rename to api/src/http/middleware.ts
diff --git a/apps/api/src/http/routes/admin.ts b/api/src/http/routes/admin.ts
similarity index 100%
rename from apps/api/src/http/routes/admin.ts
rename to api/src/http/routes/admin.ts
diff --git a/apps/api/src/http/routes/auth.ts b/api/src/http/routes/auth.ts
similarity index 100%
rename from apps/api/src/http/routes/auth.ts
rename to api/src/http/routes/auth.ts
diff --git a/apps/api/src/http/routes/claims.ts b/api/src/http/routes/claims.ts
similarity index 100%
rename from apps/api/src/http/routes/claims.ts
rename to api/src/http/routes/claims.ts
diff --git a/apps/api/src/http/routes/manage.ts b/api/src/http/routes/manage.ts
similarity index 100%
rename from apps/api/src/http/routes/manage.ts
rename to api/src/http/routes/manage.ts
diff --git a/apps/api/src/http/routes/public.ts b/api/src/http/routes/public.ts
similarity index 100%
rename from apps/api/src/http/routes/public.ts
rename to api/src/http/routes/public.ts
diff --git a/apps/api/src/http/routes/slugs.ts b/api/src/http/routes/slugs.ts
similarity index 100%
rename from apps/api/src/http/routes/slugs.ts
rename to api/src/http/routes/slugs.ts
diff --git a/apps/api/src/index.ts b/api/src/index.ts
similarity index 93%
rename from apps/api/src/index.ts
rename to api/src/index.ts
index a76152c..7337f73 100644
--- a/apps/api/src/index.ts
+++ b/api/src/index.ts
@@ -19,7 +19,7 @@ import { PKVIEWER_VERSION } from "./config/version.ts";
  * which is what removes write contention as a category of bug: SQLite permits
  * one writer at a time, and here there is exactly one writer.
  *
- * The Next.js tier renders and never imports anything from ./db.
+ * The SvelteKit tier renders and never imports anything from ./db.
  */
 
 const cfg = config();
@@ -91,5 +91,14 @@ console.log(
 );
 console.log(`[api] pk user-agent: ${cfg.pk.userAgent}`);
 
-export default { port: cfg.apiPort, hostname: cfg.apiHost, fetch: app.fetch };
 export { app, db, pk, cfg };
+
+if (import.meta.main) {
+  Deno.serve(
+    {
+      port: cfg.apiPort,
+      hostname: cfg.apiHost,
+    },
+    app.fetch,
+  );
+}
diff --git a/apps/api/src/manage/index.ts b/api/src/manage/index.ts
similarity index 99%
rename from apps/api/src/manage/index.ts
rename to api/src/manage/index.ts
index af441bb..7538a0f 100644
--- a/apps/api/src/manage/index.ts
+++ b/api/src/manage/index.ts
@@ -1,4 +1,4 @@
-import { randomUUID } from "node:crypto";
+import { createHash, randomUUID } from "node:crypto";
 import {
   MAX_SOCIAL_LABEL_LENGTH,
   MAX_SOCIAL_LINKS,
@@ -568,5 +568,5 @@ export function saveCss(
 
 function hashOf(text: string): string | null {
   if (!text) return null;
-  return new Bun.CryptoHasher("sha256").update(text).digest("hex").slice(0, 32);
+  return createHash("sha256").update(text).digest("hex").slice(0, 32);
 }
diff --git a/apps/api/src/manage/recognition.ts b/api/src/manage/recognition.ts
similarity index 100%
rename from apps/api/src/manage/recognition.ts
rename to api/src/manage/recognition.ts
diff --git a/apps/api/src/pk/client.ts b/api/src/pk/client.ts
similarity index 100%
rename from apps/api/src/pk/client.ts
rename to api/src/pk/client.ts
diff --git a/apps/api/src/pk/errors.ts b/api/src/pk/errors.ts
similarity index 100%
rename from apps/api/src/pk/errors.ts
rename to api/src/pk/errors.ts
diff --git a/apps/api/src/pk/limiter.ts b/api/src/pk/limiter.ts
similarity index 100%
rename from apps/api/src/pk/limiter.ts
rename to api/src/pk/limiter.ts
diff --git a/apps/api/src/pk/snapshots.ts b/api/src/pk/snapshots.ts
similarity index 100%
rename from apps/api/src/pk/snapshots.ts
rename to api/src/pk/snapshots.ts
diff --git a/apps/api/src/pk/types.ts b/api/src/pk/types.ts
similarity index 100%
rename from apps/api/src/pk/types.ts
rename to api/src/pk/types.ts
diff --git a/apps/api/src/public/page-model.ts b/api/src/public/page-model.ts
similarity index 100%
rename from apps/api/src/public/page-model.ts
rename to api/src/public/page-model.ts
diff --git a/apps/api/src/slugs/claim.ts b/api/src/slugs/claim.ts
similarity index 100%
rename from apps/api/src/slugs/claim.ts
rename to api/src/slugs/claim.ts
diff --git a/apps/api/src/slugs/lifecycle.ts b/api/src/slugs/lifecycle.ts
similarity index 100%
rename from apps/api/src/slugs/lifecycle.ts
rename to api/src/slugs/lifecycle.ts
diff --git a/apps/api/src/slugs/normalize.ts b/api/src/slugs/normalize.ts
similarity index 100%
rename from apps/api/src/slugs/normalize.ts
rename to api/src/slugs/normalize.ts
diff --git a/apps/api/src/slugs/resolve.ts b/api/src/slugs/resolve.ts
similarity index 100%
rename from apps/api/src/slugs/resolve.ts
rename to api/src/slugs/resolve.ts
diff --git a/apps/api/test/admin-routes.test.ts b/api/test/admin-routes.test.ts
similarity index 98%
rename from apps/api/test/admin-routes.test.ts
rename to api/test/admin-routes.test.ts
index 24bc15b..8466f2b 100644
--- a/apps/api/test/admin-routes.test.ts
+++ b/api/test/admin-routes.test.ts
@@ -1,4 +1,5 @@
-import { beforeEach, describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { beforeEach, describe, it as test } from "@std/testing/bdd";
 import { randomUUID } from "node:crypto";
 import { grantAdmin } from "../src/admin/index.ts";
 import { createSession } from "../src/auth/sessions.ts";
diff --git a/apps/api/test/admin.test.ts b/api/test/admin.test.ts
similarity index 99%
rename from apps/api/test/admin.test.ts
rename to api/test/admin.test.ts
index 40b9c75..301beb8 100644
--- a/apps/api/test/admin.test.ts
+++ b/api/test/admin.test.ts
@@ -1,4 +1,5 @@
-import { beforeEach, describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { beforeEach, describe, it as test } from "@std/testing/bdd";
 import { randomUUID } from "node:crypto";
 import {
   buildCreditsPage,
diff --git a/apps/api/test/audit.test.ts b/api/test/audit.test.ts
similarity index 99%
rename from apps/api/test/audit.test.ts
rename to api/test/audit.test.ts
index ed0cdcc..dec4e83 100644
--- a/apps/api/test/audit.test.ts
+++ b/api/test/audit.test.ts
@@ -1,4 +1,5 @@
-import { describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { randomUUID } from "node:crypto";
 import { claimViaDiscordLink, ensureSystemRow } from "../src/claims/index.ts";
 import { createSession } from "../src/auth/sessions.ts";
diff --git a/apps/api/test/auth.test.ts b/api/test/auth.test.ts
similarity index 98%
rename from apps/api/test/auth.test.ts
rename to api/test/auth.test.ts
index 0d01c54..55f3587 100644
--- a/apps/api/test/auth.test.ts
+++ b/api/test/auth.test.ts
@@ -1,4 +1,6 @@
-import { describe, expect, test } from "bun:test";
+import { Buffer } from "node:buffer";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { randomUUID } from "node:crypto";
 import {
   createPkcePair,
diff --git a/apps/api/test/claims.test.ts b/api/test/claims.test.ts
similarity index 99%
rename from apps/api/test/claims.test.ts
rename to api/test/claims.test.ts
index 5db6920..b62a3a3 100644
--- a/apps/api/test/claims.test.ts
+++ b/api/test/claims.test.ts
@@ -1,4 +1,5 @@
-import { describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { randomUUID } from "node:crypto";
 import {
   CHALLENGE_MAX_ATTEMPTS,
diff --git a/apps/api/test/config.test.ts b/api/test/config.test.ts
similarity index 98%
rename from apps/api/test/config.test.ts
rename to api/test/config.test.ts
index 52194ee..2dde4b1 100644
--- a/apps/api/test/config.test.ts
+++ b/api/test/config.test.ts
@@ -1,6 +1,7 @@
 import { readFileSync } from "node:fs";
 import { join } from "node:path";
-import { describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { buildUserAgent, ConfigError, loadConfig } from "../src/config/index.ts";
 import { PKVIEWER_VERSION } from "../src/config/version.ts";
 
@@ -184,7 +185,7 @@ describe("production readiness", () => {
 // is given for every request we make (P1), and shipping an unresolvable one
 // hands them a dead link instead of a way to reach us.
 describe("the example environment file", () => {
-  const exampleEnv = readFileSync(join(import.meta.dir, "..", "..", "..", ".env.example"), "utf8");
+  const exampleEnv = readFileSync(join(import.meta.dirname!, "..", "..", ".env.example"), "utf8");
 
   const exampleValue = (key: string): string => {
     const match = exampleEnv.match(new RegExp(`^${key}=(.*)$`, "m"));
diff --git a/apps/api/test/db.test.ts b/api/test/db.test.ts
similarity index 98%
rename from apps/api/test/db.test.ts
rename to api/test/db.test.ts
index b18ff5a..eafdb4f 100644
--- a/apps/api/test/db.test.ts
+++ b/api/test/db.test.ts
@@ -1,4 +1,5 @@
-import { describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { randomUUID } from "node:crypto";
 import { readdirSync, readFileSync } from "node:fs";
 import { join } from "node:path";
@@ -260,7 +261,7 @@ describe("account deletion", () => {
  * migration.
  */
 describe("migrations against a database in use", () => {
-  const dir = join(import.meta.dir, "..", "src", "db", "migrations");
+  const dir = join(import.meta.dirname!, "..", "src", "db", "migrations");
 
   function applyUpTo(db: Db, exclusive: string): void {
     db.exec(
diff --git a/apps/api/test/manage.test.ts b/api/test/manage.test.ts
similarity index 99%
rename from apps/api/test/manage.test.ts
rename to api/test/manage.test.ts
index 8ea34e1..1eedba2 100644
--- a/apps/api/test/manage.test.ts
+++ b/api/test/manage.test.ts
@@ -1,4 +1,5 @@
-import { describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { Hono } from "hono";
 import { randomUUID } from "node:crypto";
 import { resolveTheme } from "@pkviewer/shared";
diff --git a/apps/api/test/pk-client.test.ts b/api/test/pk-client.test.ts
similarity index 99%
rename from apps/api/test/pk-client.test.ts
rename to api/test/pk-client.test.ts
index 30964e4..944fb83 100644
--- a/apps/api/test/pk-client.test.ts
+++ b/api/test/pk-client.test.ts
@@ -1,4 +1,5 @@
-import { describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { PkClient } from "../src/pk/client.ts";
 import { PkNotFound, PkRateLimited, PkUpstreamDown } from "../src/pk/errors.ts";
 import { MemorySnapshotStore } from "../src/pk/snapshots.ts";
diff --git a/packages/shared/test/css.test.ts b/api/test/shared-css.test.ts
similarity index 99%
rename from packages/shared/test/css.test.ts
rename to api/test/shared-css.test.ts
index 6a6c25a..7495cf1 100644
--- a/packages/shared/test/css.test.ts
+++ b/api/test/shared-css.test.ts
@@ -1,5 +1,6 @@
-import { describe, expect, test } from "bun:test";
-import { CSS_SCOPE, CSS_URL_HOSTS, MAX_CSS_LENGTH, sanitizeCss } from "../src/css/sanitize.ts";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
+import { CSS_SCOPE, CSS_URL_HOSTS, MAX_CSS_LENGTH, sanitizeCss } from "../shared/css/sanitize.ts";
 
 /**
  * Custom CSS is the feature the decision log said not to switch on casually.
diff --git a/packages/shared/test/theme.test.ts b/api/test/shared-theme.test.ts
similarity index 98%
rename from packages/shared/test/theme.test.ts
rename to api/test/shared-theme.test.ts
index d0e59f8..46a8d0d 100644
--- a/packages/shared/test/theme.test.ts
+++ b/api/test/shared-theme.test.ts
@@ -1,4 +1,5 @@
-import { describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import {
   COMPOSITION,
   COMPOSITION_KEYS,
@@ -15,7 +16,7 @@ import {
   themeToCssVars,
   validateCompositionValue,
   validateThemeToken,
-} from "../src/theme/index.ts";
+} from "../shared/theme/index.ts";
 
 const TYPES = ["color", "length", "enum", "font", "boolean"];
 
diff --git a/apps/api/test/slug-management.test.ts b/api/test/slug-management.test.ts
similarity index 96%
rename from apps/api/test/slug-management.test.ts
rename to api/test/slug-management.test.ts
index dc81407..b6456be 100644
--- a/apps/api/test/slug-management.test.ts
+++ b/api/test/slug-management.test.ts
@@ -1,4 +1,5 @@
-import { describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { randomUUID } from "node:crypto";
 import { Hono } from "hono";
 import { createSession } from "../src/auth/sessions.ts";
@@ -123,7 +124,7 @@ describe("setting a system address", () => {
     db.close();
   });
 
-  test.each([
+  const rejections = [
     ["too short", "ab", "too_short"],
     ["reserved word", "docs", "reserved"],
     ["consecutive hyphens", "xn--evil", "double_hyphen"],
@@ -131,19 +132,23 @@ describe("setting a system address", () => {
     ["over maximum length", "a".repeat(33), "too_long"],
     ["invalid characters", "dough mination", "invalid_characters"],
     ["id shaped", "clove", "id_shaped"],
-  ])("rejects %s", async (_label, slug, reason) => {
-    const db = freshDb();
-    const acct = account(db);
-    const systemId = ownedSystem(db, acct);
-
-    const res = await app(db).fetch(
-      req(db, acct, "/claim", { method: "POST", body: claimBody(systemId, slug) }),
-    );
-    expect(res.status).toBe(400);
-    expect(((await res.json()) as { detail: string }).detail).toBe(reason);
-    expect(activeSlugFor(db, "system", systemId)).toBeNull();
-    db.close();
-  });
+  ] as const;
+
+  for (const [label, slug, reason] of rejections) {
+    test(`rejects ${label}`, async () => {
+      const db = freshDb();
+      const acct = account(db);
+      const systemId = ownedSystem(db, acct);
+
+      const res = await app(db).fetch(
+        req(db, acct, "/claim", { method: "POST", body: claimBody(systemId, slug) }),
+      );
+      expect(res.status).toBe(400);
+      expect(((await res.json()) as { detail: string }).detail).toBe(reason);
+      expect(activeSlugFor(db, "system", systemId)).toBeNull();
+      db.close();
+    });
+  }
 });
 
 describe("address lifecycle", () => {
diff --git a/apps/api/test/slugs.test.ts b/api/test/slugs.test.ts
similarity index 99%
rename from apps/api/test/slugs.test.ts
rename to api/test/slugs.test.ts
index 51ee965..cf42b3b 100644
--- a/apps/api/test/slugs.test.ts
+++ b/api/test/slugs.test.ts
@@ -1,4 +1,5 @@
-import { describe, expect, test } from "bun:test";
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { openDb, type Db } from "../src/db/index.ts";
 import { migrate } from "../src/db/migrate.ts";
 import { PkClient } from "../src/pk/client.ts";
diff --git a/apps/api/package.json b/apps/api/package.json
deleted file mode 100644
index 56244a3..0000000
--- a/apps/api/package.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
-  "name": "@pkviewer/api",
-  "version": "0.1.0",
-  "private": true,
-  "type": "module",
-  "scripts": {
-    "dev": "bun run --hot src/index.ts",
-    "start": "bun run src/index.ts",
-    "migrate": "bun run src/db/migrate.ts",
-    "typecheck": "tsc -p tsconfig.json"
-  },
-  "dependencies": {
-    "@pkviewer/shared": "workspace:*",
-    "hono": "^4.6.0",
-    "zod": "^3.23.8"
-  }
-}
diff --git a/apps/api/src/db/index.ts b/apps/api/src/db/index.ts
deleted file mode 100644
index 2036ecb..0000000
--- a/apps/api/src/db/index.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-import { Database } from "bun:sqlite";
-import { mkdirSync } from "node:fs";
-import { dirname } from "node:path";
-
-export type Db = Database;
-
-/**
- * Opens a SQLite connection with the pragmas this application depends on.
- *
- * `foreign_keys` is off by default in SQLite and is per-connection, so it must
- * be set here or every ON DELETE CASCADE in the schema silently does nothing.
- */
-export function openDb(path: string): Db {
-  if (path !== ":memory:") {
-    mkdirSync(dirname(path), { recursive: true });
-  }
-  const db = new Database(path, { create: true, strict: false });
-
-  db.exec("PRAGMA journal_mode = WAL");
-  db.exec("PRAGMA foreign_keys = ON");
-  db.exec("PRAGMA busy_timeout = 5000");
-  db.exec("PRAGMA synchronous = NORMAL");
-
-  return db;
-}
-
-/**
- * Runs `fn` inside an IMMEDIATE transaction.
- *
- * Deferred transactions take a read lock first and try to upgrade on the first
- * write; if another writer holds the lock that upgrade fails with SQLITE_BUSY
- * *after* the work is done, and busy_timeout does not help because retrying
- * would deadlock. Taking the write lock upfront makes the transaction wait
- * instead. Every transaction that may write must use this.
- */
-export function writeTx<T>(db: Db, fn: (db: Db) => T): T {
-  db.exec("BEGIN IMMEDIATE");
-  try {
-    const result = fn(db);
-    db.exec("COMMIT");
-    return result;
-  } catch (err) {
-    try {
-      db.exec("ROLLBACK");
-    } catch {
-      // A failed rollback must not mask the original error.
-    }
-    throw err;
-  }
-}
-
-/** Read-only transaction, for multi-statement reads needing a consistent view. */
-export function readTx<T>(db: Db, fn: (db: Db) => T): T {
-  db.exec("BEGIN DEFERRED");
-  try {
-    const result = fn(db);
-    db.exec("COMMIT");
-    return result;
-  } catch (err) {
-    try {
-      db.exec("ROLLBACK");
-    } catch {
-      /* see above */
-    }
-    throw err;
-  }
-}
-
-/** Current time as integer Unix milliseconds. Injected so tests can control it. */
-export type Clock = () => number;
-export const systemClock: Clock = () => Date.now();
diff --git a/apps/api/tsconfig.json b/apps/api/tsconfig.json
deleted file mode 100644
index 04a9293..0000000
--- a/apps/api/tsconfig.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
-  "extends": "../../tsconfig.base.json",
-  "compilerOptions": {
-    "paths": { "@pkviewer/shared": ["../../packages/shared/src/index.ts"] }
-  },
-  "include": ["src/**/*.ts", "test/**/*.ts"]
-}
diff --git a/apps/web/next-env.d.ts b/apps/web/next-env.d.ts
deleted file mode 100644
index c433666..0000000
--- a/apps/web/next-env.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/// <reference types="next" />
-/// <reference types="next/image-types/global" />
-/// <reference path="./.next-prod/types/routes.d.ts" />
-
-// NOTE: This file should not be edited
-// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts
deleted file mode 100644
index 9a17674..0000000
--- a/apps/web/next.config.ts
+++ /dev/null
@@ -1,147 +0,0 @@
-import { join } from "node:path";
-import type { NextConfig } from "next";
-
-/**
- * Security headers.
- *
- * These live here rather than in the API because the browser never talks to the
- * API directly — every header a visitor actually receives comes from this tier.
- * The API's own headers protect nothing on their own.
- *
- * Two deliberate exceptions, both documented because they are real weakenings:
- *
- *  1. `script-src` allows 'unsafe-inline'. Next's App Router bootstraps and
- *     hydrates through inline scripts, and tightening this properly needs a
- *     per-request nonce threaded through middleware. The exception is survivable
- *     because pkviewer accepts no user HTML and no user JavaScript anywhere:
- *     themes are a fixed vocabulary of validated values, and social links are
- *     rendered as links. Worth revisiting with nonces.
- *
- *  2. `img-src` allows any https host. Avatars and banners are hosted wherever
- *     each system chose, and PluralKit hands us those URLs. Restricting this
- *     would break most systems' pages. The URLs are only ever placed in `src`,
- *     never fetched by us.
- *
- * `frame-ancestors 'none'` is the one that matters most: the management UI
- * changes addresses and appearance, so it must not be framable.
- */
-const isProduction = process.env["NODE_ENV"] === "production";
-
-/**
- * Development needs `'unsafe-eval'` and a WebSocket connection.
- *
- * Next's development bundles evaluate modules through `eval()`, and hot reload
- * runs over a WebSocket. Without these the browser blocks hydration outright:
- * pages still render, because they are server-rendered, but nothing is
- * interactive — every button silently does nothing.
- *
- * That failure is invisible to any check that does not execute JavaScript,
- * which is exactly how it shipped. Production keeps the strict policy.
- */
-const scriptSrc = isProduction
-  ? "script-src 'self' 'unsafe-inline'"
-  : "script-src 'self' 'unsafe-inline' 'unsafe-eval'";
-
-const connectSrc = isProduction
-  ? "connect-src 'self'"
-  : "connect-src 'self' ws: wss:";
-
-const CSP = [
-  "default-src 'self'",
-  "base-uri 'self'",
-  "form-action 'self'",
-  "frame-ancestors 'none'",
-  "object-src 'none'",
-  scriptSrc,
-  // Theme tokens are emitted as a scoped <style> element, and Google Fonts
-  // serves the allow-listed families. Custom CSS may `@import` from
-  // fonts.googleapis.com, which is already named here.
-  "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
-  // Custom CSS may load fonts from the same two hosts the compiler permits, so
-  // this list and CSS_URL_HOSTS have to agree — a font the compiler allows and
-  // the CSP blocks fails silently in the browser, which is the worst of both.
-  "font-src 'self' https://fonts.gstatic.com https://m.doughmination.gay",
-  "img-src 'self' https: data:",
-  connectSrc,
-  "manifest-src 'self'",
-].join("; ");
-
-const BASE_HEADERS = [
-  { key: "Content-Security-Policy", value: CSP },
-  { key: "X-Content-Type-Options", value: "nosniff" },
-  { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
-  // Redundant with frame-ancestors for modern browsers, kept for older ones.
-  { key: "X-Frame-Options", value: "DENY" },
-  // Nothing in pkviewer needs any of these.
-  {
-    key: "Permissions-Policy",
-    value: "camera=(), microphone=(), geolocation=(), payment=(), usb=(), interest-cohort=()",
-  },
-  { key: "Cross-Origin-Opener-Policy", value: "same-origin" },
-];
-
-const config: NextConfig = {
-  reactStrictMode: true,
-
-  /**
-   * Production builds get their own output directory.
-   *
-   * `next dev` and `next build` otherwise share `.next`, and a build run while
-   * the dev server is up leaves it loading chunks from an output that no longer
-   * matches — pages go blank with "Cannot find module './530.js'". Since the dev
-   * server is expected to stay running, they are simply kept apart.
-   */
-  distDir: process.env["NEXT_DIST_DIR"] ?? ".next",
-
-  /**
-   * Standalone output for containers.
-   *
-   * Traces the modules the server actually needs and emits a self-contained
-   * directory, so the runtime image carries neither the monorepo nor its
-   * node_modules. Harmless outside Docker: `next dev` and `next start` ignore
-   * it.
-   */
-  output: "standalone",
-  outputFileTracingRoot: join(import.meta.dirname, "..", ".."),
-  // The web tier renders and nothing else. It has no database driver and no
-  // PluralKit client: everything comes from the API over HTTP (A1).
-  transpilePackages: ["@pkviewer/shared"],
-  poweredByHeader: false,
-
-  async headers() {
-    const headers = [...BASE_HEADERS];
-
-    if (isProduction) {
-      headers.push({
-        key: "Strict-Transport-Security",
-        value: "max-age=31536000; includeSubDomains",
-      });
-      // Production only: on an http development origin this would try to
-      // upgrade local subresources and is at best pointless, at worst
-      // confusing to debug.
-      headers[0] = {
-        key: "Content-Security-Policy",
-        value: `${CSP}; upgrade-insecure-requests`,
-      };
-    }
-
-    /**
-     * Public pages are indexable; the control planes are not.
-     *
-     * This was once a site-wide noindex driven by a beta flag. That flag is
-     * gone, so /s/... pages should be findable — but /manage and /admin must
-     * never be. The layouts already set robots metadata; this is
-     * belt and braces, and it also covers responses that are not HTML, which a
-     * <meta> tag cannot reach.
-     */
-    const noIndex = { key: "X-Robots-Tag", value: "noindex, nofollow" };
-
-    return [
-      { source: "/:path*", headers },
-      { source: "/manage/:path*", headers: [noIndex] },
-      { source: "/admin/:path*", headers: [noIndex] },
-    ];
-  },
-};
-
-export default config;
diff --git a/apps/web/package.json b/apps/web/package.json
deleted file mode 100644
index cc508cd..0000000
--- a/apps/web/package.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
-  "name": "@pkviewer/web",
-  "version": "0.1.0",
-  "private": true,
-  "scripts": {
-    "dev": "next dev",
-    "build": "NEXT_DIST_DIR=.next-prod next build",
-    "start": "NEXT_DIST_DIR=.next-prod next start",
-    "typecheck": "tsc -p tsconfig.json"
-  },
-  "dependencies": {
-    "@pkviewer/shared": "workspace:*",
-    "next": "^15.1.0",
-    "react": "^19.0.0",
-    "react-bootstrap-icons": "^1.11.6",
-    "react-dom": "^19.0.0",
-    "server-only": "^0.0.1"
-  },
-  "devDependencies": {
-    "@types/react": "^19.0.0",
-    "@types/react-dom": "^19.0.0",
-    "typescript": "^5.6.0",
-    "@types/node": "^22.0.0"
-  }
-}
diff --git a/apps/web/src/app/admin/actions.ts b/apps/web/src/app/admin/actions.ts
deleted file mode 100644
index 00d1ef1..0000000
--- a/apps/web/src/app/admin/actions.ts
+++ /dev/null
@@ -1,144 +0,0 @@
-"use server";
-
-import { revalidatePath } from "next/cache";
-import { manageApi } from "@/lib/manage-api.ts";
-
-/**
- * Server actions for the administration UI.
- *
- * Thin, like the management actions: every one of these forwards to the API,
- * which re-checks the platform admin grant. Nothing here decides whether the
- * caller is an admin — a hidden nav link is not an authorization boundary, and
- * the only place that answer is trusted is the API.
- */
-
-export type AdminResult = { ok: boolean; error?: string };
-
-function messageFor(error: string, status: number): string {
-  switch (error) {
-    case "unauthenticated":
-      return "Your session has expired. Sign in again.";
-    case "not_found":
-      return "Not found.";
-    case "unknown_subject":
-      return "No system on pkviewer matches that address or ID. It has to be claimed first.";
-    case "unknown_badge":
-      return "That badge no longer exists.";
-    case "badge_retired":
-      return "That badge is retired and cannot be granted.";
-    case "not_empty":
-      return "Move or delete the entries in that section first.";
-    case "invalid":
-      return "Some values were not accepted. Check them and try again.";
-    case "api_unreachable":
-      return "Could not reach pkviewer. Check your connection and try again.";
-    default:
-      return status >= 500 ? "Something went wrong. Please try again." : "That did not work.";
-  }
-}
-
-function done(result: { ok: boolean; error?: string; status?: number }): AdminResult {
-  if (result.ok) {
-    revalidatePath("/admin", "layout");
-    return { ok: true };
-  }
-  return { ok: false, error: messageFor(result.error ?? "error", result.status ?? 400) };
-}
-
-// ------------------------------------------------------------------ badges --
-
-export async function grantBadgeAction(
-  subject: string,
-  badgeId: string,
-  note: string,
-): Promise<AdminResult> {
-  const result = await manageApi.post("/admin/assignments", {
-    subject,
-    badgeId,
-    note: note || null,
-  });
-  // The public page shows accepted badges, so a self-grant is visible at once.
-  revalidatePath("/s", "layout");
-  return done(result);
-}
-
-export async function revokeBadgeAction(assignmentId: number): Promise<AdminResult> {
-  const result = await manageApi.post(`/admin/assignments/${assignmentId}/revoke`, {});
-  revalidatePath("/s", "layout");
-  return done(result);
-}
-
-export async function saveBadgeAction(input: {
-  id: string;
-  label: string;
-  description: string;
-  icon: string;
-  tone: string;
-  sortOrder: number;
-}): Promise<AdminResult> {
-  const result = await manageApi.put(`/admin/badges/${input.id}`, input);
-  revalidatePath("/badges");
-  return done(result);
-}
-
-export async function retireBadgeAction(badgeId: string, retired: boolean): Promise<AdminResult> {
-  const result = await manageApi.post(
-    `/admin/badges/${badgeId}/${retired ? "retire" : "restore"}`,
-    {},
-  );
-  revalidatePath("/badges");
-  return done(result);
-}
-
-// ----------------------------------------------------------------- credits --
-
-export async function saveCreditAction(input: {
-  id?: string;
-  sectionId: string;
-  name: string;
-  detail: string;
-  url: string;
-  sortOrder: number;
-  visible: boolean;
-}): Promise<AdminResult> {
-  const body = {
-    sectionId: input.sectionId,
-    name: input.name,
-    detail: input.detail || null,
-    url: input.url || null,
-    sortOrder: input.sortOrder,
-    visible: input.visible,
-  };
-  const result = input.id
-    ? await manageApi.put(`/admin/credits/${input.id}`, body)
-    : await manageApi.post("/admin/credits", body);
-  revalidatePath("/credits");
-  return done(result);
-}
-
-export async function deleteCreditAction(id: string): Promise<AdminResult> {
-  const result = await manageApi.del(`/admin/credits/${id}`);
-  revalidatePath("/credits");
-  return done(result);
-}
-
-export async function saveSectionAction(input: {
-  id: string;
-  label: string;
-  description: string;
-  sortOrder: number;
-}): Promise<AdminResult> {
-  const result = await manageApi.put(`/admin/credits/sections/${input.id}`, {
-    label: input.label,
-    description: input.description || null,
-    sortOrder: input.sortOrder,
-  });
-  revalidatePath("/credits");
-  return done(result);
-}
-
-export async function deleteSectionAction(id: string): Promise<AdminResult> {
-  const result = await manageApi.del(`/admin/credits/sections/${id}`);
-  revalidatePath("/credits");
-  return done(result);
-}
diff --git a/apps/web/src/app/admin/audit/page.tsx b/apps/web/src/app/admin/audit/page.tsx
deleted file mode 100644
index 2a88be8..0000000
--- a/apps/web/src/app/admin/audit/page.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import { PageHeader, Section } from "@/components/manage/Shell.tsx";
-import { manageApi } from "@/lib/manage-api.ts";
-
-export const dynamic = "force-dynamic";
-
-type AuditEvent = {
-  at: number;
-  accountId: string | null;
-  action: string;
-  target: string | null;
-  detail: string | null;
-};
-
-/**
- * Who did what, and when.
- *
- * Reads the same `audit_events` table the rest of pkviewer writes to, filtered
- * to recognition actions. It is a record rather than a feature: granting a
- * badge changes somebody else's page, so there should never be a question about
- * where one came from.
- */
-export default async function AdminAuditPage() {
-  const result = await manageApi.get<{ events: AuditEvent[] }>("/admin/audit");
-
-  return (
-    <div className="mg-shell">
-      <PageHeader title="History" description="Recent badge, credit and admin changes." />
-
-      <Section>
-        {!result.ok ? (
-          <p className="mg-note" data-tone="error">Could not load the history.</p>
-        ) : result.value.events.length === 0 ? (
-          <p className="muted">Nothing has happened yet.</p>
-        ) : (
-          <ul className="mg-list">
-            {result.value.events.map((event, i) => (
-              <li key={`${event.at}-${i}`} className="mg-item">
-                <div className="grow">
-                  <code>{event.action}</code>
-                  {event.target ? <span className="muted"> → {event.target}</span> : null}
-                  <div className="mg-item-meta muted">
-                    <span>{new Date(event.at).toLocaleString()}</span>
-                    {event.detail ? <span>{event.detail}</span> : null}
-                    <span>by {event.accountId ?? "a deleted account"}</span>
-                  </div>
-                </div>
-              </li>
-            ))}
-          </ul>
-        )}
-      </Section>
-    </div>
-  );
-}
diff --git a/apps/web/src/app/admin/badges/page.tsx b/apps/web/src/app/admin/badges/page.tsx
deleted file mode 100644
index 6dcc87b..0000000
--- a/apps/web/src/app/admin/badges/page.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import { PageHeader } from "@/components/manage/Shell.tsx";
-import { BadgeAdmin } from "@/components/admin/BadgeAdmin.tsx";
-import { manageApi } from "@/lib/manage-api.ts";
-import type { BadgeIconId, BadgeState, BadgeToneId } from "@pkviewer/shared";
-
-export const dynamic = "force-dynamic";
-
-export type AdminBadge = {
-  id: string;
-  label: string;
-  description: string;
-  icon: BadgeIconId;
-  tone: BadgeToneId;
-  sortOrder: number;
-  retiredAt: number | null;
-};
-
-export type AdminAssignment = {
-  id: number;
-  subjectId: string;
-  badgeId: string;
-  badgeLabel: string;
-  state: BadgeState;
-  note: string | null;
-  grantedAt: number;
-  respondedAt: number | null;
-  revokedAt: number | null;
-  systemHid: string | null;
-  slug: string | null;
-};
-
-export default async function AdminBadgesPage() {
-  const catalogue = await manageApi.get<{
-    badges: AdminBadge[];
-    icons: BadgeIconId[];
-    tones: BadgeToneId[];
-  }>("/admin/badges");
-  const assignments = await manageApi.get<{ assignments: AdminAssignment[] }>("/admin/assignments");
-
-  if (!catalogue.ok || !assignments.ok) {
-    return (
-      <div className="mg-shell">
-        <PageHeader title="Badges" />
-        <p className="mg-note" data-tone="error">
-          Could not load the badges. Try again shortly.
-        </p>
-      </div>
-    );
-  }
-
-  return (
-    <BadgeAdmin
-      badges={catalogue.value.badges}
-      icons={catalogue.value.icons}
-      tones={catalogue.value.tones}
-      assignments={assignments.value.assignments}
-    />
-  );
-}
diff --git a/apps/web/src/app/admin/credits/page.tsx b/apps/web/src/app/admin/credits/page.tsx
deleted file mode 100644
index dad27cb..0000000
--- a/apps/web/src/app/admin/credits/page.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import { PageHeader } from "@/components/manage/Shell.tsx";
-import { CreditAdmin } from "@/components/admin/CreditAdmin.tsx";
-import { manageApi } from "@/lib/manage-api.ts";
-
-export const dynamic = "force-dynamic";
-
-export type AdminSection = {
-  id: string;
-  label: string;
-  description: string | null;
-  sortOrder: number;
-};
-
-export type AdminCredit = {
-  id: string;
-  sectionId: string;
-  name: string;
-  detail: string | null;
-  url: string | null;
-  sortOrder: number;
-  visible: boolean;
-};
-
-export default async function AdminCreditsPage() {
-  const result = await manageApi.get<{ sections: AdminSection[]; credits: AdminCredit[] }>(
-    "/admin/credits",
-  );
-
-  if (!result.ok) {
-    return (
-      <div className="mg-shell">
-        <PageHeader title="Credits" />
-        <p className="mg-note" data-tone="error">
-          Could not load the credits. Try again shortly.
-        </p>
-      </div>
-    );
-  }
-
-  return <CreditAdmin sections={result.value.sections} credits={result.value.credits} />;
-}
diff --git a/apps/web/src/app/admin/layout.tsx b/apps/web/src/app/admin/layout.tsx
deleted file mode 100644
index 416a851..0000000
--- a/apps/web/src/app/admin/layout.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import type { Metadata } from "next";
-import { notFound, redirect } from "next/navigation";
-import { Award, BoxArrowUpRight, JournalText, People } from "react-bootstrap-icons";
-import { isAuthenticated, isPlatformAdmin } from "@/lib/manage-api.ts";
-import { webConfig } from "@/lib/config.ts";
-import { Logo } from "@/components/Logo.tsx";
-
-export const metadata: Metadata = {
-  title: { default: "Admin", template: "%s · Admin · pkviewer" },
-  robots: { index: false, follow: false },
-};
-
-/**
- * The administration shell.
- *
- * A non-admin gets 404, not 403 — the same choice the management plane makes.
- * 403 would confirm an admin area exists at this path, which is a small thing
- * to hand out for free.
- *
- * This check is a courtesy for humans. Every /admin API route re-checks the
- * platform grant, so removing this layout would leak a layout, not a power.
- */
-export default async function AdminLayout({ children }: { children: React.ReactNode }) {
-  if (!(await isAuthenticated())) redirect("/login?return_to=/admin");
-  if (!(await isPlatformAdmin())) notFound();
-
-  return (
-    <div className="mg">
-      <header className="mg-bar">
-        <a className="mg-brand" href="/admin">
-          <Logo />
-          pkviewer
-        </a>
-        <span className="mg-bar-note">Administration</span>
-        <span className="spacer" />
-        <a className="btn" href="/manage">Management</a>
-        <a className="btn" href={webConfig.docsUrl} rel="noopener">
-          Docs <BoxArrowUpRight aria-hidden="true" />
-        </a>
-        <a className="btn" href={`${webConfig.publicOrigin}/`}>
-          Public site <BoxArrowUpRight aria-hidden="true" />
-        </a>
-      </header>
-
-      <nav className="mg-subnav" aria-label="Administration">
-        <a href="/admin/badges"><Award aria-hidden="true" /> Badges</a>
-        <a href="/admin/credits"><People aria-hidden="true" /> Credits</a>
-        <a href="/admin/audit"><JournalText aria-hidden="true" /> History</a>
-      </nav>
-
-      {children}
-    </div>
-  );
-}
diff --git a/apps/web/src/app/admin/page.tsx b/apps/web/src/app/admin/page.tsx
deleted file mode 100644
index 8dccd55..0000000
--- a/apps/web/src/app/admin/page.tsx
+++ /dev/null
@@ -1,69 +0,0 @@
-import { Award, JournalText, People } from "react-bootstrap-icons";
-import { PageHeader, Section } from "@/components/manage/Shell.tsx";
-import { manageApi } from "@/lib/manage-api.ts";
-
-export const dynamic = "force-dynamic";
-
-type Assignment = { state: string };
-
-export default async function AdminHome() {
-  const assignments = await manageApi.get<{ assignments: Assignment[] }>("/admin/assignments");
-  const credits = await manageApi.get<{ credits: unknown[]; sections: unknown[] }>("/admin/credits");
-
-  const counts = { pending: 0, accepted: 0, declined: 0, hidden: 0, revoked: 0 };
-  if (assignments.ok) {
-    for (const a of assignments.value.assignments) {
-      if (a.state in counts) counts[a.state as keyof typeof counts] += 1;
-    }
-  }
-
-  return (
-    <div className="mg-shell">
-      <PageHeader
-        title="Administration"
-        description="Recognition and the credits page. Nothing here reaches anyone's system settings."
-      />
-
-      {counts.pending > 0 ? (
-        <p className="mg-note">
-          {counts.pending} badge {counts.pending === 1 ? "offer is" : "offers are"} waiting
-          on a reply. A badge shows publicly only once its system accepts it.
-        </p>
-      ) : null}
-
-      <Section title="Badges" description="Grant, revoke, and edit the catalogue.">
-        <ul className="mg-stats">
-          <li><strong>{counts.accepted}</strong> showing</li>
-          <li><strong>{counts.pending}</strong> pending</li>
-          <li><strong>{counts.hidden}</strong> hidden by owner</li>
-          <li><strong>{counts.declined}</strong> declined</li>
-          <li><strong>{counts.revoked}</strong> revoked</li>
-        </ul>
-        <div className="mg-actions">
-          <a className="btn primary" href="/admin/badges">
-            <Award aria-hidden="true" /> Manage badges
-          </a>
-        </div>
-      </Section>
-
-      <Section
-        title="Credits"
-        description="Anyone can be credited — no pkviewer account or PluralKit system needed."
-      >
-        <p className="muted">
-          {credits.ok
-            ? `${credits.value.credits.length} entries across ${credits.value.sections.length} sections.`
-            : "Could not load the credits."}
-        </p>
-        <div className="mg-actions">
-          <a className="btn primary" href="/admin/credits">
-            <People aria-hidden="true" /> Manage credits
-          </a>
-          <a className="btn" href="/admin/audit">
-            <JournalText aria-hidden="true" /> History
-          </a>
-        </div>
-      </Section>
-    </div>
-  );
-}
diff --git a/apps/web/src/app/auth/[...segments]/route.ts b/apps/web/src/app/auth/[...segments]/route.ts
deleted file mode 100644
index 222a986..0000000
--- a/apps/web/src/app/auth/[...segments]/route.ts
+++ /dev/null
@@ -1,77 +0,0 @@
-import { cookies } from "next/headers";
-import type { NextRequest } from "next/server";
-import { webConfig } from "@/lib/config.ts";
-
-/**
- * Proxies the Discord OAuth endpoints to the API.
- *
- * The browser never talks to the API directly — that is what keeps
- * INTERNAL_API_ORIGIN internal and the __Host- session cookie pinned to one
- * host. But the OAuth handshake is a browser redirect flow: the user's browser
- * must be sent to Discord and must receive the cookies the API sets. So these
- * routes exist to carry that traffic through the web tier.
- *
- * Scope is deliberately narrow. Being mounted under /auth means only the auth
- * endpoints are reachable, so this cannot become a general proxy to the API.
- */
-
-const ALLOWED = new Set(["discord/start", "discord/callback", "logout", "logout-all", "me"]);
-
-async function proxy(request: NextRequest, segments: string[], method: "GET" | "POST") {
-  const path = segments.join("/");
-  if (!ALLOWED.has(path)) {
-    return new Response("Not found", { status: 404 });
-  }
-
-  const target = `${webConfig.apiOrigin}/auth/${path}${request.nextUrl.search}`;
-  const cookieHeader = (await cookies()).toString();
-
-  let upstream: Response;
-  try {
-    upstream = await fetch(target, {
-      method,
-      headers: {
-        cookie: cookieHeader,
-        // The API rejects state-changing requests without a recognised Origin.
-        origin: webConfig.publicOrigin,
-        accept: "application/json",
-      },
-      // The API's redirect goes to Discord and must reach the browser, not be
-      // followed here.
-      redirect: "manual",
-      cache: "no-store",
-    });
-  } catch {
-    return Response.redirect(`${webConfig.publicOrigin}/login?error=unavailable`, 302);
-  }
-
-  const headers = new Headers();
-
-  // Every Set-Cookie must survive: the handshake cookie on the way out and the
-  // session cookie on the way back are the whole point of this proxy.
-  for (const cookie of upstream.headers.getSetCookie()) {
-    headers.append("set-cookie", cookie);
-  }
-
-  const location = upstream.headers.get("location");
-  if (location) {
-    headers.set("location", location);
-    return new Response(null, { status: upstream.status, headers });
-  }
-
-  const contentType = upstream.headers.get("content-type");
-  if (contentType) headers.set("content-type", contentType);
-  headers.set("cache-control", "no-store");
-
-  return new Response(await upstream.text(), { status: upstream.status, headers });
-}
-
-type RouteContext = { params: Promise<{ segments?: string[] }> };
-
-export async function GET(request: NextRequest, context: RouteContext) {
-  return proxy(request, (await context.params).segments ?? [], "GET");
-}
-
-export async function POST(request: NextRequest, context: RouteContext) {
-  return proxy(request, (await context.params).segments ?? [], "POST");
-}
diff --git a/apps/web/src/app/badges/page.tsx b/apps/web/src/app/badges/page.tsx
deleted file mode 100644
index 652c62f..0000000
--- a/apps/web/src/app/badges/page.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-import type { Metadata } from "next";
-import { BadgeSample } from "@/components/Badges.tsx";
-import { SiteDisclosure } from "@/components/Notices.tsx";
-import { getBadgeCatalogue } from "@/lib/api.ts";
-
-/**
- * What the badges mean.
- *
- * This page is half the anti-forgery story. A badge on a system page links
- * here, and this page is served by pkviewer from a path nobody else controls —
- * so "Owner" typed into a system description has nowhere convincing to point,
- * and anyone unsure about a badge can check what it actually is.
- */
-
-export const dynamic = "force-dynamic";
-
-export const metadata: Metadata = {
-  title: "Badges",
-  description: "What the badges on a pkviewer page mean.",
-};
-
-export default async function BadgesPage() {
-  const result = await getBadgeCatalogue();
-
-  return (
-    <main className="page stack">
-      <header className="stack-tight">
-        <h1>Badges</h1>
-        <p className="prose">
-          A badge is given by pkviewer, not set by the system it appears on. It
-          shows only after the system has accepted it, and it can be handed back
-          at any time.
-        </p>
-      </header>
-
-      {!result.ok ? (
-        <p className="prose muted">
-          The badge list could not be loaded right now. Please try again shortly.
-        </p>
-      ) : (
-        <ul className="badge-glossary">
-          {result.value.badges.map((badge) => (
-            <li key={badge.id}>
-              <BadgeSample badge={badge} />
-              <p className="muted">{badge.description}</p>
-            </li>
-          ))}
-        </ul>
-      )}
-
-      <section className="prose stack-tight">
-        <h2>Why they cannot be faked</h2>
-        <p>
-          Anything a system can write about itself — its name, its description,
-          the label on a link — is ordinary text and is styled as ordinary text.
-          A badge is not part of a page&apos;s appearance settings, so a system
-          cannot restyle one, hide one, or make anything else look like one.
-        </p>
-        <p>
-          If something looks like a badge but does not link here, it is not one.
-        </p>
-      </section>
-
-      <SiteDisclosure />
-    </main>
-  );
-}
diff --git a/apps/web/src/app/credits/page.tsx b/apps/web/src/app/credits/page.tsx
deleted file mode 100644
index a044d7a..0000000
--- a/apps/web/src/app/credits/page.tsx
+++ /dev/null
@@ -1,73 +0,0 @@
-import type { Metadata } from "next";
-import { BoxArrowUpRight } from "react-bootstrap-icons";
-import { SiteDisclosure } from "@/components/Notices.tsx";
-import { getCredits } from "@/lib/api.ts";
-
-/**
- * Who helped.
- *
- * Deliberately not a badge listing. A badge lives on someone's pkviewer page
- * and needs them to have one; a credit needs nothing but a name, so the person
- * who emailed a vulnerability report and never signed in still gets named.
- *
- * The sections are data, not markup: adding "Translators" is an admin action,
- * and this page has no list of categories in it to fall out of date.
- */
-
-export const dynamic = "force-dynamic";
-
-export const metadata: Metadata = {
-  title: "Credits",
-  description: "People who helped build pkviewer.",
-};
-
-export default async function CreditsPage() {
-  const result = await getCredits();
-
-  return (
-    <main className="page stack">
-      <header className="stack-tight">
-        <h1>Credits</h1>
-        <p className="prose">
-          pkviewer exists because of people who reported things, broke things on
-          purpose, and said when something was wrong.
-        </p>
-      </header>
-
-      {!result.ok ? (
-        <p className="prose muted">
-          The credits could not be loaded right now. Please try again shortly.
-        </p>
-      ) : result.value.sections.length === 0 ? (
-        <p className="prose muted">Nobody is credited yet.</p>
-      ) : (
-        result.value.sections.map((section) => (
-          <section key={section.id} className="stack-tight">
-            <h2>{section.label}</h2>
-            {section.description ? <p className="muted">{section.description}</p> : null}
-            <ul className="credit-list">
-              {section.entries.map((entry) => (
-                <li key={entry.id}>
-                  <span className="credit-name">
-                    {entry.url ? (
-                      // Rendered as a link and never fetched, exactly like a
-                      // social link. noopener because it is user-supplied.
-                      <a href={entry.url} rel="noopener nofollow ugc" target="_blank">
-                        {entry.name} <BoxArrowUpRight aria-hidden="true" />
-                      </a>
-                    ) : (
-                      entry.name
-                    )}
-                  </span>
-                  {entry.detail ? <span className="muted"> — {entry.detail}</span> : null}
-                </li>
-              ))}
-            </ul>
-          </section>
-        ))
-      )}
-
-      <SiteDisclosure />
-    </main>
-  );
-}
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
deleted file mode 100644
index fde3e1a..0000000
--- a/apps/web/src/app/layout.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import type { Metadata } from "next";
-import { webConfig } from "@/lib/config";
-import "./globals.css";
-
-/**
- * Icons and the default share card are file conventions, not entries here.
- *
- * `icon.svg`, `apple-icon.png` and `opengraph-image.png` sit beside this file
- * and Next emits the link and meta tags for them, hashed and immutably cached.
- * Listing them again in `metadata` would only be a second copy to keep in sync.
- *
- * `metadataBase` is what turns the generated `/opengraph-image.png` into the
- * absolute URL an unfurler needs. It reads the deployment origin for the same
- * reason every other absolute URL does: the domain is configuration (decision 1).
- */
-export const metadata: Metadata = {
-  metadataBase: new URL(webConfig.publicOrigin),
-  title: { default: "pkviewer", template: "%s · pkviewer" },
-  description: "Websites for PluralKit systems.",
-  openGraph: {
-    title: "pkviewer",
-    description: "Websites for PluralKit systems.",
-    url: webConfig.publicOrigin,
-    siteName: "pkviewer",
-    type: "website",
-  },
-  // System and member pages set their own card image — a system's avatar says
-  // more than our logo does. This is the fallback for everything else, and for
-  // systems that have no avatar.
-  twitter: { card: "summary_large_image" },
-};
-
-export default function RootLayout({ children }: { children: React.ReactNode }) {
-  return (
-    <html lang="en">
-      <body>{children}</body>
-    </html>
-  );
-}
diff --git a/apps/web/src/app/login/page.tsx b/apps/web/src/app/login/page.tsx
deleted file mode 100644
index bc3a3c5..0000000
--- a/apps/web/src/app/login/page.tsx
+++ /dev/null
@@ -1,94 +0,0 @@
-import type { Metadata } from "next";
-import { Discord, ExclamationTriangle } from "react-bootstrap-icons";
-import { webConfig } from "@/lib/config.ts";
-import { Logo } from "@/components/Logo.tsx";
-
-export const metadata: Metadata = { title: "Sign in", robots: { index: false, follow: false } };
-
-/**
- * Sign-in lives on the APP origin, never the public one: it is session-bearing
- * by definition (O1).
- *
- * It uses the application visual language rather than the public one, because
- * it is the first screen of the control plane. Rendering it with the public
- * theme made the app origin look like two different products.
- */
-
-const ERRORS: Record<string, string> = {
-  missing_handshake: "That sign-in attempt expired. Please try again.",
-  invalid_handshake: "That sign-in attempt could not be verified. Please try again.",
-  handshake_expired: "That sign-in attempt took too long. Please try again.",
-  state_mismatch: "That sign-in attempt could not be verified. Please try again.",
-  discord_denied: "Sign-in was cancelled.",
-  missing_code: "Discord did not complete the sign-in. Please try again.",
-  discord_error: "Discord could not be reached. Please try again shortly.",
-  signup_disabled: "New accounts are closed at the moment.",
-  unavailable: "Sign-in is unavailable right now. Please try again shortly.",
-};
-
-export default async function LoginPage({
-  searchParams,
-}: {
-  searchParams: Promise<{ error?: string; return_to?: string }>;
-}) {
-  const { error, return_to: returnTo } = await searchParams;
-
-  // Only same-origin paths, so the sign-in link cannot become an open redirect.
-  const destination = returnTo && returnTo.startsWith("/") && !returnTo.startsWith("//")
-    ? returnTo
-    : "/manage";
-
-  return (
-    <div className="mg">
-      <header className="mg-bar">
-        <span className="mg-brand">
-          <Logo />
-          pkviewer
-        </span>
-        <span className="mg-bar-note">Sign in</span>
-        <span className="spacer" />
-        <a className="btn" href={webConfig.publicOrigin}>Public site</a>
-      </header>
-
-      <div className="mg-shell" style={{ maxWidth: "34rem" }}>
-        <div className="mg-head">
-          <h1>Sign in to pkviewer</h1>
-          <p>Manage and customise a system you already have on PluralKit.</p>
-        </div>
-
-        {error ? (
-          <p className="mg-note" data-tone="warn" role="alert">
-            <ExclamationTriangle aria-hidden="true" />
-            <span>{ERRORS[error] ?? "Sign-in did not complete. Please try again."}</span>
-          </p>
-        ) : null}
-
-        <section className="mg-panel">
-          <h2>Continue with Discord</h2>
-          <p className="hint">
-            pkviewer asks Discord only for your account ID and username. Not your
-            servers, not your messages, not your email.
-          </p>
-          <p style={{ marginBottom: 0 }}>
-            <a
-              className="btn"
-              href={`/auth/discord/start?return_to=${encodeURIComponent(destination)}`}
-              style={{ fontWeight: 600 }}
-            >
-              <Discord aria-hidden="true" /> Continue with Discord
-            </a>
-          </p>
-        </section>
-
-        <section className="mg-panel">
-          <h2>You may not need an account</h2>
-          <p className="hint" style={{ marginBottom: 0 }}>
-            Public system and member pages are open to everyone, with no sign-in.
-            An account is only for managing and customising a system — and
-            pkviewer never asks for a PluralKit token in order to claim one.
-          </p>
-        </section>
-      </div>
-    </div>
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/address/page.tsx b/apps/web/src/app/manage/[systemId]/address/page.tsx
deleted file mode 100644
index 1b060e4..0000000
--- a/apps/web/src/app/manage/[systemId]/address/page.tsx
+++ /dev/null
@@ -1,55 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { SlugEditor, type SlugStatus } from "@/components/manage/SlugEditor.tsx";
-import { manageApi, type SystemOverview } from "@/lib/manage-api.ts";
-import { webConfig } from "@/lib/config.ts";
-import { checkSlug, claimSlugAction, releaseSlugAction } from "../../actions.ts";
-
-export const metadata: Metadata = { title: "Public address" };
-
-/**
- * System address management.
- *
- * The address is a product feature, not an implementation detail: this page is
- * where a manager sees the URL people will share, and changes it.
- */
-export default async function AddressPage({
-  params,
-}: {
-  params: Promise<{ systemId: string }>;
-}) {
-  const { systemId } = await params;
-
-  const [overview, status] = await Promise.all([
-    manageApi.get<SystemOverview>(`/manage/systems/${systemId}`),
-    manageApi.get<SlugStatus>(
-      `/manage/slugs/status?scope=system&subjectId=${encodeURIComponent(systemId)}`,
-    ),
-  ]);
-  if (!overview.ok || !status.ok) notFound();
-
-  async function check(slug: string) {
-    "use server";
-    return checkSlug("system", systemId, systemId, slug);
-  }
-  async function claim(slug: string) {
-    "use server";
-    return claimSlugAction("system", systemId, slug);
-  }
-  async function release() {
-    "use server";
-    return releaseSlugAction("system", systemId);
-  }
-
-  return (
-    <SlugEditor
-      scope="system"
-      status={status.value}
-      actions={{ check, claim, release }}
-      publicOrigin={webConfig.publicOrigin}
-      basePath="/s"
-      idPath={`/s/${overview.value.pkSystemHid}`}
-      idLabel="PluralKit ID"
-    />
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/appearance/page.tsx b/apps/web/src/app/manage/[systemId]/appearance/page.tsx
deleted file mode 100644
index ba10d14..0000000
--- a/apps/web/src/app/manage/[systemId]/appearance/page.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { resolveTheme, THEME_TOKENS } from "@pkviewer/shared";
-import { ThemeEditor } from "@/components/manage/ThemeEditor.tsx";
-import { manageApi, type SystemOverview } from "@/lib/manage-api.ts";
-import { saveSystemTheme } from "../../actions.ts";
-
-export const metadata: Metadata = { title: "Appearance" };
-
-export default async function AppearancePage({
-  params,
-}: {
-  params: Promise<{ systemId: string }>;
-}) {
-  const { systemId } = await params;
-
-  const [theme, overview] = await Promise.all([
-    manageApi.get<{ tokens: Record<string, string | null> }>(`/manage/systems/${systemId}/theme`),
-    manageApi.get<SystemOverview>(`/manage/systems/${systemId}`),
-  ]);
-  if (!theme.ok || !overview.ok) notFound();
-
-  // At system level the layer beneath is the platform default, so that is what
-  // "inherited" shows.
-  const platform = resolveTheme({}, {}).light;
-  const inherited: Record<string, string> = {};
-  for (const def of THEME_TOKENS) inherited[def.key] = platform[def.key] ?? "";
-
-  async function save(values: Record<string, string | null>) {
-    "use server";
-    return saveSystemTheme(systemId, values);
-  }
-
-  return (
-    <>
-      <p className="mg-note">
-        These settings define the default appearance for this system and every
-        member page under it. A member can override any of it on their own page.
-      </p>
-      <ThemeEditor
-        level="system"
-        initialValues={theme.value.tokens ?? {}}
-        inheritedFrom={inherited}
-        saveAction={save}
-        previewName={overview.value.name ?? overview.value.pkSystemHid}
-      />
-    </>
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/css/page.tsx b/apps/web/src/app/manage/[systemId]/css/page.tsx
deleted file mode 100644
index e7c7168..0000000
--- a/apps/web/src/app/manage/[systemId]/css/page.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import type { CssIssue } from "@pkviewer/shared";
-import { CssEditor } from "@/components/manage/CssEditor.tsx";
-import { manageApi } from "@/lib/manage-api.ts";
-
-export const metadata: Metadata = { title: "Advanced CSS" };
-
-export default async function CssPage({
-  params,
-}: {
-  params: Promise<{ systemId: string }>;
-}) {
-  const { systemId } = await params;
-  const result = await manageApi.get<{ source: string; issues: CssIssue[] }>(
-    `/manage/systems/${systemId}/css`,
-  );
-  if (!result.ok) notFound();
-
-  return (
-    <CssEditor
-      systemId={systemId}
-      initialSource={result.value.source}
-      initialIssues={result.value.issues}
-    />
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/directory/page.tsx b/apps/web/src/app/manage/[systemId]/directory/page.tsx
deleted file mode 100644
index fd17c71..0000000
--- a/apps/web/src/app/manage/[systemId]/directory/page.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { resolveComposition } from "@pkviewer/shared";
-import { CompositionEditor } from "@/components/manage/CompositionEditor.tsx";
-import { manageApi } from "@/lib/manage-api.ts";
-import { saveSystemComposition } from "../../actions.ts";
-
-export const metadata: Metadata = { title: "Layout" };
-
-/**
- * Composition settings.
- *
- * Kept in its own section rather than mixed into Appearance, because it answers
- * a different question: what is on the page and how it is arranged, rather than
- * how it looks.
- */
-export default async function DirectoryPage({
-  params,
-}: {
-  params: Promise<{ systemId: string }>;
-}) {
-  const { systemId } = await params;
-  const stored = await manageApi.get<{ composition: Record<string, string> }>(
-    `/manage/systems/${systemId}/theme`,
-  );
-  if (!stored.ok) notFound();
-
-  const resolved = resolveComposition(stored.value.composition ?? {}, {});
-
-  async function save(values: Record<string, string>) {
-    "use server";
-    return saveSystemComposition(systemId, values);
-  }
-
-  return (
-    <>
-      <p className="mg-note">
-        These control what appears on your pages and how it is arranged. They are
-        separate from Appearance, which controls how things look.
-      </p>
-      <CompositionEditor initialValues={resolved} saveAction={save} />
-    </>
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/layout.tsx b/apps/web/src/app/manage/[systemId]/layout.tsx
deleted file mode 100644
index f6d9593..0000000
--- a/apps/web/src/app/manage/[systemId]/layout.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import { manageApi, type SystemOverview } from "@/lib/manage-api.ts";
-import { SystemNav } from "@/components/manage/SystemNav.tsx";
-
-/**
- * The per-system shell.
- *
- * Loading the system here doubles as the authorization check, and gives every
- * section the same frame: the system's name once at the top, section navigation
- * beside it, and one content column.
- *
- * It deliberately does NOT call notFound(): Next renders the not-found boundary
- * for a layout without setting a 404 status. Every page below does its own
- * check, so the 404 comes from there with the correct status.
- */
-export default async function SystemLayout({
-  children,
-  params,
-}: {
-  children: React.ReactNode;
-  params: Promise<{ systemId: string }>;
-}) {
-  const { systemId } = await params;
-  const result = await manageApi.get<SystemOverview>(`/manage/systems/${systemId}`);
-  if (!result.ok) return <>{children}</>;
-
-  const system = result.value;
-
-  return (
-    <div className="mg-shell">
-      <a className="mg-back" href="/manage">
-        Your systems
-      </a>
-      <div className="mg-syshead">
-        <h1>{system.name ?? system.pkSystemHid}</h1>
-        <p>Editing how this system appears on the web.</p>
-      </div>
-      <div className="mg-layout">
-        <SystemNav systemId={systemId} />
-        <div className="mg-column">{children}</div>
-      </div>
-    </div>
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/links/page.tsx b/apps/web/src/app/manage/[systemId]/links/page.tsx
deleted file mode 100644
index cbf6f99..0000000
--- a/apps/web/src/app/manage/[systemId]/links/page.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { SocialLinksEditor } from "@/components/manage/SocialLinksEditor.tsx";
-import { manageApi, type StoredSocial } from "@/lib/manage-api.ts";
-import { saveSystemSocials } from "../../actions.ts";
-
-export const metadata: Metadata = { title: "Social links" };
-
-export default async function LinksPage({
-  params,
-}: {
-  params: Promise<{ systemId: string }>;
-}) {
-  const { systemId } = await params;
-  const stored = await manageApi.get<{ links: StoredSocial[] }>(
-    `/manage/systems/${systemId}/socials`,
-  );
-  if (!stored.ok) notFound();
-
-  async function save(links: Array<{ platform: string; label: string; url: string }>) {
-    "use server";
-    return saveSystemSocials(systemId, links);
-  }
-
-  return (
-    <SocialLinksEditor
-      ownerLabel="your system page"
-      initialLinks={stored.value.links.map((l) => ({
-        platform: l.platform,
-        label: l.label ?? "",
-        url: l.url,
-      }))}
-      saveAction={save}
-    />
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/loading.tsx b/apps/web/src/app/manage/[systemId]/loading.tsx
deleted file mode 100644
index 74c74f1..0000000
--- a/apps/web/src/app/manage/[systemId]/loading.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-/** Section skeleton. Keeps the panel rhythm so the page does not reflow. */
-export default function SectionLoading() {
-  return (
-    <div aria-busy="true">
-      <p className="visually-hidden" role="status">Loading settings…</p>
-      {[0, 1].map((i) => (
-        <section className="mg-panel" key={i}>
-          <span className="mg-skel" style={{ width: "8rem", height: "1rem" }} />
-          <span className="mg-skel" style={{ width: "16rem", height: "0.8rem", marginTop: 8 }} />
-          <div className="mg-grid" style={{ marginTop: 18 }}>
-            {[0, 1, 2].map((j) => (
-              <span className="mg-skel" key={j} style={{ height: "3.2rem" }} />
-            ))}
-          </div>
-        </section>
-      ))}
-    </div>
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/members/[memberRef]/css/page.tsx b/apps/web/src/app/manage/[systemId]/members/[memberRef]/css/page.tsx
deleted file mode 100644
index 7ccca3b..0000000
--- a/apps/web/src/app/manage/[systemId]/members/[memberRef]/css/page.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import type { CssIssue } from "@pkviewer/shared";
-import { CssEditor } from "@/components/manage/CssEditor.tsx";
-import { PageHeader } from "@/components/manage/Shell.tsx";
-import { manageApi } from "@/lib/manage-api.ts";
-
-export const metadata: Metadata = { title: "Advanced CSS" };
-
-export default async function MemberCssPage({
-  params,
-}: {
-  params: Promise<{ systemId: string; memberRef: string }>;
-}) {
-  const { systemId, memberRef } = await params;
-  const result = await manageApi.get<{ source: string; issues: CssIssue[] }>(
-    `/manage/systems/${systemId}/members/${encodeURIComponent(memberRef)}/css`,
-  );
-  if (!result.ok) notFound();
-
-  return (
-    <>
-      <PageHeader
-        title=""
-        back={{
-          href: `/manage/${systemId}/members/${encodeURIComponent(memberRef)}`,
-          label: "Back to member",
-        }}
-      />
-      <CssEditor
-        systemId={systemId}
-        memberRef={memberRef}
-        initialSource={result.value.source}
-        initialIssues={result.value.issues}
-      />
-    </>
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/members/[memberRef]/page.tsx b/apps/web/src/app/manage/[systemId]/members/[memberRef]/page.tsx
deleted file mode 100644
index 1f0dc5c..0000000
--- a/apps/web/src/app/manage/[systemId]/members/[memberRef]/page.tsx
+++ /dev/null
@@ -1,156 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { ArrowLeft, BoxArrowUpRight, CodeSlash } from "react-bootstrap-icons";
-import { resolveTheme, THEME_TOKENS } from "@pkviewer/shared";
-import { SlugEditor, type SlugStatus } from "@/components/manage/SlugEditor.tsx";
-import { SocialLinksEditor } from "@/components/manage/SocialLinksEditor.tsx";
-import { ThemeEditor } from "@/components/manage/ThemeEditor.tsx";
-import { manageApi, type StoredSocial, type SystemOverview } from "@/lib/manage-api.ts";
-import { webConfig } from "@/lib/config.ts";
-import {
-  checkSlug,
-  claimSlugAction,
-  releaseSlugAction,
-  saveMemberSocials,
-  saveMemberTheme,
-} from "../../../actions.ts";
-
-export const metadata: Metadata = { title: "Member" };
-
-type MemberDetail = {
-  memberId: string;
-  pkMemberHid: string;
-  name: string | null;
-  displayName: string | null;
-  avatarUrl: string | null;
-  pronouns: string | null;
-  slug: string | null;
-  tokens: Record<string, string | null>;
-  socials: StoredSocial[];
-  systemTokens: Record<string, string | null>;
-};
-
-export default async function MemberPage({
-  params,
-}: {
-  params: Promise<{ systemId: string; memberRef: string }>;
-}) {
-  const { systemId, memberRef } = await params;
-
-  const [detail, overview] = await Promise.all([
-    manageApi.get<MemberDetail>(
-      `/manage/systems/${systemId}/members/${encodeURIComponent(memberRef)}`,
-    ),
-    manageApi.get<SystemOverview>(`/manage/systems/${systemId}`),
-  ]);
-  // A member PluralKit does not list publicly 404s here exactly as it does on
-  // the public site.
-  if (!detail.ok || !overview.ok) notFound();
-
-  const member = detail.value;
-  const name = member.displayName ?? member.name ?? member.pkMemberHid;
-
-  // What this member inherits is the SYSTEM's resolved appearance, so the
-  // editor shows the real inherited value rather than the platform default.
-  const systemResolved = resolveTheme(member.systemTokens ?? {}, {}).light;
-  const inherited: Record<string, string> = {};
-  for (const def of THEME_TOKENS) inherited[def.key] = systemResolved[def.key] ?? "";
-
-  const publicUrl = `${webConfig.publicOrigin}${overview.value.publicPath}/${member.slug ?? member.pkMemberHid}`;
-
-  // Member addresses are scoped to their system, so the system's own address
-  // forms the prefix. A member row exists by now: loading this page created it.
-  const slugStatus = await manageApi.get<SlugStatus>(
-    `/manage/slugs/status?scope=member&subjectId=${encodeURIComponent(member.memberId)}`,
-  );
-
-  async function saveTheme(values: Record<string, string | null>) {
-    "use server";
-    return saveMemberTheme(systemId, memberRef, values);
-  }
-
-  async function saveLinks(links: Array<{ platform: string; label: string; url: string }>) {
-    "use server";
-    return saveMemberSocials(systemId, memberRef, links);
-  }
-
-  const memberId = member.memberId;
-  async function checkMemberSlug(slug: string) {
-    "use server";
-    return checkSlug("member", memberId, systemId, slug);
-  }
-  async function claimMemberSlug(slug: string) {
-    "use server";
-    return claimSlugAction("member", memberId, slug);
-  }
-  async function releaseMemberSlug() {
-    "use server";
-    return releaseSlugAction("member", memberId);
-  }
-
-  return (
-    <>
-      <p style={{ marginTop: 0 }}>
-        <a className="btn" href={`/manage/${systemId}/members`}>
-          <ArrowLeft aria-hidden="true" /> All members
-        </a>{" "}
-        <a className="btn" href={publicUrl} target="_blank" rel="noopener">
-          Open public page <BoxArrowUpRight aria-hidden="true" />
-        </a>{" "}
-        <a
-          className="btn"
-          href={`/manage/${systemId}/members/${encodeURIComponent(memberRef)}/css`}
-        >
-          <CodeSlash aria-hidden="true" /> Advanced CSS
-        </a>
-      </p>
-
-      <div className="mg-head">
-        <h1>{name}</h1>
-        <p>
-          {member.pronouns ? `${member.pronouns} · ` : ""}
-          PluralKit ID {member.pkMemberHid}
-        </p>
-      </div>
-
-      <p className="mg-note">
-        Every setting here starts out following your system appearance. Override
-        only what you want different on this member&apos;s page.
-      </p>
-
-      {slugStatus.ok ? (
-        <SlugEditor
-          scope="member"
-          status={slugStatus.value}
-          actions={{
-            check: checkMemberSlug,
-            claim: claimMemberSlug,
-            release: releaseMemberSlug,
-          }}
-          publicOrigin={webConfig.publicOrigin}
-          basePath={overview.value.publicPath}
-          idPath={`${overview.value.publicPath}/${member.pkMemberHid}`}
-          idLabel="PluralKit ID"
-        />
-      ) : null}
-
-      <ThemeEditor
-        level="member"
-        initialValues={member.tokens ?? {}}
-        inheritedFrom={inherited}
-        saveAction={saveTheme}
-        previewName={name}
-      />
-
-      <SocialLinksEditor
-        ownerLabel={`${name}'s page`}
-        initialLinks={member.socials.map((l) => ({
-          platform: l.platform,
-          label: l.label ?? "",
-          url: l.url,
-        }))}
-        saveAction={saveLinks}
-      />
-    </>
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/members/page.tsx b/apps/web/src/app/manage/[systemId]/members/page.tsx
deleted file mode 100644
index cda744f..0000000
--- a/apps/web/src/app/manage/[systemId]/members/page.tsx
+++ /dev/null
@@ -1,111 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { ChevronRight, ExclamationTriangle, InfoCircle, PersonCircle } from "react-bootstrap-icons";
-import { Note, PageHeader, Section } from "@/components/manage/Shell.tsx";
-import { manageApi, type ManagedMemberSummary } from "@/lib/manage-api.ts";
-
-export const metadata: Metadata = { title: "Members" };
-
-/**
- * The member list.
- *
- * These are the members PluralKit returns publicly. Signing in as the owner
- * does not change what the public API returns and pkviewer does not ask for
- * more, so a member kept private in PluralKit is absent here — the management
- * UI must not become a way to confirm one exists.
- */
-export default async function MembersPage({
-  params,
-}: {
-  params: Promise<{ systemId: string }>;
-}) {
-  const { systemId } = await params;
-  const result = await manageApi.get<{ members: ManagedMemberSummary[]; reachable: boolean }>(
-    `/manage/systems/${systemId}/members`,
-  );
-  if (!result.ok) notFound();
-
-  const { members, reachable } = result.value;
-
-  return (
-    <>
-      <PageHeader
-        title="Members"
-        description="Give any member's page its own look, address and links. Everything starts out following your system."
-      />
-
-      <Note icon={<InfoCircle aria-hidden="true" />}>
-        These are the members PluralKit lists publicly. Anything you keep private
-        in PluralKit stays private and does not appear here.
-      </Note>
-
-      {!reachable ? (
-        <Note icon={<ExclamationTriangle aria-hidden="true" />} tone="warn" role="status">
-          PluralKit could not be reached, so the member list is unavailable right
-          now. Try again shortly.
-        </Note>
-      ) : members.length === 0 ? (
-        <Section
-          title="No public members"
-          description="This system has no publicly listed members, so its page shows no directory."
-        >
-          <div />
-        </Section>
-      ) : (
-        <Section
-          title={`${members.length} public ${members.length === 1 ? "member" : "members"}`}
-          description="Choose a member to edit their page."
-        >
-          <ul className="mg-list">
-            {members.map((member) => (
-              <li key={member.pkMemberUuid}>
-                <MemberRow systemId={systemId} member={member} />
-              </li>
-            ))}
-          </ul>
-        </Section>
-      )}
-    </>
-  );
-}
-
-/**
- * One member.
- *
- * The name and its details are separate block-level elements in a flex column,
- * and the details are individual elements separated by a CSS gap and generated
- * separator. Nothing here relies on whitespace in the markup to create spacing —
- * two inline spans with no layout ran together as "CherryXe/Xem · cherry".
- */
-function MemberRow({
-  systemId,
-  member,
-}: {
-  systemId: string;
-  member: ManagedMemberSummary;
-}) {
-  const name = member.displayName ?? member.name ?? member.pkMemberHid;
-
-  return (
-    <a className="mg-item" href={`/manage/${systemId}/members/${member.pkMemberHid}`}>
-      {member.avatarUrl ? (
-        <img className="mg-thumb mg-thumb--round" src={member.avatarUrl} alt="" loading="lazy" />
-      ) : (
-        <PersonCircle className="mg-thumb mg-thumb--round" aria-hidden="true" />
-      )}
-
-      <span className="mg-identity">
-        <span className="name">{name}</span>
-        <span className="meta">
-          {member.pronouns ? <span>{member.pronouns}</span> : null}
-          <code>{member.slug ?? member.pkMemberHid}</code>
-        </span>
-      </span>
-
-      <span className="mg-tag" data-tone={member.hasThemeOverrides ? "accent" : undefined}>
-        {member.hasThemeOverrides ? "Custom" : "Inherits"}
-      </span>
-      <ChevronRight aria-hidden="true" className="mg-chevron" />
-    </a>
-  );
-}
diff --git a/apps/web/src/app/manage/[systemId]/page.tsx b/apps/web/src/app/manage/[systemId]/page.tsx
deleted file mode 100644
index 302bf27..0000000
--- a/apps/web/src/app/manage/[systemId]/page.tsx
+++ /dev/null
@@ -1,122 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { ClockHistory, ExclamationTriangle, InfoCircle, PencilSquare } from "react-bootstrap-icons";
-import { BadgeOffers } from "@/components/manage/BadgeOffers.tsx";
-import { PublicUrl } from "@/components/manage/PublicUrl.tsx";
-import { Note, PageHeader, Section } from "@/components/manage/Shell.tsx";
-import { manageApi, type SystemOverview } from "@/lib/manage-api.ts";
-import type { OfferedBadge } from "@pkviewer/shared";
-import { webConfig } from "@/lib/config.ts";
-
-export const metadata: Metadata = { title: "Overview" };
-
-export default async function OverviewPage({
-  params,
-}: {
-  params: Promise<{ systemId: string }>;
-}) {
-  const { systemId } = await params;
-  const result = await manageApi.get<SystemOverview>(`/manage/systems/${systemId}`);
-  if (!result.ok) notFound();
-  const system = result.value;
-
-  const offers = await manageApi.get<{ badges: OfferedBadge[] }>(
-    `/manage/systems/${systemId}/badges`,
-  );
-
-  const publicUrl = `${webConfig.publicOrigin}${system.publicPath}`;
-  const idUrl = `${webConfig.publicOrigin}/s/${system.pkSystemHid}`;
-
-  return (
-    <>
-      <PageHeader
-        title="Overview"
-        description="Where this system lives on the web, and what visitors see."
-      />
-
-      {!system.reachable ? (
-        <Note icon={<ExclamationTriangle aria-hidden="true" />} tone="warn" role="status">
-          PluralKit could not be reached, so some details may be out of date. Your
-          settings are unaffected and still save normally.
-        </Note>
-      ) : null}
-
-      <Section
-        title="Public page"
-        description="The link to share."
-        actions={
-          <a className="btn" href={`/manage/${systemId}/address`}>
-            <PencilSquare aria-hidden="true" />
-            {system.slug ? "Change address" : "Choose an address"}
-          </a>
-        }
-      >
-        {system.slug ? (
-          <PublicUrl
-            url={publicUrl}
-            secondary={{
-              url: idUrl,
-              note: "Its PluralKit ID address also works and always will:",
-            }}
-          />
-        ) : (
-          <>
-            <PublicUrl url={publicUrl} label="Current address" />
-            <Note icon={<InfoCircle aria-hidden="true" />}>
-              This system is public already. It has no chosen address yet, so it
-              uses its PluralKit ID. Choosing one makes the link friendlier to
-              share, and the ID address keeps working either way.
-            </Note>
-          </>
-        )}
-      </Section>
-
-      <Section title="What visitors see" description="Taken from PluralKit's public information.">
-        <dl className="mg-defs">
-          <div className="mg-def">
-            <dt>Name</dt>
-            <dd>{system.name ?? "Not set"}</dd>
-          </div>
-          <div className="mg-def">
-            <dt>Members listed</dt>
-            <dd>
-              {system.memberCount === null
-                ? "Unknown"
-                : `${system.memberCount} public ${system.memberCount === 1 ? "member" : "members"}`}
-            </dd>
-          </div>
-          <div className="mg-def">
-            <dt>Description</dt>
-            <dd>
-              {system.description
-                ? `${system.description.slice(0, 160)}${system.description.length > 160 ? "…" : ""}`
-                : "Not set"}
-            </dd>
-          </div>
-        </dl>
-      </Section>
-
-      {offers.ok ? <BadgeOffers systemId={systemId} badges={offers.value.badges} /> : null}
-
-      <Section
-        title="Data freshness"
-        description="pkviewer keeps a copy of PluralKit's public data so pages stay fast, and stay up if PluralKit is briefly unavailable."
-      >
-        <Note icon={<ClockHistory aria-hidden="true" />}>
-          {system.snapshotAgeMs === null
-            ? "No cached copy yet."
-            : `Last refreshed ${formatAge(system.snapshotAgeMs)} ago.`}
-        </Note>
-      </Section>
-    </>
-  );
-}
-
-function formatAge(ms: number): string {
-  const minutes = Math.round(ms / 60_000);
-  if (minutes < 1) return "less than a minute";
-  if (minutes < 60) return `${minutes} minute${minutes === 1 ? "" : "s"}`;
-  const hours = Math.round(minutes / 60);
-  if (hours < 24) return `${hours} hour${hours === 1 ? "" : "s"}`;
-  return `${Math.round(hours / 24)} days`;
-}
diff --git a/apps/web/src/app/manage/actions.ts b/apps/web/src/app/manage/actions.ts
deleted file mode 100644
index 9535211..0000000
--- a/apps/web/src/app/manage/actions.ts
+++ /dev/null
@@ -1,341 +0,0 @@
-"use server";
-
-import { revalidatePath } from "next/cache";
-import type { CssIssue } from "@pkviewer/shared";
-import { manageApi } from "@/lib/manage-api.ts";
-
-/**
- * Server actions for the management UI.
- *
- * These are thin: they forward to the API, which re-validates everything and
- * re-checks the grant. The client is never trusted to decide what it may
- * manage, and these actions do not decide it either — they only carry the
- * request and the session cookie.
- */
-
-export type ActionResult = { ok: boolean; error?: string };
-
-function messageFor(error: string, status: number): string {
-  switch (error) {
-    case "unauthenticated":
-      return "Your session has expired. Sign in again.";
-    case "not_found":
-      return "You do not have access to this system.";
-    case "validation_failed":
-      return "Some settings were not accepted. Check the values and try again.";
-    case "api_unreachable":
-      return "Could not reach pkviewer. Check your connection and try again.";
-    default:
-      return status >= 500 ? "Something went wrong saving. Please try again." : "Could not save.";
-  }
-}
-
-export async function saveSystemTheme(
-  systemId: string,
-  tokens: Record<string, string | null>,
-): Promise<ActionResult> {
-  const result = await manageApi.put(`/manage/systems/${systemId}/theme`, { tokens });
-  if (!result.ok) return { ok: false, error: messageFor(result.error, result.status) };
-  revalidatePath(`/manage/${systemId}`, "layout");
-  return { ok: true };
-}
-
-export async function saveSystemComposition(
-  systemId: string,
-  composition: Record<string, string>,
-): Promise<ActionResult> {
-  const result = await manageApi.put(`/manage/systems/${systemId}/theme`, { composition });
-  if (!result.ok) return { ok: false, error: messageFor(result.error, result.status) };
-  revalidatePath(`/manage/${systemId}`, "layout");
-  return { ok: true };
-}
-
-export async function saveMemberTheme(
-  systemId: string,
-  memberRef: string,
-  tokens: Record<string, string | null>,
-): Promise<ActionResult> {
-  const result = await manageApi.put(
-    `/manage/systems/${systemId}/members/${encodeURIComponent(memberRef)}/theme`,
-    { tokens },
-  );
-  if (!result.ok) return { ok: false, error: messageFor(result.error, result.status) };
-  revalidatePath(`/manage/${systemId}/members/${memberRef}`);
-  return { ok: true };
-}
-
-export async function saveSystemSocials(
-  systemId: string,
-  links: Array<{ platform: string; label: string; url: string }>,
-): Promise<ActionResult> {
-  const result = await manageApi.put(`/manage/systems/${systemId}/socials`, { links });
-  if (!result.ok) return { ok: false, error: messageFor(result.error, result.status) };
-  revalidatePath(`/manage/${systemId}/links`);
-  return { ok: true };
-}
-
-export async function saveMemberSocials(
-  systemId: string,
-  memberRef: string,
-  links: Array<{ platform: string; label: string; url: string }>,
-): Promise<ActionResult> {
-  const result = await manageApi.put(
-    `/manage/systems/${systemId}/members/${encodeURIComponent(memberRef)}/socials`,
-    { links },
-  );
-  if (!result.ok) return { ok: false, error: messageFor(result.error, result.status) };
-  revalidatePath(`/manage/${systemId}/members/${memberRef}`);
-  return { ok: true };
-}
-
-// --------------------------------------------------------------- addresses
-
-/**
- * Address (slug) operations.
- *
- * All validation and the whole reservation lifecycle live in the API. These
- * carry the request and translate the server's answer into something a person
- * can read; they never decide availability themselves.
- */
-
-export async function checkSlug(
-  scope: "system" | "member",
-  subjectId: string,
-  systemId: string,
-  slug: string,
-): Promise<{ available: boolean; message?: string; availableAt?: number }> {
-  const params = new URLSearchParams({ scope, subjectId, slug, systemId });
-  const result = await manageApi.get<{
-    available: boolean;
-    reason?: string;
-    until?: number;
-    message?: string;
-  }>(`/manage/slugs/check?${params.toString()}`);
-
-  if (!result.ok) return { available: false, message: "Could not check that address." };
-  const value = result.value;
-  if (value.available) return { available: true };
-  return {
-    available: false,
-    ...(value.message ? { message: value.message } : {}),
-    ...(value.until ? { availableAt: value.until } : {}),
-  };
-}
-
-export async function claimSlugAction(
-  scope: "system" | "member",
-  subjectId: string,
-  slug: string,
-): Promise<{
-  ok: boolean;
-  error?: string;
-  slug?: string;
-  previousSlug?: string | null;
-  warnings?: Array<{ code: string; memberHid?: string }>;
-}> {
-  const result = await manageApi.post<{
-    slug: string;
-    previousSlug: string | null;
-    warnings: Array<{ code: string; memberHid?: string }>;
-  }>("/manage/slugs/claim", { scope, subjectId, slug });
-
-  if (!result.ok) {
-    // A held address never names who holds it.
-    const message =
-      result.error === "taken"
-        ? "That address is already in use."
-        : result.error === "reserved"
-          ? "That address is held for someone else at the moment."
-          : result.error === "conflict"
-            ? "Someone claimed that address just now. Try another."
-            : result.error === "invalid"
-              ? "That address is not allowed."
-              : result.error === "forbidden" || result.error === "not_found"
-                ? "You do not have access to change this address."
-                : "Could not set that address.";
-    return { ok: false, error: message };
-  }
-
-  revalidatePath("/manage", "layout");
-  return {
-    ok: true,
-    slug: result.value.slug,
-    previousSlug: result.value.previousSlug,
-    warnings: result.value.warnings,
-  };
-}
-
-export async function releaseSlugAction(
-  scope: "system" | "member",
-  subjectId: string,
-): Promise<{ ok: boolean; error?: string; reservedUntil?: number | null }> {
-  const result = await manageApi.post<{ released: string; reservedUntil: number | null }>(
-    "/manage/slugs/release",
-    { scope, subjectId, confirm: true },
-  );
-  if (!result.ok) {
-    return {
-      ok: false,
-      error:
-        result.error === "no_slug"
-          ? "There is no address to release."
-          : "Could not release that address.",
-    };
-  }
-  revalidatePath("/manage", "layout");
-  return { ok: true, reservedUntil: result.value.reservedUntil };
-}
-
-// ------------------------------------------------------------------ claiming
-
-/**
- * Claiming a system.
- *
- * Two routes, in preference order. Neither requires a PluralKit token, and the
- * product must never imply otherwise.
- *
- *   1. Discord link — PluralKit already knows which system your Discord account
- *      belongs to. Nothing changes hands.
- *   2. Description code — put a short code in your system description for a
- *      moment so pkviewer can see it.
- *
- * The Discord identities used for the first are read from the session by the
- * API, never sent from here (invariant S1).
- */
-
-export type DiscoveredSystem = { hid: string; uuid: string; name: string | null };
-
-export async function discoverSystems(): Promise<
-  { ok: true; systems: DiscoveredSystem[] } | { ok: false; error: string }
-> {
-  const result = await manageApi.post<{ systems: DiscoveredSystem[] }>("/claims/discover", {});
-  if (!result.ok) {
-    return {
-      ok: false,
-      error:
-        result.error === "unauthenticated"
-          ? "Your session has expired. Sign in again."
-          : "Could not reach PluralKit just now. Try again shortly.",
-    };
-  }
-  return { ok: true, systems: result.value.systems };
-}
-
-function claimError(error: string): string {
-  switch (error) {
-    case "already_claimed":
-      return "That system is already managed on pkviewer. If it should be yours, get in touch.";
-    case "not_verified":
-      return "pkviewer could not confirm that system belongs to you.";
-    case "not_found":
-      return "PluralKit does not have a system with that ID.";
-    case "upstream_unavailable":
-      return "PluralKit could not be reached. Try again shortly.";
-    default:
-      return "That did not work. Try again.";
-  }
-}
-
-export async function claimViaDiscord(
-  systemRef: string,
-): Promise<{ ok: true; systemId: string } | { ok: false; error: string }> {
-  const result = await manageApi.post<{ systemId: string }>("/claims/discord-link", { systemRef });
-  if (!result.ok) return { ok: false, error: claimError(result.error) };
-  revalidatePath("/manage", "layout");
-  return { ok: true, systemId: result.value.systemId };
-}
-
-export async function startChallenge(
-  systemRef: string,
-): Promise<
-  { ok: true; challengeId: string; nonce: string; systemHid: string } | { ok: false; error: string }
-> {
-  const result = await manageApi.post<{ challengeId: string; nonce: string; systemHid: string }>(
-    "/claims/challenge",
-    { systemRef },
-  );
-  if (!result.ok) return { ok: false, error: claimError(result.error) };
-  return { ok: true, ...result.value };
-}
-
-export async function verifyChallenge(
-  challengeId: string,
-): Promise<{ ok: true; systemId: string } | { ok: false; error: string }> {
-  const result = await manageApi.post<{ systemId: string }>("/claims/challenge/verify", {
-    challengeId,
-  });
-  if (!result.ok) {
-    const message =
-      result.error === "not_verified"
-        ? "The code is not in the system description yet. Save it in PluralKit, then check again."
-        : result.error === "description_unavailable"
-          ? "That system's description is not public, so pkviewer cannot read the code. Make it public briefly, or claim from the linked Discord account instead."
-          : result.error === "challenge_expired"
-            ? "That code expired. Start again for a new one."
-            : result.error === "too_many_attempts"
-              ? "Too many checks. Start again for a new code."
-              : claimError(result.error);
-    return { ok: false, error: message };
-  }
-  revalidatePath("/manage", "layout");
-  return { ok: true, systemId: result.value.systemId };
-}
-
-/**
- * Accepting, declining or hiding a badge.
- *
- * A system-scoped action behind the ordinary grant: granting a badge is an
- * admin power, but deciding whether it appears on your own page is not.
- */
-export async function respondToBadgeAction(
-  systemId: string,
-  badgeId: string,
-  action: "accept" | "decline" | "hide" | "show",
-): Promise<ActionResult> {
-  const result = await manageApi.post(`/manage/systems/${systemId}/badges/${badgeId}`, { action });
-  if (!result.ok) return { ok: false, error: messageFor(result.error, result.status) };
-  revalidatePath(`/manage/${systemId}`, "layout");
-  // The public page renders accepted badges, so it has to re-render too.
-  revalidatePath("/s", "layout");
-  return { ok: true };
-}
-
-export type CssSaveResult = ActionResult & {
-  issues?: CssIssue[];
-  kept?: number;
-};
-
-/**
- * Saves custom CSS.
- *
- * The API compiles it and answers with what it kept and what it dropped, so
- * the editor reports the truth rather than guessing — a rule that was silently
- * discarded looks identical to a rule that did nothing.
- */
-export async function saveSystemCss(systemId: string, css: string): Promise<CssSaveResult> {
-  const result = await manageApi.put<{ issues?: CssSaveResult["issues"]; kept?: number }>(
-    `/manage/systems/${systemId}/css`,
-    { css },
-  );
-  if (!result.ok) {
-    return { ok: false, error: messageFor(result.error, result.status) };
-  }
-  revalidatePath(`/manage/${systemId}`, "layout");
-  revalidatePath("/s", "layout");
-  return { ok: true, issues: result.value.issues ?? [], kept: result.value.kept ?? 0 };
-}
-
-export async function saveMemberCss(
-  systemId: string,
-  memberRef: string,
-  css: string,
-): Promise<CssSaveResult> {
-  const result = await manageApi.put<{ issues?: CssIssue[]; kept?: number }>(
-    `/manage/systems/${systemId}/members/${encodeURIComponent(memberRef)}/css`,
-    { css },
-  );
-  if (!result.ok) return { ok: false, error: messageFor(result.error, result.status) };
-  revalidatePath(`/manage/${systemId}`, "layout");
-  revalidatePath("/s", "layout");
-  return { ok: true, issues: result.value.issues ?? [], kept: result.value.kept ?? 0 };
-}
diff --git a/apps/web/src/app/manage/claim/page.tsx b/apps/web/src/app/manage/claim/page.tsx
deleted file mode 100644
index e32fdda..0000000
--- a/apps/web/src/app/manage/claim/page.tsx
+++ /dev/null
@@ -1,66 +0,0 @@
-import type { Metadata } from "next";
-import { ArrowLeft } from "react-bootstrap-icons";
-import { ClaimFlow } from "@/components/manage/ClaimFlow.tsx";
-import {
-  claimViaDiscord,
-  discoverSystems,
-  startChallenge,
-  verifyChallenge,
-} from "../actions.ts";
-
-export const metadata: Metadata = { title: "Claim a system" };
-
-/**
- * Discovery runs on load so the common case — your Discord account is linked to
- * your system — is already answered by the time the page appears, rather than
- * hiding behind a button.
- */
-export default async function ClaimPage() {
-  const discovered = await discoverSystems();
-
-  async function discover() {
-    "use server";
-    return discoverSystems();
-  }
-  async function claim(ref: string) {
-    "use server";
-    return claimViaDiscord(ref);
-  }
-  async function begin(ref: string) {
-    "use server";
-    return startChallenge(ref);
-  }
-  async function verify(id: string) {
-    "use server";
-    return verifyChallenge(id);
-  }
-
-  return (
-    <div className="mg-shell" style={{ maxWidth: "46rem" }}>
-      <p style={{ marginTop: 0 }}>
-        <a className="btn" href="/manage">
-          <ArrowLeft aria-hidden="true" /> Your systems
-        </a>
-      </p>
-
-      <div className="mg-head">
-        <h1>Claim a system</h1>
-        <p>
-          Claiming lets you manage how a system appears on the web. It does not
-          change anything in PluralKit.
-        </p>
-      </div>
-
-      <ClaimFlow
-        actions={{
-          discover,
-          claim,
-          startChallenge: begin,
-          verifyChallenge: verify,
-        }}
-        initialSystems={discovered.ok ? discovered.systems : []}
-        initialError={discovered.ok ? null : discovered.error}
-      />
-    </div>
-  );
-}
diff --git a/apps/web/src/app/manage/error.tsx b/apps/web/src/app/manage/error.tsx
deleted file mode 100644
index 091a9ec..0000000
--- a/apps/web/src/app/manage/error.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-"use client";
-
-import { ArrowClockwise, ExclamationTriangle } from "react-bootstrap-icons";
-
-/**
- * Management error boundary.
- *
- * Says what happened in ordinary words and offers the one useful action. The
- * error object is deliberately not rendered: it can carry internal detail, and
- * nothing in it would help the person reading the page.
- */
-export default function ManageError({ reset }: { error: Error; reset: () => void }) {
-  return (
-    <div className="mg-shell">
-      <section className="mg-panel" role="alert">
-        <h2>
-          <ExclamationTriangle aria-hidden="true" /> This page could not be loaded
-        </h2>
-        <p className="hint">
-          Something went wrong on our side. Your settings have not been changed.
-        </p>
-        <button type="button" className="primary" onClick={reset}>
-          <ArrowClockwise aria-hidden="true" /> Try again
-        </button>{" "}
-        <a className="btn" href="/manage">Back to your systems</a>
-      </section>
-    </div>
-  );
-}
diff --git a/apps/web/src/app/manage/layout.tsx b/apps/web/src/app/manage/layout.tsx
deleted file mode 100644
index e1782a4..0000000
--- a/apps/web/src/app/manage/layout.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import type { Metadata } from "next";
-import { redirect } from "next/navigation";
-import { BoxArrowUpRight } from "react-bootstrap-icons";
-import { isAuthenticated, isPlatformAdmin } from "@/lib/manage-api.ts";
-import { webConfig } from "@/lib/config.ts";
-import { Logo } from "@/components/Logo.tsx";
-
-export const metadata: Metadata = {
-  title: { default: "Manage", template: "%s · Manage · pkviewer" },
-  robots: { index: false, follow: false },
-};
-
-/**
- * The management shell.
- *
- * Every /manage route requires a session, checked here so no page has to
- * remember to. The server remains authoritative: this redirect is a courtesy
- * for humans, and the API refuses unauthenticated calls regardless.
- */
-export default async function ManageLayout({ children }: { children: React.ReactNode }) {
-  if (!(await isAuthenticated())) {
-    redirect("/login?return_to=/manage");
-  }
-
-  // Shown only to admins, but this is presentation: /admin re-checks the grant
-  // on the server, so hiding the link is not what keeps anyone out.
-  const admin = await isPlatformAdmin();
-
-  return (
-    <div className="mg">
-      <header className="mg-bar">
-        <a className="mg-brand" href="/manage">
-          <Logo />
-          pkviewer
-        </a>
-        <span className="mg-bar-note">Management</span>
-        <span className="spacer" />
-        {admin ? <a className="btn" href="/admin">Admin</a> : null}
-        <a className="btn" href={webConfig.docsUrl} rel="noopener">
-          Docs <BoxArrowUpRight aria-hidden="true" />
-        </a>
-        <a className="btn" href={`${webConfig.publicOrigin}/`}>
-          Public site <BoxArrowUpRight aria-hidden="true" />
-        </a>
-        <form action="/manage/signout" method="post">
-          <button type="submit" className="ghost">Sign out</button>
-        </form>
-      </header>
-      {children}
-    </div>
-  );
-}
diff --git a/apps/web/src/app/manage/loading.tsx b/apps/web/src/app/manage/loading.tsx
deleted file mode 100644
index 1467c3e..0000000
--- a/apps/web/src/app/manage/loading.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * A stable skeleton rather than a spinner.
- *
- * The shell keeps its shape while data arrives, so nothing jumps when it does
- * and there is no moment where controls look ready before they are.
- */
-export default function ManageLoading() {
-  return (
-    <div className="mg-shell" aria-busy="true">
-      <p className="visually-hidden" role="status">Loading your systems…</p>
-      <div className="mg-head">
-        <span className="mg-skel" style={{ width: "12rem", height: "1.4rem" }} />
-        <span className="mg-skel" style={{ width: "22rem", height: "0.9rem", marginTop: 8 }} />
-      </div>
-      <ul className="mg-list">
-        {[0, 1].map((i) => (
-          <li className="mg-card" key={i}>
-            <span className="mg-skel mg-thumb" />
-            <span className="grow">
-              <span className="mg-skel" style={{ width: "9rem", height: "1rem" }} />
-              <span className="mg-skel" style={{ width: "15rem", height: "0.8rem", marginTop: 6 }} />
-            </span>
-          </li>
-        ))}
-      </ul>
-    </div>
-  );
-}
diff --git a/apps/web/src/app/manage/not-found.tsx b/apps/web/src/app/manage/not-found.tsx
deleted file mode 100644
index 979649e..0000000
--- a/apps/web/src/app/manage/not-found.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { QuestionCircle } from "react-bootstrap-icons";
-
-/**
- * One not-found page for the management area.
- *
- * A system that does not exist and a system this account cannot manage land
- * here and read identically. Distinguishing them would confirm the system
- * exists on pkviewer to someone with no access to it.
- */
-export default function ManageNotFound() {
-  return (
-    <div className="mg-shell">
-      <section className="mg-panel">
-        <h2>
-          <QuestionCircle aria-hidden="true" /> Not found
-        </h2>
-        <p className="hint">
-          This is not something you can manage. It may not exist, or it may
-          belong to someone else.
-        </p>
-        <a className="btn" href="/manage">Back to your systems</a>
-      </section>
-    </div>
-  );
-}
diff --git a/apps/web/src/app/manage/page.tsx b/apps/web/src/app/manage/page.tsx
deleted file mode 100644
index 93d6ede..0000000
--- a/apps/web/src/app/manage/page.tsx
+++ /dev/null
@@ -1,128 +0,0 @@
-import {
-  ArrowRight,
-  BoxArrowUpRight,
-  ExclamationTriangle,
-  PersonCircle,
-  PlusLg,
-} from "react-bootstrap-icons";
-import { Note, PageHeader, Section } from "@/components/manage/Shell.tsx";
-import { manageApi, type ManagedSystemSummary } from "@/lib/manage-api.ts";
-import { webConfig } from "@/lib/config.ts";
-
-/**
- * The dashboard.
- *
- * Lists only systems this account holds a grant for. The list comes from the
- * server already filtered — the client is never sent systems it may not manage
- * and asked to hide them.
- */
-export default async function ManageDashboard() {
-  const result = await manageApi.get<{ systems: ManagedSystemSummary[] }>("/manage/systems");
-
-  if (!result.ok) {
-    return (
-      <div className="mg-shell">
-        <PageHeader title="Your systems" />
-        <Note icon={<ExclamationTriangle aria-hidden="true" />} tone="warn" role="alert">
-          Your systems could not be loaded right now. Please refresh in a moment.
-        </Note>
-      </div>
-    );
-  }
-
-  const systems = result.value.systems;
-  if (systems.length === 0) return <EmptyState />;
-
-  return (
-    <div className="mg-shell">
-      <PageHeader
-        title="Your systems"
-        description="Choose a system to edit how it appears on the web."
-        actions={
-          <a className="btn" href="/manage/claim">
-            <PlusLg aria-hidden="true" /> Claim a system
-          </a>
-        }
-      />
-
-      <ul className="mg-list">
-        {systems.map((system) => (
-          <li key={system.systemId}>
-            <a className="mg-item" href={`/manage/${system.systemId}`}>
-              {system.avatarUrl ? (
-                <img className="mg-thumb mg-thumb--round" src={system.avatarUrl} alt="" />
-              ) : (
-                <PersonCircle className="mg-thumb mg-thumb--round" aria-hidden="true" />
-              )}
-
-              <span className="mg-identity">
-                <span className="name">{system.name ?? system.pkSystemHid}</span>
-                <span className="meta">
-                  <code>
-                    {webConfig.publicOrigin.replace(/^https?:\/\//, "")}
-                    {system.publicPath}
-                  </code>
-                  {system.memberCount !== null ? (
-                    <span>
-                      {system.memberCount} {system.memberCount === 1 ? "member" : "members"}
-                    </span>
-                  ) : null}
-                </span>
-              </span>
-
-              {!system.reachable ? (
-                <span className="mg-tag" data-tone="warn">PluralKit unreachable</span>
-              ) : !system.slug ? (
-                <span className="mg-tag">No address yet</span>
-              ) : null}
-              <ArrowRight aria-hidden="true" className="mg-chevron" />
-            </a>
-          </li>
-        ))}
-      </ul>
-    </div>
-  );
-}
-
-/**
- * No systems yet.
- *
- * Explains what claiming is for and offers the action, rather than describing a
- * process the reader then has to go and find.
- */
-function EmptyState() {
-  return (
-    <div className="mg-shell mg-shell--narrow">
-      <div className="mg-empty">
-        <h1>No systems yet</h1>
-        <p>
-          pkviewer turns a PluralKit system into a website. PluralKit keeps the
-          identity and the data; pkviewer decides how it looks on the web.
-        </p>
-        <p>To manage a system here, pkviewer needs to confirm you can act for it:</p>
-        <ol>
-          <li>
-            <strong>Usually automatic.</strong> If the Discord account you signed
-            in with is linked to a PluralKit system, pkviewer can confirm that on
-            its own.
-          </li>
-          <li>
-            <strong>Otherwise, a short code.</strong> pkviewer gives you a code to
-            put in your system description for a moment, then checks for it.
-          </li>
-        </ol>
-        <p>
-          You never have to hand pkviewer a PluralKit token.
-        </p>
-        <div className="mg-actions">
-          <a className="btn primary" href="/manage/claim">
-            Claim a system <ArrowRight aria-hidden="true" />
-          </a>
-          <a className="btn quiet" href={webConfig.docsUrl} rel="noopener">
-            Read about claiming <BoxArrowUpRight aria-hidden="true" />
-          </a>
-        </div>
-      </div>
-    </div>
-  );
-}
diff --git a/apps/web/src/app/manage/signout/route.ts b/apps/web/src/app/manage/signout/route.ts
deleted file mode 100644
index 956c5ff..0000000
--- a/apps/web/src/app/manage/signout/route.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import { NextResponse } from "next/server";
-import { cookies } from "next/headers";
-import { webConfig } from "@/lib/config.ts";
-
-/**
- * Sign out.
- *
- * A POST, so a link or a prefetch cannot end someone's session. The API revokes
- * the session server-side; clearing the cookie alone would leave a usable
- * session behind.
- */
-export async function POST() {
-  const cookieHeader = (await cookies()).toString();
-
-  await fetch(`${webConfig.apiOrigin}/auth/logout`, {
-    method: "POST",
-    headers: { cookie: cookieHeader, origin: webConfig.publicOrigin },
-  }).catch(() => undefined);
-
-  const response = NextResponse.redirect(`${webConfig.publicOrigin}/login`, 303);
-  response.cookies.set("__Host-pkv_session", "", {
-    path: "/",
-    maxAge: 0,
-    secure: true,
-    httpOnly: true,
-  });
-  return response;
-}
diff --git a/apps/web/src/app/not-found.tsx b/apps/web/src/app/not-found.tsx
deleted file mode 100644
index e9818dc..0000000
--- a/apps/web/src/app/not-found.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import { SiteDisclosure } from "@/components/Notices.tsx";
-import { webConfig } from "@/lib/config.ts";
-
-/**
- * Rendered per request, not prerendered.
- *
- * This page embeds the configured public and app origins. Static prerendering
- * would bake the BUILD-TIME origin into the HTML, so moving to another host
- * to the production domain would need a rebuild rather than an env change —
- * which is exactly what decision 1 says must not be true. The cost is rendering
- * two tiny pages per request.
- */
-export const dynamic = "force-dynamic";
-
-/**
- * One 404 for everything.
- *
- * A system that does not exist, a member that does not exist, and a member
- * PluralKit keeps private all land here and read identically. Distinguishing
- * them would confirm that a private member exists (decision 5).
- */
-export default function NotFound() {
-  return (
-    <main className="page stack">
-      <h1>Not found</h1>
-      <p className="prose">
-        There is nothing at this address. The system or member may not exist, or
-        may not be publicly listed.
-      </p>
-      <p>
-        <a href={`${webConfig.publicOrigin}/`}>Back to pkviewer</a>
-      </p>
-      <SiteDisclosure />
-    </main>
-  );
-}
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx
deleted file mode 100644
index e831cdd..0000000
--- a/apps/web/src/app/page.tsx
+++ /dev/null
@@ -1,82 +0,0 @@
-import { ArrowRight, BoxArrowUpRight } from "react-bootstrap-icons";
-import { Logo } from "@/components/Logo.tsx";
-import { SiteDisclosure } from "@/components/Notices.tsx";
-import { webConfig } from "@/lib/config.ts";
-
-/**
- * Rendered per request, not prerendered.
- *
- * This page embeds the configured public and app origins. Static prerendering
- * would bake the BUILD-TIME origin into the HTML, so moving to another host
- * to the production domain would need a rebuild rather than an env change —
- * which is exactly what decision 1 says must not be true. The cost is rendering
- * two tiny pages per request.
- */
-export const dynamic = "force-dynamic";
-
-/**
- * The public landing page.
- *
- * Permanently logged out (O3). The __Host- session cookie is pinned to the app
- * host and physically cannot reach this origin, so this page can never show
- * "signed in as", "your systems", or any account state. The sign-in link is
- * unconditional, and points at the app origin.
- *
- * Copy here is placeholder structure. The real wording is a product decision.
- */
-export default function LandingPage() {
-  return (
-    <main className="page stack">
-      <header className="stack-tight">
-        <div className="site-brand">
-          <Logo />
-          <h1>pkviewer</h1>
-        </div>
-        <p className="prose">
-          PluralKit handles the identity and the data. pkviewer handles how that
-          identity is presented on the web.
-        </p>
-      </header>
-
-      <section className="stack-tight prose">
-        <h2>What it does</h2>
-        <p>
-          Every PluralKit system gets a public page, and every member can have
-          one too. Systems that sign in can choose a readable address and
-          customise how their pages look.
-        </p>
-        <p className="muted">
-          Viewing is open to everyone. An account is only needed to manage and
-          customise a system.
-        </p>
-      </section>
-
-      <section className="stack-tight prose">
-        <h2>Addresses</h2>
-        <p>
-          A system is always reachable by its PluralKit ID, and additionally by
-          its chosen name once it has one. Both work; the readable one is
-          canonical.
-        </p>
-        <ul className="meta-list" style={{ flexDirection: "column", alignItems: "flex-start" }}>
-          <li><code>/s/abcdef</code> <span className="muted">— PluralKit ID, always works</span></li>
-          <li><code>/s/your-system</code> <span className="muted">— chosen address</span></li>
-          <li><code>/s/your-system/a-member</code> <span className="muted">— a member</span></li>
-        </ul>
-      </section>
-
-      <p>
-        <a href="/login">
-          Sign in with Discord <ArrowRight aria-hidden="true" />
-        </a>
-      </p>
-      <p>
-        <a href={webConfig.docsUrl} rel="noopener">
-          Read the documentation <BoxArrowUpRight aria-hidden="true" />
-        </a>
-      </p>
-
-      <SiteDisclosure />
-    </main>
-  );
-}
diff --git a/apps/web/src/app/s/[systemRef]/[memberRef]/page.tsx b/apps/web/src/app/s/[systemRef]/[memberRef]/page.tsx
deleted file mode 100644
index 77012e6..0000000
--- a/apps/web/src/app/s/[systemRef]/[memberRef]/page.tsx
+++ /dev/null
@@ -1,131 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { ArrowLeft, PersonCircle } from "react-bootstrap-icons";
-import { CustomStyle } from "@/components/CustomStyle.tsx";
-import { SiteDisclosure, StaleNotice } from "@/components/Notices.tsx";
-import { SocialLinks } from "@/components/SocialLinks.tsx";
-import { ThemeFonts } from "@/components/ThemeFonts.tsx";
-import { TokenStyle } from "@/components/TokenStyle.tsx";
-import { getMemberPage } from "@/lib/api.ts";
-import { buildPageTheme } from "@/lib/theme.ts";
-import { webConfig } from "@/lib/config.ts";
-
-type Params = { params: Promise<{ systemRef: string; memberRef: string }> };
-
-/**
- * Public member page.
- *
- * A member PluralKit does not return publicly resolves to a 404 that is
- * identical to the one for a member that never existed (decision 5) — including
- * when a pkviewer slug points at it.
- *
- * Member pages are structurally independent of the system page rather than a
- * variant of it, so they can grow into substantially more personal pages later
- * without the system layout constraining them.
- */
-
-export async function generateMetadata({ params }: Params): Promise<Metadata> {
-  const { systemRef, memberRef } = await params;
-  const result = await getMemberPage(systemRef, memberRef);
-  if (!result.ok || !result.value.member) return { title: "Not found" };
-
-  const { member, canonicalPath } = result.value;
-  const name = member.displayName ?? member.name ?? member.hid;
-
-  return {
-    title: name,
-    description: member.description?.slice(0, 200) ?? undefined,
-    alternates: { canonical: `${webConfig.publicOrigin}${canonicalPath}` },
-    openGraph: {
-      title: name,
-      description: member.description?.slice(0, 200) ?? undefined,
-      url: `${webConfig.publicOrigin}${canonicalPath}`,
-      images: member.avatarUrl ? [{ url: member.avatarUrl }] : undefined,
-      type: "profile",
-    },
-  };
-}
-
-export default async function MemberPage({ params }: Params) {
-  const { systemRef, memberRef } = await params;
-  const result = await getMemberPage(systemRef, memberRef);
-
-  if (!result.ok) {
-    if (result.status === 404) notFound();
-    return (
-      <main className="page stack">
-        <h1>Temporarily unavailable</h1>
-        <p className="prose">
-          This page could not be loaded right now. Please try again shortly.
-        </p>
-      </main>
-    );
-  }
-
-  const { system, member, socials, tokens, composition, css } = result.value;
-  if (!member) notFound();
-
-  const showBanner = composition["banner.display"] !== "hidden";
-  const showPronouns = composition["show.pronouns"] !== "false";
-  const showBirthday = composition["show.birthday"] !== "false";
-
-  // Tokens arrive already merged system-under-member by the API, so this
-  // resolves platform defaults and maps to CSS without re-applying inheritance.
-  const theme = buildPageTheme(tokens, null, composition);
-
-  const name = member.displayName ?? member.name ?? member.hid;
-  const systemName = system.name ?? system.hid;
-
-  return (
-    <main className="page stack" id="pkv-user">
-      <ThemeFonts fonts={theme.fonts} />
-      <TokenStyle
-        vars={theme.vars}
-        darkVars={theme.darkVars}
-        colorScheme={theme.colorScheme}
-        scope=":root"
-      />
-
-      <CustomStyle css={css} />
-
-      {system.staleSinceMs !== null ? <StaleNotice staleSinceMs={system.staleSinceMs} /> : null}
-
-      <a className="breadcrumb" href={`/s/${member.systemSlug ?? member.systemHid}`}>
-        <ArrowLeft aria-hidden="true" /> {systemName}
-      </a>
-
-      {showBanner && member.bannerUrl ? (
-        <img className="banner" src={member.bannerUrl} alt="" />
-      ) : null}
-
-      <header className="identity">
-        {member.avatarUrl ? (
-          <img className="avatar" src={member.avatarUrl} alt="" />
-        ) : (
-          <PersonCircle className="avatar" aria-hidden="true" />
-        )}
-        <div className="stack-tight" style={{ minWidth: 0 }}>
-          <h1 style={{ margin: 0, overflowWrap: "anywhere" }}>{name}</h1>
-          {member.name && member.displayName && member.name !== member.displayName ? (
-            <p className="muted" style={{ margin: 0 }}>{member.name}</p>
-          ) : null}
-          <ul className="meta-list muted">
-            <li><code>{member.hid}</code></li>
-            {showPronouns && member.pronouns ? <li>{member.pronouns}</li> : null}
-            {showBirthday && member.birthday ? <li>{member.birthday}</li> : null}
-          </ul>
-        </div>
-      </header>
-
-      {member.description ? (
-        <section className="prose">
-          <p style={{ whiteSpace: "pre-wrap" }}>{member.description}</p>
-        </section>
-      ) : null}
-
-      <SocialLinks links={socials} />
-
-      <SiteDisclosure />
-    </main>
-  );
-}
diff --git a/apps/web/src/app/s/[systemRef]/page.tsx b/apps/web/src/app/s/[systemRef]/page.tsx
deleted file mode 100644
index 9645f35..0000000
--- a/apps/web/src/app/s/[systemRef]/page.tsx
+++ /dev/null
@@ -1,129 +0,0 @@
-import type { Metadata } from "next";
-import { notFound } from "next/navigation";
-import { PeopleFill, PersonCircle } from "react-bootstrap-icons";
-import { BadgeRow } from "@/components/Badges.tsx";
-import { CustomStyle } from "@/components/CustomStyle.tsx";
-import { MemberDirectory } from "@/components/MemberDirectory.tsx";
-import { SiteDisclosure, StaleNotice } from "@/components/Notices.tsx";
-import { SocialLinks } from "@/components/SocialLinks.tsx";
-import { ThemeFonts } from "@/components/ThemeFonts.tsx";
-import { TokenStyle } from "@/components/TokenStyle.tsx";
-import { getSystemPage } from "@/lib/api.ts";
-import { buildPageTheme } from "@/lib/theme.ts";
-import { webConfig } from "@/lib/config.ts";
-
-type Params = { params: Promise<{ systemRef: string }> };
-
-/**
- * Public system page.
- *
- * Both `/s/<pluralkit-id>` and `/s/<slug>` render this, each returning 200
- * (decision 8). Neither redirects: a permanent redirect would outlive slug
- * ownership and point a cached URL at whoever holds the name next. The
- * canonical form is advertised with <link rel="canonical"> instead.
- */
-
-export async function generateMetadata({ params }: Params): Promise<Metadata> {
-  const { systemRef } = await params;
-  const result = await getSystemPage(systemRef);
-  if (!result.ok) return { title: "Not found" };
-
-  const { system, canonicalPath } = result.value;
-  const name = system.name ?? system.hid;
-
-  return {
-    title: name,
-    description: system.description?.slice(0, 200) ?? `The ${name} system on pkviewer.`,
-    alternates: { canonical: `${webConfig.publicOrigin}${canonicalPath}` },
-    // Server-rendered so Discord's unfurler, which runs no JavaScript, gets a
-    // real preview card. This is the reason the public tier renders on the
-    // server at all (A2).
-    openGraph: {
-      title: name,
-      description: system.description?.slice(0, 200) ?? undefined,
-      url: `${webConfig.publicOrigin}${canonicalPath}`,
-      images: system.avatarUrl ? [{ url: system.avatarUrl }] : undefined,
-      type: "profile",
-    },
-  };
-}
-
-export default async function SystemPage({ params }: Params) {
-  const { systemRef } = await params;
-  const result = await getSystemPage(systemRef);
-
-  if (!result.ok) {
-    if (result.status === 404) notFound();
-    return (
-      <main className="page stack">
-        <h1>Temporarily unavailable</h1>
-        <p className="prose">
-          This page could not be loaded right now. Please try again shortly.
-        </p>
-      </main>
-    );
-  }
-
-  const { system, members, socials, tokens, composition, badges, css } = result.value;
-  const name = system.name ?? system.hid;
-  const theme = buildPageTheme(tokens, null, composition);
-  const showBanner = composition["banner.display"] !== "hidden";
-  const showPronouns = composition["show.pronouns"] !== "false";
-
-  return (
-    <main className="page stack" id="pkv-user">
-      <ThemeFonts fonts={theme.fonts} />
-      <TokenStyle
-        vars={theme.vars}
-        darkVars={theme.darkVars}
-        colorScheme={theme.colorScheme}
-        scope=":root"
-      />
-
-      <CustomStyle css={css} />
-
-      {system.staleSinceMs !== null ? <StaleNotice staleSinceMs={system.staleSinceMs} /> : null}
-
-      {showBanner && system.bannerUrl ? (
-        <img className="banner" src={system.bannerUrl} alt="" />
-      ) : null}
-
-      <header className="identity">
-        {system.avatarUrl ? (
-          <img className="avatar" src={system.avatarUrl} alt="" />
-        ) : (
-          <PersonCircle className="avatar" aria-hidden="true" />
-        )}
-        <div className="stack-tight" style={{ minWidth: 0 }}>
-          <h1 style={{ margin: 0, overflowWrap: "anywhere" }}>{name}</h1>
-          <ul className="meta-list muted">
-            <li><code>{system.hid}</code></li>
-            {showPronouns && system.pronouns ? <li>{system.pronouns}</li> : null}
-            {system.tag ? <li>{system.tag}</li> : null}
-            <li>
-              <PeopleFill aria-hidden="true" /> {system.memberCount}{" "}
-              {system.memberCount === 1 ? "member" : "members"}
-            </li>
-          </ul>
-        </div>
-      </header>
-
-      <BadgeRow badges={badges} />
-
-      {system.description ? (
-        <section className="prose">
-          <p style={{ whiteSpace: "pre-wrap" }}>{system.description}</p>
-        </section>
-      ) : null}
-
-      <SocialLinks links={socials} />
-
-      <section className="stack-tight">
-        <h2>Members</h2>
-        <MemberDirectory members={members} composition={composition} />
-      </section>
-
-      <SiteDisclosure />
-    </main>
-  );
-}
diff --git a/apps/web/src/components/Badges.tsx b/apps/web/src/components/Badges.tsx
deleted file mode 100644
index 5d1756b..0000000
--- a/apps/web/src/components/Badges.tsx
+++ /dev/null
@@ -1,78 +0,0 @@
-import {
-  Bug,
-  Code,
-  Gem,
-  HeartFill,
-  PatchCheckFill,
-  PeopleFill,
-  ShieldFill,
-  StarFill,
-} from "react-bootstrap-icons";
-import type { BadgeIconId, PublicBadge } from "@pkviewer/shared";
-
-/**
- * Platform-issued recognition on a public page.
- *
- * These are the one element of a public page a system does not control, and
- * that is the entire point: a badge is only worth having if it cannot be
- * reproduced by putting "Owner" in a system description or a social link label.
- *
- * Two rules make that hold, and both are enforced elsewhere by tests:
- *
- *   1. Nothing here reads a `--pkv-*` custom property. The theme vocabulary
- *      emits those, so a badge that used them could be restyled — or hidden —
- *      by the system it is meant to describe. Badge styling is `--pkvb-*`,
- *      which no theme token can name.
- *   2. Icon and tone come from a fixed vocabulary, never from a stored string.
- *      An unknown icon renders as the neutral fallback rather than nothing, so
- *      a catalogue change cannot silently blank a badge.
- *
- * Every badge links to /badges, which is platform-owned. Imitation text has
- * nowhere convincing to point.
- */
-
-const ICONS: Record<BadgeIconId, React.ComponentType<{ "aria-hidden"?: boolean | "true" }>> = {
-  star: StarFill,
-  heart: HeartFill,
-  people: PeopleFill,
-  bug: Bug,
-  shield: ShieldFill,
-  code: Code,
-  patch: PatchCheckFill,
-  gem: Gem,
-};
-
-export function BadgeRow({ badges }: { badges: PublicBadge[] }) {
-  if (badges.length === 0) return null;
-  return (
-    <ul className="pkvb-row" aria-label="pkviewer recognition">
-      {badges.map((badge) => {
-        const Icon = ICONS[badge.icon] ?? PatchCheckFill;
-        return (
-          <li key={badge.id}>
-            <a
-              className="pkvb"
-              data-tone={badge.tone}
-              href="/badges"
-              title={badge.description}
-            >
-              <Icon aria-hidden="true" />
-              <span>{badge.label}</span>
-            </a>
-          </li>
-        );
-      })}
-    </ul>
-  );
-}
-
-/** The same badge, shown large on the glossary page. */
-export function BadgeSample({ badge }: { badge: PublicBadge }) {
-  const Icon = ICONS[badge.icon] ?? PatchCheckFill;
-  return (
-    <span className="pkvb" data-tone={badge.tone}>
-      <Icon aria-hidden="true" />
-      <span>{badge.label}</span>
-    </span>
-  );
-}
diff --git a/apps/web/src/components/CustomStyle.tsx b/apps/web/src/components/CustomStyle.tsx
deleted file mode 100644
index 1daab61..0000000
--- a/apps/web/src/components/CustomStyle.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Renders a system's compiled custom CSS.
- *
- * The text arriving here has already been through the compiler in
- * `packages/shared/src/css/sanitize.ts`: allow-listed property by property,
- * every selector rewritten under `#pkv-user`, `url()` and `!important` refused.
- * This component deliberately does NOT check it again.
- *
- * That is a decision, not an omission. Two validators means two things to keep
- * in step, and the moment they disagree the weaker one is the real policy.
- * There is one boundary and it is on the write path, so what a page serves is
- * exactly what was checked when it was saved.
- *
- * `dangerouslySetInnerHTML` is how a <style> gets text content in React; it is
- * not an HTML injection point. `</style>` is the only sequence that could
- * escape the element, and the compiler cannot emit it: `<` and `/` survive
- * neither a selector's character class nor a declaration value.
- */
-export function CustomStyle({ css }: { css: string }) {
-  if (!css) return null;
-  return <style data-pkv-custom="" dangerouslySetInnerHTML={{ __html: css }} />;
-}
diff --git a/apps/web/src/components/Logo.tsx b/apps/web/src/components/Logo.tsx
deleted file mode 100644
index 104aae6..0000000
--- a/apps/web/src/components/Logo.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * The pkviewer logo mark.
- *
- * Served from `/icon.svg`, the same file the favicon and share card are built
- * from, rather than inlined: the artwork is 79KB of path data, which is a fine
- * size for one immutably-cached request and a terrible one to repeat in the
- * HTML of every page.
- *
- * There is deliberately no `public` directory in this project, so the app
- * router's icon convention is also the only same-origin path this file has.
- *
- * Always decorative. Every placement sits the mark directly beside the word
- * "pkviewer", so giving it alt text would make a screen reader announce the
- * name twice. The size comes from `--brand-mark-size` on the parent, which is
- * what lets one rule serve both the public pages and the control plane.
- */
-export function Logo() {
-  return (
-    <img
-      className="brand-mark"
-      src="/icon.svg"
-      alt=""
-      aria-hidden="true"
-      // Intrinsic dimensions, so the box is reserved at the right ratio before
-      // the SVG loads. The rendered size is CSS's business, not theirs.
-      width={788}
-      height={659}
-    />
-  );
-}
diff --git a/apps/web/src/components/MemberDirectory.tsx b/apps/web/src/components/MemberDirectory.tsx
deleted file mode 100644
index ca38918..0000000
--- a/apps/web/src/components/MemberDirectory.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import type { MemberView } from "@pkviewer/shared";
-import { PersonCircle } from "react-bootstrap-icons";
-
-/**
- * The member directory.
- *
- * Only members PluralKit returns publicly ever reach this component, so a
- * private member is absent rather than hidden — indistinguishable from one that
- * never existed (decision 5).
- *
- * The grid is column-count-agnostic so the same markup works at five members
- * and at a hundred and fifty. Search, filtering and grouping are product
- * decisions still to be made; the structure does not preclude them.
- */
-export function MemberDirectory({
-  members,
-  composition,
-}: {
-  members: MemberView[];
-  composition: Record<string, string>;
-}) {
-  const detailed = composition["directory.card"] === "detailed";
-  const showPronouns = composition["show.pronouns"] !== "false";
-
-  // Sorting is a presentation choice. PluralKit's own order is the default
-  // because it is the one the system already arranged deliberately.
-  const ordered =
-    composition["directory.sort"] === "name"
-      ? [...members].sort((a, b) =>
-          (a.displayName ?? a.name ?? a.hid).localeCompare(b.displayName ?? b.name ?? b.hid),
-        )
-      : members;
-
-  if (members.length === 0) {
-    return (
-      <p className="muted">
-        No members are publicly listed for this system.
-      </p>
-    );
-  }
-
-  return (
-    <ul className="directory">
-      {ordered.map((member) => (
-        <li key={member.hid}>
-          <a
-            className="member-card"
-            href={`/s/${member.systemSlug ?? member.systemHid}/${member.slug ?? member.hid}`}
-          >
-            {member.avatarUrl ? (
-              // PluralKit-hosted media, referenced directly and never proxied.
-              <img className="avatar avatar-sm" src={member.avatarUrl} alt="" loading="lazy" />
-            ) : (
-              <PersonCircle className="avatar avatar-sm" aria-hidden="true" />
-            )}
-            <span style={{ minWidth: 0 }}>
-              <span className="name">{member.displayName ?? member.name ?? member.hid}</span>
-              {showPronouns && member.pronouns ? (
-                <span className="muted" style={{ display: "block", fontSize: "0.85em" }}>
-                  {member.pronouns}
-                </span>
-              ) : null}
-              {detailed && member.description ? (
-                <span className="card-blurb muted">{member.description}</span>
-              ) : null}
-            </span>
-          </a>
-        </li>
-      ))}
-    </ul>
-  );
-}
diff --git a/apps/web/src/components/Notices.tsx b/apps/web/src/components/Notices.tsx
deleted file mode 100644
index 270477d..0000000
--- a/apps/web/src/components/Notices.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import { BoxArrowUpRight, ClockHistory, InfoCircle } from "react-bootstrap-icons";
-import { webConfig } from "@/lib/config.ts";
-
-/**
- * The third-party disclosure.
- *
- * One notice, on every public page: pkviewer is not PluralKit. This disclosure
- * is permanent — it is what keeps a third-party site from reading as an
- * official one.
- */
-export function SiteDisclosure() {
-  return (
-    <footer className="site-footer muted">
-      <p className="prose">
-        <InfoCircle aria-hidden="true" /> Presented by pkviewer, a third-party
-        website for PluralKit systems. pkviewer is not PluralKit, and system and
-        member information shown here comes from PluralKit&apos;s public API.
-      </p>
-      <p className="site-footer-links">
-        <a href="/credits">Credits</a>
-        <a href="/badges">Badges</a>
-        <a href={webConfig.docsUrl} rel="noopener">
-          Docs &amp; support <BoxArrowUpRight aria-hidden="true" />
-        </a>
-      </p>
-    </footer>
-  );
-}
-
-/**
- * Shown when PluralKit was unreachable and the page rendered from the last good
- * snapshot (P3). The page is informative rather than broken: the content is
- * real, just possibly behind.
- */
-export function StaleNotice({ staleSinceMs }: { staleSinceMs: number }) {
-  return (
-    <p className="notice muted" role="status">
-      <ClockHistory aria-hidden="true" />
-      <span>
-        PluralKit could not be reached, so this page is showing information
-        saved {formatAge(staleSinceMs)} ago. It may be out of date.
-      </span>
-    </p>
-  );
-}
-
-function formatAge(ms: number): string {
-  const minutes = Math.round(ms / 60_000);
-  if (minutes < 60) return `${Math.max(1, minutes)} minute${minutes === 1 ? "" : "s"}`;
-  const hours = Math.round(minutes / 60);
-  if (hours < 24) return `${hours} hour${hours === 1 ? "" : "s"}`;
-  const days = Math.round(hours / 24);
-  return `${days} day${days === 1 ? "" : "s"}`;
-}
diff --git a/apps/web/src/components/SocialLinks.tsx b/apps/web/src/components/SocialLinks.tsx
deleted file mode 100644
index b6b3a79..0000000
--- a/apps/web/src/components/SocialLinks.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import type { SocialLink } from "@pkviewer/shared";
-import { BoxArrowUpRight, Discord, Github, Globe, Mastodon, Twitch, Youtube } from "react-bootstrap-icons";
-
-/**
- * Social links are rendered as links and never fetched server-side — no preview
- * cards, no favicon lookups. Fetching a user-supplied URL from our server is an
- * SSRF vector, and the guardrails rule it out.
- *
- * Icons come from the Bootstrap Icons set rather than bespoke SVGs (U1), with a
- * generic fallback for platforms the set does not cover.
- */
-
-const ICONS: Record<string, typeof Globe> = {
-  discord: Discord,
-  github: Github,
-  mastodon: Mastodon,
-  twitch: Twitch,
-  youtube: Youtube,
-  website: Globe,
-};
-
-export function SocialLinks({ links }: { links: SocialLink[] }) {
-  if (links.length === 0) return null;
-
-  return (
-    <ul className="socials">
-      {links.map((link) => {
-        const Icon = ICONS[link.platform.toLowerCase()] ?? BoxArrowUpRight;
-        return (
-          <li key={`${link.platform}-${link.url}`}>
-            <a href={link.url} rel="nofollow noopener ugc" target="_blank">
-              <Icon aria-hidden="true" />
-              {link.label ?? link.platform}
-            </a>
-          </li>
-        );
-      })}
-    </ul>
-  );
-}
diff --git a/apps/web/src/components/ThemeFonts.tsx b/apps/web/src/components/ThemeFonts.tsx
deleted file mode 100644
index a4d7d97..0000000
--- a/apps/web/src/components/ThemeFonts.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import type { FontEntry } from "@pkviewer/shared";
-
-/**
- * Loads the typefaces a resolved theme actually uses.
- *
- * The families come from the fixed allow-list, never from stored strings, so
- * this can only ever request a font we chose. A theme using the system stack
- * loads nothing at all.
- */
-export function ThemeFonts({ fonts }: { fonts: FontEntry[] }) {
-  const families = fonts
-    .filter((f) => f.family !== null)
-    .map((f) => `family=${encodeURIComponent(f.family!).replace(/%20/g, "+")}:wght@${f.weights.join(";")}`);
-
-  if (families.length === 0) return null;
-
-  return (
-    <link
-      rel="stylesheet"
-      href={`https://fonts.googleapis.com/css2?${families.join("&")}&display=swap`}
-    />
-  );
-}
diff --git a/apps/web/src/components/admin/BadgeAdmin.tsx b/apps/web/src/components/admin/BadgeAdmin.tsx
deleted file mode 100644
index dd74603..0000000
--- a/apps/web/src/components/admin/BadgeAdmin.tsx
+++ /dev/null
@@ -1,425 +0,0 @@
-"use client";
-
-import { useState, useTransition } from "react";
-import type { BadgeIconId, BadgeState, BadgeToneId } from "@pkviewer/shared";
-import { BadgeSample } from "@/components/Badges.tsx";
-import { PageHeader, Section } from "@/components/manage/Shell.tsx";
-import {
-  grantBadgeAction,
-  retireBadgeAction,
-  revokeBadgeAction,
-  saveBadgeAction,
-} from "@/app/admin/actions.ts";
-import type { AdminAssignment, AdminBadge } from "@/app/admin/badges/page.tsx";
-
-/**
- * Granting, revoking, and the catalogue.
- *
- * Two things are deliberately visible here that an admin panel could hide:
- * every assignment's STATE, and the fact that most grants start `pending`.
- * A badge appears on somebody else's page, so the person granting it should be
- * looking at "waiting on them" rather than assuming it went up.
- */
-
-const STATE_LABELS: Record<BadgeState, string> = {
-  pending: "Waiting on them",
-  accepted: "Showing",
-  hidden: "Hidden by owner",
-  declined: "Declined",
-  revoked: "Revoked",
-};
-
-export function BadgeAdmin({
-  badges,
-  icons,
-  tones,
-  assignments,
-}: {
-  badges: AdminBadge[];
-  icons: BadgeIconId[];
-  tones: BadgeToneId[];
-  assignments: AdminAssignment[];
-}) {
-  const [pending, startTransition] = useTransition();
-  const [message, setMessage] = useState<{ tone: "ok" | "error"; text: string } | null>(null);
-
-  const [subject, setSubject] = useState("");
-  const [badgeId, setBadgeId] = useState(badges.find((b) => b.retiredAt === null)?.id ?? "");
-  const [note, setNote] = useState("");
-
-  const grantable = badges.filter((b) => b.retiredAt === null);
-
-  const run = (fn: () => Promise<{ ok: boolean; error?: string }>, okText: string) => {
-    startTransition(async () => {
-      const result = await fn();
-      setMessage(
-        result.ok
-          ? { tone: "ok", text: okText }
-          : { tone: "error", text: result.error ?? "That did not work." },
-      );
-    });
-  };
-
-  return (
-    <div className="mg-shell">
-      <PageHeader
-        title="Badges"
-        description="Recognition given by pkviewer. A badge shows publicly only after its system accepts it."
-      />
-
-      {message ? (
-        <p className="mg-note" data-tone={message.tone} role="status" aria-live="polite">
-          {message.text}
-        </p>
-      ) : null}
-
-      <Section
-        title="Grant a badge"
-        description="Name the system by its pkviewer address or PluralKit ID. It has to be claimed already — an unclaimed system has nobody who could accept."
-      >
-        <div className="mg-field">
-          <label htmlFor="badge-subject">System</label>
-          <input
-            id="badge-subject"
-            value={subject}
-            placeholder="clove-system or abcdef"
-            onChange={(e) => setSubject(e.target.value)}
-          />
-        </div>
-
-        <div className="mg-field">
-          <label htmlFor="badge-which">Badge</label>
-          <select id="badge-which" value={badgeId} onChange={(e) => setBadgeId(e.target.value)}>
-            {grantable.map((b) => (
-              <option key={b.id} value={b.id}>{b.label}</option>
-            ))}
-          </select>
-        </div>
-
-        <div className="mg-field">
-          <label htmlFor="badge-note">Note for them (optional)</label>
-          <input
-            id="badge-note"
-            value={note}
-            placeholder="for the CSP report"
-            maxLength={200}
-            onChange={(e) => setNote(e.target.value)}
-          />
-          <p className="mg-hint">
-            Shown to the system with the offer, never on a public page.
-          </p>
-        </div>
-
-        <div className="mg-actions">
-          <button
-            type="button"
-            className="primary"
-            disabled={pending || !subject.trim() || !badgeId}
-            onClick={() =>
-              run(async () => {
-                const result = await grantBadgeAction(subject.trim(), badgeId, note.trim());
-                if (result.ok) {
-                  setSubject("");
-                  setNote("");
-                }
-                return result;
-              }, "Badge offered. It shows once they accept — unless it is your own system, which accepts itself.")
-            }
-          >
-            Grant badge
-          </button>
-        </div>
-      </Section>
-
-      <Section title="Granted" description="Every badge given out, and where it stands.">
-        {assignments.length === 0 ? (
-          <p className="muted">No badges have been granted yet.</p>
-        ) : (
-          <ul className="mg-list">
-            {assignments.map((a) => (
-              <li key={a.id} className="mg-item">
-                <div className="grow">
-                  <strong>{a.badgeLabel}</strong>{" "}
-                  <span className="muted">
-                    → {a.slug ?? a.systemHid ?? a.subjectId}
-                  </span>
-                  <div className="mg-item-meta">
-                    <span className="mg-state" data-state={a.state}>
-                      {STATE_LABELS[a.state] ?? a.state}
-                    </span>
-                    <span className="muted">
-                      granted {new Date(a.grantedAt).toLocaleDateString()}
-                    </span>
-                    {a.note ? <span className="muted">“{a.note}”</span> : null}
-                  </div>
-                </div>
-                {a.state !== "revoked" ? (
-                  <button
-                    type="button"
-                    className="quiet"
-                    disabled={pending}
-                    onClick={() => run(() => revokeBadgeAction(a.id), "Badge revoked.")}
-                  >
-                    Revoke
-                  </button>
-                ) : null}
-              </li>
-            ))}
-          </ul>
-        )}
-      </Section>
-
-      <Section
-        title="Catalogue"
-        description="Wording is yours. Icon and tone come from a fixed list, so a badge can never be styled to imitate another one."
-      >
-        <ul className="mg-list">
-          {badges.map((badge) => (
-            <BadgeEditor
-              key={badge.id}
-              badge={badge}
-              icons={icons}
-              tones={tones}
-              pending={pending}
-              onSave={(next) => run(() => saveBadgeAction(next), "Badge saved.")}
-              onRetire={(retired) =>
-                run(
-                  () => retireBadgeAction(badge.id, retired),
-                  retired
-                    ? "Retired. Badges already granted keep showing."
-                    : "Restored.",
-                )
-              }
-            />
-          ))}
-        </ul>
-
-        <NewBadge
-          icons={icons}
-          tones={tones}
-          pending={pending}
-          onSave={(next) => run(() => saveBadgeAction(next), "Badge created.")}
-        />
-      </Section>
-    </div>
-  );
-}
-
-type BadgeDraft = {
-  id: string;
-  label: string;
-  description: string;
-  icon: string;
-  tone: string;
-  sortOrder: number;
-};
-
-function BadgeEditor({
-  badge,
-  icons,
-  tones,
-  pending,
-  onSave,
-  onRetire,
-}: {
-  badge: AdminBadge;
-  icons: BadgeIconId[];
-  tones: BadgeToneId[];
-  pending: boolean;
-  onSave: (draft: BadgeDraft) => void;
-  onRetire: (retired: boolean) => void;
-}) {
-  const [open, setOpen] = useState(false);
-  const [draft, setDraft] = useState<BadgeDraft>({
-    id: badge.id,
-    label: badge.label,
-    description: badge.description,
-    icon: badge.icon,
-    tone: badge.tone,
-    sortOrder: badge.sortOrder,
-  });
-
-  return (
-    <li className="mg-item mg-item-stack">
-      <div className="mg-item-row">
-        <BadgeSample
-          badge={{
-            id: draft.id,
-            label: draft.label || badge.label,
-            description: draft.description,
-            icon: draft.icon as BadgeIconId,
-            tone: draft.tone as BadgeToneId,
-          }}
-        />
-        <span className="muted grow">
-          {badge.retiredAt !== null ? "Retired · " : ""}
-          {badge.description}
-        </span>
-        <button type="button" className="quiet" onClick={() => setOpen(!open)}>
-          {open ? "Close" : "Edit"}
-        </button>
-        <button
-          type="button"
-          className="quiet"
-          disabled={pending}
-          onClick={() => onRetire(badge.retiredAt === null)}
-        >
-          {badge.retiredAt === null ? "Retire" : "Restore"}
-        </button>
-      </div>
-
-      {open ? (
-        <BadgeFields
-          draft={draft}
-          setDraft={setDraft}
-          icons={icons}
-          tones={tones}
-          idEditable={false}
-          pending={pending}
-          onSave={() => onSave(draft)}
-        />
-      ) : null}
-    </li>
-  );
-}
-
-function NewBadge({
-  icons,
-  tones,
-  pending,
-  onSave,
-}: {
-  icons: BadgeIconId[];
-  tones: BadgeToneId[];
-  pending: boolean;
-  onSave: (draft: BadgeDraft) => void;
-}) {
-  const [open, setOpen] = useState(false);
-  const [draft, setDraft] = useState<BadgeDraft>({
-    id: "",
-    label: "",
-    description: "",
-    icon: icons[0] ?? "patch",
-    tone: tones[0] ?? "slate",
-    sortOrder: 100,
-  });
-
-  if (!open) {
-    return (
-      <div className="mg-actions">
-        <button type="button" className="quiet" onClick={() => setOpen(true)}>
-          Add a badge type
-        </button>
-      </div>
-    );
-  }
-
-  return (
-    <div className="mg-panel-inset">
-      <div className="mg-field">
-        <label htmlFor="new-badge-id">Identifier</label>
-        <input
-          id="new-badge-id"
-          value={draft.id}
-          placeholder="translator"
-          onChange={(e) => setDraft({ ...draft, id: e.target.value })}
-        />
-        <p className="mg-hint">Lowercase letters, numbers and hyphens. Cannot be changed later.</p>
-      </div>
-      <BadgeFields
-        draft={draft}
-        setDraft={setDraft}
-        icons={icons}
-        tones={tones}
-        idEditable
-        pending={pending}
-        onSave={() => {
-          onSave(draft);
-          setOpen(false);
-        }}
-      />
-    </div>
-  );
-}
-
-function BadgeFields({
-  draft,
-  setDraft,
-  icons,
-  tones,
-  pending,
-  onSave,
-}: {
-  draft: BadgeDraft;
-  setDraft: (d: BadgeDraft) => void;
-  icons: BadgeIconId[];
-  tones: BadgeToneId[];
-  idEditable: boolean;
-  pending: boolean;
-  onSave: () => void;
-}) {
-  return (
-    <div className="mg-column">
-      <div className="mg-field">
-        <label htmlFor={`label-${draft.id}`}>Label</label>
-        <input
-          id={`label-${draft.id}`}
-          value={draft.label}
-          maxLength={32}
-          onChange={(e) => setDraft({ ...draft, label: e.target.value })}
-        />
-      </div>
-
-      <div className="mg-field">
-        <label htmlFor={`desc-${draft.id}`}>What it means</label>
-        <input
-          id={`desc-${draft.id}`}
-          value={draft.description}
-          maxLength={200}
-          onChange={(e) => setDraft({ ...draft, description: e.target.value })}
-        />
-        <p className="mg-hint">Shown on the public /badges page.</p>
-      </div>
-
-      <div className="mg-row">
-        <div className="mg-field">
-          <label htmlFor={`icon-${draft.id}`}>Icon</label>
-          <select
-            id={`icon-${draft.id}`}
-            value={draft.icon}
-            onChange={(e) => setDraft({ ...draft, icon: e.target.value })}
-          >
-            {icons.map((i) => <option key={i} value={i}>{i}</option>)}
-          </select>
-        </div>
-
-        <div className="mg-field">
-          <label htmlFor={`tone-${draft.id}`}>Tone</label>
-          <select
-            id={`tone-${draft.id}`}
-            value={draft.tone}
-            onChange={(e) => setDraft({ ...draft, tone: e.target.value })}
-          >
-            {tones.map((t) => <option key={t} value={t}>{t}</option>)}
-          </select>
-        </div>
-
-        <div className="mg-field">
-          <label htmlFor={`order-${draft.id}`}>Order</label>
-          <input
-            id={`order-${draft.id}`}
-            type="number"
-            value={draft.sortOrder}
-            onChange={(e) => setDraft({ ...draft, sortOrder: Number(e.target.value) })}
-          />
-        </div>
-      </div>
-
-      <div className="mg-actions">
-        <button type="button" className="primary" disabled={pending} onClick={onSave}>
-          Save badge
-        </button>
-      </div>
-    </div>
-  );
-}
diff --git a/apps/web/src/components/admin/CreditAdmin.tsx b/apps/web/src/components/admin/CreditAdmin.tsx
deleted file mode 100644
index 744980e..0000000
--- a/apps/web/src/components/admin/CreditAdmin.tsx
+++ /dev/null
@@ -1,342 +0,0 @@
-"use client";
-
-import { useState, useTransition } from "react";
-import { EyeSlash } from "react-bootstrap-icons";
-import { PageHeader, Section } from "@/components/manage/Shell.tsx";
-import {
-  deleteCreditAction,
-  deleteSectionAction,
-  saveCreditAction,
-  saveSectionAction,
-} from "@/app/admin/actions.ts";
-import type { AdminCredit, AdminSection } from "@/app/admin/credits/page.tsx";
-
-/**
- * The credits page, edited.
- *
- * Sections are rows rather than a fixed list, so "Translators" is something you
- * add here rather than something someone has to deploy. Ordering is an explicit
- * number on both sections and entries: the public page renders in that order
- * and never guesses.
- */
-
-const EMPTY: Draft = { sectionId: "", name: "", detail: "", url: "", sortOrder: 0, visible: true };
-
-type Draft = {
-  id?: string;
-  sectionId: string;
-  name: string;
-  detail: string;
-  url: string;
-  sortOrder: number;
-  visible: boolean;
-};
-
-export function CreditAdmin({
-  sections,
-  credits,
-}: {
-  sections: AdminSection[];
-  credits: AdminCredit[];
-}) {
-  const [pending, startTransition] = useTransition();
-  const [message, setMessage] = useState<{ tone: "ok" | "error"; text: string } | null>(null);
-  const [draft, setDraft] = useState<Draft>({ ...EMPTY, sectionId: sections[0]?.id ?? "" });
-
-  const run = (fn: () => Promise<{ ok: boolean; error?: string }>, okText: string) => {
-    startTransition(async () => {
-      const result = await fn();
-      setMessage(
-        result.ok
-          ? { tone: "ok", text: okText }
-          : { tone: "error", text: result.error ?? "That did not work." },
-      );
-    });
-  };
-
-  const editing = draft.id !== undefined;
-
-  return (
-    <div className="mg-shell">
-      <PageHeader
-        title="Credits"
-        description="Anyone can be credited. No pkviewer account and no PluralKit system required."
-      />
-
-      {message ? (
-        <p className="mg-note" data-tone={message.tone} role="status" aria-live="polite">
-          {message.text}
-        </p>
-      ) : null}
-
-      <Section title={editing ? "Edit entry" : "Add someone"}>
-        <div className="mg-row">
-          <div className="mg-field grow">
-            <label htmlFor="credit-name">Name</label>
-            <input
-              id="credit-name"
-              value={draft.name}
-              maxLength={80}
-              placeholder="How they want to be known"
-              onChange={(e) => setDraft({ ...draft, name: e.target.value })}
-            />
-          </div>
-
-          <div className="mg-field">
-            <label htmlFor="credit-section">Section</label>
-            <select
-              id="credit-section"
-              value={draft.sectionId}
-              onChange={(e) => setDraft({ ...draft, sectionId: e.target.value })}
-            >
-              {sections.map((s) => <option key={s.id} value={s.id}>{s.label}</option>)}
-            </select>
-          </div>
-        </div>
-
-        <div className="mg-field">
-          <label htmlFor="credit-detail">What they did</label>
-          <input
-            id="credit-detail"
-            value={draft.detail}
-            maxLength={200}
-            placeholder="Reported the CSP bypass"
-            onChange={(e) => setDraft({ ...draft, detail: e.target.value })}
-          />
-        </div>
-
-        <div className="mg-row">
-          <div className="mg-field grow">
-            <label htmlFor="credit-url">Link (optional)</label>
-            <input
-              id="credit-url"
-              value={draft.url}
-              maxLength={500}
-              placeholder="https://…"
-              onChange={(e) => setDraft({ ...draft, url: e.target.value })}
-            />
-            <p className="mg-hint">Rendered as a link. pkviewer never visits it.</p>
-          </div>
-
-          <div className="mg-field">
-            <label htmlFor="credit-order">Order</label>
-            <input
-              id="credit-order"
-              type="number"
-              value={draft.sortOrder}
-              onChange={(e) => setDraft({ ...draft, sortOrder: Number(e.target.value) })}
-            />
-          </div>
-        </div>
-
-        <label className="mg-check">
-          <input
-            type="checkbox"
-            checked={draft.visible}
-            onChange={(e) => setDraft({ ...draft, visible: e.target.checked })}
-          />
-          Show on the public credits page
-        </label>
-
-        <div className="mg-actions">
-          <button
-            type="button"
-            className="primary"
-            disabled={pending || !draft.name.trim() || !draft.sectionId}
-            onClick={() =>
-              run(async () => {
-                const result = await saveCreditAction({
-                  ...(draft.id ? { id: draft.id } : {}),
-                  sectionId: draft.sectionId,
-                  name: draft.name.trim(),
-                  detail: draft.detail.trim(),
-                  url: draft.url.trim(),
-                  sortOrder: draft.sortOrder,
-                  visible: draft.visible,
-                });
-                if (result.ok) setDraft({ ...EMPTY, sectionId: sections[0]?.id ?? "" });
-                return result;
-              }, editing ? "Entry updated." : "Entry added.")
-            }
-          >
-            {editing ? "Save entry" : "Add entry"}
-          </button>
-          {editing ? (
-            <button
-              type="button"
-              className="quiet"
-              onClick={() => setDraft({ ...EMPTY, sectionId: sections[0]?.id ?? "" })}
-            >
-              Cancel
-            </button>
-          ) : null}
-        </div>
-      </Section>
-
-      {sections.map((section) => {
-        const entries = credits
-          .filter((c) => c.sectionId === section.id)
-          .sort((a, b) => a.sortOrder - b.sortOrder || a.name.localeCompare(b.name));
-        return (
-          <Section
-            key={section.id}
-            title={section.label}
-            {...(section.description ? { description: section.description } : {})}
-          >
-            {entries.length === 0 ? (
-              <p className="muted">Nobody in this section yet.</p>
-            ) : (
-              <ul className="mg-list">
-                {entries.map((credit) => (
-                  <li key={credit.id} className="mg-item">
-                    <div className="grow">
-                      <strong>{credit.name}</strong>
-                      {!credit.visible ? (
-                        <span className="muted"> <EyeSlash aria-hidden="true" /> hidden</span>
-                      ) : null}
-                      {credit.detail ? (
-                        <div className="mg-item-meta muted">{credit.detail}</div>
-                      ) : null}
-                    </div>
-                    <button
-                      type="button"
-                      className="quiet"
-                      onClick={() =>
-                        setDraft({
-                          id: credit.id,
-                          sectionId: credit.sectionId,
-                          name: credit.name,
-                          detail: credit.detail ?? "",
-                          url: credit.url ?? "",
-                          sortOrder: credit.sortOrder,
-                          visible: credit.visible,
-                        })
-                      }
-                    >
-                      Edit
-                    </button>
-                    <button
-                      type="button"
-                      className="quiet"
-                      disabled={pending}
-                      onClick={() => run(() => deleteCreditAction(credit.id), "Entry removed.")}
-                    >
-                      Remove
-                    </button>
-                  </li>
-                ))}
-              </ul>
-            )}
-          </Section>
-        );
-      })}
-
-      <SectionAdmin sections={sections} pending={pending} run={run} />
-    </div>
-  );
-}
-
-function SectionAdmin({
-  sections,
-  pending,
-  run,
-}: {
-  sections: AdminSection[];
-  pending: boolean;
-  run: (fn: () => Promise<{ ok: boolean; error?: string }>, okText: string) => void;
-}) {
-  const [draft, setDraft] = useState({ id: "", label: "", description: "", sortOrder: 100 });
-
-  return (
-    <Section
-      title="Sections"
-      description="The headings on the public credits page, in this order."
-    >
-      <ul className="mg-list">
-        {sections.map((s) => (
-          <li key={s.id} className="mg-item">
-            <div className="grow">
-              <strong>{s.label}</strong>
-              <div className="mg-item-meta muted">
-                <code>{s.id}</code> · order {s.sortOrder}
-              </div>
-            </div>
-            <button
-              type="button"
-              className="quiet"
-              disabled={pending}
-              onClick={() => run(() => deleteSectionAction(s.id), "Section removed.")}
-            >
-              Remove
-            </button>
-          </li>
-        ))}
-      </ul>
-
-      <div className="mg-panel-inset">
-        <div className="mg-row">
-          <div className="mg-field">
-            <label htmlFor="section-id">Identifier</label>
-            <input
-              id="section-id"
-              value={draft.id}
-              placeholder="translators"
-              onChange={(e) => setDraft({ ...draft, id: e.target.value })}
-            />
-          </div>
-          <div className="mg-field grow">
-            <label htmlFor="section-label">Heading</label>
-            <input
-              id="section-label"
-              value={draft.label}
-              maxLength={60}
-              placeholder="Translators"
-              onChange={(e) => setDraft({ ...draft, label: e.target.value })}
-            />
-          </div>
-          <div className="mg-field">
-            <label htmlFor="section-order">Order</label>
-            <input
-              id="section-order"
-              type="number"
-              value={draft.sortOrder}
-              onChange={(e) => setDraft({ ...draft, sortOrder: Number(e.target.value) })}
-            />
-          </div>
-        </div>
-
-        <div className="mg-field">
-          <label htmlFor="section-desc">Description (optional)</label>
-          <input
-            id="section-desc"
-            value={draft.description}
-            maxLength={200}
-            onChange={(e) => setDraft({ ...draft, description: e.target.value })}
-          />
-        </div>
-
-        <div className="mg-actions">
-          <button
-            type="button"
-            className="quiet"
-            disabled={pending || !draft.id.trim() || !draft.label.trim()}
-            onClick={() =>
-              run(async () => {
-                const result = await saveSectionAction({
-                  id: draft.id.trim(),
-                  label: draft.label.trim(),
-                  description: draft.description.trim(),
-                  sortOrder: draft.sortOrder,
-                });
-                if (result.ok) setDraft({ id: "", label: "", description: "", sortOrder: 100 });
-                return result;
-              }, "Section saved.")
-            }
-          >
-            Add section
-          </button>
-        </div>
-      </div>
-    </Section>
-  );
-}
diff --git a/apps/web/src/components/manage/BadgeOffers.tsx b/apps/web/src/components/manage/BadgeOffers.tsx
deleted file mode 100644
index 9fb242a..0000000
--- a/apps/web/src/components/manage/BadgeOffers.tsx
+++ /dev/null
@@ -1,118 +0,0 @@
-"use client";
-
-import { useState, useTransition } from "react";
-import type { BadgeState, OfferedBadge } from "@pkviewer/shared";
-import { BadgeSample } from "@/components/Badges.tsx";
-import { Section } from "@/components/manage/Shell.tsx";
-import { respondToBadgeAction } from "@/app/manage/actions.ts";
-
-/**
- * Badges pkviewer has given this system.
- *
- * The recipient's half of the feature. Badges are opt-out: pkviewer gives one
- * and it appears, and this is where it comes off again. That makes the removal
- * path the important one — a badge naming a relationship or a security report
- * lands before its subject has seen it, so turning it off has to be one
- * obvious click, reversible, and never behind a confirmation.
- */
-
-const EXPLAIN: Record<BadgeState, string> = {
-  // Nothing is granted as `pending` any more; the wording stays for rows
-  // granted before badges became opt-out.
-  pending: "Given by pkviewer. Not on your page yet.",
-  accepted: "Showing on your system page.",
-  hidden: "Hidden. Nobody can tell it was ever given.",
-  declined: "Turned off. You can put it back at any time.",
-  revoked: "",
-};
-
-export function BadgeOffers({
-  systemId,
-  badges,
-}: {
-  systemId: string;
-  badges: OfferedBadge[];
-}) {
-  const [pending, startTransition] = useTransition();
-  const [error, setError] = useState<string | null>(null);
-
-  if (badges.length === 0) return null;
-
-  const act = (badgeId: string, action: "accept" | "decline" | "hide" | "show") => {
-    startTransition(async () => {
-      const result = await respondToBadgeAction(systemId, badgeId, action);
-      setError(result.ok ? null : (result.error ?? "That did not work."));
-    });
-  };
-
-  return (
-    <Section
-      title="Recognition"
-      description="Given by pkviewer. Turn any of them off and it disappears from your page — nobody can tell it was ever there."
-    >
-      {error ? (
-        <p className="mg-note" data-tone="error" role="status" aria-live="polite">
-          {error}
-        </p>
-      ) : null}
-
-      <ul className="mg-list">
-        {badges.map((badge) => (
-          <li key={badge.id} className="mg-item">
-            <BadgeSample badge={badge} />
-            <div className="grow">
-              <div className="mg-item-meta muted">
-                <span>{EXPLAIN[badge.state]}</span>
-                {badge.note ? <span>“{badge.note}”</span> : null}
-              </div>
-            </div>
-
-            {badge.state === "pending" || badge.state === "declined" ? (
-              <button
-                type="button"
-                className="primary"
-                disabled={pending}
-                onClick={() => act(badge.id, "accept")}
-              >
-                Show it
-              </button>
-            ) : null}
-
-            {badge.state === "accepted" ? (
-              <button
-                type="button"
-                className="quiet"
-                disabled={pending}
-                onClick={() => act(badge.id, "hide")}
-              >
-                Hide
-              </button>
-            ) : null}
-
-            {badge.state === "hidden" ? (
-              <button
-                type="button"
-                className="quiet"
-                disabled={pending}
-                onClick={() => act(badge.id, "show")}
-              >
-                Show
-              </button>
-            ) : null}
-
-            {badge.state !== "declined" ? (
-              <button
-                type="button"
-                className="quiet"
-                disabled={pending}
-                onClick={() => act(badge.id, "decline")}
-              >
-                Turn off
-              </button>
-            ) : null}
-          </li>
-        ))}
-      </ul>
-    </Section>
-  );
-}
diff --git a/apps/web/src/components/manage/ClaimFlow.tsx b/apps/web/src/components/manage/ClaimFlow.tsx
deleted file mode 100644
index 6217300..0000000
--- a/apps/web/src/components/manage/ClaimFlow.tsx
+++ /dev/null
@@ -1,221 +0,0 @@
-"use client";
-
-import { useState } from "react";
-import {
-  ArrowRepeat,
-  Check2Circle,
-  ClipboardCheck,
-  ExclamationTriangle,
-  PersonCircle,
-} from "react-bootstrap-icons";
-import type { DiscoveredSystem } from "@/app/manage/actions.ts";
-
-/**
- * Claiming a system.
- *
- * Two routes, offered in order of how little they ask of the user. The token
- * option is deliberately absent: it is a last resort, no feature depends on it,
- * and putting it beside the others would imply it is a normal way to do this.
- */
-
-type Actions = {
-  discover: () => Promise<{ ok: true; systems: DiscoveredSystem[] } | { ok: false; error: string }>;
-  claim: (ref: string) => Promise<{ ok: true; systemId: string } | { ok: false; error: string }>;
-  startChallenge: (
-    ref: string,
-  ) => Promise<
-    { ok: true; challengeId: string; nonce: string; systemHid: string } | { ok: false; error: string }
-  >;
-  verifyChallenge: (
-    id: string,
-  ) => Promise<{ ok: true; systemId: string } | { ok: false; error: string }>;
-};
-
-export function ClaimFlow({
-  actions,
-  initialSystems,
-  initialError,
-}: {
-  actions: Actions;
-  initialSystems: DiscoveredSystem[];
-  initialError: string | null;
-}) {
-  const [systems, setSystems] = useState(initialSystems);
-  const [error, setError] = useState<string | null>(initialError);
-  const [busy, setBusy] = useState<string | null>(null);
-
-  const [manualRef, setManualRef] = useState("");
-  const [challenge, setChallenge] = useState<{ id: string; nonce: string; hid: string } | null>(
-    null,
-  );
-
-  async function run<T>(key: string, fn: () => Promise<T>): Promise<T> {
-    setBusy(key);
-    setError(null);
-    try {
-      return await fn();
-    } finally {
-      setBusy(null);
-    }
-  }
-
-  async function claim(ref: string) {
-    const result = await run(`claim:${ref}`, () => actions.claim(ref));
-    if (!result.ok) setError(result.error);
-    else window.location.href = `/manage/${result.systemId}`;
-  }
-
-  async function recheck() {
-    const result = await run("discover", () => actions.discover());
-    if (result.ok) {
-      setSystems(result.systems);
-      if (result.systems.length === 0) {
-        setError("PluralKit does not have a system linked to this Discord account.");
-      }
-    } else setError(result.error);
-  }
-
-  async function begin() {
-    const ref = manualRef.trim();
-    if (!ref) return;
-    const result = await run("challenge", () => actions.startChallenge(ref));
-    if (!result.ok) setError(result.error);
-    else setChallenge({ id: result.challengeId, nonce: result.nonce, hid: result.systemHid });
-  }
-
-  async function check() {
-    if (!challenge) return;
-    const result = await run("verify", () => actions.verifyChallenge(challenge.id));
-    if (!result.ok) setError(result.error);
-    else window.location.href = `/manage/${result.systemId}`;
-  }
-
-  return (
-    <>
-      {error ? (
-        <p className="mg-note" data-tone="warn" role="alert">
-          <ExclamationTriangle aria-hidden="true" />
-          <span>{error}</span>
-        </p>
-      ) : null}
-
-      <section className="mg-panel">
-        <h2>Systems linked to your Discord account</h2>
-        <p className="hint">
-          PluralKit already knows which system your Discord account belongs to.
-          If yours is here, that is all the confirmation pkviewer needs.
-        </p>
-
-        {systems.length > 0 ? (
-          <ul className="mg-list">
-            {systems.map((system) => (
-              <li className="mg-card" key={system.uuid}>
-                <PersonCircle className="mg-thumb" aria-hidden="true" />
-                <span className="grow">
-                  <span className="title">{system.name ?? system.hid}</span>
-                  <span className="sub">PluralKit ID {system.hid}</span>
-                </span>
-                <button
-                  type="button"
-                  className="primary"
-                  disabled={busy !== null}
-                  onClick={() => claim(system.hid)}
-                >
-                  {busy === `claim:${system.hid}` ? "Claiming…" : "Claim this system"}
-                </button>
-              </li>
-            ))}
-          </ul>
-        ) : (
-          <p className="desc">
-            Nothing found for this Discord account. Either it is not linked to a
-            PluralKit system, or you are signing in from a different account than
-            the one linked to it.
-          </p>
-        )}
-
-        <p style={{ marginTop: 14, marginBottom: 0 }}>
-          <button type="button" className="ghost" disabled={busy !== null} onClick={recheck}>
-            <ArrowRepeat aria-hidden="true" />
-            {busy === "discover" ? "Checking…" : "Check again"}
-          </button>
-        </p>
-      </section>
-
-      <section className="mg-panel">
-        <h2>Or confirm with a short code</h2>
-        <p className="hint">
-          Use this if your Discord account is not linked to the system, or you
-          are claiming from a different account. It needs nothing from PluralKit
-          except a moment&apos;s edit to your system description.
-        </p>
-
-        {!challenge ? (
-          <>
-            <div className="mg-field">
-              <label htmlFor="claim-ref">PluralKit system ID</label>
-              <input
-                id="claim-ref"
-                type="text"
-                value={manualRef}
-                spellCheck={false}
-                autoCapitalize="none"
-                autoComplete="off"
-                placeholder="abcdef"
-                aria-describedby="claim-ref-desc"
-                onChange={(e) => setManualRef(e.target.value)}
-              />
-              <span className="desc" id="claim-ref-desc">
-                The 5 or 6 character ID PluralKit shows, for example from{" "}
-                <code>pk;system</code>.
-              </span>
-            </div>
-            <button
-              type="button"
-              disabled={busy !== null || manualRef.trim().length === 0}
-              onClick={begin}
-            >
-              {busy === "challenge" ? "Getting a code…" : "Get a code"}
-            </button>
-          </>
-        ) : (
-          <>
-            <ol className="mg-steps">
-              <li>
-                Add this code anywhere in the description of system{" "}
-                <strong>{challenge.hid}</strong>:
-                <code className="mg-code">{challenge.nonce}</code>
-              </li>
-              <li>Save it in PluralKit.</li>
-              <li>Come back and check below. You can remove the code afterwards.</li>
-            </ol>
-            <p className="desc">
-              The code is only valid for a short while. If it expires, start
-              again for a new one.
-            </p>
-            <button type="button" className="primary" disabled={busy !== null} onClick={check}>
-              <Check2Circle aria-hidden="true" />
-              {busy === "verify" ? "Checking…" : "I have added the code"}
-            </button>{" "}
-            <button
-              type="button"
-              className="ghost"
-              disabled={busy !== null}
-              onClick={() => setChallenge(null)}
-            >
-              Start over
-            </button>
-          </>
-        )}
-      </section>
-
-      <p className="mg-note">
-        <ClipboardCheck aria-hidden="true" />
-        <span>
-          pkviewer never asks for a PluralKit token in order to claim a system.
-          Both options above work without one.
-        </span>
-      </p>
-    </>
-  );
-}
diff --git a/apps/web/src/components/manage/CompositionEditor.tsx b/apps/web/src/components/manage/CompositionEditor.tsx
deleted file mode 100644
index 722784b..0000000
--- a/apps/web/src/components/manage/CompositionEditor.tsx
+++ /dev/null
@@ -1,183 +0,0 @@
-"use client";
-
-import { useMemo, useState } from "react";
-import { useUnsavedGuard } from "./useUnsavedGuard.ts";
-import { Check2, ExclamationTriangle } from "react-bootstrap-icons";
-import { COMPOSITION, type CompositionDef } from "@pkviewer/shared";
-
-/**
- * Composition settings.
- *
- * A separate vocabulary with its own editor, because it answers a different
- * question: not "how does this look" but "what is on the page and how is it
- * arranged". These never become CSS custom properties.
- */
-
-const LABELS: Record<string, string> = {
-  "banner.display": "Show banner",
-  "avatar.size": "Avatar size",
-  "directory.columns": "Member columns",
-  "directory.card": "Card style",
-  "directory.sort": "Sort members by",
-  "show.pronouns": "Show pronouns",
-  "show.birthday": "Show birthdays",
-};
-
-const OPTION_LABELS: Record<string, string> = {
-  auto: "Automatic",
-  hidden: "Hidden",
-  one: "One",
-  two: "Two",
-  three: "Three",
-  compact: "Compact",
-  detailed: "Detailed",
-  pluralkit: "PluralKit order",
-  name: "Name",
-  small: "Small",
-  medium: "Medium",
-  large: "Large",
-};
-
-export function CompositionEditor({
-  initialValues,
-  saveAction,
-}: {
-  initialValues: Record<string, string>;
-  saveAction: (values: Record<string, string>) => Promise<{ ok: boolean; error?: string }>;
-}) {
-  const [values, setValues] = useState(initialValues);
-  const [saved, setSaved] = useState(initialValues);
-  const [status, setStatus] = useState<"idle" | "saving" | "ok" | "error">("idle");
-  const [message, setMessage] = useState<string | null>(null);
-
-  const dirty = useMemo(
-    () => JSON.stringify(values) !== JSON.stringify(saved),
-    [values, saved],
-  );
-
-  useUnsavedGuard(dirty);
-
-  async function save() {
-    setStatus("saving");
-    const result = await saveAction(values);
-    if (result.ok) {
-      setSaved(values);
-      setStatus("ok");
-      setMessage("Saved.");
-    } else {
-      setStatus("error");
-      setMessage(result.error ?? "Could not save. Please try again.");
-    }
-  }
-
-  return (
-    <>
-      <section className="mg-panel">
-        <h2>Member directory</h2>
-        <p className="hint">How members are listed on your system page.</p>
-        <div className="mg-grid">
-          {COMPOSITION.filter((c) => c.key.startsWith("directory.")).map((def) => (
-            <Field key={def.key} def={def} value={values[def.key]} onChange={setValues} />
-          ))}
-        </div>
-      </section>
-
-      <section className="mg-panel">
-        <h2>Header</h2>
-        <p className="hint">Banner and avatar on system and member pages.</p>
-        <div className="mg-grid">
-          {COMPOSITION.filter((c) => c.key === "banner.display" || c.key === "avatar.size").map(
-            (def) => (
-              <Field key={def.key} def={def} value={values[def.key]} onChange={setValues} />
-            ),
-          )}
-        </div>
-      </section>
-
-      <section className="mg-panel">
-        <h2>Details to show</h2>
-        <p className="hint">
-          Only information PluralKit already makes public can be shown. Turning
-          something off here hides it on pkviewer; it does not change PluralKit.
-        </p>
-        <div className="mg-grid">
-          {COMPOSITION.filter((c) => c.key.startsWith("show.")).map((def) => (
-            <Field key={def.key} def={def} value={values[def.key]} onChange={setValues} />
-          ))}
-        </div>
-      </section>
-
-      <div className="mg-savebar">
-        <span
-          className="mg-status"
-          data-tone={status === "ok" ? "ok" : status === "error" ? "error" : dirty ? "dirty" : undefined}
-          role="status"
-          aria-live="polite"
-        >
-          {status === "error" ? <ExclamationTriangle aria-hidden="true" /> : null}
-          {status === "ok" ? <Check2 aria-hidden="true" /> : null}
-          {message ?? (dirty ? "Unsaved changes" : "No changes")}
-        </span>
-        <span className="spacer" />
-        <button type="button" className="ghost" onClick={() => { setValues(saved); setStatus("idle"); setMessage(null); }} disabled={!dirty}>
-          Discard changes
-        </button>
-        <button type="button" className="primary" onClick={save} disabled={!dirty || status === "saving"}>
-          {status === "saving" ? "Saving…" : "Save settings"}
-        </button>
-      </div>
-    </>
-  );
-}
-
-function Field({
-  def,
-  value,
-  onChange,
-}: {
-  def: CompositionDef;
-  value: string | undefined;
-  onChange: (fn: (v: Record<string, string>) => Record<string, string>) => void;
-}) {
-  const id = `comp-${def.key.replace(/\./g, "-")}`;
-  const label = LABELS[def.key] ?? def.label;
-
-  if (def.type === "boolean") {
-    return (
-      <div className="mg-field">
-        <div className="mg-field-head">
-          <label htmlFor={id}>{label}</label>
-        </div>
-        <select
-          id={id}
-          value={value ?? String(def.default)}
-          aria-describedby={`${id}-desc`}
-          onChange={(e) => onChange((v) => ({ ...v, [def.key]: e.target.value }))}
-        >
-          <option value="true">Shown</option>
-          <option value="false">Hidden</option>
-        </select>
-        <span className="desc" id={`${id}-desc`}>{def.help}</span>
-      </div>
-    );
-  }
-
-  return (
-    <div className="mg-field">
-      <div className="mg-field-head">
-        <label htmlFor={id}>{label}</label>
-      </div>
-      <select
-        id={id}
-        value={value ?? def.default}
-        aria-describedby={`${id}-desc`}
-        onChange={(e) => onChange((v) => ({ ...v, [def.key]: e.target.value }))}
-      >
-        {def.values.map((v) => (
-          <option key={v} value={v}>{OPTION_LABELS[v] ?? v}</option>
-        ))}
-      </select>
-      <span className="desc" id={`${id}-desc`}>{def.help}</span>
-    </div>
-  );
-}
diff --git a/apps/web/src/components/manage/CssEditor.tsx b/apps/web/src/components/manage/CssEditor.tsx
deleted file mode 100644
index 91c1236..0000000
--- a/apps/web/src/components/manage/CssEditor.tsx
+++ /dev/null
@@ -1,179 +0,0 @@
-"use client";
-
-import { useState, useTransition } from "react";
-import { BoxArrowUpRight, ExclamationTriangle } from "react-bootstrap-icons";
-import { CSS_ISSUE_MESSAGES, MAX_CSS_LENGTH, type CssIssue } from "@pkviewer/shared";
-import { PageHeader, Section } from "@/components/manage/Shell.tsx";
-import { SaveBar, type SaveState } from "@/components/manage/SaveBar.tsx";
-import { saveMemberCss, saveSystemCss } from "@/app/manage/actions.ts";
-import { webConfig } from "@/lib/config.ts";
-
-/**
- * The custom CSS editor.
- *
- * The important thing this screen does is tell the truth about what happened.
- * pkviewer does not serve the CSS you type — it compiles it against an
- * allow-list — so a rule can be saved and still not apply, and a page that
- * silently swallowed rules would be far worse than one that says which and why.
- * Every dropped rule comes back with its line number and appears here.
- */
-export function CssEditor({
-  systemId,
-  memberRef,
-  initialSource,
-  initialIssues,
-}: {
-  systemId: string;
-  /** Present for a member's own stylesheet; absent for the system's. */
-  memberRef?: string;
-  initialSource: string;
-  initialIssues: CssIssue[];
-}) {
-  const [source, setSource] = useState(initialSource);
-  const [saved, setSaved] = useState(initialSource);
-  const [issues, setIssues] = useState<CssIssue[]>(initialIssues);
-  const [kept, setKept] = useState<number | null>(null);
-  const [state, setState] = useState<SaveState>("clean");
-  const [, startTransition] = useTransition();
-
-  const dirty = source !== saved;
-  const tooLong = source.length > MAX_CSS_LENGTH;
-
-  const save = () => {
-    setState("saving");
-    startTransition(async () => {
-      const result = memberRef
-        ? await saveMemberCss(systemId, memberRef, source)
-        : await saveSystemCss(systemId, source);
-      if (!result.ok) {
-        setState("error");
-        return;
-      }
-      setSaved(source);
-      setIssues(result.issues ?? []);
-      setKept(result.kept ?? 0);
-      setState("saved");
-    });
-  };
-
-  return (
-    <>
-      <PageHeader
-        title="Advanced CSS"
-        description={
-          memberRef
-            ? "Styles this member's page only, layered on top of your system stylesheet."
-            : "Styles every page in your system. Members can add their own on top."
-        }
-        actions={
-          <a className="btn" href={`${webConfig.docsUrl}/projects/pkviewer/css`} rel="noopener">
-            CSS reference <BoxArrowUpRight aria-hidden="true" />
-          </a>
-        }
-      />
-
-      <SaveBar
-        state={dirty && state !== "saving" ? "dirty" : state}
-        onSave={save}
-        onDiscard={() => {
-          setSource(saved);
-          setState("clean");
-        }}
-        disabled={tooLong}
-        {...(tooLong
-          ? { message: `Too long: ${source.length} of ${MAX_CSS_LENGTH} characters.` }
-          : {})}
-      />
-
-      <Section
-        title={memberRef ? "This member's stylesheet" : "Your stylesheet"}
-        description="Selectors are scoped to your page automatically — write `.card`, not `#pkv-user .card`."
-      >
-        <div className="mg-field">
-          <label htmlFor="css-source">CSS</label>
-          <textarea
-            id="css-source"
-            className="mg-code"
-            value={source}
-            spellCheck={false}
-            rows={20}
-            placeholder={".card {\n  border-radius: 18px;\n  background-color: #1b1520;\n}"}
-            onChange={(e) => {
-              setSource(e.target.value);
-              setState("dirty");
-            }}
-          />
-          <p className="mg-hint">
-            {source.length.toLocaleString()} of {MAX_CSS_LENGTH.toLocaleString()} characters.
-          </p>
-        </div>
-      </Section>
-
-      {issues.length > 0 ? (
-        <Section
-          title={`${issues.length} ${issues.length === 1 ? "line was" : "lines were"} not applied`}
-          description="Saved, but skipped when the page was built. Everything else still applies."
-        >
-          <ul className="mg-list">
-            {issues.map((issue, i) => (
-              <li key={`${issue.line}-${i}`} className="mg-item">
-                <ExclamationTriangle aria-hidden="true" />
-                <div className="grow">
-                  <strong>Line {issue.line}</strong>{" "}
-                  <span className="muted">{CSS_ISSUE_MESSAGES[issue.kind] ?? issue.kind}</span>
-                  {issue.detail ? (
-                    <div className="mg-item-meta">
-                      <code>{issue.detail}</code>
-                    </div>
-                  ) : null}
-                </div>
-              </li>
-            ))}
-          </ul>
-        </Section>
-      ) : kept !== null && kept > 0 ? (
-        <p className="mg-note" data-tone="ok" role="status" aria-live="polite">
-          All {kept} {kept === 1 ? "declaration" : "declarations"} applied.
-        </p>
-      ) : null}
-
-      <Section title="What is not available">
-        <ul className="mg-plain">
-          <li>
-            <strong>No <code>url()</code>.</strong> Stylesheets make no network
-            requests, so nobody visiting your page hands their address to
-            somewhere else.
-          </li>
-          <li>
-            <strong>No <code>position: absolute</code> or <code>fixed</code>.</strong>{" "}
-            Nothing can be laid over the page — a convincing fake sign-in box is
-            the thing this prevents.
-          </li>
-          <li>
-            <strong>No <code>!important</code>.</strong> It is reserved for the
-            rules that keep badges and the site notice in place.
-          </li>
-          <li>
-            <strong>Badges and the site notice cannot be restyled.</strong> They
-            are pkviewer&apos;s statements, not part of your page&apos;s
-            appearance.
-          </li>
-          <li>
-            <strong>Links only to Google Fonts and the pkviewer CDN.</strong>{" "}
-            <code>@import</code> a font, or point <code>background-image</code>{" "}
-            at the CDN. Anywhere else is refused, so a page cannot report its
-            visitors to a third party.
-          </li>
-        </ul>
-        <p className="mg-hint">
-          Anything not on the supported list is skipped rather than applied, and
-          says so above. The{" "}
-          <a href={`${webConfig.docsUrl}/projects/pkviewer/css`} rel="noopener">
-            CSS reference
-          </a>{" "}
-          lists every property and variable you can use.
-        </p>
-      </Section>
-    </>
-  );
-}
diff --git a/apps/web/src/components/manage/PublicUrl.tsx b/apps/web/src/components/manage/PublicUrl.tsx
deleted file mode 100644
index 99f1846..0000000
--- a/apps/web/src/components/manage/PublicUrl.tsx
+++ /dev/null
@@ -1,70 +0,0 @@
-"use client";
-
-import { useEffect, useRef, useState } from "react";
-import { BoxArrowUpRight, Check2, Clipboard } from "react-bootstrap-icons";
-
-/**
- * Displays a public URL with a copy action.
- *
- * Copying is never the only way to get the address: the URL is shown as text
- * and offered as an ordinary link, so it works without JavaScript, without a
- * clipboard permission, and for anyone who would rather select it by hand.
- *
- * Success is announced in words through a live region, not signalled by colour
- * alone.
- */
-export function PublicUrl({
-  url,
-  label = "Public address",
-  secondary,
-}: {
-  url: string;
-  label?: string;
-  /** Shown quietly beneath, e.g. the permanent ID address. */
-  secondary?: { url: string; note: string };
-}) {
-  const [copied, setCopied] = useState(false);
-  const timer = useRef<ReturnType<typeof setTimeout> | null>(null);
-
-  useEffect(() => () => { if (timer.current) clearTimeout(timer.current); }, []);
-
-  async function copy() {
-    try {
-      await navigator.clipboard.writeText(url);
-    } catch {
-      // A blocked clipboard is not an error worth shouting about: the address
-      // is right there as selectable text and as a link.
-      return;
-    }
-    setCopied(true);
-    if (timer.current) clearTimeout(timer.current);
-    timer.current = setTimeout(() => setCopied(false), 2200);
-  }
-
-  return (
-    <div className="mg-field">
-      <span className="desc">{label}</span>
-      <div style={{ display: "flex", gap: 8, alignItems: "center", flexWrap: "wrap" }}>
-        <code style={{ fontSize: 13.5, overflowWrap: "anywhere", flex: "1 1 16rem" }}>{url}</code>
-        <button type="button" onClick={copy}>
-          {copied ? <Check2 aria-hidden="true" /> : <Clipboard aria-hidden="true" />}
-          {copied ? "Copied" : "Copy"}
-        </button>
-        <a className="btn" href={url} target="_blank" rel="noopener">
-          Open <BoxArrowUpRight aria-hidden="true" />
-        </a>
-      </div>
-      <span role="status" aria-live="polite" className="visually-hidden">
-        {copied ? "Address copied to clipboard" : ""}
-      </span>
-      {secondary ? (
-        <span className="desc">
-          {secondary.note}{" "}
-          <a href={secondary.url} target="_blank" rel="noopener">
-            <code>{secondary.url}</code>
-          </a>
-        </span>
-      ) : null}
-    </div>
-  );
-}
diff --git a/apps/web/src/components/manage/SaveBar.tsx b/apps/web/src/components/manage/SaveBar.tsx
deleted file mode 100644
index 1f0d7e3..0000000
--- a/apps/web/src/components/manage/SaveBar.tsx
+++ /dev/null
@@ -1,71 +0,0 @@
-"use client";
-
-import { ArrowClockwise, Check2, ExclamationTriangle, PencilFill } from "react-bootstrap-icons";
-
-/**
- * The save state for every editable screen.
- *
- * One component so "did that work?" is answered identically everywhere. Each
- * state names itself in words as well as colour, and the message goes through a
- * live region so it is announced rather than only seen.
- */
-export type SaveState = "clean" | "dirty" | "saving" | "saved" | "error";
-
-const LABELS: Record<SaveState, string> = {
-  clean: "All changes saved",
-  dirty: "Unsaved changes",
-  saving: "Saving…",
-  saved: "Changes saved",
-  error: "Couldn't save changes. Try again.",
-};
-
-const TONES: Partial<Record<SaveState, string>> = {
-  dirty: "dirty",
-  saved: "ok",
-  error: "error",
-};
-
-export function SaveBar({
-  state,
-  message,
-  onSave,
-  onDiscard,
-  saveLabel = "Save changes",
-  disabled = false,
-}: {
-  state: SaveState;
-  /** Replaces the default wording, for anything more specific. */
-  message?: string | null;
-  onSave: () => void;
-  onDiscard: () => void;
-  saveLabel?: string;
-  /** Blocks saving for a reason other than "nothing changed". */
-  disabled?: boolean;
-}) {
-  const busy = state === "saving";
-  const canSave = !disabled && !busy && (state === "dirty" || state === "error");
-
-  return (
-    <div className="mg-savebar" data-state={state}>
-      <span className="mg-status" data-tone={TONES[state]} role="status" aria-live="polite">
-        {state === "saved" ? <Check2 aria-hidden="true" /> : null}
-        {state === "error" ? <ExclamationTriangle aria-hidden="true" /> : null}
-        {state === "dirty" ? <PencilFill aria-hidden="true" /> : null}
-        {state === "saving" ? <ArrowClockwise aria-hidden="true" /> : null}
-        {message ?? LABELS[state]}
-      </span>
-      <span className="spacer" />
-      <button
-        type="button"
-        className="quiet"
-        onClick={onDiscard}
-        disabled={busy || (state !== "dirty" && state !== "error")}
-      >
-        Discard
-      </button>
-      <button type="button" className="primary" onClick={onSave} disabled={!canSave}>
-        {busy ? "Saving…" : saveLabel}
-      </button>
-    </div>
-  );
-}
diff --git a/apps/web/src/components/manage/Shell.tsx b/apps/web/src/components/manage/Shell.tsx
deleted file mode 100644
index d5c6bca..0000000
--- a/apps/web/src/components/manage/Shell.tsx
+++ /dev/null
@@ -1,98 +0,0 @@
-import type { ReactNode } from "react";
-import { ArrowLeft } from "react-bootstrap-icons";
-
-/**
- * The management UI's structural primitives.
- *
- * Every /manage screen composes these rather than arranging its own spacing, so
- * the pages read as one application. Anything page-specific belongs here first,
- * as a shared piece, before it belongs in a page.
- */
-
-/** A page's title, one line of explanation, and its primary action. */
-export function PageHeader({
-  title,
-  description,
-  actions,
-  back,
-}: {
-  title: string;
-  description?: string;
-  actions?: ReactNode;
-  back?: { href: string; label: string };
-}) {
-  return (
-    <>
-      {back ? (
-        <a className="mg-back" href={back.href}>
-          <ArrowLeft aria-hidden="true" /> {back.label}
-        </a>
-      ) : null}
-      <div className="mg-pagehead">
-        <div className="grow">
-          <h1>{title}</h1>
-          {description ? <p>{description}</p> : null}
-        </div>
-        {actions ? <div className="mg-actions">{actions}</div> : null}
-      </div>
-    </>
-  );
-}
-
-/**
- * A titled group of related settings.
- *
- * The heading is a real `h2` so the page keeps a usable outline; the
- * description sits with it rather than floating above the first field.
- */
-export function Section({
-  title,
-  description,
-  children,
-  actions,
-}: {
-  title?: string;
-  description?: string;
-  children: ReactNode;
-  actions?: ReactNode;
-}) {
-  return (
-    <section className="mg-section">
-      {title ? (
-        <div className="mg-section-head">
-          <div className="mg-field-head">
-            <h2>{title}</h2>
-            {actions ? (
-              <>
-                <span className="spacer" />
-                <div className="mg-actions">{actions}</div>
-              </>
-            ) : null}
-          </div>
-          {description ? <p>{description}</p> : null}
-        </div>
-      ) : null}
-      {children}
-    </section>
-  );
-}
-
-/** A short aside. `tone` distinguishes information from a problem. */
-export function Note({
-  icon,
-  children,
-  tone,
-  role,
-}: {
-  icon?: ReactNode;
-  children: ReactNode;
-  tone?: "warn" | "accent";
-  role?: "status" | "alert";
-}) {
-  return (
-    <p className="mg-note" data-tone={tone} role={role}>
-      {icon}
-      <span>{children}</span>
-    </p>
-  );
-}
diff --git a/apps/web/src/components/manage/SlugEditor.tsx b/apps/web/src/components/manage/SlugEditor.tsx
deleted file mode 100644
index 5ce173b..0000000
--- a/apps/web/src/components/manage/SlugEditor.tsx
+++ /dev/null
@@ -1,303 +0,0 @@
-"use client";
-
-import { useEffect, useMemo, useRef, useState } from "react";
-import { Check2, ExclamationTriangle, InfoCircle } from "react-bootstrap-icons";
-import { PublicUrl } from "./PublicUrl.tsx";
-
-/**
- * Address editor for a system or a member.
- *
- * The client validates as you type purely so the feedback is immediate. The
- * server re-runs the same rules and its answer is the one that counts — the
- * check endpoint is advisory, and availability can change between checking and
- * claiming, which is why claiming re-checks transactionally.
- */
-
-export type SlugScope = "system" | "member";
-
-export type SlugStatus = {
-  current: { slug: string; claimedAt: number | null } | null;
-  reservations: Array<{ slug: string; until: number }>;
-  reservationDays: number;
-};
-
-export type SlugActions = {
-  check: (slug: string) => Promise<{ available: boolean; message?: string; availableAt?: number }>;
-  claim: (slug: string) => Promise<{
-    ok: boolean;
-    error?: string;
-    slug?: string;
-    previousSlug?: string | null;
-    warnings?: Array<{ code: string; memberHid?: string }>;
-  }>;
-  release: () => Promise<{ ok: boolean; error?: string; reservedUntil?: number | null }>;
-};
-
-export function SlugEditor({
-  scope,
-  status,
-  actions,
-  publicOrigin,
-  basePath,
-  idPath,
-  idLabel,
-}: {
-  scope: SlugScope;
-  status: SlugStatus;
-  actions: SlugActions;
-  publicOrigin: string;
-  /** Path prefix the address sits under, e.g. "/s" or "/s/doughmination". */
-  basePath: string;
-  /** The permanent ID address, which always works. */
-  idPath: string;
-  idLabel: string;
-}) {
-  const [value, setValue] = useState("");
-  const [availability, setAvailability] = useState<
-    { state: "idle" | "checking" | "free" | "taken" | "invalid"; message?: string }
-  >({ state: "idle" });
-  const [busy, setBusy] = useState(false);
-  const [result, setResult] = useState<{ tone: "ok" | "error"; text: string } | null>(null);
-  const [confirmRelease, setConfirmRelease] = useState(false);
-  const debounce = useRef<ReturnType<typeof setTimeout> | null>(null);
-
-  const minLength = scope === "system" ? 3 : 2;
-  const trimmed = value.trim().toLowerCase();
-
-  useEffect(() => {
-    if (debounce.current) clearTimeout(debounce.current);
-    if (trimmed.length === 0) {
-      setAvailability({ state: "idle" });
-      return;
-    }
-    setAvailability({ state: "checking" });
-    debounce.current = setTimeout(async () => {
-      const check = await actions.check(trimmed);
-      if (check.available) setAvailability({ state: "free" });
-      else if (check.message) setAvailability({ state: "invalid", message: check.message });
-      else if (check.availableAt) {
-        setAvailability({
-          state: "taken",
-          message: `That address is held until ${formatDate(check.availableAt)}.`,
-        });
-      } else setAvailability({ state: "taken", message: "That address is already in use." });
-    }, 350);
-    return () => {
-      if (debounce.current) clearTimeout(debounce.current);
-    };
-  }, [trimmed, actions]);
-
-  const previewUrl = useMemo(
-    () => `${publicOrigin}${basePath}/${trimmed || "your-address"}`,
-    [publicOrigin, basePath, trimmed],
-  );
-
-  async function claim() {
-    setBusy(true);
-    setResult(null);
-    const response = await actions.claim(trimmed);
-    setBusy(false);
-    if (!response.ok) {
-      setResult({ tone: "error", text: response.error ?? "Could not set that address." });
-      return;
-    }
-    const warning = response.warnings?.find((w) => w.code === "shadows_member_id");
-    setResult({
-      tone: "ok",
-      text: [
-        `Address set to ${response.slug}.`,
-        response.previousSlug
-          ? `Your previous address ${response.previousSlug} is held for you for ${status.reservationDays} days.`
-          : "",
-        warning
-          ? `Note: this matches another member's PluralKit ID (${warning.memberHid}), so that member's ID address now points here instead.`
-          : "",
-      ]
-        .filter(Boolean)
-        .join(" "),
-    });
-    setValue("");
-  }
-
-  async function release() {
-    setBusy(true);
-    setResult(null);
-    const response = await actions.release();
-    setBusy(false);
-    setConfirmRelease(false);
-    if (!response.ok) {
-      setResult({ tone: "error", text: response.error ?? "Could not release that address." });
-      return;
-    }
-    setResult({
-      tone: "ok",
-      text: `Address released. It is held for you until ${response.reservedUntil ? formatDate(response.reservedUntil) : "later"}, then anyone can take it.`,
-    });
-  }
-
-  return (
-    <>
-      <section className="mg-panel">
-        <h2>Public address</h2>
-        {status.current ? (
-          <>
-            <p className="hint">This is where people find this page.</p>
-            <PublicUrl
-              url={`${publicOrigin}${basePath}/${status.current.slug}`}
-              secondary={{
-                url: `${publicOrigin}${idPath}`,
-                note: `The ${idLabel} address also works and always will:`,
-              }}
-            />
-          </>
-        ) : (
-          <>
-            <p className="hint">
-              This page is already public. A chosen address just makes it easier
-              to share.
-            </p>
-            <PublicUrl url={`${publicOrigin}${idPath}`} label="Current address" />
-            <p className="mg-note">
-              <InfoCircle aria-hidden="true" />
-              <span>
-                No chosen address yet. The {idLabel} address above works now and
-                keeps working afterwards — a chosen one is simply friendlier to
-                pass around.
-              </span>
-            </p>
-          </>
-        )}
-      </section>
-
-      <section className="mg-panel">
-        <h2>{status.current ? "Change the address" : "Choose an address"}</h2>
-        <p className="hint">
-          Lowercase letters, numbers and hyphens. At least {minLength} characters.
-        </p>
-
-        <div className="mg-field">
-          <label htmlFor="slug-input">New address</label>
-          <div style={{ display: "flex", alignItems: "center", gap: 6, flexWrap: "wrap" }}>
-            <span className="desc" style={{ whiteSpace: "nowrap" }}>
-              {publicOrigin.replace(/^https?:\/\//, "")}{basePath}/
-            </span>
-            <input
-              id="slug-input"
-              type="text"
-              value={value}
-              spellCheck={false}
-              autoCapitalize="none"
-              autoComplete="off"
-              style={{ flex: "1 1 12rem" }}
-              aria-describedby="slug-feedback"
-              aria-invalid={availability.state === "invalid" || availability.state === "taken" ? "true" : undefined}
-              onChange={(e) => {
-                setValue(e.target.value);
-                setResult(null);
-              }}
-            />
-          </div>
-
-          {/* Availability is stated in words, with an icon, never colour alone. */}
-          <span
-            className={availability.state === "free" ? "desc" : "err"}
-            id="slug-feedback"
-            role="status"
-            aria-live="polite"
-          >
-            {availability.state === "idle" ? " " : null}
-            {availability.state === "checking" ? "Checking…" : null}
-            {availability.state === "free" ? (
-              <>
-                <Check2 aria-hidden="true" /> Available — {previewUrl}
-              </>
-            ) : null}
-            {availability.state === "invalid" || availability.state === "taken" ? (
-              <>
-                <ExclamationTriangle aria-hidden="true" /> {availability.message}
-              </>
-            ) : null}
-          </span>
-        </div>
-
-        <button
-          type="button"
-          className="primary"
-          disabled={busy || availability.state !== "free"}
-          onClick={claim}
-        >
-          {busy ? "Saving…" : status.current ? "Change address" : "Set address"}
-        </button>
-
-        {status.current ? (
-          <p className="desc" style={{ marginTop: 10 }}>
-            Changing the address holds the old one for you for {status.reservationDays} days
-            before anyone else can take it. Links to the old address stop working
-            when you change it, so share the new one.
-          </p>
-        ) : null}
-      </section>
-
-      {status.reservations.length > 0 ? (
-        <section className="mg-panel">
-          <h2>Addresses held for you</h2>
-          <p className="hint">
-            Released addresses stay reserved for {status.reservationDays} days. You can take one
-            back by entering it above; after that anyone can claim it.
-          </p>
-          <ul className="mg-list">
-            {status.reservations.map((r) => (
-              <li className="mg-card" key={r.slug}>
-                <span className="grow">
-                  <span className="title">{r.slug}</span>
-                  <span className="sub">Held until {formatDate(r.until)}</span>
-                </span>
-                <button type="button" onClick={() => setValue(r.slug)}>Take it back</button>
-              </li>
-            ))}
-          </ul>
-        </section>
-      ) : null}
-
-      {status.current ? (
-        <section className="mg-panel">
-          <h2>Release the address</h2>
-          <p className="hint">
-            This page stays public either way — it goes back to its {idLabel}{" "}
-            address. The released address is held for you for {status.reservationDays} days.
-          </p>
-          {confirmRelease ? (
-            <div style={{ display: "flex", gap: 8, flexWrap: "wrap", alignItems: "center" }}>
-              <span className="desc">Release <strong>{status.current.slug}</strong>?</span>
-              <button type="button" className="danger" onClick={release} disabled={busy}>
-                Yes, release it
-              </button>
-              <button type="button" className="ghost" onClick={() => setConfirmRelease(false)}>
-                Cancel
-              </button>
-            </div>
-          ) : (
-            <button type="button" className="danger" onClick={() => setConfirmRelease(true)}>
-              Release address
-            </button>
-          )}
-        </section>
-      ) : null}
-
-      {result ? (
-        <p className="mg-note" data-tone={result.tone === "error" ? "warn" : undefined} role="status" aria-live="polite">
-          {result.tone === "error" ? <ExclamationTriangle aria-hidden="true" /> : <Check2 aria-hidden="true" />}
-          <span>{result.text}</span>
-        </p>
-      ) : null}
-    </>
-  );
-}
-
-function formatDate(ms: number): string {
-  return new Date(ms).toLocaleDateString(undefined, {
-    day: "numeric",
-    month: "long",
-    year: "numeric",
-  });
-}
diff --git a/apps/web/src/components/manage/SocialLinksEditor.tsx b/apps/web/src/components/manage/SocialLinksEditor.tsx
deleted file mode 100644
index 00f31e1..0000000
--- a/apps/web/src/components/manage/SocialLinksEditor.tsx
+++ /dev/null
@@ -1,246 +0,0 @@
-"use client";
-
-import { useMemo, useState } from "react";
-import { useUnsavedGuard } from "./useUnsavedGuard.ts";
-import {
-  ArrowDown,
-  ArrowUp,
-  Check2,
-  ExclamationTriangle,
-  Plus,
-  Trash,
-} from "react-bootstrap-icons";
-import {
-  MAX_SOCIAL_LINKS,
-  SOCIAL_PLATFORMS,
-  SOCIAL_URL_MESSAGES,
-  validateSocialUrl,
-} from "@pkviewer/shared";
-
-/**
- * Social links editor.
- *
- * Links are data, never something pkviewer visits. There is no preview fetch,
- * no favicon lookup and no title scraping: fetching a user-supplied URL from
- * our server is an SSRF vector, so the platform choice is a label the user
- * picks, not something detected from the address.
- *
- * The whole ordered list is saved at once, which makes reordering, editing and
- * deleting one operation instead of three that can interleave badly.
- */
-
-export type EditableLink = {
-  platform: string;
-  label: string;
-  url: string;
-};
-
-export function SocialLinksEditor({
-  initialLinks,
-  saveAction,
-  ownerLabel,
-}: {
-  initialLinks: EditableLink[];
-  saveAction: (links: EditableLink[]) => Promise<{ ok: boolean; error?: string }>;
-  ownerLabel: string;
-}) {
-  const [links, setLinks] = useState<EditableLink[]>(initialLinks);
-  const [saved, setSaved] = useState<EditableLink[]>(initialLinks);
-  const [status, setStatus] = useState<"idle" | "saving" | "ok" | "error">("idle");
-  const [message, setMessage] = useState<string | null>(null);
-
-  const dirty = useMemo(
-    () => JSON.stringify(links) !== JSON.stringify(saved),
-    [links, saved],
-  );
-
-  useUnsavedGuard(dirty);
-
-  // Client-side validation is a courtesy so people see the problem next to the
-  // field. The server revalidates everything regardless.
-  const errors = useMemo(
-    () =>
-      links.map((link) => {
-        if (link.url.trim().length === 0) return null;
-        const result = validateSocialUrl(link.url);
-        return result.ok ? null : SOCIAL_URL_MESSAGES[result.reason];
-      }),
-    [links],
-  );
-
-  const hasErrors = errors.some((e) => e !== null);
-
-  function update(index: number, patch: Partial<EditableLink>) {
-    setLinks((current) => current.map((l, i) => (i === index ? { ...l, ...patch } : l)));
-    setStatus("idle");
-  }
-
-  function move(index: number, delta: number) {
-    setLinks((current) => {
-      const target = index + delta;
-      if (target < 0 || target >= current.length) return current;
-      const next = [...current];
-      const [item] = next.splice(index, 1);
-      next.splice(target, 0, item!);
-      return next;
-    });
-    setStatus("idle");
-  }
-
-  async function save() {
-    setStatus("saving");
-    const usable = links.filter((l) => l.url.trim().length > 0);
-    const result = await saveAction(usable);
-    if (result.ok) {
-      setLinks(usable);
-      setSaved(usable);
-      setStatus("ok");
-      setMessage("Saved.");
-    } else {
-      setStatus("error");
-      setMessage(result.error ?? "Could not save. Please try again.");
-    }
-  }
-
-  return (
-    <>
-      <section className="mg-panel">
-        <h2>Links on {ownerLabel}</h2>
-        <p className="hint">
-          Shown as links on the public page. pkviewer never visits them, so
-          nothing is loaded from these addresses on your visitors&apos; behalf.
-        </p>
-
-        {links.length === 0 ? (
-          <p className="desc">No links yet.</p>
-        ) : (
-          <ul className="mg-list">
-            {links.map((link, index) => {
-              const platform = SOCIAL_PLATFORMS.find((p) => p.id === link.platform);
-              const errorId = `link-${index}-error`;
-              return (
-                <li className="mg-panel" key={index} style={{ boxShadow: "none" }}>
-                  <div className="mg-grid">
-                    <div className="mg-field">
-                      <label htmlFor={`link-${index}-platform`}>Type</label>
-                      <select
-                        id={`link-${index}-platform`}
-                        value={link.platform}
-                        onChange={(e) => update(index, { platform: e.target.value })}
-                      >
-                        {SOCIAL_PLATFORMS.map((p) => (
-                          <option key={p.id} value={p.id}>{p.label}</option>
-                        ))}
-                      </select>
-                    </div>
-
-                    <div className="mg-field">
-                      <label htmlFor={`link-${index}-label`}>Label (optional)</label>
-                      <input
-                        id={`link-${index}-label`}
-                        type="text"
-                        value={link.label}
-                        maxLength={60}
-                        placeholder={platform?.label ?? ""}
-                        onChange={(e) => update(index, { label: e.target.value })}
-                      />
-                      <span className="desc">What the link says. Defaults to the type.</span>
-                    </div>
-
-                    <div className="mg-field">
-                      <label htmlFor={`link-${index}-url`}>Address</label>
-                      <input
-                        id={`link-${index}-url`}
-                        type="url"
-                        value={link.url}
-                        inputMode="url"
-                        spellCheck={false}
-                        placeholder={platform?.placeholder ?? "https://"}
-                        aria-invalid={errors[index] ? "true" : undefined}
-                        aria-describedby={errors[index] ? errorId : undefined}
-                        onChange={(e) => update(index, { url: e.target.value })}
-                      />
-                      {errors[index] ? (
-                        <span className="err" id={errorId}>{errors[index]}</span>
-                      ) : null}
-                    </div>
-                  </div>
-
-                  <div style={{ display: "flex", gap: 6, marginTop: 8, flexWrap: "wrap" }}>
-                    <button
-                      type="button"
-                      className="icon"
-                      onClick={() => move(index, -1)}
-                      disabled={index === 0}
-                      aria-label={`Move ${link.label || platform?.label || "link"} up`}
-                    >
-                      <ArrowUp aria-hidden="true" />
-                    </button>
-                    <button
-                      type="button"
-                      className="icon"
-                      onClick={() => move(index, 1)}
-                      disabled={index === links.length - 1}
-                      aria-label={`Move ${link.label || platform?.label || "link"} down`}
-                    >
-                      <ArrowDown aria-hidden="true" />
-                    </button>
-                    <span style={{ flex: 1 }} />
-                    <button
-                      type="button"
-                      className="danger"
-                      onClick={() => {
-                        setLinks((c) => c.filter((_, i) => i !== index));
-                        setStatus("idle");
-                      }}
-                    >
-                      <Trash aria-hidden="true" /> Remove
-                    </button>
-                  </div>
-                </li>
-              );
-            })}
-          </ul>
-        )}
-
-        <p style={{ marginTop: 14, marginBottom: 0 }}>
-          <button
-            type="button"
-            onClick={() => {
-              setLinks((c) => [...c, { platform: "website", label: "", url: "" }]);
-              setStatus("idle");
-            }}
-            disabled={links.length >= MAX_SOCIAL_LINKS}
-          >
-            <Plus aria-hidden="true" /> Add a link
-          </button>
-          {links.length >= MAX_SOCIAL_LINKS ? (
-            <span className="desc"> Maximum of {MAX_SOCIAL_LINKS} links.</span>
-          ) : null}
-        </p>
-      </section>
-
-      <div className="mg-savebar">
-        <span
-          className="mg-status"
-          data-tone={status === "ok" ? "ok" : status === "error" || hasErrors ? "error" : dirty ? "dirty" : undefined}
-          role="status"
-          aria-live="polite"
-        >
-          {status === "error" || hasErrors ? <ExclamationTriangle aria-hidden="true" /> : null}
-          {status === "ok" ? <Check2 aria-hidden="true" /> : null}
-          {hasErrors
-            ? "Fix the highlighted addresses before saving"
-            : (message ?? (dirty ? "Unsaved changes" : "No changes"))}
-        </span>
-        <span className="spacer" />
-        <button type="button" className="ghost" onClick={() => { setLinks(saved); setStatus("idle"); setMessage(null); }} disabled={!dirty}>
-          Discard changes
-        </button>
-        <button type="button" className="primary" onClick={save} disabled={!dirty || hasErrors || status === "saving"}>
-          {status === "saving" ? "Saving…" : "Save links"}
-        </button>
-      </div>
-    </>
-  );
-}
diff --git a/apps/web/src/components/manage/SystemNav.tsx b/apps/web/src/components/manage/SystemNav.tsx
deleted file mode 100644
index c628d3f..0000000
--- a/apps/web/src/components/manage/SystemNav.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-"use client";
-
-import { usePathname } from "next/navigation";
-import { CodeSlash, Globe2, Grid1x2, Link45deg, PaletteFill, People, Sliders } from "react-bootstrap-icons";
-
-/**
- * Section navigation.
- *
- * A column on wide screens and a horizontal scroller on narrow ones. Shrinking
- * a sidebar until it is unusable is worse than changing its shape.
- */
-const SECTIONS = [
-  { slug: "", label: "Overview", Icon: Grid1x2 },
-  { slug: "address", label: "Public address", Icon: Globe2 },
-  { slug: "appearance", label: "Appearance", Icon: PaletteFill },
-  { slug: "directory", label: "Layout", Icon: Sliders },
-  { slug: "links", label: "Social links", Icon: Link45deg },
-  { slug: "members", label: "Members", Icon: People },
-  // Last, and named "Advanced" on purpose: everything above it is a supported
-  // control that cannot produce a broken page, and this one can.
-  { slug: "css", label: "Advanced CSS", Icon: CodeSlash },
-];
-
-export function SystemNav({ systemId }: { systemId: string }) {
-  const pathname = usePathname();
-  const base = `/manage/${systemId}`;
-
-  return (
-    <nav className="mg-nav" aria-label="System settings">
-      {SECTIONS.map(({ slug, label, Icon }) => {
-        const href = slug ? `${base}/${slug}` : base;
-        const active = slug
-          ? pathname.startsWith(href)
-          : pathname === base || pathname === `${base}/`;
-        return (
-          <a key={label} href={href} aria-current={active ? "page" : undefined}>
-            <Icon aria-hidden="true" />
-            {label}
-          </a>
-        );
-      })}
-    </nav>
-  );
-}
diff --git a/apps/web/src/components/manage/ThemeEditor.tsx b/apps/web/src/components/manage/ThemeEditor.tsx
deleted file mode 100644
index f7c86d0..0000000
--- a/apps/web/src/components/manage/ThemeEditor.tsx
+++ /dev/null
@@ -1,431 +0,0 @@
-"use client";
-
-import { useMemo, useState } from "react";
-import { useUnsavedGuard } from "./useUnsavedGuard.ts";
-import { ArrowCounterclockwise, PencilSquare } from "react-bootstrap-icons";
-import {
-  FONTS,
-  FONT_IDS,
-  PRESETS,
-  THEME_TOKENS,
-  resolveTheme,
-  themeToCssVars,
-  type TokenDef,
-} from "@pkviewer/shared";
-import { SaveBar, type SaveState } from "./SaveBar.tsx";
-import { Section } from "./Shell.tsx";
-import { ThemePreview } from "./ThemePreview.tsx";
-
-/**
- * The appearance editor.
- *
- * Two levels share this component:
- *
- *   system  — defines the default appearance for the whole site
- *   member  — overrides that default for one member's page
- *
- * The three inheritance states are expressed as UI rather than as data the user
- * has to author. Nobody types `null`, deletes a field, or edits JSON: a control
- * is either following what it inherits or explicitly set, and there is a button
- * to move between those.
- */
-
-type Level = "system" | "member";
-
-const GROUPS: Array<{ title: string; hint: string; keys: string[] }> = [
-  {
-    title: "Colours",
-    hint: "The palette your pages are drawn from. Every other setting uses these.",
-    keys: ["color.page", "color.surface", "color.text", "color.muted", "color.accent", "color.border"],
-  },
-  {
-    title: "Typography",
-    hint: "The typefaces and reading size your pages use.",
-    keys: ["font.body", "font.heading", "font.size"],
-  },
-  {
-    title: "Shape and surfaces",
-    hint: "How cards, edges and avatars are drawn.",
-    keys: ["shape.radius", "surface.style", "avatar.shape"],
-  },
-  {
-    title: "Spacing",
-    hint: "How much room everything is given.",
-    keys: ["density"],
-  },
-  {
-    title: "Light and dark",
-    hint: "Follow the reader's device, or commit to one.",
-    keys: ["color.scheme"],
-  },
-];
-
-export type ThemeEditorProps = {
-  level: Level;
-  /** Values explicitly set at THIS level. Absent key = inheriting. */
-  initialValues: Record<string, string | null>;
-  /** The layer beneath: platform defaults for a system, system theme for a
-   * member. Used to show what "inherited" actually looks like. */
-  inheritedFrom: Record<string, string>;
-  saveAction: (values: Record<string, string | null>) => Promise<{ ok: boolean; error?: string }>;
-  previewName: string;
-};
-
-export function ThemeEditor({
-  level,
-  initialValues,
-  inheritedFrom,
-  saveAction,
-  previewName,
-}: ThemeEditorProps) {
-  const [values, setValues] = useState<Record<string, string | null>>(initialValues);
-  const [saved, setSaved] = useState<Record<string, string | null>>(initialValues);
-  const [status, setStatus] = useState<"idle" | "saving" | "ok" | "error">("idle");
-  const [message, setMessage] = useState<string | null>(null);
-  const [presetNote, setPresetNote] = useState<string | null>(null);
-
-  const dirty = useMemo(
-    () => JSON.stringify(values) !== JSON.stringify(saved),
-    [values, saved],
-  );
-
-  useUnsavedGuard(dirty);
-
-  // The preview resolves through the SAME functions the public renderer uses,
-  // so there is exactly one source of truth for how a token becomes a style.
-  const preview = useMemo(() => {
-    const resolved =
-      level === "system"
-        ? resolveTheme(values, {})
-        : resolveTheme(inheritedFrom, values);
-    return {
-      vars: themeToCssVars(resolved.light),
-      darkVars: themeToCssVars(resolved.dark),
-      scheme: resolved.scheme,
-      fonts: resolved.fonts,
-    };
-  }, [values, inheritedFrom, level]);
-
-  const editableTokens = THEME_TOKENS.filter(
-    (t) => level === "system" || t.memberOverridable,
-  );
-  const editableKeys = new Set(editableTokens.map((t) => t.key));
-
-  function setValue(key: string, value: string) {
-    setValues((v) => ({ ...v, [key]: value }));
-    setStatus("idle");
-  }
-
-  /** Returns a control to inheriting: the key is removed entirely, which is
-   * exactly what "absent means inherit" is. */
-  function inherit(key: string) {
-    setValues((v) => {
-      const next = { ...v };
-      delete next[key];
-      return next;
-    });
-    setStatus("idle");
-  }
-
-  /** Member-only: pin a control to the platform default, ignoring the system.
-   * This is the explicit-null state, exposed as a button rather than as data. */
-  function resetToPlatform(key: string) {
-    setValues((v) => ({ ...v, [key]: null }));
-    setStatus("idle");
-  }
-
-  function applyPreset(presetId: string) {
-    const preset = PRESETS.find((p) => p.id === presetId);
-    if (!preset) return;
-    // A preset applied at member level becomes an explicit member configuration.
-    // It never reaches up and changes the system.
-    const next: Record<string, string | null> = { ...values };
-    for (const [key, value] of Object.entries(preset.tokens)) {
-      if (editableKeys.has(key)) next[key] = value;
-    }
-    setValues(next);
-    setStatus("idle");
-    setPresetNote(`${preset.name} applied — review it below, then save.`);
-  }
-
-  async function save() {
-    setStatus("saving");
-    setMessage(null);
-    const result = await saveAction(values);
-    if (result.ok) {
-      setSaved(values);
-      setStatus("ok");
-      setMessage(null);
-      setPresetNote(null);
-    } else {
-      setStatus("error");
-      setMessage(result.error ?? null);
-    }
-  }
-
-  const saveState: SaveState =
-    status === "saving" ? "saving"
-    : status === "error" ? "error"
-    : dirty ? "dirty"
-    : status === "ok" ? "saved"
-    : "clean";
-
-  return (
-    <>
-      <Section
-        title="Start from a preset"
-        description={
-          level === "system"
-            ? "A preset fills in every setting below. You can change anything afterwards."
-            : "Applying a preset here sets these values for this member only. It does not change the system."
-        }
-      >
-        <div className="mg-presets">
-          {PRESETS.map((preset) => (
-            <button
-              type="button"
-              key={preset.id}
-              className="mg-preset"
-              onClick={() => applyPreset(preset.id)}
-            >
-              <span className="pname">{preset.name}</span>
-              <span className="mg-swatches" aria-hidden="true">
-                {["color.page", "color.surface", "color.text", "color.accent"].map((k) => (
-                  <span
-                    key={k}
-                    className="mg-swatch"
-                    style={{ background: preset.tokens[k] ?? "#fff" }}
-                  />
-                ))}
-              </span>
-              <span className="pchar">{preset.character}</span>
-            </button>
-          ))}
-        </div>
-        {presetNote ? (
-          <p className="mg-note" role="status" style={{ marginTop: "var(--mg-3)" }}>
-            <span>{presetNote}</span>
-          </p>
-        ) : null}
-      </Section>
-
-      <Section
-        title="Preview"
-        description="A representative sample. Open the public page to see the real thing."
-      >
-        <ThemePreview
-          vars={preview.vars}
-          darkVars={preview.darkVars}
-          scheme={preview.scheme}
-          name={previewName}
-        />
-      </Section>
-
-      {GROUPS.map((group) => {
-        const keys = group.keys.filter((k) => editableKeys.has(k));
-        if (keys.length === 0) return null;
-        return (
-          <Section title={group.title} description={group.hint} key={group.title}>
-            <div className="mg-grid">
-              {keys.map((key) => {
-                const def = THEME_TOKENS.find((t) => t.key === key);
-                if (!def) return null;
-                return (
-                  <TokenField
-                    key={key}
-                    def={def}
-                    level={level}
-                    value={values[key]}
-                    explicitlySet={Object.hasOwn(values, key)}
-                    inherited={inheritedFrom[key] ?? ""}
-                    onChange={setValue}
-                    onInherit={inherit}
-                    onResetToPlatform={resetToPlatform}
-                  />
-                );
-              })}
-            </div>
-          </Section>
-        );
-      })}
-
-      <SaveBar
-        state={saveState}
-        message={message}
-        saveLabel="Save appearance"
-        onSave={save}
-        onDiscard={() => {
-          setValues(saved);
-          setStatus("idle");
-          setMessage(null);
-          setPresetNote(null);
-        }}
-      />
-    </>
-  );
-}
-
-/**
- * One setting.
- *
- * State is conveyed by a word ("Inherited" / "Custom") and a border, never by
- * colour alone — the state has to survive colour blindness and a greyscale
- * screenshot.
- */
-function TokenField({
-  def,
-  level,
-  value,
-  explicitlySet,
-  inherited,
-  onChange,
-  onInherit,
-  onResetToPlatform,
-}: {
-  def: TokenDef;
-  level: Level;
-  value: string | null | undefined;
-  explicitlySet: boolean;
-  inherited: string;
-  onChange: (key: string, value: string) => void;
-  onInherit: (key: string) => void;
-  onResetToPlatform: (key: string) => void;
-}) {
-  const id = `tok-${def.key.replace(/\./g, "-")}`;
-  const isReset = explicitlySet && value === null;
-  const state = explicitlySet ? "override" : "inherit";
-  const effective = explicitlySet && typeof value === "string" ? value : inherited;
-
-  const stateLabel =
-    level === "system"
-      ? explicitlySet
-        ? "Custom"
-        : "Default"
-      : isReset
-        ? "Platform default"
-        : explicitlySet
-          ? "Custom"
-          : "Using system appearance";
-
-  return (
-    <div className="mg-field" data-state={state}>
-      <div className="mg-field-head">
-        <label htmlFor={id}>{def.label}</label>
-        <span className="spacer" />
-        <span className="mg-inherit" data-state={state}>
-          {explicitlySet ? <PencilSquare aria-hidden="true" /> : null}
-          {stateLabel}
-        </span>
-      </div>
-
-      <Control def={def} id={id} value={effective} onChange={onChange} />
-
-      <span className="desc" id={`${id}-desc`}>
-        {def.help}
-      </span>
-
-      {explicitlySet ? (
-        <span>
-          <button type="button" className="ghost" onClick={() => onInherit(def.key)}>
-            <ArrowCounterclockwise aria-hidden="true" />
-            {level === "system" ? "Use pkviewer default" : "Use system appearance"}
-          </button>
-        </span>
-      ) : level === "member" ? (
-        <span>
-          <button type="button" className="ghost" onClick={() => onChange(def.key, effective)}>
-            <PencilSquare aria-hidden="true" />
-            Override for this member
-          </button>
-          {" "}
-          <button type="button" className="ghost" onClick={() => onResetToPlatform(def.key)}>
-            Use pkviewer default instead
-          </button>
-        </span>
-      ) : null}
-    </div>
-  );
-}
-
-function Control({
-  def,
-  id,
-  value,
-  onChange,
-}: {
-  def: TokenDef;
-  id: string;
-  value: string;
-  onChange: (key: string, value: string) => void;
-}) {
-  if (def.type === "color") {
-    const safe = /^#[0-9A-Fa-f]{6}$/.test(value) ? value : "#000000";
-    return (
-      <span className="mg-colour">
-        <input
-          type="color"
-          id={id}
-          value={safe}
-          aria-describedby={`${id}-desc`}
-          onChange={(e) => onChange(def.key, e.target.value.toUpperCase())}
-        />
-        <input
-          type="text"
-          value={value}
-          aria-label={`${def.label} hex value`}
-          spellCheck={false}
-          onChange={(e) => onChange(def.key, e.target.value.toUpperCase())}
-        />
-      </span>
-    );
-  }
-
-  if (def.type === "font") {
-    return (
-      <select
-        id={id}
-        value={FONT_IDS.includes(value as never) ? value : def.default}
-        aria-describedby={`${id}-desc`}
-        onChange={(e) => onChange(def.key, e.target.value)}
-      >
-        {FONT_IDS.map((fid) => (
-          <option key={fid} value={fid}>
-            {FONTS[fid].label} — {FONTS[fid].note}
-          </option>
-        ))}
-      </select>
-    );
-  }
-
-  if (def.type === "enum") {
-    const current = def.values.includes(value) ? value : def.default;
-    return (
-      <select
-        id={id}
-        value={current}
-        aria-describedby={`${id}-desc`}
-        onChange={(e) => onChange(def.key, e.target.value)}
-      >
-        {def.values.map((v) => (
-          <option key={v} value={v}>
-            {sentence(v)}
-          </option>
-        ))}
-      </select>
-    );
-  }
-
-  return (
-    <input
-      type="text"
-      id={id}
-      value={value}
-      aria-describedby={`${id}-desc`}
-      onChange={(e) => onChange(def.key, e.target.value)}
-    />
-  );
-}
-
-function sentence(value: string): string {
-  return value.charAt(0).toUpperCase() + value.slice(1).replace(/-/g, " ");
-}
diff --git a/apps/web/src/components/manage/ThemePreview.tsx b/apps/web/src/components/manage/ThemePreview.tsx
deleted file mode 100644
index e88e0f8..0000000
--- a/apps/web/src/components/manage/ThemePreview.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-"use client";
-
-import { PersonCircle } from "react-bootstrap-icons";
-import { TokenStyle } from "../TokenStyle.tsx";
-
-/**
- * A representative sample of the public presentation.
- *
- * Deliberately not an iframe of the real page: it uses the SAME `--pkv-*`
- * custom properties and the same mapping functions the public renderer does, so
- * there is one source of truth for how a token becomes a style. Only the sample
- * content is local to the editor.
- */
-export function ThemePreview({
-  vars,
-  darkVars,
-  scheme,
-  name,
-}: {
-  vars: Record<string, string>;
-  darkVars: Record<string, string>;
-  scheme: "auto" | "light" | "dark";
-  name: string;
-}) {
-  return (
-    <div id="pkv-preview" className="pkv-preview">
-      <TokenStyle vars={vars} darkVars={darkVars} colorScheme={scheme} scope={{ elementId: "pkv-preview" }} />
-      <style>{`
-        .pkv-preview {
-          background: var(--pkv-color-page);
-          color: var(--pkv-color-text);
-          font-family: var(--pkv-font-body);
-          font-size: var(--pkv-font-size);
-          border: 1px solid var(--mg-line);
-          border-radius: var(--mg-radius);
-          padding: calc(1.25rem * var(--pkv-density));
-          overflow: hidden;
-        }
-        .pkv-preview .pv-name {
-          font-family: var(--pkv-font-heading);
-          font-size: 1.55em; font-weight: 600; line-height: 1.15; margin: 0;
-        }
-        .pkv-preview .pv-id { color: var(--pkv-color-muted); font-size: 0.85em; margin: 2px 0 0; }
-        .pkv-preview .pv-body { margin: calc(0.75rem * var(--pkv-density)) 0 0; line-height: 1.55; }
-        .pkv-preview .pv-link { color: var(--pkv-color-accent); text-decoration: underline; }
-        .pkv-preview .pv-head { display: flex; gap: calc(0.9rem * var(--pkv-density)); align-items: center; }
-        .pkv-preview .pv-avatar {
-          width: 56px; height: 56px; flex: none;
-          border-radius: var(--pkv-avatar-radius);
-          background: var(--pkv-color-border);
-          display: grid; place-items: center; color: var(--pkv-color-muted);
-        }
-        .pkv-preview .pv-cards {
-          margin-top: calc(1rem * var(--pkv-density));
-          display: grid; gap: calc(0.6rem * var(--pkv-density));
-          grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
-        }
-        .pkv-preview .pv-card {
-          background: var(--pkv-surface-bg);
-          border: 1px solid var(--pkv-surface-border);
-          border-radius: var(--pkv-radius);
-          padding: calc(0.7rem * var(--pkv-density) * var(--pkv-surface-pad) + 0.2rem);
-          font-size: 0.9em;
-        }
-        .pkv-preview .pv-card .pv-sub { color: var(--pkv-color-muted); font-size: 0.85em; }
-      `}</style>
-
-      <div className="pv-head">
-        <div className="pv-avatar" aria-hidden="true">
-          <PersonCircle size={26} />
-        </div>
-        <div>
-          <p className="pv-name">{name}</p>
-          <p className="pv-id">they/them · 12 members</p>
-        </div>
-      </div>
-
-      <p className="pv-body">
-        This is how a description reads, with a <span className="pv-link">link</span> in it.
-      </p>
-
-      <div className="pv-cards">
-        {["Ash", "Juniper", "Wren"].map((member) => (
-          <div className="pv-card" key={member}>
-            <div>{member}</div>
-            <div className="pv-sub">she/her</div>
-          </div>
-        ))}
-      </div>
-    </div>
-  );
-}
diff --git a/apps/web/src/components/manage/useUnsavedGuard.ts b/apps/web/src/components/manage/useUnsavedGuard.ts
deleted file mode 100644
index c1a22a7..0000000
--- a/apps/web/src/components/manage/useUnsavedGuard.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-"use client";
-
-import { useEffect } from "react";
-
-/**
- * Warns before leaving a page with unsaved edits.
- *
- * Deliberately minimal: a `beforeunload` listener, which the browser turns into
- * its own confirmation. Intercepting in-app navigation would mean owning a
- * router-level state machine, which is far more machinery than this earns — the
- * save bar already states plainly when there are unsaved changes.
- */
-export function useUnsavedGuard(dirty: boolean): void {
-  useEffect(() => {
-    if (!dirty) return;
-    const handler = (event: BeforeUnloadEvent) => {
-      event.preventDefault();
-      // Required by some browsers for the prompt to appear at all.
-      event.returnValue = "";
-    };
-    window.addEventListener("beforeunload", handler);
-    return () => window.removeEventListener("beforeunload", handler);
-  }, [dirty]);
-}
diff --git a/apps/web/src/lib/api.ts b/apps/web/src/lib/api.ts
deleted file mode 100644
index 46bc277..0000000
--- a/apps/web/src/lib/api.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-import type { CreditSection, PageModel, PublicBadge } from "@pkviewer/shared";
-import { webConfig } from "./config.ts";
-
-/**
- * The web tier's only route to data.
- *
- * One call per page: the API returns a fully resolved model with PluralKit
- * data, slugs, socials and tokens already merged, so server rendering is a
- * single hop rather than a fan-out.
- */
-
-export type PublicPage = PageModel & { canonicalPath: string };
-
-export type FetchOutcome<T> =
-  | { ok: true; value: T }
-  | { ok: false; status: number; reason: string };
-
-async function getJson<T>(path: string): Promise<FetchOutcome<T>> {
-  let res: Response;
-  try {
-    res = await fetch(`${webConfig.apiOrigin}${path}`, {
-      headers: { accept: "application/json" },
-      // Public pages are re-rendered per request; the API holds the cache, so a
-      // second cache here would only make staleness harder to reason about.
-      cache: "no-store",
-    });
-  } catch {
-    return { ok: false, status: 503, reason: "api_unreachable" };
-  }
-
-  if (!res.ok) {
-    const body = (await res.json().catch(() => null)) as { error?: string } | null;
-    return { ok: false, status: res.status, reason: body?.error ?? "error" };
-  }
-  return { ok: true, value: (await res.json()) as T };
-}
-
-export function getSystemPage(ref: string): Promise<FetchOutcome<PublicPage>> {
-  return getJson<PublicPage>(`/public/systems/${encodeURIComponent(ref)}`);
-}
-
-export function getMemberPage(ref: string, memberRef: string): Promise<FetchOutcome<PublicPage>> {
-  return getJson<PublicPage>(
-    `/public/systems/${encodeURIComponent(ref)}/members/${encodeURIComponent(memberRef)}`,
-  );
-}
-
-/** The credits page. Platform-owned content: no subject, no session. */
-export function getCredits(): Promise<FetchOutcome<{ sections: CreditSection[] }>> {
-  return getJson<{ sections: CreditSection[] }>("/public/credits");
-}
-
-/** The badge glossary, so every badge on a page can link to what it means. */
-export function getBadgeCatalogue(): Promise<FetchOutcome<{ badges: PublicBadge[] }>> {
-  return getJson<{ badges: PublicBadge[] }>("/public/badges");
-}
diff --git a/apps/web/src/lib/config.ts b/apps/web/src/lib/config.ts
deleted file mode 100644
index de92729..0000000
--- a/apps/web/src/lib/config.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Web-tier configuration.
- *
- * Only origins and flags: the rendering tier holds no secrets and no database
- * credentials. Every value is read from the environment so the deployment
- * origin stays configuration rather than architecture (decision 1).
- */
-
-function required(name: string, fallback?: string): string {
-  const value = process.env[name] ?? fallback;
-  if (!value) throw new Error(`missing environment variable: ${name}`);
-  return value.replace(/\/+$/, "");
-}
-
-export const webConfig = {
-  /**
-   * The one user-facing origin: /, /login, /auth, /manage and /s all live here.
-   *
-   * Used only where an absolute URL is genuinely required — canonical links,
-   * OpenGraph, and addresses shown for copying. Navigation within pkviewer uses
-   * relative paths, which is now always same-origin.
-   */
-  publicOrigin: required("PUBLIC_ORIGIN", "http://system.localhost:3000"),
-  /** Internal only. Never reaches the browser. */
-  apiOrigin: required("INTERNAL_API_ORIGIN", "http://127.0.0.1:3001"),
-  /**
-   * Where the documentation lives.
-   *
-   * Hardcoded, unlike pkviewer's own origin. The domain-portability rule exists
-   * so pkviewer can move hosts without a rebuild; this is not pkviewer's host,
-   * it is a fixed destination pkviewer links to — the same category as a
-   * repository URL. Making it configuration only meant it could be forgotten,
-   * which is exactly what happened: the option existed, nothing documented it,
-   * and no docs link ever appeared.
-   *
-   * It is also the route to support: the docs site's own footer carries the
-   * Discord, Matrix and repository links.
-   */
-  docsUrl: "https://docs.doughmination.gay",
-} as const;
-
-export function hostOf(origin: string): string {
-  return new URL(origin).host;
-}
diff --git a/apps/web/src/lib/manage-api.ts b/apps/web/src/lib/manage-api.ts
deleted file mode 100644
index 0931154..0000000
--- a/apps/web/src/lib/manage-api.ts
+++ /dev/null
@@ -1,127 +0,0 @@
-import "server-only";
-import { cookies } from "next/headers";
-import { webConfig } from "./config.ts";
-
-/**
- * Server-side calls into the management API.
- *
- * The browser never talks to the API directly: INTERNAL_API_ORIGIN stays
- * internal, and the session cookie is forwarded from the server component or
- * server action making the call. That keeps the __Host- cookie's host pinning
- * intact — a cross-origin browser call would need it loosened.
- */
-
-export type ApiResult<T> =
-  | { ok: true; value: T }
-  | { ok: false; status: number; error: string; detail?: unknown };
-
-async function call<T>(
-  path: string,
-  init: { method?: string; body?: unknown } = {},
-): Promise<ApiResult<T>> {
-  const cookieHeader = (await cookies()).toString();
-
-  const headers: Record<string, string> = {
-    accept: "application/json",
-    cookie: cookieHeader,
-    // The API rejects state-changing requests without a recognised Origin, so a
-    // server-side mutation must present one explicitly.
-    origin: webConfig.publicOrigin,
-  };
-  if (init.body !== undefined) headers["content-type"] = "application/json";
-
-  let res: Response;
-  try {
-    res = await fetch(`${webConfig.apiOrigin}${path}`, {
-      method: init.method ?? "GET",
-      headers,
-      ...(init.body !== undefined ? { body: JSON.stringify(init.body) } : {}),
-      cache: "no-store",
-    });
-  } catch {
-    return { ok: false, status: 503, error: "api_unreachable" };
-  }
-
-  const payload = (await res.json().catch(() => null)) as Record<string, unknown> | null;
-  if (!res.ok) {
-    return {
-      ok: false,
-      status: res.status,
-      error: typeof payload?.["error"] === "string" ? (payload["error"] as string) : "error",
-      detail: payload?.["rejected"] ?? payload?.["errors"],
-    };
-  }
-  return { ok: true, value: (payload ?? {}) as T };
-}
-
-export const manageApi = {
-  get: <T>(path: string) => call<T>(path),
-  put: <T>(path: string, body: unknown) => call<T>(path, { method: "PUT", body }),
-  post: <T>(path: string, body: unknown) => call<T>(path, { method: "POST", body }),
-  del: <T>(path: string) => call<T>(path, { method: "DELETE" }),
-};
-
-/**
- * Whether the signed-in account administers pkviewer.
- *
- * Used only to decide whether to show a link. Every admin route re-checks it on
- * the server, because a hidden link is not a permission boundary.
- */
-export async function isPlatformAdmin(): Promise<boolean> {
-  const result = await manageApi.get<{ admin: boolean }>("/admin/whoami");
-  return result.ok && result.value.admin === true;
-}
-
-export type ManagedSystemSummary = {
-  systemId: string;
-  pkSystemHid: string;
-  role: string;
-  name: string | null;
-  avatarUrl: string | null;
-  slug: string | null;
-  publicPath: string;
-  memberCount: number | null;
-  snapshotAgeMs: number | null;
-  reachable: boolean;
-};
-
-export type SystemOverview = {
-  systemId: string;
-  pkSystemHid: string;
-  name: string | null;
-  avatarUrl: string | null;
-  description: string | null;
-  memberCount: number | null;
-  slug: string | null;
-  publicPath: string;
-  snapshotAgeMs: number | null;
-  reachable: boolean;
-};
-
-export type ManagedMemberSummary = {
-  memberId: string | null;
-  pkMemberHid: string;
-  pkMemberUuid: string;
-  name: string | null;
-  displayName: string | null;
-  avatarUrl: string | null;
-  pronouns: string | null;
-  slug: string | null;
-  hasThemeOverrides: boolean;
-};
-
-export type StoredSocial = {
-  id: number;
-  platform: string;
-  label: string | null;
-  url: string;
-  visible: boolean;
-  sortOrder: number;
-};
-
-/** Whether the caller has a session at all. Used to send anonymous visitors to
- * the login page rather than showing them an error. */
-export async function isAuthenticated(): Promise<boolean> {
-  const result = await call<{ authenticated: boolean }>("/auth/me");
-  return result.ok && result.value.authenticated === true;
-}
diff --git a/apps/web/test/docker.test.ts b/apps/web/test/docker.test.ts
deleted file mode 100644
index 412acde..0000000
--- a/apps/web/test/docker.test.ts
+++ /dev/null
@@ -1,154 +0,0 @@
-import { describe, expect, test } from "bun:test";
-import { readFileSync } from "node:fs";
-import { join } from "node:path";
-
-/**
- * The container toolchain must match the one that wrote the lockfile.
- *
- * A Bun older than the lockfile cannot satisfy `--frozen-lockfile`, so the
- * images built fine locally and failed on the server. Nothing else catches
- * this: the Dockerfiles are valid, the lockfile is valid, and they are only
- * incompatible with each other.
- */
-const root = join(import.meta.dir, "..", "..", "..");
-const dockerfiles = ["docker/api.Dockerfile", "docker/web.Dockerfile"].map((p) => ({
-  path: p,
-  text: readFileSync(join(root, p), "utf8"),
-}));
-
-/**
- * Parsed, not scraped.
- *
- * These assertions used to run regexes over the raw text, which cannot tell a
- * valid compose file from an invalid one. A healthcheck script containing
- * `r.ok ? 0 : 1` parsed as a YAML *mapping* rather than a string -- every
- * regex test still passed, and `docker compose up` rejected the file on the
- * server. Parsing is what catches that class of thing.
- */
-const compose = Bun.YAML.parse(
-  readFileSync(join(root, "docker-compose.yml"), "utf8"),
-) as {
-  services: Record<string, Record<string, unknown>>;
-  volumes?: Record<string, unknown>;
-};
-
-const services = Object.entries(compose.services).map(([name, svc]) => ({
-  name,
-  svc,
-  image: svc["image"] as string,
-}));
-
-function bunTags(text: string): string[] {
-  return [...text.matchAll(/FROM oven\/bun:([^\s]+)/g)].map((m) => m[1]!);
-}
-
-describe("container toolchain", () => {
-  test("every stage pins the same Bun image", () => {
-    const tags = new Set(dockerfiles.flatMap((f) => bunTags(f.text)));
-    expect(tags.size).toBe(1);
-  });
-
-  test("the pinned Bun matches the Bun these tests run under", () => {
-    const [pinned] = [...new Set(dockerfiles.flatMap((f) => bunTags(f.text)))];
-    const pinnedVersion = pinned!.replace("-alpine", "");
-    const [major, minor] = Bun.version.split(".");
-    expect(pinnedVersion.startsWith(`${major}.${minor}`)).toBe(true);
-  });
-
-  test("installs are frozen, so an image gets exactly what was tested", () => {
-    for (const file of dockerfiles) {
-      expect(file.text, file.path).toContain("bun install --frozen-lockfile");
-    }
-  });
-
-  // Naming a workspace's node_modules assumes where Bun hoisted it, which
-  // depends on what is present at install time.
-  test("no stage copies a guessed node_modules path", () => {
-    for (const file of dockerfiles) {
-      expect(file.text, file.path).not.toMatch(/COPY --from=\S+ \S*apps\/\S+\/node_modules/);
-    }
-  });
-
-  // The API is internal: publishing its port would put the management API on
-  // the host network, which the architecture forbids.
-  test("compose exposes the API without publishing it", () => {
-    expect(compose.services["api"]!["expose"]).toEqual(["3001"]);
-    expect(compose.services["api"]!["ports"]).toBeUndefined();
-  });
-
-  // Published on every interface deliberately: Cloudflare Tunnel forwards here
-  // and a loopback bind is unreachable from another container or machine.
-  test("the web tier publishes 3000", () => {
-    expect(compose.services["web"]!["ports"]).toEqual(["3000:3000"]);
-  });
-
-  /**
-   * Compose rejects a healthcheck whose `test` entries are not all strings, and
-   * YAML turns an unquoted ` : ` into a mapping -- so the obvious way to write
-   * `r.ok ? 0 : 1` produces a file that only fails at `docker compose up`.
-   */
-  test("the healthcheck is a list of strings", () => {
-    const test = (compose.services["api"]!["healthcheck"] as Record<string, unknown>)["test"];
-    expect(Array.isArray(test)).toBe(true);
-    for (const part of test as unknown[]) expect(typeof part).toBe("string");
-  });
-
-  test("the healthcheck script is valid JavaScript", () => {
-    const test = (compose.services["api"]!["healthcheck"] as Record<string, unknown>)[
-      "test"
-    ] as string[];
-    expect(test.slice(0, 3)).toEqual(["CMD", "bun", "-e"]);
-    expect(() => new Function(test[3]!)).not.toThrow();
-  });
-});
-
-/**
- * The publish workflow and compose have to agree on image names, and nothing
- * else connects them: CI pushes `doughmination/pkviewer-api`, the server runs
- * whatever compose spells. Rename one and the other keeps working right up
- * until a deploy pulls a tag that was never published.
- */
-describe("published images", () => {
-  const workflow = readFileSync(join(root, ".github/workflows/images.yml"), "utf8");
-  const account = workflow.match(/DOCKERHUB_USER: (\S+)/)?.[1];
-  // Just the build matrix: `- name:` also introduces every workflow step.
-  const matrix = workflow.slice(workflow.indexOf("include:")).split(/^ {4}\w/m)[0]!;
-  const built = [...matrix.matchAll(/- name: ([\w-]+)$/gm)].map(
-    (m) => `${account}/pkviewer-${m[1]!}`,
-  );
-
-  test("CI publishes exactly the images compose runs", () => {
-    // `built` comes from a regex, so an empty match on both sides would
-    // otherwise agree vacuously.
-    expect(built.length).toBeGreaterThan(0);
-    expect(new Set(built)).toEqual(new Set(services.map((s) => s.image.split(":")[0])));
-  });
-
-  // Compose runs images, it does not build them. A `build:` section would let a
-  // server quietly compile whatever source is lying around instead of running
-  // the pinned image, which is the failure this whole arrangement avoids.
-  test("no service builds", () => {
-    for (const s of services) expect(s.svc["build"], s.name).toBeUndefined();
-  });
-
-  // A moving tag is only usable if a restart actually fetches it.
-  test("every service runs :latest and pulls on every start", () => {
-    for (const s of services) {
-      expect(s.image, s.name).toEndWith(":latest");
-      expect(s.svc["pull_policy"], s.name).toBe("always");
-    }
-  });
-
-  // Nothing about which image runs is configurable, so there is no server-side
-  // variable that can drift from what CI publishes.
-  test("image references are fully literal", () => {
-    for (const s of services) expect(s.image, s.name).not.toContain("$");
-  });
-
-  // A password would work and would be wrong: a token is scoped and can be
-  // revoked on its own.
-  test("the registry credential is a secret, never a literal", () => {
-    expect(workflow).toContain("${{ secrets.DOCKERHUB_TOKEN }}");
-    expect(workflow).not.toMatch(/password:\s*(?!\$\{\{)\S/);
-  });
-});
diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json
deleted file mode 100644
index d2c739f..0000000
--- a/apps/web/tsconfig.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
-  "extends": "../../tsconfig.base.json",
-  "compilerOptions": {
-    "lib": [
-      "ES2023",
-      "DOM",
-      "DOM.Iterable"
-    ],
-    "types": [],
-    "jsx": "preserve",
-    "allowJs": true,
-    "incremental": true,
-    "module": "ESNext",
-    "moduleResolution": "bundler",
-    "plugins": [
-      {
-        "name": "next"
-      }
-    ],
-    "paths": {
-      "@pkviewer/shared": [
-        "../../packages/shared/src/index.ts"
-      ],
-      "@/*": [
-        "./src/*"
-      ]
-    },
-    "esModuleInterop": true
-  },
-  "include": [
-    ".next/types/**/*.ts",
-    "next-env.d.ts",
-    "src/**/*.ts",
-    "src/**/*.tsx",
-    ".next-prod/types/**/*.ts"
-  ],
-  "exclude": [
-    "node_modules"
-  ]
-}
diff --git a/apps/web/tsconfig.tsbuildinfo b/apps/web/tsconfig.tsbuildinfo
deleted file mode 100644
index 899ca06..0000000
--- a/apps/web/tsconfig.tsbuildinfo
+++ /dev/null
@@ -1 +0,0 @@
-{"fileNames":["../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/unstable-cache.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/revalidate.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/unstable-no-store.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/use-cache/cache-tag.d.ts","./.next/types/cache-life.d.ts","./.next/types/routes.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/compatibility/disposable.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/compatibility/indexable.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/compatibility/iterators.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/compatibility/index.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/globals.typedarray.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/buffer.buffer.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/globals.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/web-globals/domexception.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/web-globals/events.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/header.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/readable.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/file.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/fetch.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/formdata.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/connector.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/client.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/errors.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/global-origin.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/pool.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/handlers.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/agent.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/mock-client.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/env-http-proxy-agent.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/retry-handler.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/retry-agent.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/api.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/interceptors.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/util.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/cookies.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/patch.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/websocket.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/eventsource.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/filereader.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/content-type.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/cache.d.ts","../../node_modules/.bun/[email protected]/node_modules/undici-types/index.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/web-globals/fetch.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/web-globals/navigator.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/web-globals/storage.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/web-globals/streams.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/assert.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/buffer.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/child_process.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/cluster.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/console.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/constants.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/crypto.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/dgram.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/dns.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/domain.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/events.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/fs.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/http.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/http2.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/https.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/inspector.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/inspector.generated.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/module.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/net.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/os.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/path.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/process.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/punycode.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/querystring.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/readline.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/repl.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/sea.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/sqlite.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/stream.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/stream/web.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/test.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/timers.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/tls.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/trace_events.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/tty.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/url.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/util.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/v8.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/vm.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/wasi.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/zlib.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/node/index.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/react/global.d.ts","../../node_modules/.bun/[email protected]/node_modules/csstype/index.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/react/index.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/react/canary.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/react/experimental.d.ts","../../node_modules/.bun/@[email protected]+bb30d84b8e9977d1/node_modules/@types/react-dom/index.d.ts","../../node_modules/.bun/@[email protected]+bb30d84b8e9977d1/node_modules/@types/react-dom/client.d.ts","../../node_modules/.bun/@[email protected]+bb30d84b8e9977d1/node_modules/@types/react-dom/canary.d.ts","../../node_modules/.bun/@[email protected]+bb30d84b8e9977d1/node_modules/@types/react-dom/experimental.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/get-page-files.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/compiled/webpack/webpack.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/plugins/next-font-manifest-plugin.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/deep-readonly.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/html-context.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/load-custom-routes.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/image-config.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/api-utils/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/base-http/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/body-streams.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/cache-control.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/setup-exception-listeners.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/worker.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/constants.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/app-router-headers.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/rendering-mode.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/require-hook.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/experimental/ppr.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/plugins/app-build-manifest-plugin.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/page-types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/segment-config/app/app-segment-config.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/segment-config/pages/pages-segment-config.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/analysis/get-page-static-info.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/loaders/get-module-build-info.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/plugins/middleware-plugin.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/node-polyfill-crypto.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/node-environment-baseline.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/node-environment-extensions/error-inspect.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/node-environment-extensions/random.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/node-environment-extensions/date.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/node-environment-extensions/web-crypto.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/node-environment-extensions/node-crypto.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/node-environment.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/page-extensions-type.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/fallback.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/instrumentation/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/coalesced-function.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/router-utils/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/modern-browserslist-target.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/constants.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/trace/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/trace/trace.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/trace/shared.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/trace/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/load-jsconfig.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@next/env/dist/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/use-cache-tracker-utils.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/plugins/telemetry-plugin/telemetry-plugin.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/telemetry/storage.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/build-context.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/bloom-filter.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack-config.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-kind.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-definitions/route-definition.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/swc/generated-native.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/swc/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/dev/parse-version-info.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/next-devtools/shared/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/dev/dev-indicator-server-state.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/parse-stack.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/next-devtools/server/shared.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/next-devtools/shared/stack-frame.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/next-devtools/dev-overlay/utils/get-error-by-type.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/react/jsx-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/next-devtools/dev-overlay/container/runtime-error/render-error.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/next-devtools/dev-overlay/shared.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/dev/hot-reloader-types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/cache-handlers/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/response-cache/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/resume-data-cache/cache-store.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/resume-data-cache/resume-data-cache.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/render-result.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/i18n-provider.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/next-url.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/compiled/@edge-runtime/cookies/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/cookies.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/request.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/after/builtin-request-context.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/fetch-event.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/response.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/segment-config/middleware/middleware-config.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/plugins/pages-manifest-plugin.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/router/utils/parse-url.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/base-http/node.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-definitions/locale-route-definition.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-definitions/pages-route-definition.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/mitt.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/with-router.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/router.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/route-loader.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/page-loader.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/router/router.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/router-context.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/loadable.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-definitions/app-page-route-definition.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/loaders/metadata/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/app-dir-module.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/async-storage/draft-mode-provider.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/adapters/headers.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/cache-signal.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/dynamic-rendering.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/request/fallback-params.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/response-cache/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/lazy-result.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/implicit-tags.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/work-unit-async-storage.external.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/app-render.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/amp-context.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/app-page/module.compiled.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/error-boundary.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/layout-router.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/render-from-template-context.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/action-async-storage-instance.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/action-async-storage.external.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/client-page.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/client-segment.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/request/search-params.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/hooks-server-context.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/http-access-fallback/error-boundary.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/types/alternative-urls-types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/types/extra-types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/types/metadata-types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/types/manifest-types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/types/opengraph-types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/types/twitter-types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/types/metadata-interface.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/types/resolvers.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/types/icons.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/resolve-metadata.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/metadata/metadata.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/lib/framework/boundary-components.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/rsc/preloads.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/rsc/postpone.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/rsc/taint.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/collect-segment-data.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/entry-base.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/templates/app-page.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/react/jsx-dev-runtime.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@types/react/compiler-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.d.ts","../../node_modules/.bun/@[email protected]+bb30d84b8e9977d1/node_modules/@types/react-dom/static.d.ts","../../node_modules/.bun/@[email protected]+bb30d84b8e9977d1/node_modules/@types/react-dom/server.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/app-page/module.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/adapter.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/use-cache/cache-life.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/router-reducer/router-reducer-types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/flight-data-helpers.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/router-reducer/fetch-server-response.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/pages/module.compiled.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/templates/pages.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/pages/module.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/next-devtools/userspace/pages/pages-dev-overlay-setup.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/render.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-definitions/pages-api-route-definition.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-matches/pages-api-route-match.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-matchers/route-matcher.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-matcher-providers/route-matcher-provider.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-matcher-managers/route-matcher-manager.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/normalizers/normalizer.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/normalizers/locale-route-normalizer.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/normalizers/request/pathname-normalizer.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/normalizers/request/suffix.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/normalizers/request/rsc.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/normalizers/request/prefetch-rsc.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/normalizers/request/next-data.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/static-paths/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/base-server.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/async-callback-set.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/router/utils/route-regex.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/router/utils/route-matcher.d.ts","../../node_modules/.bun/@[email protected]/node_modules/@img/colour/index.d.ts","../../node_modules/.bun/[email protected]+696fb5033f112e6a/node_modules/sharp/dist/index.d.mts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/image-optimizer.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/next-server.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/lru-cache.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/dev-bundler-service.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/dev/static-paths-worker.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/dev/next-dev-server.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/next.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/render-server.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/router-server.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/router/utils/path-match.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/router-utils/filesystem.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/router-utils/router-server-context.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/route-module.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/load-components.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-definitions/app-route-route-definition.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/async-storage/work-store.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/http.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/app-route/shared-modules.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/redirect-status-code.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/redirect-error.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/templates/app-route.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/app-route/module.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-modules/app-route/module.compiled.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/segment-config/app/app-segments.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/utils.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/turborepo-access-trace/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/turborepo-access-trace/result.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/turborepo-access-trace/helpers.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/turborepo-access-trace/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/export/routes/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/export/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/export/worker.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/worker.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/build/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/lib/incremental-cache/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/after/after.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/after/after-context.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/work-async-storage-instance.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/app-render/work-async-storage.external.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/request/params.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/route-matches/route-match.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/request-meta.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/cli/next-test.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/config-shared.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/config.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/utils.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/user-agent.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/compiled/@edge-runtime/primitives/url.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/web/spec-extension/image-response.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/compiled/@vercel/og/satori/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/compiled/@vercel/og/emoji/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/compiled/@vercel/og/types.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/after/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/request/root-params.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/request/connection.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/server.d.ts","../../node_modules/.bun/[email protected]+0f58469d5b3bd39f/node_modules/react-bootstrap-icons/dist/index.d.ts","./src/components/manage/shell.tsx","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/request/cookies.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/request/headers.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/server/request/draft-mode.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/headers.d.ts","./src/lib/config.ts","./src/lib/manage-api.ts","./src/app/admin/audit/page.tsx","../../packages/shared/src/recognition.ts","../../packages/shared/src/theme/vocabulary.ts","../../packages/shared/src/theme/validate.ts","../../packages/shared/src/theme/resolve.ts","../../packages/shared/src/theme/presets.ts","../../packages/shared/src/theme/index.ts","../../packages/shared/src/social.ts","../../packages/shared/src/css/sanitize.ts","../../packages/shared/src/index.ts","./src/components/badges.tsx","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/cache.d.ts","./src/app/admin/actions.ts","./src/components/admin/badgeadmin.tsx","./src/app/admin/badges/page.tsx","./src/components/admin/creditadmin.tsx","./src/app/admin/credits/page.tsx","./src/app/admin/page.tsx","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/styled-jsx/types/css.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/styled-jsx/types/macro.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/styled-jsx/types/style.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/styled-jsx/types/global.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/styled-jsx/types/index.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/amp.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/amp.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/pages/_app.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/app.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/runtime-config.external.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/config.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/pages/_document.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/document.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/dynamic.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dynamic.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/pages/_error.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/error.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/head.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/head.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/get-img-props.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/image-component.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/shared/lib/image-external.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/image.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/link.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/link.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/redirect.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/not-found.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/forbidden.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/unauthorized.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/unstable-rethrow.server.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/unstable-rethrow.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/navigation.react-server.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/unrecognized-action-error.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/components/navigation.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/navigation.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/router.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/dist/client/script.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/script.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/types/global.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/types/compiled.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/index.d.ts","./src/components/notices.tsx","./src/lib/api.ts","./src/app/badges/page.tsx","./src/app/credits/page.tsx","./src/app/login/page.tsx","./src/components/manage/publicurl.tsx","./src/components/manage/slugeditor.tsx","./src/app/manage/actions.ts","./src/app/manage/[systemid]/address/page.tsx","./src/components/manage/useunsavedguard.ts","./src/components/manage/savebar.tsx","./src/components/tokenstyle.tsx","./src/components/manage/themepreview.tsx","./src/components/manage/themeeditor.tsx","./src/app/manage/[systemid]/appearance/page.tsx","./src/components/manage/compositioneditor.tsx","./src/app/manage/[systemid]/directory/page.tsx","./src/components/manage/sociallinkseditor.tsx","./src/app/manage/[systemid]/links/page.tsx","./src/app/manage/[systemid]/members/[memberref]/page.tsx","./src/app/manage/[systemid]/members/page.tsx","./src/components/manage/badgeoffers.tsx","./src/app/manage/[systemid]/page.tsx","./src/components/manage/claimflow.tsx","./src/app/manage/claim/page.tsx","./src/app/manage/page.tsx","./src/app/page.tsx","./src/components/customstyle.tsx","./src/components/sociallinks.tsx","./src/components/themefonts.tsx","./src/lib/theme.ts","./src/app/s/[systemref]/[memberref]/page.tsx","./src/components/memberdirectory.tsx","./src/app/s/[systemref]/page.tsx","./src/app/auth/[...segments]/route.ts","./src/app/manage/signout/route.ts","./src/app/admin/layout.tsx","./src/app/layout.tsx","./src/components/manage/systemnav.tsx","./src/app/manage/[systemid]/layout.tsx","./src/app/manage/layout.tsx","./.next/types/validator.ts","./.next/types/app/layout.ts","./.next/types/app/page.ts","./.next/types/app/admin/layout.ts","./.next/types/app/admin/page.ts","./.next/types/app/badges/page.ts","./.next/types/app/credits/page.ts","./.next/types/app/s/[systemref]/page.ts","./.next-prod/types/routes.d.ts","../../node_modules/.bun/[email protected]+e8c85658066b2611/node_modules/next/image-types/global.d.ts","./next-env.d.ts","./src/app/not-found.tsx","./src/app/manage/error.tsx","./src/app/manage/loading.tsx","./src/app/manage/not-found.tsx","./src/app/manage/[systemid]/loading.tsx","./src/components/manage/csseditor.tsx","./src/app/manage/[systemid]/css/page.tsx","./src/app/manage/[systemid]/members/[memberref]/css/page.tsx","./.next-prod/types/cache-life.d.ts","./.next-prod/types/validator.ts","./.next-prod/types/app/layout.ts","./.next-prod/types/app/page.ts","./.next-prod/types/app/admin/page.ts","./.next-prod/types/app/admin/audit/page.ts","./.next-prod/types/app/admin/badges/page.ts","./.next-prod/types/app/admin/credits/page.ts","./.next-prod/types/app/auth/[...segments]/route.ts","./.next-prod/types/app/badges/page.ts","./.next-prod/types/app/credits/page.ts","./.next-prod/types/app/login/page.ts","./.next-prod/types/app/manage/page.ts","./.next-prod/types/app/manage/[systemid]/layout.ts","./.next-prod/types/app/manage/[systemid]/page.ts","./.next-prod/types/app/manage/[systemid]/address/page.ts","./.next-prod/types/app/manage/[systemid]/appearance/page.ts","./.next-prod/types/app/manage/[systemid]/css/page.ts","./.next-prod/types/app/manage/[systemid]/directory/page.ts","./.next-prod/types/app/manage/[systemid]/links/page.ts","./.next-prod/types/app/manage/[systemid]/members/page.ts","./.next-prod/types/app/manage/[systemid]/members/[memberref]/page.ts","./.next-prod/types/app/manage/[systemid]/members/[memberref]/css/page.ts","./.next-prod/types/app/manage/claim/page.ts","./.next-prod/types/app/manage/signout/route.ts","./.next-prod/types/app/s/[systemref]/page.ts","./.next-prod/types/app/s/[systemref]/[memberref]/page.ts"],"fileIdsList":[[68,75,124,141,142,324,446,565],[68,75,124,141,142,324,460,565],[68,75,124,141,142,324,462,565],[68,75,124,141,142,324,463,565],[68,75,124,141,142,437,539,565],[68,75,124,141,142,324,507,565],[68,75,124,141,142,324,508,565],[68,75,124,141,142,324,542,565],[68,75,124,141,142,324,509,565],[68,75,124,141,142,324,513,565],[68,75,124,141,142,324,519,565],[68,75,124,141,142,324,563,565],[68,75,124,141,142,324,521,565],[68,75,124,141,142,324,544,565],[68,75,124,141,142,324,523,565],[68,75,124,141,142,324,564,565],[68,75,124,141,142,324,524,565],[68,75,124,141,142,324,525,565],[68,75,124,141,142,324,527,565],[68,75,124,141,142,324,529,565],[68,75,124,141,142,324,530,565],[68,75,124,141,142,437,540,565],[68,75,124,141,142,324,531,565],[68,75,124,141,142,324,536,565],[68,75,124,141,142,324,538,565],[64,65,66,67,68,75,124,141,142],[68,75,124,141,142,565],[68,75,124,141,142,427,437,446,460,462,463,507,508,509,513,519,521,523,524,525,527,529,530,531,536,538,539,540,541,542,544,545,554,563,564,565],[68,75,124,141,142,324,541,565],[64,65,66,67,75,124,141,142,565],[68,69,75,124,141,142,427,437,446,460,462,463,507,508,509,513,519,521,523,524,525,527,529,530,531,536,538,539,540,541,542,544,545,565],[68,75,124,141,142,504,554,555,565],[68,75,124,141,142,445,565],[68,75,124,141,142,439,445,565],[68,75,124,141,142,439,445,455,459,565],[68,75,124,141,142,439,445,461,565],[68,75,124,141,142,438,444,445,498,504,565],[68,75,124,141,142,438,439,445,565],[68,75,124,141,142,437,443,444,565],[68,75,124,141,142,456,504,505,506,565],[68,75,124,141,142,438,504,505,506,565],[68,75,124,141,142,504,565],[68,75,124,141,142,438,444,504,565],[68,75,124,141,142,444,445,498,504,511,512,565],[68,75,124,141,142,445,455,498,504,512,518,565],[68,75,124,141,142,445,455,498,504,562,565],[68,75,124,141,142,445,455,498,504,512,520,565],[68,75,124,141,142,445,543,565],[68,75,124,141,142,445,498,504,512,522,565],[68,75,124,141,142,439,445,455,498,504,562,565],[68,75,124,141,142,438,444,445,455,498,504,511,512,518,522,565],[68,75,124,141,142,438,439,445,498,504,565],[68,75,124,141,142,438,439,444,445,455,498,504,510,526,565],[68,75,124,141,142,445,455,565],[68,75,124,141,142,438,504,512,528,565],[68,75,124,141,142,438,565],[68,75,124,141,142,438,439,444,445,565],[68,75,124,141,142,444,505,565],[68,75,124,141,142,438,444,505,565],[68,75,124,141,142,438,444,498,504,505,506,516,532,533,534,535,565],[68,75,124,141,142,438,444,456,498,504,505,506,516,532,533,534,535,537,565],[68,75,124,141,142,177,439,455,456,458,460,565],[68,75,124,141,142,177,438,439,458,462,565],[68,75,124,141,142,438,455,565],[68,75,124,141,142,177,439,455,456,512,565],[68,75,124,141,142,177,438,512,565],[68,75,124,141,142,177,438,455,514,565],[68,75,124,141,142,177,438,439,444,455,512,515,565],[68,75,124,141,142,177,438,565],[68,75,124,141,142,177,438,510,565],[68,75,124,141,142,438,498,565],[68,75,124,141,142,177,438,439,455,514,515,517,565],[68,75,124,141,142,438,516,565],[68,75,124,141,142,177,565],[68,75,124,141,142,438,444,565],[68,75,124,141,142,455,565],[68,75,124,141,142,444,455,565],[68,75,124,141,142,443,444,502,565],[68,75,121,122,124,141,142,565],[68,75,123,124,141,142,565],[68,124,141,142,565],[68,75,124,129,141,142,159,565],[68,75,124,125,130,135,141,142,144,156,167,565],[68,75,124,125,126,135,141,142,144,565],[68,70,71,72,75,124,141,142,565],[68,75,124,127,141,142,168,565],[68,75,124,128,129,136,141,142,145,565],[68,75,124,129,141,142,156,164,565],[68,75,124,130,132,135,141,142,144,565],[68,75,123,124,131,141,142,565],[68,75,124,132,133,141,142,565],[68,75,124,134,135,141,142,565],[68,75,123,124,135,141,142,565],[68,75,124,135,136,137,141,142,156,167,565],[68,75,124,135,136,137,141,142,151,156,159,565],[68,75,116,124,132,135,138,141,142,144,156,167,565],[68,75,124,135,136,138,139,141,142,144,156,164,167,565],[68,75,124,138,140,141,142,156,164,167,565],[68,73,74,75,76,77,78,79,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,565],[68,75,124,135,141,142,565],[68,75,124,141,142,143,167,565],[68,75,124,132,135,141,142,144,156,565],[68,75,124,141,142,145,565],[68,75,124,141,142,146,565],[68,75,123,124,141,142,147,565],[68,75,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,565],[68,75,124,141,142,149,565],[68,75,124,141,142,150,565],[68,75,124,135,141,142,151,152,565],[68,75,124,141,142,151,153,168,170,565],[68,75,124,136,141,142,565],[68,75,124,135,141,142,156,157,159,565],[68,75,124,141,142,158,159,565],[68,75,124,141,142,156,157,565],[68,75,124,141,142,159,565],[68,75,124,141,142,160,565],[68,75,121,124,141,142,156,161,167,565],[68,75,124,135,141,142,162,163,565],[68,75,124,141,142,162,163,565],[68,75,124,129,141,142,144,156,164,565],[68,75,124,141,142,165,565],[68,75,124,141,142,144,166,565],[68,75,124,138,141,142,150,167,565],[68,75,124,129,141,142,168,565],[68,75,124,141,142,156,169,565],[68,75,124,141,142,143,170,565],[68,75,124,141,142,171,565],[68,75,116,124,141,142,565],[68,75,116,124,135,137,141,142,147,156,159,167,169,170,172,565],[68,75,124,141,142,156,173,565],[68,75,124,141,142,177,178,179,180,181,182,183,341,342,426,433,467,565],[68,75,124,141,142,177,178,179,180,181,182,426,433,467,565],[68,75,124,141,142,177,178,179,182,183,426,433,467,565],[68,75,124,141,142,177,181,182,183,341,565],[68,75,124,141,142,177,181,183,565],[68,75,124,141,142,177,179,180,182,183,426,433,467,565],[68,75,124,141,142,177,178,180,182,183,426,433,467,565],[68,75,124,141,142,175,176,565],[68,75,124,141,142,469,565],[68,75,124,141,142,471,565],[64,65,66,67,68,75,124,141,142,565],[68,75,124,141,142,473,565],[68,75,124,141,142,189,205,206,207,209,423,565],[68,75,124,141,142,189,192,231,233,235,236,239,423,565],[68,75,124,141,142,189,192,195,197,198,199,200,201,412,423,565],[68,75,124,141,142,423,565],[68,75,124,141,142,206,307,393,402,419,565],[68,75,124,141,142,189,565],[68,75,124,141,142,220,419,565],[68,75,124,141,142,243,565],[68,75,124,141,142,192,242,423,565],[68,75,124,138,141,142,290,307,336,503,565],[68,75,124,138,141,142,301,316,402,418,565],[68,75,124,138,141,142,353,565],[68,75,124,141,142,406,565],[68,75,124,141,142,405,406,407,565],[68,75,124,141,142,405,565],[68,75,124,138,141,142,184,189,195,198,202,203,204,206,210,218,219,220,346,371,403,423,426,565],[68,75,124,141,142,189,208,227,231,232,237,238,423,503,565],[68,75,124,141,142,208,503,565],[68,75,124,141,142,219,227,288,423,503,565],[68,75,124,141,142,503,565],[68,75,124,141,142,189,208,209,503,565],[68,75,124,141,142,234,503,565],[68,75,124,141,142,202,404,411,565],[68,75,124,141,142,150,251,419,565],[68,75,124,141,142,251,419,565],[68,75,124,141,142,177,251,565],[68,75,124,141,142,177,308,565],[68,75,124,141,142,304,351,419,495,496,565],[68,75,124,141,142,399,489,490,491,492,494,565],[68,75,124,141,142,398,565],[68,75,124,141,142,398,399,565],[68,75,124,141,142,199,347,348,349,565],[68,75,124,141,142,347,350,351,565],[68,75,124,141,142,493,565],[68,75,124,141,142,347,351,565],[68,75,124,141,142,177,190,483,565],[68,75,124,141,142,167,177,565],[68,75,124,141,142,177,208,278,565],[68,75,124,141,142,177,208,565],[68,75,124,141,142,276,280,565],[68,75,124,141,142,177,277,425,565],[68,75,124,138,141,142,174,177,178,179,180,182,183,426,431,432,467,565],[68,75,124,138,141,142,565],[68,75,124,138,141,142,193,195,258,347,357,372,393,408,409,423,503,565],[68,75,124,141,142,218,410,565],[68,75,124,141,142,426,565],[68,75,124,141,142,424,565],[68,75,124,141,142,177,290,303,315,325,327,418,565],[68,75,124,141,142,150,290,303,324,325,326,418,502,565],[68,75,124,141,142,318,319,320,321,322,323,565],[68,75,124,141,142,320,565],[68,75,124,141,142,324,565],[68,75,124,141,142,249,250,251,253,565],[68,75,124,141,142,177,244,245,246,252,565],[68,75,124,141,142,249,252,565],[68,75,124,141,142,247,565],[68,75,124,141,142,248,565],[68,75,124,141,142,177,251,277,425,565],[68,75,124,141,142,177,188,251,425,565],[68,75,124,141,142,177,251,425,565],[68,75,124,141,142,372,415,565],[68,75,124,141,142,415,565],[68,75,124,138,141,142,193,425,565],[68,75,124,141,142,312,565],[68,75,123,124,141,142,311,565],[68,75,124,141,142,187,193,221,259,296,298,300,301,302,344,347,418,421,565],[68,75,124,141,142,221,333,347,351,565],[68,75,124,141,142,301,418,565],[68,75,124,141,142,177,301,309,310,312,313,314,315,316,317,328,329,330,331,332,334,335,418,419,503,565],[68,75,124,141,142,295,565],[68,75,124,138,141,142,150,186,187,192,193,221,222,258,344,345,346,351,372,393,414,423,426,503,565],[68,75,124,141,142,418,565],[68,75,123,124,141,142,187,193,206,299,346,414,416,417,565],[68,75,124,141,142,301,565],[68,75,123,124,141,142,258,263,291,292,293,294,295,296,297,298,300,418,419,565],[68,75,124,138,141,142,192,193,263,264,291,565],[68,75,124,141,142,193,206,346,347,372,414,418,565],[68,75,124,138,141,142,192,423,565],[68,75,124,138,141,142,156,192,193,421,565],[68,75,124,138,141,142,150,167,186,187,192,193,195,208,220,221,222,224,259,260,265,270,298,347,357,359,362,364,367,368,369,370,371,393,413,414,419,421,423,565],[68,75,124,138,141,142,156,565],[68,75,124,141,142,189,190,191,195,200,203,208,227,413,421,422,425,426,503,565],[68,75,124,138,141,142,156,167,239,241,243,244,245,246,253,503,565],[68,75,124,141,142,150,167,220,231,241,269,270,271,272,298,347,362,371,372,379,382,383,393,414,419,421,565],[68,75,124,141,142,202,203,218,346,371,414,423,565],[68,75,124,138,141,142,167,190,195,298,377,421,423,565],[68,75,124,141,142,289,565],[68,75,124,138,141,142,380,381,390,565],[68,75,124,141,142,421,423,565],[68,75,124,141,142,296,299,565],[68,75,124,141,142,187,298,413,425,565],[68,75,124,138,141,142,150,225,231,272,362,372,379,382,385,421,565],[68,75,124,138,141,142,202,218,231,386,565],[68,75,124,141,142,189,224,388,413,423,565],[68,75,124,138,141,142,167,423,565],[68,75,124,138,141,142,208,223,224,225,236,254,387,389,413,423,565],[68,75,124,141,142,184,187,221,392,425,426,565],[68,75,124,138,141,142,150,167,186,195,202,210,218,222,259,265,269,270,271,272,298,347,359,372,373,375,378,393,413,414,419,420,421,425,565],[68,75,124,138,141,142,156,202,379,384,390,421,565],[68,75,124,141,142,213,214,215,216,217,565],[68,75,124,141,142,260,363,565],[68,75,124,141,142,365,565],[68,75,124,141,142,363,565],[68,75,124,141,142,365,366,565],[68,75,124,138,141,142,193,195,198,199,258,565],[68,75,124,138,141,142,150,186,187,190,192,221,259,355,356,393,421,424,425,426,565],[68,75,124,138,141,142,150,167,193,194,199,298,356,420,565],[68,75,124,141,142,291,565],[68,75,124,141,142,292,565],[68,75,124,141,142,293,565],[68,75,124,141,142,419,565],[68,75,124,141,142,240,256,565],[68,75,124,138,141,142,195,240,259,565],[68,75,124,141,142,255,256,565],[68,75,124,141,142,257,565],[68,75,124,141,142,240,241,565],[68,75,124,141,142,240,273,565],[68,75,124,141,142,240,565],[68,75,124,141,142,260,361,420,565],[68,75,124,141,142,360,565],[68,75,124,141,142,241,419,420,565],[68,75,124,141,142,358,420,565],[68,75,124,141,142,241,419,565],[68,75,124,141,142,344,565],[68,75,124,141,142,187,193,195,200,259,287,290,296,298,303,306,337,340,343,347,392,413,421,565],[68,75,124,141,142,281,284,285,286,304,305,351,565],[68,75,124,141,142,177,180,182,183,251,338,339,565],[68,75,124,141,142,177,180,182,183,251,338,339,342,565],[68,75,124,141,142,401,565],[68,75,124,141,142,187,206,264,301,312,316,347,392,394,395,396,397,399,400,403,413,418,423,565],[68,75,124,141,142,351,565],[68,75,124,141,142,355,565],[68,75,124,138,141,142,259,274,352,354,357,392,421,425,426,565],[68,75,124,141,142,188,281,282,283,284,285,286,304,305,351,565],[68,75,124,138,141,142,150,167,184,186,187,193,222,240,241,298,390,391,393,413,414,423,426,565],[68,75,124,141,142,264,266,269,414,565],[68,75,124,138,141,142,260,423,565],[68,75,124,141,142,263,301,565],[68,75,124,141,142,262,565],[68,75,124,141,142,264,265,565],[68,75,124,141,142,261,263,423,565],[68,75,124,138,141,142,193,194,264,266,267,268,423,565],[68,75,124,141,142,177,347,348,350,565],[68,75,124,141,142,226,565],[68,75,124,141,142,177,190,565],[68,75,124,141,142,177,419,565],[68,75,124,141,142,177,184,186,187,425,426,565],[68,75,124,141,142,190,483,484,565],[68,75,124,141,142,177,280,565],[68,75,124,141,142,150,167,177,238,275,277,279,424,425,565],[68,75,124,141,142,193,208,419,565],[68,75,124,141,142,374,419,565],[68,75,124,141,142,347,565],[68,75,124,136,138,141,142,150,177,188,227,233,280,424,426,565],[68,75,124,141,142,177,178,179,180,182,183,426,433,565],[68,75,124,141,142,177,464,465,466,467,565],[68,75,124,129,141,142,565],[68,75,124,141,142,228,229,230,565],[68,75,124,141,142,228,565],[68,75,124,138,140,141,142,150,174,177,178,179,180,182,183,192,220,222,324,385,423,424,425,433,467,565],[68,75,124,141,142,475,565],[68,75,124,141,142,477,565],[68,75,124,141,142,479,565],[68,75,124,141,142,481,565],[68,75,124,141,142,440,441,442,565],[68,75,124,141,142,485,565],[68,75,124,141,142,427,437,443,457,468,470,472,474,476,478,480,482,486,488,498,499,501,502,503,565],[68,75,124,141,142,487,565],[68,75,124,141,142,497,565],[68,75,124,141,142,277,565],[68,75,124,141,142,500,565],[68,75,123,124,141,142,264,266,267,269,315,419,428,429,430,433,434,435,436,565],[68,75,124,141,142,174,565],[68,75,124,141,142,156,174,376,565],[68,75,88,92,124,141,142,167,565],[68,75,88,124,141,142,156,167,565],[68,75,83,124,141,142,565],[68,75,85,88,124,141,142,164,167,565],[68,75,124,141,142,144,164,565],[68,75,83,124,141,142,174,565],[68,75,85,88,124,141,142,144,167,565],[68,75,80,81,84,87,124,135,141,142,156,167,565],[68,75,88,95,124,141,142,565],[68,75,80,86,124,141,142,565],[68,75,88,109,110,124,141,142,565],[68,75,84,88,124,141,142,159,167,174,565],[68,75,109,124,141,142,174,565],[68,75,82,83,124,141,142,174,565],[68,75,88,124,141,142,565],[68,75,82,83,84,85,86,87,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,124,141,142,565],[68,75,88,103,124,141,142,565],[68,75,88,95,96,124,141,142,565],[68,75,86,88,96,97,124,141,142,565],[68,75,87,124,141,142,565],[68,75,80,83,88,124,141,142,565],[68,75,88,92,96,97,124,141,142,565],[68,75,92,124,141,142,565],[68,75,86,88,91,124,141,142,167,565],[68,75,80,85,88,95,124,141,142,565],[68,75,124,141,142,156,565],[68,75,83,88,109,124,141,142,172,174,565],[68,75,124,141,142,447,452,453,454,565],[68,75,124,141,142,448,449,450,451,565],[68,75,124,141,142,448,449,565],[68,75,124,141,142,448,565]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9fe6af238339a0e5f7563acee3178f51db37f32a2e7c09f85273098cee7ec49","impliedFormat":1},{"version":"407a06ba04eede4074eec470ecba2784cbb3bf4e7de56833b097dd90a2aa0651","impliedFormat":1},{"version":"77e71242e71ebf8528c5802993697878f0533db8f2299b4d36aa015bae08a79c","impliedFormat":1},{"version":"98a787be42bd92f8c2a37d7df5f13e5992da0d967fab794adbb7ee18370f9849","impliedFormat":1},"2552a31fad45a9ed1bde87e51b038dc0e786cd364b597162263abbf57018949b",{"version":"97192aff719c7d055724e034c8b3b235ba89f8d8ed523362ac864b50cb8f8b9b","affectsGlobalScope":true},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"272ca407e0c9068bdc5152552d876e68037ceae3de62e529306403e973dec8e1","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"d61e0a64cd175208ac0b83670151a9a6b5916f0d1ffcdc5c29c90b1cebfc5045","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1},{"version":"7e29f41b158de217f94cb9676bf9cbd0cd9b5a46e1985141ed36e075c52bf6ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"814d5c7384f3ca276e9dc4bcfde5545801a3ea0bfae09916b3336774e662fd1b","impliedFormat":1},{"version":"2beff543f6e9a9701df88daeee3cdd70a34b4a1c11cb4c734472195a5cb2af54","impliedFormat":1},{"version":"2e07abf27aa06353d46f4448c0bbac73431f6065eef7113128a5cd804d0c384d","impliedFormat":1},{"version":"be1cc4d94ea60cbe567bc29ed479d42587bf1e6cba490f123d329976b0fe4ee5","impliedFormat":1},{"version":"bc03c3c352f689e38c0ddd50c39b1e65d59273991bfc8858a9e3c0ebb79c023b","impliedFormat":1},{"version":"99a69bfe4675103d6c07bf9d1d3d190bcb944f5e55a914755c9993987abc4d47","impliedFormat":1},{"version":"9894dafe342b976d251aac58e616ac6df8db91fb9d98934ff9dd103e9e82578f","impliedFormat":1},{"version":"631eff75b0e35d1b1b31081d55209abc43e16b49426546ab5a9b40bdd40b1f60","impliedFormat":1},{"version":"db6d2d9daad8a6d83f281af12ce4355a20b9a3e71b82b9f57cddcca0a8964a96","impliedFormat":1},{"version":"c5426dbfc1cf90532f66965a7aa8c1136a78d4d0f96d8180ecbfc11d7722f1a5","impliedFormat":1},{"version":"9c82171d836c47486074e4ca8e059735bf97b205e70b196535b5efd40cbe1bc5","impliedFormat":1},{"version":"8f828825d077c2fa0ea606649faeb122749273a353daab23924fe674e98ba44c","impliedFormat":1},{"version":"24f8562308dd8ba6013120557fa7b44950b619610b2c6cb8784c79f11e3c4f90","impliedFormat":1},{"version":"5f90b8c733a1bda63e42160b15a2301051e83a6f9d5332a59d16eb12f463270d","impliedFormat":1},{"version":"a86f82d646a739041d6702101afa82dcb935c416dd93cbca7fd754fd0282ce1f","impliedFormat":1},{"version":"1fffe726740f9787f15b532e1dc870af3cd964dbe29e191e76121aa3dd8693f2","impliedFormat":1},{"version":"35e6379c3f7cb27b111ad4c1aa69538fd8e788ab737b8ff7596a1b40e96f4f90","impliedFormat":1},{"version":"ad0d1d75d129b1c80f911be438d6b61bfa8703930a8ff2be2f0e1f8a91841c64","impliedFormat":1},{"version":"ce75b1aebb33d510ff28af960a9221410a3eaf7f18fc5f21f9404075fba77256","impliedFormat":1},{"version":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","impliedFormat":1},{"version":"496bbf339f3838c41f164238543e9fe5f1f10659cb30b68903851618464b98ba","impliedFormat":1},{"version":"5178eb4415a172c287c711dc60a619e110c3fd0b7de01ed0627e51a5336aa09c","impliedFormat":1},{"version":"ca6e5264278b53345bc1ce95f42fb0a8b733a09e3d6479c6ccfca55cdc45038c","impliedFormat":1},{"version":"9e2739b32f741859263fdba0244c194ca8e96da49b430377930b8f721d77c000","impliedFormat":1},{"version":"fb1d8e814a3eeb5101ca13515e0548e112bd1ff3fb358ece535b93e94adf5a3a","impliedFormat":1},{"version":"ffa495b17a5ef1d0399586b590bd281056cee6ce3583e34f39926f8dcc6ecdb5","impliedFormat":1},{"version":"98b18458acb46072947aabeeeab1e410f047e0cacc972943059ca5500b0a5e95","impliedFormat":1},{"version":"361e2b13c6765d7f85bb7600b48fde782b90c7c41105b7dab1f6e7871071ba20","impliedFormat":1},{"version":"c86fe861cf1b4c46a0fb7d74dffe596cf679a2e5e8b1456881313170f092e3fa","impliedFormat":1},{"version":"b6db56e4903e9c32e533b78ac85522de734b3d3a8541bf24d256058d464bf04b","impliedFormat":1},{"version":"24daa0366f837d22c94a5c0bad5bf1fd0f6b29e1fae92dc47c3072c3fdb2fbd5","impliedFormat":1},{"version":"570bb5a00836ffad3e4127f6adf581bfc4535737d8ff763a4d6f4cc877e60d98","impliedFormat":1},{"version":"889c00f3d32091841268f0b994beba4dceaa5df7573be12c2c829d7c5fbc232c","impliedFormat":1},{"version":"65f43099ded6073336e697512d9b80f2d4fec3182b7b2316abf712e84104db00","impliedFormat":1},{"version":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","impliedFormat":1},{"version":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","impliedFormat":1},{"version":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":1},{"version":"acf5a2ac47b59ca07afa9abbd2b31d001bf7448b041927befae2ea5b1951d9f9","impliedFormat":1},{"version":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":1},{"version":"d71291eff1e19d8762a908ba947e891af44749f3a2cbc5bd2ec4b72f72ea795f","impliedFormat":1},{"version":"c0480e03db4b816dff2682b347c95f2177699525c54e7e6f6aa8ded890b76be7","impliedFormat":1},{"version":"27ab780875bcbb65e09da7496f2ca36288b0c541abaa75c311450a077d54ec15","impliedFormat":1},{"version":"b620391fe8060cf9bedc176a4d01366e6574d7a71e0ac0ab344a4e76576fcbb8","impliedFormat":1},{"version":"413df52d4ea14472c2fa5bee62f7a40abd1eb49be0b9722ee01ee4e52e63beb2","impliedFormat":1},{"version":"380647d8f3b7f852cca6d154a376dbf8ac620a2f12b936594504a8a852e71d2f","impliedFormat":1},{"version":"208c9af9429dd3c76f5927b971263174aaa4bc7621ddec63f163640cbd3c473c","impliedFormat":1},{"version":"6459054aabb306821a043e02b89d54da508e3a6966601a41e71c166e4ea1474f","impliedFormat":1},{"version":"a23185bc5ef590c287c28a91baf280367b50ae4ea40327366ad01f6f4a8edbc5","impliedFormat":1},{"version":"bb37588926aba35c9283fe8d46ebf4e79ffe976343105f5c6d45f282793352b2","impliedFormat":1},{"version":"002eae065e6960458bda3cf695e578b0d1e2785523476f8a9170b103c709cd4f","impliedFormat":1},{"version":"c83bb0c9c5645a46c68356c2f73fdc9de339ce77f7f45a954f560c7e0b8d5ebb","impliedFormat":1},{"version":"05c97cddbaf99978f83d96de2d8af86aded9332592f08ce4a284d72d0952c391","impliedFormat":1},{"version":"72179f9dd22a86deaad4cc3490eb0fe69ee084d503b686985965654013f1391b","impliedFormat":1},{"version":"2e6114a7dd6feeef85b2c80120fdbfb59a5529c0dcc5bfa8447b6996c97a69f5","impliedFormat":1},{"version":"7b6ff760c8a240b40dab6e4419b989f06a5b782f4710d2967e67c695ef3e93c4","impliedFormat":1},{"version":"c8f004e6036aa1c764ad4ec543cf89a5c1893a9535c80ef3f2b653e370de45e6","impliedFormat":1},{"version":"dd80b1e600d00f5c6a6ba23f455b84a7db121219e68f89f10552c54ba46e4dc9","impliedFormat":1},{"version":"b064c36f35de7387d71c599bfcf28875849a1dbc733e82bd26cae3d1cd060521","impliedFormat":1},{"version":"6a148329edecbda07c21098639ef4254ef7869fb25a69f58e5d6a8b7b69d4236","impliedFormat":1},{"version":"8de9fe97fa9e00ec00666fa77ab6e91b35d25af8ca75dabcb01e14ad3299b150","impliedFormat":1},{"version":"f63ab283a1c8f5c79fabe7ca4ef85f9633339c4f0e822fce6a767f9d59282af2","impliedFormat":1},{"version":"dba114fb6a32b355a9cfc26ca2276834d72fe0e94cd2c3494005547025015369","impliedFormat":1},{"version":"a54c996c8870ef1728a2c1fa9b8eaec0bf4a8001cd2583c02dd5869289465b10","impliedFormat":1},{"version":"3e7efde639c6a6c3edb9847b3f61e308bf7a69685b92f665048c45132f51c218","impliedFormat":1},{"version":"df45ca1176e6ac211eae7ddf51336dc075c5314bc5c253651bae639defd5eec5","impliedFormat":1},{"version":"3754982006a3b32c502cff0867ca83584f7a43b1035989ca73603f400de13c96","impliedFormat":1},{"version":"a30ae9bb8a8fa7b90f24b8a0496702063ae4fe75deb27da731ed4a03b2eb6631","impliedFormat":1},{"version":"f974e4a06953682a2c15d5bd5114c0284d5abf8bc0fe4da25cb9159427b70072","impliedFormat":1},{"version":"50256e9c31318487f3752b7ac12ff365c8949953e04568009c8705db802776fb","impliedFormat":1},{"version":"7d73b24e7bf31dfb8a931ca6c4245f6bb0814dfae17e4b60c9e194a631fe5f7b","impliedFormat":1},{"version":"413586add0cfe7369b64979d4ec2ed56c3f771c0667fbde1bf1f10063ede0b08","impliedFormat":1},{"version":"06472528e998d152375ad3bd8ebcb69ff4694fd8d2effaf60a9d9f25a37a097a","impliedFormat":1},{"version":"50b5bc34ce6b12eccb76214b51aadfa56572aa6cc79c2b9455cdbb3d6c76af1d","impliedFormat":1},{"version":"b7e16ef7f646a50991119b205794ebfd3a4d8f8e0f314981ebbe991639023d0e","impliedFormat":1},{"version":"b838d4c72740eb0afd284bf7575b74c624b105eff2e8c7b4aeead57e7ac320ff","impliedFormat":1},{"version":"a401617604fa1f6ce437b81689563dfdc377069e4c58465dbd8d16069aede0a5","impliedFormat":1},{"version":"e9dd71cf12123419c60dab867d44fbee5c358169f99529121eaef277f5c83531","impliedFormat":1},{"version":"5b6a189ba3a0befa1f5d9cb028eb9eec2af2089c32f04ff50e2411f63d70f25d","impliedFormat":1},{"version":"d6e73f8010935b7b4c7487b6fb13ea197cc610f0965b759bec03a561ccf8423a","impliedFormat":1},{"version":"174f3864e398f3f33f9a446a4f403d55a892aa55328cf6686135dfaf9e171657","impliedFormat":1},{"version":"824c76aec8d8c7e65769688cbee102238c0ef421ed6686f41b2a7d8e7e78a931","impliedFormat":1},{"version":"75b868be3463d5a8cfc0d9396f0a3d973b8c297401d00bfb008a42ab16643f13","impliedFormat":1},{"version":"15a234e5031b19c48a69ccc1607522d6e4b50f57d308ecb7fe863d44cd9f9eb3","impliedFormat":1},{"version":"d682336018141807fb602709e2d95a192828fcb8d5ba06dda3833a8ea98f69e3","impliedFormat":1},{"version":"6124e973eab8c52cabf3c07575204efc1784aca6b0a30c79eb85fe240a857efa","impliedFormat":1},{"version":"0d891735a21edc75df51f3eb995e18149e119d1ce22fd40db2b260c5960b914e","impliedFormat":1},{"version":"3b414b99a73171e1c4b7b7714e26b87d6c5cb03d200352da5342ab4088a54c85","impliedFormat":1},{"version":"4fbd3116e00ed3a6410499924b6403cc9367fdca303e34838129b328058ede40","impliedFormat":1},{"version":"b01bd582a6e41457bc56e6f0f9de4cb17f33f5f3843a7cf8210ac9c18472fb0f","impliedFormat":1},{"version":"0a437ae178f999b46b6153d79095b60c42c996bc0458c04955f1c996dc68b971","impliedFormat":1},{"version":"74b2a5e5197bd0f2e0077a1ea7c07455bbea67b87b0869d9786d55104006784f","impliedFormat":1},{"version":"4a7baeb6325920044f66c0f8e5e6f1f52e06e6d87588d837bdf44feb6f35c664","impliedFormat":1},{"version":"6dcf60530c25194a9ee0962230e874ff29d34c59605d8e069a49928759a17e0a","impliedFormat":1},{"version":"7274fbffbd7c9589d8d0ffba68157237afd5cecff1e99881ea3399127e60572f","impliedFormat":1},{"version":"1a42d2ec31a1fe62fdc51591768695ed4a2dc64c01be113e7ff22890bebb5e3f","impliedFormat":1},{"version":"1a82deef4c1d39f6882f28d275cad4c01f907b9b39be9cbc472fcf2cf051e05b","impliedFormat":1},{"version":"65a15fc47900787c0bd18b603afb98d33ede930bed1798fc984d5ebb78b26cf9","impliedFormat":1},{"version":"9d202701f6e0744adb6314d03d2eb8fc994798fc83d91b691b75b07626a69801","impliedFormat":1},{"version":"de9d2df7663e64e3a91bf495f315a7577e23ba088f2949d5ce9ec96f44fba37d","impliedFormat":1},{"version":"c7af78a2ea7cb1cd009cfb5bdb48cd0b03dad3b54f6da7aab615c2e9e9d570c5","impliedFormat":1},{"version":"1ee45496b5f8bdee6f7abc233355898e5bf9bd51255db65f5ff7ede617ca0027","impliedFormat":1},{"version":"0c7c947ff881c4274c0800deaa0086971e0bfe51f89a33bd3048eaa3792d4876","affectsGlobalScope":true,"impliedFormat":1},{"version":"db01d18853469bcb5601b9fc9826931cc84cc1a1944b33cad76fd6f1e3d8c544","affectsGlobalScope":true,"impliedFormat":1},{"version":"a8f8e6ab2fa07b45251f403548b78eaf2022f3c2254df3dc186cb2671fe4996d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa6c12a7c0f6b84d512f200690bfc74819e99efae69e4c95c4cd30f6884c526e","impliedFormat":1},{"version":"f1c32f9ce9c497da4dc215c3bc84b722ea02497d35f9134db3bb40a8d918b92b","impliedFormat":1},{"version":"b73c319af2cc3ef8f6421308a250f328836531ea3761823b4cabbd133047aefa","affectsGlobalScope":true,"impliedFormat":1},{"version":"e433b0337b8106909e7953015e8fa3f2d30797cea27141d1c5b135365bb975a6","impliedFormat":1},{"version":"15b36126e0089bfef173ab61329e8286ce74af5e809d8a72edcafd0cc049057f","impliedFormat":1},{"version":"ddff7fc6edbdc5163a09e22bf8df7bef75f75369ebd7ecea95ba55c4386e2441","impliedFormat":1},{"version":"106c6025f1d99fd468fd8bf6e5bda724e11e5905a4076c5d29790b6c3745e50c","impliedFormat":1},{"version":"a57b1802794433adec9ff3fed12aa79d671faed86c49b09e02e1ac41b4f1d33a","impliedFormat":1},{"version":"ad10d4f0517599cdeca7755b930f148804e3e0e5b5a3847adce0f1f71bbccd74","impliedFormat":1},{"version":"1042064ece5bb47d6aba91648fbe0635c17c600ebdf567588b4ca715602f0a9d","impliedFormat":1},{"version":"c49469a5349b3cc1965710b5b0f98ed6c028686aa8450bcb3796728873eb923e","impliedFormat":1},{"version":"4a889f2c763edb4d55cb624257272ac10d04a1cad2ed2948b10ed4a7fda2a428","impliedFormat":1},{"version":"7bb79aa2fead87d9d56294ef71e056487e848d7b550c9a367523ee5416c44cfa","impliedFormat":1},{"version":"72d63643a657c02d3e51cd99a08b47c9b020a565c55f246907050d3c8a5e77fb","impliedFormat":1},{"version":"1d415445ea58f8033ba199703e55ff7483c52ac6742075b803bd3e7bbe9f5d61","impliedFormat":1},{"version":"d6406c629bb3efc31aedb2de809bef471e475c86c7e67f3ef9b676b5d7e0d6b2","impliedFormat":1},{"version":"27ff4196654e6373c9af16b6165120e2dd2169f9ad6abb5c935af5abd8c7938c","impliedFormat":1},{"version":"71d8ba39a9e024d9e4bb922464d18542ed8d2c25ee78efa7890c27213cc6e5d3","impliedFormat":1},{"version":"8c030e515014c10a2b98f9f48408e3ba18023dfd3f56e3312c6c2f3ae1f55a16","impliedFormat":1},{"version":"dafc31e9e8751f437122eb8582b93d477e002839864410ff782504a12f2a550c","impliedFormat":1},{"version":"754498c5208ce3c5134f6eabd49b25cf5e1a042373515718953581636491f3c3","impliedFormat":1},{"version":"f56bdc6884648806d34bc66d31cdb787c4718d04105ce2cd88535db214631f82","impliedFormat":1},{"version":"633d58a237f4bb25ec7d565e4ffa32cecdcee8660ac12189c4351c52557cee9e","impliedFormat":1},{"version":"2e4f37ffe8862b14d8e24ae8763daaa8340c0df0b859d9a9733def0eee7562d9","impliedFormat":1},{"version":"13283350547389802aa35d9f2188effaeac805499169a06ef5cd77ce2a0bd63f","impliedFormat":1},{"version":"ce791f6ea807560f08065d1af6014581eeb54a05abd73294777a281b6dfd73c2","impliedFormat":1},{"version":"6ac6715916fa75a1f7ebdfeacac09513b4d904b667d827b7535e84ff59679aff","impliedFormat":1},{"version":"49f95e989b4632c6c2a578cc0078ee19a5831832d79cc59abecf5160ea71abad","impliedFormat":1},{"version":"9666533332f26e8995e4d6fe472bdeec9f15d405693723e6497bf94120c566c8","impliedFormat":1},{"version":"ce0df82a9ae6f914ba08409d4d883983cc08e6d59eb2df02d8e4d68309e7848b","impliedFormat":1},{"version":"796273b2edc72e78a04e86d7c58ae94d370ab93a0ddf40b1aa85a37a1c29ecd7","impliedFormat":1},{"version":"5df15a69187d737d6d8d066e189ae4f97e41f4d53712a46b2710ff9f8563ec9f","impliedFormat":1},{"version":"e17cd049a1448de4944800399daa4a64c5db8657cc9be7ef46be66e2a2cd0e7c","impliedFormat":1},{"version":"43fa6ea8714e18adc312b30450b13562949ba2f205a1972a459180fa54471018","impliedFormat":1},{"version":"6e89c2c177347d90916bad67714d0fb473f7e37fb3ce912f4ed521fe2892cd0d","impliedFormat":1},{"version":"43ba4f2fa8c698f5c304d21a3ef596741e8e85a810b7c1f9b692653791d8d97a","impliedFormat":1},{"version":"4d4927cbee21750904af7acf940c5e3c491b4d5ebc676530211e389dd375607a","impliedFormat":1},{"version":"72105519d0390262cf0abe84cf41c926ade0ff475d35eb21307b2f94de985778","impliedFormat":1},{"version":"8a97e578a9bc40eb4f1b0ca78f476f2e9154ecbbfd5567ee72943bab37fc156a","impliedFormat":1},{"version":"c857e0aae3f5f444abd791ec81206020fbcc1223e187316677e026d1c1d6fe08","impliedFormat":1},{"version":"ccf6dd45b708fb74ba9ed0f2478d4eb9195c9dfef0ff83a6092fa3cf2ff53b4f","impliedFormat":1},{"version":"2d7db1d73456e8c5075387d4240c29a2a900847f9c1bff106a2e490da8fbd457","impliedFormat":1},{"version":"2b15c805f48e4e970f8ec0b1915f22d13ca6212375e8987663e2ef5f0205e832","impliedFormat":1},{"version":"f22d05663d873ee7a600faf78abb67f3f719d32266803440cf11d5db7ac0cab2","impliedFormat":1},{"version":"d93c544ad20197b3976b0716c6d5cd5994e71165985d31dcab6e1f77feb4b8f2","impliedFormat":1},{"version":"35069c2c417bd7443ae7c7cafd1de02f665bf015479fec998985ffbbf500628c","impliedFormat":1},{"version":"a8b1c79a833ee148251e88a2553d02ce1641d71d2921cce28e79678f3d8b96aa","impliedFormat":1},{"version":"126d4f950d2bba0bd45b3a86c76554d4126c16339e257e6d2fabf8b6bf1ce00c","impliedFormat":1},{"version":"7e0b7f91c5ab6e33f511efc640d36e6f933510b11be24f98836a20a2dc914c2d","impliedFormat":1},{"version":"045b752f44bf9bbdcaffd882424ab0e15cb8d11fa94e1448942e338c8ef19fba","impliedFormat":1},{"version":"2894c56cad581928bb37607810af011764a2f511f575d28c9f4af0f2ef02d1ab","impliedFormat":1},{"version":"0a72186f94215d020cb386f7dca81d7495ab6c17066eb07d0f44a5bf33c1b21a","impliedFormat":1},{"version":"2d3cc2211f352f46ea6b7cf2c751c141ffcdf514d6e7ae7ee20b7b6742da313f","impliedFormat":1},{"version":"c75445151ff8b77d9923191efed7203985b1a9e09eccf4b054e7be864e27923d","impliedFormat":1},{"version":"0aedb02516baf3e66b2c1db9fef50666d6ed257edac0f866ea32f1aa05aa474f","impliedFormat":1},{"version":"fa8a8fbf91ee2a4779496225f0312aac6635b0f21aa09cdafa4283fe32d519c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"0e8aef93d79b000deb6ec336b5645c87de167168e184e84521886f9ecc69a4b5","impliedFormat":1},{"version":"c30436b130b6218b7714314dc41d3f459590db4bdf099eecd51cb1bda32109a8","impliedFormat":1},{"version":"20fa37b636fdcc1746ea0738f733d0aed17890d1cd7cb1b2f37010222c23f13e","impliedFormat":1},{"version":"d90b9f1520366d713a73bd30c5a9eb0040d0fb6076aff370796bc776fd705943","impliedFormat":1},{"version":"cf212598bab498017f7bb92beea6d7c30ca35dc027553b8e647a6aacfe993b5e","affectsGlobalScope":true,"impliedFormat":1},{"version":"41250cef8d5f886fc56713c6d9774a7d793817254c20a87b6e209ae4fe9cb9c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef86adb77316505c6b471da1d9b8c9e428867c2566270e8894d4d773a1c4dc2","impliedFormat":1},{"version":"de7052bfee2981443498239a90c04ea5cc07065d5b9bb61b12cb6c84313ad4ef","impliedFormat":1},{"version":"a3e7d932dc9c09daa99141a8e4800fc6c58c625af0d4bbb017773dc36da75426","impliedFormat":1},{"version":"43e96a3d5d1411ab40ba2f61d6a3192e58177bcf3b133a80ad2a16591611726d","impliedFormat":1},{"version":"4a2edd238d9104eac35b60d727f1123de5062f452b70ed8e0366cb36387dfdfd","impliedFormat":1},{"version":"ca921bf56756cb6fe957f6af693a35251b134fb932dc13f3dfff0bb7106f80b4","impliedFormat":1},{"version":"fee92c97f1aa59eb7098a0cc34ff4df7e6b11bae71526aca84359a2575f313d8","impliedFormat":1},{"version":"0bd0297484aacea217d0b76e55452862da3c5d9e33b24430e0719d1161657225","impliedFormat":1},{"version":"2ab6d334bcbf2aff3acfc4fd8c73ecd82b981d3c3aa47b3f3b89281772286904","impliedFormat":1},{"version":"d07cbc787a997d83f7bde3877fec5fb5b12ce8c1b7047eb792996ed9726b4dde","impliedFormat":1},{"version":"6ac6715916fa75a1f7ebdfeacac09513b4d904b667d827b7535e84ff59679aff","impliedFormat":1},{"version":"4805f6161c2c8cefb8d3b8bd96a080c0fe8dbc9315f6ad2e53238f9a79e528a6","impliedFormat":1},{"version":"b83cb14474fa60c5f3ec660146b97d122f0735627f80d82dd03e8caa39b4388c","impliedFormat":1},{"version":"f374cb24e93e7798c4d9e83ff872fa52d2cdb36306392b840a6ddf46cb925cb6","impliedFormat":1},{"version":"49179c6a23701c642bd99abe30d996919748014848b738d8e85181fc159685ff","impliedFormat":1},{"version":"b73cbf0a72c8800cf8f96a9acfe94f3ad32ca71342a8908b8ae484d61113f647","impliedFormat":1},{"version":"bae6dd176832f6423966647382c0d7ba9e63f8c167522f09a982f086cd4e8b23","impliedFormat":1},{"version":"20865ac316b8893c1a0cc383ccfc1801443fbcc2a7255be166cf90d03fac88c9","impliedFormat":1},{"version":"c9958eb32126a3843deedda8c22fb97024aa5d6dd588b90af2d7f2bfac540f23","impliedFormat":1},{"version":"461d0ad8ae5f2ff981778af912ba71b37a8426a33301daa00f21c6ccb27f8156","impliedFormat":1},{"version":"e927c2c13c4eaf0a7f17e6022eee8519eb29ef42c4c13a31e81a611ab8c95577","impliedFormat":1},{"version":"fcafff163ca5e66d3b87126e756e1b6dfa8c526aa9cd2a2b0a9da837d81bbd72","impliedFormat":1},{"version":"70246ad95ad8a22bdfe806cb5d383a26c0c6e58e7207ab9c431f1cb175aca657","impliedFormat":1},{"version":"f00f3aa5d64ff46e600648b55a79dcd1333458f7a10da2ed594d9f0a44b76d0b","impliedFormat":1},{"version":"772d8d5eb158b6c92412c03228bd9902ccb1457d7a705b8129814a5d1a6308fc","impliedFormat":1},{"version":"45490817629431853543adcb91c0673c25af52a456479588b6486daba34f68bb","impliedFormat":1},{"version":"802e797bcab5663b2c9f63f51bdf67eff7c41bc64c0fd65e6da3e7941359e2f7","impliedFormat":1},{"version":"8b4327413e5af38cd8cb97c59f48c3c866015d5d642f28518e3a891c469f240e","impliedFormat":1},{"version":"8514c62ce38e58457d967e9e73f128eedc1378115f712b9eef7127f7c88f82ae","impliedFormat":1},{"version":"f1289e05358c546a5b664fbb35a27738954ec2cc6eb4137350353099d154fc62","impliedFormat":1},{"version":"4b20fcf10a5413680e39f5666464859fc56b1003e7dfe2405ced82371ebd49b6","impliedFormat":1},{"version":"1d17ba45cfbe77a9c7e0df92f7d95f3eefd49ee23d1104d0548b215be56945ad","impliedFormat":1},{"version":"f7d628893c9fa52ba3ab01bcb5e79191636c4331ee5667ecc6373cbccff8ae12","impliedFormat":1},{"version":"2467b00d963828f540f4acd7910f4c04cfe4b489550e6bb682212f65583bca5b","impliedFormat":1},{"version":"a68f36dc8c71757c01f7b0a32333997f510dd61a2de0a3ae1ac23072c368ec37","impliedFormat":99},{"version":"ac47421bbc96f79b2de2475223ca0512a9ff9f3d1f6c01823ffb2ac4c49e1d64","impliedFormat":1},{"version":"46273e8c29816125d0d0b56ce9a849cc77f60f9a5ba627447501d214466f0ff3","impliedFormat":1},{"version":"d663134457d8d669ae0df34eabd57028bddc04fc444c4bc04bc5215afc91e1f4","impliedFormat":1},{"version":"e91f7b1344577a02f051b9b471f33044fef8334a76dc9e1de003d17595a5219b","impliedFormat":1},{"version":"3af3584f79c57853028ef9421ec172539e1fe01853296dc05a9d615ade4ffaf6","impliedFormat":1},{"version":"f82579d87701d639ff4e3930a9b24f4ee13ca74221a9a3a792feb47f01881a9c","impliedFormat":1},{"version":"d7e5d5245a8ba34a274717d085174b2c9827722778129b0081fefd341cca8f55","impliedFormat":1},{"version":"d9d32f94056181c31f553b32ce41d0ef75004912e27450738d57efcd2409c324","impliedFormat":1},{"version":"752513f35f6cff294ffe02d6027c41373adf7bfa35e593dbfd53d95c203635ee","impliedFormat":1},{"version":"6c800b281b9e89e69165fd11536195488de3ff53004e55905e6c0059a2d8591e","impliedFormat":1},{"version":"7d4254b4c6c67a29d5e7f65e67d72540480ac2cfb041ca484847f5ae70480b62","impliedFormat":1},{"version":"1a7e2ea171726446850ec72f4d1525d547ff7e86724cc9e7eec509725752a758","impliedFormat":1},{"version":"8c901126d73f09ecdea4785e9a187d1ac4e793e07da308009db04a7283ec2f37","impliedFormat":1},{"version":"c1de754ab5f3b0f4036d6893c74a0fc984c7fcb07936086f19bbe2974406775b","impliedFormat":1},{"version":"aab290b8e4b7c399f2c09b957666fc95335eb4522b2dd9ead1bf0cb64da6d6ee","impliedFormat":1},{"version":"94fe3281392e1015b22f39535878610b4fa6f1388dc8d78746be3bc4e4bb8950","impliedFormat":1},{"version":"2652448ac55a2010a1f71dd141f828b682298d39728f9871e1cdf8696ef443fd","impliedFormat":1},{"version":"06c25ddfc2242bd06c19f66c9eae4c46d937349a267810f89783680a1d7b5259","impliedFormat":1},{"version":"120599fd965257b1f4d0ff794bc696162832d9d8467224f4665f713a3119078b","impliedFormat":1},{"version":"5433f33b0a20300cca35d2f229a7fc20b0e8477c44be2affeb21cb464af60c76","impliedFormat":1},{"version":"db036c56f79186da50af66511d37d9fe77fa6793381927292d17f81f787bb195","impliedFormat":1},{"version":"bd4131091b773973ca5d2326c60b789ab1f5e02d8843b3587effe6e1ea7c9d86","impliedFormat":1},{"version":"c7f6485931085bf010fbaf46880a9b9ec1a285ad9dc8c695a9e936f5a48f34b4","impliedFormat":1},{"version":"14f6b927888a1112d662877a5966b05ac1bf7ed25d6c84386db4c23c95a5363b","impliedFormat":1},{"version":"6ac6715916fa75a1f7ebdfeacac09513b4d904b667d827b7535e84ff59679aff","impliedFormat":1},{"version":"0427df5c06fafc5fe126d14b9becd24160a288deff40e838bfbd92a35f8d0d00","impliedFormat":1},{"version":"90c54a02432d04e4246c87736e53a6a83084357acfeeba7a489c5422b22f5c7a","impliedFormat":1},{"version":"49c346823ba6d4b12278c12c977fb3a31c06b9ca719015978cb145eb86da1c61","impliedFormat":1},{"version":"bfac6e50eaa7e73bb66b7e052c38fdc8ccfc8dbde2777648642af33cf349f7f1","impliedFormat":1},{"version":"92f7c1a4da7fbfd67a2228d1687d5c2e1faa0ba865a94d3550a3941d7527a45d","impliedFormat":1},{"version":"f53b120213a9289d9a26f5af90c4c686dd71d91487a0aa5451a38366c70dc64b","impliedFormat":1},{"version":"83fe880c090afe485a5c02262c0b7cdd76a299a50c48d9bde02be8e908fb4ae6","impliedFormat":1},{"version":"0a372c2d12a259da78e21b25974d2878502f14d89c6d16b97bd9c5017ab1bc12","impliedFormat":1},{"version":"57d67b72e06059adc5e9454de26bbfe567d412b962a501d263c75c2db430f40e","impliedFormat":1},{"version":"6511e4503cf74c469c60aafd6589e4d14d5eb0a25f9bf043dcbecdf65f261972","impliedFormat":1},{"version":"ec1ca97598eda26b7a5e6c8053623acbd88e43be7c4d29c77ccd57abc4c43999","impliedFormat":1},{"version":"efc0e6a64feef102d5edef7525de0c2ac5961821f12ae5038f0d3a8631457e10","impliedFormat":1},{"version":"a67b87d0281c97dfc1197ef28dfe397fc2c865ccd41f7e32b53f647184cc7307","impliedFormat":1},{"version":"771ffb773f1ddd562492a6b9aaca648192ac3f056f0e1d997678ff97dbb6bf9b","impliedFormat":1},{"version":"232f70c0cf2b432f3a6e56a8dc3417103eb162292a9fd376d51a3a9ea5fbbf6f","impliedFormat":1},{"version":"a47e6d954d22dd9ebb802e7e431b560ed7c581e79fb885e44dc92ed4f60d4c07","impliedFormat":1},{"version":"f019e57d2491c159d47a107fd90219a1734bdd2e25cd8d1db3c8fae5c6b414c4","impliedFormat":1},{"version":"8a0e762ceb20c7e72504feef83d709468a70af4abccb304f32d6b9bac1129b2c","impliedFormat":1},{"version":"d1c9bf292a54312888a77bb19dba5e2503ad803f5393beafd45d78d2f4fe9b48","impliedFormat":1},{"version":"9252d498a77517aab5d8d4b5eb9d71e4b225bbc7123df9713e08181de63180f6","impliedFormat":1},{"version":"d9c46395b3980848a6c4b2f44e986d27d07faee3b3b4b1f214793255b8c64f2a","impliedFormat":1},{"version":"829b9e6028b29e6a8b1c01ddb713efe59da04d857089298fa79acbdb3cfcfdef","impliedFormat":1},{"version":"2896c2e673a5d3bd9b4246811f79486a073cbb03950c3d252fba10003c57411a","impliedFormat":1},{"version":"3be035da7bee86b4c3abf392e0edaa44fc6e45092995eefe36b39118c8a84068","affectsGlobalScope":true,"impliedFormat":1},{"version":"3dc14e1ab45e497e5d5e4295271d54ff689aeae00b4277979fdd10fa563540ae","impliedFormat":1},{"version":"5c634644d45a1b6bc7b05e71e05e52ec04f3d73d9ac85d5927f647a5f965181a","impliedFormat":1},{"version":"4b7f74b772140395e7af67c4841be1ab867c11b3b82a51b1aeb692822b76c872","impliedFormat":1},{"version":"27be6622e2922a1b412eb057faa854831b95db9db5035c3f6d4b677b902ab3b7","impliedFormat":1},{"version":"a68d4b3182e8d776cdede7ac9630c209a7bfbb59191f99a52479151816ef9f9e","impliedFormat":99},{"version":"39644b343e4e3d748344af8182111e3bbc594930fff0170256567e13bbdbebb0","impliedFormat":99},{"version":"ed7fd5160b47b0de3b1571c5c5578e8e7e3314e33ae0b8ea85a895774ee64749","impliedFormat":99},{"version":"63a7595a5015e65262557f883463f934904959da563b4f788306f699411e9bac","impliedFormat":1},{"version":"ecbaf0da125974be39c0aac869e403f72f033a4e7fd0d8cd821a8349b4159628","impliedFormat":1},{"version":"4ba137d6553965703b6b55fd2000b4e07ba365f8caeb0359162ad7247f9707a6","impliedFormat":1},{"version":"ceec3c81b2d81f5e3b855d9367c1d4c664ab5046dff8fd56552df015b7ccbe8f","affectsGlobalScope":true,"impliedFormat":1},{"version":"77b60830cd76434ef688bccaee34e40343ecb43e5d14c3753b8120e95e7398a7","impliedFormat":1},{"version":"129979e81ec61e5e3c090aee1200bd1eb9f63d10c04223aa5ee1f8a6d8e0ac43","signature":"318e088ee6f32fd2226acf284cffa6a09c952d8f5d10ea2746c87f199301dff5"},{"version":"fec01479923e169fb52bd4f668dbeef1d7a7ea6e6d491e15617b46f2cacfa37d","impliedFormat":1},{"version":"8a8fb3097ba52f0ae6530ec6ab34e43e316506eb1d9aa29420a4b1e92a81442d","impliedFormat":1},{"version":"44e09c831fefb6fe59b8e65ad8f68a7ecc0e708d152cfcbe7ba6d6080c31c61e","impliedFormat":1},{"version":"1c0a98de1323051010ce5b958ad47bc1c007f7921973123c999300e2b7b0ecc0","impliedFormat":1},{"version":"65834d6a21a3545ccaecd7f95dbb595563b1be06c0a61778cd6c4a3fe328f6ad","signature":"0a2ab18bfee5da2460ea5b5e859d41fb689d38437748688c93724d448cabf90c"},{"version":"79fc6ce1d188a6df6ae09ff30dcce1ca811c7a906329bc12fd65e12a45c2400b","signature":"ce12abe8fc6a2967fc5565806133c6aa2dac042c7539a1cdad30adabddff12f9"},{"version":"6ba7b49c7a9a6e1e82c587faa9c70b8eae04578cb9880662ad2a008683cf446f","signature":"dc3394df9347b902e4adefac2fd5e68b5f342f8a74e0f0a4df3b38bef303e29e"},{"version":"90d1b4aa0fa411104008f0b165a792169bce0200e99348e48d34c1b4c4425fc3","signature":"3936fe27840b9166968a98a044cecd0213beff8d9fe122df414edb6b57b5ea7b"},{"version":"94254cb075140fd0b826b22485fb8c61973f0a91de8a072db3d898fa911f4270","signature":"c8802c05fd2b489cf479276d4cbbe419cad80d64eb9b444e2aeef08570e8d563"},{"version":"cbcd7fb0c6b76b3939556c2c3916bbb0236cc32622f0c5c2324df836b36220c3","signature":"d860c9cc985d71407dd237d401a12cd069f6cef012e49fe9fdedb792148f9e86"},{"version":"8b35257319552780f598f1bfbe70a0b5cbf885efa6c445e4f3f90d2aabd08629","signature":"8a521eaa2173186610aa9dd4323e58177e74bad97aa8d05d2e0dbb703ca99deb"},{"version":"ab8ebbd8ab624d6c61bd01ffc8aa6b852dae9998725da718eb912b6c54a40a30","signature":"18d754deee1ac95cf04f328e0244fc4c82eb261591c90ec0bae1140fc3a5ca99"},"6af905ab73fd46fa7644c2ffd78243b5868fb9ae744e16abe4e5373914d9e0fa",{"version":"60c6aa175c2d8effee822c2abab40289ac751bbdfbc6da8a1873d63b5397fdfc","signature":"44025d09a4644ee3f547c3cde1bad8ed12bcb4180cb4a5af4f94a9cf48401252"},{"version":"90a385738977769f4034892d93e87f1f40c074235205189c75594a806070b4c4","signature":"35d62db9f487cd79b97d894a897c775fed97db758aeda9facddea4705a371d78"},{"version":"4ac9b6ca9c6c377c262cfd6378966377c40f3f45442b2a05a429c348a57f315e","signature":"bbdc9258312c2f78e069ed8483a83438632374f9370695ef7c0f3c231cb05eb1"},{"version":"309ee0c67f796ebb8949d25a99931191a8c51f0c020c16427996e5c0021742b8","signature":"a01ff11dc43a069782813fbb07469722372cc85850b8c4956eb7aa579a65bf89"},{"version":"5c96bad5f78466785cdad664c056e9e2802d5482ca5f862ed19ba34ffbb7b3a4","impliedFormat":1},{"version":"5142097082c54acd605d7abdd1c38c296ea32432d1ea9026a3d8d357b8de0b44","signature":"ec2d70431c44343f00adff70e83fe0450a1f998a5bbc3e66af3202d9186eb240"},{"version":"6276bbe847938d28d75c4f089547a65ab7050a69c372da5e800d9f3b43d96970","signature":"a197f86a5b1328de580bfe23a81d3a58ad09640bbfdc14cfdc4ed318f10ec7cf"},{"version":"564e7c0f42c2ef724ae599a1e975309070a8573c5a94a8e4ffca2f34cc43e154","signature":"56030065c17fcc44434c6587150ed585cc32add485fc55f370501038e9b7500b"},{"version":"122f7d64bea0be7118a5c452d2247c85ef6f2a72746ab0c170f24b819fdb5a7d","signature":"48f93d892db21cfc200ea9ea8252219a64c49742cc90ae76de4e05c0e6e75b51"},{"version":"1bb8fb925fc614ff210c834859ba91a8a7143e6ba147aaa13ea2fb7c8c0a091d","signature":"9acbecc0fa3fb039550417b525c999bd0a2c021667015086c5423eeb09fe55af"},{"version":"8dc3d4967dc536b18cebc2b2584e9e20ce6ac769df9da1c419837f48223bfd3b","signature":"03ebcc65414bedee3fc79b39a321e5d287007cfffa61004a8b51e4852cd2c28a"},{"version":"acd8fd5090ac73902278889c38336ff3f48af6ba03aa665eb34a75e7ba1dccc4","impliedFormat":1},{"version":"d6258883868fb2680d2ca96bc8b1352cab69874581493e6d52680c5ffecdb6cc","impliedFormat":1},{"version":"1b61d259de5350f8b1e5db06290d31eaebebc6baafd5f79d314b5af9256d7153","impliedFormat":1},{"version":"f258e3960f324a956fc76a3d3d9e964fff2244ff5859dcc6ce5951e5413ca826","impliedFormat":1},{"version":"643f7232d07bf75e15bd8f658f664d6183a0efaca5eb84b48201c7671a266979","impliedFormat":1},{"version":"0f6666b58e9276ac3a38fdc80993d19208442d6027ab885580d93aec76b4ef00","impliedFormat":1},{"version":"05fd364b8ef02fb1e174fbac8b825bdb1e5a36a016997c8e421f5fab0a6da0a0","impliedFormat":1},{"version":"616775f16134fa9d01fc677ad3f76e68c051a056c22ab552c64cc281a9686790","impliedFormat":1},{"version":"65c24a8baa2cca1de069a0ba9fba82a173690f52d7e2d0f1f7542d59d5eb4db0","impliedFormat":1},{"version":"81d8603ac527e75cfec72bb9391228b58f161c2b33514a9d814c7f3ebd3ef466","impliedFormat":1},{"version":"5f3dc10ae646f375776b4e028d2bed039a93eebbba105694d8b910feebbe8b9c","impliedFormat":1},{"version":"bb0cd7862b72f5eba39909c9889d566e198fcaddf7207c16737d0c2246112678","impliedFormat":1},{"version":"4545c1a1ceca170d5d83452dd7c4994644c35cf676a671412601689d9a62da35","impliedFormat":1},{"version":"320f4091e33548b554d2214ce5fc31c96631b513dffa806e2e3a60766c8c49d9","impliedFormat":1},{"version":"a2d648d333cf67b9aeac5d81a1a379d563a8ffa91ddd61c6179f68de724260ff","impliedFormat":1},{"version":"d90d5f524de38889d1e1dbc2aeef00060d779f8688c02766ddb9ca195e4a713d","impliedFormat":1},{"version":"a3f41ed1b4f2fc3049394b945a68ae4fdefd49fa1739c32f149d32c0545d67f5","impliedFormat":1},{"version":"bad68fd0401eb90fe7da408565c8aee9c7a7021c2577aec92fa1382e8876071a","impliedFormat":1},{"version":"47699512e6d8bebf7be488182427189f999affe3addc1c87c882d36b7f2d0b0e","impliedFormat":1},{"version":"4655709c9cb3fd6db2b866cab7c418c40ed9533ce8ea4b66b5f17ec2feea46a9","impliedFormat":1},{"version":"87affad8e2243635d3a191fa72ef896842748d812e973b7510a55c6200b3c2a4","impliedFormat":1},{"version":"ad036a85efcd9e5b4f7dd5c1a7362c8478f9a3b6c3554654ca24a29aa850a9c5","impliedFormat":1},{"version":"fedebeae32c5cdd1a85b4e0504a01996e4a8adf3dfa72876920d3dd6e42978e7","impliedFormat":1},{"version":"3eecb25bb467a948c04874d70452b14ae7edb707660aac17dc053e42f2088b00","impliedFormat":1},{"version":"cdf21eee8007e339b1b9945abf4a7b44930b1d695cc528459e68a3adc39a622e","impliedFormat":1},{"version":"330896c1a2b9693edd617be24fbf9e5895d6e18c7955d6c08f028f272b37314d","impliedFormat":1},{"version":"1d9c0a9a6df4e8f29dc84c25c5aa0bb1da5456ebede7a03e03df08bb8b27bae6","impliedFormat":1},{"version":"84380af21da938a567c65ef95aefb5354f676368ee1a1cbb4cae81604a4c7d17","impliedFormat":1},{"version":"1af3e1f2a5d1332e136f8b0b95c0e6c0a02aaabd5092b36b64f3042a03debf28","impliedFormat":1},{"version":"30d8da250766efa99490fc02801047c2c6d72dd0da1bba6581c7e80d1d8842a4","impliedFormat":1},{"version":"03566202f5553bd2d9de22dfab0c61aa163cabb64f0223c08431fb3fc8f70280","impliedFormat":1},{"version":"5f0292a40df210ab94b9fb44c8b775c51e96777e14e073900e392b295ca1061b","impliedFormat":1},{"version":"bc9ee0192f056b3d5527bcd78dc3f9e527a9ba2bdc0a2c296fbc9027147df4b2","impliedFormat":1},{"version":"8627ad129bcf56e82adff0ab5951627c993937aa99f5949c33240d690088b803","impliedFormat":1},{"version":"1de80059b8078ea5749941c9f863aa970b4735bdbb003be4925c853a8b6b4450","impliedFormat":1},{"version":"1d079c37fa53e3c21ed3fa214a27507bda9991f2a41458705b19ed8c2b61173d","impliedFormat":1},{"version":"5bf5c7a44e779790d1eb54c234b668b15e34affa95e78eada73e5757f61ed76a","impliedFormat":1},{"version":"5835a6e0d7cd2738e56b671af0e561e7c1b4fb77751383672f4b009f4e161d70","impliedFormat":1},{"version":"8fac4a15690b27612d8474fb2fc7cc00388df52d169791b78d1a3645d60b4c8b","affectsGlobalScope":true,"impliedFormat":1},{"version":"064ac1c2ac4b2867c2ceaa74bbdce0cb6a4c16e7c31a6497097159c18f74aa7c","impliedFormat":1},{"version":"1d63055b690a582006435ddd3aa9c03aac16a696fac77ce2ed808f3e5a06efab","impliedFormat":1},{"version":"af282f91e995fabeff1ebaddf2bffb68153d228629bee579c1cc9b6565604867","signature":"023554d213b4639d7371fdbc1406a94b800f49c786015bac8970201cce3e34dc"},{"version":"c8c6d537cd4380d51d5ffea3974d67f421691208fdb8cc87c84e45161e7f3f8b","signature":"3954dc6b9a6cce03e67b1a008b47973f0c02de07540bad95d148a2dafe43094f"},{"version":"99e886d96344a67292a3c1959a370bdc9e8e77b97726afd64fe2cce114ba4322","signature":"dd66b3b350304998711601c8c646b8be9d7f8df91d942c9b89b8c4bfa25e473e"},{"version":"d8da4c95763a8660ac4891cfc687731ea64475972e89223730588ec3d4d4ed1f","signature":"0cddcbd58c4c3fb60d7da54d6e3510ddec2bfb4f1aa2e81a6b192bf22475adbe"},{"version":"87888524bbfa8c654c70788cfb24d30bd184d82665a4bc866567bec42f699993","signature":"6ec5739b3318cf3bdc1c08001bb41a6008d7b59ca68d130e54e8064426ac0950"},{"version":"098f9ba1a9dc1f5cc086444050e1b2eb966fd394821c953aa30faa9933b16f20","signature":"ba51c1bddc5e5477ffb183e7acbafc0a305ace7367a3cc6143db18d939f75e10"},{"version":"9a1306666a181cc6e5351cea2e8cfa6c7063035ab1e87c88b1da5949cd6ac516","signature":"783433fc1a912687b008a5b7c3ec4246b56eea7c5de524c083a55051b1b82aaf"},{"version":"54b89861f3416e4285fa6ee11803e25e61822dfcfebcec4034ca10e659425571","signature":"2e651d114d0f4f3e76c3cca52404a5f56e3accd28f7a96221bad151155aa6d0f"},{"version":"ce6468bbf512d191800273bffd4a97be947b737476afeae8afbe09f42dc00895","signature":"869ce6205b3d708b25369f6363c465b24e45960dc090e88d668497e6adb2995e"},{"version":"bfe8c198a74f87a7025902cd4704f2c4c8ad52eb8a91ca525d93275b2e4a7c19","signature":"9405ead1cd9afa3e01b4411cc7f5059441e5cbbe21ccfb5b51a9a09ef37ce85e"},{"version":"0843d826c1208bcb3f5f695b8fef7480ca642035d2d04b4773c97756572ab664","signature":"0fab0f66480c23db1a4b423e7d2ed3bae7f47fdacea00e8d31ec2b455af8d087"},{"version":"bc0ee5896e662598992058d34334d52150ae1ee0aa72b3ddb26113ffc823c2fc","signature":"e6b9fdb333c4d3af1a6847e374f1ae4bab77ac888a509321d359e04189728255"},{"version":"3ba342621f04834618ae132aa19031355e47b03eb2c775566c4f261987a13c08","signature":"a34a0e2c0c035b7392a543786c0e8e6df6f52188ac6078023dd7c12ad9ac2578"},{"version":"9f0c9249d3cc16fd58023015a71e3156eafe3c83cd9972687036bcf805ed1cf8","signature":"84e689cb7a8c78838c03a77d3b8806cecd7400d1dedde44d46867dbe945ba421"},{"version":"3f322d07617882109b905830b459bf5a8697b3d33a0a8a6401bc44f2a50fdc7d","signature":"9a29036b0f8d6dd4bc825b43f7c2f95be2cd37ea6d3f54a2ae132e1eaeb35296"},{"version":"559a17fd85d0df25405b323ed71a21bb294af9f9d065f6f2c743f5804204a044","signature":"81c28d166db2f7080157cbe8c501c4a80fca101873140057553316e8d5268280"},{"version":"38cdcbf6b5643a7b2cef1dda7bca697eeda877766a8f286afe39225325f0f21f","signature":"bde10ff89bc3de9c7291427ba55fb22c334dad54bfc938677b616723f86bf232"},{"version":"05e48a0ff7c58eac21ad827db14827adcd907f3de2526ba8a2fe57939e402a0e","signature":"6d11171f78f4dec5cf638d45235b658068e634122b62085daf797942811a57d3"},{"version":"ab4f38d9989d578b1f0e903eace6df573bcc8e019fa821a368efb40f9f5cf1ed","signature":"ec1fbcfd02eb6ab5a9107bb984c443158b9a899e8c254ecc1f7672764baa3983"},{"version":"3366293c98e104c32e79132063f71fbc1bdac16feec0a8245a5ab31326d9e4d9","signature":"8c1b4d62ebd884ecdc1d118618951edcfde20f5e25cfd8c18409eec3e6251206"},{"version":"c65b62046fb6a3cf2305429ed6ce70d0f9b20faef32cb69fac118996906b6f48","signature":"a324b7982119fe4d3bb0a6647243308fd04f67cfbecc80528c987760fafb6821"},{"version":"e67ad5b7c4dbdfe862771695d422517040e1ddc70392c5f19f397009c6407d79","signature":"fba67a768b9eb38ab96dabcdf035d21e5c80facf642d2bde0e372551b6f2bf19"},{"version":"b89146011d20f93a785fc6170c3af1b27eae6992aa1479c23706dcd509c653c6","signature":"dd083e7a95b4938758c5c3f0fd31ce9cb82cc220df48cd86808fee953af05584"},{"version":"59286462b39b1ebc428ffb3265b278ff9d7e9f0cbecf5c0e5c7b214ad261c4eb","signature":"269dc2aa6dadb072edaca483ffa5990e1e2dc220f3f3a167e3f0f61f4d720e2d"},{"version":"d07542d548f137f313facb76665a1745bb61be062c4761d45b174e84a90c8424","signature":"bbbcb5f8c6b3a6a33680bb7a7de501f69d6a76bfa9665ec9a8246a5b0f64b30e"},{"version":"dd6a7ae4e633e55ef7c555b9ff32dd2c0cb0645a6f3e0e75b3451f3fffeb794f","signature":"888b9bb287c78acb484b0b697eebb9b0062c19f3d78d290db188f04370c7a75c"},{"version":"2e953d2aaa371e2d265a9dc9e06d7703f35d7ae7e0b9c2d96188970bedfee307","signature":"07d63c56780599dcf6fe33e1f52fc492250bd0e2e30a007e76f7c3deca7c3e5e"},{"version":"bbd07f9fd2885c3bb4cf6a7928938d047f6df081375e26cb417c757de7f89f9d","signature":"c7bb06bf4bf3c38bd1512bb8a18a1e1be963c0f40d81d13e08997ec2d034a63a"},{"version":"26c3ccb79477858914470ebe5b2b823d7c3806b8e123e23caf0aad1e4e83ed56","signature":"ef9cba269e754b7fa510c7e796b498b0c569f806a0a5446c41f1371f3968ee68"},{"version":"824bd0454dde36fdad20c66923a196fe9036e52fa273f54b8f1d45df77cbada3","signature":"c20163375d30a60407d6c18f24bda7fd06088795352ddb35eb3a56f90906bfb6"},{"version":"d6024215f55572abf693e3e413e4453544c34f932df9d55845744b2a37bf24ea","signature":"700e37c5fb53a4c997cd665ba6c51e3b18ffd0a7a939d56f3f39baa1312ff700"},{"version":"96ee647b51a0f8dc1bfbc78c7a6e0d1500507e578b47b04ea99cb70dee5dae07","signature":"4029b03307dafa9759842155249791e1bcace1b83721e7b64b1a9ceb710b1b10"},{"version":"b60ab656184076b65fd17b271f9c39089bc46e841dbeb0459d0119392715edbd","signature":"27e578fabc568907dbeb60aa71426d5569f5ad7eac8a5e7369b5f0f8dce98a6f"},{"version":"59e30ba6bd1723b091ec2b3a85a4136fb0691991dbc1e4f22841285b5b8056c7","signature":"cc7c3ba52dcb5a9af919a4636515964f683a7152127491ea9a86c80493ac5610"},{"version":"b449c52dd1dc559346f76334eb3872d2e32e6b7305b060bf80e40772e0d9f7de","signature":"5cfa7f69dccac813285050e460bc678f41f1cb43de1faa99d35f9439f339db12"},{"version":"b53fa03771f2df60db528a9889813715711e5c928b63ccb8f9e8fa555676feba","signature":"09fd8c2d436cacb4bbae67710d98627907d1c1cae6d7f181e36c69818f8e9401"},{"version":"297fd32c5c0ed123654a4226547cf7a428a738beabb58907b8c687ef1ab7e582","signature":"6c79f1b6bc4dc0da0007136585e951ccfef30529c7b76b603e840bfaee0c3f95"},{"version":"8348af90f63ef2cf4f6a42b3fc53aebacc05aef41c4628005b00d456583987ad","signature":"d50234446709c93924529c0508fb514f3a19916424febb911dd43644b268c3ce"},{"version":"031aed7cc6b50d22e79cc73d77fc8382930cc0713ccb6dfb5a9694f0ecc31d57","signature":"f1d6148ed5dd35a68f441050e3e012604b12c50390a8c10ebee7eca51c220148"},{"version":"bfa08cb7434cb68e8f4e734a67ec089990eb8647fee9b14bc6c0863bdd1ab9ea","signature":"9bba1280a1fe4606dc71e7207ae74ae031d5945eb5a7b8daebc8b8f6401f28c2"},{"version":"d7e5a40a2c7529bfbc970b3067db4800e9650abf991b79ea5fe1196badd54437","signature":"61ac0fbbde13ac63d1e163d1bf185af2ce050c7f408ec782fda1d4a237c25c72"},{"version":"feea83d7301793c4713bdb86514d1ef6b82ecefac1281b8a803648ee6715b5b4","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"2ce36c8872855fc2f61e635ccaa63be020bf137256f75a4487cc0686d0e89233","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"97de9297b0760d6e7334fd793540a5d48a48bfae7773d5ed2f88694c01effe6e","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"6df5b5d8cea1f3e5f9bc794ada653a2a9430b7fe53e0268cc7699ba1119acc0c","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"ab35d05dc2cc485bf5cc0fbf908d7749ff23156df757af0afe91946c6b7b85bf","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"ff0a2434a740037131ea1b055bc3b877ce100faa5946b88c8ccc6f9823b29eb1","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"f29140689927c0ed0b2b35b53a99b304483bfe6c39bdf5777494a3be16dc26c1","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"801470e9200a9a651bf4d047d3f1dbd5ce035a5eeab1321729dcb07c7775aff4","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"a19b11d879405211b03f735db446c33f96fc7288e474434ae8033b3fdb4d2a5d","affectsGlobalScope":true},{"version":"b789bf89eb19c777ed1e956dbad0925ca795701552d22e68fd130a032008b9f9","impliedFormat":1},"c4921195f34169a4ff856ae05b5dcaade9231ae0ae482c4763ddab7033970772",{"version":"88ec8ebe4181b51f74d51860258b8f96b8db3999d4caff22e1225d837ad12eda","signature":"a6b3f378ad715993e015f1a17612a01c495b33abc6af362c5caf6372fe92314a"},{"version":"5eda71d82d63643ab80e27fed7f6f5edad12c3e0c1b05b2a4af9331a003392e6","signature":"55ced09e64e40b82861610ec5fb38057c6221bb0cff96c4e4ee59c5d73d420f9"},{"version":"31328081fde0d30211679f00f735dea8de798439b6d286401b7f675c08afe489","signature":"364fee0ee80cfeeebec46fe3610cc79d3095ecf44d183a7b1c0f61d7150a3b97"},{"version":"5b4d2ece2c699c67803c143571e993ff47b80822b486e22abb066635fe47564f","signature":"4181ebf8eda762ab55339bbac4f8a6dc07f9a1633a6baa8cbee84e6517b3b233"},{"version":"a56b0ebe2f5dde79e26868e87b5eddde855b487534792ec68150cbeff1baa844","signature":"3a79d2e6ffc3b2948ea4bc2071e5fea9c80f747684b5924014c6e28462a4e8bb"},{"version":"d3d5303281b21a22292c6678df9f1f3a61de07c6e84d70f4d03fc8729e6d1f89","signature":"a3820421e60907669760d8cd8283bf7bd3dfcae51f60ec7a950ea8f1a939d18f"},{"version":"f83256215994498e9e8774f07116dfd080d60c2b6c9aee4d87833a87c0f859fd","signature":"b36a09a55fe77cf8d74707b3ba2c35ff5fefd542764acb0c9f6aec820c0e68c9"},{"version":"c097bd0169354845ce14336ebf0aa4fc6fc418da932b689310dfbb5daeda7355","signature":"6a16b383227068dd3551757e9c724c811216db3518f9ccc60cf38bb44ba08887"},"2552a31fad45a9ed1bde87e51b038dc0e786cd364b597162263abbf57018949b",{"version":"b9ab8e5836901fcd820117494077a2d53aee6843e943c8368b7ef7c9eede0317","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"2ce36c8872855fc2f61e635ccaa63be020bf137256f75a4487cc0686d0e89233","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"97de9297b0760d6e7334fd793540a5d48a48bfae7773d5ed2f88694c01effe6e","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"ab35d05dc2cc485bf5cc0fbf908d7749ff23156df757af0afe91946c6b7b85bf","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"acfb590b3270169635b876d9ca91a7bc0eb33c1d4f66f003907c771bd10cd27f","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"13df185e58be0aa1905867bc0c7fb8edcb12055f939a2b81a3b0b9bd66127734","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"b19d355393e23ac09766eb32a1b1e6516e073de85c11759dc25f89dd4f0d5fa8","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"8e723d89db7b361c84250c5b33fd7dc001e27f663e3ae263321597dfaa7459bc","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"ff0a2434a740037131ea1b055bc3b877ce100faa5946b88c8ccc6f9823b29eb1","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"f29140689927c0ed0b2b35b53a99b304483bfe6c39bdf5777494a3be16dc26c1","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"e6cc09c52d124e810244b22dbb80096a82fdfcbbcf759fe21792f6196883757e","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"d8dbeebe239b9e73dd1c65e525de8b1305ce63a84a28317cb953dd5e26eddb70","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"8fa79f79ffb146a196d9b489a1e0420c68cf5c1e43eb1d535b0071a5d813eb3c","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"c5be2f2db3a7cad9b1e85c72d5d99282e7d8770ac5812491bda1cacc10e4bb30","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"9a1122cc79a3b6c130a1f37e903ef93eca885c09c185fff399e507ec1e9eea19","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"0dc29d1983bb62591767360b0436b0deffd644117e75e65dff4f1ebc8b4e26b5","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"2d82cf3adc1fc5e6ed5c9ae589f360e3bf75d7110ae501f6644cc687a743e6bf","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"c4c3228dd35f345f09e5e6ddeff826b7c365cc3f796ecace49adc2852b129b13","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"ea395d64b4351b53cf4aadd7548d2a317e80243663d741f41dd08583d4370410","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"6702ca6bbc86eac80bb47360b935252551289894c66b10cfdc1c8b1edee925dc","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"1b650a03295b6cd2a9b83ff7f25bf2add592ab18f7db39477993c72f03605ea1","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"7790e8a64d1c3cbf861b2f7e291b3ead5f71fb8e9a054ed572273700a0fd3e56","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"729d8fcae15384f7df4886becde8a8743f2dce8c0c24f617c8031a67e2a1431c","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"fe2bb43840c83a9ed67e0e8240a86e9bb2522b9b0176ccb3e0b620204f2d4f6d","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"801470e9200a9a651bf4d047d3f1dbd5ce035a5eeab1321729dcb07c7775aff4","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"},{"version":"5628c76701079bf54dd67277250abb90949683f28601c90847dad5fc1ff2ac49","signature":"89b0f68f8f0b901f9dfff2b9e7255520283a783d6af7f2bc2953d771232317a2"}],"root":[68,69,439,[444,446],456,[458,463],[505,554],[556,591]],"options":{"allowImportingTsExtensions":true,"allowJs":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"skipLibCheck":true,"strict":true,"target":9,"verbatimModuleSyntax":true},"referencedMap":[[570,1],[571,2],[572,3],[569,4],[573,5],[574,6],[575,7],[567,8],[576,9],[580,10],[581,11],[582,12],[583,13],[578,14],[584,15],[587,16],[586,17],[585,18],[579,19],[588,20],[577,21],[589,22],[568,23],[591,24],[590,25],[565,26],[554,27],[566,28],[549,29],[550,4],[551,6],[552,7],[547,8],[548,23],[553,25],[68,30],[69,27],[546,31],[556,32],[458,33],[446,34],[460,35],[462,36],[541,37],[463,38],[539,39],[507,40],[508,41],[542,42],[509,43],[513,44],[519,45],[563,46],[521,47],[544,48],[523,49],[561,27],[564,50],[524,51],[525,52],[527,53],[512,54],[529,55],[558,56],[545,37],[559,27],[560,56],[530,57],[540,39],[557,58],[531,59],[536,60],[538,61],[459,62],[461,63],[456,64],[532,27],[526,65],[528,66],[520,67],[562,68],[510,69],[515,56],[439,69],[511,70],[522,67],[543,71],[518,72],[517,73],[514,74],[537,64],[505,75],[533,64],[534,76],[516,27],[506,77],[444,27],[445,78],[535,76],[376,27],[233,27],[121,79],[122,79],[123,80],[75,81],[124,82],[125,83],[126,84],[70,27],[73,85],[71,27],[72,27],[127,86],[128,87],[129,88],[130,89],[131,90],[132,91],[133,91],[134,92],[135,93],[136,94],[137,95],[76,27],[74,27],[138,96],[139,97],[140,98],[174,99],[141,100],[142,27],[143,101],[144,102],[145,103],[146,104],[147,105],[148,106],[149,107],[150,108],[151,109],[152,109],[153,110],[154,27],[155,111],[156,112],[158,113],[157,114],[159,115],[160,116],[161,117],[162,118],[163,119],[164,120],[165,121],[166,122],[167,123],[168,124],[169,125],[170,126],[171,127],[77,27],[78,27],[79,27],[117,128],[118,27],[119,27],[120,115],[172,129],[173,130],[182,131],[181,74],[183,132],[180,133],[342,134],[341,135],[178,136],[339,27],[179,137],[175,27],[177,138],[338,74],[251,74],[176,27],[470,139],[472,140],[457,141],[474,142],[208,143],[237,144],[413,145],[232,146],[219,27],[200,27],[206,27],[403,147],[268,148],[207,27],[371,149],[242,150],[243,151],[337,152],[400,153],[354,154],[407,155],[408,156],[406,157],[405,27],[404,158],[239,159],[209,160],[288,27],[289,161],[204,27],[221,162],[210,163],[186,162],[270,162],[191,162],[235,164],[234,27],[412,165],[422,27],[199,27],[313,166],[314,167],[308,74],[491,27],[316,27],[317,168],[309,169],[497,170],[495,171],[490,27],[399,172],[398,27],[489,173],[310,74],[350,174],[348,175],[492,27],[496,27],[494,176],[493,27],[349,177],[484,178],[487,179],[279,180],[278,181],[277,182],[500,74],[276,183],[262,27],[429,27],[432,27],[431,74],[433,184],[185,27],[409,185],[410,186],[411,187],[223,27],[198,188],[220,27],[329,74],[189,189],[328,190],[327,191],[318,27],[319,27],[326,27],[321,27],[324,192],[320,27],[322,193],[325,194],[323,193],[205,27],[196,27],[197,162],[252,195],[253,196],[250,197],[248,198],[249,199],[245,27],[335,168],[356,168],[471,200],[475,201],[479,202],[416,203],[415,27],[265,27],[434,204],[192,205],[311,206],[312,207],[303,208],[294,27],[334,209],[295,210],[336,211],[331,212],[330,27],[332,27],[347,213],[417,214],[418,215],[297,216],[301,217],[292,218],[395,219],[193,220],[272,221],[372,222],[194,223],[423,224],[424,146],[246,27],[254,225],[384,226],[244,27],[383,227],[184,27],[378,228],[222,27],[290,229],[373,27],[195,27],[255,27],[382,230],[203,27],[260,231],[300,232],[414,233],[299,27],[381,27],[247,27],[386,234],[387,235],[201,27],[389,236],[391,237],[390,238],[225,27],[380,223],[393,239],[379,240],[385,241],[212,27],[215,27],[213,27],[217,27],[214,27],[216,27],[218,242],[211,27],[364,243],[363,27],[369,244],[365,245],[368,246],[367,246],[370,244],[366,245],[259,247],[357,248],[421,249],[436,27],[440,250],[442,251],[296,27],[441,252],[419,214],[435,253],[315,214],[202,27],[298,254],[256,255],[257,256],[258,257],[287,258],[394,258],[273,258],[358,259],[274,259],[241,260],[240,27],[362,261],[361,262],[360,263],[359,264],[420,265],[307,266],[344,267],[306,268],[340,269],[343,270],[402,271],[401,272],[397,273],[353,274],[355,275],[352,276],[392,277],[346,27],[67,27],[345,278],[396,27],[261,279],[293,185],[291,280],[263,281],[266,282],[430,27],[264,283],[267,283],[65,27],[64,27],[66,27],[428,27],[269,284],[305,74],[469,27],[351,285],[238,27],[227,286],[187,27],[477,74],[483,287],[286,74],[481,168],[285,288],[188,289],[284,287],[190,27],[485,290],[282,74],[283,74],[275,27],[226,27],[281,291],[280,292],[224,293],[302,108],[271,108],[388,27],[375,294],[374,27],[473,27],[333,295],[304,74],[425,296],[464,74],[467,297],[468,298],[465,74],[466,27],[236,299],[231,300],[230,27],[229,301],[228,27],[426,302],[476,303],[478,304],[480,305],[482,306],[443,307],[555,308],[486,308],[504,309],[488,310],[498,311],[499,312],[501,313],[437,314],[427,188],[503,27],[502,315],[438,74],[377,316],[62,27],[63,27],[11,27],[12,27],[14,27],[13,27],[2,27],[15,27],[16,27],[17,27],[18,27],[19,27],[20,27],[21,27],[22,27],[3,27],[23,27],[24,27],[4,27],[25,27],[29,27],[26,27],[27,27],[28,27],[30,27],[31,27],[32,27],[5,27],[33,27],[34,27],[35,27],[36,27],[6,27],[40,27],[37,27],[38,27],[39,27],[41,27],[7,27],[42,27],[47,27],[48,27],[43,27],[44,27],[45,27],[46,27],[8,27],[52,27],[49,27],[50,27],[51,27],[53,27],[9,27],[54,27],[55,27],[56,27],[58,27],[57,27],[59,27],[60,27],[10,27],[61,27],[1,27],[95,317],[105,318],[94,317],[115,319],[86,320],[85,321],[114,315],[108,322],[113,323],[88,324],[102,325],[87,326],[111,327],[83,328],[82,315],[112,329],[84,330],[89,331],[90,27],[93,331],[80,27],[116,332],[106,333],[97,334],[98,335],[100,336],[96,337],[99,338],[109,315],[91,339],[92,340],[101,341],[81,342],[104,333],[103,331],[107,27],[110,343],[454,27],[455,344],[447,27],[453,27],[452,345],[451,27],[450,346],[449,347],[448,27]],"affectedFilesPendingEmit":[570,571,572,569,573,574,575,567,576,580,581,582,583,578,584,587,586,585,579,588,577,589,568,591,590,566,549,550,551,552,547,548,553,546,458,446,460,462,541,463,539,507,508,542,509,513,519,563,521,544,523,561,564,524,525,527,512,529,558,545,559,560,530,540,557,531,536,538,459,461,456,532,526,528,520,562,510,515,439,511,522,543,518,517,514,537,505,533,534,516,506,444,445,535,454,455,447,453,452,451,450,449,448],"version":"5.9.3"}
\ No newline at end of file
diff --git a/bun.lock b/bun.lock
deleted file mode 100644
index a189a42..0000000
--- a/bun.lock
+++ /dev/null
@@ -1,195 +0,0 @@
-{
-  "lockfileVersion": 2,
-  "configVersion": 1,
-  "workspaces": {
-    "": {
-      "name": "pkviewer",
-      "devDependencies": {
-        "@types/bun": "latest",
-        "typescript": "^5.6.0",
-      },
-    },
-    "apps/api": {
-      "name": "@pkviewer/api",
-      "version": "0.1.0",
-      "dependencies": {
-        "@pkviewer/shared": "workspace:*",
-        "hono": "^4.6.0",
-        "zod": "^3.23.8",
-      },
-    },
-    "apps/web": {
-      "name": "@pkviewer/web",
-      "version": "0.1.0",
-      "dependencies": {
-        "@pkviewer/shared": "workspace:*",
-        "next": "^15.1.0",
-        "react": "^19.0.0",
-        "react-bootstrap-icons": "^1.11.6",
-        "react-dom": "^19.0.0",
-        "server-only": "^0.0.1",
-      },
-      "devDependencies": {
-        "@types/node": "^22.0.0",
-        "@types/react": "^19.0.0",
-        "@types/react-dom": "^19.0.0",
-        "typescript": "^5.6.0",
-      },
-    },
-    "packages/shared": {
-      "name": "@pkviewer/shared",
-      "version": "0.1.0",
-    },
-  },
-  "packages": {
-    "@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA=="],
-
-    "@img/colour": ["@img/[email protected]", "", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="],
-
-    "@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.3.3" }, "os": "darwin", "cpu": "arm64" }, "sha512-Uhfl4V4lhP2nbUVF9+hyH1+luj86f1gUFeo8ALYxFoULoU+G87D43BfeMP8XHsk9boxAnCY/bf2EHwhA7MuGsA=="],
-
-    "@img/sharp-darwin-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.3.3" }, "os": "darwin", "cpu": "x64" }, "sha512-hWniXY3bG5qKpkKrAwPe4y+VTPmf086YQAnkxWh7uA1YrlRouWGa0M0Mxj3ZjnXFkv7/TD1bTy9lGUK26vRvWw=="],
-
-    "@img/sharp-freebsd-wasm32": ["@img/[email protected]", "", { "dependencies": { "@img/sharp-wasm32": "0.35.4" }, "os": "freebsd" }, "sha512-lIsKw/BU+kjB4eZjxrYrZmwOJYi3Ajrv66iAlBmUPyKc3HpnloevB1g3wxGD9P/5BbQ1brBGl65VRRrCvQDEqA=="],
-
-    "@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-suTBPTDGrI9WodccaDdwZItTSaBYASlBk1NSfElSHrUfzu3szG6lvIF58+WiFvnfzuK8ZBFS5zE00PxqxnRiPg=="],
-
-    "@img/sharp-libvips-darwin-x64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw=="],
-
-    "@img/sharp-libvips-linux-arm": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA=="],
-
-    "@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A=="],
-
-    "@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w=="],
-
-    "@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ=="],
-
-    "@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q=="],
-
-    "@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA=="],
-
-    "@img/sharp-libvips-linuxmusl-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw=="],
-
-    "@img/sharp-libvips-linuxmusl-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw=="],
-
-    "@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.3" }, "os": "linux", "cpu": "arm" }, "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A=="],
-
-    "@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64" }, "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ=="],
-
-    "@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.3" }, "os": "linux", "cpu": "ppc64" }, "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ=="],
-
-    "@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.3" }, "os": "linux", "cpu": "none" }, "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA=="],
-
-    "@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.3" }, "os": "linux", "cpu": "s390x" }, "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ=="],
-
-    "@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.3" }, "os": "linux", "cpu": "x64" }, "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA=="],
-
-    "@img/sharp-linuxmusl-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.3" }, "os": "linux", "cpu": "arm64" }, "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA=="],
-
-    "@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.3" }, "os": "linux", "cpu": "x64" }, "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg=="],
-
-    "@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.11.3" } }, "sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA=="],
-
-    "@img/sharp-webcontainers-wasm32": ["@img/[email protected]", "", { "dependencies": { "@img/sharp-wasm32": "0.35.4" }, "cpu": "none" }, "sha512-ESfNkywmCfPNyaZjxooddJQiQ+l/nTpGEOGthxiLnIHXC/CmcBixnfwUleX9mCz9ovrUUvKMap/pm8RYbzfwaA=="],
-
-    "@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw=="],
-
-    "@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-kqRsbaa5CS6KHlpxnN7WhE6vAAugXyZButpRdvDWetlv6Qv4N9WTcrWzF7tXfB9T7MsoadqdI8hmwLq6UlLvtw=="],
-
-    "@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-XtmnYhBcrORsJ4XJngyzr/EWP0hRZLAZRFaApdKuviyqF78+ylxh2y06ZmtULAMOnObJ3ucpN0AcwSWnMowTRg=="],
-
-    "@next/env": ["@next/[email protected]", "", {}, "sha512-42h1lLr07vl4gawALP1hsgRZjHB1xYa58JfUfHwr0f7jG/zhPakh5GHkADHXOC9ZxUvlQFOPIrp7s6qX4DezPQ=="],
-
-    "@next/swc-darwin-arm64": ["@next/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-w+RR0v/QuApnWEjRGm1z6gcObKwGMb5YPA7V3bzBEVSBpMFUXprer0tS27UxjUcEnqbhL7Zuzohej79B6rYmBg=="],
-
-    "@next/swc-darwin-x64": ["@next/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-QiGGBUSakt8S1H4Lt9Ehsh6Ja87axiBnQQgysOObvCbI7iUfJnRGntF1P64S4/ijuHFnSB8KLsEddkY3nN26uw=="],
-
-    "@next/swc-linux-arm64-gnu": ["@next/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-ehLos/66zo0d/mJCU5u96a/VDcr01aaUrX0o/i16UdInxz8qPTCDSxGtjk/Lps1sIr1RJFdiX3hxc0fxJo+cPA=="],
-
-    "@next/swc-linux-arm64-musl": ["@next/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-ZVMrqLiJ7DiChgmbkQwFtdhAnUkSH/4p7tB29QY+giATb0Q/XGHNRSKAb/B8XGDHRUaA67NepOW5W8u3ZRJBAA=="],
-
-    "@next/swc-linux-x64-gnu": ["@next/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-UOewtDGkTMJTiODrEdeLZ50yGb59xCZSriNpXkfPMxRRgwDkGc7i8mLWqV5076wEdb+Ca/XN7MhJyM3CupyNyQ=="],
-
-    "@next/swc-linux-x64-musl": ["@next/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-UBHwA8AhkCZgtRfU1aJpunuAJe/6gZv6jDESQe4p5MjTb5V0YEeJBWCdNqx15Vj3x+5jmauRfeMJSjfQj9HGFQ=="],
-
-    "@next/swc-win32-arm64-msvc": ["@next/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-QcFcPRr16djk5IqK5+e8O80eZfgWzIvVBXfitIq0tQ/uc+eyfdoZ0NmKc0cnbIJyfVwREapKuG97YcxWA9gcpA=="],
-
-    "@next/swc-win32-x64-msvc": ["@next/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-zREeykps3ndWr9egJgvJKqVkkDuaw6Zrrg23cYBos0ygydFkAWYU4+PaPVwXzP1eAYQJe53ShSK45iDM529BOg=="],
-
-    "@pkviewer/api": ["@pkviewer/api@workspace:apps/api"],
-
-    "@pkviewer/shared": ["@pkviewer/shared@workspace:packages/shared"],
-
-    "@pkviewer/web": ["@pkviewer/web@workspace:apps/web"],
-
-    "@swc/helpers": ["@swc/[email protected]", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g=="],
-
-    "@types/bun": ["@types/[email protected]", "", { "dependencies": { "bun-types": "1.4.1" } }, "sha512-0AVGiTXGajf1rgKom3N+c5L7CBxuoyyv1i44M0nX4UDK0G/fnRAMiri93nHuVPIb429KKtAgj7HatVmmOjeQLA=="],
-
-    "@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q=="],
-
-    "@types/react": ["@types/[email protected]", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w=="],
-
-    "@types/react-dom": ["@types/[email protected]", "", { "peerDependencies": { "@types/react": "^19.2.0" } }, "sha512-I8bPpDLcHBv1qiIiXDCy71Rt8eQDKJP0sMSWJphDdAcdqiJ1sGpZamavoEIRZmYzjia9LuEb2HlYdDpmoENpvQ=="],
-
-    "bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-loKuVrAFZKfEv+JvWkHRS9GW5IqLuLRjVXN9p+vZvBN86O5hf/pBZQ5hSoyipsrMmWObZBDvWnlmKvjKTM0PdA=="],
-
-    "caniuse-lite": ["[email protected]", "", {}, "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg=="],
-
-    "client-only": ["[email protected]", "", {}, "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="],
-
-    "csstype": ["[email protected]", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="],
-
-    "detect-libc": ["[email protected]", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],
-
-    "hono": ["[email protected]", "", {}, "sha512-c8/gF9ac8Y78/agExVocyLevgR+JlpNB444Py0FSX8pJoPdYUfUzRcXtYEYGwt6l19qIlVZPN5Mfsw9jFShmQQ=="],
-
-    "js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
-
-    "loose-envify": ["[email protected]", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="],
-
-    "nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w=="],
-
-    "next": ["[email protected]", "", { "dependencies": { "@next/env": "15.5.25", "@swc/helpers": "0.5.15", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "15.5.25", "@next/swc-darwin-x64": "15.5.25", "@next/swc-linux-arm64-gnu": "15.5.25", "@next/swc-linux-arm64-musl": "15.5.25", "@next/swc-linux-x64-gnu": "15.5.25", "@next/swc-linux-x64-musl": "15.5.25", "@next/swc-win32-arm64-msvc": "15.5.25", "@next/swc-win32-x64-msvc": "15.5.25", "sharp": "^0.34.3 || ^0.35.4" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.51.1", "babel-plugin-react-compiler": "*", "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "sass": "^1.3.0" }, "optionalPeers": ["@opentelemetry/api", "@playwright/test", "babel-plugin-react-compiler", "sass"], "bin": { "next": "dist/bin/next" } }, "sha512-OMWNulIIqKM2ykvC2qMjIt0IoavB4UB2SCs4iXJ6z6847FvyH8jBmBWcvrF5iuhTu8Przh20Fo/aoszIdqx4PA=="],
-
-    "object-assign": ["[email protected]", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="],
-
-    "picocolors": ["[email protected]", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],
-
-    "postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],
-
-    "prop-types": ["[email protected]", "", { "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", "react-is": "^16.13.1" } }, "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg=="],
-
-    "react": ["[email protected]", "", {}, "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw=="],
-
-    "react-bootstrap-icons": ["[email protected]", "", { "dependencies": { "prop-types": "^15.7.2" }, "peerDependencies": { "react": ">=16.8.6" } }, "sha512-ycXiyeSyzbS1C4+MlPTYe0riB+UlZ7LV7YZQYqlERV2cxDiKtntI0huHmP/3VVvzPt4tGxqK0K+Y6g7We3U6tQ=="],
-
-    "react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.8" } }, "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ=="],
-
-    "react-is": ["[email protected]", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="],
-
-    "scheduler": ["[email protected]", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],
-
-    "semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="],
-
-    "server-only": ["[email protected]", "", {}, "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA=="],
-
-    "sharp": ["[email protected]", "", { "dependencies": { "@img/colour": "^1.1.0", "detect-libc": "^2.1.2", "semver": "^7.8.5" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.35.4", "@img/sharp-darwin-x64": "0.35.4", "@img/sharp-freebsd-wasm32": "0.35.4", "@img/sharp-libvips-darwin-arm64": "1.3.3", "@img/sharp-libvips-darwin-x64": "1.3.3", "@img/sharp-libvips-linux-arm": "1.3.3", "@img/sharp-libvips-linux-arm64": "1.3.3", "@img/sharp-libvips-linux-ppc64": "1.3.3", "@img/sharp-libvips-linux-riscv64": "1.3.3", "@img/sharp-libvips-linux-s390x": "1.3.3", "@img/sharp-libvips-linux-x64": "1.3.3", "@img/sharp-libvips-linuxmusl-arm64": "1.3.3", "@img/sharp-libvips-linuxmusl-x64": "1.3.3", "@img/sharp-linux-arm": "0.35.4", "@img/sharp-linux-arm64": "0.35.4", "@img/sharp-linux-ppc64": "0.35.4", "@img/sharp-linux-riscv64": "0.35.4", "@img/sharp-linux-s390x": "0.35.4", "@img/sharp-linux-x64": "0.35.4", "@img/sharp-linuxmusl-arm64": "0.35.4", "@img/sharp-linuxmusl-x64": "0.35.4", "@img/sharp-webcontainers-wasm32": "0.35.4", "@img/sharp-win32-arm64": "0.35.4", "@img/sharp-win32-ia32": "0.35.4", "@img/sharp-win32-x64": "0.35.4" }, "peerDependencies": { "@types/node": "*" }, "optionalPeers": ["@types/node"] }, "sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA=="],
-
-    "source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
-
-    "styled-jsx": ["[email protected]", "", { "dependencies": { "client-only": "0.0.1" }, "peerDependencies": { "@babel/core": "*", "babel-plugin-macros": "*", "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" }, "optionalPeers": ["@babel/core", "babel-plugin-macros"] }, "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA=="],
-
-    "tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
-
-    "typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
-
-    "undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
-
-    "zod": ["[email protected]", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
-
-    "bun-types/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~8.3.0" } }, "sha512-k97ENvZWtvA6yqz5/FS6a7duDgOPEeOQOc2iKS/nY6mX6qJUKtLnWzQS+Xj6tXweyj6ZcTAK2Qecetnvi9nCLA=="],
-
-    "bun-types/@types/node/undici-types": ["[email protected]", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="],
-  }
-}
diff --git a/deno.json b/deno.json
new file mode 100644
index 0000000..b999988
--- /dev/null
+++ b/deno.json
@@ -0,0 +1,51 @@
+{
+  "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json",
+  "license": "MIT",
+  "nodeModulesDir": "auto",
+  "compilerOptions": {
+    "strict": true,
+    "noUncheckedIndexedAccess": true,
+    "noImplicitOverride": true,
+    "noFallthroughCasesInSwitch": true,
+    "exactOptionalPropertyTypes": true
+  },
+  "imports": {
+    "@pkviewer/shared": "./api/shared/index.ts",
+    "@std/expect": "jsr:@std/expect@^1.0.0",
+    "@std/testing/bdd": "jsr:@std/testing@^1.0.0/bdd",
+    "hono": "npm:hono@^4.6.0",
+    "zod": "npm:zod@^3.23.8",
+    "@sveltejs/adapter-node": "npm:@sveltejs/adapter-node@^5.2.0",
+    "@sveltejs/kit": "npm:@sveltejs/kit@^2.20.0",
+    "@sveltejs/vite-plugin-svelte": "npm:@sveltejs/vite-plugin-svelte@^5.0.0",
+    "bootstrap-icons": "npm:bootstrap-icons@^1.11.3",
+    "svelte": "npm:svelte@^5.25.0",
+    "svelte-check": "npm:svelte-check@^4.1.0",
+    "typescript": "npm:typescript@^5.6.0",
+    "vite": "npm:vite@^6.2.0"
+  },
+  "tasks": {
+    "dev": {
+      "description": "API and web tier together",
+      "dependencies": [
+        "dev-api",
+        "dev-web"
+      ]
+    },
+    "dev-api": "cd api && deno run --watch --env-file=../.env --allow-net --allow-env --allow-read --allow-write src/index.ts",
+    "dev-web": "cd web && deno run --env-file=../.env -A npm:vite dev",
+    "start-api": "cd api && deno run --env-file=../.env --allow-net --allow-env --allow-read --allow-write src/index.ts",
+    "start-web": "cd web && deno run --env-file=../.env --allow-net --allow-env --allow-read build/index.js",
+    "build": "cd web && deno run -A npm:vite build",
+    "migrate": "cd api && deno run --env-file=../.env --allow-env --allow-read --allow-write src/db/migrate.ts",
+    "seed": "cd api && deno run --env-file=../.env --allow-net --allow-env --allow-read --allow-write scripts/seed-dev.ts",
+    "admin:list": "cd api && deno run --env-file=../.env --allow-env --allow-read --allow-write scripts/admin.ts list",
+    "admin:grant": "cd api && deno run --env-file=../.env --allow-env --allow-read --allow-write scripts/admin.ts grant",
+    "admin:revoke": "cd api && deno run --env-file=../.env --allow-env --allow-read --allow-write scripts/admin.ts revoke",
+    "test": "deno test --allow-env --allow-read --allow-write --allow-net api/test/ web/test/",
+    "check:domain": "bash api/scripts/check-no-hardcoded-origin.sh",
+    "check:api": "deno check api/",
+    "check:web": "cd web && deno run -A npm:@sveltejs/kit/svelte-kit sync && deno run -A npm:svelte-check --tsconfig ./tsconfig.json --output machine",
+    "check": "deno task check:domain && deno task check:api && deno task check:web && deno task test"
+  }
+}
diff --git a/deno.lock b/deno.lock
new file mode 100644
index 0000000..4d0afcd
--- /dev/null
+++ b/deno.lock
@@ -0,0 +1,831 @@
+{
+  "version": "5",
+  "specifiers": {
+    "jsr:@std/assert@^1.0.19": "1.0.19",
+    "jsr:@std/expect@1": "1.0.20",
+    "jsr:@std/internal@^1.0.12": "1.0.14",
+    "jsr:@std/internal@^1.0.14": "1.0.14",
+    "jsr:@std/path@^1.1.6": "1.1.6",
+    "jsr:@std/testing@1": "1.0.21",
+    "npm:@sveltejs/adapter-node@^5.2.0": "5.5.8_@[email protected]_@[email protected][email protected][email protected][email protected]",
+    "npm:@sveltejs/kit@^2.20.0": "2.70.4_@[email protected][email protected][email protected][email protected]",
+    "npm:@sveltejs/vite-plugin-svelte@5": "[email protected][email protected]",
+    "npm:bootstrap-icons@^1.11.3": "1.13.2",
+    "npm:hono@^4.6.0": "4.13.17",
+    "npm:svelte-check@^4.1.0": "[email protected][email protected]",
+    "npm:svelte@^5.25.0": "5.57.3",
+    "npm:typescript@^5.6.0": "5.9.3",
+    "npm:vite@*": "6.4.6",
+    "npm:vite@^6.2.0": "6.4.6",
+    "npm:zod@^3.23.8": "3.25.76"
+  },
+  "jsr": {
+    "@std/[email protected]": {
+      "integrity": "eaada96ee120cb980bc47e040f82814d786fe8162ecc53c91d8df60b8755991e",
+      "dependencies": [
+        "jsr:@std/internal@^1.0.12"
+      ]
+    },
+    "@std/[email protected]": {
+      "integrity": "ffc4f3c33f732417e3e9acf3d995818c89984313c37d933b9ebbb4571d2887e9",
+      "dependencies": [
+        "jsr:@std/assert",
+        "jsr:@std/internal@^1.0.14",
+        "jsr:@std/path"
+      ]
+    },
+    "@std/[email protected]": {
+      "integrity": "291516b3d4c35024d6ffbc0a9df5bf4c64116e05b50012cf846710152d2ffdf7"
+    },
+    "@std/[email protected]": {
+      "integrity": "c68485c2a4dfbb5ae3cc74fae4e8c4e5d874cf8a8ed12927917235c758b46cbe",
+      "dependencies": [
+        "jsr:@std/internal@^1.0.14"
+      ]
+    },
+    "@std/[email protected]": {
+      "integrity": "a0d14b2519005242821565091127c7d6fa96ca1b330e84e9249afcd602ee764f",
+      "dependencies": [
+        "jsr:@std/assert",
+        "jsr:@std/internal@^1.0.14"
+      ]
+    }
+  },
+  "npm": {
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",
+      "os": ["aix"],
+      "cpu": ["ppc64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",
+      "os": ["android"],
+      "cpu": ["arm64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",
+      "os": ["android"],
+      "cpu": ["arm"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",
+      "os": ["android"],
+      "cpu": ["x64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",
+      "os": ["darwin"],
+      "cpu": ["arm64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",
+      "os": ["darwin"],
+      "cpu": ["x64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",
+      "os": ["freebsd"],
+      "cpu": ["arm64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",
+      "os": ["freebsd"],
+      "cpu": ["x64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",
+      "os": ["linux"],
+      "cpu": ["arm64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",
+      "os": ["linux"],
+      "cpu": ["arm"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",
+      "os": ["linux"],
+      "cpu": ["ia32"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",
+      "os": ["linux"],
+      "cpu": ["loong64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",
+      "os": ["linux"],
+      "cpu": ["mips64el"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",
+      "os": ["linux"],
+      "cpu": ["ppc64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",
+      "os": ["linux"],
+      "cpu": ["riscv64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",
+      "os": ["linux"],
+      "cpu": ["s390x"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
+      "os": ["linux"],
+      "cpu": ["x64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",
+      "os": ["netbsd"],
+      "cpu": ["arm64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",
+      "os": ["netbsd"],
+      "cpu": ["x64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",
+      "os": ["openbsd"],
+      "cpu": ["arm64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",
+      "os": ["openbsd"],
+      "cpu": ["x64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",
+      "os": ["openharmony"],
+      "cpu": ["arm64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",
+      "os": ["sunos"],
+      "cpu": ["x64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",
+      "os": ["win32"],
+      "cpu": ["arm64"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",
+      "os": ["win32"],
+      "cpu": ["ia32"]
+    },
+    "@esbuild/[email protected]": {
+      "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",
+      "os": ["win32"],
+      "cpu": ["x64"]
+    },
+    "@jridgewell/[email protected]": {
+      "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+      "dependencies": [
+        "@jridgewell/sourcemap-codec",
+        "@jridgewell/trace-mapping"
+      ]
+    },
+    "@jridgewell/[email protected]": {
+      "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+      "dependencies": [
+        "@jridgewell/gen-mapping",
+        "@jridgewell/trace-mapping"
+      ]
+    },
+    "@jridgewell/[email protected]": {
+      "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="
+    },
+    "@jridgewell/[email protected]": {
+      "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw=="
+    },
+    "@jridgewell/[email protected]": {
+      "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+      "dependencies": [
+        "@jridgewell/resolve-uri",
+        "@jridgewell/sourcemap-codec"
+      ]
+    },
+    "@polka/[email protected]": {
+      "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="
+    },
+    "@rollup/[email protected][email protected]": {
+      "integrity": "sha512-ZaOxZceP7SOUW7Lqw5IRVweSQYWaeIPnXIGLiB690EBA3FGJTO40EEr2L5yZplJWsgTCogILRSpcAe7+U0Otdg==",
+      "dependencies": [
+        "@rollup/pluginutils",
+        "commondir",
+        "estree-walker",
+        "fdir",
+        "[email protected]",
+        "magic-string",
+        "picomatch",
+        "rollup"
+      ],
+      "optionalPeers": [
+        "rollup"
+      ]
+    },
+    "@rollup/[email protected][email protected]": {
+      "integrity": "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==",
+      "dependencies": [
+        "@rollup/pluginutils",
+        "rollup"
+      ],
+      "optionalPeers": [
+        "rollup"
+      ]
+    },
+    "@rollup/[email protected][email protected]": {
+      "integrity": "sha512-lUYM3UBGuM93CnMPG1YocWu7X802BrNF3jW2zny5gQyLQgRFJhV1Sq0Zi74+dh/6NBx1DxFC4b4GXg9wUCG5Qg==",
+      "dependencies": [
+        "@rollup/pluginutils",
+        "@types/resolve",
+        "deepmerge",
+        "is-module",
+        "resolve",
+        "rollup"
+      ],
+      "optionalPeers": [
+        "rollup"
+      ]
+    },
+    "@rollup/[email protected][email protected]": {
+      "integrity": "sha512-J4RZarRvQAm5IF0/LwUUg+obsm+xZhYnbMXmXROyoSE1ATJe3oXSb9L5MMppdxP2ylNSjv6zFBwKYjcKMucVfA==",
+      "dependencies": [
+        "@rollup/pluginutils",
+        "magic-string",
+        "rollup"
+      ],
+      "optionalPeers": [
+        "rollup"
+      ]
+    },
+    "@rollup/[email protected][email protected]": {
+      "integrity": "sha512-P9ZvnfouRu4MSC+ilERaw6FmZs8zqKhpHxEs4aGDGWQAMzQGXnhvCSvoNwokfNvdt7t3Y5Y4p6gStQgezeIqug==",
+      "dependencies": [
+        "@types/estree",
+        "estree-walker",
+        "picomatch",
+        "rollup"
+      ],
+      "optionalPeers": [
+        "rollup"
+      ]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-ItKrNMkEL3hy85kLBXwB0+M6CWWVI8vr7RV+Eb7oDlQIMXLaiEhGfdaj5jAUadYn2v3nwzAhIRl/nLyjAqV9vQ==",
+      "os": ["android"],
+      "cpu": ["arm"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-dCkT8BMPLo6X6GCFVtuzrnr981PpJSeK4ZO/d/mZdJ/ao61Qa1Usd/OHIQ69MQgw4qQclR/X6uRRUONiWwD8cw==",
+      "os": ["android"],
+      "cpu": ["arm64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-p2jkKiscqQOGmyL6qu+KvJctvBc3SQTd+Xi2lQYn5QvFLEWz+QI8Z9iI+xcIjez6vKRsSnWP56Y3Ep7g3Stiug==",
+      "os": ["android"],
+      "cpu": ["x64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-aVIfOteo5zoX8aL742H/S3QsyN6aokNYjdzrLnQBKxgRVoh4cibTErpi61RzSmrv2hBzDB1i751hwwdc8QK0vQ==",
+      "os": ["darwin"],
+      "cpu": ["arm64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-+Wuf4TFTHiE/WnjKgH1SkNf/9D5ddoed1UR0p3jxjNAGemdeeQRL+r1bJ1LlZyha0VKDBYLB2U/a9a9KlSw4Kw==",
+      "os": ["darwin"],
+      "cpu": ["x64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-feKK2dc13j/6D9mAp7XKhBM/VUqn0N/xRgP6rT7/mdRVVJUaeZ4lsJ9hN90aTi0k3OD+mkjlcN01vQ96Ac9VzQ==",
+      "os": ["freebsd"],
+      "cpu": ["arm64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-s1oGXPGX1PNqdi9TLWD+RwtPEYf/BOTbCcq4anJBqNbzyjucti86ldYH37eKvsyTP7Bl5/Hf8XmbIxCz/iafTA==",
+      "os": ["freebsd"],
+      "cpu": ["x64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-ksR3ZmzHrm6HOUP8UlDBy5hNTcG9cEIa3EyGnxn5BjorLRjBh4ucxhwjwwVEm0dqcIN4Egc/XjDUiPQwN1ic9A==",
+      "os": ["linux"],
+      "cpu": ["arm"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-STZVVBM35wULVsQah0xKfCBQMPpHliOfjnRaUNT35jrbpfapUrD8ix6Yhl7tLHW0xQSWotXSSghjUi/DclwRSw==",
+      "os": ["linux"],
+      "cpu": ["arm"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-Fm/GPC2R0zlJYQIp9aY9L1lO2z+P+UrcvXG6fhubfo/BbMOLZlLXshnbECOTqr3pxfZFb6nNn0QgDETDtrX7TQ==",
+      "os": ["linux"],
+      "cpu": ["arm64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-VoqlckWcwNF3WqsUkLZg91zYFgBvrC37Lc5e8AU+BKdCUFDMPoN0Rsin/LvF+rBVF527gWo5KT0oHkaAZaL1GA==",
+      "os": ["linux"],
+      "cpu": ["arm64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-Zr8X/SUf7Jjwxt99BqPDF/Wq+sz4oUBIP6HBaFQWwb8wO1nV6LBIpD6jB9cMybLho93Z+B8rrN0uXEL6oNOUJQ==",
+      "os": ["linux"],
+      "cpu": ["loong64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-2EhrYEJNXIyhSZESwm/kCke1tiH7QAPOU3v3MsLM9J+Nfn2QCDe/pGROUAvYFK0BL2MEbzNgfrqrbnE5CFXkLw==",
+      "os": ["linux"],
+      "cpu": ["loong64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-IC0dYuEQknw0m2FYBNBKlbrgBJBH5OMRiaRfCc4CFSpYnmDnqTpNSv+TgX+loezGTdRjBNZuYZi3t+Oc5NxNYg==",
+      "os": ["linux"],
+      "cpu": ["ppc64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-Zlzm6fGuDvtAqMEl071/g17vxq6u2Y2v/rON/gDY4NvzWLJ41BGAlwhF3QuAzwq05zIPo4LYzdqwhx3oisYCUw==",
+      "os": ["linux"],
+      "cpu": ["ppc64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-KhEpYRtHZ3Kj4shavjXeH+K1bQlA6UbP6MJ45rMPF/11JlZb1SRNLeuWCdigUEoMMaFO4+LwwcS+ew1SoLJu/g==",
+      "os": ["linux"],
+      "cpu": ["riscv64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-LPn9qvPsM/Ofd6Ekq3im6nB8Tk1ruJhTd3x/2bJkTR8m/XTsfxA+EU0RJ23WJqgJg123kitHAqbEK7B4cL1uPg==",
+      "os": ["linux"],
+      "cpu": ["riscv64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-Q1+E+pzSP+FiXuIZtxKR+pK7l2KQ9gsM+VaFPv1LR277kp7l61crG46WGLKLLay3Js5cvyU9Keqdzxa1EcFO+g==",
+      "os": ["linux"],
+      "cpu": ["s390x"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-3Btp4Lca/WzsmbaKu9Lh9d/XwyRDIegd/5khRBusHGw/Ll6SoF5Shn63OrjPdkLcpNi2PGDApXzNmxriRxGYjA==",
+      "os": ["linux"],
+      "cpu": ["x64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-5SKVaUiVs18+DGBnpg0mORGxgq/0udczngGxV/vf2nvK1djqpOKIxY/+8rBWxAbWGRE4RnnwxWabDwJN3pCwIQ==",
+      "os": ["linux"],
+      "cpu": ["x64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-KBpm48/lESsHgWd+dRlcy18APBYhXU4Jb6VlJoqbpWNwfpztFXwP22qVv9aHd3k1quSrmLeJwYLc7rpQ+BFZrw==",
+      "os": ["openbsd"],
+      "cpu": ["x64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-o0D0bfRW8QGA1Ph6OzqVHMq5LRu1xkr1iM7qQIXUSFuR60ddXeDhN9UR4bUBPLYsrT46sZwwgQa51TWtBV3r5g==",
+      "os": ["openharmony"],
+      "cpu": ["arm64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-r17kcu5kmd6WQwokYmfBnfwM/icureCWCPjpJVALcrSv5Lfy6Ggk9azxXor6hILhCHbc/4IfEiv+L5RXaOHinA==",
+      "os": ["win32"],
+      "cpu": ["arm64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-yUtOqq7ZrQoZ3WiHSR6QGTdOl4YgMHqXIYSBYU6siIcC0YF0pEwx7aGsPTm2mRwrmW6SMJkxzEdFm6wqXpmbNw==",
+      "os": ["win32"],
+      "cpu": ["ia32"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-5IYoWxQGo5WECbJbImIf2w33uCHJNLv4o/FQtSyeYDed7AC6zx84NsEcGYccoI2geDEYkrxUXcsYK/6EhwVSIg==",
+      "os": ["win32"],
+      "cpu": ["x64"]
+    },
+    "@rollup/[email protected]": {
+      "integrity": "sha512-ee+c14ggUiM7lg4PtCjSBYU9O9dHp4FFespRnd5yj7SilUBJCL3x3aHlB+sIqbGjcPo3pEyODASnfKJuZ26YBw==",
+      "os": ["win32"],
+      "cpu": ["x64"]
+    },
+    "@standard-schema/[email protected]": {
+      "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="
+    },
+    "@sveltejs/[email protected][email protected]": {
+      "integrity": "sha512-wgKggnhZVL9Bfx1OaKKTrYY9BFRk6C8UAkQNUcIv1+llzYrIqy+RZm5HPKzn0NpEBvTVhTqB4kQyllZywsRBRQ==",
+      "dependencies": [
+        "acorn"
+      ]
+    },
+    "@sveltejs/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]": {
+      "integrity": "sha512-gGY4BekBbQsxLPEWEenB42pl3rEUT/2iY7lVu8U++UZSDKk5ml5fN62YG4M5h9qLwswM4lE4V/8GvZy3J2gxzQ==",
+      "dependencies": [
+        "@rollup/plugin-commonjs",
+        "@rollup/plugin-json",
+        "@rollup/plugin-node-resolve",
+        "@rollup/plugin-replace",
+        "@sveltejs/kit",
+        "rollup"
+      ]
+    },
+    "@sveltejs/[email protected]_@[email protected][email protected][email protected][email protected]": {
+      "integrity": "sha512-IDfRnmSXgtlmv5Q+KyvP1HGr2XUvZooo0yBwzTnJA7CBbczy+sSMHXubfbcI9gz4EKksRSyYx44y/eCcf/B+rg==",
+      "dependencies": [
+        "@standard-schema/spec",
+        "@sveltejs/acorn-typescript",
+        "@sveltejs/vite-plugin-svelte",
+        "@types/cookie",
+        "acorn",
+        "cookie",
+        "devalue",
+        "esm-env",
+        "kleur",
+        "magic-string",
+        "mrmime",
+        "set-cookie-parser",
+        "sirv",
+        "svelte",
+        "typescript",
+        "vite"
+      ],
+      "optionalPeers": [
+        "typescript"
+      ],
+      "bin": true
+    },
+    "@sveltejs/[email protected]": {
+      "integrity": "sha512-VT3qmUb8pRV2QrZjd8iAmtg8lf4W0TIjZbvXtz5MKei/q96teWZgGJyyidJzOjzZzvdq616eSRVeMYIQChUTAQ=="
+    },
+    "@sveltejs/[email protected]_@[email protected][email protected][email protected]": {
+      "integrity": "sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==",
+      "dependencies": [
+        "@sveltejs/vite-plugin-svelte",
+        "debug",
+        "svelte",
+        "vite"
+      ]
+    },
+    "@sveltejs/[email protected][email protected][email protected]": {
+      "integrity": "sha512-Y1Cs7hhTc+a5E9Va/xwKlAJoariQyHY+5zBgCZg4PFWNYQ1nMN9sjK1zhw1gK69DuqVP++sht/1GZg1aRwmAXQ==",
+      "dependencies": [
+        "@sveltejs/vite-plugin-svelte-inspector",
+        "debug",
+        "deepmerge",
+        "kleur",
+        "magic-string",
+        "svelte",
+        "vite",
+        "vitefu"
+      ]
+    },
+    "@types/[email protected]": {
+      "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA=="
+    },
+    "@types/[email protected]": {
+      "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g=="
+    },
+    "@types/[email protected]": {
+      "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==",
+      "bin": true
+    },
+    "[email protected]": {
+      "integrity": "sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-fAU1Ly3dH7hwRg+CB8EZ0Vl0fF80zgXHeUVJyfUOKzoURr+TbwISbCW5tKUoQLERaWYG2emTCybcPbD96hdD1A=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
+      "dependencies": [
+        "readdirp"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+      "dependencies": [
+        "ms"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-sPAT4pztbu6586/hrhOnMKS17IJrvg12mXiSPSS3W5qDeN2RGgvZ0diZCm31dBbnevfVmujNO3IM2wrS4Y2Rhg=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
+      "optionalDependencies": [
+        "@esbuild/aix-ppc64",
+        "@esbuild/android-arm",
+        "@esbuild/android-arm64",
+        "@esbuild/android-x64",
+        "@esbuild/darwin-arm64",
+        "@esbuild/darwin-x64",
+        "@esbuild/freebsd-arm64",
+        "@esbuild/freebsd-x64",
+        "@esbuild/linux-arm",
+        "@esbuild/linux-arm64",
+        "@esbuild/linux-ia32",
+        "@esbuild/linux-loong64",
+        "@esbuild/linux-mips64el",
+        "@esbuild/linux-ppc64",
+        "@esbuild/linux-riscv64",
+        "@esbuild/linux-s390x",
+        "@esbuild/linux-x64",
+        "@esbuild/netbsd-arm64",
+        "@esbuild/netbsd-x64",
+        "@esbuild/openbsd-arm64",
+        "@esbuild/openbsd-x64",
+        "@esbuild/openharmony-arm64",
+        "@esbuild/sunos-x64",
+        "@esbuild/win32-arm64",
+        "@esbuild/win32-ia32",
+        "@esbuild/win32-x64"
+      ],
+      "scripts": true,
+      "bin": true
+    },
+    "[email protected]": {
+      "integrity": "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-CQPcneEHw/czj32uwQC52nYnax8H4SXt25FCM+LIwGZ49cMIxpOj3bP8wmzcI+Z0HIy5KkClaPhRLfCySzwHPA==",
+      "dependencies": [
+        "@jridgewell/sourcemap-codec"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
+    },
+    "[email protected][email protected]": {
+      "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+      "dependencies": [
+        "picomatch"
+      ],
+      "optionalPeers": [
+        "picomatch"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+      "os": ["darwin"],
+      "scripts": true
+    },
+    "[email protected]": {
+      "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+      "dependencies": [
+        "function-bind"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-vZIcbkvjOR5hHRWERbGkr8fGfF0GGM1ooYkuH448iO3b2AdVEr3AXZSw4Z3Kn+1L5z0CVoVeyV29VGYmFh05kQ=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-qyax9fgaKOEC4qK8WZn7Q4IcoZC9RC1O1fFxRcRTq/oMMkWT/uXpqpXa12kzWR409zAt1drYN9N9BO26UmBCmw==",
+      "dependencies": [
+        "hasown"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==",
+      "dependencies": [
+        "@types/estree"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==",
+      "dependencies": [
+        "@types/estree"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+      "dependencies": [
+        "@jridgewell/sourcemap-codec"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",
+      "bin": true
+    },
+    "[email protected]": {
+      "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==",
+      "dependencies": [
+        "nanoid",
+        "picocolors",
+        "source-map-js"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-1ZjYvR9sbkiwC5+9QHetqW5HmA2pHRMaoupD01t2HlYnV/vydC2zPwLixhsMieSWVZt0JJRg5LVIk0Ow1D/TrA==",
+      "dependencies": [
+        "es-errors",
+        "is-core-module",
+        "path-parse",
+        "supports-preserve-symlinks-flag"
+      ],
+      "bin": true
+    },
+    "[email protected]": {
+      "integrity": "sha512-xzt45rKOxzEuqjTdkGTIEaePcq9xRELlFI1uoazlKap8T6bENJkONSCfhK51P6XFTixa4rosPcDHihSdduXndQ==",
+      "dependencies": [
+        "@types/estree"
+      ],
+      "optionalDependencies": [
+        "@rollup/rollup-android-arm-eabi",
+        "@rollup/rollup-android-arm64",
+        "@rollup/rollup-android-x64",
+        "@rollup/rollup-darwin-arm64",
+        "@rollup/rollup-darwin-x64",
+        "@rollup/rollup-freebsd-arm64",
+        "@rollup/rollup-freebsd-x64",
+        "@rollup/rollup-linux-arm-gnueabihf",
+        "@rollup/rollup-linux-arm-musleabihf",
+        "@rollup/rollup-linux-arm64-gnu",
+        "@rollup/rollup-linux-arm64-musl",
+        "@rollup/rollup-linux-loong64-gnu",
+        "@rollup/rollup-linux-loong64-musl",
+        "@rollup/rollup-linux-ppc64-gnu",
+        "@rollup/rollup-linux-ppc64-musl",
+        "@rollup/rollup-linux-riscv64-gnu",
+        "@rollup/rollup-linux-riscv64-musl",
+        "@rollup/rollup-linux-s390x-gnu",
+        "@rollup/rollup-linux-x64-gnu",
+        "@rollup/rollup-linux-x64-musl",
+        "@rollup/rollup-openbsd-x64",
+        "@rollup/rollup-openharmony-arm64",
+        "@rollup/rollup-win32-arm64-msvc",
+        "@rollup/rollup-win32-ia32-msvc",
+        "@rollup/rollup-win32-x64-gnu",
+        "@rollup/rollup-win32-x64-msvc",
+        "fsevents"
+      ],
+      "bin": true
+    },
+    "[email protected]": {
+      "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
+      "dependencies": [
+        "mri"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-bDO7NdAkLprNt3BNl3LAh0oVnOS5+WspzxOxiboo7vRIyTqj2pvFmNWYEFynSGQgpJ+7yG/9nc/aSG20UDBUpg=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==",
+      "dependencies": [
+        "@polka/url",
+        "mrmime",
+        "totalist"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="
+    },
+    "[email protected][email protected][email protected]": {
+      "integrity": "sha512-laZ49GFHZ3b0z2PWinJWL0syehc/PTR8aHaUaTiBkWJ+4Y38nhxjmXsSz7CbGa3VdKopViVbrBH3bGNqIAI0bQ==",
+      "dependencies": [
+        "@jridgewell/trace-mapping",
+        "@sveltejs/load-config",
+        "chokidar",
+        "fdir",
+        "picocolors",
+        "sade",
+        "svelte",
+        "typescript"
+      ],
+      "bin": true
+    },
+    "[email protected]": {
+      "integrity": "sha512-5mAftM3SoDV9X0zdF386F9p2pv8iKOwi/KfBS1XnBAkVCKFzVOLHUoa8iGWAt4buoicLmyWVRpuuD5wplXOQsg==",
+      "dependencies": [
+        "@jridgewell/remapping",
+        "@jridgewell/sourcemap-codec",
+        "@sveltejs/acorn-typescript",
+        "@types/estree",
+        "acorn",
+        "aria-query",
+        "axobject-query",
+        "clsx",
+        "devalue",
+        "esm-env",
+        "esrap",
+        "[email protected]",
+        "locate-character",
+        "magic-string",
+        "zimmerframe"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",
+      "dependencies": [
+        "fdir",
+        "picomatch"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+      "bin": true
+    },
+    "[email protected]": {
+      "integrity": "sha512-RtsraAwEG68idOA6iUOoIpOlcSKROnf815aIq9qHTSrDNpLoBrBa12suyfcEd8qn0xwOVQI1Yhm1GbmTjF600A==",
+      "dependencies": [
+        "esbuild",
+        "fdir",
+        "picomatch",
+        "postcss",
+        "rollup",
+        "tinyglobby"
+      ],
+      "optionalDependencies": [
+        "fsevents"
+      ],
+      "bin": true
+    },
+    "[email protected][email protected]": {
+      "integrity": "sha512-ub4okH7Z5KLjb6hDyjqrGXqWtWvoYdU3IGm/NorpgHncKoLTCfRIbvlhBm7r0YstIaQRYlp4yEbFqDcKSzXSSg==",
+      "dependencies": [
+        "vite"
+      ],
+      "optionalPeers": [
+        "vite"
+      ]
+    },
+    "[email protected]": {
+      "integrity": "sha512-msJxIvYDYcoNL+PJsu+7qmpDWsYmAxTY+2TNYXXF0hzBzBk0BMecOqDOG/EckUoKCuKwObfbugIl8QpqHDXeFA=="
+    },
+    "[email protected]": {
+      "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="
+    }
+  },
+  "workspace": {
+    "dependencies": [
+      "jsr:@std/expect@1",
+      "jsr:@std/testing@1",
+      "npm:@sveltejs/adapter-node@^5.2.0",
+      "npm:@sveltejs/kit@^2.20.0",
+      "npm:@sveltejs/vite-plugin-svelte@5",
+      "npm:bootstrap-icons@^1.11.3",
+      "npm:hono@^4.6.0",
+      "npm:svelte-check@^4.1.0",
+      "npm:svelte@^5.25.0",
+      "npm:typescript@^5.6.0",
+      "npm:vite@^6.2.0",
+      "npm:zod@^3.23.8"
+    ]
+  }
+}
diff --git a/deploy/api/log/run b/deploy/api/log/run
new file mode 100755
index 0000000..226fc1d
--- /dev/null
+++ b/deploy/api/log/run
@@ -0,0 +1,8 @@
+#!/bin/sh
+# deploy/log/run
+# MIT — (c) Doughmination System®
+# runit log service
+LOG_DIR=/var/log/pkviewer/api
+
+mkdir -p "$LOG_DIR"
+exec svlogd -tt "$LOG_DIR"
diff --git a/deploy/api/run b/deploy/api/run
new file mode 100755
index 0000000..ed88672
--- /dev/null
+++ b/deploy/api/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+# deploy/api/run
+# MIT — (c) Doughmination System®
+exec 2>&1
+
+. /srv/clove/pkviewer/deploy/env.sh
+
+# The API reads API_HOST and API_PORT
+export API_HOST="$HOST"
+
+exec chpst -u clove /usr/bin/deno task start-api
diff --git a/deploy/env.sh b/deploy/env.sh
new file mode 100644
index 0000000..19802dc
--- /dev/null
+++ b/deploy/env.sh
@@ -0,0 +1,14 @@
+# deploy/env.sh
+# MIT — (c) Doughmination System®
+# Shared by deploy/api/run and deploy/web/run. Secrets live in .env, never here.
+
+cd /srv/clove/pkviewer || exit 1
+
+export HOST=127.0.0.1
+export WEB_PORT=3000
+export API_PORT=3001
+
+export NODE_ENV=production
+
+# Run as clove rather than root. chpst doesn't change HOME, so set it for Deno's cache
+export HOME=/home/clove
diff --git a/deploy/web/log/run b/deploy/web/log/run
new file mode 100755
index 0000000..0a1cf04
--- /dev/null
+++ b/deploy/web/log/run
@@ -0,0 +1,8 @@
+#!/bin/sh
+# deploy/log/run
+# MIT — (c) Doughmination System®
+# runit log service
+LOG_DIR=/var/log/pkviewer/web
+
+mkdir -p "$LOG_DIR"
+exec svlogd -tt "$LOG_DIR"
diff --git a/deploy/web/run b/deploy/web/run
new file mode 100755
index 0000000..f7b1a2b
--- /dev/null
+++ b/deploy/web/run
@@ -0,0 +1,14 @@
+#!/bin/sh
+# deploy/web/run
+# MIT — (c) Doughmination System®
+exec 2>&1
+
+. /srv/clove/pkviewer/deploy/env.sh
+
+# SvelteKit's node adapter reads HOST and PORT
+export PORT="$WEB_PORT"
+
+# Where the web tier reaches the API
+export INTERNAL_API_ORIGIN="http://$HOST:$API_PORT"
+
+exec chpst -u clove /usr/bin/deno task start-web
diff --git a/docker-compose.yml b/docker-compose.yml
deleted file mode 100644
index 627ca8b..0000000
--- a/docker-compose.yml
+++ /dev/null
@@ -1,100 +0,0 @@
-# pkviewer, two containers.
-#
-# The split mirrors the architecture rather than fighting it: the API is the
-# only process that opens SQLite, so there is exactly one writer, and the web
-# tier renders and proxies.
-#
-#   docker compose pull && docker compose up -d
-#
-# This file only ever RUNS images; it never builds them. Images are built and
-# published by .github/workflows/images.yml, so what runs is always something
-# CI produced from a known commit, and the server needs no toolchain, no source
-# checkout and no spare CPU. To build one by hand:
-#
-#   docker build -f docker/api.Dockerfile .
-#
-# Always `latest`: a `docker compose pull` is the whole upgrade, and there is no
-# version to keep in step anywhere. Configuration comes from the .env file
-# beside this one (or point elsewhere with `--env-file`); nothing secret is
-# baked into an image.
-
-services:
-  api:
-    image: doughmination/pkviewer-api:latest
-    # Always: `latest` is a moving tag, so a restart must go and fetch it
-    # rather than reuse whatever is in the local image cache.
-    pull_policy: always
-    restart: unless-stopped
-    # NOTE: no `ports:`. The API is internal — the browser never calls it, the
-    # web tier proxies everything. Publishing 3001 would put the management API
-    # straight onto the host's network, which the architecture forbids. It is
-    # reachable only over the compose network, by name.
-    expose:
-      - "3001"
-    environment:
-      NODE_ENV: production
-      DATABASE_PATH: /data/pkviewer.db
-      API_HOST: 0.0.0.0
-      API_PORT: "3001"
-      PUBLIC_ORIGIN: ${PUBLIC_ORIGIN:?set PUBLIC_ORIGIN in .env}
-      PUBLIC_ASSET_ORIGIN: ${PUBLIC_ASSET_ORIGIN:-}
-      INTERNAL_API_ORIGIN: http://api:3001
-      PK_USER_AGENT_CONTACT: ${PK_USER_AGENT_CONTACT:?set PK_USER_AGENT_CONTACT in .env}
-      PK_API_BASE: ${PK_API_BASE:-https://api.pluralkit.me/v2}
-      SESSION_SECRET: ${SESSION_SECRET:?set SESSION_SECRET in .env}
-      DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID:-}
-      DISCORD_CLIENT_SECRET: ${DISCORD_CLIENT_SECRET:-}
-      DISCORD_REDIRECT_URIS: ${DISCORD_REDIRECT_URIS:-}
-      SIGNUP_ENABLED: ${SIGNUP_ENABLED:-true}
-    volumes:
-      # The one thing that must survive the container. Everything pkviewer owns
-      # lives in this file: accounts, claims, addresses, themes, links.
-      - pkviewer-data:/data
-    healthcheck:
-      # Uses Bun rather than wget or curl: this is a Bun image, so the runtime
-      # is certain to be there while a fetch tool is not.
-      #
-      # The script MUST stay quoted. Unquoted, the ` : ` in `r.ok ? 0 : 1` makes
-      # YAML read the whole line as a mapping, and compose rejects the file with
-      # "healthcheck.test.3 must be a string".
-      test:
-        - CMD
-        - bun
-        - -e
-        - 'fetch("http://127.0.0.1:3001/health").then((r) => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))'
-      interval: 30s
-      timeout: 5s
-      retries: 3
-      start_period: 10s
-
-  web:
-    image: doughmination/pkviewer-web:latest
-    # Always: `latest` is a moving tag, so a restart must go and fetch it
-    # rather than reuse whatever is in the local image cache.
-    pull_policy: always
-    restart: unless-stopped
-    # The way in. Published on every interface, not just loopback, because a
-    # loopback bind is unreachable from another container or another machine --
-    # and the reference deployment has no public IP: Cloudflare Tunnel dials
-    # out and forwards here, so nothing is inbound-reachable at the edge.
-    #
-    # Plain http on that hop is fine. TLS terminates at Cloudflare, and `Secure`
-    # is set unconditionally rather than inferred from the request, so no
-    # forwarded-proto trust needs configuring.
-    #
-    # On a host that DOES have a public IP, note that Docker publishes ahead of
-    # ufw's chain, so `ufw deny 3000` would not close this.
-    ports:
-      - "3000:3000"
-    environment:
-      NODE_ENV: production
-      PORT: "3000"
-      HOSTNAME: 0.0.0.0
-      PUBLIC_ORIGIN: ${PUBLIC_ORIGIN:?set PUBLIC_ORIGIN in .env}
-      INTERNAL_API_ORIGIN: http://api:3001
-    depends_on:
-      api:
-        condition: service_healthy
-
-volumes:
-  pkviewer-data:
diff --git a/docker/api.Dockerfile b/docker/api.Dockerfile
deleted file mode 100644
index ca21c53..0000000
--- a/docker/api.Dockerfile
+++ /dev/null
@@ -1,60 +0,0 @@
-# The API tier: Hono on Bun, and the only process that opens SQLite.
-#
-# Built from the repository root, because it depends on the shared workspace
-# package: `docker build -f docker/api.Dockerfile .`
-
-# Bun must match the version that wrote bun.lock.
-#
-# This was pinned to 1.2 while the lockfile came from 1.4, and a frozen install
-# cannot satisfy a lockfile from a newer Bun — the build failed on the server
-# while working locally. Keep this in step with the Bun you develop and test
-# with; a test asserts they match.
-FROM oven/bun:1.4-alpine AS deps
-WORKDIR /app
-# Manifests first, so a source-only change does not reinstall dependencies.
-COPY package.json bun.lock ./
-COPY apps/api/package.json apps/api/
-COPY apps/web/package.json apps/web/
-COPY packages/shared/package.json packages/shared/
-# Frozen: a production image installs exactly what was tested, rather than
-# resolving fresh versions at build time. Drop `--frozen-lockfile` only if the
-# lockfile is genuinely out of date, and then commit the updated one.
-RUN bun install --frozen-lockfile
-
-FROM oven/bun:1.4-alpine AS runtime
-WORKDIR /app
-
-# A non-root user owning the data directory the volume mounts onto.
-RUN addgroup -S pkviewer && adduser -S -G pkviewer pkviewer \
-    && mkdir -p /data && chown pkviewer:pkviewer /data
-
-# The WHOLE installed tree, not individual node_modules paths.
-#
-# Bun decides where to place workspace dependencies, and that decision depends
-# on what else is present: with only manifests copied it hoists everything to
-# the root, so `apps/api/node_modules` may not exist at all. Copying the tree
-# works whatever it chose.
-COPY --from=deps /app ./
-
-# Source overlays the install. `.dockerignore` excludes node_modules, so these
-# add files without disturbing what was installed above.
-COPY package.json bun.lock ./
-COPY packages/shared ./packages/shared
-COPY apps/api ./apps/api
-
-USER pkviewer
-
-ENV NODE_ENV=production \
-    DATABASE_PATH=/data/pkviewer.db \
-    API_PORT=3001 \
-    API_HOST=0.0.0.0
-
-# Exposed to the compose network only, never published to the host. That
-# boundary is what replaces the loopback bind: the API stays unreachable from
-# outside, which the architecture requires.
-EXPOSE 3001
-
-WORKDIR /app/apps/api
-
-# Migrations run at startup, inside the one process that owns the database.
-CMD ["bun", "run", "src/index.ts"]
diff --git a/docker/web.Dockerfile b/docker/web.Dockerfile
deleted file mode 100644
index a354113..0000000
--- a/docker/web.Dockerfile
+++ /dev/null
@@ -1,69 +0,0 @@
-# The web tier: Next.js. Renders, and proxies to the API.
-#
-# Built from the repository root: `docker build -f docker/web.Dockerfile .`
-#
-# Built with Bun — the project's own toolchain, and already how `bun run build`
-# works locally — then run on Node, which is what Next's standalone server
-# expects. That avoids installing Bun through npm in two separate stages, which
-# cost about 70 seconds of every build.
-
-# Bun must match the version that wrote bun.lock.
-#
-# This was pinned to 1.2 while the lockfile came from 1.4, and a frozen install
-# cannot satisfy a lockfile from a newer Bun — the build failed on the server
-# while working locally. Keep this in step with the Bun you develop and test
-# with; a test asserts they match.
-FROM oven/bun:1.4-alpine AS deps
-WORKDIR /app
-COPY package.json bun.lock ./
-COPY apps/api/package.json apps/api/
-COPY apps/web/package.json apps/web/
-COPY packages/shared/package.json packages/shared/
-# Frozen: a production image installs exactly what was tested, rather than
-# resolving fresh versions at build time. Drop `--frozen-lockfile` only if the
-# lockfile is genuinely out of date, and then commit the updated one.
-RUN bun install --frozen-lockfile
-
-FROM oven/bun:1.4-alpine AS build
-WORKDIR /app
-# The whole installed tree — see the note in api.Dockerfile about why individual
-# node_modules paths are not safe to name.
-COPY --from=deps /app ./
-COPY . .
-
-# Origins are NOT baked in. Every page that embeds one is force-dynamic and
-# reads configuration at request time, so the build runs with placeholders and
-# the running container is given the real values. That is what keeps moving
-# domains a config change rather than a rebuild.
-ENV NODE_ENV=production \
-    NEXT_TELEMETRY_DISABLED=1 \
-    NEXT_DIST_DIR=.next \
-    PUBLIC_ORIGIN=http://build.invalid \
-    INTERNAL_API_ORIGIN=http://build.invalid
-
-WORKDIR /app/apps/web
-RUN bun run next build
-
-FROM node:22-alpine AS runtime
-WORKDIR /app
-RUN addgroup -S pkviewer && adduser -S -G pkviewer pkviewer
-
-# Standalone output carries only the modules the server actually needs, so the
-# runtime image contains neither the monorepo nor its node_modules. Its layout
-# is rooted at the workspace, so the entrypoint is apps/web/server.js.
-COPY --from=build --chown=pkviewer:pkviewer /app/apps/web/.next/standalone ./
-COPY --from=build --chown=pkviewer:pkviewer /app/apps/web/.next/static ./apps/web/.next/static
-
-# There is deliberately no `public` directory in this project, and COPYing a
-# path that does not exist fails the build.
-
-USER pkviewer
-
-ENV NODE_ENV=production \
-    NEXT_TELEMETRY_DISABLED=1 \
-    PORT=3000 \
-    HOSTNAME=0.0.0.0
-
-EXPOSE 3000
-
-CMD ["node", "apps/web/server.js"]
diff --git a/package.json b/package.json
deleted file mode 100644
index 77547d7..0000000
--- a/package.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
-  "name": "pkviewer",
-  "private": true,
-  "type": "module",
-  "workspaces": [
-    "apps/*",
-    "packages/*"
-  ],
-  "scripts": {
-    "dev:api": "bun run --cwd apps/api dev",
-    "migrate": "bun run --cwd apps/api migrate",
-    "test": "bun test",
-    "typecheck": "bun run --cwd apps/api typecheck && bun run --cwd packages/shared typecheck && bun run --cwd apps/web typecheck",
-    "check:domain": "bash scripts/check-no-hardcoded-origin.sh",
-    "check": "bun run check:domain && bun run typecheck && bun test",
-    "dev": "bun run scripts/dev.ts",
-    "dev:web": "bun run --cwd apps/web dev",
-    "build": "bun run --cwd apps/web build",
-    "admin:list": "bun run apps/api/scripts/admin.ts list",
-    "admin:grant": "bun run apps/api/scripts/admin.ts grant",
-    "admin:revoke": "bun run apps/api/scripts/admin.ts revoke"
-  },
-  "devDependencies": {
-    "@types/bun": "latest",
-    "typescript": "^5.6.0"
-  }
-}
diff --git a/packages/shared/package.json b/packages/shared/package.json
deleted file mode 100644
index 32b041c..0000000
--- a/packages/shared/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-  "name": "@pkviewer/shared",
-  "version": "0.1.0",
-  "private": true,
-  "type": "module",
-  "main": "src/index.ts",
-  "exports": { ".": "./src/index.ts" },
-  "scripts": { "typecheck": "tsc -p tsconfig.json" }
-}
diff --git a/packages/shared/tsconfig.json b/packages/shared/tsconfig.json
deleted file mode 100644
index 4e0e7f6..0000000
--- a/packages/shared/tsconfig.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-  "extends": "../../tsconfig.base.json",
-  "compilerOptions": { "rootDir": "." },
-  "include": ["src/**/*.ts"]
-}
diff --git a/scripts/dev.ts b/scripts/dev.ts
deleted file mode 100755
index b11ad75..0000000
--- a/scripts/dev.ts
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/usr/bin/env bun
-/**
- * Runs the API and the web tier together with prefixed, interleaved output.
- *
- * Two processes rather than one is the architecture, not an inconvenience: the
- * API owns SQLite and is its only writer, and the web tier only renders (A1).
- *
- * Both hostnames are served by the single Next process. Browsers resolve
- * *.localhost to 127.0.0.1 without any hosts-file entry, so the Host header
- * differs exactly as it does in production and the origin split is genuinely
- * exercised in development rather than bypassed.
- */
-
-import { spawn, type Subprocess } from "bun";
-
-const RESET = "\x1b[0m";
-
-// The port the web tier listens on. Next reads PORT itself, so it is passed
-// through the environment rather than as a `-p` flag in the package script.
-// That is deliberate: bun's script shell does not implement ${VAR} expansion
-// on Windows, so `next dev -p ${WEB_PORT:-3000}` reached Next as that literal
-// string and the web tier refused to start. Keeping the default here leaves
-// the package scripts free of shell syntax entirely.
-const WEB_PORT = process.env["WEB_PORT"] ?? "3000";
-
-const TIERS = [
-  {
-    name: "api",
-    colour: "",
-    cwd: "apps/api",
-    cmd: ["bun", "run", "--hot", "src/index.ts"],
-    env: {},
-  },
-  {
-    name: "web",
-    colour: "",
-    cwd: "apps/web",
-    cmd: ["bun", "run", "dev"],
-    env: { PORT: WEB_PORT },
-  },
-] as const;
-
-const children: Subprocess[] = [];
-let shuttingDown = false;
-
-function prefix(name: string, colour: string, stream: ReadableStream<Uint8Array>) {
-  const decoder = new TextDecoder();
-  const reader = stream.getReader();
-  let buffer = "";
-  void (async () => {
-    for (;;) {
-      const { done, value } = await reader.read();
-      if (done) break;
-      buffer += decoder.decode(value, { stream: true });
-      const lines = buffer.split("\n");
-      buffer = lines.pop() ?? "";
-      for (const line of lines) {
-        console.log(`${colour}[${name}]${RESET} ${line}`);
-      }
-    }
-    if (buffer.length > 0) console.log(`${colour}[${name}]${RESET} ${buffer}`);
-  })();
-}
-
-function shutdown(code = 0) {
-  if (shuttingDown) return;
-  shuttingDown = true;
-  for (const child of children) {
-    try {
-      child.kill();
-    } catch {
-      // Already gone.
-    }
-  }
-  process.exit(code);
-}
-
-process.on("SIGINT", () => shutdown(0));
-process.on("SIGTERM", () => shutdown(0));
-
-for (const tier of TIERS) {
-  const child = spawn({
-    cmd: [...tier.cmd],
-    cwd: tier.cwd,
-    stdout: "pipe",
-    stderr: "pipe",
-    env: { ...process.env, FORCE_COLOR: "1", ...tier.env },
-    onExit(_proc, exitCode) {
-      if (shuttingDown) return;
-      console.log(`${tier.colour}[${tier.name}]${RESET} exited (${exitCode ?? "signal"})`);
-      // One tier dying alone leaves a confusing half-running stack.
-      shutdown(exitCode ?? 1);
-    },
-  });
-  children.push(child);
-  prefix(tier.name, tier.colour, child.stdout as ReadableStream<Uint8Array>);
-  prefix(tier.name, tier.colour, child.stderr as ReadableStream<Uint8Array>);
-}
-
-const publicOrigin = process.env["PUBLIC_ORIGIN"] ?? "http://system.localhost:3000";
-
-console.log("");
-console.log("  pkviewer dev");
-console.log(`  site     ${publicOrigin}   / , /login , /manage , /s/...`);
-console.log(`  api      ${process.env["INTERNAL_API_ORIGIN"] ?? "http://127.0.0.1:3001"}/health`);
-console.log("");
-console.log("  system.localhost resolves to 127.0.0.1 in Chrome and Firefox with no setup.");
-
-console.log("");
diff --git a/tsconfig.base.json b/tsconfig.base.json
deleted file mode 100644
index b91cb9e..0000000
--- a/tsconfig.base.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
-  "compilerOptions": {
-    "target": "ES2022",
-    "lib": ["ES2023"],
-    "module": "ESNext",
-    "moduleResolution": "bundler",
-    "types": ["bun"],
-    "strict": true,
-    "noUncheckedIndexedAccess": true,
-    "noImplicitOverride": true,
-    "noFallthroughCasesInSwitch": true,
-    "exactOptionalPropertyTypes": true,
-    "verbatimModuleSyntax": true,
-    "skipLibCheck": true,
-    "resolveJsonModule": true,
-    "isolatedModules": true,
-    "noEmit": true,
-    "allowImportingTsExtensions": true
-  }
-}
diff --git a/web/package.json b/web/package.json
new file mode 100644
index 0000000..e986b24
--- /dev/null
+++ b/web/package.json
@@ -0,0 +1,4 @@
+{
+  "private": true,
+  "type": "module"
+}
diff --git a/apps/web/src/app/globals.css b/web/src/app.css
similarity index 100%
rename from apps/web/src/app/globals.css
rename to web/src/app.css
diff --git a/web/src/app.d.ts b/web/src/app.d.ts
new file mode 100644
index 0000000..3f078e8
--- /dev/null
+++ b/web/src/app.d.ts
@@ -0,0 +1,6 @@
+/* web/src/app.d.ts */
+declare global {
+  namespace App {}
+}
+
+export {};
diff --git a/web/src/app.html b/web/src/app.html
new file mode 100644
index 0000000..d6ecf26
--- /dev/null
+++ b/web/src/app.html
@@ -0,0 +1,12 @@
+<!-- web/src/app.html -->
+<!doctype html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1" />
+    %sveltekit.head%
+  </head>
+  <body data-sveltekit-preload-data="hover">
+    <div style="display: contents">%sveltekit.body%</div>
+  </body>
+</html>
diff --git a/web/src/hooks.server.ts b/web/src/hooks.server.ts
new file mode 100644
index 0000000..26bcecb
--- /dev/null
+++ b/web/src/hooks.server.ts
@@ -0,0 +1,86 @@
+/* web/src/hooks.server.ts */
+import type { Handle } from "@sveltejs/kit";
+import { dev } from "$app/environment";
+
+/**
+ * Security headers.
+ *
+ * They live here rather than in the API because the browser never talks to the
+ * API: every header a visitor receives comes from this tier.
+ *
+ * Two deliberate weakenings:
+ *  1. `script-src` allows 'unsafe-inline' for SvelteKit's inline hydration
+ *     script. Survivable because pkviewer accepts no user HTML or JavaScript.
+ *  2. `img-src` allows any https host: avatars live wherever each system put them.
+ *
+ * `frame-ancestors 'none'` matters most: /manage must never be framable.
+ */
+const isProduction = !dev;
+
+// Development needs eval and the hot-reload WebSocket; production keeps the strict policy
+const scriptSrc = isProduction
+  ? "script-src 'self' 'unsafe-inline'"
+  : "script-src 'self' 'unsafe-inline' 'unsafe-eval'";
+
+const connectSrc = isProduction
+  ? "connect-src 'self'"
+  : "connect-src 'self' ws: wss:";
+
+const CSP = [
+  "default-src 'self'",
+  "base-uri 'self'",
+  "form-action 'self'",
+  "frame-ancestors 'none'",
+  "object-src 'none'",
+  scriptSrc,
+  // Theme tokens are a scoped <style>; custom CSS may @import from fonts.googleapis.com
+  "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
+  // Must agree with CSS_URL_HOSTS, or a font the compiler allows fails silently
+  "font-src 'self' https://fonts.gstatic.com https://m.doughmination.gay",
+  "img-src 'self' https: data:",
+  connectSrc,
+  "manifest-src 'self'",
+].join("; ");
+
+const BASE_HEADERS = [
+  { key: "Content-Security-Policy", value: CSP },
+  { key: "X-Content-Type-Options", value: "nosniff" },
+  { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
+  // Redundant with frame-ancestors for modern browsers, kept for older ones
+  { key: "X-Frame-Options", value: "DENY" },
+  {
+    key: "Permissions-Policy",
+    value: "camera=(), microphone=(), geolocation=(), payment=(), usb=(), interest-cohort=()",
+  },
+  { key: "Cross-Origin-Opener-Policy", value: "same-origin" },
+];
+
+const headers = [...BASE_HEADERS];
+
+if (isProduction) {
+  headers.push({
+    key: "Strict-Transport-Security",
+    value: "max-age=31536000; includeSubDomains",
+  });
+  // Production only: on an http dev origin this would upgrade local subresources
+  headers[0] = {
+    key: "Content-Security-Policy",
+    value: `${CSP}; upgrade-insecure-requests`,
+  };
+}
+
+// Public pages are indexable; the control planes never are, HTML or not
+const NO_INDEX = /^\/(manage|admin)(\/|$)/;
+
+export const handle: Handle = async ({ event, resolve }) => {
+  const response = await resolve(event);
+
+  for (const { key, value } of headers) {
+    response.headers.set(key, value);
+  }
+  if (NO_INDEX.test(event.url.pathname)) {
+    response.headers.set("X-Robots-Tag", "noindex, nofollow");
+  }
+
+  return response;
+};
diff --git a/web/src/lib/admin.remote.ts b/web/src/lib/admin.remote.ts
new file mode 100644
index 0000000..973f4e3
--- /dev/null
+++ b/web/src/lib/admin.remote.ts
@@ -0,0 +1,122 @@
+/* web/src/lib/admin.remote.ts */
+import { command } from "$app/server";
+import { manageApi, seg } from "$lib/server/api.ts";
+import type { ActionResult, BadgeDraft } from "$lib/types.ts";
+
+/**
+ * Remote commands for the administration UI.
+ *
+ * Every one forwards to the API, which re-checks the platform admin grant.
+ * Nothing here decides whether the caller is an admin.
+ */
+
+function messageFor(error: string, status: number): string {
+  switch (error) {
+    case "unauthenticated":
+      return "Your session has expired. Sign in again.";
+    case "not_found":
+      return "Not found.";
+    case "unknown_subject":
+      return "No system on pkviewer matches that address or ID. It has to be claimed first.";
+    case "unknown_badge":
+      return "That badge no longer exists.";
+    case "badge_retired":
+      return "That badge is retired and cannot be granted.";
+    case "not_empty":
+      return "Move or delete the entries in that section first.";
+    case "invalid":
+      return "Some values were not accepted. Check them and try again.";
+    case "api_unreachable":
+      return "Could not reach pkviewer. Check your connection and try again.";
+    default:
+      return status >= 500 ? "Something went wrong. Please try again." : "That did not work.";
+  }
+}
+
+function done(response: { ok: true } | { ok: false; error: string; status: number }): ActionResult {
+  return response.ok
+    ? { ok: true }
+    : { ok: false, error: messageFor(response.error, response.status) };
+}
+
+// ------------------------------------------------------------------ badges
+
+export const grantBadge = command(
+  "unchecked",
+  async (input: { subject: string; badgeId: string; note: string }) =>
+    done(
+      await manageApi.post("/admin/assignments", {
+        subject: input.subject,
+        badgeId: input.badgeId,
+        note: input.note || null,
+      }),
+    ),
+);
+
+export const revokeBadge = command("unchecked", async (assignmentId: number) =>
+  done(await manageApi.post(`/admin/assignments/${seg(assignmentId)}/revoke`, {})),
+);
+
+export const saveBadge = command("unchecked", async (input: BadgeDraft) =>
+  done(await manageApi.put(`/admin/badges/${seg(input.id)}`, input)),
+);
+
+export const retireBadge = command(
+  "unchecked",
+  async (input: { badgeId: string; retired: boolean }) =>
+    done(
+      await manageApi.post(
+        `/admin/badges/${seg(input.badgeId)}/${input.retired ? "retire" : "restore"}`,
+        {},
+      ),
+    ),
+);
+
+// ----------------------------------------------------------------- credits
+
+export const saveCredit = command(
+  "unchecked",
+  async (input: {
+    id?: string;
+    sectionId: string;
+    name: string;
+    detail: string;
+    url: string;
+    sortOrder: number;
+    visible: boolean;
+  }) => {
+    const body = {
+      sectionId: input.sectionId,
+      name: input.name,
+      detail: input.detail || null,
+      url: input.url || null,
+      sortOrder: input.sortOrder,
+      visible: input.visible,
+    };
+    return done(
+      input.id
+        ? await manageApi.put(`/admin/credits/${seg(input.id)}`, body)
+        : await manageApi.post("/admin/credits", body),
+    );
+  },
+);
+
+export const deleteCredit = command("unchecked", async (id: string) =>
+  done(await manageApi.del(`/admin/credits/${seg(id)}`)),
+);
+
+export const saveSection = command(
+  "unchecked",
+  async (input: { id: string; label: string; description: string; sortOrder: number }) =>
+    done(
+      await manageApi.put(`/admin/credits/sections/${seg(input.id)}`, {
+        label: input.label,
+        description: input.description || null,
+        sortOrder: input.sortOrder,
+      }),
+    ),
+);
+
+export const deleteSection = command("unchecked", async (id: string) =>
+  done(await manageApi.del(`/admin/credits/sections/${seg(id)}`)),
+);
diff --git a/web/src/lib/badges.ts b/web/src/lib/badges.ts
new file mode 100644
index 0000000..720ad42
--- /dev/null
+++ b/web/src/lib/badges.ts
@@ -0,0 +1,23 @@
+/* web/src/lib/badges.ts */
+import type { BadgeIconId } from "@pkviewer/shared";
+import type { IconName } from "$lib/icons.ts";
+
+/**
+ * Badge icons come from a fixed vocabulary, never a stored string. An unknown
+ * icon falls back to the neutral patch rather than nothing, so a catalogue
+ * change cannot silently blank a badge.
+ */
+export const BADGE_ICONS: Record<BadgeIconId, IconName> = {
+  star: "star-fill",
+  heart: "heart-fill",
+  people: "people-fill",
+  bug: "bug",
+  shield: "shield-fill",
+  code: "code",
+  patch: "patch-check-fill",
+  gem: "gem",
+};
+
+export function badgeIcon(icon: string): IconName {
+  return BADGE_ICONS[icon as BadgeIconId] ?? "patch-check-fill";
+}
diff --git a/web/src/lib/components/BadgeRow.svelte b/web/src/lib/components/BadgeRow.svelte
new file mode 100644
index 0000000..c2ad718
--- /dev/null
+++ b/web/src/lib/components/BadgeRow.svelte
@@ -0,0 +1,28 @@
+<!-- web/src/lib/components/BadgeRow.svelte -->
+<script lang="ts">
+  import type { PublicBadge } from "@pkviewer/shared";
+  import { badgeIcon } from "$lib/badges.ts";
+  import Icon from "./Icon.svelte";
+
+  // Badges are the one part of a page its system does not control. Styling is
+  // --pkvb-*, which no theme token can name, and each links to /badges.
+  let { badges }: { badges: PublicBadge[] } = $props();
+</script>
+
+{#if badges.length > 0}
+  <ul class="pkvb-row" aria-label="pkviewer recognition">
+    {#each badges as badge (badge.id)}
+      <li>
+        <a
+          class="pkvb"
+          data-tone={badge.tone}
+          href="/badges"
+          title={badge.description}
+        >
+          <Icon name={badgeIcon(badge.icon)} />
+          <span>{badge.label}</span>
+        </a>
+      </li>
+    {/each}
+  </ul>
+{/if}
diff --git a/web/src/lib/components/BadgeSample.svelte b/web/src/lib/components/BadgeSample.svelte
new file mode 100644
index 0000000..6e27aaa
--- /dev/null
+++ b/web/src/lib/components/BadgeSample.svelte
@@ -0,0 +1,13 @@
+<!-- web/src/lib/components/BadgeSample.svelte -->
+<script lang="ts">
+  import type { PublicBadge } from "@pkviewer/shared";
+  import { badgeIcon } from "$lib/badges.ts";
+  import Icon from "./Icon.svelte";
+
+  let { badge }: { badge: PublicBadge } = $props();
+</script>
+
+<span class="pkvb" data-tone={badge.tone}>
+  <Icon name={badgeIcon(badge.icon)} />
+  <span>{badge.label}</span>
+</span>
diff --git a/web/src/lib/components/CustomStyle.svelte b/web/src/lib/components/CustomStyle.svelte
new file mode 100644
index 0000000..578ec86
--- /dev/null
+++ b/web/src/lib/components/CustomStyle.svelte
@@ -0,0 +1,10 @@
+<!-- web/src/lib/components/CustomStyle.svelte -->
+<script lang="ts">
+  // Already compiled by api/shared/css/sanitize.ts, which cannot emit "</style>".
+  // Deliberately not re-checked here: one boundary, on the write path.
+  let { css }: { css: string } = $props();
+</script>
+
+{#if css}
+  {@html `<style data-pkv-custom="">${css}</style>`}
+{/if}
diff --git a/web/src/lib/components/Icon.svelte b/web/src/lib/components/Icon.svelte
new file mode 100644
index 0000000..c96a665
--- /dev/null
+++ b/web/src/lib/components/Icon.svelte
@@ -0,0 +1,27 @@
+<!-- web/src/lib/components/Icon.svelte -->
+<script lang="ts">
+  import { ICONS, type IconName } from "$lib/icons.ts";
+
+  let {
+    name,
+    class: className = "",
+    size = "1em",
+  }: {
+    name: IconName;
+    class?: string;
+    size?: string | number;
+  } = $props();
+
+  // The files are trusted, static bootstrap-icons artwork; only the inner paths are kept
+  const inner = $derived(ICONS[name].replace(/^[\s\S]*?<svg[^>]*>/, "").replace(/<\/svg>\s*$/, ""));
+</script>
+
+<svg
+  xmlns="http://www.w3.org/2000/svg"
+  viewBox="0 0 16 16"
+  width={size}
+  height={size}
+  fill="currentColor"
+  class="bi bi-{name} {className}"
+  aria-hidden="true"
+>{@html inner}</svg>
diff --git a/web/src/lib/components/Logo.svelte b/web/src/lib/components/Logo.svelte
new file mode 100644
index 0000000..9fbb441
--- /dev/null
+++ b/web/src/lib/components/Logo.svelte
@@ -0,0 +1,13 @@
+<!-- web/src/lib/components/Logo.svelte -->
+<script lang="ts"></script>
+
+<!-- Served from /icon.svg, never inlined: 79KB of path data per page would be absurd.
+     Always decorative, because every placement sits beside the word "pkviewer". -->
+<img
+  class="brand-mark"
+  src="/icon.svg"
+  alt=""
+  aria-hidden="true"
+  width="788"
+  height="659"
+/>
diff --git a/web/src/lib/components/MemberDirectory.svelte b/web/src/lib/components/MemberDirectory.svelte
new file mode 100644
index 0000000..8e4ce9f
--- /dev/null
+++ b/web/src/lib/components/MemberDirectory.svelte
@@ -0,0 +1,58 @@
+<!-- web/src/lib/components/MemberDirectory.svelte -->
+<script lang="ts">
+  import type { MemberView } from "@pkviewer/shared";
+  import Icon from "./Icon.svelte";
+
+  // Only publicly returned members ever reach this, so a private one is absent, not hidden
+  let {
+    members,
+    composition,
+  }: {
+    members: MemberView[];
+    composition: Record<string, string>;
+  } = $props();
+
+  const detailed = $derived(composition["directory.card"] === "detailed");
+  const showPronouns = $derived(composition["show.pronouns"] !== "false");
+
+  // PluralKit's own order is the default: the system arranged it deliberately
+  const ordered = $derived(
+    composition["directory.sort"] === "name"
+      ? [...members].sort((a, b) =>
+          (a.displayName ?? a.name ?? a.hid).localeCompare(b.displayName ?? b.name ?? b.hid),
+        )
+      : members,
+  );
+</script>
+
+{#if members.length === 0}
+  <p class="muted">No members are publicly listed for this system.</p>
+{:else}
+  <ul class="directory">
+    {#each ordered as member (member.hid)}
+      <li>
+        <a
+          class="member-card"
+          href="/s/{member.systemSlug ?? member.systemHid}/{member.slug ?? member.hid}"
+        >
+          {#if member.avatarUrl}
+            <img class="avatar avatar-sm" src={member.avatarUrl} alt="" loading="lazy" />
+          {:else}
+            <Icon name="person-circle" class="avatar avatar-sm" />
+          {/if}
+          <span style="min-width: 0">
+            <span class="name">{member.displayName ?? member.name ?? member.hid}</span>
+            {#if showPronouns && member.pronouns}
+              <span class="muted" style="display: block; font-size: 0.85em">
+                {member.pronouns}
+              </span>
+            {/if}
+            {#if detailed && member.description}
+              <span class="card-blurb muted">{member.description}</span>
+            {/if}
+          </span>
+        </a>
+      </li>
+    {/each}
+  </ul>
+{/if}
diff --git a/web/src/lib/components/Meta.svelte b/web/src/lib/components/Meta.svelte
new file mode 100644
index 0000000..be57cc4
--- /dev/null
+++ b/web/src/lib/components/Meta.svelte
@@ -0,0 +1,44 @@
+<!-- web/src/lib/components/Meta.svelte -->
+<script lang="ts">
+  import { site } from "$lib/config.ts";
+
+  // One place for title, description, canonical and share-card tags
+  let {
+    title,
+    description = "Websites for PluralKit systems.",
+    path = "",
+    image = null,
+    type = "website",
+    noindex = false,
+  }: {
+    title: string;
+    description?: string | null;
+    path?: string;
+    image?: string | null;
+    type?: "website" | "profile";
+    noindex?: boolean;
+  } = $props();
+
+  const url = $derived(`${site.publicOrigin}${path}`);
+  const cardImage = $derived(image ?? `${site.publicOrigin}/opengraph-image.png`);
+</script>
+
+<svelte:head>
+  <title>{title}</title>
+  {#if description}
+    <meta name="description" content={description} />
+    <meta property="og:description" content={description} />
+  {/if}
+  {#if noindex}
+    <meta name="robots" content="noindex, nofollow" />
+  {/if}
+  {#if path}
+    <link rel="canonical" href={url} />
+  {/if}
+  <meta property="og:title" content={title} />
+  <meta property="og:url" content={url} />
+  <meta property="og:type" content={type} />
+  <meta property="og:site_name" content="pkviewer" />
+  <meta property="og:image" content={cardImage} />
+  <meta name="twitter:card" content="summary_large_image" />
+</svelte:head>
diff --git a/web/src/lib/components/SiteDisclosure.svelte b/web/src/lib/components/SiteDisclosure.svelte
new file mode 100644
index 0000000..368123e
--- /dev/null
+++ b/web/src/lib/components/SiteDisclosure.svelte
@@ -0,0 +1,22 @@
+<!-- web/src/lib/components/SiteDisclosure.svelte -->
+<script lang="ts">
+  import { site } from "$lib/config.ts";
+  import Icon from "./Icon.svelte";
+
+  // Permanent, on every public page: it keeps a third-party site from reading as official
+</script>
+
+<footer class="site-footer muted">
+  <p class="prose">
+    <Icon name="info-circle" /> Presented by pkviewer, a third-party
+    website for PluralKit systems. pkviewer is not PluralKit, and system and
+    member information shown here comes from PluralKit's public API.
+  </p>
+  <p class="site-footer-links">
+    <a href="/credits">Credits</a>
+    <a href="/badges">Badges</a>
+    <a href={site.docsUrl} rel="noopener">
+      Docs &amp; support <Icon name="box-arrow-up-right" />
+    </a>
+  </p>
+</footer>
diff --git a/web/src/lib/components/SocialLinks.svelte b/web/src/lib/components/SocialLinks.svelte
new file mode 100644
index 0000000..1d6eb65
--- /dev/null
+++ b/web/src/lib/components/SocialLinks.svelte
@@ -0,0 +1,31 @@
+<!-- web/src/lib/components/SocialLinks.svelte -->
+<script lang="ts">
+  import type { SocialLink } from "@pkviewer/shared";
+  import type { IconName } from "$lib/icons.ts";
+  import Icon from "./Icon.svelte";
+
+  // Rendered as links and never fetched server-side: a user-supplied URL is an SSRF vector
+  let { links }: { links: SocialLink[] } = $props();
+
+  const ICONS: Record<string, IconName> = {
+    discord: "discord",
+    github: "github",
+    mastodon: "mastodon",
+    twitch: "twitch",
+    youtube: "youtube",
+    website: "globe",
+  };
+</script>
+
+{#if links.length > 0}
+  <ul class="socials">
+    {#each links as link (`${link.platform}-${link.url}`)}
+      <li>
+        <a href={link.url} rel="nofollow noopener ugc" target="_blank">
+          <Icon name={ICONS[link.platform.toLowerCase()] ?? "box-arrow-up-right"} />
+          {link.label ?? link.platform}
+        </a>
+      </li>
+    {/each}
+  </ul>
+{/if}
diff --git a/web/src/lib/components/StaleNotice.svelte b/web/src/lib/components/StaleNotice.svelte
new file mode 100644
index 0000000..699d05f
--- /dev/null
+++ b/web/src/lib/components/StaleNotice.svelte
@@ -0,0 +1,24 @@
+<!-- web/src/lib/components/StaleNotice.svelte -->
+<script lang="ts">
+  import Icon from "./Icon.svelte";
+
+  // PluralKit was unreachable, so the page rendered from the last good snapshot (P3)
+  let { staleSinceMs }: { staleSinceMs: number } = $props();
+
+  function formatAge(ms: number): string {
+    const minutes = Math.round(ms / 60_000);
+    if (minutes < 60) return `${Math.max(1, minutes)} minute${minutes === 1 ? "" : "s"}`;
+    const hours = Math.round(minutes / 60);
+    if (hours < 24) return `${hours} hour${hours === 1 ? "" : "s"}`;
+    const days = Math.round(hours / 24);
+    return `${days} day${days === 1 ? "" : "s"}`;
+  }
+</script>
+
+<p class="notice muted" role="status">
+  <Icon name="clock-history" />
+  <span>
+    PluralKit could not be reached, so this page is showing information
+    saved {formatAge(staleSinceMs)} ago. It may be out of date.
+  </span>
+</p>
diff --git a/web/src/lib/components/ThemeFonts.svelte b/web/src/lib/components/ThemeFonts.svelte
new file mode 100644
index 0000000..af4f3f2
--- /dev/null
+++ b/web/src/lib/components/ThemeFonts.svelte
@@ -0,0 +1,22 @@
+<!-- web/src/lib/components/ThemeFonts.svelte -->
+<script lang="ts">
+  import type { FontEntry } from "@pkviewer/shared";
+
+  // Families come from the fixed allow-list, so this only ever requests a font we chose
+  let { fonts }: { fonts: FontEntry[] } = $props();
+
+  const families = $derived(
+    fonts
+      .filter((font) => font.family !== null)
+      .map((font) => `family=${encodeURIComponent(font.family!).replace(/%20/g, "+")}:wght@${font.weights.join(";")}`),
+  );
+</script>
+
+<svelte:head>
+  {#if families.length > 0}
+    <link
+      rel="stylesheet"
+      href="https://fonts.googleapis.com/css2?{families.join('&')}&display=swap"
+    />
+  {/if}
+</svelte:head>
diff --git a/web/src/lib/components/TokenStyle.svelte b/web/src/lib/components/TokenStyle.svelte
new file mode 100644
index 0000000..996dd7d
--- /dev/null
+++ b/web/src/lib/components/TokenStyle.svelte
@@ -0,0 +1,23 @@
+<!-- web/src/lib/components/TokenStyle.svelte -->
+<script lang="ts">
+  import { tokenCss, type TokenScope } from "$lib/tokenStyle.ts";
+
+  let {
+    vars,
+    darkVars,
+    scope,
+    colorScheme,
+  }: {
+    vars: Record<string, string>;
+    darkVars?: Record<string, string>;
+    scope: TokenScope;
+    colorScheme?: "auto" | "light" | "dark";
+  } = $props();
+
+  // Every value has been through sanitizeCssVars, so nothing can leave the declaration
+  const css = $derived(tokenCss({ vars, darkVars, scope, colorScheme }));
+</script>
+
+{#if css}
+  {@html `<style>${css}</style>`}
+{/if}
diff --git a/web/src/lib/components/admin/BadgeAdmin.svelte b/web/src/lib/components/admin/BadgeAdmin.svelte
new file mode 100644
index 0000000..24af785
--- /dev/null
+++ b/web/src/lib/components/admin/BadgeAdmin.svelte
@@ -0,0 +1,176 @@
+<!-- web/src/lib/components/admin/BadgeAdmin.svelte -->
+<script lang="ts">
+  import type { BadgeIconId, BadgeState, BadgeToneId } from "@pkviewer/shared";
+  import { grantBadge, retireBadge, revokeBadge, saveBadge } from "$lib/admin.remote.ts";
+  import { mutate } from "$lib/mutate.ts";
+  import type { ActionResult, AdminAssignment, AdminBadge } from "$lib/types.ts";
+  import PageHeader from "../manage/PageHeader.svelte";
+  import Section from "../manage/Section.svelte";
+  import BadgeEditor from "./BadgeEditor.svelte";
+  import NewBadge from "./NewBadge.svelte";
+
+  // Every assignment's state stays visible: a badge appears on someone else's page
+  let {
+    badges,
+    icons,
+    tones,
+    assignments,
+  }: {
+    badges: AdminBadge[];
+    icons: BadgeIconId[];
+    tones: BadgeToneId[];
+    assignments: AdminAssignment[];
+  } = $props();
+
+  const STATE_LABELS: Record<BadgeState, string> = {
+    pending: "Waiting on them",
+    accepted: "Showing",
+    hidden: "Hidden by owner",
+    declined: "Declined",
+    revoked: "Revoked",
+  };
+
+  let pending = $state(false);
+  let message = $state<{ tone: "ok" | "error"; text: string } | null>(null);
+
+  let subject = $state("");
+  // svelte-ignore state_referenced_locally
+  let badgeId = $state(badges.find((badge) => badge.retiredAt === null)?.id ?? "");
+  let note = $state("");
+
+  const grantable = $derived(badges.filter((badge) => badge.retiredAt === null));
+
+  async function run(action: () => Promise<ActionResult>, okText: string) {
+    pending = true;
+    const outcome = await mutate(action());
+    message = outcome.ok
+      ? { tone: "ok", text: okText }
+      : { tone: "error", text: outcome.error ?? "That did not work." };
+    pending = false;
+  }
+
+  async function grant() {
+    await run(async () => {
+      const outcome = await grantBadge({ subject: subject.trim(), badgeId, note: note.trim() });
+      if (outcome.ok) {
+        subject = "";
+        note = "";
+      }
+      return outcome;
+    }, "Badge offered. It shows once they accept — unless it is your own system, which accepts itself.");
+  }
+</script>
+
+<div class="mg-shell">
+  <PageHeader
+    title="Badges"
+    description="Recognition given by pkviewer. A badge shows publicly only after its system accepts it."
+  />
+
+  {#if message}
+    <p class="mg-note" data-tone={message.tone} role="status" aria-live="polite">{message.text}</p>
+  {/if}
+
+  <Section
+    title="Grant a badge"
+    description="Name the system by its pkviewer address or PluralKit ID. It has to be claimed already — an unclaimed system has nobody who could accept."
+  >
+    <div class="mg-field">
+      <label for="badge-subject">System</label>
+      <input id="badge-subject" bind:value={subject} placeholder="clove-system or abcdef" />
+    </div>
+
+    <div class="mg-field">
+      <label for="badge-which">Badge</label>
+      <select id="badge-which" bind:value={badgeId}>
+        {#each grantable as badge (badge.id)}
+          <option value={badge.id}>{badge.label}</option>
+        {/each}
+      </select>
+    </div>
+
+    <div class="mg-field">
+      <label for="badge-note">Note for them (optional)</label>
+      <input id="badge-note" bind:value={note} placeholder="for the CSP report" maxlength="200" />
+      <p class="mg-hint">Shown to the system with the offer, never on a public page.</p>
+    </div>
+
+    <div class="mg-actions">
+      <button
+        type="button"
+        class="primary"
+        disabled={pending || !subject.trim() || !badgeId}
+        onclick={grant}
+      >
+        Grant badge
+      </button>
+    </div>
+  </Section>
+
+  <Section title="Granted" description="Every badge given out, and where it stands.">
+    {#if assignments.length === 0}
+      <p class="muted">No badges have been granted yet.</p>
+    {:else}
+      <ul class="mg-list">
+        {#each assignments as assignment (assignment.id)}
+          <li class="mg-item">
+            <div class="grow">
+              <strong>{assignment.badgeLabel}</strong>
+              <span class="muted">
+                → {assignment.slug ?? assignment.systemHid ?? assignment.subjectId}
+              </span>
+              <div class="mg-item-meta">
+                <span class="mg-state" data-state={assignment.state}>
+                  {STATE_LABELS[assignment.state] ?? assignment.state}
+                </span>
+                <span class="muted">
+                  granted {new Date(assignment.grantedAt).toLocaleDateString()}
+                </span>
+                {#if assignment.note}<span class="muted">“{assignment.note}”</span>{/if}
+              </div>
+            </div>
+            {#if assignment.state !== "revoked"}
+              <button
+                type="button"
+                class="quiet"
+                disabled={pending}
+                onclick={() => run(() => revokeBadge(assignment.id), "Badge revoked.")}
+              >
+                Revoke
+              </button>
+            {/if}
+          </li>
+        {/each}
+      </ul>
+    {/if}
+  </Section>
+
+  <Section
+    title="Catalogue"
+    description="Wording is yours. Icon and tone come from a fixed list, so a badge can never be styled to imitate another one."
+  >
+    <ul class="mg-list">
+      {#each badges as badge (badge.id)}
+        <BadgeEditor
+          {badge}
+          {icons}
+          {tones}
+          {pending}
+          onSave={(next) => run(() => saveBadge(next), "Badge saved.")}
+          onRetire={(retired) =>
+            run(
+              () => retireBadge({ badgeId: badge.id, retired }),
+              retired ? "Retired. Badges already granted keep showing." : "Restored.",
+            )}
+        />
+      {/each}
+    </ul>
+
+    <NewBadge
+      {icons}
+      {tones}
+      {pending}
+      onSave={(next) => run(() => saveBadge(next), "Badge created.")}
+    />
+  </Section>
+</div>
diff --git a/web/src/lib/components/admin/BadgeEditor.svelte b/web/src/lib/components/admin/BadgeEditor.svelte
new file mode 100644
index 0000000..a8cf3a5
--- /dev/null
+++ b/web/src/lib/components/admin/BadgeEditor.svelte
@@ -0,0 +1,66 @@
+<!-- web/src/lib/components/admin/BadgeEditor.svelte -->
+<script lang="ts">
+  import type { BadgeIconId, BadgeToneId } from "@pkviewer/shared";
+  import type { AdminBadge, BadgeDraft } from "$lib/types.ts";
+  import BadgeSample from "../BadgeSample.svelte";
+  import BadgeFields from "./BadgeFields.svelte";
+
+  let {
+    badge,
+    icons,
+    tones,
+    pending,
+    onSave,
+    onRetire,
+  }: {
+    badge: AdminBadge;
+    icons: BadgeIconId[];
+    tones: BadgeToneId[];
+    pending: boolean;
+    onSave: (draft: BadgeDraft) => void;
+    onRetire: (retired: boolean) => void;
+  } = $props();
+
+  let open = $state(false);
+  // svelte-ignore state_referenced_locally
+  let draft = $state<BadgeDraft>({
+    id: badge.id,
+    label: badge.label,
+    description: badge.description,
+    icon: badge.icon,
+    tone: badge.tone,
+    sortOrder: badge.sortOrder,
+  });
+</script>
+
+<li class="mg-item mg-item-stack">
+  <div class="mg-item-row">
+    <BadgeSample
+      badge={{
+        id: draft.id,
+        label: draft.label || badge.label,
+        description: draft.description,
+        icon: draft.icon as BadgeIconId,
+        tone: draft.tone as BadgeToneId,
+      }}
+    />
+    <span class="muted grow">
+      {badge.retiredAt !== null ? "Retired · " : ""}{badge.description}
+    </span>
+    <button type="button" class="quiet" onclick={() => (open = !open)}>
+      {open ? "Close" : "Edit"}
+    </button>
+    <button
+      type="button"
+      class="quiet"
+      disabled={pending}
+      onclick={() => onRetire(badge.retiredAt === null)}
+    >
+      {badge.retiredAt === null ? "Retire" : "Restore"}
+    </button>
+  </div>
+
+  {#if open}
+    <BadgeFields bind:draft {icons} {tones} {pending} onSave={() => onSave($state.snapshot(draft))} />
+  {/if}
+</li>
diff --git a/web/src/lib/components/admin/BadgeFields.svelte b/web/src/lib/components/admin/BadgeFields.svelte
new file mode 100644
index 0000000..c1a7d1b
--- /dev/null
+++ b/web/src/lib/components/admin/BadgeFields.svelte
@@ -0,0 +1,63 @@
+<!-- web/src/lib/components/admin/BadgeFields.svelte -->
+<script lang="ts">
+  import type { BadgeIconId, BadgeToneId } from "@pkviewer/shared";
+  import type { BadgeDraft } from "$lib/types.ts";
+
+  let {
+    draft = $bindable(),
+    icons,
+    tones,
+    pending,
+    onSave,
+  }: {
+    draft: BadgeDraft;
+    icons: BadgeIconId[];
+    tones: BadgeToneId[];
+    pending: boolean;
+    onSave: () => void;
+  } = $props();
+</script>
+
+<div class="mg-column">
+  <div class="mg-field">
+    <label for="label-{draft.id}">Label</label>
+    <input id="label-{draft.id}" bind:value={draft.label} maxlength="32" />
+  </div>
+
+  <div class="mg-field">
+    <label for="desc-{draft.id}">What it means</label>
+    <input id="desc-{draft.id}" bind:value={draft.description} maxlength="200" />
+    <p class="mg-hint">Shown on the public /badges page.</p>
+  </div>
+
+  <div class="mg-row">
+    <div class="mg-field">
+      <label for="icon-{draft.id}">Icon</label>
+      <select id="icon-{draft.id}" bind:value={draft.icon}>
+        {#each icons as icon (icon)}
+          <option value={icon}>{icon}</option>
+        {/each}
+      </select>
+    </div>
+
+    <div class="mg-field">
+      <label for="tone-{draft.id}">Tone</label>
+      <select id="tone-{draft.id}" bind:value={draft.tone}>
+        {#each tones as tone (tone)}
+          <option value={tone}>{tone}</option>
+        {/each}
+      </select>
+    </div>
+
+    <div class="mg-field">
+      <label for="order-{draft.id}">Order</label>
+      <input id="order-{draft.id}" type="number" bind:value={draft.sortOrder} />
+    </div>
+  </div>
+
+  <div class="mg-actions">
+    <button type="button" class="primary" disabled={pending} onclick={onSave}>
+      Save badge
+    </button>
+  </div>
+</div>
diff --git a/web/src/lib/components/admin/CreditAdmin.svelte b/web/src/lib/components/admin/CreditAdmin.svelte
new file mode 100644
index 0000000..ea4548a
--- /dev/null
+++ b/web/src/lib/components/admin/CreditAdmin.svelte
@@ -0,0 +1,205 @@
+<!-- web/src/lib/components/admin/CreditAdmin.svelte -->
+<script lang="ts">
+  import { deleteCredit, saveCredit } from "$lib/admin.remote.ts";
+  import { mutate } from "$lib/mutate.ts";
+  import type { ActionResult, AdminCredit, AdminSection } from "$lib/types.ts";
+  import Icon from "../Icon.svelte";
+  import PageHeader from "../manage/PageHeader.svelte";
+  import Section from "../manage/Section.svelte";
+  import SectionAdmin from "./SectionAdmin.svelte";
+
+  // Sections are rows, so "Translators" is added here rather than deployed; order is explicit
+  let {
+    sections,
+    credits,
+  }: {
+    sections: AdminSection[];
+    credits: AdminCredit[];
+  } = $props();
+
+  type Draft = {
+    id?: string;
+    sectionId: string;
+    name: string;
+    detail: string;
+    url: string;
+    sortOrder: number;
+    visible: boolean;
+  };
+
+  function empty(): Draft {
+    return {
+      sectionId: sections[0]?.id ?? "",
+      name: "",
+      detail: "",
+      url: "",
+      sortOrder: 0,
+      visible: true,
+    };
+  }
+
+  let pending = $state(false);
+  let message = $state<{ tone: "ok" | "error"; text: string } | null>(null);
+  let draft = $state<Draft>(empty());
+
+  const editing = $derived(draft.id !== undefined);
+
+  async function run(action: () => Promise<ActionResult>, okText: string) {
+    pending = true;
+    const outcome = await mutate(action());
+    message = outcome.ok
+      ? { tone: "ok", text: okText }
+      : { tone: "error", text: outcome.error ?? "That did not work." };
+    pending = false;
+  }
+
+  function submit() {
+    const wasEditing = editing;
+    return run(async () => {
+      const outcome = await saveCredit({
+        ...(draft.id ? { id: draft.id } : {}),
+        sectionId: draft.sectionId,
+        name: draft.name.trim(),
+        detail: draft.detail.trim(),
+        url: draft.url.trim(),
+        sortOrder: draft.sortOrder,
+        visible: draft.visible,
+      });
+      if (outcome.ok) draft = empty();
+      return outcome;
+    }, wasEditing ? "Entry updated." : "Entry added.");
+  }
+
+  function entriesFor(sectionId: string): AdminCredit[] {
+    return credits
+      .filter((credit) => credit.sectionId === sectionId)
+      .sort((a, b) => a.sortOrder - b.sortOrder || a.name.localeCompare(b.name));
+  }
+</script>
+
+<div class="mg-shell">
+  <PageHeader
+    title="Credits"
+    description="Anyone can be credited. No pkviewer account and no PluralKit system required."
+  />
+
+  {#if message}
+    <p class="mg-note" data-tone={message.tone} role="status" aria-live="polite">{message.text}</p>
+  {/if}
+
+  <Section title={editing ? "Edit entry" : "Add someone"}>
+    <div class="mg-row">
+      <div class="mg-field grow">
+        <label for="credit-name">Name</label>
+        <input
+          id="credit-name"
+          bind:value={draft.name}
+          maxlength="80"
+          placeholder="How they want to be known"
+        />
+      </div>
+
+      <div class="mg-field">
+        <label for="credit-section">Section</label>
+        <select id="credit-section" bind:value={draft.sectionId}>
+          {#each sections as section (section.id)}
+            <option value={section.id}>{section.label}</option>
+          {/each}
+        </select>
+      </div>
+    </div>
+
+    <div class="mg-field">
+      <label for="credit-detail">What they did</label>
+      <input
+        id="credit-detail"
+        bind:value={draft.detail}
+        maxlength="200"
+        placeholder="Reported the CSP bypass"
+      />
+    </div>
+
+    <div class="mg-row">
+      <div class="mg-field grow">
+        <label for="credit-url">Link (optional)</label>
+        <input id="credit-url" bind:value={draft.url} maxlength="500" placeholder="https://…" />
+        <p class="mg-hint">Rendered as a link. pkviewer never visits it.</p>
+      </div>
+
+      <div class="mg-field">
+        <label for="credit-order">Order</label>
+        <input id="credit-order" type="number" bind:value={draft.sortOrder} />
+      </div>
+    </div>
+
+    <label class="mg-check">
+      <input type="checkbox" bind:checked={draft.visible} />
+      Show on the public credits page
+    </label>
+
+    <div class="mg-actions">
+      <button
+        type="button"
+        class="primary"
+        disabled={pending || !draft.name.trim() || !draft.sectionId}
+        onclick={submit}
+      >
+        {editing ? "Save entry" : "Add entry"}
+      </button>
+      {#if editing}
+        <button type="button" class="quiet" onclick={() => (draft = empty())}>Cancel</button>
+      {/if}
+    </div>
+  </Section>
+
+  {#each sections as section (section.id)}
+    {@const entries = entriesFor(section.id)}
+    <Section title={section.label} description={section.description ?? undefined}>
+      {#if entries.length === 0}
+        <p class="muted">Nobody in this section yet.</p>
+      {:else}
+        <ul class="mg-list">
+          {#each entries as credit (credit.id)}
+            <li class="mg-item">
+              <div class="grow">
+                <strong>{credit.name}</strong>
+                {#if !credit.visible}
+                  <span class="muted"> <Icon name="eye-slash" /> hidden</span>
+                {/if}
+                {#if credit.detail}
+                  <div class="mg-item-meta muted">{credit.detail}</div>
+                {/if}
+              </div>
+              <button
+                type="button"
+                class="quiet"
+                onclick={() =>
+                  (draft = {
+                    id: credit.id,
+                    sectionId: credit.sectionId,
+                    name: credit.name,
+                    detail: credit.detail ?? "",
+                    url: credit.url ?? "",
+                    sortOrder: credit.sortOrder,
+                    visible: credit.visible,
+                  })}
+              >
+                Edit
+              </button>
+              <button
+                type="button"
+                class="quiet"
+                disabled={pending}
+                onclick={() => run(() => deleteCredit(credit.id), "Entry removed.")}
+              >
+                Remove
+              </button>
+            </li>
+          {/each}
+        </ul>
+      {/if}
+    </Section>
+  {/each}
+
+  <SectionAdmin {sections} {pending} {run} />
+</div>
diff --git a/web/src/lib/components/admin/NewBadge.svelte b/web/src/lib/components/admin/NewBadge.svelte
new file mode 100644
index 0000000..2e97e6e
--- /dev/null
+++ b/web/src/lib/components/admin/NewBadge.svelte
@@ -0,0 +1,55 @@
+<!-- web/src/lib/components/admin/NewBadge.svelte -->
+<script lang="ts">
+  import type { BadgeIconId, BadgeToneId } from "@pkviewer/shared";
+  import type { BadgeDraft } from "$lib/types.ts";
+  import BadgeFields from "./BadgeFields.svelte";
+
+  let {
+    icons,
+    tones,
+    pending,
+    onSave,
+  }: {
+    icons: BadgeIconId[];
+    tones: BadgeToneId[];
+    pending: boolean;
+    onSave: (draft: BadgeDraft) => void;
+  } = $props();
+
+  let open = $state(false);
+  // svelte-ignore state_referenced_locally
+  let draft = $state<BadgeDraft>({
+    id: "",
+    label: "",
+    description: "",
+    icon: icons[0] ?? "patch",
+    tone: tones[0] ?? "slate",
+    sortOrder: 100,
+  });
+</script>
+
+{#if !open}
+  <div class="mg-actions">
+    <button type="button" class="quiet" onclick={() => (open = true)}>
+      Add a badge type
+    </button>
+  </div>
+{:else}
+  <div class="mg-panel-inset">
+    <div class="mg-field">
+      <label for="new-badge-id">Identifier</label>
+      <input id="new-badge-id" bind:value={draft.id} placeholder="translator" />
+      <p class="mg-hint">Lowercase letters, numbers and hyphens. Cannot be changed later.</p>
+    </div>
+    <BadgeFields
+      bind:draft
+      {icons}
+      {tones}
+      {pending}
+      onSave={() => {
+        onSave($state.snapshot(draft));
+        open = false;
+      }}
+    />
+  </div>
+{/if}
diff --git a/web/src/lib/components/admin/SectionAdmin.svelte b/web/src/lib/components/admin/SectionAdmin.svelte
new file mode 100644
index 0000000..39f147d
--- /dev/null
+++ b/web/src/lib/components/admin/SectionAdmin.svelte
@@ -0,0 +1,94 @@
+<!-- web/src/lib/components/admin/SectionAdmin.svelte -->
+<script lang="ts">
+  import { deleteSection, saveSection } from "$lib/admin.remote.ts";
+  import type { ActionResult, AdminSection } from "$lib/types.ts";
+  import Section from "../manage/Section.svelte";
+
+  let {
+    sections,
+    pending,
+    run,
+  }: {
+    sections: AdminSection[];
+    pending: boolean;
+    run: (action: () => Promise<ActionResult>, okText: string) => Promise<void>;
+  } = $props();
+
+  const EMPTY = {
+    id: "",
+    label: "",
+    description: "",
+    sortOrder: 100,
+  };
+
+  let draft = $state({ ...EMPTY });
+
+  function add() {
+    return run(async () => {
+      const outcome = await saveSection({
+        id: draft.id.trim(),
+        label: draft.label.trim(),
+        description: draft.description.trim(),
+        sortOrder: draft.sortOrder,
+      });
+      if (outcome.ok) draft = { ...EMPTY };
+      return outcome;
+    }, "Section saved.");
+  }
+</script>
+
+<Section title="Sections" description="The headings on the public credits page, in this order.">
+  <ul class="mg-list">
+    {#each sections as section (section.id)}
+      <li class="mg-item">
+        <div class="grow">
+          <strong>{section.label}</strong>
+          <div class="mg-item-meta muted">
+            <code>{section.id}</code> · order {section.sortOrder}
+          </div>
+        </div>
+        <button
+          type="button"
+          class="quiet"
+          disabled={pending}
+          onclick={() => run(() => deleteSection(section.id), "Section removed.")}
+        >
+          Remove
+        </button>
+      </li>
+    {/each}
+  </ul>
+
+  <div class="mg-panel-inset">
+    <div class="mg-row">
+      <div class="mg-field">
+        <label for="section-id">Identifier</label>
+        <input id="section-id" bind:value={draft.id} placeholder="translators" />
+      </div>
+      <div class="mg-field grow">
+        <label for="section-label">Heading</label>
+        <input id="section-label" bind:value={draft.label} maxlength="60" placeholder="Translators" />
+      </div>
+      <div class="mg-field">
+        <label for="section-order">Order</label>
+        <input id="section-order" type="number" bind:value={draft.sortOrder} />
+      </div>
+    </div>
+
+    <div class="mg-field">
+      <label for="section-desc">Description (optional)</label>
+      <input id="section-desc" bind:value={draft.description} maxlength="200" />
+    </div>
+
+    <div class="mg-actions">
+      <button
+        type="button"
+        class="quiet"
+        disabled={pending || !draft.id.trim() || !draft.label.trim()}
+        onclick={add}
+      >
+        Add section
+      </button>
+    </div>
+  </div>
+</Section>
diff --git a/web/src/lib/components/manage/BadgeOffers.svelte b/web/src/lib/components/manage/BadgeOffers.svelte
new file mode 100644
index 0000000..12bc63e
--- /dev/null
+++ b/web/src/lib/components/manage/BadgeOffers.svelte
@@ -0,0 +1,82 @@
+<!-- web/src/lib/components/manage/BadgeOffers.svelte -->
+<script lang="ts">
+  import type { BadgeState, OfferedBadge } from "@pkviewer/shared";
+  import { respondToBadge } from "$lib/manage.remote.ts";
+  import { mutate } from "$lib/mutate.ts";
+  import BadgeSample from "../BadgeSample.svelte";
+  import Section from "./Section.svelte";
+
+  // Badges are opt-out, so turning one off is one obvious, reversible click with no confirmation
+  let {
+    systemId,
+    badges,
+  }: {
+    systemId: string;
+    badges: OfferedBadge[];
+  } = $props();
+
+  const EXPLAIN: Record<BadgeState, string> = {
+    // Nothing is granted as pending any more; kept for rows from before opt-out
+    pending: "Given by pkviewer. Not on your page yet.",
+    accepted: "Showing on your system page.",
+    hidden: "Hidden. Nobody can tell it was ever given.",
+    declined: "Turned off. You can put it back at any time.",
+    revoked: "",
+  };
+
+  let pending = $state(false);
+  let error = $state<string | null>(null);
+
+  async function act(badgeId: string, action: "accept" | "decline" | "hide" | "show") {
+    pending = true;
+    const outcome = await mutate(respondToBadge({ systemId, badgeId, action }));
+    error = outcome.ok ? null : (outcome.error ?? "That did not work.");
+    pending = false;
+  }
+</script>
+
+{#if badges.length > 0}
+  <Section
+    title="Recognition"
+    description="Given by pkviewer. Turn any of them off and it disappears from your page — nobody can tell it was ever there."
+  >
+    {#if error}
+      <p class="mg-note" data-tone="error" role="status" aria-live="polite">{error}</p>
+    {/if}
+
+    <ul class="mg-list">
+      {#each badges as badge (badge.id)}
+        <li class="mg-item">
+          <BadgeSample {badge} />
+          <div class="grow">
+            <div class="mg-item-meta muted">
+              <span>{EXPLAIN[badge.state]}</span>
+              {#if badge.note}<span>“{badge.note}”</span>{/if}
+            </div>
+          </div>
+
+          {#if badge.state === "pending" || badge.state === "declined"}
+            <button type="button" class="primary" disabled={pending} onclick={() => act(badge.id, "accept")}>
+              Show it
+            </button>
+          {/if}
+          {#if badge.state === "accepted"}
+            <button type="button" class="quiet" disabled={pending} onclick={() => act(badge.id, "hide")}>
+              Hide
+            </button>
+          {/if}
+          {#if badge.state === "hidden"}
+            <button type="button" class="quiet" disabled={pending} onclick={() => act(badge.id, "show")}>
+              Show
+            </button>
+          {/if}
+          {#if badge.state !== "declined"}
+            <button type="button" class="quiet" disabled={pending} onclick={() => act(badge.id, "decline")}>
+              Turn off
+            </button>
+          {/if}
+        </li>
+      {/each}
+    </ul>
+  </Section>
+{/if}
diff --git a/web/src/lib/components/manage/ClaimFlow.svelte b/web/src/lib/components/manage/ClaimFlow.svelte
new file mode 100644
index 0000000..1ab3d11
--- /dev/null
+++ b/web/src/lib/components/manage/ClaimFlow.svelte
@@ -0,0 +1,191 @@
+<!-- web/src/lib/components/manage/ClaimFlow.svelte -->
+<script lang="ts">
+  import type { DiscoveredSystem } from "$lib/types.ts";
+  import {
+    claimViaDiscord,
+    discoverSystems,
+    startChallenge,
+    verifyChallenge,
+  } from "$lib/manage.remote.ts";
+  import Icon from "../Icon.svelte";
+
+  // Two routes, in order of how little they ask. The token option is deliberately absent.
+  let {
+    initialSystems,
+    initialError,
+  }: {
+    initialSystems: DiscoveredSystem[];
+    initialError: string | null;
+  } = $props();
+
+  // svelte-ignore state_referenced_locally
+  let systems = $state(initialSystems);
+  // svelte-ignore state_referenced_locally
+  let error = $state<string | null>(initialError);
+  let busy = $state<string | null>(null);
+
+  let manualRef = $state("");
+  let challenge = $state<{ id: string; nonce: string; hid: string } | null>(null);
+
+  async function run<T>(key: string, fn: () => Promise<T>): Promise<T> {
+    busy = key;
+    error = null;
+    try {
+      return await fn();
+    } finally {
+      busy = null;
+    }
+  }
+
+  async function claim(ref: string) {
+    const outcome = await run(`claim:${ref}`, () => claimViaDiscord(ref));
+    if (!outcome.ok) error = outcome.error;
+    else window.location.href = `/manage/${outcome.systemId}`;
+  }
+
+  async function recheck() {
+    const outcome = await run("discover", () => discoverSystems());
+    if (outcome.ok) {
+      systems = outcome.systems;
+      if (outcome.systems.length === 0) {
+        error = "PluralKit does not have a system linked to this Discord account.";
+      }
+    } else error = outcome.error;
+  }
+
+  async function begin() {
+    const ref = manualRef.trim();
+    if (!ref) return;
+    const outcome = await run("challenge", () => startChallenge(ref));
+    if (!outcome.ok) error = outcome.error;
+    else challenge = { id: outcome.challengeId, nonce: outcome.nonce, hid: outcome.systemHid };
+  }
+
+  async function check() {
+    if (!challenge) return;
+    const id = challenge.id;
+    const outcome = await run("verify", () => verifyChallenge(id));
+    if (!outcome.ok) error = outcome.error;
+    else window.location.href = `/manage/${outcome.systemId}`;
+  }
+</script>
+
+{#if error}
+  <p class="mg-note" data-tone="warn" role="alert">
+    <Icon name="exclamation-triangle" />
+    <span>{error}</span>
+  </p>
+{/if}
+
+<section class="mg-panel">
+  <h2>Systems linked to your Discord account</h2>
+  <p class="hint">
+    PluralKit already knows which system your Discord account belongs to.
+    If yours is here, that is all the confirmation pkviewer needs.
+  </p>
+
+  {#if systems.length > 0}
+    <ul class="mg-list">
+      {#each systems as system (system.uuid)}
+        <li class="mg-card">
+          <Icon name="person-circle" class="mg-thumb" />
+          <span class="grow">
+            <span class="title">{system.name ?? system.hid}</span>
+            <span class="sub">PluralKit ID {system.hid}</span>
+          </span>
+          <button
+            type="button"
+            class="primary"
+            disabled={busy !== null}
+            onclick={() => claim(system.hid)}
+          >
+            {busy === `claim:${system.hid}` ? "Claiming…" : "Claim this system"}
+          </button>
+        </li>
+      {/each}
+    </ul>
+  {:else}
+    <p class="desc">
+      Nothing found for this Discord account. Either it is not linked to a
+      PluralKit system, or you are signing in from a different account than
+      the one linked to it.
+    </p>
+  {/if}
+
+  <p style="margin-top: 14px; margin-bottom: 0">
+    <button type="button" class="ghost" disabled={busy !== null} onclick={recheck}>
+      <Icon name="arrow-repeat" />
+      {busy === "discover" ? "Checking…" : "Check again"}
+    </button>
+  </p>
+</section>
+
+<section class="mg-panel">
+  <h2>Or confirm with a short code</h2>
+  <p class="hint">
+    Use this if your Discord account is not linked to the system, or you
+    are claiming from a different account. It needs nothing from PluralKit
+    except a moment's edit to your system description.
+  </p>
+
+  {#if !challenge}
+    <div class="mg-field">
+      <label for="claim-ref">PluralKit system ID</label>
+      <input
+        id="claim-ref"
+        type="text"
+        bind:value={manualRef}
+        spellcheck="false"
+        autocapitalize="none"
+        autocomplete="off"
+        placeholder="abcdef"
+        aria-describedby="claim-ref-desc"
+      />
+      <span class="desc" id="claim-ref-desc">
+        The 5 or 6 character ID PluralKit shows, for example from
+        <code>pk;system</code>.
+      </span>
+    </div>
+    <button
+      type="button"
+      disabled={busy !== null || manualRef.trim().length === 0}
+      onclick={begin}
+    >
+      {busy === "challenge" ? "Getting a code…" : "Get a code"}
+    </button>
+  {:else}
+    <ol class="mg-steps">
+      <li>
+        Add this code anywhere in the description of system
+        <strong>{challenge.hid}</strong>:
+        <code class="mg-code">{challenge.nonce}</code>
+      </li>
+      <li>Save it in PluralKit.</li>
+      <li>Come back and check below. You can remove the code afterwards.</li>
+    </ol>
+    <p class="desc">
+      The code is only valid for a short while. If it expires, start
+      again for a new one.
+    </p>
+    <button type="button" class="primary" disabled={busy !== null} onclick={check}>
+      <Icon name="check2-circle" />
+      {busy === "verify" ? "Checking…" : "I have added the code"}
+    </button>
+    <button
+      type="button"
+      class="ghost"
+      disabled={busy !== null}
+      onclick={() => (challenge = null)}
+    >
+      Start over
+    </button>
+  {/if}
+</section>
+
+<p class="mg-note">
+  <Icon name="clipboard-check" />
+  <span>
+    pkviewer never asks for a PluralKit token in order to claim a system.
+    Both options above work without one.
+  </span>
+</p>
diff --git a/web/src/lib/components/manage/CompositionEditor.svelte b/web/src/lib/components/manage/CompositionEditor.svelte
new file mode 100644
index 0000000..0745849
--- /dev/null
+++ b/web/src/lib/components/manage/CompositionEditor.svelte
@@ -0,0 +1,154 @@
+<!-- web/src/lib/components/manage/CompositionEditor.svelte -->
+<script lang="ts">
+  import { COMPOSITION, type CompositionDef } from "@pkviewer/shared";
+  import { saveSystemComposition } from "$lib/manage.remote.ts";
+  import { mutate } from "$lib/mutate.ts";
+  import { useUnsavedGuard } from "$lib/unsavedGuard.svelte.ts";
+  import Icon from "../Icon.svelte";
+
+  // What is on the page and how it is arranged; these never become CSS properties
+  let {
+    systemId,
+    initialValues,
+  }: {
+    systemId: string;
+    initialValues: Record<string, string>;
+  } = $props();
+
+  const LABELS: Record<string, string> = {
+    "banner.display": "Show banner",
+    "avatar.size": "Avatar size",
+    "directory.columns": "Member columns",
+    "directory.card": "Card style",
+    "directory.sort": "Sort members by",
+    "show.pronouns": "Show pronouns",
+    "show.birthday": "Show birthdays",
+  };
+
+  const OPTION_LABELS: Record<string, string> = {
+    auto: "Automatic",
+    hidden: "Hidden",
+    one: "One",
+    two: "Two",
+    three: "Three",
+    compact: "Compact",
+    detailed: "Detailed",
+    pluralkit: "PluralKit order",
+    name: "Name",
+    small: "Small",
+    medium: "Medium",
+    large: "Large",
+  };
+
+  // svelte-ignore state_referenced_locally
+  let values = $state<Record<string, string>>({ ...initialValues });
+  // svelte-ignore state_referenced_locally
+  let saved = $state<Record<string, string>>({ ...initialValues });
+  let status = $state<"idle" | "saving" | "ok" | "error">("idle");
+  let message = $state<string | null>(null);
+
+  const dirty = $derived(JSON.stringify(values) !== JSON.stringify(saved));
+  useUnsavedGuard(() => dirty);
+
+  const groups = [
+    {
+      title: "Member directory",
+      hint: "How members are listed on your system page.",
+      defs: COMPOSITION.filter((def) => def.key.startsWith("directory.")),
+    },
+    {
+      title: "Header",
+      hint: "Banner and avatar on system and member pages.",
+      defs: COMPOSITION.filter((def) => def.key === "banner.display" || def.key === "avatar.size"),
+    },
+    {
+      title: "Details to show",
+      hint: "Only information PluralKit already makes public can be shown. Turning something off here hides it on pkviewer; it does not change PluralKit.",
+      defs: COMPOSITION.filter((def) => def.key.startsWith("show.")),
+    },
+  ];
+
+  function fieldId(def: CompositionDef): string {
+    return `comp-${def.key.replace(/\./g, "-")}`;
+  }
+
+  function options(def: CompositionDef): Array<{ value: string; label: string }> {
+    if (def.type === "boolean") {
+      return [
+        { value: "true", label: "Shown" },
+        { value: "false", label: "Hidden" },
+      ];
+    }
+    return def.values.map((value) => ({ value, label: OPTION_LABELS[value] ?? value }));
+  }
+
+  async function save() {
+    status = "saving";
+    const outcome = await mutate(saveSystemComposition({ systemId, composition: $state.snapshot(values) }));
+    if (outcome.ok) {
+      saved = { ...values };
+      status = "ok";
+      message = "Saved.";
+    } else {
+      status = "error";
+      message = outcome.error ?? "Could not save. Please try again.";
+    }
+  }
+</script>
+
+{#each groups as group (group.title)}
+  <section class="mg-panel">
+    <h2>{group.title}</h2>
+    <p class="hint">{group.hint}</p>
+    <div class="mg-grid">
+      {#each group.defs as def (def.key)}
+        {@const id = fieldId(def)}
+        <div class="mg-field">
+          <div class="mg-field-head">
+            <label for={id}>{LABELS[def.key] ?? def.label}</label>
+          </div>
+          <select
+            {id}
+            value={values[def.key] ?? String(def.default)}
+            aria-describedby="{id}-desc"
+            onchange={(event) => (values[def.key] = event.currentTarget.value)}
+          >
+            {#each options(def) as option (option.value)}
+              <option value={option.value}>{option.label}</option>
+            {/each}
+          </select>
+          <span class="desc" id="{id}-desc">{def.help}</span>
+        </div>
+      {/each}
+    </div>
+  </section>
+{/each}
+
+<div class="mg-savebar">
+  <span
+    class="mg-status"
+    data-tone={status === "ok" ? "ok" : status === "error" ? "error" : dirty ? "dirty" : undefined}
+    role="status"
+    aria-live="polite"
+  >
+    {#if status === "error"}<Icon name="exclamation-triangle" />{/if}
+    {#if status === "ok"}<Icon name="check2" />{/if}
+    {message ?? (dirty ? "Unsaved changes" : "No changes")}
+  </span>
+  <span class="spacer"></span>
+  <button
+    type="button"
+    class="ghost"
+    onclick={() => {
+      values = { ...saved };
+      status = "idle";
+      message = null;
+    }}
+    disabled={!dirty}
+  >
+    Discard changes
+  </button>
+  <button type="button" class="primary" onclick={save} disabled={!dirty || status === "saving"}>
+    {status === "saving" ? "Saving…" : "Save settings"}
+  </button>
+</div>
diff --git a/web/src/lib/components/manage/CssEditor.svelte b/web/src/lib/components/manage/CssEditor.svelte
new file mode 100644
index 0000000..24b769d
--- /dev/null
+++ b/web/src/lib/components/manage/CssEditor.svelte
@@ -0,0 +1,165 @@
+<!-- web/src/lib/components/manage/CssEditor.svelte -->
+<script lang="ts">
+  import { CSS_ISSUE_MESSAGES, MAX_CSS_LENGTH, type CssIssue } from "@pkviewer/shared";
+  import { site } from "$lib/config.ts";
+  import { saveCss } from "$lib/manage.remote.ts";
+  import { mutate } from "$lib/mutate.ts";
+  import Icon from "../Icon.svelte";
+  import PageHeader from "./PageHeader.svelte";
+  import SaveBar, { type SaveState } from "./SaveBar.svelte";
+  import Section from "./Section.svelte";
+
+  // CSS is compiled against an allow-list, so this screen must say which rules were dropped and why
+  let {
+    systemId,
+    memberRef,
+    initialSource,
+    initialIssues,
+  }: {
+    systemId: string;
+    /** Present for a member's own stylesheet; absent for the system's. */
+    memberRef?: string;
+    initialSource: string;
+    initialIssues: CssIssue[];
+  } = $props();
+
+  // svelte-ignore state_referenced_locally
+  let source = $state(initialSource);
+  // svelte-ignore state_referenced_locally
+  let saved = $state(initialSource);
+  // svelte-ignore state_referenced_locally
+  let issues = $state<CssIssue[]>(initialIssues);
+  let kept = $state<number | null>(null);
+  let saveState = $state<SaveState>("clean");
+
+  const dirty = $derived(source !== saved);
+  const tooLong = $derived(source.length > MAX_CSS_LENGTH);
+  const reference = `${site.docsUrl}/projects/pkviewer/css`;
+
+  async function save() {
+    saveState = "saving";
+    const outcome = await mutate(
+      saveCss({
+        systemId,
+        ...(memberRef ? { memberRef } : {}),
+        css: source,
+      }),
+    );
+    if (!outcome.ok) {
+      saveState = "error";
+      return;
+    }
+    saved = source;
+    issues = outcome.issues ?? [];
+    kept = outcome.kept ?? 0;
+    saveState = "saved";
+  }
+</script>
+
+<PageHeader
+  title="Advanced CSS"
+  description={memberRef
+    ? "Styles this member's page only, layered on top of your system stylesheet."
+    : "Styles every page in your system. Members can add their own on top."}
+>
+  {#snippet actions()}
+    <a class="btn" href={reference} rel="noopener">
+      CSS reference <Icon name="box-arrow-up-right" />
+    </a>
+  {/snippet}
+</PageHeader>
+
+<SaveBar
+  state={dirty && saveState !== "saving" ? "dirty" : saveState}
+  onSave={save}
+  onDiscard={() => {
+    source = saved;
+    saveState = "clean";
+  }}
+  disabled={tooLong}
+  message={tooLong ? `Too long: ${source.length} of ${MAX_CSS_LENGTH} characters.` : null}
+/>
+
+<Section
+  title={memberRef ? "This member's stylesheet" : "Your stylesheet"}
+  description="Selectors are scoped to your page automatically — write `.card`, not `#pkv-user .card`."
+>
+  <div class="mg-field">
+    <label for="css-source">CSS</label>
+    <textarea
+      id="css-source"
+      class="mg-code"
+      bind:value={source}
+      spellcheck="false"
+      rows="20"
+      placeholder={".card {\n  border-radius: 18px;\n  background-color: #1b1520;\n}"}
+      oninput={() => (saveState = "dirty")}
+    ></textarea>
+    <p class="mg-hint">
+      {source.length.toLocaleString()} of {MAX_CSS_LENGTH.toLocaleString()} characters.
+    </p>
+  </div>
+</Section>
+
+{#if issues.length > 0}
+  <Section
+    title="{issues.length} {issues.length === 1 ? 'line was' : 'lines were'} not applied"
+    description="Saved, but skipped when the page was built. Everything else still applies."
+  >
+    <ul class="mg-list">
+      {#each issues as issue, index (`${issue.line}-${index}`)}
+        <li class="mg-item">
+          <Icon name="exclamation-triangle" />
+          <div class="grow">
+            <strong>Line {issue.line}</strong>
+            <span class="muted">{CSS_ISSUE_MESSAGES[issue.kind] ?? issue.kind}</span>
+            {#if issue.detail}
+              <div class="mg-item-meta">
+                <code>{issue.detail}</code>
+              </div>
+            {/if}
+          </div>
+        </li>
+      {/each}
+    </ul>
+  </Section>
+{:else if kept !== null && kept > 0}
+  <p class="mg-note" data-tone="ok" role="status" aria-live="polite">
+    All {kept} {kept === 1 ? "declaration" : "declarations"} applied.
+  </p>
+{/if}
+
+<Section title="What is not available">
+  <ul class="mg-plain">
+    <li>
+      <strong>No <code>url()</code>.</strong> Stylesheets make no network
+      requests, so nobody visiting your page hands their address to
+      somewhere else.
+    </li>
+    <li>
+      <strong>No <code>position: absolute</code> or <code>fixed</code>.</strong>
+      Nothing can be laid over the page — a convincing fake sign-in box is
+      the thing this prevents.
+    </li>
+    <li>
+      <strong>No <code>!important</code>.</strong> It is reserved for the
+      rules that keep badges and the site notice in place.
+    </li>
+    <li>
+      <strong>Badges and the site notice cannot be restyled.</strong> They
+      are pkviewer's statements, not part of your page's appearance.
+    </li>
+    <li>
+      <strong>Links only to Google Fonts and the pkviewer CDN.</strong>
+      <code>@import</code> a font, or point <code>background-image</code>
+      at the CDN. Anywhere else is refused, so a page cannot report its
+      visitors to a third party.
+    </li>
+  </ul>
+  <p class="mg-hint">
+    Anything not on the supported list is skipped rather than applied, and
+    says so above. The
+    <a href={reference} rel="noopener">CSS reference</a>
+    lists every property and variable you can use.
+  </p>
+</Section>
diff --git a/web/src/lib/components/manage/Note.svelte b/web/src/lib/components/manage/Note.svelte
new file mode 100644
index 0000000..c49fc21
--- /dev/null
+++ b/web/src/lib/components/manage/Note.svelte
@@ -0,0 +1,26 @@
+<!-- web/src/lib/components/manage/Note.svelte -->
+<script lang="ts">
+  import type { Snippet } from "svelte";
+  import type { IconName } from "$lib/icons.ts";
+  import Icon from "../Icon.svelte";
+
+  // A short aside; tone distinguishes information from a problem
+  let {
+    icon,
+    children,
+    tone,
+    role,
+  }: {
+    icon?: IconName;
+    children: Snippet;
+    tone?: "warn" | "accent";
+    role?: "status" | "alert";
+  } = $props();
+</script>
+
+<p class="mg-note" data-tone={tone} {role}>
+  {#if icon}
+    <Icon name={icon} />
+  {/if}
+  <span>{@render children()}</span>
+</p>
diff --git a/web/src/lib/components/manage/PageHeader.svelte b/web/src/lib/components/manage/PageHeader.svelte
new file mode 100644
index 0000000..764709a
--- /dev/null
+++ b/web/src/lib/components/manage/PageHeader.svelte
@@ -0,0 +1,35 @@
+<!-- web/src/lib/components/manage/PageHeader.svelte -->
+<script lang="ts">
+  import type { Snippet } from "svelte";
+  import Icon from "../Icon.svelte";
+
+  // A page's title, one line of explanation, and its primary action
+  let {
+    title,
+    description,
+    actions,
+    back,
+  }: {
+    title: string;
+    description?: string;
+    actions?: Snippet;
+    back?: { href: string; label: string };
+  } = $props();
+</script>
+
+{#if back}
+  <a class="mg-back" href={back.href}>
+    <Icon name="arrow-left" /> {back.label}
+  </a>
+{/if}
+<div class="mg-pagehead">
+  <div class="grow">
+    <h1>{title}</h1>
+    {#if description}
+      <p>{description}</p>
+    {/if}
+  </div>
+  {#if actions}
+    <div class="mg-actions">{@render actions()}</div>
+  {/if}
+</div>
diff --git a/web/src/lib/components/manage/PublicUrl.svelte b/web/src/lib/components/manage/PublicUrl.svelte
new file mode 100644
index 0000000..e7f6378
--- /dev/null
+++ b/web/src/lib/components/manage/PublicUrl.svelte
@@ -0,0 +1,59 @@
+<!-- web/src/lib/components/manage/PublicUrl.svelte -->
+<script lang="ts">
+  import Icon from "../Icon.svelte";
+
+  // Copying is never the only way: the URL is selectable text and a link too
+  let {
+    url,
+    label = "Public address",
+    secondary,
+  }: {
+    url: string;
+    label?: string;
+    secondary?: { url: string; note: string };
+  } = $props();
+
+  let copied = $state(false);
+  let timer: ReturnType<typeof setTimeout> | null = null;
+
+  $effect(() => () => {
+    if (timer) clearTimeout(timer);
+  });
+
+  async function copy() {
+    try {
+      await navigator.clipboard.writeText(url);
+    } catch {
+      // A blocked clipboard is fine: the address is right there to select
+      return;
+    }
+    copied = true;
+    if (timer) clearTimeout(timer);
+    timer = setTimeout(() => (copied = false), 2200);
+  }
+</script>
+
+<div class="mg-field">
+  <span class="desc">{label}</span>
+  <div style="display: flex; gap: 8px; align-items: center; flex-wrap: wrap">
+    <code style="font-size: 13.5px; overflow-wrap: anywhere; flex: 1 1 16rem">{url}</code>
+    <button type="button" onclick={copy}>
+      <Icon name={copied ? "check2" : "clipboard"} />
+      {copied ? "Copied" : "Copy"}
+    </button>
+    <a class="btn" href={url} target="_blank" rel="noopener">
+      Open <Icon name="box-arrow-up-right" />
+    </a>
+  </div>
+  <span role="status" aria-live="polite" class="visually-hidden">
+    {copied ? "Address copied to clipboard" : ""}
+  </span>
+  {#if secondary}
+    <span class="desc">
+      {secondary.note}
+      <a href={secondary.url} target="_blank" rel="noopener">
+        <code>{secondary.url}</code>
+      </a>
+    </span>
+  {/if}
+</div>
diff --git a/web/src/lib/components/manage/SaveBar.svelte b/web/src/lib/components/manage/SaveBar.svelte
new file mode 100644
index 0000000..0fbc454
--- /dev/null
+++ b/web/src/lib/components/manage/SaveBar.svelte
@@ -0,0 +1,64 @@
+<!-- web/src/lib/components/manage/SaveBar.svelte -->
+<script lang="ts" module>
+  export type SaveState = "clean" | "dirty" | "saving" | "saved" | "error";
+</script>
+
+<script lang="ts">
+  import Icon from "../Icon.svelte";
+
+  // One save state for every editable screen, named in words and announced live
+  let {
+    state,
+    message = null,
+    onSave,
+    onDiscard,
+    saveLabel = "Save changes",
+    disabled = false,
+  }: {
+    state: SaveState;
+    message?: string | null;
+    onSave: () => void;
+    onDiscard: () => void;
+    saveLabel?: string;
+    disabled?: boolean;
+  } = $props();
+
+  const LABELS: Record<SaveState, string> = {
+    clean: "All changes saved",
+    dirty: "Unsaved changes",
+    saving: "Saving…",
+    saved: "Changes saved",
+    error: "Couldn't save changes. Try again.",
+  };
+
+  const TONES: Partial<Record<SaveState, string>> = {
+    dirty: "dirty",
+    saved: "ok",
+    error: "error",
+  };
+
+  const busy = $derived(state === "saving");
+  const canSave = $derived(!disabled && !busy && (state === "dirty" || state === "error"));
+</script>
+
+<div class="mg-savebar" data-state={state}>
+  <span class="mg-status" data-tone={TONES[state]} role="status" aria-live="polite">
+    {#if state === "saved"}<Icon name="check2" />{/if}
+    {#if state === "error"}<Icon name="exclamation-triangle" />{/if}
+    {#if state === "dirty"}<Icon name="pencil-fill" />{/if}
+    {#if state === "saving"}<Icon name="arrow-clockwise" />{/if}
+    {message ?? LABELS[state]}
+  </span>
+  <span class="spacer"></span>
+  <button
+    type="button"
+    class="quiet"
+    onclick={onDiscard}
+    disabled={busy || (state !== "dirty" && state !== "error")}
+  >
+    Discard
+  </button>
+  <button type="button" class="primary" onclick={onSave} disabled={!canSave}>
+    {busy ? "Saving…" : saveLabel}
+  </button>
+</div>
diff --git a/web/src/lib/components/manage/Section.svelte b/web/src/lib/components/manage/Section.svelte
new file mode 100644
index 0000000..09fd18e
--- /dev/null
+++ b/web/src/lib/components/manage/Section.svelte
@@ -0,0 +1,35 @@
+<!-- web/src/lib/components/manage/Section.svelte -->
+<script lang="ts">
+  import type { Snippet } from "svelte";
+
+  // A titled group of settings; the heading is a real h2 so the outline stays usable
+  let {
+    title,
+    description,
+    children,
+    actions,
+  }: {
+    title?: string;
+    description?: string | undefined;
+    children: Snippet;
+    actions?: Snippet;
+  } = $props();
+</script>
+
+<section class="mg-section">
+  {#if title}
+    <div class="mg-section-head">
+      <div class="mg-field-head">
+        <h2>{title}</h2>
+        {#if actions}
+          <span class="spacer"></span>
+          <div class="mg-actions">{@render actions()}</div>
+        {/if}
+      </div>
+      {#if description}
+        <p>{description}</p>
+      {/if}
+    </div>
+  {/if}
+  {@render children()}
+</section>
diff --git a/web/src/lib/components/manage/SlugEditor.svelte b/web/src/lib/components/manage/SlugEditor.svelte
new file mode 100644
index 0000000..6e2bdef
--- /dev/null
+++ b/web/src/lib/components/manage/SlugEditor.svelte
@@ -0,0 +1,272 @@
+<!-- web/src/lib/components/manage/SlugEditor.svelte -->
+<script lang="ts">
+  import { checkSlug, claimSlug, releaseSlug } from "$lib/manage.remote.ts";
+  import { mutate } from "$lib/mutate.ts";
+  import type { SlugScope, SlugStatus } from "$lib/types.ts";
+  import Icon from "../Icon.svelte";
+  import PublicUrl from "./PublicUrl.svelte";
+
+  // Checking as you type is advisory; the server re-runs the rules and claiming re-checks transactionally
+  let {
+    scope,
+    subjectId,
+    systemId,
+    status,
+    publicOrigin,
+    basePath,
+    idPath,
+    idLabel,
+  }: {
+    scope: SlugScope;
+    subjectId: string;
+    systemId: string;
+    status: SlugStatus;
+    publicOrigin: string;
+    /** Path prefix the address sits under, e.g. "/s" or "/s/doughmination". */
+    basePath: string;
+    /** The permanent ID address, which always works. */
+    idPath: string;
+    idLabel: string;
+  } = $props();
+
+  type Availability = {
+    state: "idle" | "checking" | "free" | "taken" | "invalid";
+    message?: string;
+  };
+
+  let value = $state("");
+  let availability = $state<Availability>({ state: "idle" });
+  let busy = $state(false);
+  let result = $state<{ tone: "ok" | "error"; text: string } | null>(null);
+  let confirmRelease = $state(false);
+
+  const minLength = $derived(scope === "system" ? 3 : 2);
+  const trimmed = $derived(value.trim().toLowerCase());
+  const previewUrl = $derived(`${publicOrigin}${basePath}/${trimmed || "your-address"}`);
+
+  $effect(() => {
+    const slug = trimmed;
+    if (slug.length === 0) {
+      availability = { state: "idle" };
+      return;
+    }
+    availability = { state: "checking" };
+    let stale = false;
+    const timer = setTimeout(async () => {
+      const check = await checkSlug({ scope, subjectId, systemId, slug });
+      // A slower answer for an older value must not overwrite the current one
+      if (stale) return;
+      if (check.available) availability = { state: "free" };
+      else if (check.message) availability = { state: "invalid", message: check.message };
+      else if (check.availableAt) {
+        availability = {
+          state: "taken",
+          message: `That address is held until ${formatDate(check.availableAt)}.`,
+        };
+      } else availability = { state: "taken", message: "That address is already in use." };
+    }, 350);
+    return () => {
+      stale = true;
+      clearTimeout(timer);
+    };
+  });
+
+  async function claim() {
+    busy = true;
+    result = null;
+    const response = await mutate(claimSlug({ scope, subjectId, slug: trimmed }));
+    busy = false;
+    if (!response.ok) {
+      result = { tone: "error", text: response.error ?? "Could not set that address." };
+      return;
+    }
+    const warning = response.warnings?.find((entry) => entry.code === "shadows_member_id");
+    result = {
+      tone: "ok",
+      text: [
+        `Address set to ${response.slug}.`,
+        response.previousSlug
+          ? `Your previous address ${response.previousSlug} is held for you for ${status.reservationDays} days.`
+          : "",
+        warning
+          ? `Note: this matches another member's PluralKit ID (${warning.memberHid}), so that member's ID address now points here instead.`
+          : "",
+      ]
+        .filter(Boolean)
+        .join(" "),
+    };
+    value = "";
+  }
+
+  async function release() {
+    busy = true;
+    result = null;
+    const response = await mutate(releaseSlug({ scope, subjectId }));
+    busy = false;
+    confirmRelease = false;
+    if (!response.ok) {
+      result = { tone: "error", text: response.error ?? "Could not release that address." };
+      return;
+    }
+    result = {
+      tone: "ok",
+      text: `Address released. It is held for you until ${response.reservedUntil ? formatDate(response.reservedUntil) : "later"}, then anyone can take it.`,
+    };
+  }
+
+  function formatDate(ms: number): string {
+    return new Date(ms).toLocaleDateString(undefined, {
+      day: "numeric",
+      month: "long",
+      year: "numeric",
+    });
+  }
+</script>
+
+<section class="mg-panel">
+  <h2>Public address</h2>
+  {#if status.current}
+    <p class="hint">This is where people find this page.</p>
+    <PublicUrl
+      url="{publicOrigin}{basePath}/{status.current.slug}"
+      secondary={{
+        url: `${publicOrigin}${idPath}`,
+        note: `The ${idLabel} address also works and always will:`,
+      }}
+    />
+  {:else}
+    <p class="hint">
+      This page is already public. A chosen address just makes it easier
+      to share.
+    </p>
+    <PublicUrl url="{publicOrigin}{idPath}" label="Current address" />
+    <p class="mg-note">
+      <Icon name="info-circle" />
+      <span>
+        No chosen address yet. The {idLabel} address above works now and
+        keeps working afterwards — a chosen one is simply friendlier to
+        pass around.
+      </span>
+    </p>
+  {/if}
+</section>
+
+<section class="mg-panel">
+  <h2>{status.current ? "Change the address" : "Choose an address"}</h2>
+  <p class="hint">
+    Lowercase letters, numbers and hyphens. At least {minLength} characters.
+  </p>
+
+  <div class="mg-field">
+    <label for="slug-input">New address</label>
+    <div style="display: flex; align-items: center; gap: 6px; flex-wrap: wrap">
+      <span class="desc" style="white-space: nowrap">
+        {publicOrigin.replace(/^https?:\/\//, "")}{basePath}/
+      </span>
+      <input
+        id="slug-input"
+        type="text"
+        bind:value
+        spellcheck="false"
+        autocapitalize="none"
+        autocomplete="off"
+        style="flex: 1 1 12rem"
+        aria-describedby="slug-feedback"
+        aria-invalid={availability.state === "invalid" || availability.state === "taken" ? "true" : undefined}
+        oninput={() => (result = null)}
+      />
+    </div>
+
+    <!-- Availability is stated in words, with an icon, never colour alone -->
+    <span
+      class={availability.state === "free" ? "desc" : "err"}
+      id="slug-feedback"
+      role="status"
+      aria-live="polite"
+    >
+      {#if availability.state === "idle"}&nbsp;{/if}
+      {#if availability.state === "checking"}Checking…{/if}
+      {#if availability.state === "free"}
+        <Icon name="check2" /> Available — {previewUrl}
+      {/if}
+      {#if availability.state === "invalid" || availability.state === "taken"}
+        <Icon name="exclamation-triangle" /> {availability.message}
+      {/if}
+    </span>
+  </div>
+
+  <button
+    type="button"
+    class="primary"
+    disabled={busy || availability.state !== "free"}
+    onclick={claim}
+  >
+    {busy ? "Saving…" : status.current ? "Change address" : "Set address"}
+  </button>
+
+  {#if status.current}
+    <p class="desc" style="margin-top: 10px">
+      Changing the address holds the old one for you for {status.reservationDays} days
+      before anyone else can take it. Links to the old address stop working
+      when you change it, so share the new one.
+    </p>
+  {/if}
+</section>
+
+{#if status.reservations.length > 0}
+  <section class="mg-panel">
+    <h2>Addresses held for you</h2>
+    <p class="hint">
+      Released addresses stay reserved for {status.reservationDays} days. You can take one
+      back by entering it above; after that anyone can claim it.
+    </p>
+    <ul class="mg-list">
+      {#each status.reservations as reservation (reservation.slug)}
+        <li class="mg-card">
+          <span class="grow">
+            <span class="title">{reservation.slug}</span>
+            <span class="sub">Held until {formatDate(reservation.until)}</span>
+          </span>
+          <button type="button" onclick={() => (value = reservation.slug)}>Take it back</button>
+        </li>
+      {/each}
+    </ul>
+  </section>
+{/if}
+
+{#if status.current}
+  <section class="mg-panel">
+    <h2>Release the address</h2>
+    <p class="hint">
+      This page stays public either way — it goes back to its {idLabel}
+      address. The released address is held for you for {status.reservationDays} days.
+    </p>
+    {#if confirmRelease}
+      <div style="display: flex; gap: 8px; flex-wrap: wrap; align-items: center">
+        <span class="desc">Release <strong>{status.current.slug}</strong>?</span>
+        <button type="button" class="danger" onclick={release} disabled={busy}>
+          Yes, release it
+        </button>
+        <button type="button" class="ghost" onclick={() => (confirmRelease = false)}>
+          Cancel
+        </button>
+      </div>
+    {:else}
+      <button type="button" class="danger" onclick={() => (confirmRelease = true)}>
+        Release address
+      </button>
+    {/if}
+  </section>
+{/if}
+
+{#if result}
+  <p
+    class="mg-note"
+    data-tone={result.tone === "error" ? "warn" : undefined}
+    role="status"
+    aria-live="polite"
+  >
+    <Icon name={result.tone === "error" ? "exclamation-triangle" : "check2"} />
+    <span>{result.text}</span>
+  </p>
+{/if}
diff --git a/web/src/lib/components/manage/SocialLinksEditor.svelte b/web/src/lib/components/manage/SocialLinksEditor.svelte
new file mode 100644
index 0000000..ef3d5cb
--- /dev/null
+++ b/web/src/lib/components/manage/SocialLinksEditor.svelte
@@ -0,0 +1,218 @@
+<!-- web/src/lib/components/manage/SocialLinksEditor.svelte -->
+<script lang="ts">
+  import {
+    MAX_SOCIAL_LINKS,
+    SOCIAL_PLATFORMS,
+    SOCIAL_URL_MESSAGES,
+    validateSocialUrl,
+  } from "@pkviewer/shared";
+  import { useUnsavedGuard } from "$lib/unsavedGuard.svelte.ts";
+  import type { ActionResult, EditableLink } from "$lib/types.ts";
+  import Icon from "../Icon.svelte";
+
+  // Links are data, never visited: no preview fetch, no favicon lookup (SSRF).
+  // The whole ordered list saves at once, so reorder, edit and delete cannot interleave.
+  let {
+    initialLinks,
+    onSave,
+    ownerLabel,
+  }: {
+    initialLinks: EditableLink[];
+    onSave: (links: EditableLink[]) => Promise<ActionResult>;
+    ownerLabel: string;
+  } = $props();
+
+  // svelte-ignore state_referenced_locally
+  let links = $state<EditableLink[]>(initialLinks.map((link) => ({ ...link })));
+  // svelte-ignore state_referenced_locally
+  let saved = $state<EditableLink[]>(initialLinks.map((link) => ({ ...link })));
+  let status = $state<"idle" | "saving" | "ok" | "error">("idle");
+  let message = $state<string | null>(null);
+
+  const dirty = $derived(JSON.stringify(links) !== JSON.stringify(saved));
+  useUnsavedGuard(() => dirty);
+
+  // A courtesy so the problem shows beside the field; the server revalidates regardless
+  const errors = $derived(
+    links.map((link) => {
+      if (link.url.trim().length === 0) return null;
+      const check = validateSocialUrl(link.url);
+      return check.ok ? null : SOCIAL_URL_MESSAGES[check.reason];
+    }),
+  );
+  const hasErrors = $derived(errors.some((entry) => entry !== null));
+
+  function move(index: number, delta: number) {
+    const target = index + delta;
+    if (target < 0 || target >= links.length) return;
+    const [item] = links.splice(index, 1);
+    links.splice(target, 0, item!);
+    status = "idle";
+  }
+
+  async function save() {
+    status = "saving";
+    const usable = $state.snapshot(links).filter((link) => link.url.trim().length > 0);
+    const outcome = await onSave(usable);
+    if (outcome.ok) {
+      links = usable.map((link) => ({ ...link }));
+      saved = usable.map((link) => ({ ...link }));
+      status = "ok";
+      message = "Saved.";
+    } else {
+      status = "error";
+      message = outcome.error ?? "Could not save. Please try again.";
+    }
+  }
+</script>
+
+<section class="mg-panel">
+  <h2>Links on {ownerLabel}</h2>
+  <p class="hint">
+    Shown as links on the public page. pkviewer never visits them, so
+    nothing is loaded from these addresses on your visitors' behalf.
+  </p>
+
+  {#if links.length === 0}
+    <p class="desc">No links yet.</p>
+  {:else}
+    <ul class="mg-list">
+      {#each links as link, index (index)}
+        {@const platform = SOCIAL_PLATFORMS.find((entry) => entry.id === link.platform)}
+        {@const errorId = `link-${index}-error`}
+        {@const name = link.label || platform?.label || "link"}
+        <li class="mg-panel" style="box-shadow: none">
+          <div class="mg-grid">
+            <div class="mg-field">
+              <label for="link-{index}-platform">Type</label>
+              <select
+                id="link-{index}-platform"
+                bind:value={link.platform}
+                onchange={() => (status = "idle")}
+              >
+                {#each SOCIAL_PLATFORMS as option (option.id)}
+                  <option value={option.id}>{option.label}</option>
+                {/each}
+              </select>
+            </div>
+
+            <div class="mg-field">
+              <label for="link-{index}-label">Label (optional)</label>
+              <input
+                id="link-{index}-label"
+                type="text"
+                bind:value={link.label}
+                maxlength="60"
+                placeholder={platform?.label ?? ""}
+                oninput={() => (status = "idle")}
+              />
+              <span class="desc">What the link says. Defaults to the type.</span>
+            </div>
+
+            <div class="mg-field">
+              <label for="link-{index}-url">Address</label>
+              <input
+                id="link-{index}-url"
+                type="url"
+                bind:value={link.url}
+                inputmode="url"
+                spellcheck="false"
+                placeholder={platform?.placeholder ?? "https://"}
+                aria-invalid={errors[index] ? "true" : undefined}
+                aria-describedby={errors[index] ? errorId : undefined}
+                oninput={() => (status = "idle")}
+              />
+              {#if errors[index]}
+                <span class="err" id={errorId}>{errors[index]}</span>
+              {/if}
+            </div>
+          </div>
+
+          <div style="display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap">
+            <button
+              type="button"
+              class="icon"
+              onclick={() => move(index, -1)}
+              disabled={index === 0}
+              aria-label="Move {name} up"
+            >
+              <Icon name="arrow-up" />
+            </button>
+            <button
+              type="button"
+              class="icon"
+              onclick={() => move(index, 1)}
+              disabled={index === links.length - 1}
+              aria-label="Move {name} down"
+            >
+              <Icon name="arrow-down" />
+            </button>
+            <span style="flex: 1"></span>
+            <button
+              type="button"
+              class="danger"
+              onclick={() => {
+                links.splice(index, 1);
+                status = "idle";
+              }}
+            >
+              <Icon name="trash" /> Remove
+            </button>
+          </div>
+        </li>
+      {/each}
+    </ul>
+  {/if}
+
+  <p style="margin-top: 14px; margin-bottom: 0">
+    <button
+      type="button"
+      onclick={() => {
+        links.push({ platform: "website", label: "", url: "" });
+        status = "idle";
+      }}
+      disabled={links.length >= MAX_SOCIAL_LINKS}
+    >
+      <Icon name="plus" /> Add a link
+    </button>
+    {#if links.length >= MAX_SOCIAL_LINKS}
+      <span class="desc"> Maximum of {MAX_SOCIAL_LINKS} links.</span>
+    {/if}
+  </p>
+</section>
+
+<div class="mg-savebar">
+  <span
+    class="mg-status"
+    data-tone={status === "ok" ? "ok" : status === "error" || hasErrors ? "error" : dirty ? "dirty" : undefined}
+    role="status"
+    aria-live="polite"
+  >
+    {#if status === "error" || hasErrors}<Icon name="exclamation-triangle" />{/if}
+    {#if status === "ok"}<Icon name="check2" />{/if}
+    {hasErrors
+      ? "Fix the highlighted addresses before saving"
+      : (message ?? (dirty ? "Unsaved changes" : "No changes"))}
+  </span>
+  <span class="spacer"></span>
+  <button
+    type="button"
+    class="ghost"
+    onclick={() => {
+      links = saved.map((link) => ({ ...link }));
+      status = "idle";
+      message = null;
+    }}
+    disabled={!dirty}
+  >
+    Discard changes
+  </button>
+  <button
+    type="button"
+    class="primary"
+    onclick={save}
+    disabled={!dirty || hasErrors || status === "saving"}
+  >
+    {status === "saving" ? "Saving…" : "Save links"}
+  </button>
+</div>
diff --git a/web/src/lib/components/manage/SystemNav.svelte b/web/src/lib/components/manage/SystemNav.svelte
new file mode 100644
index 0000000..537cb63
--- /dev/null
+++ b/web/src/lib/components/manage/SystemNav.svelte
@@ -0,0 +1,35 @@
+<!-- web/src/lib/components/manage/SystemNav.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import type { IconName } from "$lib/icons.ts";
+  import Icon from "../Icon.svelte";
+
+  let { systemId }: { systemId: string } = $props();
+
+  const SECTIONS: Array<{ slug: string; label: string; icon: IconName }> = [
+    { slug: "", label: "Overview", icon: "grid-1x2" },
+    { slug: "address", label: "Public address", icon: "globe2" },
+    { slug: "appearance", label: "Appearance", icon: "palette-fill" },
+    { slug: "directory", label: "Layout", icon: "sliders" },
+    { slug: "links", label: "Social links", icon: "link-45deg" },
+    { slug: "members", label: "Members", icon: "people" },
+    // Last and "Advanced" on purpose: the only control that can produce a broken page
+    { slug: "css", label: "Advanced CSS", icon: "code-slash" },
+  ];
+
+  const base = $derived(`/manage/${systemId}`);
+  const pathname = $derived(page.url.pathname);
+</script>
+
+<nav class="mg-nav" aria-label="System settings">
+  {#each SECTIONS as section (section.label)}
+    {@const href = section.slug ? `${base}/${section.slug}` : base}
+    {@const active = section.slug
+      ? pathname.startsWith(href)
+      : pathname === base || pathname === `${base}/`}
+    <a {href} aria-current={active ? "page" : undefined}>
+      <Icon name={section.icon} />
+      {section.label}
+    </a>
+  {/each}
+</nav>
diff --git a/web/src/lib/components/manage/ThemeEditor.svelte b/web/src/lib/components/manage/ThemeEditor.svelte
new file mode 100644
index 0000000..de1471c
--- /dev/null
+++ b/web/src/lib/components/manage/ThemeEditor.svelte
@@ -0,0 +1,317 @@
+<!-- web/src/lib/components/manage/ThemeEditor.svelte -->
+<script lang="ts">
+  import {
+    FONTS,
+    FONT_IDS,
+    PRESETS,
+    THEME_TOKENS,
+    resolveTheme,
+    themeToCssVars,
+    type TokenDef,
+  } from "@pkviewer/shared";
+  import { useUnsavedGuard } from "$lib/unsavedGuard.svelte.ts";
+  import type { ActionResult } from "$lib/types.ts";
+  import Icon from "../Icon.svelte";
+  import SaveBar, { type SaveState } from "./SaveBar.svelte";
+  import Section from "./Section.svelte";
+  import ThemePreview from "./ThemePreview.svelte";
+
+  /**
+   * One editor, two levels: a system sets the default, a member overrides it.
+   * Inheritance is UI, never data the user authors: a control either follows
+   * what it inherits or is set, with a button to move between the two.
+   */
+  type Level = "system" | "member";
+
+  let {
+    level,
+    initialValues,
+    inheritedFrom,
+    onSave,
+    previewName,
+  }: {
+    level: Level;
+    /** Values explicitly set at THIS level. Absent key = inheriting. */
+    initialValues: Record<string, string | null>;
+    /** The layer beneath: platform defaults for a system, system theme for a member. */
+    inheritedFrom: Record<string, string>;
+    onSave: (values: Record<string, string | null>) => Promise<ActionResult>;
+    previewName: string;
+  } = $props();
+
+  const GROUPS: Array<{ title: string; hint: string; keys: string[] }> = [
+    {
+      title: "Colours",
+      hint: "The palette your pages are drawn from. Every other setting uses these.",
+      keys: ["color.page", "color.surface", "color.text", "color.muted", "color.accent", "color.border"],
+    },
+    {
+      title: "Typography",
+      hint: "The typefaces and reading size your pages use.",
+      keys: ["font.body", "font.heading", "font.size"],
+    },
+    {
+      title: "Shape and surfaces",
+      hint: "How cards, edges and avatars are drawn.",
+      keys: ["shape.radius", "surface.style", "avatar.shape"],
+    },
+    {
+      title: "Spacing",
+      hint: "How much room everything is given.",
+      keys: ["density"],
+    },
+    {
+      title: "Light and dark",
+      hint: "Follow the reader's device, or commit to one.",
+      keys: ["color.scheme"],
+    },
+  ];
+
+  // svelte-ignore state_referenced_locally
+  let values = $state<Record<string, string | null>>({ ...initialValues });
+  // svelte-ignore state_referenced_locally
+  let saved = $state<Record<string, string | null>>({ ...initialValues });
+  let status = $state<"idle" | "saving" | "ok" | "error">("idle");
+  let message = $state<string | null>(null);
+  let presetNote = $state<string | null>(null);
+
+  const dirty = $derived(JSON.stringify(values) !== JSON.stringify(saved));
+  useUnsavedGuard(() => dirty);
+
+  // Resolved through the SAME functions the public renderer uses: one source of truth
+  const preview = $derived.by(() => {
+    const current = $state.snapshot(values);
+    const resolved =
+      level === "system" ? resolveTheme(current, {}) : resolveTheme(inheritedFrom, current);
+    return {
+      vars: themeToCssVars(resolved.light),
+      darkVars: themeToCssVars(resolved.dark),
+      scheme: resolved.scheme,
+    };
+  });
+
+  const editableKeys = $derived(
+    new Set(THEME_TOKENS.filter((token) => level === "system" || token.memberOverridable).map((token) => token.key)),
+  );
+
+  function setValue(key: string, value: string) {
+    values[key] = value;
+    status = "idle";
+  }
+
+  // Back to inheriting: the key is removed, which is exactly what "absent means inherit" is
+  function inherit(key: string) {
+    delete values[key];
+    status = "idle";
+  }
+
+  // Member-only: the explicit-null state, pinning a control to the platform default
+  function resetToPlatform(key: string) {
+    values[key] = null;
+    status = "idle";
+  }
+
+  function applyPreset(presetId: string) {
+    const preset = PRESETS.find((entry) => entry.id === presetId);
+    if (!preset) return;
+    // At member level a preset becomes member configuration; it never changes the system
+    for (const [key, value] of Object.entries(preset.tokens)) {
+      if (editableKeys.has(key)) values[key] = value;
+    }
+    status = "idle";
+    presetNote = `${preset.name} applied — review it below, then save.`;
+  }
+
+  async function save() {
+    status = "saving";
+    message = null;
+    const outcome = await onSave($state.snapshot(values));
+    if (outcome.ok) {
+      saved = { ...values };
+      status = "ok";
+      presetNote = null;
+    } else {
+      status = "error";
+      message = outcome.error ?? null;
+    }
+  }
+
+  const saveState: SaveState = $derived(
+    status === "saving"
+      ? "saving"
+      : status === "error"
+        ? "error"
+        : dirty
+          ? "dirty"
+          : status === "ok"
+            ? "saved"
+            : "clean",
+  );
+
+  function sentence(value: string): string {
+    return value.charAt(0).toUpperCase() + value.slice(1).replace(/-/g, " ");
+  }
+</script>
+
+{#snippet control(def: TokenDef, id: string, value: string)}
+  {#if def.type === "color"}
+    <span class="mg-colour">
+      <input
+        type="color"
+        {id}
+        value={/^#[0-9A-Fa-f]{6}$/.test(value) ? value : "#000000"}
+        aria-describedby="{id}-desc"
+        oninput={(event) => setValue(def.key, event.currentTarget.value.toUpperCase())}
+      />
+      <input
+        type="text"
+        {value}
+        aria-label="{def.label} hex value"
+        spellcheck="false"
+        oninput={(event) => setValue(def.key, event.currentTarget.value.toUpperCase())}
+      />
+    </span>
+  {:else if def.type === "font"}
+    <select
+      {id}
+      value={FONT_IDS.includes(value as never) ? value : def.default}
+      aria-describedby="{id}-desc"
+      onchange={(event) => setValue(def.key, event.currentTarget.value)}
+    >
+      {#each FONT_IDS as fontId (fontId)}
+        <option value={fontId}>{FONTS[fontId].label} — {FONTS[fontId].note}</option>
+      {/each}
+    </select>
+  {:else if def.type === "enum"}
+    <select
+      {id}
+      value={def.values.includes(value) ? value : def.default}
+      aria-describedby="{id}-desc"
+      onchange={(event) => setValue(def.key, event.currentTarget.value)}
+    >
+      {#each def.values as option (option)}
+        <option value={option}>{sentence(option)}</option>
+      {/each}
+    </select>
+  {:else}
+    <input
+      type="text"
+      {id}
+      {value}
+      aria-describedby="{id}-desc"
+      oninput={(event) => setValue(def.key, event.currentTarget.value)}
+    />
+  {/if}
+{/snippet}
+
+{#snippet tokenField(def: TokenDef)}
+  {@const id = `tok-${def.key.replace(/\./g, "-")}`}
+  {@const value = values[def.key]}
+  {@const explicitlySet = Object.hasOwn(values, def.key)}
+  {@const isReset = explicitlySet && value === null}
+  {@const fieldState = explicitlySet ? "override" : "inherit"}
+  {@const effective = explicitlySet && typeof value === "string" ? value : (inheritedFrom[def.key] ?? "")}
+  <!-- State is a word and a border, never colour alone -->
+  <div class="mg-field" data-state={fieldState}>
+    <div class="mg-field-head">
+      <label for={id}>{def.label}</label>
+      <span class="spacer"></span>
+      <span class="mg-inherit" data-state={fieldState}>
+        {#if explicitlySet}<Icon name="pencil-square" />{/if}
+        {level === "system"
+          ? explicitlySet ? "Custom" : "Default"
+          : isReset ? "Platform default" : explicitlySet ? "Custom" : "Using system appearance"}
+      </span>
+    </div>
+
+    {@render control(def, id, effective)}
+
+    <span class="desc" id="{id}-desc">{def.help}</span>
+
+    {#if explicitlySet}
+      <span>
+        <button type="button" class="ghost" onclick={() => inherit(def.key)}>
+          <Icon name="arrow-counterclockwise" />
+          {level === "system" ? "Use pkviewer default" : "Use system appearance"}
+        </button>
+      </span>
+    {:else if level === "member"}
+      <span>
+        <button type="button" class="ghost" onclick={() => setValue(def.key, effective)}>
+          <Icon name="pencil-square" />
+          Override for this member
+        </button>
+        <button type="button" class="ghost" onclick={() => resetToPlatform(def.key)}>
+          Use pkviewer default instead
+        </button>
+      </span>
+    {/if}
+  </div>
+{/snippet}
+
+<Section
+  title="Start from a preset"
+  description={level === "system"
+    ? "A preset fills in every setting below. You can change anything afterwards."
+    : "Applying a preset here sets these values for this member only. It does not change the system."}
+>
+  <div class="mg-presets">
+    {#each PRESETS as preset (preset.id)}
+      <button type="button" class="mg-preset" onclick={() => applyPreset(preset.id)}>
+        <span class="pname">{preset.name}</span>
+        <span class="mg-swatches" aria-hidden="true">
+          {#each ["color.page", "color.surface", "color.text", "color.accent"] as key (key)}
+            <span class="mg-swatch" style="background: {preset.tokens[key] ?? '#fff'}"></span>
+          {/each}
+        </span>
+        <span class="pchar">{preset.character}</span>
+      </button>
+    {/each}
+  </div>
+  {#if presetNote}
+    <p class="mg-note" role="status" style="margin-top: var(--mg-3)">
+      <span>{presetNote}</span>
+    </p>
+  {/if}
+</Section>
+
+<Section
+  title="Preview"
+  description="A representative sample. Open the public page to see the real thing."
+>
+  <ThemePreview
+    vars={preview.vars}
+    darkVars={preview.darkVars}
+    scheme={preview.scheme}
+    name={previewName}
+  />
+</Section>
+
+{#each GROUPS as group (group.title)}
+  {@const keys = group.keys.filter((key) => editableKeys.has(key))}
+  {#if keys.length > 0}
+    <Section title={group.title} description={group.hint}>
+      <div class="mg-grid">
+        {#each keys as key (key)}
+          {@const def = THEME_TOKENS.find((token) => token.key === key)}
+          {#if def}
+            {@render tokenField(def)}
+          {/if}
+        {/each}
+      </div>
+    </Section>
+  {/if}
+{/each}
+
+<SaveBar
+  state={saveState}
+  {message}
+  saveLabel="Save appearance"
+  onSave={save}
+  onDiscard={() => {
+    values = { ...saved };
+    status = "idle";
+    message = null;
+    presetNote = null;
+  }}
+/>
diff --git a/web/src/lib/components/manage/ThemePreview.svelte b/web/src/lib/components/manage/ThemePreview.svelte
new file mode 100644
index 0000000..d10e0b2
--- /dev/null
+++ b/web/src/lib/components/manage/ThemePreview.svelte
@@ -0,0 +1,110 @@
+<!-- web/src/lib/components/manage/ThemePreview.svelte -->
+<script lang="ts">
+  import Icon from "../Icon.svelte";
+  import TokenStyle from "../TokenStyle.svelte";
+
+  // Not an iframe: the same --pkv-* properties the public renderer uses, with local sample content
+  let {
+    vars,
+    darkVars,
+    scheme,
+    name,
+  }: {
+    vars: Record<string, string>;
+    darkVars: Record<string, string>;
+    scheme: "auto" | "light" | "dark";
+    name: string;
+  } = $props();
+</script>
+
+<div id="pkv-preview" class="pkv-preview">
+  <TokenStyle {vars} {darkVars} colorScheme={scheme} scope={{ elementId: "pkv-preview" }} />
+
+  <div class="pv-head">
+    <div class="pv-avatar" aria-hidden="true">
+      <Icon name="person-circle" size={26} />
+    </div>
+    <div>
+      <p class="pv-name">{name}</p>
+      <p class="pv-id">they/them · 12 members</p>
+    </div>
+  </div>
+
+  <p class="pv-body">
+    This is how a description reads, with a <span class="pv-link">link</span> in it.
+  </p>
+
+  <div class="pv-cards">
+    {#each ["Ash", "Juniper", "Wren"] as member (member)}
+      <div class="pv-card">
+        <div>{member}</div>
+        <div class="pv-sub">she/her</div>
+      </div>
+    {/each}
+  </div>
+</div>
+
+<style>
+  .pkv-preview {
+    background: var(--pkv-color-page);
+    color: var(--pkv-color-text);
+    font-family: var(--pkv-font-body);
+    font-size: var(--pkv-font-size);
+    border: 1px solid var(--mg-line);
+    border-radius: var(--mg-radius);
+    padding: calc(1.25rem * var(--pkv-density));
+    overflow: hidden;
+  }
+  .pv-name {
+    font-family: var(--pkv-font-heading);
+    font-size: 1.55em;
+    font-weight: 600;
+    line-height: 1.15;
+    margin: 0;
+  }
+  .pv-id {
+    color: var(--pkv-color-muted);
+    font-size: 0.85em;
+    margin: 2px 0 0;
+  }
+  .pv-body {
+    margin: calc(0.75rem * var(--pkv-density)) 0 0;
+    line-height: 1.55;
+  }
+  .pv-link {
+    color: var(--pkv-color-accent);
+    text-decoration: underline;
+  }
+  .pv-head {
+    display: flex;
+    gap: calc(0.9rem * var(--pkv-density));
+    align-items: center;
+  }
+  .pv-avatar {
+    width: 56px;
+    height: 56px;
+    flex: none;
+    border-radius: var(--pkv-avatar-radius);
+    background: var(--pkv-color-border);
+    display: grid;
+    place-items: center;
+    color: var(--pkv-color-muted);
+  }
+  .pv-cards {
+    margin-top: calc(1rem * var(--pkv-density));
+    display: grid;
+    gap: calc(0.6rem * var(--pkv-density));
+    grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
+  }
+  .pv-card {
+    background: var(--pkv-surface-bg);
+    border: 1px solid var(--pkv-surface-border);
+    border-radius: var(--pkv-radius);
+    padding: calc(0.7rem * var(--pkv-density) * var(--pkv-surface-pad) + 0.2rem);
+    font-size: 0.9em;
+  }
+  .pv-sub {
+    color: var(--pkv-color-muted);
+    font-size: 0.85em;
+  }
+</style>
diff --git a/web/src/lib/config.ts b/web/src/lib/config.ts
new file mode 100644
index 0000000..549787a
--- /dev/null
+++ b/web/src/lib/config.ts
@@ -0,0 +1,23 @@
+/* web/src/lib/config.ts */
+import { env } from "$env/dynamic/public";
+
+/**
+ * Web-tier configuration that is safe on both server and client.
+ *
+ * The deployment origin is read at runtime so moving hosts is an env change,
+ * not a rebuild (decision 1). The internal API origin lives in
+ * $lib/server/api.ts and never reaches the browser.
+ */
+export const site = {
+  /** The one user-facing origin: /, /login, /auth, /manage and /s all live here. */
+  get publicOrigin(): string {
+    return (env.PUBLIC_ORIGIN || "http://system.localhost:3000").replace(/\/+$/, "");
+  },
+
+  /**
+   * Where the documentation lives. Hardcoded: it is not pkviewer's host but a
+   * fixed destination pkviewer links to, like a repository URL. Its footer is
+   * also the route to support.
+   */
+  docsUrl: "https://docs.doughmination.gay",
+};
diff --git a/web/src/lib/icons.ts b/web/src/lib/icons.ts
new file mode 100644
index 0000000..298332e
--- /dev/null
+++ b/web/src/lib/icons.ts
@@ -0,0 +1,101 @@
+/* web/src/lib/icons.ts */
+// Only the icons pkviewer uses, so the bundle carries a few dozen, not two thousand
+import ArrowClockwise from "bootstrap-icons/icons/arrow-clockwise.svg?raw";
+import ArrowCounterclockwise from "bootstrap-icons/icons/arrow-counterclockwise.svg?raw";
+import ArrowDown from "bootstrap-icons/icons/arrow-down.svg?raw";
+import ArrowLeft from "bootstrap-icons/icons/arrow-left.svg?raw";
+import ArrowRepeat from "bootstrap-icons/icons/arrow-repeat.svg?raw";
+import ArrowRight from "bootstrap-icons/icons/arrow-right.svg?raw";
+import ArrowUp from "bootstrap-icons/icons/arrow-up.svg?raw";
+import Award from "bootstrap-icons/icons/award.svg?raw";
+import BoxArrowUpRight from "bootstrap-icons/icons/box-arrow-up-right.svg?raw";
+import Bug from "bootstrap-icons/icons/bug.svg?raw";
+import Check2 from "bootstrap-icons/icons/check2.svg?raw";
+import Check2Circle from "bootstrap-icons/icons/check2-circle.svg?raw";
+import ChevronRight from "bootstrap-icons/icons/chevron-right.svg?raw";
+import Clipboard from "bootstrap-icons/icons/clipboard.svg?raw";
+import ClipboardCheck from "bootstrap-icons/icons/clipboard-check.svg?raw";
+import ClockHistory from "bootstrap-icons/icons/clock-history.svg?raw";
+import Code from "bootstrap-icons/icons/code.svg?raw";
+import CodeSlash from "bootstrap-icons/icons/code-slash.svg?raw";
+import Discord from "bootstrap-icons/icons/discord.svg?raw";
+import ExclamationTriangle from "bootstrap-icons/icons/exclamation-triangle.svg?raw";
+import EyeSlash from "bootstrap-icons/icons/eye-slash.svg?raw";
+import Gem from "bootstrap-icons/icons/gem.svg?raw";
+import Github from "bootstrap-icons/icons/github.svg?raw";
+import Globe from "bootstrap-icons/icons/globe.svg?raw";
+import Globe2 from "bootstrap-icons/icons/globe2.svg?raw";
+import Grid1x2 from "bootstrap-icons/icons/grid-1x2.svg?raw";
+import HeartFill from "bootstrap-icons/icons/heart-fill.svg?raw";
+import InfoCircle from "bootstrap-icons/icons/info-circle.svg?raw";
+import JournalText from "bootstrap-icons/icons/journal-text.svg?raw";
+import Link45deg from "bootstrap-icons/icons/link-45deg.svg?raw";
+import Mastodon from "bootstrap-icons/icons/mastodon.svg?raw";
+import PaletteFill from "bootstrap-icons/icons/palette-fill.svg?raw";
+import PatchCheckFill from "bootstrap-icons/icons/patch-check-fill.svg?raw";
+import PencilFill from "bootstrap-icons/icons/pencil-fill.svg?raw";
+import PencilSquare from "bootstrap-icons/icons/pencil-square.svg?raw";
+import People from "bootstrap-icons/icons/people.svg?raw";
+import PeopleFill from "bootstrap-icons/icons/people-fill.svg?raw";
+import PersonCircle from "bootstrap-icons/icons/person-circle.svg?raw";
+import Plus from "bootstrap-icons/icons/plus.svg?raw";
+import PlusLg from "bootstrap-icons/icons/plus-lg.svg?raw";
+import QuestionCircle from "bootstrap-icons/icons/question-circle.svg?raw";
+import ShieldFill from "bootstrap-icons/icons/shield-fill.svg?raw";
+import Sliders from "bootstrap-icons/icons/sliders.svg?raw";
+import StarFill from "bootstrap-icons/icons/star-fill.svg?raw";
+import Trash from "bootstrap-icons/icons/trash.svg?raw";
+import Twitch from "bootstrap-icons/icons/twitch.svg?raw";
+import Youtube from "bootstrap-icons/icons/youtube.svg?raw";
+
+export const ICONS = {
+  "arrow-clockwise": ArrowClockwise,
+  "arrow-counterclockwise": ArrowCounterclockwise,
+  "arrow-down": ArrowDown,
+  "arrow-left": ArrowLeft,
+  "arrow-repeat": ArrowRepeat,
+  "arrow-right": ArrowRight,
+  "arrow-up": ArrowUp,
+  "award": Award,
+  "box-arrow-up-right": BoxArrowUpRight,
+  "bug": Bug,
+  "check2": Check2,
+  "check2-circle": Check2Circle,
+  "chevron-right": ChevronRight,
+  "clipboard": Clipboard,
+  "clipboard-check": ClipboardCheck,
+  "clock-history": ClockHistory,
+  "code": Code,
+  "code-slash": CodeSlash,
+  "discord": Discord,
+  "exclamation-triangle": ExclamationTriangle,
+  "eye-slash": EyeSlash,
+  "gem": Gem,
+  "github": Github,
+  "globe": Globe,
+  "globe2": Globe2,
+  "grid-1x2": Grid1x2,
+  "heart-fill": HeartFill,
+  "info-circle": InfoCircle,
+  "journal-text": JournalText,
+  "link-45deg": Link45deg,
+  "mastodon": Mastodon,
+  "palette-fill": PaletteFill,
+  "patch-check-fill": PatchCheckFill,
+  "pencil-fill": PencilFill,
+  "pencil-square": PencilSquare,
+  "people": People,
+  "people-fill": PeopleFill,
+  "person-circle": PersonCircle,
+  "plus": Plus,
+  "plus-lg": PlusLg,
+  "question-circle": QuestionCircle,
+  "shield-fill": ShieldFill,
+  "sliders": Sliders,
+  "star-fill": StarFill,
+  "trash": Trash,
+  "twitch": Twitch,
+  "youtube": Youtube,
+} as const;
+
+export type IconName = keyof typeof ICONS;
diff --git a/web/src/lib/manage.remote.ts b/web/src/lib/manage.remote.ts
new file mode 100644
index 0000000..16e660e
--- /dev/null
+++ b/web/src/lib/manage.remote.ts
@@ -0,0 +1,298 @@
+/* web/src/lib/manage.remote.ts */
+import { command } from "$app/server";
+import type { CssIssue } from "@pkviewer/shared";
+import { discoverSystems as discover, manageApi, seg } from "$lib/server/api.ts";
+import type { ActionResult, EditableLink, SlugScope } from "$lib/types.ts";
+
+/**
+ * Remote commands for the management UI.
+ *
+ * Thin: they forward to the API, which re-validates everything and re-checks
+ * the grant. The client is never trusted to decide what it may manage, and
+ * these do not decide it either. Ids go through seg() so none can walk routes.
+ */
+
+function messageFor(error: string, status: number): string {
+  switch (error) {
+    case "unauthenticated":
+      return "Your session has expired. Sign in again.";
+    case "not_found":
+      return "You do not have access to this system.";
+    case "validation_failed":
+      return "Some settings were not accepted. Check the values and try again.";
+    case "api_unreachable":
+      return "Could not reach pkviewer. Check your connection and try again.";
+    default:
+      return status >= 500 ? "Something went wrong saving. Please try again." : "Could not save.";
+  }
+}
+
+function result(response: { ok: true } | { ok: false; error: string; status: number }): ActionResult {
+  return response.ok
+    ? { ok: true }
+    : { ok: false, error: messageFor(response.error, response.status) };
+}
+
+// ------------------------------------------------------------ appearance
+
+export const saveSystemTheme = command(
+  "unchecked",
+  async (input: { systemId: string; tokens: Record<string, string | null> }) =>
+    result(await manageApi.put(`/manage/systems/${seg(input.systemId)}/theme`, { tokens: input.tokens })),
+);
+
+export const saveSystemComposition = command(
+  "unchecked",
+  async (input: { systemId: string; composition: Record<string, string> }) =>
+    result(
+      await manageApi.put(`/manage/systems/${seg(input.systemId)}/theme`, {
+        composition: input.composition,
+      }),
+    ),
+);
+
+export const saveMemberTheme = command(
+  "unchecked",
+  async (input: { systemId: string; memberRef: string; tokens: Record<string, string | null> }) =>
+    result(
+      await manageApi.put(
+        `/manage/systems/${seg(input.systemId)}/members/${seg(input.memberRef)}/theme`,
+        { tokens: input.tokens },
+      ),
+    ),
+);
+
+export const saveSystemSocials = command(
+  "unchecked",
+  async (input: { systemId: string; links: EditableLink[] }) =>
+    result(await manageApi.put(`/manage/systems/${seg(input.systemId)}/socials`, { links: input.links })),
+);
+
+export const saveMemberSocials = command(
+  "unchecked",
+  async (input: { systemId: string; memberRef: string; links: EditableLink[] }) =>
+    result(
+      await manageApi.put(
+        `/manage/systems/${seg(input.systemId)}/members/${seg(input.memberRef)}/socials`,
+        { links: input.links },
+      ),
+    ),
+);
+
+// ------------------------------------------------------------- addresses
+
+// All validation and the reservation lifecycle live in the API; these only translate its answers
+
+export const checkSlug = command(
+  "unchecked",
+  async (input: {
+    scope: SlugScope;
+    subjectId: string;
+    systemId: string;
+    slug: string;
+  }): Promise<{ available: boolean; message?: string; availableAt?: number }> => {
+    const params = new URLSearchParams({
+      scope: input.scope,
+      subjectId: input.subjectId,
+      slug: input.slug,
+      systemId: input.systemId,
+    });
+    const response = await manageApi.get<{
+      available: boolean;
+      reason?: string;
+      until?: number;
+      message?: string;
+    }>(`/manage/slugs/check?${params.toString()}`);
+
+    if (!response.ok) return { available: false, message: "Could not check that address." };
+    const value = response.value;
+    if (value.available) return { available: true };
+    return {
+      available: false,
+      ...(value.message ? { message: value.message } : {}),
+      ...(value.until ? { availableAt: value.until } : {}),
+    };
+  },
+);
+
+export type ClaimSlugResult = {
+  ok: boolean;
+  error?: string;
+  slug?: string;
+  previousSlug?: string | null;
+  warnings?: Array<{ code: string; memberHid?: string }>;
+};
+
+export const claimSlug = command(
+  "unchecked",
+  async (input: { scope: SlugScope; subjectId: string; slug: string }): Promise<ClaimSlugResult> => {
+    const response = await manageApi.post<{
+      slug: string;
+      previousSlug: string | null;
+      warnings: Array<{ code: string; memberHid?: string }>;
+    }>("/manage/slugs/claim", input);
+
+    if (!response.ok) {
+      // A held address never names who holds it
+      const message =
+        response.error === "taken"
+          ? "That address is already in use."
+          : response.error === "reserved"
+            ? "That address is held for someone else at the moment."
+            : response.error === "conflict"
+              ? "Someone claimed that address just now. Try another."
+              : response.error === "invalid"
+                ? "That address is not allowed."
+                : response.error === "forbidden" || response.error === "not_found"
+                  ? "You do not have access to change this address."
+                  : "Could not set that address.";
+      return { ok: false, error: message };
+    }
+
+    return {
+      ok: true,
+      slug: response.value.slug,
+      previousSlug: response.value.previousSlug,
+      warnings: response.value.warnings,
+    };
+  },
+);
+
+export const releaseSlug = command(
+  "unchecked",
+  async (input: {
+    scope: SlugScope;
+    subjectId: string;
+  }): Promise<{ ok: boolean; error?: string; reservedUntil?: number | null }> => {
+    const response = await manageApi.post<{ released: string; reservedUntil: number | null }>(
+      "/manage/slugs/release",
+      {
+        scope: input.scope,
+        subjectId: input.subjectId,
+        confirm: true,
+      },
+    );
+    if (!response.ok) {
+      return {
+        ok: false,
+        error:
+          response.error === "no_slug"
+            ? "There is no address to release."
+            : "Could not release that address.",
+      };
+    }
+    return { ok: true, reservedUntil: response.value.reservedUntil };
+  },
+);
+
+// -------------------------------------------------------------- claiming
+
+// Two routes, Discord link then description code. Neither needs a PluralKit token.
+
+function claimError(error: string): string {
+  switch (error) {
+    case "already_claimed":
+      return "That system is already managed on pkviewer. If it should be yours, get in touch.";
+    case "not_verified":
+      return "pkviewer could not confirm that system belongs to you.";
+    case "not_found":
+      return "PluralKit does not have a system with that ID.";
+    case "upstream_unavailable":
+      return "PluralKit could not be reached. Try again shortly.";
+    default:
+      return "That did not work. Try again.";
+  }
+}
+
+export const discoverSystems = command(discover);
+
+export const claimViaDiscord = command(
+  "unchecked",
+  async (systemRef: string): Promise<{ ok: true; systemId: string } | { ok: false; error: string }> => {
+    const response = await manageApi.post<{ systemId: string }>("/claims/discord-link", { systemRef });
+    if (!response.ok) return { ok: false, error: claimError(response.error) };
+    return { ok: true, systemId: response.value.systemId };
+  },
+);
+
+export const startChallenge = command(
+  "unchecked",
+  async (
+    systemRef: string,
+  ): Promise<
+    { ok: true; challengeId: string; nonce: string; systemHid: string } | { ok: false; error: string }
+  > => {
+    const response = await manageApi.post<{ challengeId: string; nonce: string; systemHid: string }>(
+      "/claims/challenge",
+      { systemRef },
+    );
+    if (!response.ok) return { ok: false, error: claimError(response.error) };
+    return { ok: true, ...response.value };
+  },
+);
+
+export const verifyChallenge = command(
+  "unchecked",
+  async (challengeId: string): Promise<{ ok: true; systemId: string } | { ok: false; error: string }> => {
+    const response = await manageApi.post<{ systemId: string }>("/claims/challenge/verify", {
+      challengeId,
+    });
+    if (!response.ok) {
+      const message =
+        response.error === "not_verified"
+          ? "The code is not in the system description yet. Save it in PluralKit, then check again."
+          : response.error === "description_unavailable"
+            ? "That system's description is not public, so pkviewer cannot read the code. Make it public briefly, or claim from the linked Discord account instead."
+            : response.error === "challenge_expired"
+              ? "That code expired. Start again for a new one."
+              : response.error === "too_many_attempts"
+                ? "Too many checks. Start again for a new code."
+                : claimError(response.error);
+      return { ok: false, error: message };
+    }
+    return { ok: true, systemId: response.value.systemId };
+  },
+);
+
+// ---------------------------------------------------------------- badges
+
+// Granting is an admin power; deciding whether it shows on your own page is not
+export const respondToBadge = command(
+  "unchecked",
+  async (input: {
+    systemId: string;
+    badgeId: string;
+    action: "accept" | "decline" | "hide" | "show";
+  }) =>
+    result(
+      await manageApi.post(`/manage/systems/${seg(input.systemId)}/badges/${seg(input.badgeId)}`, {
+        action: input.action,
+      }),
+    ),
+);
+
+// ------------------------------------------------------------------- css
+
+export type CssSaveResult = ActionResult & {
+  issues?: CssIssue[];
+  kept?: number;
+};
+
+// The API answers with what it kept and dropped, so the editor reports the truth
+export const saveCss = command(
+  "unchecked",
+  async (input: { systemId: string; memberRef?: string; css: string }): Promise<CssSaveResult> => {
+    const path = input.memberRef
+      ? `/manage/systems/${seg(input.systemId)}/members/${seg(input.memberRef)}/css`
+      : `/manage/systems/${seg(input.systemId)}/css`;
+    const response = await manageApi.put<{ issues?: CssIssue[]; kept?: number }>(path, {
+      css: input.css,
+    });
+    if (!response.ok) return { ok: false, error: messageFor(response.error, response.status) };
+    return {
+      ok: true,
+      issues: response.value.issues ?? [],
+      kept: response.value.kept ?? 0,
+    };
+  },
+);
diff --git a/web/src/lib/mutate.ts b/web/src/lib/mutate.ts
new file mode 100644
index 0000000..125c5b4
--- /dev/null
+++ b/web/src/lib/mutate.ts
@@ -0,0 +1,9 @@
+/* web/src/lib/mutate.ts */
+import { invalidateAll } from "$app/navigation";
+
+/** Runs a remote command and, if it worked, reloads page data (Next's revalidatePath). */
+export async function mutate<T extends { ok: boolean }>(pending: Promise<T>): Promise<T> {
+  const outcome = await pending;
+  if (outcome.ok) await invalidateAll();
+  return outcome;
+}
diff --git a/web/src/lib/server/api.ts b/web/src/lib/server/api.ts
new file mode 100644
index 0000000..e4f1589
--- /dev/null
+++ b/web/src/lib/server/api.ts
@@ -0,0 +1,183 @@
+/* web/src/lib/server/api.ts */
+import { env } from "$env/dynamic/private";
+import { getRequestEvent } from "$app/server";
+import type { CreditSection, PageModel, PublicBadge } from "@pkviewer/shared";
+import { site } from "$lib/config.ts";
+import type { DiscoveredSystem } from "$lib/types.ts";
+
+/**
+ * The web tier's only route to data.
+ *
+ * The browser never talks to the API: INTERNAL_API_ORIGIN stays internal, and
+ * the session cookie is forwarded from the load or remote function making the
+ * call. That keeps the __Host- cookie pinned to one host.
+ */
+
+export function apiOrigin(): string {
+  return (env["INTERNAL_API_ORIGIN"] || "http://127.0.0.1:3001").replace(/\/+$/, "");
+}
+
+// ------------------------------------------------------------------ public
+
+export type PublicPage = PageModel & { canonicalPath: string };
+
+export type FetchOutcome<T> =
+  | { ok: true; value: T }
+  | { ok: false; status: number; reason: string };
+
+async function getJson<T>(path: string): Promise<FetchOutcome<T>> {
+  let res: Response;
+  try {
+    // Public pages re-render per request; the API holds the cache.
+    res = await fetch(`${apiOrigin()}${path}`, {
+      headers: {
+        accept: "application/json",
+      },
+    });
+  } catch {
+    return {
+      ok: false,
+      status: 503,
+      reason: "api_unreachable",
+    };
+  }
+
+  if (!res.ok) {
+    const body = (await res.json().catch(() => null)) as { error?: string } | null;
+    return {
+      ok: false,
+      status: res.status,
+      reason: body?.error ?? "error",
+    };
+  }
+  return {
+    ok: true,
+    value: (await res.json()) as T,
+  };
+}
+
+export function getSystemPage(ref: string): Promise<FetchOutcome<PublicPage>> {
+  return getJson<PublicPage>(`/public/systems/${encodeURIComponent(ref)}`);
+}
+
+export function getMemberPage(ref: string, memberRef: string): Promise<FetchOutcome<PublicPage>> {
+  return getJson<PublicPage>(
+    `/public/systems/${encodeURIComponent(ref)}/members/${encodeURIComponent(memberRef)}`,
+  );
+}
+
+/** The credits page. Platform-owned content: no subject, no session. */
+export function getCredits(): Promise<FetchOutcome<{ sections: CreditSection[] }>> {
+  return getJson<{ sections: CreditSection[] }>("/public/credits");
+}
+
+/** The badge glossary, so every badge on a page can link to what it means. */
+export function getBadgeCatalogue(): Promise<FetchOutcome<{ badges: PublicBadge[] }>> {
+  return getJson<{ badges: PublicBadge[] }>("/public/badges");
+}
+
+// ------------------------------------------------------------------ manage
+
+export type ApiResult<T> =
+  | { ok: true; value: T }
+  | { ok: false; status: number; error: string; detail?: unknown };
+
+async function call<T>(
+  path: string,
+  init: { method?: string; body?: unknown } = {},
+): Promise<ApiResult<T>> {
+  const cookieHeader = getRequestEvent().request.headers.get("cookie") ?? "";
+
+  const headers: Record<string, string> = {
+    accept: "application/json",
+    cookie: cookieHeader,
+    // The API rejects state-changing requests without a recognised Origin.
+    origin: site.publicOrigin,
+  };
+  if (init.body !== undefined) headers["content-type"] = "application/json";
+
+  let res: Response;
+  try {
+    res = await fetch(`${apiOrigin()}${path}`, {
+      method: init.method ?? "GET",
+      headers,
+      ...(init.body !== undefined ? { body: JSON.stringify(init.body) } : {}),
+    });
+  } catch {
+    return {
+      ok: false,
+      status: 503,
+      error: "api_unreachable",
+    };
+  }
+
+  const payload = (await res.json().catch(() => null)) as Record<string, unknown> | null;
+  if (!res.ok) {
+    return {
+      ok: false,
+      status: res.status,
+      error: typeof payload?.["error"] === "string" ? (payload["error"] as string) : "error",
+      detail: payload?.["rejected"] ?? payload?.["errors"],
+    };
+  }
+  return {
+    ok: true,
+    value: (payload ?? {}) as T,
+  };
+}
+
+export const manageApi = {
+  get: <T>(path: string) => call<T>(path),
+  put: <T>(path: string, body: unknown) => call<T>(path, { method: "PUT", body }),
+  post: <T>(path: string, body: unknown) => call<T>(path, { method: "POST", body }),
+  del: <T>(path: string) => call<T>(path, { method: "DELETE" }),
+};
+
+/** One path segment, so a caller-supplied id can never walk the API's routes. */
+export function seg(value: string | number): string {
+  return encodeURIComponent(String(value));
+}
+
+/**
+ * Whether the signed-in account administers pkviewer.
+ *
+ * Used only to decide whether to show a link. Every admin route re-checks it
+ * on the API, because a hidden link is not a permission boundary.
+ */
+export async function isPlatformAdmin(): Promise<boolean> {
+  const result = await manageApi.get<{ admin: boolean }>("/admin/whoami");
+  return result.ok && result.value.admin === true;
+}
+
+/** Whether the caller has a session at all. */
+export async function isAuthenticated(): Promise<boolean> {
+  const result = await call<{ authenticated: boolean }>("/auth/me");
+  return result.ok && result.value.authenticated === true;
+}
+
+// ---------------------------------------------------------------- claiming
+
+/**
+ * Systems linked to the signed-in Discord account.
+ *
+ * The Discord identities are read from the session by the API, never sent from
+ * here (invariant S1). Shared by the claim page's load and its remote command.
+ */
+export async function discoverSystems(): Promise<
+  { ok: true; systems: DiscoveredSystem[] } | { ok: false; error: string }
+> {
+  const result = await manageApi.post<{ systems: DiscoveredSystem[] }>("/claims/discover", {});
+  if (!result.ok) {
+    return {
+      ok: false,
+      error:
+        result.error === "unauthenticated"
+          ? "Your session has expired. Sign in again."
+          : "Could not reach PluralKit just now. Try again shortly.",
+    };
+  }
+  return {
+    ok: true,
+    systems: result.value.systems,
+  };
+}
diff --git a/apps/web/src/lib/theme.ts b/web/src/lib/theme.ts
similarity index 97%
rename from apps/web/src/lib/theme.ts
rename to web/src/lib/theme.ts
index 89ad569..77d6796 100644
--- a/apps/web/src/lib/theme.ts
+++ b/web/src/lib/theme.ts
@@ -1,3 +1,4 @@
+/* web/src/lib/theme.ts */
 import {
   compositionToCssVars,
   resolveComposition,
diff --git a/apps/web/src/components/TokenStyle.tsx b/web/src/lib/tokenStyle.ts
similarity index 90%
rename from apps/web/src/components/TokenStyle.tsx
rename to web/src/lib/tokenStyle.ts
index 12308c3..94be277 100644
--- a/apps/web/src/components/TokenStyle.tsx
+++ b/web/src/lib/tokenStyle.ts
@@ -1,3 +1,4 @@
+/* web/src/lib/tokenStyle.ts */
 /**
  * Emits sanitized `--pkv-*` custom properties.
  *
@@ -59,7 +60,8 @@ function selectorFor(scope: TokenScope): string | null {
   return ELEMENT_ID.test(scope.elementId) ? `#${scope.elementId}` : null;
 }
 
-export function TokenStyle({
+/** The CSS text for a theme, or "" when there is nothing safe to declare. */
+export function tokenCss({
   vars,
   darkVars,
   scope,
@@ -68,12 +70,12 @@ export function TokenStyle({
   vars: Record<string, string>;
   /** Emitted under prefers-color-scheme: dark. Omitted when the theme commits
    * to a single ground. */
-  darkVars?: Record<string, string>;
+  darkVars?: Record<string, string> | undefined;
   scope: TokenScope;
-  colorScheme?: "auto" | "light" | "dark";
-}) {
+  colorScheme?: "auto" | "light" | "dark" | undefined;
+}): string {
   const selector = selectorFor(scope);
-  if (!selector) return null;
+  if (!selector) return "";
 
   const light = sanitizeCssVars(vars);
   const dark = darkVars ? sanitizeCssVars(darkVars) : null;
@@ -83,7 +85,7 @@ export function TokenStyle({
       .map(([key, value]) => `--pkv-${key}: ${value};`)
       .join(" ");
 
-  if (Object.keys(light).length === 0) return null;
+  if (Object.keys(light).length === 0) return "";
 
   const scheme =
     colorScheme === "light" ? "light" : colorScheme === "dark" ? "dark" : "light dark";
@@ -93,5 +95,5 @@ export function TokenStyle({
     css += ` @media (prefers-color-scheme: dark) { ${selector} { ${declare(dark)} } }`;
   }
 
-  return <style>{css}</style>;
+  return css;
 }
diff --git a/web/src/lib/types.ts b/web/src/lib/types.ts
new file mode 100644
index 0000000..4d6c91d
--- /dev/null
+++ b/web/src/lib/types.ts
@@ -0,0 +1,126 @@
+/* web/src/lib/types.ts */
+import type { BadgeIconId, BadgeState, BadgeToneId } from "@pkviewer/shared";
+
+/** Shapes the management and admin API return. Shared by loads and components. */
+
+export type ManagedSystemSummary = {
+  systemId: string;
+  pkSystemHid: string;
+  role: string;
+  name: string | null;
+  avatarUrl: string | null;
+  slug: string | null;
+  publicPath: string;
+  memberCount: number | null;
+  snapshotAgeMs: number | null;
+  reachable: boolean;
+};
+
+export type SystemOverview = {
+  systemId: string;
+  pkSystemHid: string;
+  name: string | null;
+  avatarUrl: string | null;
+  description: string | null;
+  memberCount: number | null;
+  slug: string | null;
+  publicPath: string;
+  snapshotAgeMs: number | null;
+  reachable: boolean;
+};
+
+export type ManagedMemberSummary = {
+  memberId: string | null;
+  pkMemberHid: string;
+  pkMemberUuid: string;
+  name: string | null;
+  displayName: string | null;
+  avatarUrl: string | null;
+  pronouns: string | null;
+  slug: string | null;
+  hasThemeOverrides: boolean;
+};
+
+export type StoredSocial = {
+  id: number;
+  platform: string;
+  label: string | null;
+  url: string;
+  visible: boolean;
+  sortOrder: number;
+};
+
+export type EditableLink = {
+  platform: string;
+  label: string;
+  url: string;
+};
+
+export type SlugScope = "system" | "member";
+
+export type SlugStatus = {
+  current: { slug: string; claimedAt: number | null } | null;
+  reservations: Array<{ slug: string; until: number }>;
+  reservationDays: number;
+};
+
+export type ActionResult = {
+  ok: boolean;
+  error?: string;
+};
+
+export type AdminBadge = {
+  id: string;
+  label: string;
+  description: string;
+  icon: BadgeIconId;
+  tone: BadgeToneId;
+  sortOrder: number;
+  retiredAt: number | null;
+};
+
+export type AdminAssignment = {
+  id: number;
+  subjectId: string;
+  badgeId: string;
+  badgeLabel: string;
+  state: BadgeState;
+  note: string | null;
+  grantedAt: number;
+  respondedAt: number | null;
+  revokedAt: number | null;
+  systemHid: string | null;
+  slug: string | null;
+};
+
+export type AdminSection = {
+  id: string;
+  label: string;
+  description: string | null;
+  sortOrder: number;
+};
+
+export type AdminCredit = {
+  id: string;
+  sectionId: string;
+  name: string;
+  detail: string | null;
+  url: string | null;
+  sortOrder: number;
+  visible: boolean;
+};
+
+export type BadgeDraft = {
+  id: string;
+  label: string;
+  description: string;
+  icon: string;
+  tone: string;
+  sortOrder: number;
+};
+
+export type DiscoveredSystem = {
+  hid: string;
+  uuid: string;
+  name: string | null;
+};
diff --git a/web/src/lib/unsavedGuard.svelte.ts b/web/src/lib/unsavedGuard.svelte.ts
new file mode 100644
index 0000000..d90410a
--- /dev/null
+++ b/web/src/lib/unsavedGuard.svelte.ts
@@ -0,0 +1,26 @@
+/* web/src/lib/unsavedGuard.svelte.ts */
+import { beforeNavigate } from "$app/navigation";
+
+/**
+ * Warns before leaving a page with unsaved edits.
+ *
+ * beforeunload covers closing and reloading. beforeNavigate covers in-app links,
+ * which SvelteKit's router would otherwise follow without a word.
+ */
+export function useUnsavedGuard(isDirty: () => boolean): void {
+  $effect(() => {
+    if (!isDirty()) return;
+    const handler = (event: BeforeUnloadEvent) => {
+      event.preventDefault();
+      // Required by some browsers for the prompt to appear at all
+      event.returnValue = "";
+    };
+    window.addEventListener("beforeunload", handler);
+    return () => window.removeEventListener("beforeunload", handler);
+  });
+
+  beforeNavigate((navigation) => {
+    if (navigation.type === "leave" || !isDirty()) return;
+    if (!confirm("You have unsaved changes. Leave this page?")) navigation.cancel();
+  });
+}
diff --git a/web/src/routes/+error.svelte b/web/src/routes/+error.svelte
new file mode 100644
index 0000000..d2615eb
--- /dev/null
+++ b/web/src/routes/+error.svelte
@@ -0,0 +1,32 @@
+<!-- web/src/routes/+error.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import Meta from "$lib/components/Meta.svelte";
+  import SiteDisclosure from "$lib/components/SiteDisclosure.svelte";
+
+  // One 404 for everything: a missing system, a missing member and a private
+  // member read identically, or the page would confirm the private one exists
+</script>
+
+{#if page.status === 404}
+  <Meta title="Not found · pkviewer" />
+  <main class="page stack">
+    <h1>Not found</h1>
+    <p class="prose">
+      There is nothing at this address. The system or member may not exist, or
+      may not be publicly listed.
+    </p>
+    <p>
+      <a href="/">Back to pkviewer</a>
+    </p>
+    <SiteDisclosure />
+  </main>
+{:else}
+  <Meta title="Temporarily unavailable · pkviewer" />
+  <main class="page stack">
+    <h1>Temporarily unavailable</h1>
+    <p class="prose">
+      This page could not be loaded right now. Please try again shortly.
+    </p>
+  </main>
+{/if}
diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte
new file mode 100644
index 0000000..8820406
--- /dev/null
+++ b/web/src/routes/+layout.svelte
@@ -0,0 +1,13 @@
+<!-- web/src/routes/+layout.svelte -->
+<script lang="ts">
+  import "../app.css";
+
+  let { children } = $props();
+</script>
+
+<svelte:head>
+  <link rel="icon" href="/icon.svg" type="image/svg+xml" />
+  <link rel="apple-touch-icon" href="/apple-icon.png" />
+</svelte:head>
+
+{@render children()}
diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte
new file mode 100644
index 0000000..0b3c184
--- /dev/null
+++ b/web/src/routes/+page.svelte
@@ -0,0 +1,65 @@
+<!-- web/src/routes/+page.svelte -->
+<script lang="ts">
+  import { site } from "$lib/config.ts";
+  import Icon from "$lib/components/Icon.svelte";
+  import Logo from "$lib/components/Logo.svelte";
+  import Meta from "$lib/components/Meta.svelte";
+  import SiteDisclosure from "$lib/components/SiteDisclosure.svelte";
+
+  // Permanently logged out (O3): the sign-in link is unconditional
+</script>
+
+<Meta title="pkviewer" path="/" />
+
+<main class="page stack">
+  <header class="stack-tight">
+    <div class="site-brand">
+      <Logo />
+      <h1>pkviewer</h1>
+    </div>
+    <p class="prose">
+      PluralKit handles the identity and the data. pkviewer handles how that
+      identity is presented on the web.
+    </p>
+  </header>
+
+  <section class="stack-tight prose">
+    <h2>What it does</h2>
+    <p>
+      Every PluralKit system gets a public page, and every member can have
+      one too. Systems that sign in can choose a readable address and
+      customise how their pages look.
+    </p>
+    <p class="muted">
+      Viewing is open to everyone. An account is only needed to manage and
+      customise a system.
+    </p>
+  </section>
+
+  <section class="stack-tight prose">
+    <h2>Addresses</h2>
+    <p>
+      A system is always reachable by its PluralKit ID, and additionally by
+      its chosen name once it has one. Both work; the readable one is
+      canonical.
+    </p>
+    <ul class="meta-list" style="flex-direction: column; align-items: flex-start">
+      <li><code>/s/abcdef</code> <span class="muted">— PluralKit ID, always works</span></li>
+      <li><code>/s/your-system</code> <span class="muted">— chosen address</span></li>
+      <li><code>/s/your-system/a-member</code> <span class="muted">— a member</span></li>
+    </ul>
+  </section>
+
+  <p>
+    <a href="/login">
+      Sign in with Discord <Icon name="arrow-right" />
+    </a>
+  </p>
+  <p>
+    <a href={site.docsUrl} rel="noopener">
+      Read the documentation <Icon name="box-arrow-up-right" />
+    </a>
+  </p>
+
+  <SiteDisclosure />
+</main>
diff --git a/web/src/routes/admin/+layout.server.ts b/web/src/routes/admin/+layout.server.ts
new file mode 100644
index 0000000..edf54e4
--- /dev/null
+++ b/web/src/routes/admin/+layout.server.ts
@@ -0,0 +1,13 @@
+/* web/src/routes/admin/+layout.server.ts */
+import { error, redirect } from "@sveltejs/kit";
+import type { LayoutServerLoad } from "./$types";
+import { isAuthenticated, isPlatformAdmin } from "$lib/server/api.ts";
+
+/**
+ * A non-admin gets 404, not 403: 403 would confirm an admin area exists here.
+ * A courtesy only; every /admin API route re-checks the platform grant.
+ */
+export const load: LayoutServerLoad = async () => {
+  if (!(await isAuthenticated())) redirect(303, "/login?return_to=/admin");
+  if (!(await isPlatformAdmin())) error(404);
+};
diff --git a/web/src/routes/admin/+layout.svelte b/web/src/routes/admin/+layout.svelte
new file mode 100644
index 0000000..f805ad3
--- /dev/null
+++ b/web/src/routes/admin/+layout.svelte
@@ -0,0 +1,38 @@
+<!-- web/src/routes/admin/+layout.svelte -->
+<script lang="ts">
+  import { site } from "$lib/config.ts";
+  import Icon from "$lib/components/Icon.svelte";
+  import Logo from "$lib/components/Logo.svelte";
+
+  let { children } = $props();
+</script>
+
+<svelte:head>
+  <meta name="robots" content="noindex, nofollow" />
+</svelte:head>
+
+<div class="mg">
+  <header class="mg-bar">
+    <a class="mg-brand" href="/admin">
+      <Logo />
+      pkviewer
+    </a>
+    <span class="mg-bar-note">Administration</span>
+    <span class="spacer"></span>
+    <a class="btn" href="/manage">Management</a>
+    <a class="btn" href={site.docsUrl} rel="noopener">
+      Docs <Icon name="box-arrow-up-right" />
+    </a>
+    <a class="btn" href="{site.publicOrigin}/">
+      Public site <Icon name="box-arrow-up-right" />
+    </a>
+  </header>
+
+  <nav class="mg-subnav" aria-label="Administration">
+    <a href="/admin/badges"><Icon name="award" /> Badges</a>
+    <a href="/admin/credits"><Icon name="people" /> Credits</a>
+    <a href="/admin/audit"><Icon name="journal-text" /> History</a>
+  </nav>
+
+  {@render children()}
+</div>
diff --git a/web/src/routes/admin/+page.server.ts b/web/src/routes/admin/+page.server.ts
new file mode 100644
index 0000000..9aee542
--- /dev/null
+++ b/web/src/routes/admin/+page.server.ts
@@ -0,0 +1,30 @@
+/* web/src/routes/admin/+page.server.ts */
+import type { PageServerLoad } from "./$types";
+import { manageApi } from "$lib/server/api.ts";
+
+export const load: PageServerLoad = async () => {
+  const [assignments, credits] = await Promise.all([
+    manageApi.get<{ assignments: Array<{ state: string }> }>("/admin/assignments"),
+    manageApi.get<{ credits: unknown[]; sections: unknown[] }>("/admin/credits"),
+  ]);
+
+  const counts = {
+    pending: 0,
+    accepted: 0,
+    declined: 0,
+    hidden: 0,
+    revoked: 0,
+  };
+  if (assignments.ok) {
+    for (const assignment of assignments.value.assignments) {
+      if (assignment.state in counts) counts[assignment.state as keyof typeof counts] += 1;
+    }
+  }
+
+  return {
+    counts,
+    credits: credits.ok
+      ? { entries: credits.value.credits.length, sections: credits.value.sections.length }
+      : null,
+  };
+};
diff --git a/web/src/routes/admin/+page.svelte b/web/src/routes/admin/+page.svelte
new file mode 100644
index 0000000..27bdf43
--- /dev/null
+++ b/web/src/routes/admin/+page.svelte
@@ -0,0 +1,60 @@
+<!-- web/src/routes/admin/+page.svelte -->
+<script lang="ts">
+  import Icon from "$lib/components/Icon.svelte";
+  import PageHeader from "$lib/components/manage/PageHeader.svelte";
+  import Section from "$lib/components/manage/Section.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Admin · pkviewer</title>
+</svelte:head>
+
+<div class="mg-shell">
+  <PageHeader
+    title="Administration"
+    description="Recognition and the credits page. Nothing here reaches anyone's system settings."
+  />
+
+  {#if data.counts.pending > 0}
+    <p class="mg-note">
+      {data.counts.pending} badge {data.counts.pending === 1 ? "offer is" : "offers are"} waiting
+      on a reply. A badge shows publicly only once its system accepts it.
+    </p>
+  {/if}
+
+  <Section title="Badges" description="Grant, revoke, and edit the catalogue.">
+    <ul class="mg-stats">
+      <li><strong>{data.counts.accepted}</strong> showing</li>
+      <li><strong>{data.counts.pending}</strong> pending</li>
+      <li><strong>{data.counts.hidden}</strong> hidden by owner</li>
+      <li><strong>{data.counts.declined}</strong> declined</li>
+      <li><strong>{data.counts.revoked}</strong> revoked</li>
+    </ul>
+    <div class="mg-actions">
+      <a class="btn primary" href="/admin/badges">
+        <Icon name="award" /> Manage badges
+      </a>
+    </div>
+  </Section>
+
+  <Section
+    title="Credits"
+    description="Anyone can be credited — no pkviewer account or PluralKit system needed."
+  >
+    <p class="muted">
+      {data.credits
+        ? `${data.credits.entries} entries across ${data.credits.sections} sections.`
+        : "Could not load the credits."}
+    </p>
+    <div class="mg-actions">
+      <a class="btn primary" href="/admin/credits">
+        <Icon name="people" /> Manage credits
+      </a>
+      <a class="btn" href="/admin/audit">
+        <Icon name="journal-text" /> History
+      </a>
+    </div>
+  </Section>
+</div>
diff --git a/web/src/routes/admin/audit/+page.server.ts b/web/src/routes/admin/audit/+page.server.ts
new file mode 100644
index 0000000..d937768
--- /dev/null
+++ b/web/src/routes/admin/audit/+page.server.ts
@@ -0,0 +1,17 @@
+/* web/src/routes/admin/audit/+page.server.ts */
+import type { PageServerLoad } from "./$types";
+import { manageApi } from "$lib/server/api.ts";
+
+type AuditEvent = {
+  at: number;
+  accountId: string | null;
+  action: string;
+  target: string | null;
+  detail: string | null;
+};
+
+// A record, not a feature: a granted badge changes someone else's page, so its origin must be clear
+export const load: PageServerLoad = async () => {
+  const result = await manageApi.get<{ events: AuditEvent[] }>("/admin/audit");
+  return { events: result.ok ? result.value.events : null };
+};
diff --git a/web/src/routes/admin/audit/+page.svelte b/web/src/routes/admin/audit/+page.svelte
new file mode 100644
index 0000000..4ef0850
--- /dev/null
+++ b/web/src/routes/admin/audit/+page.svelte
@@ -0,0 +1,39 @@
+<!-- web/src/routes/admin/audit/+page.svelte -->
+<script lang="ts">
+  import PageHeader from "$lib/components/manage/PageHeader.svelte";
+  import Section from "$lib/components/manage/Section.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>History · Admin · pkviewer</title>
+</svelte:head>
+
+<div class="mg-shell">
+  <PageHeader title="History" description="Recent badge, credit and admin changes." />
+
+  <Section>
+    {#if data.events === null}
+      <p class="mg-note" data-tone="error">Could not load the history.</p>
+    {:else if data.events.length === 0}
+      <p class="muted">Nothing has happened yet.</p>
+    {:else}
+      <ul class="mg-list">
+        {#each data.events as event, index (`${event.at}-${index}`)}
+          <li class="mg-item">
+            <div class="grow">
+              <code>{event.action}</code>
+              {#if event.target}<span class="muted"> → {event.target}</span>{/if}
+              <div class="mg-item-meta muted">
+                <span>{new Date(event.at).toLocaleString()}</span>
+                {#if event.detail}<span>{event.detail}</span>{/if}
+                <span>by {event.accountId ?? "a deleted account"}</span>
+              </div>
+            </div>
+          </li>
+        {/each}
+      </ul>
+    {/if}
+  </Section>
+</div>
diff --git a/web/src/routes/admin/badges/+page.server.ts b/web/src/routes/admin/badges/+page.server.ts
new file mode 100644
index 0000000..d1faff4
--- /dev/null
+++ b/web/src/routes/admin/badges/+page.server.ts
@@ -0,0 +1,18 @@
+/* web/src/routes/admin/badges/+page.server.ts */
+import type { BadgeIconId, BadgeToneId } from "@pkviewer/shared";
+import type { PageServerLoad } from "./$types";
+import { manageApi } from "$lib/server/api.ts";
+import type { AdminAssignment, AdminBadge } from "$lib/types.ts";
+
+export const load: PageServerLoad = async () => {
+  const [catalogue, assignments] = await Promise.all([
+    manageApi.get<{ badges: AdminBadge[]; icons: BadgeIconId[]; tones: BadgeToneId[] }>("/admin/badges"),
+    manageApi.get<{ assignments: AdminAssignment[] }>("/admin/assignments"),
+  ]);
+  if (!catalogue.ok || !assignments.ok) return { loaded: false as const };
+  return {
+    loaded: true as const,
+    ...catalogue.value,
+    assignments: assignments.value.assignments,
+  };
+};
diff --git a/web/src/routes/admin/badges/+page.svelte b/web/src/routes/admin/badges/+page.svelte
new file mode 100644
index 0000000..d5c036a
--- /dev/null
+++ b/web/src/routes/admin/badges/+page.svelte
@@ -0,0 +1,25 @@
+<!-- web/src/routes/admin/badges/+page.svelte -->
+<script lang="ts">
+  import BadgeAdmin from "$lib/components/admin/BadgeAdmin.svelte";
+  import PageHeader from "$lib/components/manage/PageHeader.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Badges · Admin · pkviewer</title>
+</svelte:head>
+
+{#if data.loaded}
+  <BadgeAdmin
+    badges={data.badges}
+    icons={data.icons}
+    tones={data.tones}
+    assignments={data.assignments}
+  />
+{:else}
+  <div class="mg-shell">
+    <PageHeader title="Badges" />
+    <p class="mg-note" data-tone="error">Could not load the badges. Try again shortly.</p>
+  </div>
+{/if}
diff --git a/web/src/routes/admin/credits/+page.server.ts b/web/src/routes/admin/credits/+page.server.ts
new file mode 100644
index 0000000..043eb6c
--- /dev/null
+++ b/web/src/routes/admin/credits/+page.server.ts
@@ -0,0 +1,11 @@
+/* web/src/routes/admin/credits/+page.server.ts */
+import type { PageServerLoad } from "./$types";
+import { manageApi } from "$lib/server/api.ts";
+import type { AdminCredit, AdminSection } from "$lib/types.ts";
+
+export const load: PageServerLoad = async () => {
+  const result = await manageApi.get<{ sections: AdminSection[]; credits: AdminCredit[] }>(
+    "/admin/credits",
+  );
+  return result.ok ? { loaded: true as const, ...result.value } : { loaded: false as const };
+};
diff --git a/web/src/routes/admin/credits/+page.svelte b/web/src/routes/admin/credits/+page.svelte
new file mode 100644
index 0000000..2ef8521
--- /dev/null
+++ b/web/src/routes/admin/credits/+page.svelte
@@ -0,0 +1,20 @@
+<!-- web/src/routes/admin/credits/+page.svelte -->
+<script lang="ts">
+  import CreditAdmin from "$lib/components/admin/CreditAdmin.svelte";
+  import PageHeader from "$lib/components/manage/PageHeader.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Credits · Admin · pkviewer</title>
+</svelte:head>
+
+{#if data.loaded}
+  <CreditAdmin sections={data.sections} credits={data.credits} />
+{:else}
+  <div class="mg-shell">
+    <PageHeader title="Credits" />
+    <p class="mg-note" data-tone="error">Could not load the credits. Try again shortly.</p>
+  </div>
+{/if}
diff --git a/web/src/routes/auth/[...segments]/+server.ts b/web/src/routes/auth/[...segments]/+server.ts
new file mode 100644
index 0000000..b88375b
--- /dev/null
+++ b/web/src/routes/auth/[...segments]/+server.ts
@@ -0,0 +1,73 @@
+/* web/src/routes/auth/[...segments]/+server.ts */
+import type { RequestHandler } from "./$types";
+import { site } from "$lib/config.ts";
+import { apiOrigin } from "$lib/server/api.ts";
+
+/**
+ * Proxies the Discord OAuth endpoints to the API.
+ *
+ * The handshake is a browser redirect flow, so the browser must reach Discord
+ * and receive the cookies the API sets. Only the auth endpoints are reachable,
+ * so this cannot become a general proxy to the API.
+ */
+const ALLOWED = new Set([
+  "discord/start",
+  "discord/callback",
+  "logout",
+  "logout-all",
+  "me",
+]);
+
+async function proxy(request: Request, url: URL, path: string, method: "GET" | "POST") {
+  if (!ALLOWED.has(path)) {
+    return new Response("Not found", { status: 404 });
+  }
+
+  let upstream: Response;
+  try {
+    upstream = await fetch(`${apiOrigin()}/auth/${path}${url.search}`, {
+      method,
+      headers: {
+        cookie: request.headers.get("cookie") ?? "",
+        // The API rejects state-changing requests without a recognised Origin
+        origin: site.publicOrigin,
+        accept: "application/json",
+      },
+      // The API's redirect goes to Discord and must reach the browser
+      redirect: "manual",
+    });
+  } catch {
+    // Not Response.redirect(): its headers are immutable, and the security hook must set them
+    return new Response(null, {
+      status: 302,
+      headers: {
+        location: `${site.publicOrigin}/login?error=unavailable`,
+      },
+    });
+  }
+
+  const headers = new Headers();
+
+  // Every Set-Cookie must survive: they are the whole point of this proxy
+  for (const cookie of upstream.headers.getSetCookie()) {
+    headers.append("set-cookie", cookie);
+  }
+
+  const location = upstream.headers.get("location");
+  if (location) {
+    headers.set("location", location);
+    return new Response(null, { status: upstream.status, headers });
+  }
+
+  const contentType = upstream.headers.get("content-type");
+  if (contentType) headers.set("content-type", contentType);
+  headers.set("cache-control", "no-store");
+
+  return new Response(await upstream.text(), { status: upstream.status, headers });
+}
+
+export const GET: RequestHandler = ({ request, url, params }) =>
+  proxy(request, url, params.segments, "GET");
+
+export const POST: RequestHandler = ({ request, url, params }) =>
+  proxy(request, url, params.segments, "POST");
diff --git a/web/src/routes/badges/+page.server.ts b/web/src/routes/badges/+page.server.ts
new file mode 100644
index 0000000..57981d3
--- /dev/null
+++ b/web/src/routes/badges/+page.server.ts
@@ -0,0 +1,7 @@
+/* web/src/routes/badges/+page.server.ts */
+import type { PageServerLoad } from "./$types";
+import { getBadgeCatalogue } from "$lib/server/api.ts";
+
+export const load: PageServerLoad = async () => ({
+  result: await getBadgeCatalogue(),
+});
diff --git a/web/src/routes/badges/+page.svelte b/web/src/routes/badges/+page.svelte
new file mode 100644
index 0000000..2cd191b
--- /dev/null
+++ b/web/src/routes/badges/+page.svelte
@@ -0,0 +1,56 @@
+<!-- web/src/routes/badges/+page.svelte -->
+<script lang="ts">
+  import BadgeSample from "$lib/components/BadgeSample.svelte";
+  import Meta from "$lib/components/Meta.svelte";
+  import SiteDisclosure from "$lib/components/SiteDisclosure.svelte";
+
+  // Half the anti-forgery story: every badge links here, a path nobody else controls
+  let { data } = $props();
+</script>
+
+<Meta
+  title="Badges · pkviewer"
+  description="What the badges on a pkviewer page mean."
+  path="/badges"
+/>
+
+<main class="page stack">
+  <header class="stack-tight">
+    <h1>Badges</h1>
+    <p class="prose">
+      A badge is given by pkviewer, not set by the system it appears on. It
+      shows only after the system has accepted it, and it can be handed back
+      at any time.
+    </p>
+  </header>
+
+  {#if !data.result.ok}
+    <p class="prose muted">
+      The badge list could not be loaded right now. Please try again shortly.
+    </p>
+  {:else}
+    <ul class="badge-glossary">
+      {#each data.result.value.badges as badge (badge.id)}
+        <li>
+          <BadgeSample {badge} />
+          <p class="muted">{badge.description}</p>
+        </li>
+      {/each}
+    </ul>
+  {/if}
+
+  <section class="prose stack-tight">
+    <h2>Why they cannot be faked</h2>
+    <p>
+      Anything a system can write about itself — its name, its description,
+      the label on a link — is ordinary text and is styled as ordinary text.
+      A badge is not part of a page's appearance settings, so a system
+      cannot restyle one, hide one, or make anything else look like one.
+    </p>
+    <p>
+      If something looks like a badge but does not link here, it is not one.
+    </p>
+  </section>
+
+  <SiteDisclosure />
+</main>
diff --git a/web/src/routes/credits/+page.server.ts b/web/src/routes/credits/+page.server.ts
new file mode 100644
index 0000000..633f365
--- /dev/null
+++ b/web/src/routes/credits/+page.server.ts
@@ -0,0 +1,7 @@
+/* web/src/routes/credits/+page.server.ts */
+import type { PageServerLoad } from "./$types";
+import { getCredits } from "$lib/server/api.ts";
+
+export const load: PageServerLoad = async () => ({
+  result: await getCredits(),
+});
diff --git a/web/src/routes/credits/+page.svelte b/web/src/routes/credits/+page.svelte
new file mode 100644
index 0000000..4ad2aaa
--- /dev/null
+++ b/web/src/routes/credits/+page.svelte
@@ -0,0 +1,63 @@
+<!-- web/src/routes/credits/+page.svelte -->
+<script lang="ts">
+  import Icon from "$lib/components/Icon.svelte";
+  import Meta from "$lib/components/Meta.svelte";
+  import SiteDisclosure from "$lib/components/SiteDisclosure.svelte";
+
+  // Sections are data, not markup: adding "Translators" is an admin action
+  let { data } = $props();
+</script>
+
+<Meta
+  title="Credits · pkviewer"
+  description="People who helped build pkviewer."
+  path="/credits"
+/>
+
+<main class="page stack">
+  <header class="stack-tight">
+    <h1>Credits</h1>
+    <p class="prose">
+      pkviewer exists because of people who reported things, broke things on
+      purpose, and said when something was wrong.
+    </p>
+  </header>
+
+  {#if !data.result.ok}
+    <p class="prose muted">
+      The credits could not be loaded right now. Please try again shortly.
+    </p>
+  {:else if data.result.value.sections.length === 0}
+    <p class="prose muted">Nobody is credited yet.</p>
+  {:else}
+    {#each data.result.value.sections as section (section.id)}
+      <section class="stack-tight">
+        <h2>{section.label}</h2>
+        {#if section.description}
+          <p class="muted">{section.description}</p>
+        {/if}
+        <ul class="credit-list">
+          {#each section.entries as entry (entry.id)}
+            <li>
+              <span class="credit-name">
+                {#if entry.url}
+                  <!-- Rendered as a link and never fetched; user-supplied, so noopener -->
+                  <a href={entry.url} rel="noopener nofollow ugc" target="_blank">
+                    {entry.name} <Icon name="box-arrow-up-right" />
+                  </a>
+                {:else}
+                  {entry.name}
+                {/if}
+              </span>
+              {#if entry.detail}
+                <span class="muted"> — {entry.detail}</span>
+              {/if}
+            </li>
+          {/each}
+        </ul>
+      </section>
+    {/each}
+  {/if}
+
+  <SiteDisclosure />
+</main>
diff --git a/web/src/routes/login/+page.server.ts b/web/src/routes/login/+page.server.ts
new file mode 100644
index 0000000..9d0471f
--- /dev/null
+++ b/web/src/routes/login/+page.server.ts
@@ -0,0 +1,15 @@
+/* web/src/routes/login/+page.server.ts */
+import type { PageServerLoad } from "./$types";
+
+export const load: PageServerLoad = ({ url }) => {
+  const returnTo = url.searchParams.get("return_to");
+
+  // Only same-origin paths, so the sign-in link cannot become an open redirect
+  const destination =
+    returnTo && returnTo.startsWith("/") && !returnTo.startsWith("//") ? returnTo : "/manage";
+
+  return {
+    error: url.searchParams.get("error"),
+    destination,
+  };
+};
diff --git a/web/src/routes/login/+page.svelte b/web/src/routes/login/+page.svelte
new file mode 100644
index 0000000..afe6b42
--- /dev/null
+++ b/web/src/routes/login/+page.svelte
@@ -0,0 +1,77 @@
+<!-- web/src/routes/login/+page.svelte -->
+<script lang="ts">
+  import { site } from "$lib/config.ts";
+  import Icon from "$lib/components/Icon.svelte";
+  import Logo from "$lib/components/Logo.svelte";
+  import Meta from "$lib/components/Meta.svelte";
+
+  let { data } = $props();
+
+  // The first screen of the control plane, so it uses the application visual language
+  const ERRORS: Record<string, string> = {
+    missing_handshake: "That sign-in attempt expired. Please try again.",
+    invalid_handshake: "That sign-in attempt could not be verified. Please try again.",
+    handshake_expired: "That sign-in attempt took too long. Please try again.",
+    state_mismatch: "That sign-in attempt could not be verified. Please try again.",
+    discord_denied: "Sign-in was cancelled.",
+    missing_code: "Discord did not complete the sign-in. Please try again.",
+    discord_error: "Discord could not be reached. Please try again shortly.",
+    signup_disabled: "New accounts are closed at the moment.",
+    unavailable: "Sign-in is unavailable right now. Please try again shortly.",
+  };
+</script>
+
+<Meta title="Sign in · pkviewer" noindex />
+
+<div class="mg">
+  <header class="mg-bar">
+    <span class="mg-brand">
+      <Logo />
+      pkviewer
+    </span>
+    <span class="mg-bar-note">Sign in</span>
+    <span class="spacer"></span>
+    <a class="btn" href={site.publicOrigin}>Public site</a>
+  </header>
+
+  <div class="mg-shell" style="max-width: 34rem">
+    <div class="mg-head">
+      <h1>Sign in to pkviewer</h1>
+      <p>Manage and customise a system you already have on PluralKit.</p>
+    </div>
+
+    {#if data.error}
+      <p class="mg-note" data-tone="warn" role="alert">
+        <Icon name="exclamation-triangle" />
+        <span>{ERRORS[data.error] ?? "Sign-in did not complete. Please try again."}</span>
+      </p>
+    {/if}
+
+    <section class="mg-panel">
+      <h2>Continue with Discord</h2>
+      <p class="hint">
+        pkviewer asks Discord only for your account ID and username. Not your
+        servers, not your messages, not your email.
+      </p>
+      <p style="margin-bottom: 0">
+        <a
+          class="btn"
+          href="/auth/discord/start?return_to={encodeURIComponent(data.destination)}"
+          style="font-weight: 600"
+          data-sveltekit-reload
+        >
+          <Icon name="discord" /> Continue with Discord
+        </a>
+      </p>
+    </section>
+
+    <section class="mg-panel">
+      <h2>You may not need an account</h2>
+      <p class="hint" style="margin-bottom: 0">
+        Public system and member pages are open to everyone, with no sign-in.
+        An account is only for managing and customising a system — and
+        pkviewer never asks for a PluralKit token in order to claim one.
+      </p>
+    </section>
+  </div>
+</div>
diff --git a/web/src/routes/manage/+error.svelte b/web/src/routes/manage/+error.svelte
new file mode 100644
index 0000000..3894f16
--- /dev/null
+++ b/web/src/routes/manage/+error.svelte
@@ -0,0 +1,36 @@
+<!-- web/src/routes/manage/+error.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import Icon from "$lib/components/Icon.svelte";
+
+  // A missing system and one you cannot manage read identically, so neither confirms the other exists.
+  // The error itself is never rendered: it can carry internal detail.
+</script>
+
+<svelte:head>
+  <title>Manage · pkviewer</title>
+</svelte:head>
+
+<div class="mg-shell">
+  {#if page.status === 404}
+    <section class="mg-panel">
+      <h2><Icon name="question-circle" /> Not found</h2>
+      <p class="hint">
+        This is not something you can manage. It may not exist, or it may
+        belong to someone else.
+      </p>
+      <a class="btn" href="/manage">Back to your systems</a>
+    </section>
+  {:else}
+    <section class="mg-panel" role="alert">
+      <h2><Icon name="exclamation-triangle" /> This page could not be loaded</h2>
+      <p class="hint">
+        Something went wrong on our side. Your settings have not been changed.
+      </p>
+      <button type="button" class="primary" onclick={() => location.reload()}>
+        <Icon name="arrow-clockwise" /> Try again
+      </button>
+      <a class="btn" href="/manage">Back to your systems</a>
+    </section>
+  {/if}
+</div>
diff --git a/web/src/routes/manage/+layout.server.ts b/web/src/routes/manage/+layout.server.ts
new file mode 100644
index 0000000..ee3474b
--- /dev/null
+++ b/web/src/routes/manage/+layout.server.ts
@@ -0,0 +1,15 @@
+/* web/src/routes/manage/+layout.server.ts */
+import { redirect } from "@sveltejs/kit";
+import type { LayoutServerLoad } from "./$types";
+import { isAuthenticated, isPlatformAdmin } from "$lib/server/api.ts";
+
+/**
+ * Every /manage route requires a session, checked here so no page has to
+ * remember to. A courtesy: the API refuses unauthenticated calls regardless.
+ */
+export const load: LayoutServerLoad = async () => {
+  if (!(await isAuthenticated())) redirect(303, "/login?return_to=/manage");
+
+  // Presentation only: /admin re-checks the grant, so hiding the link keeps nobody out
+  return { admin: await isPlatformAdmin() };
+};
diff --git a/web/src/routes/manage/+layout.svelte b/web/src/routes/manage/+layout.svelte
new file mode 100644
index 0000000..dd38423
--- /dev/null
+++ b/web/src/routes/manage/+layout.svelte
@@ -0,0 +1,36 @@
+<!-- web/src/routes/manage/+layout.svelte -->
+<script lang="ts">
+  import { site } from "$lib/config.ts";
+  import Icon from "$lib/components/Icon.svelte";
+  import Logo from "$lib/components/Logo.svelte";
+
+  let { data, children } = $props();
+</script>
+
+<svelte:head>
+  <meta name="robots" content="noindex, nofollow" />
+</svelte:head>
+
+<div class="mg">
+  <header class="mg-bar">
+    <a class="mg-brand" href="/manage">
+      <Logo />
+      pkviewer
+    </a>
+    <span class="mg-bar-note">Management</span>
+    <span class="spacer"></span>
+    {#if data.admin}
+      <a class="btn" href="/admin">Admin</a>
+    {/if}
+    <a class="btn" href={site.docsUrl} rel="noopener">
+      Docs <Icon name="box-arrow-up-right" />
+    </a>
+    <a class="btn" href="{site.publicOrigin}/">
+      Public site <Icon name="box-arrow-up-right" />
+    </a>
+    <form action="/manage/signout" method="post" data-sveltekit-reload>
+      <button type="submit" class="ghost">Sign out</button>
+    </form>
+  </header>
+  {@render children()}
+</div>
diff --git a/web/src/routes/manage/+page.server.ts b/web/src/routes/manage/+page.server.ts
new file mode 100644
index 0000000..630e5b3
--- /dev/null
+++ b/web/src/routes/manage/+page.server.ts
@@ -0,0 +1,10 @@
+/* web/src/routes/manage/+page.server.ts */
+import type { PageServerLoad } from "./$types";
+import { manageApi } from "$lib/server/api.ts";
+import type { ManagedSystemSummary } from "$lib/types.ts";
+
+// Only systems this account holds a grant for, filtered by the server, never hidden by the client
+export const load: PageServerLoad = async () => {
+  const result = await manageApi.get<{ systems: ManagedSystemSummary[] }>("/manage/systems");
+  return { systems: result.ok ? result.value.systems : null };
+};
diff --git a/web/src/routes/manage/+page.svelte b/web/src/routes/manage/+page.svelte
new file mode 100644
index 0000000..2442f43
--- /dev/null
+++ b/web/src/routes/manage/+page.svelte
@@ -0,0 +1,97 @@
+<!-- web/src/routes/manage/+page.svelte -->
+<script lang="ts">
+  import { site } from "$lib/config.ts";
+  import Icon from "$lib/components/Icon.svelte";
+  import Note from "$lib/components/manage/Note.svelte";
+  import PageHeader from "$lib/components/manage/PageHeader.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Manage · pkviewer</title>
+</svelte:head>
+
+{#if data.systems === null}
+  <div class="mg-shell">
+    <PageHeader title="Your systems" />
+    <Note icon="exclamation-triangle" tone="warn" role="alert">
+      Your systems could not be loaded right now. Please refresh in a moment.
+    </Note>
+  </div>
+{:else if data.systems.length === 0}
+  <!-- Explains what claiming is for and offers the action, rather than describing a process -->
+  <div class="mg-shell mg-shell--narrow">
+    <div class="mg-empty">
+      <h1>No systems yet</h1>
+      <p>
+        pkviewer turns a PluralKit system into a website. PluralKit keeps the
+        identity and the data; pkviewer decides how it looks on the web.
+      </p>
+      <p>To manage a system here, pkviewer needs to confirm you can act for it:</p>
+      <ol>
+        <li>
+          <strong>Usually automatic.</strong> If the Discord account you signed
+          in with is linked to a PluralKit system, pkviewer can confirm that on
+          its own.
+        </li>
+        <li>
+          <strong>Otherwise, a short code.</strong> pkviewer gives you a code to
+          put in your system description for a moment, then checks for it.
+        </li>
+      </ol>
+      <p>You never have to hand pkviewer a PluralKit token.</p>
+      <div class="mg-actions">
+        <a class="btn primary" href="/manage/claim">
+          Claim a system <Icon name="arrow-right" />
+        </a>
+        <a class="btn quiet" href={site.docsUrl} rel="noopener">
+          Read about claiming <Icon name="box-arrow-up-right" />
+        </a>
+      </div>
+    </div>
+  </div>
+{:else}
+  <div class="mg-shell">
+    <PageHeader title="Your systems" description="Choose a system to edit how it appears on the web.">
+      {#snippet actions()}
+        <a class="btn" href="/manage/claim">
+          <Icon name="plus-lg" /> Claim a system
+        </a>
+      {/snippet}
+    </PageHeader>
+
+    <ul class="mg-list">
+      {#each data.systems as system (system.systemId)}
+        <li>
+          <a class="mg-item" href="/manage/{system.systemId}">
+            {#if system.avatarUrl}
+              <img class="mg-thumb mg-thumb--round" src={system.avatarUrl} alt="" />
+            {:else}
+              <Icon name="person-circle" class="mg-thumb mg-thumb--round" />
+            {/if}
+
+            <span class="mg-identity">
+              <span class="name">{system.name ?? system.pkSystemHid}</span>
+              <span class="meta">
+                <code>{site.publicOrigin.replace(/^https?:\/\//, "")}{system.publicPath}</code>
+                {#if system.memberCount !== null}
+                  <span>
+                    {system.memberCount} {system.memberCount === 1 ? "member" : "members"}
+                  </span>
+                {/if}
+              </span>
+            </span>
+
+            {#if !system.reachable}
+              <span class="mg-tag" data-tone="warn">PluralKit unreachable</span>
+            {:else if !system.slug}
+              <span class="mg-tag">No address yet</span>
+            {/if}
+            <Icon name="arrow-right" class="mg-chevron" />
+          </a>
+        </li>
+      {/each}
+    </ul>
+  </div>
+{/if}
diff --git a/web/src/routes/manage/[systemId]/+layout.server.ts b/web/src/routes/manage/[systemId]/+layout.server.ts
new file mode 100644
index 0000000..9457f78
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/+layout.server.ts
@@ -0,0 +1,13 @@
+/* web/src/routes/manage/[systemId]/+layout.server.ts */
+import type { LayoutServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+import type { SystemOverview } from "$lib/types.ts";
+
+/**
+ * Loading the system doubles as the authorization check. It does not 404 here:
+ * each page does, so the not-found renders with the right status.
+ */
+export const load: LayoutServerLoad = async ({ params }) => {
+  const result = await manageApi.get<SystemOverview>(`/manage/systems/${seg(params.systemId)}`);
+  return { system: result.ok ? result.value : null };
+};
diff --git a/web/src/routes/manage/[systemId]/+layout.svelte b/web/src/routes/manage/[systemId]/+layout.svelte
new file mode 100644
index 0000000..ee811e7
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/+layout.svelte
@@ -0,0 +1,28 @@
+<!-- web/src/routes/manage/[systemId]/+layout.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import SystemNav from "$lib/components/manage/SystemNav.svelte";
+
+  let { data, children } = $props();
+</script>
+
+{#if data.system}
+  <div class="mg-shell">
+    <a class="mg-back" href="/manage">Your systems</a>
+    <div class="mg-syshead">
+      <h1>{data.system.name ?? data.system.pkSystemHid}</h1>
+      <p>Editing how this system appears on the web.</p>
+    </div>
+    <div class="mg-layout">
+      <SystemNav systemId={page.params["systemId"] ?? ""} />
+      <!-- Keyed so editor state never carries over when only the params change -->
+      <div class="mg-column">
+        {#key page.url.pathname}
+          {@render children()}
+        {/key}
+      </div>
+    </div>
+  </div>
+{:else}
+  {@render children()}
+{/if}
diff --git a/web/src/routes/manage/[systemId]/+page.server.ts b/web/src/routes/manage/[systemId]/+page.server.ts
new file mode 100644
index 0000000..5da42b1
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/+page.server.ts
@@ -0,0 +1,18 @@
+/* web/src/routes/manage/[systemId]/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import type { OfferedBadge } from "@pkviewer/shared";
+import type { PageServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+
+export const load: PageServerLoad = async ({ params, parent }) => {
+  const { system } = await parent();
+  if (!system) error(404);
+
+  const offers = await manageApi.get<{ badges: OfferedBadge[] }>(
+    `/manage/systems/${seg(params.systemId)}/badges`,
+  );
+  return {
+    system,
+    offers: offers.ok ? offers.value.badges : null,
+  };
+};
diff --git a/web/src/routes/manage/[systemId]/+page.svelte b/web/src/routes/manage/[systemId]/+page.svelte
new file mode 100644
index 0000000..eb76f2c
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/+page.svelte
@@ -0,0 +1,103 @@
+<!-- web/src/routes/manage/[systemId]/+page.svelte -->
+<script lang="ts">
+  import { site } from "$lib/config.ts";
+  import Icon from "$lib/components/Icon.svelte";
+  import BadgeOffers from "$lib/components/manage/BadgeOffers.svelte";
+  import Note from "$lib/components/manage/Note.svelte";
+  import PageHeader from "$lib/components/manage/PageHeader.svelte";
+  import PublicUrl from "$lib/components/manage/PublicUrl.svelte";
+  import Section from "$lib/components/manage/Section.svelte";
+
+  let { data } = $props();
+
+  const system = $derived(data.system);
+  const publicUrl = $derived(`${site.publicOrigin}${system.publicPath}`);
+  const idUrl = $derived(`${site.publicOrigin}/s/${system.pkSystemHid}`);
+
+  function formatAge(ms: number): string {
+    const minutes = Math.round(ms / 60_000);
+    if (minutes < 1) return "less than a minute";
+    if (minutes < 60) return `${minutes} minute${minutes === 1 ? "" : "s"}`;
+    const hours = Math.round(minutes / 60);
+    if (hours < 24) return `${hours} hour${hours === 1 ? "" : "s"}`;
+    return `${Math.round(hours / 24)} days`;
+  }
+</script>
+
+<svelte:head>
+  <title>Overview · Manage · pkviewer</title>
+</svelte:head>
+
+<PageHeader title="Overview" description="Where this system lives on the web, and what visitors see." />
+
+{#if !system.reachable}
+  <Note icon="exclamation-triangle" tone="warn" role="status">
+    PluralKit could not be reached, so some details may be out of date. Your
+    settings are unaffected and still save normally.
+  </Note>
+{/if}
+
+<Section title="Public page" description="The link to share.">
+  {#snippet actions()}
+    <a class="btn" href="/manage/{system.systemId}/address">
+      <Icon name="pencil-square" />
+      {system.slug ? "Change address" : "Choose an address"}
+    </a>
+  {/snippet}
+  {#if system.slug}
+    <PublicUrl
+      url={publicUrl}
+      secondary={{
+        url: idUrl,
+        note: "Its PluralKit ID address also works and always will:",
+      }}
+    />
+  {:else}
+    <PublicUrl url={publicUrl} label="Current address" />
+    <Note icon="info-circle">
+      This system is public already. It has no chosen address yet, so it
+      uses its PluralKit ID. Choosing one makes the link friendlier to
+      share, and the ID address keeps working either way.
+    </Note>
+  {/if}
+</Section>
+
+<Section title="What visitors see" description="Taken from PluralKit's public information.">
+  <dl class="mg-defs">
+    <div class="mg-def">
+      <dt>Name</dt>
+      <dd>{system.name ?? "Not set"}</dd>
+    </div>
+    <div class="mg-def">
+      <dt>Members listed</dt>
+      <dd>
+        {system.memberCount === null
+          ? "Unknown"
+          : `${system.memberCount} public ${system.memberCount === 1 ? "member" : "members"}`}
+      </dd>
+    </div>
+    <div class="mg-def">
+      <dt>Description</dt>
+      <dd>
+        {system.description
+          ? `${system.description.slice(0, 160)}${system.description.length > 160 ? "…" : ""}`
+          : "Not set"}
+      </dd>
+    </div>
+  </dl>
+</Section>
+
+{#if data.offers}
+  <BadgeOffers systemId={system.systemId} badges={data.offers} />
+{/if}
+
+<Section
+  title="Data freshness"
+  description="pkviewer keeps a copy of PluralKit's public data so pages stay fast, and stay up if PluralKit is briefly unavailable."
+>
+  <Note icon="clock-history">
+    {system.snapshotAgeMs === null
+      ? "No cached copy yet."
+      : `Last refreshed ${formatAge(system.snapshotAgeMs)} ago.`}
+  </Note>
+</Section>
diff --git a/web/src/routes/manage/[systemId]/address/+page.server.ts b/web/src/routes/manage/[systemId]/address/+page.server.ts
new file mode 100644
index 0000000..e388725
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/address/+page.server.ts
@@ -0,0 +1,18 @@
+/* web/src/routes/manage/[systemId]/address/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import type { PageServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+import type { SlugStatus } from "$lib/types.ts";
+
+// The address is a product feature: this is where a manager sees and changes the shared URL
+export const load: PageServerLoad = async ({ params, parent }) => {
+  const { system } = await parent();
+  const status = await manageApi.get<SlugStatus>(
+    `/manage/slugs/status?scope=system&subjectId=${seg(params.systemId)}`,
+  );
+  if (!system || !status.ok) error(404);
+  return {
+    system,
+    status: status.value,
+  };
+};
diff --git a/web/src/routes/manage/[systemId]/address/+page.svelte b/web/src/routes/manage/[systemId]/address/+page.svelte
new file mode 100644
index 0000000..d03077a
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/address/+page.svelte
@@ -0,0 +1,22 @@
+<!-- web/src/routes/manage/[systemId]/address/+page.svelte -->
+<script lang="ts">
+  import { site } from "$lib/config.ts";
+  import SlugEditor from "$lib/components/manage/SlugEditor.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Public address · Manage · pkviewer</title>
+</svelte:head>
+
+<SlugEditor
+  scope="system"
+  subjectId={data.system.systemId}
+  systemId={data.system.systemId}
+  status={data.status}
+  publicOrigin={site.publicOrigin}
+  basePath="/s"
+  idPath="/s/{data.system.pkSystemHid}"
+  idLabel="PluralKit ID"
+/>
diff --git a/web/src/routes/manage/[systemId]/appearance/+page.server.ts b/web/src/routes/manage/[systemId]/appearance/+page.server.ts
new file mode 100644
index 0000000..7d902f9
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/appearance/+page.server.ts
@@ -0,0 +1,24 @@
+/* web/src/routes/manage/[systemId]/appearance/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import { resolveTheme, THEME_TOKENS } from "@pkviewer/shared";
+import type { PageServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+
+export const load: PageServerLoad = async ({ params, parent }) => {
+  const { system } = await parent();
+  const theme = await manageApi.get<{ tokens: Record<string, string | null> }>(
+    `/manage/systems/${seg(params.systemId)}/theme`,
+  );
+  if (!system || !theme.ok) error(404);
+
+  // At system level the layer beneath is the platform default, so that is what "inherited" shows
+  const platform = resolveTheme({}, {}).light;
+  const inherited: Record<string, string> = {};
+  for (const def of THEME_TOKENS) inherited[def.key] = platform[def.key] ?? "";
+
+  return {
+    system,
+    tokens: theme.value.tokens ?? {},
+    inherited,
+  };
+};
diff --git a/web/src/routes/manage/[systemId]/appearance/+page.svelte b/web/src/routes/manage/[systemId]/appearance/+page.svelte
new file mode 100644
index 0000000..0847638
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/appearance/+page.svelte
@@ -0,0 +1,24 @@
+<!-- web/src/routes/manage/[systemId]/appearance/+page.svelte -->
+<script lang="ts">
+  import { saveSystemTheme } from "$lib/manage.remote.ts";
+  import { mutate } from "$lib/mutate.ts";
+  import ThemeEditor from "$lib/components/manage/ThemeEditor.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Appearance · Manage · pkviewer</title>
+</svelte:head>
+
+<p class="mg-note">
+  These settings define the default appearance for this system and every
+  member page under it. A member can override any of it on their own page.
+</p>
+<ThemeEditor
+  level="system"
+  initialValues={data.tokens}
+  inheritedFrom={data.inherited}
+  onSave={(tokens) => mutate(saveSystemTheme({ systemId: data.system.systemId, tokens }))}
+  previewName={data.system.name ?? data.system.pkSystemHid}
+/>
diff --git a/web/src/routes/manage/[systemId]/css/+page.server.ts b/web/src/routes/manage/[systemId]/css/+page.server.ts
new file mode 100644
index 0000000..099aad8
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/css/+page.server.ts
@@ -0,0 +1,16 @@
+/* web/src/routes/manage/[systemId]/css/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import type { CssIssue } from "@pkviewer/shared";
+import type { PageServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+
+export const load: PageServerLoad = async ({ params }) => {
+  const result = await manageApi.get<{ source: string; issues: CssIssue[] }>(
+    `/manage/systems/${seg(params.systemId)}/css`,
+  );
+  if (!result.ok) error(404);
+  return {
+    source: result.value.source,
+    issues: result.value.issues,
+  };
+};
diff --git a/web/src/routes/manage/[systemId]/css/+page.svelte b/web/src/routes/manage/[systemId]/css/+page.svelte
new file mode 100644
index 0000000..7729a47
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/css/+page.svelte
@@ -0,0 +1,17 @@
+<!-- web/src/routes/manage/[systemId]/css/+page.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import CssEditor from "$lib/components/manage/CssEditor.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Advanced CSS · Manage · pkviewer</title>
+</svelte:head>
+
+<CssEditor
+  systemId={page.params["systemId"] ?? ""}
+  initialSource={data.source}
+  initialIssues={data.issues}
+/>
diff --git a/web/src/routes/manage/[systemId]/directory/+page.server.ts b/web/src/routes/manage/[systemId]/directory/+page.server.ts
new file mode 100644
index 0000000..031d39d
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/directory/+page.server.ts
@@ -0,0 +1,14 @@
+/* web/src/routes/manage/[systemId]/directory/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import { resolveComposition } from "@pkviewer/shared";
+import type { PageServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+
+// Its own section: what is on the page and how it is arranged, not how it looks
+export const load: PageServerLoad = async ({ params }) => {
+  const stored = await manageApi.get<{ composition: Record<string, string> }>(
+    `/manage/systems/${seg(params.systemId)}/theme`,
+  );
+  if (!stored.ok) error(404);
+  return { composition: resolveComposition(stored.value.composition ?? {}, {}) };
+};
diff --git a/web/src/routes/manage/[systemId]/directory/+page.svelte b/web/src/routes/manage/[systemId]/directory/+page.svelte
new file mode 100644
index 0000000..388c078
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/directory/+page.svelte
@@ -0,0 +1,17 @@
+<!-- web/src/routes/manage/[systemId]/directory/+page.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import CompositionEditor from "$lib/components/manage/CompositionEditor.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Layout · Manage · pkviewer</title>
+</svelte:head>
+
+<p class="mg-note">
+  These control what appears on your pages and how it is arranged. They are
+  separate from Appearance, which controls how things look.
+</p>
+<CompositionEditor systemId={page.params["systemId"] ?? ""} initialValues={data.composition} />
diff --git a/web/src/routes/manage/[systemId]/links/+page.server.ts b/web/src/routes/manage/[systemId]/links/+page.server.ts
new file mode 100644
index 0000000..0476454
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/links/+page.server.ts
@@ -0,0 +1,19 @@
+/* web/src/routes/manage/[systemId]/links/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import type { PageServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+import type { StoredSocial } from "$lib/types.ts";
+
+export const load: PageServerLoad = async ({ params }) => {
+  const stored = await manageApi.get<{ links: StoredSocial[] }>(
+    `/manage/systems/${seg(params.systemId)}/socials`,
+  );
+  if (!stored.ok) error(404);
+  return {
+    links: stored.value.links.map((link) => ({
+      platform: link.platform,
+      label: link.label ?? "",
+      url: link.url,
+    })),
+  };
+};
diff --git a/web/src/routes/manage/[systemId]/links/+page.svelte b/web/src/routes/manage/[systemId]/links/+page.svelte
new file mode 100644
index 0000000..630b8e0
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/links/+page.svelte
@@ -0,0 +1,19 @@
+<!-- web/src/routes/manage/[systemId]/links/+page.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import { saveSystemSocials } from "$lib/manage.remote.ts";
+  import { mutate } from "$lib/mutate.ts";
+  import SocialLinksEditor from "$lib/components/manage/SocialLinksEditor.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Social links · Manage · pkviewer</title>
+</svelte:head>
+
+<SocialLinksEditor
+  ownerLabel="your system page"
+  initialLinks={data.links}
+  onSave={(links) => mutate(saveSystemSocials({ systemId: page.params["systemId"] ?? "", links }))}
+/>
diff --git a/web/src/routes/manage/[systemId]/members/+page.server.ts b/web/src/routes/manage/[systemId]/members/+page.server.ts
new file mode 100644
index 0000000..404202c
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/members/+page.server.ts
@@ -0,0 +1,14 @@
+/* web/src/routes/manage/[systemId]/members/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import type { PageServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+import type { ManagedMemberSummary } from "$lib/types.ts";
+
+// Only publicly listed members: the UI must never become a way to confirm a private one exists
+export const load: PageServerLoad = async ({ params }) => {
+  const result = await manageApi.get<{ members: ManagedMemberSummary[]; reachable: boolean }>(
+    `/manage/systems/${seg(params.systemId)}/members`,
+  );
+  if (!result.ok) error(404);
+  return result.value;
+};
diff --git a/web/src/routes/manage/[systemId]/members/+page.svelte b/web/src/routes/manage/[systemId]/members/+page.svelte
new file mode 100644
index 0000000..3367fcb
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/members/+page.svelte
@@ -0,0 +1,73 @@
+<!-- web/src/routes/manage/[systemId]/members/+page.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import Icon from "$lib/components/Icon.svelte";
+  import Note from "$lib/components/manage/Note.svelte";
+  import PageHeader from "$lib/components/manage/PageHeader.svelte";
+  import Section from "$lib/components/manage/Section.svelte";
+
+  let { data } = $props();
+
+  const systemId = $derived(page.params["systemId"] ?? "");
+</script>
+
+<svelte:head>
+  <title>Members · Manage · pkviewer</title>
+</svelte:head>
+
+<PageHeader
+  title="Members"
+  description="Give any member's page its own look, address and links. Everything starts out following your system."
+/>
+
+<Note icon="info-circle">
+  These are the members PluralKit lists publicly. Anything you keep private
+  in PluralKit stays private and does not appear here.
+</Note>
+
+{#if !data.reachable}
+  <Note icon="exclamation-triangle" tone="warn" role="status">
+    PluralKit could not be reached, so the member list is unavailable right
+    now. Try again shortly.
+  </Note>
+{:else if data.members.length === 0}
+  <Section
+    title="No public members"
+    description="This system has no publicly listed members, so its page shows no directory."
+  >
+    <div></div>
+  </Section>
+{:else}
+  <Section
+    title="{data.members.length} public {data.members.length === 1 ? 'member' : 'members'}"
+    description="Choose a member to edit their page."
+  >
+    <ul class="mg-list">
+      {#each data.members as member (member.pkMemberUuid)}
+        <!-- Name and details are separate blocks, so nothing relies on markup whitespace for spacing -->
+        <li>
+          <a class="mg-item" href="/manage/{systemId}/members/{member.pkMemberHid}">
+            {#if member.avatarUrl}
+              <img class="mg-thumb mg-thumb--round" src={member.avatarUrl} alt="" loading="lazy" />
+            {:else}
+              <Icon name="person-circle" class="mg-thumb mg-thumb--round" />
+            {/if}
+
+            <span class="mg-identity">
+              <span class="name">{member.displayName ?? member.name ?? member.pkMemberHid}</span>
+              <span class="meta">
+                {#if member.pronouns}<span>{member.pronouns}</span>{/if}
+                <code>{member.slug ?? member.pkMemberHid}</code>
+              </span>
+            </span>
+
+            <span class="mg-tag" data-tone={member.hasThemeOverrides ? "accent" : undefined}>
+              {member.hasThemeOverrides ? "Custom" : "Inherits"}
+            </span>
+            <Icon name="chevron-right" class="mg-chevron" />
+          </a>
+        </li>
+      {/each}
+    </ul>
+  </Section>
+{/if}
diff --git a/web/src/routes/manage/[systemId]/members/[memberRef]/+page.server.ts b/web/src/routes/manage/[systemId]/members/[memberRef]/+page.server.ts
new file mode 100644
index 0000000..a65e170
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/members/[memberRef]/+page.server.ts
@@ -0,0 +1,52 @@
+/* web/src/routes/manage/[systemId]/members/[memberRef]/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import { resolveTheme, THEME_TOKENS } from "@pkviewer/shared";
+import type { PageServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+import type { SlugStatus, StoredSocial } from "$lib/types.ts";
+
+type MemberDetail = {
+  memberId: string;
+  pkMemberHid: string;
+  name: string | null;
+  displayName: string | null;
+  avatarUrl: string | null;
+  pronouns: string | null;
+  slug: string | null;
+  tokens: Record<string, string | null>;
+  socials: StoredSocial[];
+  systemTokens: Record<string, string | null>;
+};
+
+export const load: PageServerLoad = async ({ params, parent }) => {
+  const { system } = await parent();
+  const detail = await manageApi.get<MemberDetail>(
+    `/manage/systems/${seg(params.systemId)}/members/${seg(params.memberRef)}`,
+  );
+  // A member PluralKit does not list publicly 404s here exactly as on the public site
+  if (!system || !detail.ok) error(404);
+
+  const member = detail.value;
+
+  // A member inherits the SYSTEM's resolved appearance, not the platform default
+  const systemResolved = resolveTheme(member.systemTokens ?? {}, {}).light;
+  const inherited: Record<string, string> = {};
+  for (const def of THEME_TOKENS) inherited[def.key] = systemResolved[def.key] ?? "";
+
+  // A member row exists by now: loading the detail created it
+  const slugStatus = await manageApi.get<SlugStatus>(
+    `/manage/slugs/status?scope=member&subjectId=${seg(member.memberId)}`,
+  );
+
+  return {
+    system,
+    member,
+    inherited,
+    slugStatus: slugStatus.ok ? slugStatus.value : null,
+    links: member.socials.map((link) => ({
+      platform: link.platform,
+      label: link.label ?? "",
+      url: link.url,
+    })),
+  };
+};
diff --git a/web/src/routes/manage/[systemId]/members/[memberRef]/+page.svelte b/web/src/routes/manage/[systemId]/members/[memberRef]/+page.svelte
new file mode 100644
index 0000000..90bc645
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/members/[memberRef]/+page.svelte
@@ -0,0 +1,76 @@
+<!-- web/src/routes/manage/[systemId]/members/[memberRef]/+page.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import { site } from "$lib/config.ts";
+  import { saveMemberSocials, saveMemberTheme } from "$lib/manage.remote.ts";
+  import { mutate } from "$lib/mutate.ts";
+  import Icon from "$lib/components/Icon.svelte";
+  import SlugEditor from "$lib/components/manage/SlugEditor.svelte";
+  import SocialLinksEditor from "$lib/components/manage/SocialLinksEditor.svelte";
+  import ThemeEditor from "$lib/components/manage/ThemeEditor.svelte";
+
+  let { data } = $props();
+
+  const systemId = $derived(page.params["systemId"] ?? "");
+  const memberRef = $derived(page.params["memberRef"] ?? "");
+  const member = $derived(data.member);
+  const name = $derived(member.displayName ?? member.name ?? member.pkMemberHid);
+  const publicUrl = $derived(
+    `${site.publicOrigin}${data.system.publicPath}/${member.slug ?? member.pkMemberHid}`,
+  );
+</script>
+
+<svelte:head>
+  <title>{name} · Manage · pkviewer</title>
+</svelte:head>
+
+<p style="margin-top: 0">
+  <a class="btn" href="/manage/{systemId}/members">
+    <Icon name="arrow-left" /> All members
+  </a>
+  <a class="btn" href={publicUrl} target="_blank" rel="noopener">
+    Open public page <Icon name="box-arrow-up-right" />
+  </a>
+  <a class="btn" href="/manage/{systemId}/members/{encodeURIComponent(memberRef)}/css">
+    <Icon name="code-slash" /> Advanced CSS
+  </a>
+</p>
+
+<div class="mg-head">
+  <h1>{name}</h1>
+  <p>
+    {member.pronouns ? `${member.pronouns} · ` : ""}PluralKit ID {member.pkMemberHid}
+  </p>
+</div>
+
+<p class="mg-note">
+  Every setting here starts out following your system appearance. Override
+  only what you want different on this member's page.
+</p>
+
+{#if data.slugStatus}
+  <SlugEditor
+    scope="member"
+    subjectId={member.memberId}
+    {systemId}
+    status={data.slugStatus}
+    publicOrigin={site.publicOrigin}
+    basePath={data.system.publicPath}
+    idPath="{data.system.publicPath}/{member.pkMemberHid}"
+    idLabel="PluralKit ID"
+  />
+{/if}
+
+<ThemeEditor
+  level="member"
+  initialValues={member.tokens ?? {}}
+  inheritedFrom={data.inherited}
+  onSave={(tokens) => mutate(saveMemberTheme({ systemId, memberRef, tokens }))}
+  previewName={name}
+/>
+
+<SocialLinksEditor
+  ownerLabel="{name}'s page"
+  initialLinks={data.links}
+  onSave={(links) => mutate(saveMemberSocials({ systemId, memberRef, links }))}
+/>
diff --git a/web/src/routes/manage/[systemId]/members/[memberRef]/css/+page.server.ts b/web/src/routes/manage/[systemId]/members/[memberRef]/css/+page.server.ts
new file mode 100644
index 0000000..1fa48bd
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/members/[memberRef]/css/+page.server.ts
@@ -0,0 +1,16 @@
+/* web/src/routes/manage/[systemId]/members/[memberRef]/css/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import type { CssIssue } from "@pkviewer/shared";
+import type { PageServerLoad } from "./$types";
+import { manageApi, seg } from "$lib/server/api.ts";
+
+export const load: PageServerLoad = async ({ params }) => {
+  const result = await manageApi.get<{ source: string; issues: CssIssue[] }>(
+    `/manage/systems/${seg(params.systemId)}/members/${seg(params.memberRef)}/css`,
+  );
+  if (!result.ok) error(404);
+  return {
+    source: result.value.source,
+    issues: result.value.issues,
+  };
+};
diff --git a/web/src/routes/manage/[systemId]/members/[memberRef]/css/+page.svelte b/web/src/routes/manage/[systemId]/members/[memberRef]/css/+page.svelte
new file mode 100644
index 0000000..796a233
--- /dev/null
+++ b/web/src/routes/manage/[systemId]/members/[memberRef]/css/+page.svelte
@@ -0,0 +1,29 @@
+<!-- web/src/routes/manage/[systemId]/members/[memberRef]/css/+page.svelte -->
+<script lang="ts">
+  import { page } from "$app/state";
+  import CssEditor from "$lib/components/manage/CssEditor.svelte";
+  import PageHeader from "$lib/components/manage/PageHeader.svelte";
+
+  let { data } = $props();
+
+  const systemId = $derived(page.params["systemId"] ?? "");
+  const memberRef = $derived(page.params["memberRef"] ?? "");
+</script>
+
+<svelte:head>
+  <title>Advanced CSS · Manage · pkviewer</title>
+</svelte:head>
+
+<PageHeader
+  title=""
+  back={{
+    href: `/manage/${systemId}/members/${encodeURIComponent(memberRef)}`,
+    label: "Back to member",
+  }}
+/>
+<CssEditor
+  {systemId}
+  {memberRef}
+  initialSource={data.source}
+  initialIssues={data.issues}
+/>
diff --git a/web/src/routes/manage/claim/+page.server.ts b/web/src/routes/manage/claim/+page.server.ts
new file mode 100644
index 0000000..0b32c3e
--- /dev/null
+++ b/web/src/routes/manage/claim/+page.server.ts
@@ -0,0 +1,12 @@
+/* web/src/routes/manage/claim/+page.server.ts */
+import type { PageServerLoad } from "./$types";
+import { discoverSystems } from "$lib/server/api.ts";
+
+// Discovery runs on load, so the common case is already answered when the page appears
+export const load: PageServerLoad = async () => {
+  const discovered = await discoverSystems();
+  return {
+    systems: discovered.ok ? discovered.systems : [],
+    error: discovered.ok ? null : discovered.error,
+  };
+};
diff --git a/web/src/routes/manage/claim/+page.svelte b/web/src/routes/manage/claim/+page.svelte
new file mode 100644
index 0000000..54f27c9
--- /dev/null
+++ b/web/src/routes/manage/claim/+page.svelte
@@ -0,0 +1,29 @@
+<!-- web/src/routes/manage/claim/+page.svelte -->
+<script lang="ts">
+  import Icon from "$lib/components/Icon.svelte";
+  import ClaimFlow from "$lib/components/manage/ClaimFlow.svelte";
+
+  let { data } = $props();
+</script>
+
+<svelte:head>
+  <title>Claim a system · Manage · pkviewer</title>
+</svelte:head>
+
+<div class="mg-shell" style="max-width: 46rem">
+  <p style="margin-top: 0">
+    <a class="btn" href="/manage">
+      <Icon name="arrow-left" /> Your systems
+    </a>
+  </p>
+
+  <div class="mg-head">
+    <h1>Claim a system</h1>
+    <p>
+      Claiming lets you manage how a system appears on the web. It does not
+      change anything in PluralKit.
+    </p>
+  </div>
+
+  <ClaimFlow initialSystems={data.systems} initialError={data.error} />
+</div>
diff --git a/web/src/routes/manage/signout/+server.ts b/web/src/routes/manage/signout/+server.ts
new file mode 100644
index 0000000..afbc465
--- /dev/null
+++ b/web/src/routes/manage/signout/+server.ts
@@ -0,0 +1,26 @@
+/* web/src/routes/manage/signout/+server.ts */
+import { redirect } from "@sveltejs/kit";
+import type { RequestHandler } from "./$types";
+import { site } from "$lib/config.ts";
+import { apiOrigin } from "$lib/server/api.ts";
+
+/**
+ * A POST, so a link or a prefetch cannot end a session. The API revokes the
+ * session server-side; clearing the cookie alone would leave it usable.
+ */
+export const POST: RequestHandler = async ({ request, cookies }) => {
+  await fetch(`${apiOrigin()}/auth/logout`, {
+    method: "POST",
+    headers: {
+      cookie: request.headers.get("cookie") ?? "",
+      origin: site.publicOrigin,
+    },
+  }).catch(() => undefined);
+
+  cookies.delete("__Host-pkv_session", {
+    path: "/",
+    secure: true,
+    httpOnly: true,
+  });
+  redirect(303, "/login");
+};
diff --git a/web/src/routes/s/[systemRef]/+page.server.ts b/web/src/routes/s/[systemRef]/+page.server.ts
new file mode 100644
index 0000000..536e368
--- /dev/null
+++ b/web/src/routes/s/[systemRef]/+page.server.ts
@@ -0,0 +1,14 @@
+/* web/src/routes/s/[systemRef]/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import type { PageServerLoad } from "./$types";
+import { getSystemPage } from "$lib/server/api.ts";
+
+/**
+ * Both /s/<pluralkit-id> and /s/<slug> render this with 200 (decision 8).
+ * Neither redirects: a permanent redirect would outlive slug ownership.
+ */
+export const load: PageServerLoad = async ({ params }) => {
+  const result = await getSystemPage(params.systemRef);
+  if (!result.ok) error(result.status === 404 ? 404 : 503);
+  return { page: result.value };
+};
diff --git a/web/src/routes/s/[systemRef]/+page.svelte b/web/src/routes/s/[systemRef]/+page.svelte
new file mode 100644
index 0000000..5c9b078
--- /dev/null
+++ b/web/src/routes/s/[systemRef]/+page.svelte
@@ -0,0 +1,93 @@
+<!-- web/src/routes/s/[systemRef]/+page.svelte -->
+<script lang="ts">
+  import { buildPageTheme } from "$lib/theme.ts";
+  import BadgeRow from "$lib/components/BadgeRow.svelte";
+  import CustomStyle from "$lib/components/CustomStyle.svelte";
+  import Icon from "$lib/components/Icon.svelte";
+  import MemberDirectory from "$lib/components/MemberDirectory.svelte";
+  import Meta from "$lib/components/Meta.svelte";
+  import SiteDisclosure from "$lib/components/SiteDisclosure.svelte";
+  import SocialLinks from "$lib/components/SocialLinks.svelte";
+  import StaleNotice from "$lib/components/StaleNotice.svelte";
+  import ThemeFonts from "$lib/components/ThemeFonts.svelte";
+  import TokenStyle from "$lib/components/TokenStyle.svelte";
+
+  let { data } = $props();
+
+  const system = $derived(data.page.system);
+  const composition = $derived(data.page.composition);
+  const name = $derived(system.name ?? system.hid);
+  const theme = $derived(buildPageTheme(data.page.tokens, null, composition));
+  const showBanner = $derived(composition["banner.display"] !== "hidden");
+  const showPronouns = $derived(composition["show.pronouns"] !== "false");
+</script>
+
+<!-- Server-rendered so Discord's unfurler, which runs no JavaScript, gets a real card (A2) -->
+<Meta
+  title="{name} · pkviewer"
+  description={system.description?.slice(0, 200) ?? `The ${name} system on pkviewer.`}
+  path={data.page.canonicalPath}
+  image={system.avatarUrl}
+  type="profile"
+/>
+
+<main class="page stack" id="pkv-user">
+  <ThemeFonts fonts={theme.fonts} />
+  <TokenStyle
+    vars={theme.vars}
+    darkVars={theme.darkVars}
+    colorScheme={theme.colorScheme}
+    scope=":root"
+  />
+
+  <CustomStyle css={data.page.css} />
+
+  {#if system.staleSinceMs !== null}
+    <StaleNotice staleSinceMs={system.staleSinceMs} />
+  {/if}
+
+  {#if showBanner && system.bannerUrl}
+    <img class="banner" src={system.bannerUrl} alt="" />
+  {/if}
+
+  <header class="identity">
+    {#if system.avatarUrl}
+      <img class="avatar" src={system.avatarUrl} alt="" />
+    {:else}
+      <Icon name="person-circle" class="avatar" />
+    {/if}
+    <div class="stack-tight" style="min-width: 0">
+      <h1 style="margin: 0; overflow-wrap: anywhere">{name}</h1>
+      <ul class="meta-list muted">
+        <li><code>{system.hid}</code></li>
+        {#if showPronouns && system.pronouns}
+          <li>{system.pronouns}</li>
+        {/if}
+        {#if system.tag}
+          <li>{system.tag}</li>
+        {/if}
+        <li>
+          <Icon name="people-fill" /> {system.memberCount}
+          {system.memberCount === 1 ? "member" : "members"}
+        </li>
+      </ul>
+    </div>
+  </header>
+
+  <BadgeRow badges={data.page.badges} />
+
+  {#if system.description}
+    <section class="prose">
+      <p style="white-space: pre-wrap">{system.description}</p>
+    </section>
+  {/if}
+
+  <SocialLinks links={data.page.socials} />
+
+  <section class="stack-tight">
+    <h2>Members</h2>
+    <MemberDirectory members={data.page.members} {composition} />
+  </section>
+
+  <SiteDisclosure />
+</main>
diff --git a/web/src/routes/s/[systemRef]/[memberRef]/+page.server.ts b/web/src/routes/s/[systemRef]/[memberRef]/+page.server.ts
new file mode 100644
index 0000000..6480a93
--- /dev/null
+++ b/web/src/routes/s/[systemRef]/[memberRef]/+page.server.ts
@@ -0,0 +1,21 @@
+/* web/src/routes/s/[systemRef]/[memberRef]/+page.server.ts */
+import { error } from "@sveltejs/kit";
+import type { PageServerLoad } from "./$types";
+import { getMemberPage } from "$lib/server/api.ts";
+
+/**
+ * A member PluralKit does not return publicly 404s identically to one that
+ * never existed (decision 5), including when a pkviewer slug points at it.
+ */
+export const load: PageServerLoad = async ({ params }) => {
+  const result = await getMemberPage(params.systemRef, params.memberRef);
+  if (!result.ok) error(result.status === 404 ? 404 : 503);
+
+  const { member } = result.value;
+  if (!member) error(404);
+
+  return {
+    page: result.value,
+    member,
+  };
+};
diff --git a/web/src/routes/s/[systemRef]/[memberRef]/+page.svelte b/web/src/routes/s/[systemRef]/[memberRef]/+page.svelte
new file mode 100644
index 0000000..8748ff5
--- /dev/null
+++ b/web/src/routes/s/[systemRef]/[memberRef]/+page.svelte
@@ -0,0 +1,93 @@
+<!-- web/src/routes/s/[systemRef]/[memberRef]/+page.svelte -->
+<script lang="ts">
+  import { buildPageTheme } from "$lib/theme.ts";
+  import CustomStyle from "$lib/components/CustomStyle.svelte";
+  import Icon from "$lib/components/Icon.svelte";
+  import Meta from "$lib/components/Meta.svelte";
+  import SiteDisclosure from "$lib/components/SiteDisclosure.svelte";
+  import SocialLinks from "$lib/components/SocialLinks.svelte";
+  import StaleNotice from "$lib/components/StaleNotice.svelte";
+  import ThemeFonts from "$lib/components/ThemeFonts.svelte";
+  import TokenStyle from "$lib/components/TokenStyle.svelte";
+
+  let { data } = $props();
+
+  const system = $derived(data.page.system);
+  const member = $derived(data.member);
+  const composition = $derived(data.page.composition);
+
+  const showBanner = $derived(composition["banner.display"] !== "hidden");
+  const showPronouns = $derived(composition["show.pronouns"] !== "false");
+  const showBirthday = $derived(composition["show.birthday"] !== "false");
+
+  // Tokens arrive already merged system-under-member, so inheritance is not re-applied
+  const theme = $derived(buildPageTheme(data.page.tokens, null, composition));
+
+  const name = $derived(member.displayName ?? member.name ?? member.hid);
+  const systemName = $derived(system.name ?? system.hid);
+</script>
+
+<Meta
+  title="{name} · pkviewer"
+  description={member.description?.slice(0, 200) ?? null}
+  path={data.page.canonicalPath}
+  image={member.avatarUrl}
+  type="profile"
+/>
+
+<main class="page stack" id="pkv-user">
+  <ThemeFonts fonts={theme.fonts} />
+  <TokenStyle
+    vars={theme.vars}
+    darkVars={theme.darkVars}
+    colorScheme={theme.colorScheme}
+    scope=":root"
+  />
+
+  <CustomStyle css={data.page.css} />
+
+  {#if system.staleSinceMs !== null}
+    <StaleNotice staleSinceMs={system.staleSinceMs} />
+  {/if}
+
+  <a class="breadcrumb" href="/s/{member.systemSlug ?? member.systemHid}">
+    <Icon name="arrow-left" /> {systemName}
+  </a>
+
+  {#if showBanner && member.bannerUrl}
+    <img class="banner" src={member.bannerUrl} alt="" />
+  {/if}
+
+  <header class="identity">
+    {#if member.avatarUrl}
+      <img class="avatar" src={member.avatarUrl} alt="" />
+    {:else}
+      <Icon name="person-circle" class="avatar" />
+    {/if}
+    <div class="stack-tight" style="min-width: 0">
+      <h1 style="margin: 0; overflow-wrap: anywhere">{name}</h1>
+      {#if member.name && member.displayName && member.name !== member.displayName}
+        <p class="muted" style="margin: 0">{member.name}</p>
+      {/if}
+      <ul class="meta-list muted">
+        <li><code>{member.hid}</code></li>
+        {#if showPronouns && member.pronouns}
+          <li>{member.pronouns}</li>
+        {/if}
+        {#if showBirthday && member.birthday}
+          <li>{member.birthday}</li>
+        {/if}
+      </ul>
+    </div>
+  </header>
+
+  {#if member.description}
+    <section class="prose">
+      <p style="white-space: pre-wrap">{member.description}</p>
+    </section>
+  {/if}
+
+  <SocialLinks links={data.page.socials} />
+
+  <SiteDisclosure />
+</main>
diff --git a/apps/web/src/app/apple-icon.png b/web/static/apple-icon.png
similarity index 100%
rename from apps/web/src/app/apple-icon.png
rename to web/static/apple-icon.png
diff --git a/apps/web/src/app/icon.svg b/web/static/icon.svg
similarity index 100%
rename from apps/web/src/app/icon.svg
rename to web/static/icon.svg
diff --git a/apps/web/src/app/opengraph-image.png b/web/static/opengraph-image.png
similarity index 100%
rename from apps/web/src/app/opengraph-image.png
rename to web/static/opengraph-image.png
diff --git a/web/svelte.config.js b/web/svelte.config.js
new file mode 100644
index 0000000..9e2c2c3
--- /dev/null
+++ b/web/svelte.config.js
@@ -0,0 +1,21 @@
+/* web/svelte.config.js */
+import adapter from "@sveltejs/adapter-node";
+import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
+
+/** @type {import("@sveltejs/kit").Config} */
+const config = {
+  preprocess: vitePreprocess(),
+  kit: {
+    adapter: adapter(),
+    alias: {
+      // Shared theme, CSS and recognition code lives with the API
+      "@pkviewer/shared": "../api/shared/index.ts",
+    },
+    experimental: {
+      // Management actions are remote commands, the counterpart of Next's server actions
+      remoteFunctions: true,
+    },
+  },
+};
+
+export default config;
diff --git a/apps/web/test/badges.test.ts b/web/test/badges.test.ts
similarity index 87%
rename from apps/web/test/badges.test.ts
rename to web/test/badges.test.ts
index fd53145..62f1bbb 100644
--- a/apps/web/test/badges.test.ts
+++ b/web/test/badges.test.ts
@@ -1,4 +1,6 @@
-import { describe, expect, test } from "bun:test";
+/* web/test/badges.test.ts */
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { readFileSync } from "node:fs";
 import { join } from "node:path";
 import { BADGE_ICON_IDS, BADGE_TONE_IDS } from "@pkviewer/shared";
@@ -17,9 +19,10 @@ import { BADGE_ICON_IDS, BADGE_TONE_IDS } from "@pkviewer/shared";
  * quietly obeys the page it is supposed to be independent of.
  */
 
-const root = join(import.meta.dir, "..", "src");
-const css = readFileSync(join(root, "app", "globals.css"), "utf8");
-const component = readFileSync(join(root, "components", "Badges.tsx"), "utf8");
+const root = join(import.meta.dirname!, "..", "src");
+const css = readFileSync(join(root, "app.css"), "utf8");
+const iconMap = readFileSync(join(root, "lib", "badges.ts"), "utf8");
+const component = readFileSync(join(root, "lib", "components", "BadgeRow.svelte"), "utf8");
 
 /**
  * Every rule whose selector targets a badge.
@@ -66,11 +69,11 @@ describe("badge styling is out of a theme's reach", () => {
     expect(new Set(styled)).toEqual(new Set(BADGE_TONE_IDS));
   });
 
-  test("every icon in the vocabulary maps to a component", () => {
+  test("every icon in the vocabulary maps to an icon", () => {
     // A missing entry would fall through to the neutral fallback, which is a
     // quiet way for a badge to lose its identity.
     for (const icon of BADGE_ICON_IDS) {
-      expect(component, icon).toMatch(new RegExp(`\\b${icon}:\\s*\\w`));
+      expect(iconMap, icon).toMatch(new RegExp(`\\b${icon}:\\s*"[a-z0-9-]+"`));
     }
   });
 
diff --git a/apps/web/test/csp.test.ts b/web/test/csp.test.ts
similarity index 90%
rename from apps/web/test/csp.test.ts
rename to web/test/csp.test.ts
index 6d57397..335f367 100644
--- a/apps/web/test/csp.test.ts
+++ b/web/test/csp.test.ts
@@ -1,4 +1,6 @@
-import { describe, expect, test } from "bun:test";
+/* web/test/csp.test.ts */
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { readFileSync } from "node:fs";
 import { join } from "node:path";
 import { CSS_URL_HOSTS } from "@pkviewer/shared";
@@ -15,12 +17,11 @@ import { CSS_URL_HOSTS } from "@pkviewer/shared";
  *
  * These assert the shape of the policy directly.
  */
-const config = readFileSync(join(import.meta.dir, "..", "next.config.ts"), "utf8");
+const config = readFileSync(join(import.meta.dirname!, "..", "src", "hooks.server.ts"), "utf8");
 
 describe("content security policy", () => {
-  // Next's development bundles evaluate modules through eval(); main-app.js
-  // alone contains well over a hundred calls.
-  test("development permits eval, which Next's dev bundles require", () => {
+  // Development tooling may evaluate modules through eval().
+  test("development permits eval", () => {
     expect(config).toContain("'unsafe-eval'");
   });
 
diff --git a/apps/web/test/css-specificity.test.ts b/web/test/css-specificity.test.ts
similarity index 89%
rename from apps/web/test/css-specificity.test.ts
rename to web/test/css-specificity.test.ts
index da5f05c..0742038 100644
--- a/apps/web/test/css-specificity.test.ts
+++ b/web/test/css-specificity.test.ts
@@ -1,4 +1,6 @@
-import { describe, expect, test } from "bun:test";
+/* web/test/css-specificity.test.ts */
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { readFileSync } from "node:fs";
 import { join } from "node:path";
 
@@ -12,7 +14,7 @@ import { join } from "node:path";
  *
  * The rules below encode the two shapes that caused it.
  */
-const css = readFileSync(join(import.meta.dir, "..", "src", "app", "globals.css"), "utf8");
+const css = readFileSync(join(import.meta.dirname!, "..", "src", "app.css"), "utf8");
 
 describe("management stylesheet cascade", () => {
   // A card that happens to be a <button> must out-specify the generic button
diff --git a/apps/web/test/no-beta.test.ts b/web/test/no-beta.test.ts
similarity index 78%
rename from apps/web/test/no-beta.test.ts
rename to web/test/no-beta.test.ts
index 51587df..f6e6778 100644
--- a/apps/web/test/no-beta.test.ts
+++ b/web/test/no-beta.test.ts
@@ -1,4 +1,6 @@
-import { describe, expect, test } from "bun:test";
+/* web/test/no-beta.test.ts */
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
 import { readdirSync, readFileSync, statSync } from "node:fs";
 import { join } from "node:path";
 
@@ -11,7 +13,7 @@ import { join } from "node:path";
  * working gate. This walks the tree and asserts the whole vocabulary is gone.
  */
 
-const root = join(import.meta.dir, "..", "..", "..");
+const root = join(import.meta.dirname!, "..", "..");
 
 const SKIP = new Set([
   "node_modules",
@@ -19,6 +21,8 @@ const SKIP = new Set([
   ".next",
   ".next-prod",
   "dist",
+  "build",
+  ".svelte-kit",
   "coverage",
   // This file names the terms it forbids.
   "no-beta.test.ts",
@@ -29,7 +33,7 @@ function walk(dir: string, out: string[] = []): string[] {
     if (SKIP.has(entry)) continue;
     const full = join(dir, entry);
     if (statSync(full).isDirectory()) walk(full, out);
-    else if (/\.(ts|tsx|css|sql|json|yml|yaml)$/.test(entry) || entry === ".env.example") {
+    else if (/\.(ts|svelte|css|sql|json|yml|yaml)$/.test(entry) || entry === ".env.example") {
       out.push(full);
     }
   }
@@ -65,7 +69,7 @@ describe("beta is gone, not disabled", () => {
   // The allow-list is the one that mattered: while it existed, claiming was
   // closed to everyone not on it, and an empty list denied everybody.
   test("claiming is not gated by any allow-list", () => {
-    const claims = readFileSync(join(root, "apps/api/src/http/routes/claims.ts"), "utf8");
+    const claims = readFileSync(join(root, "api/src/http/routes/claims.ts"), "utf8");
     expect(claims).not.toMatch(/allow.?list/i);
     // Claiming now refuses only the unauthenticated. `not_owner` on unclaim is
     // still a legitimate 403, so this checks the gate rather than the status.
@@ -75,12 +79,12 @@ describe("beta is gone, not disabled", () => {
   // Public pages were noindex throughout the beta. They should be indexable
   // now, while the management and admin planes stay out of search results.
   test("public pages are indexable and the control planes are not", () => {
-    const layout = readFileSync(join(root, "apps/web/src/app/layout.tsx"), "utf8");
+    const layout = readFileSync(join(root, "web/src/routes/+layout.svelte"), "utf8");
     expect(layout).not.toContain("robots");
 
     for (const shell of ["manage", "admin"]) {
-      const text = readFileSync(join(root, `apps/web/src/app/${shell}/layout.tsx`), "utf8");
-      expect(text, shell).toContain("robots: { index: false, follow: false }");
+      const text = readFileSync(join(root, `web/src/routes/${shell}/+layout.svelte`), "utf8");
+      expect(text, shell).toContain('<meta name="robots" content="noindex, nofollow" />');
     }
   });
 });
diff --git a/apps/web/test/token-style.test.ts b/web/test/token-style.test.ts
similarity index 86%
rename from apps/web/test/token-style.test.ts
rename to web/test/token-style.test.ts
index bfaabd5..cedc2ba 100644
--- a/apps/web/test/token-style.test.ts
+++ b/web/test/token-style.test.ts
@@ -1,5 +1,7 @@
-import { describe, expect, test } from "bun:test";
-import { TokenStyle, sanitizeCssVars } from "../src/components/TokenStyle.tsx";
+/* web/test/token-style.test.ts */
+import { expect } from "@std/expect";
+import { describe, it as test } from "@std/testing/bdd";
+import { sanitizeCssVars, tokenCss } from "../src/lib/tokenStyle.ts";
 
 /**
  * TokenStyle is the last line of defence, not the first. The vocabulary and its
@@ -97,13 +99,5 @@ describe("where theme properties are declared", () => {
   });
 });
 
-/** Renders TokenStyle to the CSS text it would emit. */
-function renderTokenStyle(props: {
-  scope: ":root" | { elementId: string };
-  vars: Record<string, string>;
-  darkVars?: Record<string, string>;
-  colorScheme?: "auto" | "light" | "dark";
-}): string {
-  const element = TokenStyle(props as never) as { props?: { children?: string } } | null;
-  return element?.props?.children ?? "";
-}
+/** The CSS text the TokenStyle component would emit. */
+const renderTokenStyle = tokenCss;
diff --git a/web/tsconfig.json b/web/tsconfig.json
new file mode 100644
index 0000000..7350ee7
--- /dev/null
+++ b/web/tsconfig.json
@@ -0,0 +1,15 @@
+{
+  "extends": "./.svelte-kit/tsconfig.json",
+  "compilerOptions": {
+    "strict": true,
+    "noUncheckedIndexedAccess": true,
+    "exactOptionalPropertyTypes": true,
+    "allowImportingTsExtensions": true,
+    "skipLibCheck": true
+  },
+  "exclude": [
+    "test/**",
+    "build/**",
+    "../node_modules/**"
+  ]
+}
diff --git a/web/vite.config.ts b/web/vite.config.ts
new file mode 100644
index 0000000..638124f
--- /dev/null
+++ b/web/vite.config.ts
@@ -0,0 +1,13 @@
+/* web/vite.config.ts */
+import { sveltekit } from "@sveltejs/kit/vite";
+import { defineConfig } from "vite";
+
+export default defineConfig({
+  plugins: [sveltekit()],
+  server: {
+    fs: {
+      // The shared code sits outside web/, in api/shared
+      allow: ["../api/shared"],
+    },
+  },
+});