commit
first commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..818bf31
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,17 @@
+# dependencies
+/node_modules
+
+# next.js / build output
+/.next/
+/out/
+next-env.d.ts
+tsconfig.tsbuildinfo
+
+# cloudflare / opennext
+/.open-next/
+.dev.vars
+.wrangler/
+cloudflare-env.d.ts
+
+# misc
+.DS_Store
\ No newline at end of file
diff --git a/Contributing.md b/Contributing.md
new file mode 100644
index 0000000..cfe0c91
--- /dev/null
+++ b/Contributing.md
@@ -0,0 +1,20 @@
+# Contributing Guidelines
+
+Thank you for considering contributing!
+
+## How to Contribute
+- Fork the repository
+- Create a new branch for your feature or fix
+- Submit a pull request with a clear description
+
+## Code of Conduct
+All contributors are expected to follow the [Code of Conduct](CODE_OF_CONDUCT.md).
+
+## Issues
+- Please use issues for bug reports, feature requests, and questions.
+
+## Commit Messages
+- Use clear, descriptive commit messages.
+
+## License
+By contributing, you agree your contributions will be licensed under the repository's license.
diff --git a/Licence.md b/Licence.md
new file mode 100644
index 0000000..5da5a1e
--- /dev/null
+++ b/Licence.md
@@ -0,0 +1,158 @@
+# Doughmination Authorised Source Licence
+
+**Version 1.0**
+
+This Licence may be referred to as the **Doughmination Authorised Source Licence (DASL)**. This version may be referred to as **DASL-1.0**.
+
+Copyright © 2026 Clove Nytrix Doughmination Twilight.
+
+---
+
+# 1. Definitions
+
+For the purposes of this Licence:
+
+**"Software"** means the source code, object code, documentation, configuration, assets, and any associated files distributed under this Licence.
+
+**"Authorisation"** means explicit written permission granted by Clove Nytrix Doughmination Twilight permitting specific use of the Software.
+
+**"Trademarked Components"** means any trademarks, trade names, service marks, logos, branding, identifiers, product names, system names, or other distinctive branding owned or claimed by Clove Nytrix Doughmination Twilight, whether registered or unregistered.
+
+---
+
+# 2. Grant of Rights
+
+Except where expressly permitted by this Licence or by separate written Authorisation, no licence or permission is granted to use, copy, modify, merge, publish, distribute, sublicense, host, deploy, execute, sell, create derivative works from, or otherwise exploit the Software.
+
+The Software is made available solely for inspection and review of its source code.
+
+All rights not expressly granted are reserved.
+
+---
+
+# 3. Authorised Use
+
+Any person or organisation wishing to use the Software for any purpose must first obtain written Authorisation from Clove Nytrix Doughmination Twilight.
+
+Authorisation may:
+
+* permit commercial or non-commercial use;
+* impose conditions or limitations;
+* restrict fields of use, duration, territory, or distribution;
+* require attribution, reporting, licensing fees, revenue sharing, or other obligations; or
+* be refused entirely.
+
+No Authorisation shall be implied through publication of the Software, possession of the Software, prior communications, or previous permissions granted to other parties.
+
+---
+
+# 4. Requesting Authorisation
+
+Requests for Authorisation should be submitted to:
+
+**[[email protected]](mailto:[email protected])**
+
+Clove Nytrix Doughmination Twilight may maintain an official licensing repository identifying authorised licensees.
+
+Where an individual or organisation is expressly listed as authorised within that repository, that listing constitutes evidence of an active Authorisation subject to any accompanying conditions.
+
+Absence from the official licensing records shall not be interpreted as evidence that permission has been granted.
+
+---
+
+# 5. Attribution
+
+Where Authorisation permits redistribution of the Software, all copies or substantial portions of the Software must include:
+
+* this Licence;
+* the copyright notice; and
+* reasonable attribution to **Clove Nytrix Doughmination Twilight**.
+
+Modified versions must clearly indicate that they have been modified.
+
+---
+
+# 6. Representation and Branding
+
+You must not:
+
+* misrepresent the origin of the Software;
+* claim authorship of the original Software;
+* imply endorsement, sponsorship, certification, or affiliation by Clove Nytrix Doughmination Twilight; or
+* represent modified versions as official releases without prior written Authorisation.
+
+---
+
+# 7. Trademarked Components
+
+This Licence grants no rights to use any Trademarked Components.
+
+Without prior written Authorisation, you may not use any Trademarked Components in a manner that suggests endorsement, official status, compatibility certification, partnership, or origin.
+
+Current trademarks include, but are not limited to:
+
+* **Doughmination System®** (United Kingdom, UK00004263144)
+
+This list is non-exhaustive.
+
+---
+
+# 8. No Implied Rights
+
+No rights, licences, permissions, waivers, or immunities shall arise by implication, estoppel, or otherwise.
+
+Publication of the Software does not constitute permission to use the Software beyond inspection of its source code.
+
+---
+
+# 9. Source-Available Status
+
+The Software is source-available.
+
+It is **not** open-source software.
+
+This Licence is not an Open Source Initiative-approved licence and should not be interpreted as granting the freedoms commonly associated with open-source licences.
+
+---
+
+# 10. Revocation
+
+Unless otherwise agreed in writing, any Authorisation granted under this Licence may be revoked by Clove Nytrix Doughmination Twilight.
+
+Upon revocation, all authorised use must cease immediately unless otherwise specified within the revocation notice or the applicable written agreement.
+
+Revocation does not affect obligations that, by their nature, survive termination.
+
+---
+
+# 11. Disclaimer of Warranty
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, OR NON-INFRINGEMENT.
+
+TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE ENTIRE RISK ARISING OUT OF THE USE OF THE SOFTWARE REMAINS WITH THE USER.
+
+---
+
+# 12. Limitation of Liability
+
+TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL CLOVE NYTRIX DOUGHMINATION TWILIGHT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR FOR ANY LOSS OF PROFITS, REVENUE, DATA, GOODWILL, BUSINESS INTERRUPTION, OR OTHER COMMERCIAL LOSS ARISING FROM OR RELATING TO THE SOFTWARE OR ITS USE, WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY, OR OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+---
+
+# 13. Governing Law
+
+This Licence shall be governed by and construed in accordance with the laws of England and Wales.
+
+The courts of England and Wales shall have exclusive jurisdiction over disputes arising from or relating to this Licence unless otherwise required by applicable law.
+
+---
+
+# 14. Derivative Licences
+
+No person may publish, distribute, or present a licence derived from, based upon, or substantially similar to this Licence without prior written Authorisation from Clove Nytrix Doughmination Twilight.
+
+Where such permission is granted, the derivative licence must prominently state that it is derived from the Doughmination Authorised Source Licence (DASL) and must credit Clove Nytrix Doughmination Twilight as the original author.
+
+---
+
+**End of Licence**
diff --git a/Security.md b/Security.md
new file mode 100644
index 0000000..8f6edbc
--- /dev/null
+++ b/Security.md
@@ -0,0 +1,16 @@
+# Security Policy
+
+## Reporting a Vulnerability
+If you discover a security vulnerability, please email <a href="mailto:[email protected]">[email protected]</a> with details. You may also open a private issue if you prefer.
+
+
+
+## Supported Versions
+Only the latest version of this repository is supported for security updates.
+
+## Responsible Disclosure
+We appreciate responsible disclosure and will respond as quickly as possible to any reports.
+
+## Additional Resources
+- [GitHub Security Advisories](https://docs.github.com/en/code-security/security-advisories)
+- [Open Source Guides: Security](https://opensource.guide/security/)
diff --git a/bun.lock b/bun.lock
new file mode 100644
index 0000000..69327b9
--- /dev/null
+++ b/bun.lock
@@ -0,0 +1,784 @@
+{
+ "lockfileVersion": 1,
+ "configVersion": 1,
+ "workspaces": {
+ "": {
+ "name": "frontend",
+ "dependencies": {
+ "@doughmination/react-api": "^1.6.1",
+ "@radix-ui/react-checkbox": "^1.3.11",
+ "@radix-ui/react-label": "^2.1.15",
+ "@radix-ui/react-select": "^2.3.7",
+ "@radix-ui/react-separator": "^1.1.15",
+ "@radix-ui/react-slot": "^1.3.3",
+ "@radix-ui/react-toast": "^1.2.23",
+ "@radix-ui/react-tooltip": "^1.2.16",
+ "@tanstack/react-query": "^5.101.4",
+ "@vanilla-extract/recipes": "^0.5.7",
+ "clsx": "^2.1.1",
+ "next": "16.2.12",
+ "react": "19.2.8",
+ "react-bootstrap-icons": "^1.11.6",
+ "react-dom": "19.2.8",
+ "recharts": "^3.10.1",
+ "sonner": "^2.0.7",
+ },
+ "devDependencies": {
+ "@types/node": "^26.1.2",
+ "@types/react": "^19.2.18",
+ "@types/react-dom": "^19.2.4",
+ "@vanilla-extract/css": "^1.21.2",
+ "@vanilla-extract/next-plugin": "^2.5.2",
+ "typescript": "^6.0.3",
+ },
+ },
+ },
+ "trustedDependencies": [
+ "sharp",
+ "esbuild",
+ "@swc/core",
+ ],
+ "packages": {
+ "@babel/code-frame": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.29.7", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw=="],
+
+ "@babel/compat-data": ["@babel/[email protected]", "", {}, "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg=="],
+
+ "@babel/core": ["@babel/[email protected]", "", { "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", "@babel/helper-compilation-targets": "^7.29.7", "@babel/helper-module-transforms": "^7.29.7", "@babel/helpers": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/template": "^7.29.7", "@babel/traverse": "^7.29.7", "@babel/types": "^7.29.7", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", "semver": "^6.3.1" } }, "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA=="],
+
+ "@babel/generator": ["@babel/[email protected]", "", { "dependencies": { "@babel/parser": "^7.29.7", "@babel/types": "^7.29.7", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" } }, "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ=="],
+
+ "@babel/helper-compilation-targets": ["@babel/[email protected]", "", { "dependencies": { "@babel/compat-data": "^7.29.7", "@babel/helper-validator-option": "^7.29.7", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" } }, "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g=="],
+
+ "@babel/helper-globals": ["@babel/[email protected]", "", {}, "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA=="],
+
+ "@babel/helper-module-imports": ["@babel/[email protected]", "", { "dependencies": { "@babel/traverse": "^7.29.7", "@babel/types": "^7.29.7" } }, "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g=="],
+
+ "@babel/helper-module-transforms": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-module-imports": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7", "@babel/traverse": "^7.29.7" }, "peerDependencies": { "@babel/core": "^7.0.0" } }, "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg=="],
+
+ "@babel/helper-plugin-utils": ["@babel/[email protected]", "", {}, "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw=="],
+
+ "@babel/helper-string-parser": ["@babel/[email protected]", "", {}, "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw=="],
+
+ "@babel/helper-validator-identifier": ["@babel/[email protected]", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="],
+
+ "@babel/helper-validator-option": ["@babel/[email protected]", "", {}, "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw=="],
+
+ "@babel/helpers": ["@babel/[email protected]", "", { "dependencies": { "@babel/template": "^7.29.7", "@babel/types": "^7.29.7" } }, "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg=="],
+
+ "@babel/parser": ["@babel/[email protected]", "", { "dependencies": { "@babel/types": "^7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="],
+
+ "@babel/plugin-syntax-typescript": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-plugin-utils": "^7.29.7" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA=="],
+
+ "@babel/runtime": ["@babel/[email protected]", "", {}, "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw=="],
+
+ "@babel/template": ["@babel/[email protected]", "", { "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/types": "^7.29.7" } }, "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg=="],
+
+ "@babel/traverse": ["@babel/[email protected]", "", { "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", "@babel/helper-globals": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/template": "^7.29.7", "@babel/types": "^7.29.7", "debug": "^4.3.1" } }, "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw=="],
+
+ "@babel/types": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="],
+
+ "@doughmination/react-api": ["@doughmination/[email protected]", "", { "peerDependencies": { "@tanstack/react-query": "^5.0.0", "react": "^18.0.0 || ^19.0.0" } }, "sha512-JObK+N2q2KT+9OmsEs57i0IOUzABu1vELXvkJfuXkXs/HUcB76SxKxiAxqCF5a7GFlW2wYTZ7GloEd435h+v5Q=="],
+
+ "@emnapi/core": ["@emnapi/[email protected]", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.2", "tslib": "^2.4.0" } }, "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ=="],
+
+ "@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA=="],
+
+ "@emnapi/wasi-threads": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA=="],
+
+ "@emotion/hash": ["@emotion/[email protected]", "", {}, "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g=="],
+
+ "@esbuild/aix-ppc64": ["@esbuild/[email protected]", "", { "os": "aix", "cpu": "ppc64" }, "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ=="],
+
+ "@esbuild/android-arm": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ=="],
+
+ "@esbuild/android-arm64": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg=="],
+
+ "@esbuild/android-x64": ["@esbuild/[email protected]", "", { "os": "android", "cpu": "x64" }, "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng=="],
+
+ "@esbuild/darwin-arm64": ["@esbuild/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q=="],
+
+ "@esbuild/darwin-x64": ["@esbuild/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ=="],
+
+ "@esbuild/freebsd-arm64": ["@esbuild/[email protected]", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw=="],
+
+ "@esbuild/freebsd-x64": ["@esbuild/[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ=="],
+
+ "@esbuild/linux-arm": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ=="],
+
+ "@esbuild/linux-arm64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g=="],
+
+ "@esbuild/linux-ia32": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "ia32" }, "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w=="],
+
+ "@esbuild/linux-loong64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg=="],
+
+ "@esbuild/linux-mips64el": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ=="],
+
+ "@esbuild/linux-ppc64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ=="],
+
+ "@esbuild/linux-riscv64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ=="],
+
+ "@esbuild/linux-s390x": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag=="],
+
+ "@esbuild/linux-x64": ["@esbuild/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA=="],
+
+ "@esbuild/netbsd-arm64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "arm64" }, "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw=="],
+
+ "@esbuild/netbsd-x64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "x64" }, "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg=="],
+
+ "@esbuild/openbsd-arm64": ["@esbuild/[email protected]", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q=="],
+
+ "@esbuild/openbsd-x64": ["@esbuild/[email protected]", "", { "os": "openbsd", "cpu": "x64" }, "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw=="],
+
+ "@esbuild/openharmony-arm64": ["@esbuild/[email protected]", "", { "os": "none", "cpu": "arm64" }, "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg=="],
+
+ "@esbuild/sunos-x64": ["@esbuild/[email protected]", "", { "os": "sunos", "cpu": "x64" }, "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ=="],
+
+ "@esbuild/win32-arm64": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA=="],
+
+ "@esbuild/win32-ia32": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg=="],
+
+ "@esbuild/win32-x64": ["@esbuild/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A=="],
+
+ "@floating-ui/core": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/utils": "^0.2.12" } }, "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ=="],
+
+ "@floating-ui/dom": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/core": "^1.8.0", "@floating-ui/utils": "^0.2.12" } }, "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg=="],
+
+ "@floating-ui/react-dom": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/dom": "^1.8.0" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg=="],
+
+ "@floating-ui/utils": ["@floating-ui/[email protected]", "", {}, "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww=="],
+
+ "@img/colour": ["@img/[email protected]", "", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="],
+
+ "@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.2.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w=="],
+
+ "@img/sharp-darwin-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.2.4" }, "os": "darwin", "cpu": "x64" }, "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw=="],
+
+ "@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g=="],
+
+ "@img/sharp-libvips-darwin-x64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg=="],
+
+ "@img/sharp-libvips-linux-arm": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A=="],
+
+ "@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw=="],
+
+ "@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],
+
+ "@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],
+
+ "@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ=="],
+
+ "@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw=="],
+
+ "@img/sharp-libvips-linuxmusl-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw=="],
+
+ "@img/sharp-libvips-linuxmusl-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg=="],
+
+ "@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.2.4" }, "os": "linux", "cpu": "arm" }, "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw=="],
+
+ "@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg=="],
+
+ "@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],
+
+ "@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],
+
+ "@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.2.4" }, "os": "linux", "cpu": "s390x" }, "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg=="],
+
+ "@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ=="],
+
+ "@img/sharp-linuxmusl-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg=="],
+
+ "@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q=="],
+
+ "@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],
+
+ "@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],
+
+ "@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg=="],
+
+ "@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw=="],
+
+ "@jridgewell/gen-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
+
+ "@jridgewell/remapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],
+
+ "@jridgewell/resolve-uri": ["@jridgewell/[email protected]", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],
+
+ "@jridgewell/source-map": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25" } }, "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA=="],
+
+ "@jridgewell/sourcemap-codec": ["@jridgewell/[email protected]", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],
+
+ "@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],
+
+ "@napi-rs/wasm-runtime": ["@napi-rs/[email protected]", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1", "@emnapi/runtime": "^1.7.1" } }, "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg=="],
+
+ "@next/env": ["@next/[email protected]", "", {}, "sha512-d0Z5Bc13Fa4nR8pFAKx2jay2yhJM16vlfHbTzYnUQAxlNb6B6lmn4hjt69lYNt4kRtyYP6gEM49lPRHNbIyneg=="],
+
+ "@next/swc-darwin-arm64": ["@next/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-0W1R0teHWJrqKX0FH20IzzIWAOuGtBxPGuObrxy1lE8hQvCFj49KE8a3WUg0D7sq6rn6zkM4c7YGUnhudBS6oA=="],
+
+ "@next/swc-darwin-x64": ["@next/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-Hy5Ls099+aFUmOLmIgPfLqNi6iCwhL3uQCssz5rWk+5Nkc6TUKCE83DY5BbNylfm3+mfwcSFnLRfrZDJhVxdtw=="],
+
+ "@next/swc-linux-arm64-gnu": ["@next/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-+YqU2h1cQkHsGfvjAsrSmst8UIFBibBGm5x3Xgel8NLMiDQtNOM4sM2GOEMvG5YiOBNeN/Ykk8cQC2S0Xrqljg=="],
+
+ "@next/swc-linux-arm64-musl": ["@next/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-0qjhiYBaKAqF63LA1ZWAAnKTzFUguAaZiRa5etMLGGPj/B6uEVjtIZldIzFEp3wHlB0koK6aTzqPtSdplTCjoA=="],
+
+ "@next/swc-linux-x64-gnu": ["@next/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-7A3q26W+h7gnA15uqBToNuDqBEFZZcqh0mW2mn4AJh/G5pdg2RVE3n4slzLEliASZFG3NmsbEzng/x2Sh09mBg=="],
+
+ "@next/swc-linux-x64-musl": ["@next/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-qSjL/uppm+cbh21s72Ss8gkiOhQ4dExWHNGOWy6eZV7STj5WsKehgxT61beSsOj+YYQuTplL376lOCdMQU5T8w=="],
+
+ "@next/swc-win32-arm64-msvc": ["@next/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-X6hzsOUJac/e7AWSbn9gQ9nzHld1xWP5iyjHpYWvud8pufB679O1xg4JDyKr8Xd69Jvd+kM2Der6uftiZCmjYA=="],
+
+ "@next/swc-win32-x64-msvc": ["@next/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-F6fakeHuFTLOPt0bslQJdf+xtT+WIP9DVn/m4y1w1mRnVPyh3D/cNvzlRkxM444xfm+IvvYNSOrKiA2CDJ0Uxw=="],
+
+ "@oxc-project/types": ["@oxc-project/[email protected]", "", {}, "sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw=="],
+
+ "@radix-ui/number": ["@radix-ui/[email protected]", "", {}, "sha512-Road2bidD0uu/1BGDOWNdPI06g0lIRy6IF9GZcIrDK2KGItfor8IQwQa+yM2ERgHM1MmHxaxpTzk0/Jp42lNfA=="],
+
+ "@radix-ui/primitive": ["@radix-ui/[email protected]", "", {}, "sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q=="],
+
+ "@radix-ui/react-arrow": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-v4zggRcjadnI+ClKDuijlQEW4tw3NoaeHc/PwpKnLoLLKNUG4InLegkstooLcRIUWCs+8L22dGURCVuFfOKfnA=="],
+
+ "@radix-ui/react-checkbox": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-size": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Gnptr9pDDQxD3hgq2dtPbtrp/c2qH1mBwIzw3X/ivrMb2e1t0jMTi606fVEqFPaQR1ggXIVQWKj3P2WW9v7zGQ=="],
+
+ "@radix-ui/react-collection": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-slot": "1.3.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9W+B9NPF0NaaPh/1NJd3+KqsnlLqU9H7T2rvww+fp+T/evVXdNAyYcnfRQZFOjkR1ajQp3yORlqnI8soawLvNA=="],
+
+ "@radix-ui/react-compose-refs": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA=="],
+
+ "@radix-ui/react-context": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA=="],
+
+ "@radix-ui/react-direction": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-5pzg4FGQNpExhnhT2zlrP1wZFaYCd1K0nYWoFAdcYoYK868IEigqMX3B3f8yIoRlAhAeDWciLI6ZdCKHF9P4Vg=="],
+
+ "@radix-ui/react-dismissable-layer": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-effect-event": "0.0.5" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w=="],
+
+ "@radix-ui/react-focus-guards": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ=="],
+
+ "@radix-ui/react-focus-scope": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ=="],
+
+ "@radix-ui/react-id": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA=="],
+
+ "@radix-ui/react-label": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-o/rdYEwZTTo5tjknnPeyQFU45kUC4i/XyeDPP+HGyi6XqpOP6Zf5Ya5vh/Yfe9Id5JiuWnnAx2XqIeD3UYZt0g=="],
+
+ "@radix-ui/react-popper": ["@radix-ui/[email protected]", "", { "dependencies": { "@floating-ui/react-dom": "^2.0.0", "@radix-ui/react-arrow": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-use-rect": "1.1.4", "@radix-ui/react-use-size": "1.1.4", "@radix-ui/rect": "1.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-UsJrrd7w4wuKKTdvd/DNERVlwSlUcyXzjhyDwBk+3aPOsCjOY6ZSbxuw8E6lZTjjfP8Cpd0J8VVkrYUWyGYXyg=="],
+
+ "@radix-ui/react-portal": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ=="],
+
+ "@radix-ui/react-presence": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw=="],
+
+ "@radix-ui/react-primitive": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-slot": "1.3.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg=="],
+
+ "@radix-ui/react-select": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.3", "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-direction": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-focus-guards": "1.1.6", "@radix-ui/react-focus-scope": "1.1.16", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-popper": "1.3.7", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-slot": "1.3.3", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-use-previous": "1.1.4", "@radix-ui/react-visually-hidden": "1.2.11", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.7.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-WFGImkmbzcfxeIwq/+4HvRN0pizBwbwQUED4I13ezQsDdfl38ZntN6TmR8XaSzPBqoCToe8rF75j6NPNDSzhbg=="],
+
+ "@radix-ui/react-separator": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-jOLO4lssEzWpoDu7G+Ze4VjwMRUBt291pnZD0gmalREZipnTX3wadQo7Fy48GCTfe14/YRN6rw/rOJqrE85Wxw=="],
+
+ "@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.5" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q=="],
+
+ "@radix-ui/react-toast": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-collection": "1.1.15", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-use-callback-ref": "1.1.4", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-visually-hidden": "1.2.11" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-ofhyAsYaocRGOs/n0XWdUOSVzEAG6BfrMVM8z0c0kLEWY38w/0WuMFPTJP/HVaZPYkMvHZoKIIhNcjbTCBILPg=="],
+
+ "@radix-ui/react-tooltip": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-compose-refs": "1.1.5", "@radix-ui/react-context": "1.2.2", "@radix-ui/react-dismissable-layer": "1.1.19", "@radix-ui/react-id": "1.1.4", "@radix-ui/react-popper": "1.3.7", "@radix-ui/react-portal": "1.1.17", "@radix-ui/react-presence": "1.1.10", "@radix-ui/react-primitive": "2.1.10", "@radix-ui/react-slot": "1.3.3", "@radix-ui/react-use-controllable-state": "1.2.6", "@radix-ui/react-use-layout-effect": "1.1.4", "@radix-ui/react-visually-hidden": "1.2.11" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-6EamKFRRnlpdadndbZ6LMwycfwkwPte1B42hs6QA0gYhjaOKqW4PZ4pjaW9UrlDX5eVt/OjncE7BFTPL5nmZhg=="],
+
+ "@radix-ui/react-use-callback-ref": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ=="],
+
+ "@radix-ui/react-use-controllable-state": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-use-effect-event": "0.0.5", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ=="],
+
+ "@radix-ui/react-use-effect-event": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg=="],
+
+ "@radix-ui/react-use-layout-effect": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw=="],
+
+ "@radix-ui/react-use-previous": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-XoSLhbRbqxFtgJoi2fNHA3C6pDlY34x508vUpUGoFZfvePfHXHbE1lC4FYFMnJWgiCRroSTw6fOsXQoVS9RwZg=="],
+
+ "@radix-ui/react-use-rect": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/rect": "1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-cSOCh6JlkmfjLyNcLiu2nB4v+nm+dkZ+Q5KHWk/soo4U7ZLiEQFKHK9/YmtBHjfCEaU43IBKQOc4/uJmCaiCTQ=="],
+
+ "@radix-ui/react-use-size": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-D3anSY15EJoxrihpsXI6SMrmmonnQtR2ni7arO+Lfdg3O95b9hNXxONk8jA5C8ANdF/h5HMAxejgs8PWJ6rlhw=="],
+
+ "@radix-ui/react-visually-hidden": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-NFS86RYYZb4/exihaESBGOpMJFz8MGLAfu3mOBSGByVnVPC9JPASfYubxd/8KbkQK0sYAv8lVQDEQukDX/qXvQ=="],
+
+ "@radix-ui/rect": ["@radix-ui/[email protected]", "", {}, "sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw=="],
+
+ "@reduxjs/toolkit": ["@reduxjs/[email protected]", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@standard-schema/utils": "^0.3.0", "immer": "^11.0.0", "redux": "^5.0.1", "redux-thunk": "^3.1.0", "reselect": "^5.1.0" }, "peerDependencies": { "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" }, "optionalPeers": ["react", "react-redux"] }, "sha512-KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw=="],
+
+ "@rolldown/binding-android-arm64": ["@rolldown/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ=="],
+
+ "@rolldown/binding-darwin-arm64": ["@rolldown/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-51Bnx9pNiMRKSUNtBfySkNJ9vMU9Hh3I1ozDd6gyPPYzaXCfnptUcEZxXGYFn+ul2dtcMUiqGR1Yai2K10uoTw=="],
+
+ "@rolldown/binding-darwin-x64": ["@rolldown/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-Tm+gbfC0aHu1tBA/JvKQh32S0K6YgCHkiAF4/W6xX0K0RmNuc94VeK419dJoE65R5aRxmo+noZQSWrAMF6yb6g=="],
+
+ "@rolldown/binding-freebsd-x64": ["@rolldown/[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-JMzDKCCXq93YccG5gz3hvOs1oXRKAf0XYpfOS88e+wZrC8Iugj6j68867vrYZkvpDDpKn/KoKORThmchMpF6TA=="],
+
+ "@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-uML21j2K5TfPGutKxub+M+nLjZIrWjXQ5Grx4lCe/nimTj9B4L63zHpjXLl4y0L3mcm2htEQIb06oCG/szerNw=="],
+
+ "@rolldown/binding-linux-arm64-gnu": ["@rolldown/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-navSiuTMogvnQoZoM/v+l3ZWo50/NTwSHSzheABx/RCnmUPaKwq9qSo4Br2OYRs21+Fz8uFqITZM3H4opOB0/Q=="],
+
+ "@rolldown/binding-linux-arm64-musl": ["@rolldown/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-lAryqH7IteztmCXQXk0etKj4wBQ7Gx5S6LjKhsgp9zb8I5bsuvU/2llH1hDQcjsFeqIsovMVN339/8pUDDBXxA=="],
+
+ "@rolldown/binding-linux-ppc64-gnu": ["@rolldown/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-fsK/sNBnxzBlL4O1JNrZakVQxPspqpED5dLtNsZS9oOKmtSpdNIzxH2kkol5HYTWJN47sE20ztMJPxfZ89qGOg=="],
+
+ "@rolldown/binding-linux-s390x-gnu": ["@rolldown/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-gLYb4BIadlfTOYT5gO503n8zQjXflgzpD0FcyKh0Mzx3rqCZKnHoJWV9xe1KXUJ5lx2JfcSHr/mhzS0PC/McAA=="],
+
+ "@rolldown/binding-linux-x64-gnu": ["@rolldown/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-FjcpEKUyJygHgs1o50VYNvkt5+7Le/VEdYt0AkRpkL33MnyQfwr8l5mXwMmfmTbyMPr5vJLC+8/Gd9gXnwU1QQ=="],
+
+ "@rolldown/binding-linux-x64-musl": ["@rolldown/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-Me+PfPI2TMeOQk0gYWfLQZtTktrmzbr8cDboqX83XKc7UrgAi55gF+2dUkWdxd19n55Essp2yeca+O9N5rBxHg=="],
+
+ "@rolldown/binding-openharmony-arm64": ["@rolldown/[email protected]", "", { "os": "none", "cpu": "arm64" }, "sha512-yc5WrLzXks6zCQfn9Oxr8pORKyl/pF+QjHmW/Qx3qu0oyrrNC+y2JLTU1E2rcWYAmzlnqngWXHQjy51VzW70Vw=="],
+
+ "@rolldown/binding-wasm32-wasi": ["@rolldown/[email protected]", "", { "dependencies": { "@emnapi/core": "1.11.1", "@emnapi/runtime": "1.11.1", "@napi-rs/wasm-runtime": "^1.1.6" }, "cpu": "none" }, "sha512-VbQGPX2b4r48TAMIM2cjgluIM1HYutm4pcTEJsle7iEP7sB1dFqtPLBVbdLAZCxy1txCcPxf4QFf4v8uvltPqA=="],
+
+ "@rolldown/binding-win32-arm64-msvc": ["@rolldown/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-gHv82k63z4qpV5+Q1y/12KrK0ltWBukVDI8nZcbT7Tt/ZlOIVwppazneq0F93oDxTo3IgAMEDIoQh3E2n6mVsw=="],
+
+ "@rolldown/binding-win32-x64-msvc": ["@rolldown/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-tTZuDBPw85tEN5PQi1pnEBzDy0Z49HtScLAbD5t6hyeU92A95pRWaSMw1GZZi/RwgSgUIl0xrSlXIT/9QzvYSA=="],
+
+ "@rolldown/pluginutils": ["@rolldown/[email protected]", "", {}, "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw=="],
+
+ "@standard-schema/spec": ["@standard-schema/[email protected]", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="],
+
+ "@standard-schema/utils": ["@standard-schema/[email protected]", "", {}, "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g=="],
+
+ "@swc/core": ["@swc/[email protected]", "", { "dependencies": { "@swc/counter": "^0.1.3", "@swc/types": "^0.1.27" }, "optionalDependencies": { "@swc/core-darwin-arm64": "1.15.46", "@swc/core-darwin-x64": "1.15.46", "@swc/core-linux-arm-gnueabihf": "1.15.46", "@swc/core-linux-arm64-gnu": "1.15.46", "@swc/core-linux-arm64-musl": "1.15.46", "@swc/core-linux-ppc64-gnu": "1.15.46", "@swc/core-linux-s390x-gnu": "1.15.46", "@swc/core-linux-x64-gnu": "1.15.46", "@swc/core-linux-x64-musl": "1.15.46", "@swc/core-win32-arm64-msvc": "1.15.46", "@swc/core-win32-ia32-msvc": "1.15.46", "@swc/core-win32-x64-msvc": "1.15.46" }, "peerDependencies": { "@swc/helpers": ">=0.5.17" }, "optionalPeers": ["@swc/helpers"] }, "sha512-Ri3em2mBpq3h2zSPliCYl63otDGqek8PPEfv2nWgRQEbZ/VBCNyypVTVQ6cEbTCXBhy+WE2T3fQb08moIyuYaw=="],
+
+ "@swc/core-darwin-arm64": ["@swc/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-IsISIT22EfktVJrlvIpnAxG2u/A9aob9l99HMlx80x72WlFmFPk1V3UhkEzx86eJP8hw049KTFv/RISho2cq2Q=="],
+
+ "@swc/core-darwin-x64": ["@swc/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-4Tj4ppVIPCmUMpmGFiGtyEriwLyJ+yi/US4WfBrP/ok8COGddDZXLEzQETnKyK46mjvr1v0jevrS23zjoff7vA=="],
+
+ "@swc/core-linux-arm-gnueabihf": ["@swc/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-i8tUGnNjyOgMmfmgFSg4aeJLQoFyfpIHK5FjpQAwpRyQIqEUB2w1e8zIDQzY1WhOxx8NoS1S5iUL813Un4Sf5A=="],
+
+ "@swc/core-linux-arm64-gnu": ["@swc/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-c0OnhqzdhfOvv6qhNCcByepB+sNYOGZyhtr2Qa6ZCHvAWTYhSRw4j/u92Stue9PbZ/6q74b9nHzi76+kVzqQHQ=="],
+
+ "@swc/core-linux-arm64-musl": ["@swc/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-imyRpNEcUzFQFV2LE4jL68ErvmKEuZCbvZru77iQREunJ+bR4i658cupTgtG1mLYM3F1Tzy3Sb9xYb02KghWTg=="],
+
+ "@swc/core-linux-ppc64-gnu": ["@swc/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-ctEfcl/HcUeomK33cbySiHZm98GEDIxTm1EkpBsYCiHxElYBzvTXVeuQT2YwbUXn9XCrjiw4ipyUNk33k26qRg=="],
+
+ "@swc/core-linux-s390x-gnu": ["@swc/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-DxlMdnt84TtRVTv7WL/thWyz9+QU8QZNNoAP9rrk0P68LziuhfePp8MjQ44zIprpTHTsEwyziIuGUUN5iSC1bQ=="],
+
+ "@swc/core-linux-x64-gnu": ["@swc/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-SKxI7J6t90XPl8hRUqtJi9NfGdunN/E/vZMc7Bc0figeRdOPDBT+Tm8g7cx9xM0T0mewh2l+8dewa3Am27/P+A=="],
+
+ "@swc/core-linux-x64-musl": ["@swc/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-qj9T6B7bosI0VEsrWOVXZN1OXxS8Tp63ywyrLxNdOycnUtLdkgYcoBsN5y8ImnDDsnwrEWZOy1e+J4xSe7mA3Q=="],
+
+ "@swc/core-win32-arm64-msvc": ["@swc/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-8p7l4c3LU+eA5g9Et1JPhNeMC1oQwXTGU+uah8DPIBX7YXzqswvaBtyKVmXefVGi/DJU1x3YJsc3mbAp9aWzSQ=="],
+
+ "@swc/core-win32-ia32-msvc": ["@swc/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-tUEnfr3Bn9u6FOjUb3PN9p+09qZC2j+wNDLKHzXXZn22rqGcUqR/ohCRSS+nG9B9+X+U+3FewNEHJkTmdIvMjQ=="],
+
+ "@swc/core-win32-x64-msvc": ["@swc/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-Vux7UDzBJYQggSuPfcl2w9iu+IJpgpRCxHzgCaVkELnAXAE4XZMOTX9HNcaNiwfeIDqdu2rkr69RuDm6wY8neA=="],
+
+ "@swc/counter": ["@swc/[email protected]", "", {}, "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ=="],
+
+ "@swc/helpers": ["@swc/[email protected]", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g=="],
+
+ "@swc/types": ["@swc/[email protected]", "", { "dependencies": { "@swc/counter": "^0.1.3" } }, "sha512-K6h3iUlqeM946U4sXFYeahefR1YBbXJvko+hv8WS8/0BNJ4OHiHRywMnQUJCqkR7Y9+hqQ1TvEpiKqUhz7NEFg=="],
+
+ "@tanstack/query-core": ["@tanstack/[email protected]", "", {}, "sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw=="],
+
+ "@tanstack/react-query": ["@tanstack/[email protected]", "", { "dependencies": { "@tanstack/query-core": "5.101.4" }, "peerDependencies": { "react": "^18 || ^19" } }, "sha512-yRg2pfOCxIs4ZJW3XYYHU/WgtD04FHSnfHlpRT7h7pR77hwkdRG4wxbKe4aq6P0RvXUTBSQpQeadS1SUYUe+KA=="],
+
+ "@tybys/wasm-util": ["@tybys/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg=="],
+
+ "@types/d3-array": ["@types/[email protected]", "", {}, "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw=="],
+
+ "@types/d3-color": ["@types/[email protected]", "", {}, "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A=="],
+
+ "@types/d3-ease": ["@types/[email protected]", "", {}, "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA=="],
+
+ "@types/d3-interpolate": ["@types/[email protected]", "", { "dependencies": { "@types/d3-color": "*" } }, "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA=="],
+
+ "@types/d3-path": ["@types/[email protected]", "", {}, "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg=="],
+
+ "@types/d3-scale": ["@types/[email protected]", "", { "dependencies": { "@types/d3-time": "*" } }, "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw=="],
+
+ "@types/d3-shape": ["@types/[email protected]", "", { "dependencies": { "@types/d3-path": "*" } }, "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w=="],
+
+ "@types/d3-time": ["@types/[email protected]", "", {}, "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g=="],
+
+ "@types/d3-timer": ["@types/[email protected]", "", {}, "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw=="],
+
+ "@types/estree": ["@types/[email protected]", "", {}, "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg=="],
+
+ "@types/json-schema": ["@types/[email protected]", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="],
+
+ "@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~8.3.0" } }, "sha512-Vu4a5UFA9rIIFJ7rB/Vaafh9lrCQszopTCx6KjFboXTGQbPNasehVR5TEiithSDGyd1DEiUByggTZsg8jukeIg=="],
+
+ "@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-Bsc+QHgp+P/F02XDzNCY9jnZNCUuLki36KT7VKrTXXLdHf+vHMNZnW1rVu5DNW/rCK+fya3DATySbLM4yhtKUw=="],
+
+ "@types/use-sync-external-store": ["@types/[email protected]", "", {}, "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg=="],
+
+ "@vanilla-extract/babel-plugin-debug-ids": ["@vanilla-extract/[email protected]", "", { "dependencies": { "@babel/core": "^7.23.9" } }, "sha512-MeDWGICAF9zA/OZLOKwhoRlsUW+fiMwnfuOAqFVohL31Agj7Q/RBWAYweqjHLgFBCsdnr6XIfwjJnmb2znEWxw=="],
+
+ "@vanilla-extract/compiler": ["@vanilla-extract/[email protected]", "", { "dependencies": { "@vanilla-extract/css": "^1.21.1", "@vanilla-extract/integration": "^8.0.10", "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", "vite-node": "^3.2.2 || ^5.0.0 || ^6.0.0" } }, "sha512-VslwMJ01taDhJmMo0+A0SWn2dloMnYi0+BbvLuXXlqK4ufVRwXsq/U/Fp8ANkw3jevmQXy+JL7VtIQdjEtylDQ=="],
+
+ "@vanilla-extract/css": ["@vanilla-extract/[email protected]", "", { "dependencies": { "@emotion/hash": "^0.9.0", "@vanilla-extract/private": "^1.0.9", "css-what": "^6.1.0", "csstype": "^3.2.3", "dedent": "^1.5.3", "deep-object-diff": "^1.1.9", "deepmerge": "^4.2.2", "lru-cache": "^10.4.3", "media-query-parser": "^2.0.2", "modern-ahocorasick": "^1.0.0", "picocolors": "^1.0.0" } }, "sha512-ehF/tmv2MxQwOJB1DicALUqnjZTnmY9Y7J2ccKB578JzZpYeL6sLAUqbaXo1taw1Erp0qBq0I4Kejs0uU/pBfg=="],
+
+ "@vanilla-extract/integration": ["@vanilla-extract/[email protected]", "", { "dependencies": { "@babel/core": "^7.23.9", "@babel/plugin-syntax-typescript": "^7.23.3", "@vanilla-extract/babel-plugin-debug-ids": "^1.2.2", "@vanilla-extract/css": "^1.20.1", "dedent": "^1.5.3", "esbuild": "npm:esbuild@>=0.17.6 <0.29.0", "eval": "0.1.8", "find-up": "^5.0.0", "javascript-stringify": "^2.0.1", "mlly": "^1.4.2" } }, "sha512-01IB5gbrgTe8IIrtfRXXTmACl5D8Enzqp2cKbCWaMKXmnoilXXVCPbJoA96q88PXkNDXsXepCxUugMvEmL3c7A=="],
+
+ "@vanilla-extract/next-plugin": ["@vanilla-extract/[email protected]", "", { "dependencies": { "@vanilla-extract/turbopack-plugin": "^0.1.3", "@vanilla-extract/webpack-plugin": "^2.3.27", "semver": "^7.6.3" }, "peerDependencies": { "next": ">=12.1.7" } }, "sha512-apq4i0atiSL4Qz4kiGdOov8ucGLLlQ1Vw7JgvppMp7FCtUBBlosRteaTGrGP7PjczRkzWsx5BR/cp8Ev81o7RQ=="],
+
+ "@vanilla-extract/private": ["@vanilla-extract/[email protected]", "", {}, "sha512-gT2jbfZuaaCLrAxwXbRgIhGhcXbRZCG3v4TTUnjw0EJ7ArdBRxkq4msNJkbuRkCgfIK5ATmprB5t9ljvLeFDEA=="],
+
+ "@vanilla-extract/recipes": ["@vanilla-extract/[email protected]", "", { "peerDependencies": { "@vanilla-extract/css": "^1.0.0" } }, "sha512-Fvr+htdyb6LVUu+PhH61UFPhwkjgDEk8L4Zq9oIdte42sntpKrgFy90MyTRtGwjVALmrJ0pwRUVr8UoByYeW8A=="],
+
+ "@vanilla-extract/turbopack-plugin": ["@vanilla-extract/[email protected]", "", { "dependencies": { "@swc/core": "^1.13.5", "@vanilla-extract/compiler": "^0.7.0", "@vanilla-extract/integration": "^8.0.9" }, "peerDependencies": { "next": ">=12.1.7" } }, "sha512-ZTViI5/3xAviQ3aRzZMjYG50NIFVsXqvsavZF+rMxl/RYZQ42ufBT2jDRlScrIvig2V27ODESDEJRQcEX/u3+Q=="],
+
+ "@vanilla-extract/webpack-plugin": ["@vanilla-extract/[email protected]", "", { "dependencies": { "@vanilla-extract/integration": "^8.0.10", "debug": "^4.3.1", "loader-utils": "^2.0.0", "picocolors": "^1.0.0" }, "peerDependencies": { "webpack": "^4.30.0 || ^5.20.2" } }, "sha512-i/GFQPifTkGYXYpkVYzScBPwXB82f+5GMLg9rh9UBgTG6M/YUebIDVjVOC9Mn5VMvc8Fk2w/FmagDRLugHA09w=="],
+
+ "@webassemblyjs/ast": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@webassemblyjs/helper-numbers": "1.13.2", "@webassemblyjs/helper-wasm-bytecode": "1.13.2" } }, "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ=="],
+
+ "@webassemblyjs/floating-point-hex-parser": ["@webassemblyjs/[email protected]", "", {}, "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA=="],
+
+ "@webassemblyjs/helper-api-error": ["@webassemblyjs/[email protected]", "", {}, "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ=="],
+
+ "@webassemblyjs/helper-buffer": ["@webassemblyjs/[email protected]", "", {}, "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA=="],
+
+ "@webassemblyjs/helper-numbers": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.13.2", "@webassemblyjs/helper-api-error": "1.13.2", "@xtuc/long": "4.2.2" } }, "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA=="],
+
+ "@webassemblyjs/helper-wasm-bytecode": ["@webassemblyjs/[email protected]", "", {}, "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA=="],
+
+ "@webassemblyjs/helper-wasm-section": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/wasm-gen": "1.14.1" } }, "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw=="],
+
+ "@webassemblyjs/ieee754": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw=="],
+
+ "@webassemblyjs/leb128": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@xtuc/long": "4.2.2" } }, "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw=="],
+
+ "@webassemblyjs/utf8": ["@webassemblyjs/[email protected]", "", {}, "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ=="],
+
+ "@webassemblyjs/wasm-edit": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/helper-wasm-section": "1.14.1", "@webassemblyjs/wasm-gen": "1.14.1", "@webassemblyjs/wasm-opt": "1.14.1", "@webassemblyjs/wasm-parser": "1.14.1", "@webassemblyjs/wast-printer": "1.14.1" } }, "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ=="],
+
+ "@webassemblyjs/wasm-gen": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/ieee754": "1.13.2", "@webassemblyjs/leb128": "1.13.2", "@webassemblyjs/utf8": "1.13.2" } }, "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg=="],
+
+ "@webassemblyjs/wasm-opt": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/wasm-gen": "1.14.1", "@webassemblyjs/wasm-parser": "1.14.1" } }, "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw=="],
+
+ "@webassemblyjs/wasm-parser": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-api-error": "1.13.2", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/ieee754": "1.13.2", "@webassemblyjs/leb128": "1.13.2", "@webassemblyjs/utf8": "1.13.2" } }, "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ=="],
+
+ "@webassemblyjs/wast-printer": ["@webassemblyjs/[email protected]", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@xtuc/long": "4.2.2" } }, "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw=="],
+
+ "@xtuc/ieee754": ["@xtuc/[email protected]", "", {}, "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA=="],
+
+ "@xtuc/long": ["@xtuc/[email protected]", "", {}, "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="],
+
+ "acorn": ["[email protected]", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg=="],
+
+ "acorn-import-phases": ["[email protected]", "", { "peerDependencies": { "acorn": "^8.14.0" } }, "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ=="],
+
+ "ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="],
+
+ "ajv-formats": ["[email protected]", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA=="],
+
+ "ajv-keywords": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.3" }, "peerDependencies": { "ajv": "^8.8.2" } }, "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw=="],
+
+ "aria-hidden": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="],
+
+ "baseline-browser-mapping": ["[email protected]", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-T3ghW+sl/ZJ8w1v/yQx3qvJ9040DWoLBz8JT/CILbAKcFyG9b2MRe75v6W5uXjv6uH1lumK2Kv46y2zSkcej0Q=="],
+
+ "big.js": ["[email protected]", "", {}, "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ=="],
+
+ "browserslist": ["[email protected]", "", { "dependencies": { "baseline-browser-mapping": "^2.10.42", "caniuse-lite": "^1.0.30001803", "electron-to-chromium": "^1.5.389", "node-releases": "^2.0.51", "update-browserslist-db": "^1.2.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-FQBYNK15VMslhLHpA7+n+n1GOlF1kId2xcCg7/j95f24AOF6VDYMNH4mFxF7KuaTdv627faazpOAjFzMrfJOUw=="],
+
+ "buffer-from": ["[email protected]", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="],
+
+ "cac": ["[email protected]", "", {}, "sha512-tixWYgm5ZoOD+3g6UTea91eow5z6AAHaho3g0V9CNSNb45gM8SmflpAc+GRd1InC4AqN/07Unrgp56Y94N9hJQ=="],
+
+ "caniuse-lite": ["[email protected]", "", {}, "sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw=="],
+
+ "chrome-trace-event": ["[email protected]", "", {}, "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ=="],
+
+ "client-only": ["[email protected]", "", {}, "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="],
+
+ "clsx": ["[email protected]", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="],
+
+ "commander": ["[email protected]", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="],
+
+ "confbox": ["[email protected]", "", {}, "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w=="],
+
+ "convert-source-map": ["[email protected]", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="],
+
+ "css-what": ["[email protected]", "", {}, "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA=="],
+
+ "csstype": ["[email protected]", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="],
+
+ "d3-array": ["[email protected]", "", { "dependencies": { "internmap": "1 - 2" } }, "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg=="],
+
+ "d3-color": ["[email protected]", "", {}, "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA=="],
+
+ "d3-ease": ["[email protected]", "", {}, "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w=="],
+
+ "d3-format": ["[email protected]", "", {}, "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg=="],
+
+ "d3-interpolate": ["[email protected]", "", { "dependencies": { "d3-color": "1 - 3" } }, "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g=="],
+
+ "d3-path": ["[email protected]", "", {}, "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ=="],
+
+ "d3-scale": ["[email protected]", "", { "dependencies": { "d3-array": "2.10.0 - 3", "d3-format": "1 - 3", "d3-interpolate": "1.2.0 - 3", "d3-time": "2.1.1 - 3", "d3-time-format": "2 - 4" } }, "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ=="],
+
+ "d3-shape": ["[email protected]", "", { "dependencies": { "d3-path": "^3.1.0" } }, "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA=="],
+
+ "d3-time": ["[email protected]", "", { "dependencies": { "d3-array": "2 - 3" } }, "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q=="],
+
+ "d3-time-format": ["[email protected]", "", { "dependencies": { "d3-time": "1 - 3" } }, "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg=="],
+
+ "d3-timer": ["[email protected]", "", {}, "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA=="],
+
+ "debug": ["[email protected]", "", { "dependencies": { "ms": "^2.1.3" }, "peerDependencies": { "supports-color": "*" }, "optionalPeers": ["supports-color"] }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
+
+ "decimal.js-light": ["[email protected]", "", {}, "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg=="],
+
+ "dedent": ["[email protected]", "", { "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, "optionalPeers": ["babel-plugin-macros"] }, "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA=="],
+
+ "deep-object-diff": ["[email protected]", "", {}, "sha512-Rn+RuwkmkDwCi2/oXOFS9Gsr5lJZu/yTGpK7wAaAIE75CC+LCGEZHpY6VQJa/RoJcrmaA/docWJZvYohlNkWPA=="],
+
+ "deepmerge": ["[email protected]", "", {}, "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="],
+
+ "detect-libc": ["[email protected]", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],
+
+ "detect-node-es": ["[email protected]", "", {}, "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ=="],
+
+ "electron-to-chromium": ["[email protected]", "", {}, "sha512-kiDJdIUawuEIcp9XoICKp1iTYDEbgguIPq526N1Q7jIQDeQ3CqoMx71025PI/7E48Ddtw2HuWsVjY7afEgNxmg=="],
+
+ "emojis-list": ["[email protected]", "", {}, "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q=="],
+
+ "enhanced-resolve": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.3" } }, "sha512-PwKooW9JUzh5chmYfHM3IQl5OkK2u2Nm011MgeZrss3JmFraUx/fqrf78kk8GUMYoibx/14MdwTl/1WKkG7TpQ=="],
+
+ "es-module-lexer": ["[email protected]", "", {}, "sha512-shc1dbU90Yl/xq1QrC7QRtfcwURZuVRfPhZbDoldJ1cn1gzDvBaBWlv0eFolj5+0znnPJz5TXLxsN77X/12KTA=="],
+
+ "es-toolkit": ["[email protected]", "", {}, "sha512-G5iZ6Pc/FNRY/soKZHC+TxGDD83rHUDXxzaWhGCX44vAv/tMs56WMusnm/KMNK+luUPsgA9U28cGr4RDlSzL2g=="],
+
+ "esbuild": ["[email protected]", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.1", "@esbuild/android-arm": "0.28.1", "@esbuild/android-arm64": "0.28.1", "@esbuild/android-x64": "0.28.1", "@esbuild/darwin-arm64": "0.28.1", "@esbuild/darwin-x64": "0.28.1", "@esbuild/freebsd-arm64": "0.28.1", "@esbuild/freebsd-x64": "0.28.1", "@esbuild/linux-arm": "0.28.1", "@esbuild/linux-arm64": "0.28.1", "@esbuild/linux-ia32": "0.28.1", "@esbuild/linux-loong64": "0.28.1", "@esbuild/linux-mips64el": "0.28.1", "@esbuild/linux-ppc64": "0.28.1", "@esbuild/linux-riscv64": "0.28.1", "@esbuild/linux-s390x": "0.28.1", "@esbuild/linux-x64": "0.28.1", "@esbuild/netbsd-arm64": "0.28.1", "@esbuild/netbsd-x64": "0.28.1", "@esbuild/openbsd-arm64": "0.28.1", "@esbuild/openbsd-x64": "0.28.1", "@esbuild/openharmony-arm64": "0.28.1", "@esbuild/sunos-x64": "0.28.1", "@esbuild/win32-arm64": "0.28.1", "@esbuild/win32-ia32": "0.28.1", "@esbuild/win32-x64": "0.28.1" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw=="],
+
+ "escalade": ["[email protected]", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="],
+
+ "eslint-scope": ["[email protected]", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" } }, "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw=="],
+
+ "esrecurse": ["[email protected]", "", { "dependencies": { "estraverse": "^5.2.0" } }, "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag=="],
+
+ "estraverse": ["[email protected]", "", {}, "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw=="],
+
+ "eval": ["[email protected]", "", { "dependencies": { "@types/node": "*", "require-like": ">= 0.1.1" } }, "sha512-EzV94NYKoO09GLXGjXj9JIlXijVck4ONSr5wiCWDvhsvj5jxSrzTmRU/9C1DyB6uToszLs8aifA6NQ7lEQdvFw=="],
+
+ "eventemitter3": ["[email protected]", "", {}, "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw=="],
+
+ "events": ["[email protected]", "", {}, "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="],
+
+ "fast-deep-equal": ["[email protected]", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],
+
+ "fast-uri": ["[email protected]", "", {}, "sha512-8JnbkQ4juDyvYs4mgFGQqg4yCYtFDtUtmp2QIQq11ZZe5CFQ5wcqm1rqDgAh/QdMySuBnPzMUiJUNZG5N/AiQw=="],
+
+ "fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
+
+ "find-up": ["[email protected]", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="],
+
+ "fsevents": ["[email protected]", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="],
+
+ "gensync": ["[email protected]", "", {}, "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg=="],
+
+ "get-nonce": ["[email protected]", "", {}, "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q=="],
+
+ "graceful-fs": ["[email protected]", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="],
+
+ "has-flag": ["[email protected]", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="],
+
+ "immer": ["[email protected]", "", {}, "sha512-VrNANlmnWQnh5COXIIOQXM9oOJw7naGKlBT74ZOOR6lpVXc3gFEu9FJLDFcpCJ2j+NWr8TIwtWD//T6ZX6TKiQ=="],
+
+ "internmap": ["[email protected]", "", {}, "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg=="],
+
+ "javascript-stringify": ["[email protected]", "", {}, "sha512-JVAfqNPTvNq3sB/VHQJAFxN/sPgKnsKrCwyRt15zwNCdrMMJDdcEOdubuy+DuJYYdm0ox1J4uzEuYKkN+9yhVg=="],
+
+ "jest-worker": ["[email protected]", "", { "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" } }, "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg=="],
+
+ "js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
+
+ "jsesc": ["[email protected]", "", { "bin": { "jsesc": "bin/jsesc" } }, "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA=="],
+
+ "json-schema-traverse": ["[email protected]", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
+
+ "json5": ["[email protected]", "", { "bin": { "json5": "lib/cli.js" } }, "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="],
+
+ "lightningcss": ["[email protected]", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-android-arm64": "1.33.0", "lightningcss-darwin-arm64": "1.33.0", "lightningcss-darwin-x64": "1.33.0", "lightningcss-freebsd-x64": "1.33.0", "lightningcss-linux-arm-gnueabihf": "1.33.0", "lightningcss-linux-arm64-gnu": "1.33.0", "lightningcss-linux-arm64-musl": "1.33.0", "lightningcss-linux-x64-gnu": "1.33.0", "lightningcss-linux-x64-musl": "1.33.0", "lightningcss-win32-arm64-msvc": "1.33.0", "lightningcss-win32-x64-msvc": "1.33.0" } }, "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA=="],
+
+ "lightningcss-android-arm64": ["[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg=="],
+
+ "lightningcss-darwin-arm64": ["[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg=="],
+
+ "lightningcss-darwin-x64": ["[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ=="],
+
+ "lightningcss-freebsd-x64": ["[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg=="],
+
+ "lightningcss-linux-arm-gnueabihf": ["[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ=="],
+
+ "lightningcss-linux-arm64-gnu": ["[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg=="],
+
+ "lightningcss-linux-arm64-musl": ["[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ=="],
+
+ "lightningcss-linux-x64-gnu": ["[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg=="],
+
+ "lightningcss-linux-x64-musl": ["[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw=="],
+
+ "lightningcss-win32-arm64-msvc": ["[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA=="],
+
+ "lightningcss-win32-x64-msvc": ["[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA=="],
+
+ "loader-runner": ["[email protected]", "", {}, "sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w=="],
+
+ "loader-utils": ["[email protected]", "", { "dependencies": { "big.js": "^5.2.2", "emojis-list": "^3.0.0", "json5": "^2.1.2" } }, "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw=="],
+
+ "locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^5.0.0" } }, "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="],
+
+ "loose-envify": ["[email protected]", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="],
+
+ "lru-cache": ["[email protected]", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],
+
+ "media-query-parser": ["[email protected]", "", { "dependencies": { "@babel/runtime": "^7.12.5" } }, "sha512-1N4qp+jE0pL5Xv4uEcwVUhIkwdUO3S/9gML90nqKA7v7FcOS5vUtatfzok9S9U1EJU8dHWlcv95WLnKmmxZI9w=="],
+
+ "merge-stream": ["[email protected]", "", {}, "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="],
+
+ "mime-db": ["[email protected]", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
+
+ "minimizer-webpack-plugin": ["[email protected]", "", { "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "jest-worker": "^27.4.5", "schema-utils": "^4.3.0", "terser": "^5.31.1" }, "peerDependencies": { "@minify-html/node": "*", "@swc/core": "*", "@swc/css": "*", "@swc/html": "*", "clean-css": "*", "cssnano": "*", "csso": "*", "esbuild": "*", "html-minifier-terser": "*", "lightningcss": "*", "postcss": "*", "uglify-js": "*", "webpack": "^5.1.0" }, "optionalPeers": ["@minify-html/node", "@swc/core", "@swc/css", "@swc/html", "clean-css", "cssnano", "csso", "esbuild", "html-minifier-terser", "lightningcss", "postcss", "uglify-js"] }, "sha512-DoeAZz8Q1C1znwsUzej1fdoi4jCf7/+Em27ouLqfK/+3m8G+D7yDhUwrc3CNhjSzGUN1kn7Iv4sWmjflQHenpw=="],
+
+ "mlly": ["[email protected]", "", { "dependencies": { "acorn": "^8.16.0", "pathe": "^2.0.3", "pkg-types": "^1.3.1", "ufo": "^1.6.3" } }, "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA=="],
+
+ "modern-ahocorasick": ["[email protected]", "", {}, "sha512-sEKPVl2rM+MNVkGQt3ChdmD8YsigmXdn5NifZn6jiwn9LRJpWm8F3guhaqrJT/JOat6pwpbXEk6kv+b9DMIjsQ=="],
+
+ "ms": ["[email protected]", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
+
+ "nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q=="],
+
+ "neo-async": ["[email protected]", "", {}, "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="],
+
+ "next": ["[email protected]", "", { "dependencies": { "@next/env": "16.2.12", "@swc/helpers": "0.5.15", "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "16.2.12", "@next/swc-darwin-x64": "16.2.12", "@next/swc-linux-arm64-gnu": "16.2.12", "@next/swc-linux-arm64-musl": "16.2.12", "@next/swc-linux-x64-gnu": "16.2.12", "@next/swc-linux-x64-musl": "16.2.12", "@next/swc-win32-arm64-msvc": "16.2.12", "@next/swc-win32-x64-msvc": "16.2.12", "sharp": "^0.34.5" }, "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-iD59eYQWmbFcEbX7v/acG5DRym9iw1DdaPoD0WTA920naWsE25wShzJW4+UvAs8MK9EC2kBfIH6vtto1H1PHGw=="],
+
+ "node-releases": ["[email protected]", "", {}, "sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ=="],
+
+ "object-assign": ["[email protected]", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="],
+
+ "obug": ["[email protected]", "", {}, "sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA=="],
+
+ "p-limit": ["[email protected]", "", { "dependencies": { "yocto-queue": "^0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="],
+
+ "p-locate": ["[email protected]", "", { "dependencies": { "p-limit": "^3.0.2" } }, "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw=="],
+
+ "path-exists": ["[email protected]", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="],
+
+ "pathe": ["[email protected]", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="],
+
+ "picocolors": ["[email protected]", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],
+
+ "picomatch": ["[email protected]", "", {}, "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A=="],
+
+ "pkg-types": ["[email protected]", "", { "dependencies": { "confbox": "^0.1.8", "mlly": "^1.7.4", "pathe": "^2.0.1" } }, "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ=="],
+
+ "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=="],
+
+ "react-redux": ["[email protected]", "", { "dependencies": { "@types/use-sync-external-store": "^0.0.6", "use-sync-external-store": "^1.4.0" }, "peerDependencies": { "@types/react": "^18.2.25 || ^19", "react": "^18.0 || ^19", "redux": "^5.0.0" }, "optionalPeers": ["@types/react", "redux"] }, "sha512-KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g=="],
+
+ "react-remove-scroll": ["[email protected]", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q=="],
+
+ "react-remove-scroll-bar": ["[email protected]", "", { "dependencies": { "react-style-singleton": "^2.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q=="],
+
+ "react-style-singleton": ["[email protected]", "", { "dependencies": { "get-nonce": "^1.0.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ=="],
+
+ "recharts": ["[email protected]", "", { "dependencies": { "@reduxjs/toolkit": "^1.9.0 || 2.x.x", "clsx": "^2.1.1", "decimal.js-light": "^2.5.1", "es-toolkit": "^1.39.3", "eventemitter3": "^5.0.1", "immer": "^11.1.8", "react-redux": "8.x.x || 9.x.x", "reselect": "5.2.0", "tiny-invariant": "^1.3.3", "use-sync-external-store": "^1.2.2", "victory-vendor": "^37.0.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-QXFrvt6IVcw7eeZCoyXTwkIJAX3Dv1nyVhMicXJ47GsGDDpcN8z6o644DibE9XjpBTThtsomLKnTV6lc+cVFUA=="],
+
+ "redux": ["[email protected]", "", {}, "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w=="],
+
+ "redux-thunk": ["[email protected]", "", { "peerDependencies": { "redux": "^5.0.0" } }, "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw=="],
+
+ "require-from-string": ["[email protected]", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],
+
+ "require-like": ["[email protected]", "", {}, "sha512-oyrU88skkMtDdauHDuKVrgR+zuItqr6/c//FXzvmxRGMexSDc6hNvJInGW3LL46n+8b50RykrvwSUIIQH2LQ5A=="],
+
+ "reselect": ["[email protected]", "", {}, "sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw=="],
+
+ "rolldown": ["[email protected]", "", { "dependencies": { "@oxc-project/types": "=0.139.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm64": "1.1.5", "@rolldown/binding-darwin-arm64": "1.1.5", "@rolldown/binding-darwin-x64": "1.1.5", "@rolldown/binding-freebsd-x64": "1.1.5", "@rolldown/binding-linux-arm-gnueabihf": "1.1.5", "@rolldown/binding-linux-arm64-gnu": "1.1.5", "@rolldown/binding-linux-arm64-musl": "1.1.5", "@rolldown/binding-linux-ppc64-gnu": "1.1.5", "@rolldown/binding-linux-s390x-gnu": "1.1.5", "@rolldown/binding-linux-x64-gnu": "1.1.5", "@rolldown/binding-linux-x64-musl": "1.1.5", "@rolldown/binding-openharmony-arm64": "1.1.5", "@rolldown/binding-wasm32-wasi": "1.1.5", "@rolldown/binding-win32-arm64-msvc": "1.1.5", "@rolldown/binding-win32-x64-msvc": "1.1.5" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-t9z29cJjXf/vxQ8dyhCSpt6H6aSwHTk8cT5I3iy6SMXuFpk5mB6PL6XfC8PCwrPTx93udwKUm9HRteAlTGBLiA=="],
+
+ "scheduler": ["[email protected]", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],
+
+ "schema-utils": ["[email protected]", "", { "dependencies": { "@types/json-schema": "^7.0.9", "ajv": "^8.9.0", "ajv-formats": "^2.1.1", "ajv-keywords": "^5.1.0" } }, "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA=="],
+
+ "semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="],
+
+ "sharp": ["[email protected]", "", { "dependencies": { "@img/colour": "^1.0.0", "detect-libc": "^2.1.2", "semver": "^7.7.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.34.5", "@img/sharp-darwin-x64": "0.34.5", "@img/sharp-libvips-darwin-arm64": "1.2.4", "@img/sharp-libvips-darwin-x64": "1.2.4", "@img/sharp-libvips-linux-arm": "1.2.4", "@img/sharp-libvips-linux-arm64": "1.2.4", "@img/sharp-libvips-linux-ppc64": "1.2.4", "@img/sharp-libvips-linux-riscv64": "1.2.4", "@img/sharp-libvips-linux-s390x": "1.2.4", "@img/sharp-libvips-linux-x64": "1.2.4", "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", "@img/sharp-libvips-linuxmusl-x64": "1.2.4", "@img/sharp-linux-arm": "0.34.5", "@img/sharp-linux-arm64": "0.34.5", "@img/sharp-linux-ppc64": "0.34.5", "@img/sharp-linux-riscv64": "0.34.5", "@img/sharp-linux-s390x": "0.34.5", "@img/sharp-linux-x64": "0.34.5", "@img/sharp-linuxmusl-arm64": "0.34.5", "@img/sharp-linuxmusl-x64": "0.34.5", "@img/sharp-wasm32": "0.34.5", "@img/sharp-win32-arm64": "0.34.5", "@img/sharp-win32-ia32": "0.34.5", "@img/sharp-win32-x64": "0.34.5" } }, "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg=="],
+
+ "sonner": ["[email protected]", "", { "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc" } }, "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w=="],
+
+ "source-map": ["[email protected]", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="],
+
+ "source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
+
+ "source-map-support": ["[email protected]", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="],
+
+ "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=="],
+
+ "supports-color": ["[email protected]", "", {}, "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g=="],
+
+ "tapable": ["[email protected]", "", {}, "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A=="],
+
+ "terser": ["[email protected]", "", { "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.15.0", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, "bin": { "terser": "bin/terser" } }, "sha512-SNiDnXyHSrxVcIOtVbULzcTmniUiwcV7Nwdyj1twVubeTmbjoa8p69KKDpfkdoOavuM4/GRm1+ykI8qqnavHoA=="],
+
+ "tiny-invariant": ["[email protected]", "", {}, "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="],
+
+ "tinyglobby": ["[email protected]", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g=="],
+
+ "tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
+
+ "typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw=="],
+
+ "ufo": ["[email protected]", "", {}, "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA=="],
+
+ "undici-types": ["[email protected]", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="],
+
+ "update-browserslist-db": ["[email protected]", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w=="],
+
+ "use-callback-ref": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg=="],
+
+ "use-sidecar": ["[email protected]", "", { "dependencies": { "detect-node-es": "^1.1.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ=="],
+
+ "use-sync-external-store": ["[email protected]", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w=="],
+
+ "victory-vendor": ["[email protected]", "", { "dependencies": { "@types/d3-array": "^3.0.3", "@types/d3-ease": "^3.0.0", "@types/d3-interpolate": "^3.0.1", "@types/d3-scale": "^4.0.2", "@types/d3-shape": "^3.1.0", "@types/d3-time": "^3.0.0", "@types/d3-timer": "^3.0.0", "d3-array": "^3.1.6", "d3-ease": "^3.0.1", "d3-interpolate": "^3.0.1", "d3-scale": "^4.0.2", "d3-shape": "^3.1.0", "d3-time": "^3.0.0", "d3-timer": "^3.0.1" } }, "sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ=="],
+
+ "vite": ["[email protected]", "", { "dependencies": { "lightningcss": "^1.32.0", "picomatch": "^4.0.5", "postcss": "^8.5.17", "rolldown": "~1.1.5", "tinyglobby": "^0.2.17" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "@vitejs/devtools": "^0.3.0", "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "@vitejs/devtools", "esbuild", "jiti", "less", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-7ULLwsCdYx/nRyrpiEwvqb5TFHrMVZyBt+rg/OAXT7rgj/z+DtTDyKFeLAdDkubDVDKD8jOsndmy7m55XcfUsw=="],
+
+ "vite-node": ["[email protected]", "", { "dependencies": { "cac": "^7.0.0", "es-module-lexer": "^2.0.0", "obug": "^2.1.1", "pathe": "^2.0.3", "vite": "^8.0.0" }, "bin": { "vite-node": "dist/cli.mjs" } }, "sha512-oj4PVrT+pDh6GYf5wfUXkcZyekYS8kKPfLPXVl8qe324Ec6l4K2DUKNadRbZ3LQl0qGcDz+PyOo7ZAh00Y+JjQ=="],
+
+ "watchpack": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.1.2" } }, "sha512-6i/00NBjP4yGPs+caKSyRfpTF/8Torsu0MOW3mMzIbhgISFder8i7xbqgHlLMwJrdiN8ndBV3UA1/AfzPSr+jg=="],
+
+ "webpack": ["[email protected]", "", { "dependencies": { "@types/estree": "^1.0.8", "@types/json-schema": "^7.0.15", "@webassemblyjs/ast": "^1.14.1", "@webassemblyjs/wasm-edit": "^1.14.1", "@webassemblyjs/wasm-parser": "^1.14.1", "acorn": "^8.16.0", "acorn-import-phases": "^1.0.3", "browserslist": "^4.28.1", "chrome-trace-event": "^1.0.2", "enhanced-resolve": "^5.22.2", "es-module-lexer": "^2.1.0", "eslint-scope": "5.1.1", "events": "^3.2.0", "graceful-fs": "^4.2.11", "loader-runner": "^4.3.2", "mime-db": "^1.54.0", "minimizer-webpack-plugin": "^5.6.1", "neo-async": "^2.6.2", "schema-utils": "^4.3.3", "tapable": "^2.3.0", "watchpack": "^2.5.2", "webpack-sources": "^3.5.0" }, "peerDependencies": { "webpack-cli": "*" }, "optionalPeers": ["webpack-cli"], "bin": { "webpack": "bin/webpack.js" } }, "sha512-yur8LyJoeiWh47dErD+Ok7vlbmDsJ3UbbRPAoxbGJ54WpE2y5yVo5G/inUzujnYgw3tPmBRdn+G7PoxXaYC33w=="],
+
+ "webpack-sources": ["[email protected]", "", {}, "sha512-jyuiGJdtvY434z5bUZrjz67v76/ePNvFZTp9Mdz29IlH4+GPsgyGjiv0fKI+M7BdkU6ADjulUcKAd3tUK3WlEw=="],
+
+ "yallist": ["[email protected]", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="],
+
+ "yocto-queue": ["[email protected]", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="],
+
+ "@babel/core/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
+
+ "@babel/helper-compilation-targets/lru-cache": ["[email protected]", "", { "dependencies": { "yallist": "^3.0.2" } }, "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w=="],
+
+ "@babel/helper-compilation-targets/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
+
+ "@rolldown/binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw=="],
+
+ "@vanilla-extract/compiler/@vanilla-extract/css": ["@vanilla-extract/[email protected]", "", { "dependencies": { "@emotion/hash": "^0.9.0", "@vanilla-extract/private": "^1.0.9", "css-what": "^6.1.0", "csstype": "^3.2.3", "dedent": "^1.5.3", "deep-object-diff": "^1.1.9", "deepmerge": "^4.2.2", "lru-cache": "^10.4.3", "media-query-parser": "^2.0.2", "modern-ahocorasick": "^1.0.0", "picocolors": "^1.0.0" } }, "sha512-T6z6oeT+o0OwqukE6kLs9w5ooB75b8NPRadyU9pPTml83l40TPN+mscPt2OQ9P9cYfwEBMfsfivwiJujs2mzmg=="],
+
+ "@vanilla-extract/integration/@vanilla-extract/css": ["@vanilla-extract/[email protected]", "", { "dependencies": { "@emotion/hash": "^0.9.0", "@vanilla-extract/private": "^1.0.9", "css-what": "^6.1.0", "csstype": "^3.2.3", "dedent": "^1.5.3", "deep-object-diff": "^1.1.9", "deepmerge": "^4.2.2", "lru-cache": "^10.4.3", "media-query-parser": "^2.0.2", "modern-ahocorasick": "^1.0.0", "picocolors": "^1.0.0" } }, "sha512-T6z6oeT+o0OwqukE6kLs9w5ooB75b8NPRadyU9pPTml83l40TPN+mscPt2OQ9P9cYfwEBMfsfivwiJujs2mzmg=="],
+
+ "esrecurse/estraverse": ["[email protected]", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="],
+
+ "eval/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA=="],
+
+ "jest-worker/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA=="],
+
+ "jest-worker/supports-color": ["[email protected]", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="],
+
+ "vite/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.16", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-lW616l85ucIQL+FocMmL7pQFPqBmwejrCMg+iPxyImlrANNJG9NHq/RkyCZopDhd8C3LA03PHRJDjkbGu8vvug=="],
+
+ "eval/@types/node/undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
+
+ "jest-worker/@types/node/undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
+ }
+}
diff --git a/next.config.ts b/next.config.ts
new file mode 100644
index 0000000..902731d
--- /dev/null
+++ b/next.config.ts
@@ -0,0 +1,34 @@
+/* system/next.config.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import type { NextConfig } from "next";
+import { createVanillaExtractPlugin } from "@vanilla-extract/next-plugin";
+
+/* Compiles .css.ts files to static CSS at build time — zero runtime. The plugin
+ * only wires up Turbopack when explicitly opted in; `mode: "auto"` enables it on
+ * Next >= 16 and falls back to webpack below that. */
+const withVanillaExtract = createVanillaExtractPlugin({
+ unstable_turbopack: {
+ mode: "auto",
+ },
+});
+
+const nextConfig: NextConfig = {
+ /* Deployed to Cloudflare Workers via @opennextjs/cloudflare, which bundles a
+ * standard `next build` (default output) into a Worker — so no `output:
+ * "standalone"`. Server components keep running on the Node.js runtime, so
+ * per-request member metadata and `revalidate` still work. */
+
+ // Allows overriding the build output dir (e.g. in sandboxed CI environments)
+ distDir: process.env.NEXT_DIST_DIR ?? ".next",
+};
+
+export default withVanillaExtract(nextConfig);
+
+// Lets `next dev` talk to local Cloudflare bindings during development. No-op
+// in production. Must be called at the bottom of this config.
+import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
+initOpenNextCloudflareForDev();
diff --git a/open-next.config.ts b/open-next.config.ts
new file mode 100644
index 0000000..f7c9e4e
--- /dev/null
+++ b/open-next.config.ts
@@ -0,0 +1,13 @@
+/* system/open-next.config.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+import { defineCloudflareConfig } from "@opennextjs/cloudflare";
+
+/* No incremental (ISR) cache override: member data comes live from PluralKit
+ * via the API, so we want each request to re-render fresh rather than serve a
+ * cached page. To add persistent caching later, provision an R2 bucket and set
+ * `incrementalCache: r2IncrementalCache` (import from
+ * "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache"). */
+export default defineCloudflareConfig({});
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..871c5e6
--- /dev/null
+++ b/package.json
@@ -0,0 +1,56 @@
+{
+ "name": "frontend",
+ "version": "0.1.0",
+ "private": true,
+ "scripts": {
+ "dev": "next dev --turbo",
+ "dev:webpack": "next dev --webpack",
+ "build": "next build --turbo",
+ "build:webpack": "next build --webpack",
+ "start": "next start",
+ "lint": "eslint",
+ "preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
+ "deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy",
+ "upload": "opennextjs-cloudflare build && opennextjs-cloudflare upload",
+ "cf-typegen": "wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts"
+ },
+ "dependencies": {
+ "@doughmination/react-api": "^1.6.1",
+ "@opennextjs/cloudflare": "^1.20.2",
+ "@radix-ui/react-checkbox": "^1.3.11",
+ "@radix-ui/react-label": "^2.1.15",
+ "@radix-ui/react-select": "^2.3.7",
+ "@radix-ui/react-separator": "^1.1.15",
+ "@radix-ui/react-slot": "^1.3.3",
+ "@radix-ui/react-toast": "^1.2.23",
+ "@radix-ui/react-tooltip": "^1.2.16",
+ "@tanstack/react-query": "^5.101.4",
+ "@vanilla-extract/recipes": "^0.5.7",
+ "clsx": "^2.1.1",
+ "next": "16.2.12",
+ "react": "19.2.8",
+ "react-bootstrap-icons": "^1.11.6",
+ "react-dom": "19.2.8",
+ "recharts": "^3.10.1",
+ "sonner": "^2.0.7"
+ },
+ "devDependencies": {
+ "@types/node": "^26.1.2",
+ "@types/react": "^19.2.18",
+ "@types/react-dom": "^19.2.4",
+ "@vanilla-extract/css": "^1.21.2",
+ "@vanilla-extract/next-plugin": "^2.5.2",
+ "typescript": "^6.0.3",
+ "wrangler": "^4.120.0"
+ },
+ "ignoreScripts": [
+ "sharp",
+ "unrs-resolver"
+ ],
+ "trustedDependencies": [
+ "@swc/core",
+ "esbuild",
+ "sharp",
+ "unrs-resolver"
+ ]
+}
diff --git a/public/.gitkeep b/public/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/public/_headers b/public/_headers
new file mode 100644
index 0000000..3b460e6
--- /dev/null
+++ b/public/_headers
@@ -0,0 +1,2 @@
+/_next/static/*
+ Cache-Control: public,max-age=31536000,immutable
diff --git a/src/app/SoundFX.tsx b/src/app/SoundFX.tsx
new file mode 100644
index 0000000..baa42e8
--- /dev/null
+++ b/src/app/SoundFX.tsx
@@ -0,0 +1,129 @@
+/* system/src/app/SoundFX.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import { useEffect } from "react";
+
+const SFX_BASE = "https://m.doughmination.gay/sfx/";
+
+const NAMES = ["hover", "click", "toggle"] as const;
+
+const INTERACTIVE = 'a,button,[role="button"],summary,input[type="submit"]';
+
+const TOGGLEABLE = 'input[type="checkbox"],input[type="radio"],[role="switch"]';
+
+// UI sounds: hover, click, toggle. On by default, muteable (persisted),
+// silenced under prefers-reduced-motion. Audio comes from the shared CDN.
+export default function SoundFX() {
+ useEffect(() => {
+ const reduce =
+ window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false;
+
+ const readMuted = (): boolean => {
+ if (reduce) return true;
+ try {
+ return localStorage.getItem("sfx-muted") === "1";
+ } catch {
+ return false;
+ }
+ };
+
+ let muted = readMuted();
+
+ const sounds: Record<string, HTMLAudioElement> = {};
+ for (const name of NAMES) {
+ const audio = new Audio(`${SFX_BASE}${name}.mp3`);
+ audio.preload = "auto";
+ audio.volume = 0.3;
+ sounds[name] = audio;
+ }
+
+ let lastHover = 0;
+
+ const play = (name: string) => {
+ if (muted) return;
+ const audio = sounds[name];
+ if (!audio) return;
+ try {
+ audio.currentTime = 0;
+ const attempt = audio.play();
+ if (attempt && typeof attempt.then === "function") {
+ attempt.catch(() => {});
+ }
+ } catch {
+ // Ignore autoplay / decode errors.
+ }
+ };
+
+ const onOver = (event: Event) => {
+ const target = event.target as HTMLElement;
+ if (target.closest?.(".sfx-toggle")) return;
+ if (!target.closest?.(INTERACTIVE)) return;
+ const now = Date.now();
+ if (now - lastHover < 90) return;
+ lastHover = now;
+ play("hover");
+ };
+
+ const onClick = (event: Event) => {
+ const target = event.target as HTMLElement;
+ if (target.closest?.(".sfx-toggle")) return;
+ if (target.closest?.(TOGGLEABLE)) {
+ play("toggle");
+ return;
+ }
+ if (target.closest?.(INTERACTIVE)) play("click");
+ };
+
+ const onChange = (event: Event) => {
+ const target = event.target as HTMLElement;
+ if (target.matches?.(`${TOGGLEABLE},select`)) play("toggle");
+ };
+
+ document.addEventListener("pointerover", onOver, true);
+ document.addEventListener("click", onClick, true);
+ document.addEventListener("change", onChange, true);
+
+ const button = document.createElement("button");
+ button.type = "button";
+ button.className = "sfx-toggle";
+ button.style.cssText =
+ "position:fixed;bottom:1rem;right:1rem;z-index:50;width:2.4rem;height:2.4rem;border-radius:999px;border:1px solid rgba(255,255,255,0.2);background:rgba(18,20,28,0.85);color:#f4f6fb;cursor:pointer;font-size:1.1rem;line-height:1";
+
+ const glyph = () => (muted ? "\u{1F507}" : "\u{1F50A}");
+ const label = () =>
+ muted ? "Unmute interface sounds" : "Mute interface sounds";
+
+ button.textContent = glyph();
+ button.setAttribute("aria-label", label());
+
+ const onToggle = () => {
+ muted = !muted;
+ try {
+ localStorage.setItem("sfx-muted", muted ? "1" : "0");
+ } catch {
+ // localStorage may be unavailable; state still applies for the session.
+ }
+ button.textContent = glyph();
+ button.setAttribute("aria-label", label());
+ if (!muted) play("toggle");
+ };
+
+ button.addEventListener("click", onToggle);
+ document.body.appendChild(button);
+
+ return () => {
+ document.removeEventListener("pointerover", onOver, true);
+ document.removeEventListener("click", onClick, true);
+ document.removeEventListener("change", onChange, true);
+ button.removeEventListener("click", onToggle);
+ button.remove();
+ };
+ }, []);
+
+ return null;
+}
diff --git a/src/app/[member_id]/layout.tsx b/src/app/[member_id]/layout.tsx
new file mode 100644
index 0000000..43e65af
--- /dev/null
+++ b/src/app/[member_id]/layout.tsx
@@ -0,0 +1,153 @@
+/* system/src/app/[member_id]/layout.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import type { Metadata, Viewport } from "next";
+import { cache } from "react";
+
+// Server-safe entry: the client without the React provider/context, so it is
+// usable from this server component. Importing the package root would evaluate
+// createContext and crash RSC.
+import {
+ DoughminationClient,
+ type PluralMember,
+} from "@doughmination/react-api/server";
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+const SITE_NAME = "Doughmination System";
+
+const DEFAULT_THEME_COLOR = "#0a0b10";
+
+type RouteParams = {
+ member_id: string;
+};
+
+type LayoutProps = {
+ children: React.ReactNode;
+ params: Promise<RouteParams>;
+};
+
+// A custom fetch attaches Next's revalidate hint, so a burst of embed crawlers
+// resolves to one API hit per 5 minutes rather than one per request.
+const apiClient = new DoughminationClient({
+ fetch: (input, init) =>
+ fetch(input, {
+ ...init,
+ next: {
+ revalidate: 300,
+ },
+ }),
+});
+
+// Deduped per request: generateMetadata and generateViewport both call this,
+// so wrapping in cache() means one lookup, not two.
+const fetchMember = cache(
+ async (memberId: string): Promise<PluralMember | null> => {
+ if (!memberId) return null;
+
+ try {
+ return await apiClient.getMember(memberId);
+ } catch {
+ // getMember throws on 404 / network error — treat as "no member".
+ return null;
+ }
+ },
+);
+
+// One-line summary when the member has no description of their own.
+function buildDescription(member: PluralMember): string {
+ if (member.description) return member.description;
+
+ const parts: string[] = [];
+
+ if (member.pronouns) parts.push(member.pronouns);
+ if (member.tags && member.tags.length > 0) parts.push(member.tags.join(", "));
+ if (member.pride && member.pride.length > 0) parts.push(member.pride.join(", "));
+
+ if (parts.length > 0) {
+ return `${parts.join(" · ")} — member of the ${SITE_NAME}.`;
+ }
+
+ return `A member of the ${SITE_NAME}.`;
+}
+
+export async function generateMetadata({
+ params,
+}: {
+ params: Promise<RouteParams>;
+}): Promise<Metadata> {
+ const { member_id: memberId } = await params;
+ const member = await fetchMember(memberId);
+
+ if (!member) {
+ return {
+ title: `Member not found · ${SITE_NAME}`,
+ description: `This member could not be found in the ${SITE_NAME}.`,
+ };
+ }
+
+ const displayName = member.display_name || member.name || memberId;
+ const title = `${displayName} · ${SITE_NAME}`;
+ const description = buildDescription(member);
+ const avatar = member.avatar_url || FALLBACK_AVATAR;
+ const pageUrl = `https://doughmination.co.uk/${encodeURIComponent(memberId)}`;
+
+ return {
+ title,
+ description,
+ alternates: {
+ canonical: pageUrl,
+ },
+ openGraph: {
+ siteName: SITE_NAME,
+ title,
+ description,
+ images: [
+ {
+ url: avatar,
+ width: 800,
+ height: 800,
+ alt: displayName,
+ },
+ ],
+ type: "profile",
+ url: pageUrl,
+ locale: "en_GB",
+ },
+ twitter: {
+ card: "summary",
+ title,
+ description,
+ images: [avatar],
+ site: "@doughmination",
+ },
+ };
+}
+
+export async function generateViewport({
+ params,
+}: {
+ params: Promise<RouteParams>;
+}): Promise<Viewport> {
+ const { member_id: memberId } = await params;
+ const member = await fetchMember(memberId);
+
+ // The member colour drives the Discord embed's left strip. The API stores it
+ // without a leading "#"; fall back to the site theme colour when unset.
+ const themeColor = member?.color
+ ? member.color.startsWith("#")
+ ? member.color
+ : `#${member.color}`
+ : DEFAULT_THEME_COLOR;
+
+ return {
+ themeColor,
+ };
+}
+
+export default function MemberLayout({ children }: LayoutProps) {
+ return children;
+}
diff --git a/src/app/[member_id]/member.css.ts b/src/app/[member_id]/member.css.ts
new file mode 100644
index 0000000..e2ce04b
--- /dev/null
+++ b/src/app/[member_id]/member.css.ts
@@ -0,0 +1,184 @@
+/* system/src/app/[member_id]/member.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import { style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+export const page = style({
+ width: "100%",
+ margin: "0 auto",
+ padding: "1.5rem",
+ paddingTop: "5rem",
+});
+
+export const loadingText = style({
+ textAlign: "center",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const errorWrap = style({
+ maxWidth: "28rem",
+ margin: "0 auto",
+});
+
+export const errorActions = style({
+ marginTop: "1rem",
+ textAlign: "center",
+});
+
+export const cardWrap = style({
+ maxWidth: "42rem",
+ margin: "0 auto",
+});
+
+export const headerCenter = style({
+ textAlign: "center",
+});
+
+export const avatarBlock = style({
+ marginBottom: "1rem",
+ position: "relative",
+ display: "inline-block",
+});
+
+/* Thought bubble */
+export const bubbleWrap = style({
+ position: "absolute",
+ top: "-5rem",
+ left: "50%",
+ transform: "translateX(-50%)",
+ zIndex: 20,
+});
+
+export const bubble = style({
+ position: "relative",
+ backgroundColor: vars.bg,
+ border: `2px solid ${vars.surface}`,
+ borderRadius: "30px",
+ padding: "0.5rem 1rem",
+ boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
+ maxWidth: "200px",
+});
+
+export const bubbleRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.5rem",
+});
+
+export const bubbleEmoji = style({ fontSize: "1.125rem" });
+
+export const bubbleText = style({
+ fontSize: "0.875rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ color: vars.text,
+ overflow: "hidden",
+ textOverflow: "ellipsis",
+ whiteSpace: "nowrap",
+});
+
+const dotBase = {
+ position: "absolute",
+ left: "50%",
+} as const;
+
+export const bubbleDot1Wrap = style({
+ ...dotBase,
+ bottom: "-1.25rem",
+ transform: "translateX(calc(-50% + 0.5rem))",
+});
+export const bubbleDot2Wrap = style({
+ ...dotBase,
+ bottom: "-2rem",
+ transform: "translateX(calc(-50% + 1rem))",
+});
+export const bubbleDot3Wrap = style({
+ ...dotBase,
+ bottom: "-2.5rem",
+ transform: "translateX(calc(-50% + 1.25rem))",
+});
+
+export const bubbleDot1 = style({
+ width: "0.75rem",
+ height: "0.75rem",
+ backgroundColor: vars.bg,
+ border: `2px solid ${vars.surface}`,
+ borderRadius: "9999px",
+ boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1)",
+});
+export const bubbleDot2 = style({
+ width: "0.5rem",
+ height: "0.5rem",
+ backgroundColor: vars.bg,
+ border: `2px solid ${vars.surface}`,
+ borderRadius: "9999px",
+ boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1)",
+});
+export const bubbleDot3 = style({
+ width: "0.375rem",
+ height: "0.375rem",
+ backgroundColor: vars.bg,
+ border: `1px solid ${vars.surface}`,
+ borderRadius: "9999px",
+ boxShadow: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
+});
+
+export const avatar = style({
+ width: "8rem",
+ height: "8rem",
+ borderRadius: "9999px",
+ margin: "0 auto",
+ objectFit: "cover",
+ borderWidth: "4px",
+ borderStyle: "solid",
+ transition: "all 0.15s ease",
+ display: "block",
+});
+
+export const title = style({
+ fontSize: "1.875rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ transition: "color 0.15s ease",
+});
+
+export const pronouns = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ marginTop: "0.25rem",
+});
+
+export const content = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "1.5rem",
+});
+
+export const sectionTitle = style({
+ fontSize: "1.125rem",
+ fontFamily: vars.fontComic,
+ marginBottom: "0.5rem",
+ fontWeight: 600,
+});
+
+export const description = style({
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const tagRow = style({
+ display: "flex",
+ flexWrap: "wrap",
+ gap: "0.5rem",
+});
+
+export const backWrap = style({
+ textAlign: "center",
+ paddingTop: "1rem",
+});
diff --git a/src/app/[member_id]/page.tsx b/src/app/[member_id]/page.tsx
new file mode 100644
index 0000000..7bf80fd
--- /dev/null
+++ b/src/app/[member_id]/page.tsx
@@ -0,0 +1,322 @@
+/* system/src/app/[member_id]/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useMemo } from "react";
+import Link from "next/link";
+import { useParams } from "next/navigation";
+import {
+ useMember,
+ useMemberStatus,
+ useMembers,
+ useRelationships,
+ type PluralMember,
+} from "@doughmination/react-api";
+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Badge } from "@/components/ui/badge";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import { normalizeColor, readableOnDark } from "@/lib/utils";
+import { findPrideFlag, prideSwatchGradient } from "@/lib/pride";
+import * as s from "./member.css";
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+export default function MemberDetails() {
+ const params = useParams<{ member_id: string }>();
+ const member_id = params?.member_id;
+
+ // The member endpoint doesn't carry the status note, so fetch it alongside
+ // and merge — exactly what the old two-request effect did.
+ const memberQuery = useMember(member_id);
+ const statusQuery = useMemberStatus(member_id);
+ const membersQuery = useMembers();
+ const relationshipsQuery = useRelationships();
+
+ const loading = memberQuery.isLoading;
+ const member = useMemo(() => {
+ if (!memberQuery.data) return null;
+ return {
+ ...memberQuery.data,
+ status: statusQuery.data?.status ?? memberQuery.data.status ?? null,
+ };
+ }, [memberQuery.data, statusQuery.data]);
+
+ // Partners: every relationship edge that names this member, resolved to the
+ // other member on the edge. A member appearing on several edges is poly.
+ const partners = useMemo<PluralMember[]>(() => {
+ if (!member) return [];
+ const relationships = relationshipsQuery.data?.relationships ?? [];
+ const allMembers = membersQuery.data ?? [];
+ const isThisMember = (identifier: string) =>
+ identifier === member.id || identifier === member.name;
+
+ const partnerIds: string[] = [];
+ for (const edge of relationships) {
+ if (isThisMember(edge.members[0])) partnerIds.push(edge.members[1]);
+ else if (isThisMember(edge.members[1])) partnerIds.push(edge.members[0]);
+ }
+
+ return partnerIds
+ .map((identifier) =>
+ allMembers.find(
+ (candidate) => candidate.id === identifier || candidate.name === identifier,
+ ),
+ )
+ .filter((candidate): candidate is PluralMember => Boolean(candidate));
+ }, [member, relationshipsQuery.data, membersQuery.data]);
+
+ const error = !member_id
+ ? "No member ID provided"
+ : memberQuery.isError
+ ? "Member not found or error occurred"
+ : "";
+
+ if (loading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading member details...</div>
+ </div>
+ );
+ }
+
+ if (error || !member) {
+ return (
+ <div className={s.page}>
+ <div className={s.errorWrap}>
+ <Alert variant="destructive">
+ <AlertDescription>{error || "Member not found"}</AlertDescription>
+ </Alert>
+ <div className={s.errorActions}>
+ <Button variant="outline" asChild>
+ <Link href="/">Back to Home</Link>
+ </Button>
+ </div>
+ </div>
+ </div>
+ );
+ }
+
+ const memberColor = normalizeColor(member.color);
+ const borderColor = memberColor || "var(--accent)";
+ const nameColor = readableOnDark(member.color, "var(--text)");
+ // Appending an alpha suffix only yields valid CSS for a hex literal.
+ const glow = memberColor
+ ? `${memberColor}40`
+ : "color-mix(in srgb, var(--accent) 25%, transparent)";
+ const pronounColor = memberColor
+ ? `${nameColor}cc`
+ : "var(--text-muted)";
+
+ return (
+ <div className={s.page}>
+ <div className={s.cardWrap}>
+ <Card>
+ <CardHeader className={s.headerCenter}>
+ <div className={s.avatarBlock}>
+ {/* Status Bubble - Thought Bubble Style */}
+ {member.status && (
+ <div className={s.bubbleWrap}>
+ <div className={s.bubble}>
+ <div className={s.bubbleRow}>
+ {member.status.emoji && (
+ <span className={s.bubbleEmoji}>{member.status.emoji}</span>
+ )}
+ <span className={s.bubbleText}>{member.status.text}</span>
+ </div>
+ {/* Thought bubble circles - staggered diagonally toward avatar */}
+ <div className={s.bubbleDot1Wrap}>
+ <div className={s.bubbleDot1}></div>
+ </div>
+ <div className={s.bubbleDot2Wrap}>
+ <div className={s.bubbleDot2}></div>
+ </div>
+ <div className={s.bubbleDot3Wrap}>
+ <div className={s.bubbleDot3}></div>
+ </div>
+ </div>
+ </div>
+ )}
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={s.avatar}
+ style={{
+ borderColor: borderColor,
+ boxShadow: `0 0 20px ${glow}`,
+ }}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ </div>
+ <CardTitle
+ className={s.title}
+ style={{ color: nameColor }}
+ >
+ {member.display_name || member.name}
+ </CardTitle>
+ {member.pronouns && (
+ <p
+ className={s.pronouns}
+ style={{
+ color: pronounColor,
+ }}
+ >
+ {member.pronouns}
+ </p>
+ )}
+ </CardHeader>
+ <CardContent className={s.content}>
+ {member.description && (
+ <div>
+ <h3
+ className={s.sectionTitle}
+ style={{ color: nameColor }}
+ >
+ About
+ </h3>
+ <p className={s.description}>{member.description}</p>
+ </div>
+ )}
+
+ {member.tags && member.tags.length > 0 && (
+ <div>
+ <h3
+ className={s.sectionTitle}
+ style={{ color: nameColor }}
+ >
+ Tags
+ </h3>
+ <div className={s.tagRow}>
+ {member.tags.map((tag, index) => (
+ <Badge
+ key={index}
+ variant="secondary"
+ style={
+ memberColor
+ ? {
+ backgroundColor: `${memberColor}20`,
+ borderColor: memberColor,
+ color: memberColor,
+ borderWidth: "1px",
+ }
+ : undefined
+ }
+ >
+ {tag}
+ </Badge>
+ ))}
+ </div>
+ </div>
+ )}
+
+ {member.pride && member.pride.length > 0 && (
+ <div>
+ <h3
+ className={s.sectionTitle}
+ style={{ color: nameColor }}
+ >
+ Pride
+ </h3>
+ <div className={s.tagRow}>
+ {member.pride.map((identity) => {
+ const flag = findPrideFlag(identity);
+ const swatch = flag
+ ? prideSwatchGradient(flag.stripes)
+ : "var(--accent)";
+ return (
+ <Badge key={identity} variant="secondary">
+ <span
+ aria-hidden
+ style={{
+ display: "inline-block",
+ width: "0.8rem",
+ height: "0.8rem",
+ borderRadius: "3px",
+ marginRight: "0.4rem",
+ verticalAlign: "middle",
+ background: swatch,
+ border: "1px solid rgba(0,0,0,0.2)",
+ }}
+ />
+ {identity}
+ </Badge>
+ );
+ })}
+ </div>
+ </div>
+ )}
+
+ {partners.length > 0 && (
+ <div>
+ <h3
+ className={s.sectionTitle}
+ style={{ color: nameColor }}
+ >
+ Partners
+ </h3>
+ <div className={s.tagRow}>
+ {partners.map((partner) => (
+ <Link
+ key={partner.id}
+ href={`/${partner.name ?? partner.id}`}
+ style={{
+ display: "inline-flex",
+ alignItems: "center",
+ gap: "0.4rem",
+ padding: "0.25rem 0.6rem 0.25rem 0.3rem",
+ borderRadius: "999px",
+ border: "1px solid var(--border, rgba(255,255,255,0.15))",
+ textDecoration: "none",
+ color: "var(--text)",
+ }}
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={partner.avatar_url || FALLBACK_AVATAR}
+ alt={partner.display_name || partner.name}
+ style={{
+ width: "1.5rem",
+ height: "1.5rem",
+ borderRadius: "50%",
+ objectFit: "cover",
+ }}
+ onError={(event) => {
+ (event.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ <span>{partner.display_name || partner.name}</span>
+ </Link>
+ ))}
+ </div>
+ </div>
+ )}
+
+ <div className={s.backWrap}>
+ <Button
+ variant="outline"
+ asChild
+ style={
+ memberColor
+ ? {
+ borderColor: memberColor,
+ color: memberColor,
+ }
+ : undefined
+ }
+ >
+ <Link href="/">← Back to Members</Link>
+ </Button>
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+}
diff --git a/src/app/admin/dash/page.tsx b/src/app/admin/dash/page.tsx
new file mode 100644
index 0000000..6423e40
--- /dev/null
+++ b/src/app/admin/dash/page.tsx
@@ -0,0 +1,185 @@
+/* system/src/app/admin/dash/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState } from "react";
+import Link from "next/link";
+import { useDoughminationClient, isDoughminationError } from "@doughmination/react-api";
+import { Button } from "@/components/ui/button";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import * as s from "@/styles/admin.css";
+
+const AdminDash: React.FC = () => {
+ const client = useDoughminationClient();
+ const [refreshing, setRefreshing] = useState(false);
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+
+ const adminPages = [
+ {
+ path: "/admin/switch",
+ label: "Switch Manager",
+ icon: "🔄",
+ desc: "Manage fronting members"
+ },
+ {
+ path: "/admin/mental",
+ label: "Mental Health",
+ icon: "🧠",
+ desc: "Update mental state"
+ },
+ {
+ path: "/admin/status",
+ label: "Status Manager",
+ icon: "💬",
+ desc: "Set member statuses"
+ },
+ {
+ path: "/admin/tags",
+ label: "Tag Manager",
+ icon: "🏷️",
+ desc: "Manage member tags"
+ },
+ {
+ path: "/admin/pride",
+ label: "Pride Manager",
+ icon: "🏳️🌈",
+ desc: "Set member pride identities"
+ },
+ {
+ path: "/admin/relationships",
+ label: "Relationships",
+ icon: "💞",
+ desc: "Map who is dating who",
+ },
+ {
+ path: "https://doughmination.uk/docs",
+ label: "API Endpoints",
+ icon: "🔌",
+ desc: "View API reference",
+ external: true,
+ },
+ ];
+
+ const handleForceRefresh = async () => {
+ if (!window.confirm("This will reload the website for ALL connected users. Are you sure?")) {
+ return;
+ }
+
+ setRefreshing(true);
+ setMessage(null);
+
+ try {
+ await client.forceRefresh();
+
+ setMessage({
+ type: "success",
+ content:
+ "Refresh command sent to all connected clients! The page will reload in 3 seconds...",
+ });
+
+ // Reload this page after 3 seconds
+ setTimeout(() => {
+ window.location.reload();
+ }, 3000);
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: isDoughminationError(err) ? err.message : "Failed to send refresh command",
+ });
+ setRefreshing(false);
+ }
+ };
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrapNarrow}>
+ {/* Header */}
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Admin Dashboard</h1>
+ <p className={s.pageSubtitle}>System management hub</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/">
+ <svg className={s.btnIcon} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={2}
+ d="M10 19l-7-7m0 0l7-7m-7 7h18"
+ />
+ </svg>
+ Back to Home
+ </Link>
+ </Button>
+ </div>
+
+ {/* Messages */}
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ {/* Force Refresh Button */}
+ <div className={s.dangerBanner}>
+ <div className={s.dangerBannerRow}>
+ <div className={s.flexGrow}>
+ <h3 className={s.dangerBannerTitle}>🔄 Force Refresh All Clients</h3>
+ <p className={s.dangerBannerText}>
+ Send a refresh command to all users currently viewing the website. This will
+ immediately reload their browsers.
+ </p>
+ </div>
+ <Button
+ variant="destructive"
+ onClick={handleForceRefresh}
+ disabled={refreshing}
+ className={s.noWrap}
+ >
+ {refreshing ? "Sending..." : "🔄 Refresh All"}
+ </Button>
+ </div>
+ </div>
+
+ {/* Admin Navigation Grid */}
+ <div className={s.dashGrid}>
+ {adminPages.map((page) =>
+ page.external ? (
+ <a key={page.path} href={page.path} target="_blank" rel="noopener noreferrer">
+ <div className={s.dashCard}>
+ <span className={s.dashIcon}>{page.icon}</span>
+ <h3 className={s.dashLabel}>{page.label}</h3>
+ <p className={s.dashDesc}>{page.desc}</p>
+ </div>
+ </a>
+ ) : (
+ <Link key={page.path} href={page.path}>
+ <div className={s.dashCard}>
+ <span className={s.dashIcon}>{page.icon}</span>
+ <h3 className={s.dashLabel}>{page.label}</h3>
+ <p className={s.dashDesc}>{page.desc}</p>
+ </div>
+ </Link>
+ ),
+ )}
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default function AdminDashPage() {
+ return (
+ <ProtectedRoute adminRequired>
+ <AdminDash />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/admin/mental/mental.css.ts b/src/app/admin/mental/mental.css.ts
new file mode 100644
index 0000000..48c5708
--- /dev/null
+++ b/src/app/admin/mental/mental.css.ts
@@ -0,0 +1,84 @@
+/* system/src/app/admin/mental/mental.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import { style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+const tint = (color: string, pct: number) =>
+ `color-mix(in srgb, ${color} ${pct}%, ${vars.bg})`;
+
+export const stateCardBase = style({
+ borderWidth: "2px",
+});
+
+export const stateSafe = style({
+ backgroundColor: tint(vars.success, 12),
+ borderColor: vars.success,
+});
+
+export const stateUnstable = style({
+ backgroundColor: tint(vars.warning, 12),
+ borderColor: vars.warning,
+});
+
+export const stateIdealizing = style({
+ backgroundColor: tint(vars.peach, 12),
+ borderColor: vars.peach,
+});
+
+export const stateSelfHarming = style({
+ backgroundColor: tint(vars.danger, 12),
+ borderColor: vars.danger,
+});
+
+export const stateHighRisk = style({
+ backgroundColor: tint(vars.maroon, 18),
+ borderColor: vars.maroon,
+});
+
+export const currentRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.75rem",
+ marginBottom: "0.75rem",
+});
+
+export const currentIcon = style({ fontSize: "2.25rem" });
+
+export const currentLabel = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 700,
+ fontSize: "1.25rem",
+});
+
+export const currentNotes = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ marginTop: "0.25rem",
+});
+
+export const select = style({
+ width: "100%",
+ padding: "0.5rem",
+ border: `1px solid ${vars.surface}`,
+ borderRadius: "0.375rem",
+ backgroundColor: vars.bg,
+ color: vars.text,
+ fontFamily: vars.fontComic,
+});
+
+export const textarea = style({
+ width: "100%",
+ padding: "0.5rem",
+ border: `1px solid ${vars.surface}`,
+ borderRadius: "0.375rem",
+ backgroundColor: vars.bg,
+ color: vars.text,
+ fontFamily: vars.fontComic,
+ resize: "none",
+});
diff --git a/src/app/admin/mental/page.tsx b/src/app/admin/mental/page.tsx
new file mode 100644
index 0000000..e77f7a8
--- /dev/null
+++ b/src/app/admin/mental/page.tsx
@@ -0,0 +1,228 @@
+/* system/src/app/admin/mental/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState, useEffect, useRef } from "react";
+import Link from "next/link";
+import {
+ useMentalState,
+ useSetMentalState,
+ isDoughminationError,
+} from "@doughmination/react-api";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Label } from "@/components/ui/label";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import { cn } from "@/lib/utils";
+import * as s from "@/styles/admin.css";
+import * as m from "./mental.css";
+
+const MentalHealthManager: React.FC = () => {
+ // Live current state; the socket keeps this current after any admin saves.
+ const mentalQuery = useMentalState();
+ const setMental = useSetMentalState();
+ const mentalState = mentalQuery.data ?? null;
+ const loading = mentalQuery.isLoading;
+
+ const [selectedMentalState, setSelectedMentalState] = useState("");
+ const [mentalStateNotes, setMentalStateNotes] = useState("");
+ const [saving, setSaving] = useState(false);
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+
+ // Seed the form once from the current state.
+ const seeded = useRef(false);
+ useEffect(() => {
+ if (!seeded.current && mentalQuery.data) {
+ seeded.current = true;
+ setSelectedMentalState(mentalQuery.data.level);
+ setMentalStateNotes(mentalQuery.data.notes || "");
+ }
+ }, [mentalQuery.data]);
+
+ const mentalStateOptions = [
+ {
+ value: "safe",
+ label: "Safe",
+ icon: "✅",
+ className: m.stateSafe
+ },
+ {
+ value: "unstable",
+ label: "Unstable",
+ icon: "⚠️",
+ className: m.stateUnstable
+ },
+ {
+ value: "idealizing",
+ label: "Idealizing",
+ icon: "❗",
+ className: m.stateIdealizing
+ },
+ {
+ value: "self-harming",
+ label: "Self-Harming",
+ icon: "🚨",
+ className: m.stateSelfHarming
+ },
+ {
+ value: "highly at risk",
+ label: "Highly At Risk",
+ icon: "⛔",
+ className: m.stateHighRisk
+ },
+ ];
+
+ const handleUpdateMentalState = async () => {
+ if (!selectedMentalState) {
+ setMessage({
+ type: "error",
+ content: "Please select a mental state level."
+ });
+ return;
+ }
+
+ setMessage(null);
+ setSaving(true);
+
+ try {
+ await setMental.mutateAsync({
+ level: selectedMentalState,
+ notes: mentalStateNotes.trim() || undefined,
+ });
+ setMessage({
+ type: "success",
+ content: "Mental state updated successfully."
+ });
+ } catch (error: unknown) {
+ console.error("Mental state update error:", error);
+ setMessage({
+ type: "error",
+ content: isDoughminationError(error) ? error.message : "An unknown error occurred",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const getCurrentStateConfig = () => {
+ if (!mentalState) return null;
+ return mentalStateOptions.find((opt) => opt.value === mentalState.level);
+ };
+
+ if (loading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading...</div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrapNarrow}>
+ {/* Header */}
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Mental Health Manager</h1>
+ <p className={s.pageSubtitle}>Update system mental state</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/admin/dash">Back to Dashboard</Link>
+ </Button>
+ </div>
+
+ {/* Messages */}
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ {/* Current Mental State Display */}
+ {mentalState && getCurrentStateConfig() && (
+ <Card className={cn(m.stateCardBase, getCurrentStateConfig()?.className)}>
+ <CardHeader>
+ <CardTitle>Current Status</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <div className={m.currentRow}>
+ <span className={m.currentIcon}>{getCurrentStateConfig()?.icon}</span>
+ <div>
+ <p className={m.currentLabel}>{getCurrentStateConfig()?.label}</p>
+ {mentalState.notes && <p className={m.currentNotes}>{mentalState.notes}</p>}
+ </div>
+ </div>
+ <p className={s.smallMuted}>
+ Last updated: {new Date(mentalState.updated_at).toLocaleString()}
+ </p>
+ </CardContent>
+ </Card>
+ )}
+
+ {/* Update Form */}
+ <Card>
+ <CardHeader>
+ <CardTitle>Update Mental State</CardTitle>
+ <CardDescription>Select a new mental state level</CardDescription>
+ </CardHeader>
+ <CardContent className={s.formStack}>
+ {/* Mental State Selection */}
+ <div className={s.fieldBlock}>
+ <Label htmlFor="mental-state-select">Mental State Level</Label>
+ <select
+ id="mental-state-select"
+ value={selectedMentalState}
+ onChange={(e) => setSelectedMentalState(e.target.value)}
+ className={m.select}
+ >
+ <option value="">-- Select mental state --</option>
+ {mentalStateOptions.map((option) => (
+ <option key={option.value} value={option.value}>
+ {option.icon} {option.label}
+ </option>
+ ))}
+ </select>
+ </div>
+
+ {/* Notes */}
+ <div className={s.fieldBlock}>
+ <Label htmlFor="mental-state-notes">Notes (optional)</Label>
+ <textarea
+ id="mental-state-notes"
+ value={mentalStateNotes}
+ onChange={(e) => setMentalStateNotes(e.target.value)}
+ placeholder="Add any additional notes about the current mental state..."
+ rows={3}
+ className={m.textarea}
+ />
+ </div>
+
+ {/* Submit Button */}
+ <Button
+ onClick={handleUpdateMentalState}
+ disabled={saving || !selectedMentalState}
+ className={s.fullWidth}
+ >
+ {saving ? "Updating..." : "Update Mental State"}
+ </Button>
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+};
+
+export default function MentalHealthManagerPage() {
+ return (
+ <ProtectedRoute adminRequired>
+ <MentalHealthManager />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/admin/pride/page.tsx b/src/app/admin/pride/page.tsx
new file mode 100644
index 0000000..339f99c
--- /dev/null
+++ b/src/app/admin/pride/page.tsx
@@ -0,0 +1,272 @@
+/* system/src/app/admin/pride/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useMemo, useState } from "react";
+import Link from "next/link";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Label } from "@/components/ui/label";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import {
+ useMembers,
+ useSetMemberPride,
+ type PluralMember,
+} from "@doughmination/react-api";
+import { PRIDE_FLAGS, findPrideFlag, prideSwatchGradient } from "@/lib/pride";
+import * as s from "@/styles/admin.css";
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+const PrideSwatch: React.FC<{ label: string }> = ({ label }) => {
+ const flag = findPrideFlag(label);
+ const background = flag
+ ? prideSwatchGradient(flag.stripes)
+ : "var(--accent)";
+ return (
+ <span
+ aria-hidden
+ style={{
+ display: "inline-block",
+ width: "0.9rem",
+ height: "0.9rem",
+ borderRadius: "3px",
+ background,
+ border: "1px solid rgba(0,0,0,0.2)",
+ }}
+ />
+ );
+};
+
+const PrideManager: React.FC = () => {
+ const membersQuery = useMembers();
+ const setPride = useSetMemberPride();
+
+ const members = useMemo(() => {
+ const list = membersQuery.data ?? [];
+ return [...list].sort((memberA, memberB) =>
+ (memberA.display_name || memberA.name || "")
+ .toLowerCase()
+ .localeCompare((memberB.display_name || memberB.name || "").toLowerCase()),
+ );
+ }, [membersQuery.data]);
+
+ const [selectedMember, setSelectedMember] = useState<string>("");
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+
+ const getSelectedMember = (): PluralMember | undefined =>
+ members.find((member) => member.name === selectedMember);
+
+ const runChange = async (
+ identifier: string,
+ identity: string,
+ action: "add" | "remove",
+ ) => {
+ setMessage(null);
+ try {
+ await setPride.mutateAsync({
+ identifier,
+ identity,
+ action
+ });
+ await membersQuery.refetch();
+ setMessage({
+ type: "success",
+ content: action === "add" ? "Pride identity added!" : "Pride identity removed!",
+ });
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to update pride identity",
+ });
+ }
+ };
+
+ const selected = getSelectedMember();
+ const selectedPride = selected?.pride ?? [];
+
+ if (membersQuery.isLoading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading...</div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrap}>
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Pride Manager</h1>
+ <p className={s.pageSubtitle}>Assign pride identities to members</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/admin/dash">Back to Dashboard</Link>
+ </Button>
+ </div>
+
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ <Card>
+ <CardHeader>
+ <CardTitle>Set Pride Identities</CardTitle>
+ <CardDescription>Select a member, then toggle identities on or off</CardDescription>
+ </CardHeader>
+ <CardContent className={s.formStack}>
+ <div className={s.fieldBlock}>
+ <Label htmlFor="member-select">Select Member</Label>
+ <Select value={selectedMember} onValueChange={setSelectedMember}>
+ <SelectTrigger id="member-select">
+ <SelectValue placeholder="Choose a member..." />
+ </SelectTrigger>
+ <SelectContent>
+ {members.map((member) => (
+ <SelectItem key={member.id} value={member.name ?? ""}>
+ <div className={s.inlineRow}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={s.memberAvatarSm}
+ onError={(event) => {
+ (event.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ <span>{member.display_name || member.name}</span>
+ {member.pride && member.pride.length > 0 && (
+ <span className={s.smallMuted}>
+ ({member.pride.length})
+ </span>
+ )}
+ </div>
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+
+ {selected && selectedPride.length > 0 && (
+ <div className={s.statusBox}>
+ <p className={s.smallMuted}>Current identities:</p>
+ <div className={s.chipRow}>
+ {selectedPride.map((identity) => (
+ <span key={identity} className={s.chip}>
+ <PrideSwatch label={identity} />
+ <span style={{ margin: "0 0.35rem" }}>{identity}</span>
+ <button
+ type="button"
+ onClick={() => runChange(selected.name ?? "", identity, "remove")}
+ className={s.chipRemove}
+ title={`Remove ${identity}`}
+ disabled={setPride.isPending}
+ >
+ ×
+ </button>
+ </span>
+ ))}
+ </div>
+ </div>
+ )}
+
+ {selected && (
+ <div className={s.fieldBlock}>
+ <Label>Add an identity</Label>
+ <div className={s.chipRow}>
+ {PRIDE_FLAGS.filter((flag) => !selectedPride.includes(flag.label)).map((flag) => (
+ <button
+ key={flag.label}
+ type="button"
+ onClick={() => runChange(selected.name ?? "", flag.label, "add")}
+ className={s.chip}
+ style={{
+ cursor: "pointer",
+ border: "none"
+ }}
+ disabled={setPride.isPending}
+ >
+ <PrideSwatch label={flag.label} />
+ <span style={{ marginLeft: "0.35rem" }}>{flag.label}</span>
+ </button>
+ ))}
+ </div>
+ </div>
+ )}
+ </CardContent>
+ </Card>
+
+ <Card>
+ <CardHeader>
+ <CardTitle>All Members</CardTitle>
+ <CardDescription>
+ {members.filter((member) => member.pride && member.pride.length > 0).length} member(s)
+ with pride identities
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className={s.listStack}>
+ {members.map((member) => (
+ <div
+ key={member.id}
+ onClick={() => setSelectedMember(member.name ?? "")}
+ className={s.memberRow}
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={s.userAvatar}
+ onError={(event) => {
+ (event.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ <div className={s.userInfo}>
+ <p className={s.userName}>{member.display_name || member.name}</p>
+ {member.pride && member.pride.length > 0 ? (
+ <div className={s.chipRow} style={{ marginTop: "0.5rem" }}>
+ {member.pride.map((identity) => (
+ <span key={identity} className={s.chip}>
+ <PrideSwatch label={identity} />
+ <span style={{ marginLeft: "0.35rem" }}>{identity}</span>
+ </span>
+ ))}
+ </div>
+ ) : (
+ <p className={s.smallMuted}>No pride identities</p>
+ )}
+ </div>
+ </div>
+ ))}
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+};
+
+export default function PrideManagerPage() {
+ return (
+ <ProtectedRoute ownerRequired>
+ <PrideManager />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/admin/relationships/page.tsx b/src/app/admin/relationships/page.tsx
new file mode 100644
index 0000000..303f87e
--- /dev/null
+++ b/src/app/admin/relationships/page.tsx
@@ -0,0 +1,286 @@
+/* system/src/app/admin/relationships/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useMemo, useState } from "react";
+import Link from "next/link";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import {
+ useMembers,
+ useRelationships,
+ useAddRelationship,
+ useRemoveRelationship,
+ type PluralMember,
+} from "@doughmination/react-api";
+import * as s from "@/styles/admin.css";
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+const RELATIONSHIP_TYPES = ["partner", "spouse", "queerplatonic", "datemate", "crush"];
+
+const RelationshipManager: React.FC = () => {
+ const membersQuery = useMembers();
+ const relationshipsQuery = useRelationships();
+ const addRelationship = useAddRelationship();
+ const removeRelationship = useRemoveRelationship();
+
+ const members = useMemo(() => {
+ const list = membersQuery.data ?? [];
+ return [...list].sort((memberA, memberB) =>
+ (memberA.display_name || memberA.name || "")
+ .toLowerCase()
+ .localeCompare((memberB.display_name || memberB.name || "").toLowerCase()),
+ );
+ }, [membersQuery.data]);
+
+ const memberById = useMemo(() => {
+ const lookup = new Map<string, PluralMember>();
+ for (const member of members) {
+ if (member.id) lookup.set(member.id, member);
+ if (member.name) lookup.set(member.name, member);
+ }
+ return lookup;
+ }, [members]);
+
+ const relationships = relationshipsQuery.data?.relationships ?? [];
+
+ const [memberA, setMemberA] = useState<string>("");
+ const [memberB, setMemberB] = useState<string>("");
+ const [type, setType] = useState<string>("partner");
+ const [since, setSince] = useState<string>("");
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+
+ const labelFor = (identifier: string): string => {
+ const member = memberById.get(identifier);
+ return member?.display_name || member?.name || identifier;
+ };
+
+ const handleAdd = async () => {
+ setMessage(null);
+ if (!memberA || !memberB) {
+ setMessage({
+ type: "error",
+ content: "Pick two members"
+ });
+ return;
+ }
+ if (memberA === memberB) {
+ setMessage({
+ type: "error",
+ content: "Pick two different members"
+ });
+ return;
+ }
+ try {
+ await addRelationship.mutateAsync({
+ memberA,
+ memberB,
+ type,
+ since: since || null,
+ });
+ setMemberA("");
+ setMemberB("");
+ setSince("");
+ setType("partner");
+ setMessage({
+ type: "success",
+ content: "Relationship added!"
+ });
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to add relationship",
+ });
+ }
+ };
+
+ const handleRemove = async (id: string, pairLabel: string) => {
+ if (!window.confirm(`Remove the relationship between ${pairLabel}?`)) return;
+ setMessage(null);
+ try {
+ await removeRelationship.mutateAsync(id);
+ setMessage({
+ type: "success",
+ content: "Relationship removed!"
+ });
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to remove relationship",
+ });
+ }
+ };
+
+ if (membersQuery.isLoading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading...</div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrap}>
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Relationship Manager</h1>
+ <p className={s.pageSubtitle}>Map who is dating who across the system</p>
+ </div>
+ <div className={s.inlineRow}>
+ <Button variant="outline" asChild>
+ <Link href="/relationships">View Map</Link>
+ </Button>
+ <Button variant="outline" asChild>
+ <Link href="/admin/dash">Back to Dashboard</Link>
+ </Button>
+ </div>
+ </div>
+
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ <Card>
+ <CardHeader>
+ <CardTitle>Add Relationship</CardTitle>
+ <CardDescription>Link two members. A member can have many.</CardDescription>
+ </CardHeader>
+ <CardContent className={s.formStack}>
+ <div className={s.fieldBlock}>
+ <Label htmlFor="member-a">First Member</Label>
+ <Select value={memberA} onValueChange={setMemberA}>
+ <SelectTrigger id="member-a">
+ <SelectValue placeholder="Choose a member..." />
+ </SelectTrigger>
+ <SelectContent>
+ {members.map((member) => (
+ <SelectItem key={member.id} value={member.id}>
+ {member.display_name || member.name}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className={s.fieldBlock}>
+ <Label htmlFor="member-b">Second Member</Label>
+ <Select value={memberB} onValueChange={setMemberB}>
+ <SelectTrigger id="member-b">
+ <SelectValue placeholder="Choose a member..." />
+ </SelectTrigger>
+ <SelectContent>
+ {members.map((member) => (
+ <SelectItem key={member.id} value={member.id}>
+ {member.display_name || member.name}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className={s.fieldBlock}>
+ <Label htmlFor="rel-type">Type</Label>
+ <Select value={type} onValueChange={setType}>
+ <SelectTrigger id="rel-type">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {RELATIONSHIP_TYPES.map((option) => (
+ <SelectItem key={option} value={option}>
+ {option}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className={s.fieldBlock}>
+ <Label htmlFor="rel-since">Since (optional)</Label>
+ <Input
+ id="rel-since"
+ type="date"
+ value={since}
+ onChange={(event) => setSince(event.target.value)}
+ />
+ </div>
+
+ <Button
+ onClick={handleAdd}
+ disabled={addRelationship.isPending || !memberA || !memberB}
+ className={s.fullWidth}
+ >
+ {addRelationship.isPending ? "Adding..." : "Add Relationship"}
+ </Button>
+ </CardContent>
+ </Card>
+
+ <Card>
+ <CardHeader>
+ <CardTitle>All Relationships</CardTitle>
+ <CardDescription>
+ {relationships.length} link{relationships.length !== 1 ? "s" : ""}
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ {relationships.length > 0 ? (
+ <div className={s.listStack}>
+ {relationships.map((edge) => {
+ const pairLabel = `${labelFor(edge.members[0])} & ${labelFor(edge.members[1])}`;
+ return (
+ <div key={edge.id} className={s.memberRow}>
+ <div className={s.userInfo}>
+ <p className={s.userName}>{pairLabel}</p>
+ <p className={s.smallMuted}>
+ {edge.type}
+ {edge.since ? ` · since ${edge.since}` : ""}
+ </p>
+ </div>
+ <Button
+ variant="outline"
+ onClick={() => handleRemove(edge.id, pairLabel)}
+ disabled={removeRelationship.isPending}
+ >
+ Remove
+ </Button>
+ </div>
+ );
+ })}
+ </div>
+ ) : (
+ <p className={s.emptyNote}>No relationships yet</p>
+ )}
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+};
+
+export default function RelationshipManagerPage() {
+ return (
+ <ProtectedRoute ownerRequired>
+ <RelationshipManager />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/admin/status/page.tsx b/src/app/admin/status/page.tsx
new file mode 100644
index 0000000..1877491
--- /dev/null
+++ b/src/app/admin/status/page.tsx
@@ -0,0 +1,406 @@
+/* system/src/app/admin/status/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState, useEffect, useMemo } from "react";
+import Link from "next/link";
+import {
+ useMembers,
+ useDoughminationClient,
+ isDoughminationError,
+ type PluralMember,
+} from "@doughmination/react-api";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import * as s from "@/styles/admin.css";
+
+type Member = PluralMember;
+
+const EMOJI_SUGGESTIONS = [
+ "💤", "🎮", "📚", "🎨", "🎵", "💻", "🌙", "☀️",
+ "🍕", "☕", "🎬", "✨", "💭", "😴", "🏃", "🧘",
+];
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+// The package client covers setting a status; clearing it uses a DELETE the
+// client doesn't wrap, so this one endpoint is called inline.
+async function deleteMemberStatus(baseUrl: string, identifier: string): Promise<void> {
+ const token = localStorage.getItem("token");
+ const response = await fetch(
+ `${baseUrl}/plural/members/${encodeURIComponent(identifier)}/status`,
+ {
+ method: "DELETE",
+ headers: token ? { Authorization: `Bearer ${token}` } : {},
+ },
+ );
+
+ if (!response.ok) {
+ const body = await response.json().catch(() => null);
+ throw new Error(body?.detail || body?.error?.message || "Failed to clear status");
+ }
+}
+
+function StatusManager() {
+ const client = useDoughminationClient();
+ const membersQuery = useMembers();
+
+ const members = useMemo(() => {
+ const list = membersQuery.data ?? [];
+ return [...list].sort((a, b) =>
+ (a.display_name || a.name || "")
+ .toLowerCase()
+ .localeCompare((b.display_name || b.name || "").toLowerCase()),
+ );
+ }, [membersQuery.data]);
+
+ const loading = membersQuery.isLoading;
+
+ const [selectedMember, setSelectedMember] = useState<string>("");
+ const [statusText, setStatusText] = useState("");
+ const [emoji, setEmoji] = useState("");
+ const [saving, setSaving] = useState(false);
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+
+ useEffect(() => {
+ if (selectedMember) {
+ const member = members.find((m) => m.name === selectedMember);
+ if (member?.status) {
+ setStatusText(member.status.text);
+ setEmoji(member.status.emoji || "");
+ } else {
+ setStatusText("");
+ setEmoji("");
+ }
+ }
+ }, [selectedMember, members]);
+
+ const handleSubmit = async (e: React.FormEvent) => {
+ e.preventDefault();
+
+ if (!selectedMember) {
+ setMessage({
+ type: "error",
+ content: "Please select a member"
+ });
+ return;
+ }
+
+ if (!statusText.trim()) {
+ setMessage({
+ type: "error",
+ content: "Status text is required"
+ });
+ return;
+ }
+
+ if (statusText.length > 100) {
+ setMessage({
+ type: "error",
+ content: "Status must be ≤ 100 chars"
+ });
+ return;
+ }
+
+ setSaving(true);
+ setMessage(null);
+
+ try {
+ await client.setMemberStatus(selectedMember, {
+ text: statusText.trim(),
+ emoji: emoji || undefined,
+ });
+
+ setMessage({
+ type: "success",
+ content: "Status updated!"
+ });
+ await membersQuery.refetch();
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: isDoughminationError(err) ? err.message : "Failed to update status",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const handleClearStatus = async () => {
+ if (!selectedMember) {
+ setMessage({
+ type: "error",
+ content: "Please select a member"
+ });
+ return;
+ }
+
+ if (!window.confirm(`Clear status for ${selectedMember}?`)) return;
+
+ setSaving(true);
+ setMessage(null);
+
+ try {
+ await deleteMemberStatus(client.baseUrl, selectedMember);
+
+ setStatusText("");
+ setEmoji("");
+ setMessage({
+ type: "success",
+ content: "Status cleared!"
+ });
+ await membersQuery.refetch();
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to clear status",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const getCurrentStatus = () => {
+ if (!selectedMember) return null;
+ return members.find((m) => m.name === selectedMember)?.status;
+ };
+
+ if (loading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading...</div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrapNarrow}>
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Status Manager</h1>
+ <p className={s.pageSubtitle}>Update member status messages</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/admin/dash">Back to Dashboard</Link>
+ </Button>
+ </div>
+
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ <Card>
+ <CardHeader>
+ <CardTitle>Update Status</CardTitle>
+ <CardDescription>Select a member and set their status</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <form onSubmit={handleSubmit} className={s.formStack}>
+ {/* MEMBER SELECT */}
+ <div className={s.fieldBlock}>
+ <Label htmlFor="member-select">Select Member</Label>
+
+ <Select name="member" value={selectedMember} onValueChange={setSelectedMember}>
+ <SelectTrigger id="member-select">
+ <SelectValue placeholder="Choose a member..." />
+ </SelectTrigger>
+
+ <SelectContent>
+ {members.map((member) => (
+ <SelectItem key={member.id} value={member.name ?? ""}>
+ <div className={s.inlineRow}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={
+ member.avatar_url && member.avatar_url.trim() !== ""
+ ? member.avatar_url
+ : FALLBACK_AVATAR
+ }
+ alt={member.display_name || member.name}
+ className={s.memberAvatarSm}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ <span>{member.display_name || member.name}</span>
+ {member.status && <span className={s.smallMuted}>(has status)</span>}
+ </div>
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+
+ {selectedMember && (
+ <>
+ {/* EMOJI */}
+ <div className={s.fieldBlock}>
+ <Label>
+ Emoji (optional)
+ <div className={s.emojiPickerRow}>
+ <Input
+ id="emoji"
+ type="text"
+ value={emoji}
+ onChange={(e) => setEmoji(e.target.value.slice(0, 2))}
+ placeholder="😊"
+ className={s.emojiInput}
+ maxLength={2}
+ />
+
+ <div className={s.emojiGrid}>
+ {EMOJI_SUGGESTIONS.map((sug) => (
+ <button
+ key={sug}
+ type="button"
+ onClick={() => setEmoji(sug)}
+ aria-label={`Select emoji ${sug}`}
+ className={s.emojiButton}
+ >
+ {sug}
+ </button>
+ ))}
+ </div>
+ </div>
+ </Label>
+ </div>
+
+ {/* STATUS TEXT */}
+ <div className={s.fieldBlock}>
+ <Label htmlFor="statusText">Status Text</Label>
+
+ <Input
+ id="statusText"
+ type="text"
+ name="statusText"
+ value={statusText}
+ onChange={(e) => setStatusText(e.target.value)}
+ placeholder="What's happening?"
+ maxLength={100}
+ />
+ <p className={s.smallMutedRight}>{statusText.length}/100 characters</p>
+ </div>
+
+ {/* BUTTONS */}
+ <div className={s.buttonRow}>
+ <Button type="submit" disabled={saving || !statusText.trim()} className={s.flexGrow}>
+ {saving ? "Updating..." : "Update Status"}
+ </Button>
+
+ {getCurrentStatus() && (
+ <Button
+ type="button"
+ variant="destructive"
+ onClick={handleClearStatus}
+ disabled={saving}
+ >
+ Clear
+ </Button>
+ )}
+ </div>
+
+ {/* CURRENT STATUS */}
+ {getCurrentStatus() && (
+ <div className={s.statusBox}>
+ <p className={s.smallMuted}>Current Status:</p>
+
+ <div className={s.inlineRow}>
+ {getCurrentStatus()?.emoji && (
+ <span className={s.emojiLg}>{getCurrentStatus()?.emoji}</span>
+ )}
+ <p className={s.statusBoxText}>{getCurrentStatus()?.text}</p>
+ </div>
+
+ <p className={s.smallMuted}>
+ Updated {new Date(getCurrentStatus()!.updated_at).toLocaleString()}
+ </p>
+ </div>
+ )}
+ </>
+ )}
+ </form>
+ </CardContent>
+ </Card>
+
+ {/* MEMBERS WITH STATUS */}
+ <Card>
+ <CardHeader>
+ <CardTitle>Members with Active Status</CardTitle>
+ <CardDescription>
+ {members.filter((m) => m.status).length} member(s) have status set
+ </CardDescription>
+ </CardHeader>
+
+ <CardContent>
+ {members.filter((m) => m.status).length > 0 ? (
+ <div className={s.listStack}>
+ {members
+ .filter((m) => m.status)
+ .map((member) => (
+ <div
+ key={member.id}
+ onClick={() => setSelectedMember(member.name ?? "")}
+ className={s.memberRow}
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={
+ member.avatar_url && member.avatar_url.trim() !== ""
+ ? member.avatar_url
+ : FALLBACK_AVATAR
+ }
+ alt={member.display_name || member.name}
+ className={s.memberAvatarMd}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+
+ <div className={s.userInfo}>
+ <p className={s.memberRowName}>{member.display_name || member.name}</p>
+
+ <div className={s.inlineRowTight}>
+ {member.status?.emoji && <span>{member.status.emoji}</span>}
+ <p className={`${s.smallMuted} ${s.truncate}`}>{member.status?.text}</p>
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ ) : (
+ <p className={s.emptyNote}>No members have status set</p>
+ )}
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+}
+
+export default function StatusManagerPage() {
+ return (
+ <ProtectedRoute adminRequired>
+ <StatusManager />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/admin/switch/page.tsx b/src/app/admin/switch/page.tsx
new file mode 100644
index 0000000..eb4763f
--- /dev/null
+++ b/src/app/admin/switch/page.tsx
@@ -0,0 +1,379 @@
+/* system/src/app/admin/switch/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState, useEffect, useMemo, useRef } from "react";
+import Link from "next/link";
+import {
+ useMembers,
+ useFronters,
+ useDoughminationClient,
+ isDoughminationError,
+ type PluralMember,
+} from "@doughmination/react-api";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import { Badge } from "@/components/ui/badge";
+import { Checkbox } from "@/components/ui/checkbox";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import { cn } from "@/lib/utils";
+import * as s from "@/styles/admin.css";
+import * as sw from "./switch.css";
+
+type Member = PluralMember;
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+const SwitchManager: React.FC = () => {
+ const client = useDoughminationClient();
+ const membersQuery = useMembers();
+ const frontersQuery = useFronters();
+
+ const members = useMemo(() => {
+ const list = membersQuery.data ?? [];
+ return [...list].sort((a, b) =>
+ (a.display_name || a.name || "")
+ .toLowerCase()
+ .localeCompare((b.display_name || b.name || "").toLowerCase()),
+ );
+ }, [membersQuery.data]);
+
+ const currentFronters = frontersQuery.data?.members ?? [];
+ const loading = membersQuery.isLoading || frontersQuery.isLoading;
+
+ const [selectedMembers, setSelectedMembers] = useState<Set<string>>(new Set());
+ const [searchQuery, setSearchQuery] = useState("");
+ const [saving, setSaving] = useState(false);
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+
+ // Pre-populate the selection with the current fronters, once.
+ const seeded = useRef(false);
+ useEffect(() => {
+ if (!seeded.current && frontersQuery.data) {
+ seeded.current = true;
+ setSelectedMembers(new Set(frontersQuery.data.members?.map((member) => member.id) || []));
+ }
+ }, [frontersQuery.data]);
+
+ const handleToggleMember = (memberId: string) => {
+ const newSelected = new Set(selectedMembers);
+
+ if (newSelected.has(memberId)) {
+ newSelected.delete(memberId);
+ } else {
+ newSelected.add(memberId);
+ }
+
+ setSelectedMembers(newSelected);
+ };
+
+ const handleApplySwitch = async () => {
+ if (selectedMembers.size === 0) {
+ setMessage({
+ type: "error",
+ content: "Please select at least one member"
+ });
+ return;
+ }
+
+ setSaving(true);
+ setMessage(null);
+
+ try {
+ const data = await client.multiSwitch(Array.from(selectedMembers));
+ const count = data.count ?? selectedMembers.size;
+ setMessage({
+ type: "success",
+ content: `Successfully switched to ${count} member${count !== 1 ? "s" : ""}!`,
+ });
+
+ // Refresh fronters (also arrives live over the socket).
+ await frontersQuery.refetch();
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: isDoughminationError(err) ? err.message : "Failed to switch fronters",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const filteredMembers = members.filter(
+ (m) =>
+ (m.display_name || m.name || "").toLowerCase().includes(searchQuery.toLowerCase()) ||
+ m.tags?.some((tag) => tag.toLowerCase().includes(searchQuery.toLowerCase())),
+ );
+
+ const handleSelectAll = () => {
+ const allMemberIds = new Set(filteredMembers.map((m) => m.id));
+ setSelectedMembers(allMemberIds);
+ };
+
+ const handleClearAll = () => {
+ setSelectedMembers(new Set());
+ };
+
+ const isCurrentlyFronting = (memberId: string): boolean => {
+ return currentFronters.some((f) => f.id === memberId);
+ };
+
+ const getSelectedMembersList = () => {
+ return members.filter((m) => selectedMembers.has(m.id));
+ };
+
+ const hasChanges = () => {
+ // Compare current fronters with selected members
+ const currentIds = new Set(currentFronters.map((m) => m.id));
+
+ if (currentIds.size !== selectedMembers.size) return true;
+
+ for (const id of selectedMembers) {
+ if (!currentIds.has(id)) return true;
+ }
+
+ return false;
+ };
+
+ if (loading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading...</div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={sw.wrapWide}>
+ {/* Header */}
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Switch Manager</h1>
+ <p className={s.pageSubtitle}>Manage fronting members</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/admin/dash">Back to Dashboard</Link>
+ </Button>
+ </div>
+
+ {/* Messages */}
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ <div className={sw.columns}>
+ {/* Left Column - Member Selection */}
+ <div className={sw.colStack}>
+ {/* Search and Actions */}
+ <Card>
+ <CardContent className={cn(s.cardTopPad, s.formStack)}>
+ <Input
+ type="text"
+ placeholder="Search members..."
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ />
+
+ <div className={sw.searchActions}>
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={handleSelectAll}
+ disabled={filteredMembers.length === 0}
+ >
+ Select All
+ </Button>
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={handleClearAll}
+ disabled={selectedMembers.size === 0}
+ >
+ Clear All
+ </Button>
+ <div className={sw.selectedCount}>{selectedMembers.size} selected</div>
+ </div>
+ </CardContent>
+ </Card>
+
+ {/* Member List */}
+ <Card>
+ <CardHeader>
+ <CardTitle>Select Members</CardTitle>
+ <CardDescription>Choose members to front</CardDescription>
+ </CardHeader>
+ <CardContent>
+ {filteredMembers.length > 0 ? (
+ <div className={sw.memberScroll}>
+ {filteredMembers.map((member) => {
+ const isSelected = selectedMembers.has(member.id);
+ const isFronting = isCurrentlyFronting(member.id);
+
+ return (
+ <div
+ key={member.id}
+ onClick={() => handleToggleMember(member.id)}
+ className={cn(sw.memberOption, isSelected && sw.memberOptionSelected)}
+ >
+ <Checkbox
+ checked={isSelected}
+ onCheckedChange={() => handleToggleMember(member.id)}
+ onClick={(e) => e.stopPropagation()}
+ />
+
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={s.memberAvatarMd}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+
+ <div className={s.userInfo}>
+ <div className={s.userNameRow}>
+ <p className={s.userName}>{member.display_name || member.name}</p>
+ {isFronting && (
+ <Badge variant="secondary" className={s.smallBadge}>
+ Currently Fronting
+ </Badge>
+ )}
+ </div>
+ {member.pronouns && (
+ <p className={s.smallMuted}>{member.pronouns}</p>
+ )}
+ {member.tags && member.tags.length > 0 && (
+ <div className={sw.tagRow}>
+ {member.tags.slice(0, 3).map((tag, idx) => (
+ <span key={idx} className={sw.tagChip}>
+ {tag}
+ </span>
+ ))}
+ {member.tags.length > 3 && (
+ <span className={s.smallMuted}>+{member.tags.length - 3}</span>
+ )}
+ </div>
+ )}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ ) : (
+ <p className={s.emptyNote}>
+ {searchQuery ? "No members found matching your search" : "No members available"}
+ </p>
+ )}
+ </CardContent>
+ </Card>
+ </div>
+
+ {/* Right Column - Selected Members & Apply */}
+ <div className={sw.colStack}>
+ {/* Currently Fronting */}
+ <Card>
+ <CardHeader>
+ <CardTitle>Currently Fronting</CardTitle>
+ </CardHeader>
+ <CardContent>
+ {currentFronters.length > 0 ? (
+ <div className={sw.sideList}>
+ {currentFronters.map((member) => (
+ <div key={member.id} className={sw.sideRow}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={sw.sideAvatar}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ <span className={sw.sideName}>{member.display_name || member.name}</span>
+ </div>
+ ))}
+ </div>
+ ) : (
+ <p className={s.emptyNote}>No one currently fronting</p>
+ )}
+ </CardContent>
+ </Card>
+
+ {/* Selected Members */}
+ <Card>
+ <CardHeader>
+ <CardTitle>Selected Members</CardTitle>
+ <CardDescription>
+ {selectedMembers.size} member{selectedMembers.size !== 1 ? "s" : ""} selected
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ {selectedMembers.size > 0 ? (
+ <div className={sw.sideList}>
+ {getSelectedMembersList().map((member) => (
+ <div key={member.id} className={sw.sideRow}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={sw.sideAvatar}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ <span className={sw.sideName}>{member.display_name || member.name}</span>
+ <button
+ onClick={() => handleToggleMember(member.id)}
+ className={sw.removeBtn}
+ title="Remove"
+ >
+ ×
+ </button>
+ </div>
+ ))}
+ </div>
+ ) : (
+ <p className={s.emptyNote}>No members selected</p>
+ )}
+ </CardContent>
+ </Card>
+
+ {/* Apply Button */}
+ <Button
+ onClick={handleApplySwitch}
+ disabled={saving || selectedMembers.size === 0 || !hasChanges()}
+ className={s.fullWidth}
+ size="lg"
+ >
+ {saving ? "Switching..." : hasChanges() ? "Apply Switch" : "No Changes"}
+ </Button>
+
+ {!hasChanges() && selectedMembers.size > 0 && (
+ <p className={sw.centerNoteXs}>Selected members match current fronters</p>
+ )}
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default function SwitchManagerPage() {
+ return (
+ <ProtectedRoute adminRequired>
+ <SwitchManager />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/admin/switch/switch.css.ts b/src/app/admin/switch/switch.css.ts
new file mode 100644
index 0000000..1d29f9c
--- /dev/null
+++ b/src/app/admin/switch/switch.css.ts
@@ -0,0 +1,136 @@
+/* system/src/app/admin/switch/switch.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import { style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+export const wrapWide = style({
+ maxWidth: "72rem",
+ margin: "0 auto",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1.5rem",
+});
+
+export const columns = style({
+ display: "grid",
+ gridTemplateColumns: "1fr",
+ gap: "1.5rem",
+ "@media": {
+ "screen and (min-width: 1024px)": {
+ gridTemplateColumns: "2fr 1fr",
+ },
+ },
+});
+
+export const colStack = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+});
+
+export const searchActions = style({
+ display: "flex",
+ gap: "0.5rem",
+});
+
+export const selectedCount = style({
+ marginLeft: "auto",
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ display: "flex",
+ alignItems: "center",
+});
+
+export const memberScroll = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.5rem",
+ maxHeight: "600px",
+ overflowY: "auto",
+ paddingRight: "0.5rem",
+});
+
+export const memberOption = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.75rem",
+ padding: "0.75rem",
+ borderRadius: "0.5rem",
+ border: `2px solid ${vars.surface}`,
+ cursor: "pointer",
+ transition: "all 0.15s ease",
+ ":hover": {
+ borderColor: `color-mix(in srgb, ${vars.accent} 50%, transparent)`,
+ },
+});
+
+export const memberOptionSelected = style({
+ borderColor: `${vars.accent} !important` as unknown as string,
+ backgroundColor: vars.accent,
+});
+
+export const tagChip = style({
+ fontSize: "0.75rem",
+ padding: "0.125rem 0.5rem",
+ borderRadius: "9999px",
+ backgroundColor: vars.surface,
+ color: vars.text,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const tagRow = style({
+ display: "flex",
+ flexWrap: "wrap",
+ gap: "0.25rem",
+ marginTop: "0.25rem",
+});
+
+export const sideList = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.5rem",
+});
+
+export const sideRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.5rem",
+});
+
+export const sideAvatar = style({
+ width: "2rem",
+ height: "2rem",
+ borderRadius: "9999px",
+ objectFit: "cover",
+});
+
+export const sideName = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "0.875rem",
+ flex: 1,
+});
+
+export const removeBtn = style({
+ color: vars.danger,
+ background: "transparent",
+ border: "none",
+ cursor: "pointer",
+ fontSize: "0.875rem",
+ ":hover": { opacity: 0.8 },
+});
+
+export const centerNoteXs = style({
+ fontSize: "0.75rem",
+ textAlign: "center",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
diff --git a/src/app/admin/tags/page.tsx b/src/app/admin/tags/page.tsx
new file mode 100644
index 0000000..bea71ae
--- /dev/null
+++ b/src/app/admin/tags/page.tsx
@@ -0,0 +1,421 @@
+/* system/src/app/admin/tags/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState, useMemo } from "react";
+import Link from "next/link";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import { Badge } from "@/components/ui/badge";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import {
+ useMembers,
+ useDoughminationClient,
+ type PluralMember,
+} from "@doughmination/react-api";
+import * as s from "@/styles/admin.css";
+
+type Member = PluralMember;
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+// Member-tag add/remove aren't wrapped by the package client, so these two
+// endpoints are called inline off the client's base URL.
+async function addMemberTag(baseUrl: string, identifier: string, tag: string): Promise<void> {
+ const token = localStorage.getItem("token");
+ const response = await fetch(`${baseUrl}/plural/member-tags/${encodeURIComponent(identifier)}/add`, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ ...(token ? { Authorization: `Bearer ${token}` } : {}),
+ },
+ body: JSON.stringify({ tag }),
+ });
+
+ if (!response.ok) {
+ const body = await response.json().catch(() => null);
+ throw new Error(body?.detail || body?.error?.message || "Failed to add tag");
+ }
+}
+
+async function removeMemberTag(baseUrl: string, identifier: string, tag: string): Promise<void> {
+ const token = localStorage.getItem("token");
+ const response = await fetch(
+ `${baseUrl}/plural/member-tags/${encodeURIComponent(identifier)}/${encodeURIComponent(tag)}`,
+ {
+ method: "DELETE",
+ headers: token ? { Authorization: `Bearer ${token}` } : {},
+ },
+ );
+
+ if (!response.ok) {
+ const body = await response.json().catch(() => null);
+ throw new Error(body?.detail || body?.error?.message || "Failed to remove tag");
+ }
+}
+
+const TagManager: React.FC = () => {
+ const client = useDoughminationClient();
+ const membersQuery = useMembers();
+
+ const members = useMemo(() => {
+ const list = membersQuery.data ?? [];
+ return [...list].sort((a, b) =>
+ (a.display_name || a.name || "")
+ .toLowerCase()
+ .localeCompare((b.display_name || b.name || "").toLowerCase()),
+ );
+ }, [membersQuery.data]);
+
+ const loading = membersQuery.isLoading;
+
+ const [selectedMember, setSelectedMember] = useState<string>("");
+ const [newTag, setNewTag] = useState("");
+ const [saving, setSaving] = useState(false);
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+ const [searchQuery, setSearchQuery] = useState("");
+
+ // Get all unique tags from all members
+ const allTags = Array.from(new Set(members.flatMap((m) => m.tags || []))).sort((a, b) =>
+ a.localeCompare(b),
+ );
+
+ const handleAddTag = async () => {
+ if (!selectedMember) {
+ setMessage({
+ type: "error",
+ content: "Please select a member"
+ });
+ return;
+ }
+
+ if (!newTag.trim()) {
+ setMessage({
+ type: "error",
+ content: "Tag cannot be empty"
+ });
+ return;
+ }
+
+ setSaving(true);
+ setMessage(null);
+
+ try {
+ await addMemberTag(client.baseUrl, selectedMember, newTag.trim());
+
+ setNewTag("");
+ setMessage({
+ type: "success",
+ content: "Tag added successfully!"
+ });
+ await membersQuery.refetch();
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to add tag",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const handleRemoveTag = async (memberName: string, tag: string) => {
+ if (!window.confirm(`Remove tag "${tag}" from ${memberName}?`)) return;
+
+ setSaving(true);
+ setMessage(null);
+
+ try {
+ await removeMemberTag(client.baseUrl, memberName, tag);
+
+ setMessage({
+ type: "success",
+ content: "Tag removed successfully!"
+ });
+ await membersQuery.refetch();
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to remove tag",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const getSelectedMember = () => {
+ return members.find((m) => m.name === selectedMember);
+ };
+
+ const filteredMembers = members.filter(
+ (m) =>
+ (m.display_name || m.name || "").toLowerCase().includes(searchQuery.toLowerCase()) ||
+ m.tags?.some((tag) => tag.toLowerCase().includes(searchQuery.toLowerCase())),
+ );
+
+ if (loading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading...</div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrap}>
+ {/* Header */}
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Tag Manager</h1>
+ <p className={s.pageSubtitle}>Manage member tags and sub-systems</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/admin/dash">Back to Dashboard</Link>
+ </Button>
+ </div>
+
+ {/* Messages */}
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ {/* Add Tag Form */}
+ <Card>
+ <CardHeader>
+ <CardTitle>Add Tag</CardTitle>
+ <CardDescription>Select a member and add a tag</CardDescription>
+ </CardHeader>
+ <CardContent className={s.formStack}>
+ {/* Member Selection */}
+ <div className={s.fieldBlock}>
+ <Label htmlFor="member-select">Select Member</Label>
+ <Select value={selectedMember} onValueChange={setSelectedMember}>
+ <SelectTrigger id="member-select">
+ <SelectValue placeholder="Choose a member..." />
+ </SelectTrigger>
+ <SelectContent>
+ {members.map((member) => (
+ <SelectItem key={member.id} value={member.name ?? ""}>
+ <div className={s.inlineRow}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={s.memberAvatarSm}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ <span>{member.display_name || member.name}</span>
+ {member.tags && member.tags.length > 0 && (
+ <span className={s.smallMuted}>
+ ({member.tags.length} tag{member.tags.length !== 1 ? "s" : ""})
+ </span>
+ )}
+ </div>
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+
+ {/* Current Tags Display */}
+ {selectedMember && getSelectedMember() && (
+ <div className={s.statusBox}>
+ <p className={s.smallMuted}>Current Tags:</p>
+ {getSelectedMember()?.tags && getSelectedMember()!.tags!.length > 0 ? (
+ <div className={s.chipRow}>
+ {getSelectedMember()!.tags!.map((tag, idx) => (
+ <Badge key={idx} variant="secondary" className={s.smallBadge}>
+ {tag}
+ </Badge>
+ ))}
+ </div>
+ ) : (
+ <p className={s.smallMuted}>No tags assigned</p>
+ )}
+ </div>
+ )}
+
+ {/* New Tag Input */}
+ {selectedMember && (
+ <>
+ <div className={s.fieldBlock}>
+ <Label htmlFor="new-tag">New Tag</Label>
+ <Input
+ id="new-tag"
+ type="text"
+ value={newTag}
+ onChange={(e) => setNewTag(e.target.value)}
+ placeholder="Enter tag name..."
+ onKeyDown={(e) => {
+ if (e.key === "Enter") {
+ e.preventDefault();
+ handleAddTag();
+ }
+ }}
+ />
+ </div>
+
+ {/* Existing Tags Quick Add */}
+ {allTags.length > 0 && (
+ <div className={s.fieldBlock}>
+ <Label>Or select from existing tags:</Label>
+ <div className={s.chipRow}>
+ {allTags.map((tag) => (
+ <button
+ key={tag}
+ type="button"
+ onClick={() => setNewTag(tag)}
+ className={s.chip}
+ style={{
+ cursor: "pointer",
+ border: "none"
+ }}
+ >
+ {tag}
+ </button>
+ ))}
+ </div>
+ </div>
+ )}
+
+ <Button onClick={handleAddTag} disabled={saving || !newTag.trim()} className={s.fullWidth}>
+ {saving ? "Adding..." : "Add Tag"}
+ </Button>
+ </>
+ )}
+ </CardContent>
+ </Card>
+
+ {/* All Members with Tags */}
+ <Card>
+ <CardHeader>
+ <CardTitle>All Members</CardTitle>
+ <CardDescription>
+ {members.filter((m) => m.tags && m.tags.length > 0).length} member(s) with tags
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ {/* Search */}
+ <div style={{ marginBottom: "1rem" }}>
+ <Input
+ type="text"
+ placeholder="Search members or tags..."
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ />
+ </div>
+
+ {/* Members List */}
+ {filteredMembers.length > 0 ? (
+ <div className={s.listStack}>
+ {filteredMembers.map((member) => (
+ <div
+ key={member.id}
+ onClick={() => setSelectedMember(member.name ?? "")}
+ className={s.memberRow}
+ >
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={s.userAvatar}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+
+ <div className={s.userInfo}>
+ <p className={s.userName}>{member.display_name || member.name}</p>
+
+ {member.tags && member.tags.length > 0 ? (
+ <div className={s.chipRow} style={{ marginTop: "0.5rem" }}>
+ {member.tags.map((tag, idx) => (
+ <span key={idx} className={s.chip}>
+ {tag}
+ <button
+ onClick={(e) => {
+ e.stopPropagation();
+ handleRemoveTag(member.name ?? "", tag);
+ }}
+ className={s.chipRemove}
+ title={`Remove ${tag}`}
+ >
+ ×
+ </button>
+ </span>
+ ))}
+ </div>
+ ) : (
+ <p className={s.smallMuted}>No tags</p>
+ )}
+ </div>
+ </div>
+ ))}
+ </div>
+ ) : (
+ <p className={s.emptyNote}>
+ {searchQuery ? "No members found matching your search" : "No members available"}
+ </p>
+ )}
+ </CardContent>
+ </Card>
+
+ {/* Tag Statistics */}
+ {allTags.length > 0 && (
+ <Card>
+ <CardHeader>
+ <CardTitle>Tag Statistics</CardTitle>
+ <CardDescription>
+ {allTags.length} unique tag{allTags.length !== 1 ? "s" : ""}
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className={s.chipRow}>
+ {allTags.map((tag) => {
+ const count = members.filter((m) => m.tags?.includes(tag)).length;
+ return (
+ <div key={tag} className={s.statBox} style={{ padding: "0.5rem 0.75rem" }}>
+ <Badge variant="secondary" className={s.smallBadge}>
+ {tag}
+ </Badge>{" "}
+ <span className={s.smallMuted}>×{count}</span>
+ </div>
+ );
+ })}
+ </div>
+ </CardContent>
+ </Card>
+ )}
+ </div>
+ </div>
+ );
+};
+
+export default function TagManagerPage() {
+ return (
+ <ProtectedRoute adminRequired>
+ <TagManager />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/fronting/page.tsx b/src/app/fronting/page.tsx
new file mode 100644
index 0000000..f2c2ef2
--- /dev/null
+++ b/src/app/fronting/page.tsx
@@ -0,0 +1,11 @@
+/* system/src/app/fronting/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import HomePage from "@/components/HomePage";
+
+export default function Fronting() {
+ return <HomePage />;
+}
diff --git a/src/app/home.css.ts b/src/app/home.css.ts
new file mode 100644
index 0000000..28691bc
--- /dev/null
+++ b/src/app/home.css.ts
@@ -0,0 +1,571 @@
+/* system/src/app/home.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ *
+ * Styles for the home / fronting page (formerly Tailwind utility classes on
+ * pages/Index.tsx).
+ */
+
+import { globalStyle, style, keyframes } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+// Shared trans-flag gradient title, uniform across every site.
+const transSlide = keyframes({
+ to: { backgroundPositionX: "200%" },
+});
+
+const mix = (color: string, pct: number) =>
+ `color-mix(in srgb, ${color} ${pct}%, transparent)`;
+
+export const loadingWrap = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ minHeight: "100vh",
+});
+
+export const loadingText = style({
+ fontSize: "1.5rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ color: vars.text,
+});
+
+export const page = style({
+ minHeight: "100vh",
+ backgroundColor: vars.bg,
+ color: vars.text,
+ transition: "background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease",
+});
+
+export const wsBanner = style({
+ position: "fixed",
+ top: 0,
+ left: 0,
+ right: 0,
+ zIndex: 50,
+ backgroundColor: "#eab308",
+ color: "#000",
+ textAlign: "center",
+ padding: "0.5rem 0",
+ fontSize: "0.875rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+/* Header */
+export const header = style({
+ position: "fixed",
+ top: 0,
+ left: 0,
+ width: "100%",
+ zIndex: 40,
+ backgroundColor: mix(vars.bg, 90),
+ backdropFilter: "blur(4px)",
+ WebkitBackdropFilter: "blur(4px)",
+ borderBottom: `1px solid ${vars.surface}`,
+ transition: "background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease",
+});
+
+export const headerInner = style({
+ width: "100%",
+ margin: "0 auto",
+ padding: "0.75rem 1rem",
+ display: "flex",
+ justifyContent: "space-between",
+ alignItems: "center",
+});
+
+export const logoLink = style({
+ fontSize: "1.5rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+ color: vars.accent,
+ textDecoration: "none",
+ transition: "color 0.15s ease",
+ ":hover": { color: mix(vars.accent, 80) },
+});
+
+export const navUser = style({
+ fontSize: "0.875rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ color: vars.textMuted,
+ marginRight: "0.5rem",
+});
+
+export const navUserName = style({
+ color: vars.text,
+ fontWeight: 600,
+});
+
+export const mobileMenuBtn = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ padding: "0.5rem",
+ borderRadius: "0.375rem",
+ backgroundColor: vars.surface,
+ color: vars.text,
+ border: "none",
+ cursor: "pointer",
+ transition: "color 0.15s ease, background-color 0.15s ease",
+ ":hover": {
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ },
+ "@media": {
+ "screen and (min-width: 768px)": { display: "none" },
+ },
+});
+
+export const icon24 = style({
+ width: "1.5rem",
+ height: "1.5rem"
+});
+export const icon20 = style({
+ width: "1.25rem",
+ height: "1.25rem"
+});
+
+/* Mobile menu */
+export const mobileOverlay = style({
+ position: "fixed",
+ inset: 0,
+ zIndex: 30,
+ backgroundColor: "rgb(0 0 0 / 0.5)",
+ "@media": {
+ "screen and (min-width: 768px)": { display: "none" },
+ },
+});
+
+export const mobilePanel = style({
+ position: "absolute",
+ right: 0,
+ top: "61px",
+ width: "16rem",
+ maxWidth: "80vw",
+ height: "100vh",
+ boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
+ backgroundColor: mix(vars.bg, 95),
+ backdropFilter: "blur(4px)",
+ WebkitBackdropFilter: "blur(4px)",
+ borderLeft: `1px solid ${vars.surface}`,
+});
+
+export const mobileList = style({
+ display: "flex",
+ flexDirection: "column",
+ padding: "1rem",
+ gap: "0.75rem",
+ listStyle: "none",
+});
+
+export const mobileUser = style({
+ padding: "0.5rem 1rem",
+ fontSize: "0.875rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ color: vars.textMuted,
+ borderBottom: `1px solid ${vars.surface}`,
+});
+
+export const mobileUserName = style({
+ color: vars.text,
+ fontWeight: 600,
+ display: "block",
+ marginTop: "0.25rem",
+});
+
+export const mobileLink = style({
+ display: "block",
+ width: "100%",
+ padding: "0.75rem 1rem",
+ borderRadius: "0.5rem",
+ fontSize: "0.875rem",
+ textAlign: "center",
+ transition: "all 0.15s ease",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ backgroundColor: vars.surface,
+ color: vars.text,
+ textDecoration: "none",
+ border: "none",
+ cursor: "pointer",
+ ":hover": {
+ backgroundColor: vars.accent,
+ color: vars.accentAlt,
+ },
+});
+
+export const mobileLogout = style({
+ width: "100%",
+ padding: "0.75rem 1rem",
+ backgroundColor: vars.danger,
+ color: vars.bg,
+ borderRadius: "0.5rem",
+ fontSize: "0.875rem",
+ textAlign: "center",
+ transition: "background-color 0.15s ease",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ border: "none",
+ cursor: "pointer",
+ ":hover": { backgroundColor: mix(vars.danger, 80) },
+});
+
+export const headerSpacer = style({ height: "5rem" });
+
+/* Main content */
+export const main = style({
+ width: "100%",
+ margin: "0 auto",
+ padding: "1rem 0.5rem 0",
+ flexGrow: 1,
+ "@media": {
+ "screen and (min-width: 640px)": {
+ paddingLeft: "1rem",
+ paddingRight: "1rem"
+ },
+ },
+});
+
+export const contentWrapper = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.5rem",
+ "@media": {
+ "screen and (min-width: 640px)": { gap: "1rem" },
+ },
+});
+
+export const pageTitle = style({
+ fontSize: "2.25rem",
+ fontWeight: 700,
+ marginBottom: "2rem",
+ textAlign: "center",
+ fontFamily: vars.fontComic,
+ letterSpacing: "-0.02em",
+ backgroundImage:
+ "linear-gradient(90deg, #5BCEFA, #F5A9B8, #ffffff, #F5A9B8, #5BCEFA, #5BCEFA)",
+ backgroundSize: "200% 100%",
+ WebkitBackgroundClip: "text",
+ backgroundClip: "text",
+ color: "transparent",
+ animation: `${transSlide} 6s linear infinite`,
+ "@media": {
+ "(prefers-reduced-motion: reduce)": {
+ animation: "none",
+ },
+ },
+});
+
+/* Mental state banner extras */
+export const bannerRow = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ gap: "0.75rem",
+});
+
+export const bannerIcon = style({ fontSize: "1.5rem" });
+
+export const bannerNotes = style({
+ marginTop: "0.5rem",
+ fontFamily: vars.fontComic,
+ fontSize: "0.875rem",
+ opacity: 0.8,
+});
+
+export const bannerUpdated = style({
+ display: "block",
+ marginTop: "0.5rem",
+ opacity: 0.75,
+ textAlign: "center",
+ fontFamily: vars.fontComic,
+});
+
+/* Currently fronting */
+export const frontingSection = style({
+ marginBottom: "1.5rem",
+ padding: "1rem",
+ borderBottom: `1px solid ${vars.surface}`,
+});
+
+export const frontingTitle = style({
+ fontSize: "1.25rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ marginBottom: "0.75rem",
+ textAlign: "center",
+});
+
+export const frontingRow = style({
+ display: "flex",
+ flexWrap: "wrap",
+ gap: "1rem",
+ justifyContent: "center",
+});
+
+export const frontingItem = style({
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "center",
+ position: "relative",
+});
+
+/* Thought-bubble status */
+export const bubbleWrap = style({
+ position: "absolute",
+ top: "-2.5rem",
+ left: "50%",
+ transform: "translateX(-50%)",
+ zIndex: 20,
+});
+
+export const bubbleWrapGrid = style([bubbleWrap, { top: "-3rem" }]);
+
+export const bubble = style({
+ position: "relative",
+ backgroundColor: vars.bg,
+ border: `2px solid ${vars.surface}`,
+ borderRadius: "30px",
+ padding: "0.375rem 0.75rem",
+ boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
+ maxWidth: "140px",
+});
+
+export const bubbleRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.375rem",
+});
+
+export const bubbleEmoji = style({ fontSize: "0.875rem" });
+
+export const bubbleText = style({
+ fontSize: "0.75rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ color: vars.text,
+ overflow: "hidden",
+ textOverflow: "ellipsis",
+ whiteSpace: "nowrap",
+});
+
+export const bubbleDotWrapLarge = style({
+ position: "absolute",
+ bottom: "-1.25rem",
+ left: "50%",
+ transform: "translateX(calc(-50% + 0.5rem))",
+});
+
+export const bubbleDotWrapSmall = style({
+ position: "absolute",
+ bottom: "-1.75rem",
+ left: "50%",
+ transform: "translateX(calc(-50% + 0.75rem))",
+});
+
+export const bubbleDotLarge = style({
+ width: "0.625rem",
+ height: "0.625rem",
+ backgroundColor: vars.bg,
+ border: `2px solid ${vars.surface}`,
+ borderRadius: "9999px",
+ boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1)",
+});
+
+export const bubbleDotSmall = style({
+ width: "0.375rem",
+ height: "0.375rem",
+ backgroundColor: vars.bg,
+ border: `1px solid ${vars.surface}`,
+ borderRadius: "9999px",
+ boxShadow: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
+});
+
+/* Avatars & member cards */
+export const avatarImg = style({
+ width: "4rem",
+ height: "4rem",
+ borderRadius: "9999px",
+ objectFit: "cover",
+ borderWidth: "3px",
+ borderStyle: "solid",
+ transition: "all 0.15s ease",
+ cursor: "pointer",
+ ":hover": { transform: "scale(1.05)" },
+});
+
+export const avatarImgGrid = style([
+ avatarImg,
+ {
+ margin: "0 auto 0.5rem",
+ display: "block",
+ },
+]);
+
+export const frontingNameWrap = style({
+ marginTop: "0.5rem",
+ textAlign: "center",
+ maxWidth: "120px",
+});
+
+export const memberLink = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "0.875rem",
+ transition: "color 0.15s ease",
+ display: "block",
+ textDecoration: "none",
+});
+
+export const memberCardName = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "0.875rem",
+ lineHeight: 1.25,
+ margin: 0,
+ transition: "color 0.15s ease",
+ /* Names wrap to at most two lines; the reserved height keeps every card in
+ a row the same height whether or not the name wraps. */
+ minHeight: "2.5em",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ textAlign: "center",
+});
+
+export const memberPronouns = style({
+ fontSize: "0.75rem",
+ color: vars.textMuted,
+ marginTop: "0.25rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const tagRow = style({
+ display: "flex",
+ flexWrap: "wrap",
+ gap: "0.25rem",
+ marginTop: "0.25rem",
+ justifyContent: "center",
+});
+
+export const tagRowSpaced = style([tagRow, { marginTop: "0.5rem" }]);
+
+export const tagChip = style({
+ fontSize: "0.75rem",
+ padding: "0.125rem 0.5rem",
+ borderRadius: "9999px",
+ backgroundColor: vars.surface,
+ color: vars.text,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const tagMore = style({
+ fontSize: "0.75rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+/* Search & filters */
+export const filtersBlock = style({
+ marginBottom: "1.5rem",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+});
+
+export const filterRow = style({
+ display: "flex",
+ flexWrap: "wrap",
+ gap: "0.5rem",
+ justifyContent: "center",
+});
+
+export const searchRelative = style({ position: "relative" });
+
+/* Grid extras */
+export const gridItemRelative = style({ position: "relative" });
+
+export const cardCenter = style({
+ textAlign: "center",
+ width: "100%",
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "center",
+ gap: "0.125rem",
+});
+
+export const relativeInline = style({
+ position: "relative",
+ display: "inline-block"
+});
+
+/* Empty state */
+export const emptyState = style({
+ textAlign: "center",
+ padding: "2rem 0",
+});
+
+export const emptyText = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "1.125rem",
+ color: vars.textMuted,
+});
+
+export const emptyActions = style({
+ marginTop: "1rem",
+ display: "flex",
+ gap: "0.5rem",
+ justifyContent: "center",
+});
+
+/* Footer extras */
+export const footerNote = style({
+ marginTop: "1rem",
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const footerNoteLink = style({
+ textDecoration: "underline",
+ color: "inherit",
+ transition: "color 0.15s ease",
+ ":hover": { color: vars.text },
+});
+
+/* Screen-reader-only SEO block */
+export const srOnly = style({
+ position: "absolute",
+ width: "1px",
+ height: "1px",
+ padding: 0,
+ margin: "-1px",
+ overflow: "hidden",
+ clip: "rect(0, 0, 0, 0)",
+ whiteSpace: "nowrap",
+ borderWidth: 0,
+});
+
+globalStyle(`${srOnly} *`, {
+ position: "static",
+});
+
+/* Desktop nav (plain flex version used on the home header) */
+export const desktopNavRow = style({
+ display: "none",
+ alignItems: "center",
+ gap: "0.75rem",
+ "@media": {
+ "screen and (min-width: 768px)": { display: "flex" },
+ },
+});
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
new file mode 100644
index 0000000..467164b
--- /dev/null
+++ b/src/app/layout.tsx
@@ -0,0 +1,89 @@
+/* system/src/app/layout.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import type { Metadata, Viewport } from "next";
+import "@/styles/theme.css";
+import "@/styles/global.css";
+import Providers from "./providers";
+import SoundFX from "./SoundFX";
+// import VisitorTracker from "@/components/VisitorTracker";
+
+export const metadata: Metadata = {
+ title: "Doughmination System | Plural System Member Tracker & Fronting Manager",
+ description:
+ "Real-time plural system tracker for the Doughmination System. View current fronters, system members, and track switching patterns. DID/OSDD system management made easy.",
+ keywords:
+ "plural system, DID, OSDD, system tracker, fronting tracker, plural community, system members, headmates, alters, Doughmination System",
+ authors: [{ name: "Doughmination System" }],
+ robots: "index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1",
+ alternates: {
+ canonical: "https://doughmination.co.uk/",
+ },
+ icons: {
+ icon: "https://m.doughmination.gay/img/avatars/favicon.png",
+ apple: "https://m.doughmination.gay/img/avatars/favicon.png",
+ },
+ appleWebApp: {
+ capable: true,
+ statusBarStyle: "black-translucent",
+ title: "Doughmination System",
+ },
+ openGraph: {
+ siteName: "Doughmination System",
+ title: "Doughmination System | Plural System Tracker",
+ description:
+ "Real-time plural system tracker. View current fronters and members of the Doughmination System.",
+ images: [
+ {
+ url: "https://m.doughmination.gay/img/avatars/favicon.png",
+ width: 800,
+ height: 800,
+ },
+ ],
+ type: "website",
+ url: "https://doughmination.co.uk/",
+ locale: "en_GB",
+ },
+ twitter: {
+ card: "summary",
+ title: "Doughmination System | Plural System Tracker",
+ description:
+ "Real-time plural system tracker. View current fronters and members of the Doughmination System.",
+ images: ["https://m.doughmination.gay/img/avatars/favicon.png"],
+ site: "@doughmination",
+ },
+};
+
+export const viewport: Viewport = {
+ width: "device-width",
+ initialScale: 1,
+ maximumScale: 5,
+ themeColor: "#0a0b10",
+};
+
+export default function RootLayout({
+ children,
+}: Readonly<{
+ children: React.ReactNode;
+}>) {
+ return (
+ <html lang="en" data-scroll-behavior="smooth">
+ <head>
+ <link
+ rel="preconnect"
+ href="https://m.doughmination.gay"
+ crossOrigin=""
+ />
+ </head>
+ <body>
+ <Providers>
+ {children}
+ </Providers>
+ <SoundFX />
+ </body>
+ </html>
+ );
+}
diff --git a/src/app/not-found.css.ts b/src/app/not-found.css.ts
new file mode 100644
index 0000000..39a7ee5
--- /dev/null
+++ b/src/app/not-found.css.ts
@@ -0,0 +1,36 @@
+/* system/src/app/not-found.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import { style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+export const page = style({
+ display: "flex",
+ minHeight: "100vh",
+ alignItems: "center",
+ justifyContent: "center",
+ backgroundColor: vars.bg,
+});
+
+export const inner = style({ textAlign: "center" });
+
+export const title = style({
+ marginBottom: "1rem",
+ fontSize: "2.25rem",
+ fontWeight: 700,
+});
+
+export const text = style({
+ marginBottom: "1rem",
+ fontSize: "1.25rem",
+ color: vars.textMuted,
+});
+
+export const link = style({
+ color: vars.info,
+ textDecoration: "underline",
+ ":hover": { color: vars.sapphire },
+});
diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx
new file mode 100644
index 0000000..8e2b05c
--- /dev/null
+++ b/src/app/not-found.tsx
@@ -0,0 +1,33 @@
+/* system/src/app/not-found.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import { useEffect } from "react";
+import { usePathname } from "next/navigation";
+import * as s from "./not-found.css";
+
+const NotFound = () => {
+ const pathname = usePathname();
+
+ useEffect(() => {
+ console.error("404 Error: User attempted to access non-existent route:", pathname);
+ }, [pathname]);
+
+ return (
+ <div className={s.page}>
+ <div className={s.inner}>
+ <h1 className={s.title}>404</h1>
+ <p className={s.text}>Oops! Page not found</p>
+ <a href="/" className={s.link}>
+ Return to Home
+ </a>
+ </div>
+ </div>
+ );
+};
+
+export default NotFound;
diff --git a/src/app/owner/dash/page.tsx b/src/app/owner/dash/page.tsx
new file mode 100644
index 0000000..b9b2d9e
--- /dev/null
+++ b/src/app/owner/dash/page.tsx
@@ -0,0 +1,72 @@
+/* system/src/app/owner/dash/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React from "react";
+import Link from "next/link";
+import { Button } from "@/components/ui/button";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import * as s from "@/styles/admin.css";
+
+const OwnerDash: React.FC = () => {
+ const ownerPages = [
+ {
+ path: "/owner/users",
+ label: "User Management",
+ icon: "👤",
+ desc: "Manage all users"
+ },
+ ];
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrapNarrow}>
+ {/* Header */}
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Owner Dashboard</h1>
+ <p className={s.pageSubtitle}>System management hub</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/">
+ <svg className={s.btnIcon} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={2}
+ d="M10 19l-7-7m0 0l7-7m-7 7h18"
+ />
+ </svg>
+ Back to Home
+ </Link>
+ </Button>
+ </div>
+
+ {/* Owner Navigation Grid */}
+ <div className={s.dashGrid}>
+ {ownerPages.map((page) => (
+ <Link key={page.path} href={page.path}>
+ <div className={s.dashCard}>
+ <span className={s.dashIcon}>{page.icon}</span>
+ <h3 className={s.dashLabel}>{page.label}</h3>
+ <p className={s.dashDesc}>{page.desc}</p>
+ </div>
+ </Link>
+ ))}
+ </div>
+ </div>
+ </div>
+ );
+};
+
+export default function OwnerDashPage() {
+ return (
+ <ProtectedRoute ownerRequired>
+ <OwnerDash />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/owner/users/page.tsx b/src/app/owner/users/page.tsx
new file mode 100644
index 0000000..865d15f
--- /dev/null
+++ b/src/app/owner/users/page.tsx
@@ -0,0 +1,636 @@
+/* system/src/app/owner/users/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState, useEffect, useCallback } from "react";
+import Link from "next/link";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import { Badge } from "@/components/ui/badge";
+import { Checkbox } from "@/components/ui/checkbox";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import { useUserInfo, useDoughminationClient } from "@doughmination/react-api";
+import { cn } from "@/lib/utils";
+import * as s from "@/styles/admin.css";
+
+// Human message from either API error convention; the /users admin endpoints
+// aren't wrapped by the package client, so errors are parsed here.
+function apiErrorMessage(body: unknown, fallback: string): string {
+ if (body && typeof body === "object") {
+ const b = body as { error?: { message?: string }; detail?: string; message?: string };
+ return b.error?.message || b.detail || b.message || fallback;
+ }
+ return fallback;
+}
+
+interface User {
+ id: string;
+ username: string;
+ display_name?: string;
+ email?: string | null;
+ created_at?: string | null;
+ is_admin: boolean;
+ is_owner?: boolean;
+ is_pet?: boolean;
+ avatar_url?: string;
+}
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+const UserManager: React.FC = () => {
+ const client = useDoughminationClient();
+
+ // Email is contact metadata only (sign-in is PocketID). A user may change
+ // their OWN address on their profile page; an admin/owner may change anyone
+ // else's. This panel only ever acts on other people, so the control is
+ // owner-only here.
+ const currentUser = useUserInfo();
+ const currentUserId = currentUser.data?.id ?? "";
+ const isOwner = !!currentUser.data?.is_owner;
+
+ const [users, setUsers] = useState<User[]>([]);
+ const [loading, setLoading] = useState(true);
+ const [saving, setSaving] = useState(false);
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+
+ // Create user form state
+ const [showCreateForm, setShowCreateForm] = useState(false);
+ const [newUsername, setNewUsername] = useState("");
+ const [newDisplayName, setNewDisplayName] = useState("");
+ const [newEmail, setNewEmail] = useState("");
+ const [newIsAdmin, setNewIsAdmin] = useState(false);
+ const [newIsPet, setNewIsPet] = useState(false);
+
+ // Per-user edit panel state
+ const [editingUserId, setEditingUserId] = useState<string | null>(null);
+ const [editDisplayName, setEditDisplayName] = useState("");
+ const [editEmail, setEditEmail] = useState("");
+ const [editAvatarUrl, setEditAvatarUrl] = useState("");
+ const [editIsAdmin, setEditIsAdmin] = useState(false);
+ const [editIsPet, setEditIsPet] = useState(false);
+
+ const fetchUsers = useCallback(async () => {
+ const token = localStorage.getItem("token");
+ if (!token) {
+ setMessage({
+ type: "error",
+ content: "Authentication required"
+ });
+ return;
+ }
+
+ try {
+ const response = await fetch(`${client.baseUrl}/plural/users`, {
+ headers: { Authorization: `Bearer ${token}` },
+ });
+
+ if (response.ok) {
+ const data = (await response.json()) as User[];
+ setUsers([...data].sort((a, b) => a.username.localeCompare(b.username)));
+ } else {
+ setMessage({
+ type: "error",
+ content: "Failed to fetch users"
+ });
+ }
+ } catch (err) {
+ console.error("Error fetching users:", err);
+ setMessage({
+ type: "error",
+ content: "Network error occurred"
+ });
+ }
+ }, [client]);
+
+ useEffect(() => {
+ fetchUsers().finally(() => setLoading(false));
+ }, [fetchUsers]);
+
+ const handleCreateUser = async (e: React.FormEvent) => {
+ e.preventDefault();
+
+ if (!newUsername.trim()) {
+ setMessage({
+ type: "error",
+ content: "Username is required"
+ });
+ return;
+ }
+
+ const token = localStorage.getItem("token");
+ if (!token) return setMessage({
+ type: "error",
+ content: "Authentication required"
+ });
+
+ setSaving(true);
+ setMessage(null);
+
+ try {
+ const response = await fetch(`${client.baseUrl}/plural/users`, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ Authorization: `Bearer ${token}`,
+ },
+ body: JSON.stringify({
+ username: newUsername.trim(),
+ display_name: newDisplayName.trim() || undefined,
+ email: newEmail.trim() || undefined,
+ is_admin: newIsAdmin,
+ is_pet: newIsPet,
+ }),
+ });
+
+ if (!response.ok) {
+ const errorData = await response.json().catch(() => null);
+ throw new Error(apiErrorMessage(errorData, "Failed to create user"));
+ }
+
+ setMessage({
+ type: "success",
+ content: "User created. They can sign in once they authenticate with SSO under this username."
+ });
+ setNewUsername("");
+ setNewDisplayName("");
+ setNewEmail("");
+ setNewIsAdmin(false);
+ setNewIsPet(false);
+ setShowCreateForm(false);
+ await fetchUsers();
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to create user",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const startEditing = (user: User) => {
+ setEditingUserId(user.id);
+ setEditDisplayName(user.display_name || "");
+ setEditEmail(user.email || "");
+ setEditAvatarUrl(user.avatar_url || "");
+ setEditIsAdmin(!!user.is_admin);
+ setEditIsPet(!!user.is_pet);
+ setMessage(null);
+ };
+
+ const cancelEditing = () => {
+ setEditingUserId(null);
+ };
+
+ const handleSaveUser = async (user: User) => {
+ const token = localStorage.getItem("token");
+ if (!token) return setMessage({
+ type: "error",
+ content: "Authentication required"
+ });
+
+ setSaving(true);
+ setMessage(null);
+
+ try {
+ const response = await fetch(`${client.baseUrl}/plural/users/${user.id}`, {
+ method: "PUT",
+ headers: {
+ "Content-Type": "application/json",
+ Authorization: `Bearer ${token}`,
+ },
+ body: JSON.stringify({
+ // null explicitly clears the field on the API; a value sets it
+ display_name: editDisplayName.trim() || null,
+ avatar_url: editAvatarUrl.trim() || null,
+ is_admin: editIsAdmin,
+ is_pet: editIsPet,
+ // Owner-only field, and only when it actually changed.
+ ...(isOwner && editEmail.trim() !== (user.email || "")
+ ? { email: editEmail.trim() || null }
+ : {}),
+ }),
+ });
+
+ if (!response.ok) {
+ const errorData = await response.json().catch(() => null);
+ throw new Error(apiErrorMessage(errorData, "Failed to update user"));
+ }
+
+ setMessage({
+ type: "success",
+ content: `Updated @${user.username} successfully!`
+ });
+ setEditingUserId(null);
+ await fetchUsers();
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to update user",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const handleDeleteUser = async (userId: string, username: string) => {
+ if (userId === currentUserId) {
+ setMessage({
+ type: "error",
+ content: "Cannot delete your own account"
+ });
+ return;
+ }
+
+ if (!window.confirm(`Delete user "${username}"? This action cannot be undone.`)) {
+ return;
+ }
+
+ const token = localStorage.getItem("token");
+ if (!token) return setMessage({
+ type: "error",
+ content: "Authentication required"
+ });
+
+ setSaving(true);
+ setMessage(null);
+
+ try {
+ const response = await fetch(`${client.baseUrl}/plural/users/${userId}`, {
+ method: "DELETE",
+ headers: { Authorization: `Bearer ${token}` },
+ });
+
+ if (!response.ok) {
+ const errorData = await response.json().catch(() => null);
+ throw new Error(apiErrorMessage(errorData, "Failed to delete user"));
+ }
+
+ setMessage({
+ type: "success",
+ content: "User deleted successfully!"
+ });
+ await fetchUsers();
+ } catch (err: unknown) {
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to delete user",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ if (loading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading...</div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrap}>
+ {/* Header */}
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>User Manager</h1>
+ <p className={s.pageSubtitle}>Manage system users, roles and permissions</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/owner/dash">Back to Dashboard</Link>
+ </Button>
+ </div>
+
+ {/* Messages */}
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ {/* Create User Button */}
+ {!showCreateForm && (
+ <Card>
+ <CardContent className={s.cardTopPad}>
+ <Button onClick={() => setShowCreateForm(true)} className={s.fullWidth}>
+ + Create New User
+ </Button>
+ </CardContent>
+ </Card>
+ )}
+
+ {/* Create User Form */}
+ {showCreateForm && (
+ <Card>
+ <CardHeader>
+ <CardTitle>Create New User</CardTitle>
+ <CardDescription>Add a new user to the system</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <form onSubmit={handleCreateUser} className={s.formStack}>
+ <div className={s.fieldBlock}>
+ <Label htmlFor="new-username">Username *</Label>
+ <Input
+ id="new-username"
+ type="text"
+ value={newUsername}
+ onChange={(e) => setNewUsername(e.target.value)}
+ placeholder="Enter username"
+ disabled={saving}
+ />
+ </div>
+
+ <div className={s.fieldBlock}>
+ <Label htmlFor="new-email">Email</Label>
+ <Input
+ id="new-email"
+ type="email"
+ value={newEmail}
+ onChange={(e) => setNewEmail(e.target.value)}
+ placeholder="[email protected]"
+ disabled={saving}
+ />
+ <p className={s.helpText}>
+ Optional contact address. Sign-in is handled by SSO — this account links to
+ the person the first time they log in under this username.
+ </p>
+ </div>
+
+ <div className={s.fieldBlock}>
+ <Label htmlFor="new-display-name">Display Name</Label>
+ <Input
+ id="new-display-name"
+ type="text"
+ value={newDisplayName}
+ onChange={(e) => setNewDisplayName(e.target.value)}
+ placeholder="Optional display name"
+ disabled={saving}
+ />
+ </div>
+
+ <div className={s.checkboxRow}>
+ <Checkbox
+ id="new-is-admin"
+ checked={newIsAdmin}
+ onCheckedChange={(checked) => setNewIsAdmin(checked as boolean)}
+ disabled={saving}
+ />
+ <Label htmlFor="new-is-admin" className={s.checkboxLabel}>
+ Admin privileges
+ </Label>
+ </div>
+
+ <div className={s.checkboxRow}>
+ <Checkbox
+ id="new-is-pet"
+ checked={newIsPet}
+ onCheckedChange={(checked) => setNewIsPet(checked as boolean)}
+ disabled={saving}
+ />
+ <Label htmlFor="new-is-pet" className={s.checkboxLabel}>
+ Pet role
+ </Label>
+ </div>
+
+ <div className={s.buttonRow}>
+ <Button type="submit" disabled={saving} className={s.flexGrow}>
+ {saving ? "Creating..." : "Create User"}
+ </Button>
+ <Button
+ type="button"
+ variant="outline"
+ onClick={() => {
+ setShowCreateForm(false);
+ setNewUsername("");
+ setNewDisplayName("");
+ setNewEmail("");
+ setNewIsAdmin(false);
+ setNewIsPet(false);
+ }}
+ disabled={saving}
+ >
+ Cancel
+ </Button>
+ </div>
+ </form>
+ </CardContent>
+ </Card>
+ )}
+
+ {/* Users List */}
+ <Card>
+ <CardHeader>
+ <CardTitle>All Users</CardTitle>
+ <CardDescription>
+ {users.length} user{users.length !== 1 ? "s" : ""} in the system
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ {users.length > 0 ? (
+ <div className={s.listStack}>
+ {users.map((user) => {
+ const isCurrentUser = user.id === currentUserId;
+ const isEditing = editingUserId === user.id;
+
+ return (
+ <React.Fragment key={user.id}>
+ <div className={cn(s.userRow, isCurrentUser && s.userRowCurrent)}>
+ {/* Avatar */}
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={user.avatar_url || FALLBACK_AVATAR}
+ alt={user.display_name || user.username}
+ className={s.userAvatar}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+
+ {/* User Info */}
+ <div className={s.userInfo}>
+ <div className={s.userNameRow}>
+ <p className={s.userName}>{user.display_name || user.username}</p>
+ {user.is_owner && (
+ <Badge variant="default" className={s.smallBadge}>
+ Owner
+ </Badge>
+ )}
+ {user.is_admin && (
+ <Badge variant="destructive" className={s.smallBadge}>
+ Admin
+ </Badge>
+ )}
+ {user.is_pet && (
+ <Badge variant="default" className={s.smallBadge}>
+ Pet
+ </Badge>
+ )}
+ {isCurrentUser && (
+ <Badge variant="secondary" className={s.smallBadge}>
+ You
+ </Badge>
+ )}
+ </div>
+ <p className={s.userHandle}>@{user.username}</p>
+ <p className={s.userHandle}>{user.email || "no email on file"}</p>
+ </div>
+
+ {/* Actions */}
+ <div className={s.buttonRow}>
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() => (isEditing ? cancelEditing() : startEditing(user))}
+ disabled={saving}
+ >
+ {isEditing ? "Close" : "Edit"}
+ </Button>
+ {!isCurrentUser && (
+ <Button
+ variant="destructive"
+ size="sm"
+ onClick={() => handleDeleteUser(user.id, user.username)}
+ disabled={saving}
+ >
+ Delete
+ </Button>
+ )}
+ </div>
+ </div>
+
+ {/* Edit Panel — roles, display name, avatar URL */}
+ {isEditing && (
+ <div className={s.editPanel}>
+ <div className={s.fieldBlock}>
+ <Label htmlFor={`edit-display-${user.id}`}>Display Name</Label>
+ <Input
+ id={`edit-display-${user.id}`}
+ type="text"
+ value={editDisplayName}
+ onChange={(e) => setEditDisplayName(e.target.value)}
+ placeholder="Display name"
+ disabled={saving}
+ />
+ </div>
+
+ <div className={s.fieldBlock}>
+ <Label htmlFor={`edit-email-${user.id}`}>Email</Label>
+ <Input
+ id={`edit-email-${user.id}`}
+ type="email"
+ value={editEmail}
+ onChange={(e) => setEditEmail(e.target.value)}
+ placeholder="[email protected]"
+ disabled={saving || !isOwner}
+ />
+ <p className={s.helpText}>
+ {isOwner
+ ? "Contact address only — sign-in email is managed by your SSO provider."
+ : "Only the owner can change someone else's email. Your own is on your profile page."}
+ </p>
+ </div>
+
+ <div className={s.fieldBlock}>
+ <Label htmlFor={`edit-avatar-${user.id}`}>Avatar URL</Label>
+ <Input
+ id={`edit-avatar-${user.id}`}
+ type="url"
+ value={editAvatarUrl}
+ onChange={(e) => setEditAvatarUrl(e.target.value)}
+ placeholder="https://example.com/avatar.png"
+ disabled={saving}
+ />
+ <p className={s.helpText}>
+ Avatars are external image links — no uploads
+ </p>
+ </div>
+
+ <div className={s.checkboxRow}>
+ <Checkbox
+ id={`edit-admin-${user.id}`}
+ checked={editIsAdmin}
+ onCheckedChange={(checked) => setEditIsAdmin(checked as boolean)}
+ disabled={saving}
+ />
+ <Label htmlFor={`edit-admin-${user.id}`} className={s.checkboxLabel}>
+ Admin privileges
+ </Label>
+ </div>
+
+ <div className={s.checkboxRow}>
+ <Checkbox
+ id={`edit-pet-${user.id}`}
+ checked={editIsPet}
+ onCheckedChange={(checked) => setEditIsPet(checked as boolean)}
+ disabled={saving}
+ />
+ <Label htmlFor={`edit-pet-${user.id}`} className={s.checkboxLabel}>
+ Pet role
+ </Label>
+ </div>
+
+ <div className={s.buttonRow}>
+ <Button
+ onClick={() => handleSaveUser(user)}
+ disabled={saving}
+ className={s.flexGrow}
+ >
+ {saving ? "Saving..." : "Save Changes"}
+ </Button>
+ <Button variant="outline" onClick={cancelEditing} disabled={saving}>
+ Cancel
+ </Button>
+ </div>
+ </div>
+ )}
+ </React.Fragment>
+ );
+ })}
+ </div>
+ ) : (
+ <p className={s.emptyNote}>No users found</p>
+ )}
+ </CardContent>
+ </Card>
+
+ {/* Statistics */}
+ <Card>
+ <CardHeader>
+ <CardTitle>User Statistics</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <div className={s.statsGrid}>
+ <div className={s.statBox}>
+ <p className={s.statLabel}>Total Users</p>
+ <p className={s.statValue}>{users.length}</p>
+ </div>
+ <div className={s.statBox}>
+ <p className={s.statLabel}>Admins</p>
+ <p className={s.statValue}>{users.filter((u) => u.is_admin).length}</p>
+ </div>
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+};
+
+export default function UserManagerPage() {
+ return (
+ <ProtectedRoute ownerRequired>
+ <UserManager />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/page.tsx b/src/app/page.tsx
new file mode 100644
index 0000000..d86c959
--- /dev/null
+++ b/src/app/page.tsx
@@ -0,0 +1,11 @@
+/* system/src/app/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import HomePage from "@/components/HomePage";
+
+export default function Home() {
+ return <HomePage />;
+}
diff --git a/src/app/providers.tsx b/src/app/providers.tsx
new file mode 100644
index 0000000..a3b5bff
--- /dev/null
+++ b/src/app/providers.tsx
@@ -0,0 +1,40 @@
+/* system/src/app/providers.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import { useState } from "react";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { DoughminationProvider } from "@doughmination/react-api";
+import { Toaster } from "@/components/ui/toaster";
+import { Toaster as Sonner } from "@/components/ui/sonner";
+import { TooltipProvider } from "@/components/ui/tooltip";
+
+/**
+ * Reads the auth token from localStorage on every request, so a token that
+ * arrives after a PocketID login (or is cleared on logout) is always current
+ * without rebuilding the client.
+ */
+function readToken(): string | null {
+ if (typeof window === "undefined") return null;
+ return localStorage.getItem("token");
+}
+
+export default function Providers({ children }: { children: React.ReactNode }) {
+ const [queryClient] = useState(() => new QueryClient());
+
+ return (
+ <QueryClientProvider client={queryClient}>
+ <DoughminationProvider token={readToken}>
+ <TooltipProvider>
+ <Toaster />
+ <Sonner />
+ {children}
+ </TooltipProvider>
+ </DoughminationProvider>
+ </QueryClientProvider>
+ );
+}
diff --git a/src/app/relationships/page.tsx b/src/app/relationships/page.tsx
new file mode 100644
index 0000000..ad449eb
--- /dev/null
+++ b/src/app/relationships/page.tsx
@@ -0,0 +1,204 @@
+/* system/src/app/relationships/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useMemo } from "react";
+import Link from "next/link";
+import { useMembers, useRelationships, type PluralMember } from "@doughmination/react-api";
+import { normalizeColor } from "@/lib/utils";
+import * as s from "@/styles/admin.css";
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+const SIZE = 720;
+const CENTER = SIZE / 2;
+const RING_RADIUS = 280;
+const NODE_RADIUS = 34;
+
+interface GraphNode {
+ id: string;
+ member: PluralMember;
+ x: number;
+ y: number;
+}
+
+const RelationshipMap: React.FC = () => {
+ const membersQuery = useMembers();
+ const relationshipsQuery = useRelationships();
+
+ const members = membersQuery.data ?? [];
+ const relationships = relationshipsQuery.data?.relationships ?? [];
+
+ const memberById = useMemo(() => {
+ const lookup = new Map<string, PluralMember>();
+ for (const member of members) {
+ if (member.id) lookup.set(member.id, member);
+ if (member.name) lookup.set(member.name, member);
+ }
+ return lookup;
+ }, [members]);
+
+ // Only members that appear in at least one relationship become nodes.
+ const nodes = useMemo<GraphNode[]>(() => {
+ const involved = new Set<string>();
+ for (const edge of relationships) {
+ involved.add(edge.members[0]);
+ involved.add(edge.members[1]);
+ }
+
+ const resolved = Array.from(involved)
+ .map((identifier) => memberById.get(identifier))
+ .filter((member): member is PluralMember => Boolean(member));
+
+ const count = resolved.length;
+ return resolved.map((member, index) => {
+ const angle = (index / Math.max(count, 1)) * Math.PI * 2 - Math.PI / 2;
+ return {
+ id: member.id,
+ member,
+ x: CENTER + RING_RADIUS * Math.cos(angle),
+ y: CENTER + RING_RADIUS * Math.sin(angle),
+ };
+ });
+ }, [relationships, memberById]);
+
+ const nodeById = useMemo(() => {
+ const lookup = new Map<string, GraphNode>();
+ for (const node of nodes) {
+ lookup.set(node.member.id, node);
+ if (node.member.name) lookup.set(node.member.name, node);
+ }
+ return lookup;
+ }, [nodes]);
+
+ const loading = membersQuery.isLoading || relationshipsQuery.isLoading;
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrap}>
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Relationship Map</h1>
+ <p className={s.pageSubtitle}>Who is dating who across the system</p>
+ </div>
+ <Button asChildHref="/">Back to Home</Button>
+ </div>
+
+ {loading ? (
+ <div className={s.loadingText}>Loading map...</div>
+ ) : nodes.length === 0 ? (
+ <p className={s.emptyNote}>No relationships to show yet</p>
+ ) : (
+ <div style={{
+ width: "100%",
+ overflowX: "auto"
+ }}>
+ <svg
+ viewBox={`0 0 ${SIZE} ${SIZE}`}
+ width="100%"
+ style={{
+ maxWidth: `${SIZE}px`,
+ margin: "0 auto",
+ display: "block"
+ }}
+ role="img"
+ aria-label="Relationship map"
+ >
+ <defs>
+ {nodes.map((node) => (
+ <clipPath key={node.id} id={`clip-${node.id}`}>
+ <circle cx={node.x} cy={node.y} r={NODE_RADIUS} />
+ </clipPath>
+ ))}
+ </defs>
+
+ {relationships.map((edge) => {
+ const from = nodeById.get(edge.members[0]);
+ const to = nodeById.get(edge.members[1]);
+ if (!from || !to) return null;
+ const midX = (from.x + to.x) / 2;
+ const midY = (from.y + to.y) / 2;
+ return (
+ <g key={edge.id}>
+ <line
+ x1={from.x}
+ y1={from.y}
+ x2={to.x}
+ y2={to.y}
+ stroke="var(--accent)"
+ strokeWidth={2}
+ strokeOpacity={0.55}
+ />
+ <text
+ x={midX}
+ y={midY - 4}
+ textAnchor="middle"
+ fontSize={11}
+ fill="var(--text-muted)"
+ >
+ {edge.type}
+ </text>
+ </g>
+ );
+ })}
+
+ {nodes.map((node) => {
+ const color = normalizeColor(node.member.color) || "var(--accent)";
+ const name = node.member.display_name || node.member.name || node.member.id;
+ return (
+ <g key={node.id}>
+ <circle
+ cx={node.x}
+ cy={node.y}
+ r={NODE_RADIUS + 2}
+ fill="var(--card, #1a1a1a)"
+ stroke={color}
+ strokeWidth={2}
+ />
+ <image
+ href={node.member.avatar_url || FALLBACK_AVATAR}
+ x={node.x - NODE_RADIUS}
+ y={node.y - NODE_RADIUS}
+ width={NODE_RADIUS * 2}
+ height={NODE_RADIUS * 2}
+ clipPath={`url(#clip-${node.id})`}
+ preserveAspectRatio="xMidYMid slice"
+ />
+ <text
+ x={node.x}
+ y={node.y + NODE_RADIUS + 16}
+ textAnchor="middle"
+ fontSize={13}
+ fill="var(--text)"
+ >
+ {name}
+ </text>
+ </g>
+ );
+ })}
+ </svg>
+ </div>
+ )}
+ </div>
+ </div>
+ );
+};
+
+// Small helper so the header button stays a plain link without pulling in the
+// full Button variant surface on a public page.
+const Button: React.FC<{ children: React.ReactNode; asChildHref: string }> = ({
+ children,
+ asChildHref,
+}) => (
+ <Link href={asChildHref} className={s.chip} style={{ textDecoration: "none" }}>
+ {children}
+ </Link>
+);
+
+export default function RelationshipMapPage() {
+ return <RelationshipMap />;
+}
diff --git a/src/app/user/auth.css.ts b/src/app/user/auth.css.ts
new file mode 100644
index 0000000..02bd0f8
--- /dev/null
+++ b/src/app/user/auth.css.ts
@@ -0,0 +1,349 @@
+/* system/src/app/user/auth.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ *
+ * Shared styles for the auth pages (login, forgot password).
+ */
+
+import { keyframes, style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+const bounce = keyframes({
+ "0%, 100%": {
+ transform: "translateY(-25%)",
+ animationTimingFunction: "cubic-bezier(0.8, 0, 1, 1)",
+ },
+ "50%": {
+ transform: "none",
+ animationTimingFunction: "cubic-bezier(0, 0, 0.2, 1)",
+ },
+});
+
+const spin = keyframes({
+ from: { transform: "rotate(0deg)" },
+ to: { transform: "rotate(360deg)" },
+});
+
+export const card = style({
+ maxWidth: "28rem",
+ margin: "2.5rem auto 0",
+ padding: "1.5rem",
+ border: `1px solid ${vars.surface}`,
+ borderRadius: "0.5rem",
+ boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
+ backgroundColor: vars.bg,
+});
+
+export const heading = style({
+ fontSize: "1.5rem",
+ fontWeight: 700,
+ marginBottom: "1.5rem",
+ textAlign: "center",
+ fontFamily: vars.fontComic,
+});
+
+export const errorBox = style({
+ backgroundColor: `color-mix(in srgb, ${vars.danger} 15%, ${vars.bg})`,
+ color: vars.danger,
+ padding: "0.75rem",
+ borderRadius: "0.375rem",
+ marginBottom: "1rem",
+});
+
+export const successBox = style({
+ backgroundColor: `color-mix(in srgb, ${vars.success} 15%, ${vars.bg})`,
+ color: vars.success,
+ padding: "0.75rem",
+ borderRadius: "0.375rem",
+ marginBottom: "1rem",
+});
+
+export const form = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+});
+
+export const fieldLabel = style({
+ display: "block",
+ marginBottom: "0.25rem",
+ fontSize: "0.875rem",
+ fontWeight: 500,
+ fontFamily: vars.fontComic,
+});
+
+export const textInput = style({
+ width: "100%",
+ border: `1px solid ${vars.surface}`,
+ padding: "0.5rem",
+ borderRadius: "0.25rem",
+ backgroundColor: vars.bg,
+ color: vars.text,
+ fontFamily: vars.fontComic,
+});
+
+export const linkRight = style({
+ textAlign: "right",
+});
+
+export const blueLink = style({
+ fontSize: "0.875rem",
+ color: vars.info,
+ fontFamily: vars.fontComic,
+ textDecoration: "none",
+ ":hover": {
+ color: vars.sapphire,
+ textDecoration: "underline",
+ },
+});
+
+export const turnstileBlock = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.5rem",
+});
+
+export const turnstileCenter = style({
+ display: "flex",
+ justifyContent: "center",
+});
+
+export const mutedNote = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ textAlign: "center",
+ fontFamily: vars.fontComic,
+});
+
+export const submitBtn = style({
+ display: "block",
+ width: "100%",
+ boxSizing: "border-box",
+ textAlign: "center",
+ textDecoration: "none",
+ backgroundColor: vars.info,
+ color: vars.bg,
+ padding: "0.625rem 0.75rem",
+ borderRadius: "0.25rem",
+ border: "none",
+ cursor: "pointer",
+ transition: "background-color 0.15s ease",
+ fontFamily: vars.fontComic,
+ ":hover": { backgroundColor: vars.sapphire },
+ ":disabled": {
+ backgroundColor: `color-mix(in srgb, ${vars.info} 50%, ${vars.bg})`,
+ cursor: "not-allowed",
+ },
+});
+
+/** Vertical stack for standalone actions (e.g. the SSO sign-in button). */
+export const actions = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.75rem",
+});
+
+export const bottomNote = style({
+ marginTop: "1rem",
+ textAlign: "center",
+ fontSize: "0.875rem",
+ fontFamily: vars.fontComic,
+});
+
+export const loadingNote = style({
+ marginTop: "1rem",
+ textAlign: "center",
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+});
+
+/* Welcome screen */
+export const welcomeInner = style({
+ textAlign: "center",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1.5rem",
+});
+
+export const welcomeEmoji = style({
+ fontSize: "3.75rem",
+ animation: `${bounce} 1s infinite`,
+});
+
+export const welcomeTitle = style({
+ fontSize: "1.875rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+ color: vars.accent,
+});
+
+export const welcomeName = style({
+ fontSize: "1.25rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const spinnerWrap = style({
+ display: "flex",
+ justifyContent: "center",
+});
+
+export const spinner = style({
+ animation: `${spin} 1s linear infinite`,
+ borderRadius: "9999px",
+ height: "2rem",
+ width: "2rem",
+ borderBottom: `2px solid ${vars.accent}`,
+});
+
+/* ---------------------------------------------------------------------------
+ Account recovery (forgot password / forgot username / reset password)
+ --------------------------------------------------------------------------- */
+
+export const subtitle = style({
+ marginTop: "-1rem",
+ marginBottom: "1.5rem",
+ textAlign: "center",
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ lineHeight: 1.5,
+});
+
+/** Confirmation panel shown after a recovery email goes out. */
+export const sentInner = style({
+ textAlign: "center",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+ alignItems: "center",
+});
+
+export const sentEmoji = style({ fontSize: "3rem" });
+
+export const sentTitle = style({
+ fontSize: "1.5rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+ color: vars.success,
+ margin: 0,
+});
+
+export const sentText = style({
+ fontSize: "0.9375rem",
+ fontFamily: vars.fontComic,
+ lineHeight: 1.6,
+ margin: 0,
+});
+
+/** The masked a•••@d•••.win hint. Monospace so the dots line up. */
+export const maskedAddress = style({
+ display: "inline-block",
+ padding: "0.5rem 0.875rem",
+ borderRadius: "0.375rem",
+ backgroundColor: vars.surface,
+ border: `1px solid ${vars.surfaceHi}`,
+ color: vars.accent,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "1rem",
+ letterSpacing: "0.02em",
+});
+
+/** Inline availability / validation feedback under a field. */
+export const fieldHint = style({
+ marginTop: "0.375rem",
+ fontSize: "0.8125rem",
+ fontFamily: vars.fontComic,
+});
+
+export const hintOk = style([fieldHint, { color: vars.success }]);
+export const hintBad = style([fieldHint, { color: vars.danger }]);
+export const hintMuted = style([fieldHint, { color: vars.textMuted }]);
+
+export const helperText = style({
+ fontSize: "0.8125rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ marginTop: "0.375rem",
+ lineHeight: 1.5,
+});
+
+/** Requirement checklist on the reset form. */
+export const ruleList = style({
+ listStyle: "none",
+ margin: "0.5rem 0 0",
+ padding: 0,
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.25rem",
+});
+
+export const ruleItem = style({
+ fontSize: "0.8125rem",
+ fontFamily: vars.fontComic,
+ color: vars.textMuted,
+ display: "flex",
+ alignItems: "center",
+ gap: "0.375rem",
+});
+
+export const ruleMet = style([ruleItem, { color: vars.success }]);
+
+export const linkRow = style({
+ marginTop: "1rem",
+ display: "flex",
+ justifyContent: "space-between",
+ gap: "1rem",
+ fontSize: "0.875rem",
+ fontFamily: vars.fontComic,
+});
+
+/** Full-card centred state, used while validating a reset token. */
+export const centerState = style({
+ textAlign: "center",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+ alignItems: "center",
+ padding: "1rem 0",
+});
+
+export const stateEmoji = style({ fontSize: "3rem" });
+
+export const stateTitle = style({
+ fontSize: "1.375rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+ margin: 0,
+});
+
+export const stateTitleBad = style([stateTitle, { color: vars.danger }]);
+
+/** Callout panel — e.g. the "confirm your email" prompt on failed login. */
+export const infoPanel = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.75rem",
+ padding: "1rem",
+ marginBottom: "1rem",
+ borderRadius: "0.5rem",
+ backgroundColor: `color-mix(in srgb, ${vars.warning} 12%, ${vars.bg})`,
+ border: `1px solid color-mix(in srgb, ${vars.warning} 40%, transparent)`,
+});
+
+export const backLink = style({
+ display: "inline-block",
+ marginTop: "0.5rem",
+ padding: "0.5rem 1.25rem",
+ borderRadius: "0.375rem",
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "0.875rem",
+ textDecoration: "none",
+ ":hover": { backgroundColor: vars.accentAlt },
+});
diff --git a/src/app/user/login/callback/page.tsx b/src/app/user/login/callback/page.tsx
new file mode 100644
index 0000000..bcc6ae0
--- /dev/null
+++ b/src/app/user/login/callback/page.tsx
@@ -0,0 +1,94 @@
+/* system/src/app/user/login/callback/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { Suspense, useEffect, useState } from "react";
+import Link from "next/link";
+import { useRouter } from "next/navigation";
+import * as s from "../../auth.css";
+
+/**
+ * PocketID login landing page.
+ *
+ * The API's OIDC callback mints a JWT and redirects here with the token in the
+ * URL fragment (`#token=…&from=…`) so it never touches a server log. We read it
+ * from `location.hash`, store it where the provider's client picks it up, then
+ * forward the user to wherever they were headed.
+ */
+
+/** Only allow returning to same-site app paths — never "//host" or a full URL. */
+function safeFrom(raw: string | null): string {
+ if (!raw) return "/";
+ if (!raw.startsWith("/") || raw.startsWith("//")) return "/";
+ return raw;
+}
+
+const Callback: React.FC = () => {
+ const router = useRouter();
+ const [error, setError] = useState<string | null>(null);
+
+ useEffect(() => {
+ // The fragment (everything after #) never reaches the server.
+ const hash = window.location.hash.startsWith("#")
+ ? window.location.hash.slice(1)
+ : window.location.hash;
+ const params = new URLSearchParams(hash);
+
+ const errParam = params.get("error");
+ if (errParam) {
+ setError(errParam);
+ return;
+ }
+
+ const token = params.get("token");
+ if (!token) {
+ setError("No sign-in token was returned. Please try again.");
+ return;
+ }
+
+ // The provider reads the token from here on every request.
+ localStorage.setItem("token", token);
+
+ // Strip the token from the address bar before moving on.
+ const dest = safeFrom(params.get("from"));
+ window.history.replaceState(null, "", window.location.pathname);
+ router.replace(dest);
+ }, [router]);
+
+ if (error) {
+ return (
+ <div className={s.card}>
+ <h2 className={s.heading}>Sign-in failed</h2>
+ <div className={s.errorBox}>{error}</div>
+ <div className={s.actions}>
+ <Link href="/user/login" className={s.submitBtn}>
+ Back to sign in
+ </Link>
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.card}>
+ <div className={s.welcomeInner}>
+ <div className={s.spinnerWrap}>
+ <div className={s.spinner}></div>
+ </div>
+ <p className={s.mutedNote}>Signing you in…</p>
+ </div>
+ </div>
+ );
+};
+
+export default function LoginCallbackPage() {
+ return (
+ <Suspense fallback={null}>
+ <Callback />
+ </Suspense>
+ );
+}
diff --git a/src/app/user/login/page.tsx b/src/app/user/login/page.tsx
new file mode 100644
index 0000000..a7ac7fa
--- /dev/null
+++ b/src/app/user/login/page.tsx
@@ -0,0 +1,65 @@
+/* system/src/app/user/login/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { Suspense, useState } from "react";
+import { useSearchParams } from "next/navigation";
+import { useDoughminationClient } from "@doughmination/react-api";
+import * as s from "../auth.css";
+
+const Login: React.FC = () => {
+ const client = useDoughminationClient();
+ const searchParams = useSearchParams();
+ const [redirecting, setRedirecting] = useState(false);
+
+ // Where to send the user after a successful login. /admin/login is an alias
+ // for the dashboard, kept for backwards-compatible bookmarks.
+ const rawFrom = searchParams?.get("from") || "/";
+ const from = rawFrom === "/admin/login" ? "/admin/dash" : rawFrom;
+
+ // The callback route bounces failures back here as ?error=…
+ const error = searchParams?.get("error");
+
+ const handleLogin = () => {
+ setRedirecting(true);
+ // Full navigation (not fetch): the API 302s to PocketID, which sends the
+ // browser back to our callback page with a token in the URL fragment.
+ window.location.href = client.pocketIdLoginUrl(from);
+ };
+
+ return (
+ <div className={s.card}>
+ <h2 className={s.heading}>Sign in</h2>
+ <p className={s.subtitle}>Use your SSO account to continue.</p>
+
+ {error && <div className={s.errorBox}>{error}</div>}
+
+ <div className={s.actions}>
+ <button
+ type="button"
+ className={s.submitBtn}
+ onClick={handleLogin}
+ disabled={redirecting}
+ >
+ {redirecting ? "Redirecting to SSO…" : "🔑 Sign in with SSO"}
+ </button>
+
+ <p className={s.mutedNote}>
+ You'll be taken to your SSO provider to sign in, then brought right back here.
+ </p>
+ </div>
+ </div>
+ );
+};
+
+export default function LoginPage() {
+ return (
+ <Suspense fallback={null}>
+ <Login />
+ </Suspense>
+ );
+}
diff --git a/src/app/user/metrics/metrics.css.ts b/src/app/user/metrics/metrics.css.ts
new file mode 100644
index 0000000..fb9df10
--- /dev/null
+++ b/src/app/user/metrics/metrics.css.ts
@@ -0,0 +1,207 @@
+/* system/src/app/user/metrics/metrics.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import { style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+export const page = style({
+ width: "100%",
+ margin: "0 auto",
+ padding: "1.5rem",
+ paddingTop: "5rem",
+});
+
+export const loadingText = style({
+ textAlign: "center",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const wrap = style({
+ maxWidth: "72rem",
+ margin: "0 auto",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1.5rem",
+});
+
+export const headerRow = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "space-between",
+});
+
+export const pageTitle = style({
+ fontSize: "1.875rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+});
+
+export const pageSubtitle = style({
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const selectorContent = style({
+ paddingTop: "1.5rem",
+});
+
+export const selectorRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.75rem",
+});
+
+export const selectorLabel = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const selectTrigger = style({
+ width: "200px",
+ fontFamily: vars.fontComic,
+});
+
+export const overviewGrid = style({
+ display: "grid",
+ gridTemplateColumns: "1fr",
+ gap: "1rem",
+ "@media": {
+ "screen and (min-width: 768px)": {
+ gridTemplateColumns: "repeat(3, 1fr)",
+ },
+ },
+});
+
+export const overviewHeader = style({
+ paddingBottom: "0.75rem",
+});
+
+export const overviewTitle = style({
+ fontSize: "1.125rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const overviewValue = style({
+ fontSize: "1.875rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+});
+
+export const overviewNote = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ marginTop: "0.25rem",
+});
+
+export const tooltipBox = style({
+ backgroundColor: vars.bg,
+ border: `1px solid ${vars.surface}`,
+ borderRadius: "0.5rem",
+ padding: "0.75rem",
+ boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
+});
+
+export const tooltipName = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const tooltipValue = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+});
+
+export const frontersList = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.75rem",
+});
+
+export const fronterRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.75rem",
+ padding: "0.75rem",
+ backgroundColor: vars.surface,
+ borderRadius: "0.5rem",
+});
+
+export const fronterRank = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ width: "2rem",
+ height: "2rem",
+ borderRadius: "9999px",
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+ fontSize: "0.875rem",
+});
+
+export const fronterAvatar = style({
+ width: "2.5rem",
+ height: "2.5rem",
+ borderRadius: "9999px",
+ objectFit: "cover",
+});
+
+export const fronterInfo = style({
+ flex: 1,
+ minWidth: 0,
+});
+
+export const fronterName = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const fronterDuration = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const progressWrap = style({
+ width: "8rem",
+ display: "none",
+ "@media": {
+ "screen and (min-width: 640px)": { display: "block" },
+ },
+});
+
+export const progressTrack = style({
+ height: "0.5rem",
+ backgroundColor: vars.bg,
+ borderRadius: "9999px",
+ overflow: "hidden",
+});
+
+export const progressBar = style({
+ height: "100%",
+ backgroundColor: vars.accent,
+ transition: "all 0.15s ease",
+});
+
+export const noDataContent = style({
+ padding: "3rem 0",
+});
+
+export const noDataText = style({
+ textAlign: "center",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
diff --git a/src/app/user/metrics/page.tsx b/src/app/user/metrics/page.tsx
new file mode 100644
index 0000000..67bb34a
--- /dev/null
+++ b/src/app/user/metrics/page.tsx
@@ -0,0 +1,471 @@
+/* system/src/app/user/metrics/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState, useEffect } from "react";
+import Link from "next/link";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import {
+ PieChart,
+ Pie,
+ Cell,
+ ResponsiveContainer,
+ Tooltip,
+ BarChart,
+ Bar,
+ XAxis,
+ YAxis,
+ CartesianGrid,
+} from "recharts";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import { useDoughminationClient } from "@doughmination/react-api";
+import * as s from "./metrics.css";
+
+interface MemberMetric {
+ id: string;
+ name: string;
+ display_name: string;
+ avatar_url?: string;
+ total_seconds: number;
+ total_percent: number;
+ "24h": number;
+ "48h": number;
+ "5d": number;
+ "7d": number;
+ "30d": number;
+}
+
+interface FrontingMetrics {
+ total_time: number;
+ members: Record<string, MemberMetric>;
+ timeframes: Record<string, Record<string, number>>;
+}
+
+interface SwitchMetrics {
+ total_switches: number;
+ avg_switches_per_day: number;
+ timeframes: {
+ "24h": number;
+ "48h": number;
+ "5d": number;
+ "7d": number;
+ "30d": number;
+ };
+}
+
+const COLORS = [
+ "#8b5cf6", "#ec4899", "#f59e0b", "#10b981", "#3b82f6",
+ "#ef4444", "#14b8a6", "#f97316", "#6366f1", "#84cc16",
+ "#a855f7", "#06b6d4", "#eab308", "#22c55e", "#f43f5e",
+];
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+type TimeframeKey = "24h" | "48h" | "5d" | "7d" | "30d";
+
+const Metrics: React.FC = () => {
+ const client = useDoughminationClient();
+ const [frontingMetrics, setFrontingMetrics] = useState<FrontingMetrics | null>(null);
+ const [switchMetrics, setSwitchMetrics] = useState<SwitchMetrics | null>(null);
+ const [selectedTimeframe, setSelectedTimeframe] = useState<string>("7d");
+ const [loading, setLoading] = useState(true);
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+
+ const timeframeOptions = [
+ {
+ value: "24h",
+ label: "Last 24 Hours"
+ },
+ {
+ value: "48h",
+ label: "Last 48 Hours"
+ },
+ {
+ value: "5d",
+ label: "Last 5 Days"
+ },
+ {
+ value: "7d",
+ label: "Last 7 Days"
+ },
+ {
+ value: "30d",
+ label: "Last 30 Days"
+ },
+ ];
+
+ useEffect(() => {
+ const fetchMetrics = async () => {
+ const token = localStorage.getItem("token");
+ if (!token) {
+ setMessage({
+ type: "error",
+ content: "Authentication required"
+ });
+ setLoading(false);
+ return;
+ }
+
+ try {
+ const headers = { Authorization: `Bearer ${token}` };
+ const [frontingRes, switchRes] = await Promise.all([
+ fetch(`${client.baseUrl}/plural/metrics/fronting-time?days=30`, { headers }),
+ fetch(`${client.baseUrl}/plural/metrics/switch-frequency?days=30`, { headers }),
+ ]);
+
+ if (frontingRes.ok && switchRes.ok) {
+ setFrontingMetrics(await frontingRes.json());
+ setSwitchMetrics(await switchRes.json());
+ } else {
+ setMessage({
+ type: "error",
+ content: "Failed to fetch metrics"
+ });
+ }
+ } catch (err) {
+ console.error("Error fetching metrics:", err);
+ setMessage({
+ type: "error",
+ content: "Network error occurred"
+ });
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ fetchMetrics();
+ }, [client]);
+
+ const formatDuration = (seconds: number): string => {
+ const hours = Math.floor(seconds / 3600);
+ const minutes = Math.floor((seconds % 3600) / 60);
+
+ if (hours > 24) {
+ const days = Math.floor(hours / 24);
+ const remainingHours = hours % 24;
+ return `${days}d ${remainingHours}h`;
+ }
+
+ return `${hours}h ${minutes}m`;
+ };
+
+ const getPieChartData = () => {
+ if (!frontingMetrics) return [];
+
+ const timeframeKey = selectedTimeframe as TimeframeKey;
+ const members = Object.values(frontingMetrics.members);
+
+ // Filter members with fronting time in the selected timeframe
+ const filteredMembers = members
+ .filter((m) => m[timeframeKey] > 0)
+ .sort((a, b) => b[timeframeKey] - a[timeframeKey])
+ // Top 10 members
+ .slice(0, 10);
+
+ return filteredMembers.map((member) => ({
+ name: member.display_name || member.name,
+ value: member[timeframeKey],
+ seconds: member[timeframeKey],
+ }));
+ };
+
+ const getBarChartData = () => {
+ if (!switchMetrics) return [];
+
+ return [
+ {
+ timeframe: "24h",
+ switches: switchMetrics.timeframes["24h"]
+ },
+ {
+ timeframe: "48h",
+ switches: switchMetrics.timeframes["48h"]
+ },
+ {
+ timeframe: "5d",
+ switches: switchMetrics.timeframes["5d"]
+ },
+ {
+ timeframe: "7d",
+ switches: switchMetrics.timeframes["7d"]
+ },
+ {
+ timeframe: "30d",
+ switches: switchMetrics.timeframes["30d"]
+ },
+ ];
+ };
+
+ const getTopFronters = () => {
+ if (!frontingMetrics) return [];
+
+ const timeframeKey = selectedTimeframe as TimeframeKey;
+ const members = Object.values(frontingMetrics.members);
+
+ return members
+ .filter((m) => m[timeframeKey] > 0)
+ .sort((a, b) => b[timeframeKey] - a[timeframeKey])
+ .slice(0, 10);
+ };
+
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ const CustomTooltip = ({ active, payload }: any) => {
+ if (active && payload && payload.length) {
+ return (
+ <div className={s.tooltipBox}>
+ <p className={s.tooltipName}>{payload[0].name}</p>
+ <p className={s.tooltipValue}>{formatDuration(payload[0].payload.seconds)}</p>
+ </div>
+ );
+ }
+ return null;
+ };
+
+ if (loading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading metrics...</div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrap}>
+ {/* Header */}
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Metrics</h1>
+ <p className={s.pageSubtitle}>System fronting and switching statistics</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/">Back to Home</Link>
+ </Button>
+ </div>
+
+ {/* Messages */}
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ {/* Timeframe Selector */}
+ <Card>
+ <CardContent className={s.selectorContent}>
+ <div className={s.selectorRow}>
+ <label className={s.selectorLabel}>Timeframe:</label>
+ <Select value={selectedTimeframe} onValueChange={setSelectedTimeframe}>
+ <SelectTrigger className={s.selectTrigger}>
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {timeframeOptions.map((option) => (
+ <SelectItem key={option.value} value={option.value}>
+ {option.label}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+ </CardContent>
+ </Card>
+
+ {/* Overview Cards */}
+ {switchMetrics && (
+ <div className={s.overviewGrid}>
+ <Card>
+ <CardHeader className={s.overviewHeader}>
+ <CardTitle className={s.overviewTitle}>Total Switches</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <p className={s.overviewValue}>{switchMetrics.total_switches}</p>
+ <p className={s.overviewNote}>Last 30 days</p>
+ </CardContent>
+ </Card>
+
+ <Card>
+ <CardHeader className={s.overviewHeader}>
+ <CardTitle className={s.overviewTitle}>Avg per Day</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <p className={s.overviewValue}>{switchMetrics.avg_switches_per_day.toFixed(1)}</p>
+ <p className={s.overviewNote}>Switches per day</p>
+ </CardContent>
+ </Card>
+
+ <Card>
+ <CardHeader className={s.overviewHeader}>
+ <CardTitle className={s.overviewTitle}>Selected Period</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <p className={s.overviewValue}>
+ {switchMetrics.timeframes[selectedTimeframe as TimeframeKey]}
+ </p>
+ <p className={s.overviewNote}>
+ {timeframeOptions.find((o) => o.value === selectedTimeframe)?.label}
+ </p>
+ </CardContent>
+ </Card>
+ </div>
+ )}
+
+ {/* Pie Chart - Fronting Time Distribution */}
+ {frontingMetrics && getPieChartData().length > 0 && (
+ <Card>
+ <CardHeader>
+ <CardTitle>Fronting Time Distribution</CardTitle>
+ <CardDescription>
+ Top fronters for{" "}
+ {timeframeOptions.find((o) => o.value === selectedTimeframe)?.label.toLowerCase()}
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <ResponsiveContainer width="100%" height={400}>
+ <PieChart>
+ <Pie
+ data={getPieChartData()}
+ cx="50%"
+ cy="50%"
+ labelLine={false}
+ label={({ name, percent }) => {
+ const pct = (percent ?? 0) * 100;
+ // Slivers below 3% all round to "0%" and pile up on top
+ // of each other; leave them to the tooltip instead.
+ if (pct < 3) return "";
+ return `${name} ${pct.toFixed(0)}%`;
+ }}
+ outerRadius={120}
+ fill="#8884d8"
+ dataKey="value"
+ >
+ {getPieChartData().map((entry, index) => (
+ <Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
+ ))}
+ </Pie>
+ <Tooltip content={<CustomTooltip />} />
+ </PieChart>
+ </ResponsiveContainer>
+ </CardContent>
+ </Card>
+ )}
+
+ {/* Bar Chart - Switch Frequency */}
+ {switchMetrics && (
+ <Card>
+ <CardHeader>
+ <CardTitle>Switch Frequency Over Time</CardTitle>
+ <CardDescription>Number of switches across different timeframes</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <ResponsiveContainer width="100%" height={300}>
+ <BarChart data={getBarChartData()}>
+ <CartesianGrid strokeDasharray="3 3" />
+ <XAxis dataKey="timeframe" />
+ <YAxis />
+ <Tooltip
+ contentStyle={{
+ backgroundColor: "var(--bg-raised)",
+ border: "1px solid var(--surface)",
+ borderRadius: "0.5rem",
+ }}
+ />
+ <Bar dataKey="switches" fill="#8b5cf6" />
+ </BarChart>
+ </ResponsiveContainer>
+ </CardContent>
+ </Card>
+ )}
+
+ {/* Top Fronters Table */}
+ {frontingMetrics && getTopFronters().length > 0 && (
+ <Card>
+ <CardHeader>
+ <CardTitle>Top Fronters</CardTitle>
+ <CardDescription>
+ Most active members for{" "}
+ {timeframeOptions.find((o) => o.value === selectedTimeframe)?.label.toLowerCase()}
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className={s.frontersList}>
+ {getTopFronters().map((member, index) => {
+ const timeframeKey = selectedTimeframe as TimeframeKey;
+ const duration = member[timeframeKey];
+
+ return (
+ <div key={member.id} className={s.fronterRow}>
+ {/* Rank */}
+ <div className={s.fronterRank}>{index + 1}</div>
+
+ {/* Avatar */}
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={s.fronterAvatar}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+
+ {/* Member Info */}
+ <div className={s.fronterInfo}>
+ <p className={s.fronterName}>{member.display_name || member.name}</p>
+ <p className={s.fronterDuration}>{formatDuration(duration)}</p>
+ </div>
+
+ {/* Progress Bar */}
+ <div className={s.progressWrap}>
+ <div className={s.progressTrack}>
+ <div
+ className={s.progressBar}
+ style={{
+ width: `${(duration / getTopFronters()[0][timeframeKey]) * 100}%`,
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ </CardContent>
+ </Card>
+ )}
+
+ {/* No Data Message */}
+ {frontingMetrics && getPieChartData().length === 0 && (
+ <Card>
+ <CardContent className={s.noDataContent}>
+ <p className={s.noDataText}>No fronting data available for the selected timeframe</p>
+ </CardContent>
+ </Card>
+ )}
+ </div>
+ </div>
+ );
+};
+
+export default function MetricsPage() {
+ return (
+ <ProtectedRoute>
+ <Metrics />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/user/profile/edit/edit.css.ts b/src/app/user/profile/edit/edit.css.ts
new file mode 100644
index 0000000..e202d72
--- /dev/null
+++ b/src/app/user/profile/edit/edit.css.ts
@@ -0,0 +1,158 @@
+/* system/src/app/user/profile/edit/edit.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import { style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+export const page = style({
+ width: "100%",
+ margin: "0 auto",
+ padding: "1.5rem",
+ paddingTop: "5rem",
+});
+
+export const loadingText = style({
+ textAlign: "center",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const narrowWrap = style({
+ maxWidth: "28rem",
+ margin: "0 auto",
+});
+
+export const actionsCenter = style({
+ marginTop: "1rem",
+ textAlign: "center",
+});
+
+export const wrap = style({
+ maxWidth: "42rem",
+ margin: "0 auto",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1.5rem",
+});
+
+export const headerRow = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "space-between",
+});
+
+export const pageTitle = style({
+ fontSize: "1.875rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+});
+
+export const pageSubtitle = style({
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const form = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "1.5rem",
+});
+
+export const formTight = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+});
+
+export const fieldBlock = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.5rem",
+});
+
+export const avatarBlock = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+});
+
+export const avatarRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "1rem",
+});
+
+export const avatarRelative = style({ position: "relative" });
+
+export const avatar = style({
+ width: "5rem",
+ height: "5rem",
+ borderRadius: "9999px",
+ objectFit: "cover",
+ border: `2px solid ${vars.surface}`,
+});
+
+export const avatarFallback = style({
+ width: "5rem",
+ height: "5rem",
+ borderRadius: "9999px",
+ backgroundColor: vars.surface,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ border: `2px solid ${vars.surface}`,
+});
+
+export const avatarFallbackEmoji = style({ fontSize: "1.5rem" });
+
+export const avatarCheck = style({
+ position: "absolute",
+ bottom: "-0.25rem",
+ right: "-0.25rem",
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ borderRadius: "9999px",
+ width: "1.5rem",
+ height: "1.5rem",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ fontSize: "0.75rem",
+});
+
+export const avatarControls = style({
+ flex: 1,
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.5rem",
+});
+
+export const buttonRow = style({
+ display: "flex",
+ gap: "0.5rem",
+});
+
+export const fileNote = style({
+ fontSize: "0.75rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const hiddenInput = style({ display: "none" });
+
+export const helpText = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const submitRow = style({
+ display: "flex",
+ justifyContent: "flex-end",
+});
diff --git a/src/app/user/profile/edit/page.tsx b/src/app/user/profile/edit/page.tsx
new file mode 100644
index 0000000..cce225a
--- /dev/null
+++ b/src/app/user/profile/edit/page.tsx
@@ -0,0 +1,300 @@
+/* system/src/app/user/profile/edit/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState, useEffect, useRef } from "react";
+import Link from "next/link";
+import { useUserInfo, useDoughminationClient } from "@doughmination/react-api";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import { Separator } from "@/components/ui/separator";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import * as s from "./edit.css";
+
+/** Loose client-side sanity check only — the API does the real validation. */
+const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
+
+// Pull a human message out of either API error convention. The PUT /users/:id
+// writes below aren't wrapped by the package client, so they parse errors here.
+function apiErrorMessage(body: unknown, fallback: string): string {
+ if (body && typeof body === "object") {
+ const b = body as { error?: { message?: string }; detail?: string; message?: string };
+ return b.error?.message || b.detail || b.message || fallback;
+ }
+ return fallback;
+}
+
+function UserEdit() {
+ const client = useDoughminationClient();
+ const userQuery = useUserInfo();
+ const userData = userQuery.data ?? null;
+ const loading = userQuery.isLoading;
+
+ const [displayName, setDisplayName] = useState("");
+ const [avatarUrl, setAvatarUrl] = useState("");
+ const [email, setEmail] = useState("");
+ const [imageError, setImageError] = useState(false);
+ const [saving, setSaving] = useState(false);
+ const [message, setMessage] = useState<{ type: "success" | "error"; content: string } | null>(
+ null,
+ );
+
+ // Seed the form once the current profile arrives.
+ const seeded = useRef(false);
+ useEffect(() => {
+ if (!seeded.current && userQuery.data) {
+ seeded.current = true;
+ setDisplayName(userQuery.data.display_name || "");
+ setAvatarUrl(userQuery.data.avatar_url || "");
+ setEmail(userQuery.data.email || "");
+ }
+ }, [userQuery.data]);
+
+ const handleAvatarUrlChange = (e: React.ChangeEvent<HTMLInputElement>) => {
+ setAvatarUrl(e.target.value);
+ setImageError(false);
+ };
+
+ // Only try to preview once the value looks like a complete URL — otherwise the
+ // browser resolves partial input ("https") as a relative path and 404s on
+ // every keystroke.
+ const isPreviewableUrl = (url: string): boolean =>
+ /^https?:\/\/[^\s/]+\.[^\s/]+/.test(url) || url.startsWith("/");
+
+ const handleResetAvatar = () => {
+ setAvatarUrl(userData?.avatar_url || "");
+ setImageError(false);
+ };
+
+ const handleImageError = (e: React.SyntheticEvent<HTMLImageElement>) => {
+ console.error("Failed to load avatar preview:", avatarUrl);
+ setImageError(true);
+ (e.target as HTMLImageElement).src = "https://m.doughmination.gay/img/avatars/favicon.png";
+ };
+
+ const handleImageLoad = () => {
+ setImageError(false);
+ };
+
+ /** Save display name, avatar and (optional) contact email in one PUT. */
+ const handleProfileUpdate = async (e: React.FormEvent) => {
+ e.preventDefault();
+
+ if (!userData) return;
+
+ const trimmedEmail = email.trim();
+ if (trimmedEmail && !EMAIL_PATTERN.test(trimmedEmail)) {
+ setMessage({ type: "error", content: "Please enter a valid email address" });
+ return;
+ }
+
+ const token = localStorage.getItem("token");
+ if (!token) {
+ setMessage({ type: "error", content: "Authentication required" });
+ return;
+ }
+
+ setSaving(true);
+ setMessage(null);
+
+ try {
+ const updateResponse = await fetch(`${client.baseUrl}/plural/users/${userData.id}`, {
+ method: "PUT",
+ headers: {
+ "Content-Type": "application/json",
+ Authorization: `Bearer ${token}`,
+ },
+ body: JSON.stringify({
+ // null explicitly clears the field on the API; a value sets it
+ display_name: displayName.trim() || null,
+ avatar_url: avatarUrl.trim() || null,
+ email: trimmedEmail || null,
+ }),
+ });
+
+ if (!updateResponse.ok) {
+ const errorData = await updateResponse.json().catch(() => null);
+ throw new Error(apiErrorMessage(errorData, "Failed to update profile"));
+ }
+
+ setMessage({ type: "success", content: "Profile updated successfully" });
+ await userQuery.refetch();
+ } catch (err: unknown) {
+ console.error("Profile update error:", err);
+ setMessage({
+ type: "error",
+ content: err instanceof Error ? err.message : "Failed to update profile",
+ });
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ if (loading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading...</div>
+ </div>
+ );
+ }
+
+ if (!userData) {
+ return (
+ <div className={s.page}>
+ <div className={s.narrowWrap}>
+ <Alert variant="destructive">
+ <AlertDescription>Failed to load user data</AlertDescription>
+ </Alert>
+ <div className={s.actionsCenter}>
+ <Button variant="outline" asChild>
+ <Link href="/user/profile">Back to Profile</Link>
+ </Button>
+ </div>
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrap}>
+ {/* Header */}
+ <div className={s.headerRow}>
+ <div>
+ <h1 className={s.pageTitle}>Edit Profile</h1>
+ <p className={s.pageSubtitle}>Update your profile information</p>
+ </div>
+ <Button variant="outline" asChild>
+ <Link href="/user/profile">Cancel</Link>
+ </Button>
+ </div>
+
+ {/* Messages */}
+ {message && (
+ <Alert variant={message.type === "error" ? "destructive" : "default"}>
+ <AlertDescription>{message.content}</AlertDescription>
+ </Alert>
+ )}
+
+ {/* Sign-in note */}
+ <Alert>
+ <AlertDescription>
+ Sign-in is handled by SSO. Your username and password are managed by your SSO provider —
+ this page only controls your display profile.
+ </AlertDescription>
+ </Alert>
+
+ {/* Profile Information */}
+ <Card>
+ <CardHeader>
+ <CardTitle>Profile Information</CardTitle>
+ <CardDescription>Update your display name, avatar and contact email</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <form onSubmit={handleProfileUpdate} className={s.form}>
+ {/* Avatar URL */}
+ <div className={s.avatarBlock}>
+ <Label htmlFor="avatarUrl">Avatar</Label>
+ <div className={s.avatarRow}>
+ <div className={s.avatarRelative}>
+ {avatarUrl && isPreviewableUrl(avatarUrl.trim()) && !imageError ? (
+ /* eslint-disable-next-line @next/next/no-img-element */
+ <img
+ src={avatarUrl.trim()}
+ alt="Avatar preview"
+ className={s.avatar}
+ onError={handleImageError}
+ onLoad={handleImageLoad}
+ />
+ ) : (
+ <div className={s.avatarFallback}>
+ <span className={s.avatarFallbackEmoji}>👤</span>
+ </div>
+ )}
+ {avatarUrl.trim() !== (userData.avatar_url || "") && (
+ <div className={s.avatarCheck}>✓</div>
+ )}
+ </div>
+ <div className={s.avatarControls}>
+ <Input
+ id="avatarUrl"
+ type="url"
+ value={avatarUrl}
+ onChange={handleAvatarUrlChange}
+ placeholder="https://example.com/avatar.png"
+ />
+ {avatarUrl.trim() !== (userData.avatar_url || "") && (
+ <div className={s.buttonRow}>
+ <Button type="button" variant="outline" size="sm" onClick={handleResetAvatar}>
+ Reset
+ </Button>
+ </div>
+ )}
+ </div>
+ </div>
+ <p className={s.helpText}>
+ Paste a direct link to an image (square recommended)
+ </p>
+ </div>
+
+ <Separator />
+
+ {/* Display Name */}
+ <div className={s.fieldBlock}>
+ <Label htmlFor="displayName">Display Name</Label>
+ <Input
+ id="displayName"
+ type="text"
+ value={displayName}
+ onChange={(e) => setDisplayName(e.target.value)}
+ placeholder="Enter display name"
+ />
+ <p className={s.helpText}>Leave blank to use username: @{userData.username}</p>
+ </div>
+
+ <Separator />
+
+ {/* Contact Email */}
+ <div className={s.fieldBlock}>
+ <Label htmlFor="email">Contact Email</Label>
+ <Input
+ id="email"
+ type="email"
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ placeholder="[email protected]"
+ autoComplete="email"
+ />
+ <p className={s.helpText}>
+ Optional contact address. Sign-in email lives with your SSO provider, not here.
+ </p>
+ </div>
+
+ {/* Save Button */}
+ <div className={s.submitRow}>
+ <Button type="submit" disabled={saving}>
+ {saving ? "Saving..." : "Save Changes"}
+ </Button>
+ </div>
+ </form>
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+}
+
+export default function UserEditPage() {
+ return (
+ <ProtectedRoute>
+ <UserEdit />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/user/profile/page.tsx b/src/app/user/profile/page.tsx
new file mode 100644
index 0000000..f7a8b77
--- /dev/null
+++ b/src/app/user/profile/page.tsx
@@ -0,0 +1,148 @@
+/* system/src/app/user/profile/page.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState } from "react";
+import Link from "next/link";
+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Badge } from "@/components/ui/badge";
+import { Alert, AlertDescription } from "@/components/ui/alert";
+import ProtectedRoute from "@/components/ProtectedRoute";
+import { useUserInfo } from "@doughmination/react-api";
+import * as s from "./profile.css";
+
+function UserProfile() {
+ const userQuery = useUserInfo();
+ const userData = userQuery.data ?? null;
+ const loading = userQuery.isLoading;
+ const error = userQuery.isError ? "Failed to fetch user data" : "";
+
+ const [imageError, setImageError] = useState(false);
+
+ const handleImageError = (e: React.SyntheticEvent<HTMLImageElement>) => {
+ console.error("Failed to load avatar:", userData?.avatar_url);
+ setImageError(true);
+ (e.target as HTMLImageElement).src = "https://m.doughmination.gay/img/avatars/favicon.png";
+ };
+
+ const handleImageLoad = () => {
+ console.log("Avatar loaded successfully:", userData?.avatar_url);
+ setImageError(false);
+ };
+
+ if (loading) {
+ return (
+ <div className={s.page}>
+ <div className={s.loadingText}>Loading profile...</div>
+ </div>
+ );
+ }
+
+ if (error) {
+ return (
+ <div className={s.page}>
+ <div className={s.narrowWrap}>
+ <Alert variant="destructive">
+ <AlertDescription>{error}</AlertDescription>
+ </Alert>
+ <div className={s.actionsCenter}>
+ <Button variant="outline" asChild>
+ <Link href="/">Back to Home</Link>
+ </Button>
+ </div>
+ </div>
+ </div>
+ );
+ }
+
+ if (!userData) {
+ return (
+ <div className={s.page}>
+ <div className={s.narrowCenter}>
+ <p className={s.noDataText}>User data not available</p>
+ <Button variant="outline" asChild>
+ <Link href="/">Back to Home</Link>
+ </Button>
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ <div className={s.narrowWrap}>
+ <Card>
+ <CardHeader className={s.headerCenter}>
+ <CardTitle className={s.cardTitle}>User Profile</CardTitle>
+ </CardHeader>
+ <CardContent className={s.content}>
+ <div className={s.centerBlock}>
+ {/* Avatar Display */}
+ {userData.avatar_url && !imageError ? (
+ <div className={s.avatarWrap}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={userData.avatar_url}
+ alt="User Avatar"
+ className={s.avatar}
+ onError={handleImageError}
+ onLoad={handleImageLoad}
+ />
+ </div>
+ ) : (
+ <div className={s.avatarFallback}>
+ <span className={s.avatarFallbackEmoji}>👤</span>
+ </div>
+ )}
+
+ {/* Display Name and Username */}
+ <h2 className={s.displayName}>
+ {userData.display_name || userData.username}
+ {userData.is_owner && (
+ <Badge variant="default" className={s.adminBadge}>
+ Owner
+ </Badge>
+ )}
+ {userData.is_admin && (
+ <Badge variant="secondary" className={s.adminBadge}>
+ Admin
+ </Badge>
+ )}
+ {userData.is_pet && (
+ <Badge variant="outline" className={s.adminBadge}>
+ Pet
+ </Badge>
+ )}
+ </h2>
+
+ <p className={s.username}>@{userData.username}</p>
+ </div>
+
+ {/* Action Buttons */}
+ <div className={s.actionRow}>
+ <Button asChild>
+ <Link href="/user/profile/edit">Edit Profile</Link>
+ </Button>
+ <Button variant="outline" asChild>
+ <Link href="/">Back to Home</Link>
+ </Button>
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+}
+
+export default function UserProfilePage() {
+ return (
+ <ProtectedRoute>
+ <UserProfile />
+ </ProtectedRoute>
+ );
+}
diff --git a/src/app/user/profile/profile.css.ts b/src/app/user/profile/profile.css.ts
new file mode 100644
index 0000000..839a110
--- /dev/null
+++ b/src/app/user/profile/profile.css.ts
@@ -0,0 +1,112 @@
+/* system/src/app/user/profile/profile.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import { style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+export const page = style({
+ width: "100%",
+ margin: "0 auto",
+ padding: "1.5rem",
+ paddingTop: "5rem",
+});
+
+export const loadingText = style({
+ textAlign: "center",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const narrowWrap = style({
+ maxWidth: "28rem",
+ margin: "0 auto",
+});
+
+export const narrowCenter = style([narrowWrap, { textAlign: "center" }]);
+
+export const actionsCenter = style({
+ marginTop: "1rem",
+ textAlign: "center",
+});
+
+export const noDataText = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ marginBottom: "1rem",
+});
+
+export const headerCenter = style({ textAlign: "center" });
+
+export const cardTitle = style({
+ fontSize: "1.5rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const content = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "1.5rem",
+});
+
+export const centerBlock = style({ textAlign: "center" });
+
+export const avatarWrap = style({
+ position: "relative",
+ display: "inline-block",
+ marginBottom: "1rem",
+});
+
+export const avatar = style({
+ width: "6rem",
+ height: "6rem",
+ borderRadius: "9999px",
+ margin: "0 auto",
+ objectFit: "cover",
+ border: `2px solid ${vars.surface}`,
+ display: "block",
+});
+
+export const avatarFallback = style({
+ width: "6rem",
+ height: "6rem",
+ borderRadius: "9999px",
+ backgroundColor: vars.surface,
+ margin: "0 auto 1rem",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ border: `2px solid ${vars.surface}`,
+});
+
+export const avatarFallbackEmoji = style({ fontSize: "2.25rem" });
+
+export const displayName = style({
+ fontSize: "1.25rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ marginBottom: "0.5rem",
+ marginTop: "2rem",
+});
+
+export const adminBadge = style({
+ marginLeft: "0.5rem",
+ fontFamily: vars.fontComic,
+});
+
+export const username = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const actionRow = style({
+ display: "flex",
+ gap: "0.75rem",
+ justifyContent: "center",
+ paddingTop: "1rem",
+});
diff --git a/src/components/ComingSoon.css.ts b/src/components/ComingSoon.css.ts
new file mode 100644
index 0000000..7108d50
--- /dev/null
+++ b/src/components/ComingSoon.css.ts
@@ -0,0 +1,210 @@
+/* system/src/components/ComingSoon.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import { keyframes, style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+const bounce = keyframes({
+ "0%, 100%": {
+ transform: "translateY(-25%)",
+ animationTimingFunction: "cubic-bezier(0.8, 0, 1, 1)",
+ },
+ "50%": {
+ transform: "none",
+ animationTimingFunction: "cubic-bezier(0, 0, 0.2, 1)",
+ },
+});
+
+const pulse = keyframes({
+ "0%, 100%": { opacity: 1 },
+ "50%": { opacity: 0.5 },
+});
+
+export const page = style({
+ minHeight: "100vh",
+ backgroundColor: vars.bg,
+ color: vars.text,
+ transition: "background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ padding: "1.5rem",
+});
+
+export const wrap = style({
+ maxWidth: "42rem",
+ width: "100%",
+});
+
+export const cardBorder = style({
+ borderWidth: "2px",
+});
+
+export const headerCenter = style({
+ textAlign: "center",
+ gap: "1.5rem",
+ paddingBottom: "1rem",
+});
+
+export const iconWrap = style({
+ display: "flex",
+ justifyContent: "center",
+});
+
+export const icon = style({
+ fontSize: "6rem",
+ animation: `${bounce} 1s infinite`,
+});
+
+export const titleBlock = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.5rem",
+});
+
+export const title = style({
+ fontSize: "2.25rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+ color: vars.accent,
+});
+
+export const subtitle = style({
+ fontSize: "1.25rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const content = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "2rem",
+});
+
+export const description = style({
+ textAlign: "center",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "1.125rem",
+});
+
+export const progressBlock = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.75rem",
+});
+
+export const progressLabels = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "space-between",
+ fontSize: "0.875rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const progressMuted = style({ color: vars.textMuted });
+
+export const progressActive = style({
+ color: vars.accent,
+ fontWeight: 600,
+});
+
+export const progressTrack = style({
+ width: "100%",
+ backgroundColor: vars.surface,
+ borderRadius: "9999px",
+ height: "0.75rem",
+ overflow: "hidden",
+});
+
+export const progressBar = style({
+ height: "100%",
+ background: `linear-gradient(to right, ${vars.accent}, ${vars.accent})`,
+ borderRadius: "9999px",
+ animation: `${pulse} 2s cubic-bezier(0.4, 0, 0.6, 1) infinite`,
+});
+
+export const featuresBox = style({
+ backgroundColor: `color-mix(in srgb, ${vars.surface} 50%, transparent)`,
+ borderRadius: "0.5rem",
+ padding: "1.5rem",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+});
+
+export const featuresTitle = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "1.125rem",
+ textAlign: "center",
+});
+
+export const featuresGrid = style({
+ display: "grid",
+ gridTemplateColumns: "1fr",
+ gap: "0.75rem",
+ "@media": {
+ "screen and (min-width: 768px)": {
+ gridTemplateColumns: "repeat(2, 1fr)",
+ },
+ },
+});
+
+export const featureItem = style({
+ display: "flex",
+ alignItems: "flex-start",
+ gap: "0.5rem",
+});
+
+export const featureIcon = style({ fontSize: "1.25rem" });
+
+export const featureText = style({
+ fontSize: "0.875rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ color: vars.textMuted,
+});
+
+export const actions = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.75rem",
+ justifyContent: "center",
+ "@media": {
+ "screen and (min-width: 640px)": {
+ flexDirection: "row",
+ },
+ },
+});
+
+export const btnIcon = style({
+ width: "1rem",
+ height: "1rem",
+ marginRight: "0.5rem",
+});
+
+export const footerBlock = style({
+ textAlign: "center",
+ paddingTop: "1.5rem",
+ borderTop: `1px solid ${vars.surface}`,
+});
+
+export const footerText = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const footerLink = style({
+ color: vars.accent,
+ fontWeight: 600,
+ textDecoration: "none",
+ ":hover": { textDecoration: "underline" },
+});
diff --git a/src/components/ComingSoon.tsx b/src/components/ComingSoon.tsx
new file mode 100644
index 0000000..50ea78f
--- /dev/null
+++ b/src/components/ComingSoon.tsx
@@ -0,0 +1,163 @@
+/* system/src/components/ComingSoon.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React from "react";
+import Link from "next/link";
+import { usePathname } from "next/navigation";
+import { Button } from "@/components/ui/button";
+import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
+import { cn } from "@/lib/utils";
+import * as s from "./ComingSoon.css";
+
+interface ComingSoonProps {
+ title?: string;
+ description?: string;
+ icon?: string;
+ showBackButton?: boolean;
+}
+
+const ComingSoon: React.FC<ComingSoonProps> = ({
+ title,
+ description,
+ icon = "🚧",
+ showBackButton = true,
+}) => {
+ const pathname = usePathname();
+
+ // Default title based on route
+ const getDefaultTitle = () => {
+ if (title) return title;
+
+ const path = pathname ?? "";
+ if (path.includes("/pet")) return "Pet Dashboard";
+ if (path.includes("/owner")) return "Owner Features";
+ if (path.includes("/admin")) return "Admin Feature";
+ if (path.includes("/user")) return "User Feature";
+
+ return "New Feature";
+ };
+
+ // Default description
+ const getDefaultDescription = () => {
+ if (description) return description;
+ return "We're working hard to bring you this feature. Check back soon!";
+ };
+
+ return (
+ <div className={s.page}>
+ <div className={s.wrap}>
+ <Card className={s.cardBorder}>
+ <CardHeader className={cn(s.headerCenter)}>
+ {/* Animated Icon */}
+ <div className={s.iconWrap}>
+ <div className={s.icon}>{icon}</div>
+ </div>
+
+ {/* Title */}
+ <div className={s.titleBlock}>
+ <CardTitle className={s.title}>{getDefaultTitle()}</CardTitle>
+ <CardDescription className={s.subtitle}>Coming Soon</CardDescription>
+ </div>
+ </CardHeader>
+
+ <CardContent className={s.content}>
+ {/* Description */}
+ <p className={s.description}>{getDefaultDescription()}</p>
+
+ {/* Progress Indicator */}
+ <div className={s.progressBlock}>
+ <div className={s.progressLabels}>
+ <span className={s.progressMuted}>Development Progress</span>
+ <span className={s.progressActive}>In Progress...</span>
+ </div>
+ <div className={s.progressTrack}>
+ <div className={s.progressBar} style={{ width: "35%" }} />
+ </div>
+ </div>
+
+ {/* Feature Highlights */}
+ <div className={s.featuresBox}>
+ <h3 className={s.featuresTitle}>What to Expect</h3>
+ <div className={s.featuresGrid}>
+ <div className={s.featureItem}>
+ <span className={s.featureIcon}>✨</span>
+ <span className={s.featureText}>New features and functionality</span>
+ </div>
+ <div className={s.featureItem}>
+ <span className={s.featureIcon}>🎨</span>
+ <span className={s.featureText}>Beautiful, intuitive design</span>
+ </div>
+ <div className={s.featureItem}>
+ <span className={s.featureIcon}>⚡</span>
+ <span className={s.featureText}>Fast and responsive</span>
+ </div>
+ <div className={s.featureItem}>
+ <span className={s.featureIcon}>🔒</span>
+ <span className={s.featureText}>Secure and reliable</span>
+ </div>
+ </div>
+ </div>
+
+ {/* Action Buttons */}
+ <div className={s.actions}>
+ {showBackButton && (
+ <Button variant="outline" size="lg" asChild>
+ <Link href="/">
+ <svg className={s.btnIcon} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={2}
+ d="M10 19l-7-7m0 0l7-7m-7 7h18"
+ />
+ </svg>
+ Back to Home
+ </Link>
+ </Button>
+ )}
+
+ <Button size="lg" asChild>
+ <a
+ href="https://codeberg.org/clove/web/src/branch/main/system"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <svg className={s.btnIcon} fill="currentColor" viewBox="0 0 20 20">
+ <path
+ fillRule="evenodd"
+ d="M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-2.043-3.369-2.043-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-2.038-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z"
+ clipRule="evenodd"
+ />
+ </svg>
+ Request Feature
+ </a>
+ </Button>
+ </div>
+
+ {/* Additional Info */}
+ <div className={s.footerBlock}>
+ <p className={s.footerText}>
+ Want to stay updated?{" "}
+ <a
+ href="https://doughmination.co.uk"
+ target="_blank"
+ rel="noopener noreferrer"
+ className={s.footerLink}
+ >
+ Visit the Homepage
+ </a>
+ </p>
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+ </div>
+ );
+};
+
+export default ComingSoon;
diff --git a/src/components/HomePage.tsx b/src/components/HomePage.tsx
new file mode 100644
index 0000000..e6bb0e3
--- /dev/null
+++ b/src/components/HomePage.tsx
@@ -0,0 +1,703 @@
+/* system/src/components/HomePage.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useState, useEffect, useMemo, useCallback } from "react";
+import Link from "next/link";
+import { useRouter } from "next/navigation";
+import {
+ useMembers,
+ useFronters,
+ useSystem,
+ useUserInfo,
+ useConnectionStatus,
+ type PluralMember,
+} from "@doughmination/react-api";
+import { Button } from "@/components/ui/button";
+import { cn, normalizeColor, readableOnDark } from "@/lib/utils";
+import * as site from "@/styles/site.css";
+import * as s from "@/app/home.css";
+import { Github } from "react-bootstrap-icons";
+
+// The member shape comes straight from the package now.
+type Member = PluralMember;
+
+interface UserData {
+ username: string;
+ display_name?: string;
+}
+
+const FALLBACK_AVATAR = "https://m.doughmination.gay/img/avatars/favicon.png";
+
+const MENTAL_STATE_CLASSES: Record<string, string> = {
+ safe: site.mentalStateSafe,
+ unstable: site.mentalStateUnstable,
+ "self-harming": site.mentalStateSelfHarming,
+ "highly at risk": site.mentalStateHighlyAtRisk,
+};
+
+export default function HomePage() {
+ const router = useRouter();
+
+ // UI-only state; all server data now comes from the package hooks below.
+ const [menuOpen, setMenuOpen] = useState(false);
+ const [searchQuery, setSearchQuery] = useState("");
+ const [currentTagFilter, setCurrentTagFilter] = useState<string | null>(null);
+ const [filteredMembers, setFilteredMembers] = useState<Member[]>([]);
+
+ // Live public data — seeded over REST, then kept current by the shared
+ // socket (fronters + mental state are broadcast to every client, and the
+ // provider invalidates on force_refresh).
+ const membersQuery = useMembers();
+ const frontersQuery = useFronters();
+ const systemQuery = useSystem();
+ const wsConnected = useConnectionStatus() === "open";
+
+ const members = useMemo(() => {
+ const list = membersQuery.data ?? [];
+ return [...list].sort((a, b) => {
+ const nameA = (a.display_name || a.name || "").toLowerCase();
+ const nameB = (b.display_name || b.name || "").toLowerCase();
+ return nameA.localeCompare(nameB);
+ });
+ }, [membersQuery.data]);
+
+ const availableTags = useMemo(() => {
+ const tags = new Set<string>();
+ members.forEach((m) => m.tags?.forEach((t) => tags.add(t)));
+ return Array.from(tags).sort((a, b) => a.localeCompare(b));
+ }, [members]);
+
+ const fronting = frontersQuery.data ?? null;
+ const systemInfo = systemQuery.data ?? null;
+ const loading =
+ membersQuery.isLoading || frontersQuery.isLoading || systemQuery.isLoading;
+
+ // Auth: the provider supplies the bearer token from localStorage, so
+ // useUserInfo covers real accounts; the mock-* dev tokens are handled inline.
+ const [token, setToken] = useState<string | null>(null);
+ useEffect(() => {
+ setToken(localStorage.getItem("token"));
+ }, []);
+ const isMock = token?.startsWith("mock-") ?? false;
+ const userInfoQuery = useUserInfo({ enabled: Boolean(token) && !isMock });
+
+ const { loggedIn, isAdmin, isOwner, currentUser } = useMemo(() => {
+ if (!token) {
+ return {
+ loggedIn: false,
+ isAdmin: false,
+ isOwner: false,
+ currentUser: null as UserData | null
+ };
+ }
+ if (isMock) {
+ return {
+ loggedIn: true,
+ isAdmin: token === "mock-admin",
+ isOwner: token === "mock-owner",
+ currentUser: {
+ username: "mock-user",
+ display_name: "Mock User"
+ } as UserData,
+ };
+ }
+ const u = userInfoQuery.data;
+ if (!u) {
+ return {
+ loggedIn: false,
+ isAdmin: false,
+ isOwner: false,
+ currentUser: null as UserData | null
+ };
+ }
+ return {
+ loggedIn: true,
+ isAdmin: !!u.is_admin,
+ isOwner: !!u.is_owner,
+ currentUser: {
+ username: u.username,
+ display_name: u.display_name ?? undefined
+ } as UserData,
+ };
+ }, [token, isMock, userInfoQuery.data]);
+
+ const handleLogout = () => {
+ localStorage.removeItem("token");
+ setToken(null);
+ router.push("/");
+ };
+
+ // Event handlers
+ const handleSearchChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
+ setSearchQuery(e.target.value);
+ }, []);
+
+ const clearSearch = useCallback(() => {
+ setSearchQuery("");
+ }, []);
+
+ const handleTagFilterChange = useCallback((filter: string | null) => {
+ setCurrentTagFilter(filter);
+ }, []);
+
+ const toggleMenu = useCallback(() => {
+ setMenuOpen((prev) => !prev);
+ }, []);
+
+ // Filter members based on search and tag filter
+ useEffect(() => {
+ let filtered = members;
+
+ // Apply search filter
+ if (searchQuery) {
+ filtered = filtered.filter(
+ (member) =>
+ (member.display_name || member.name || "")
+ .toLowerCase()
+ .includes(searchQuery.toLowerCase()) ||
+ member.tags?.some((tag) => tag.toLowerCase().includes(searchQuery.toLowerCase())),
+ );
+ }
+
+ // Apply tag filter
+ if (currentTagFilter) {
+ if (currentTagFilter === "untagged") {
+ filtered = filtered.filter((member) => !member.tags || member.tags.length === 0);
+ } else {
+ filtered = filtered.filter((member) => member.tags?.includes(currentTagFilter));
+ }
+ }
+
+ setFilteredMembers(filtered);
+ }, [members, searchQuery, currentTagFilter]);
+
+ // Check if a member is currently fronting
+ const isMemberFronting = useCallback(
+ (memberId: string, memberName?: string): boolean => {
+ if (!fronting?.members || fronting.members.length === 0) {
+ return false;
+ }
+
+ // Check direct fronting
+ return fronting.members.some((m) => m.id === memberId || m.name === memberName);
+ },
+ [fronting],
+ );
+
+ // Mental state helper functions
+ const getMentalStateLabel = (level: string) => {
+ const labels: { [key: string]: string } = {
+ safe: "Safe",
+ unstable: "Unstable",
+ idealizing: "Idealizing",
+ "self-harming": "Self-Harming",
+ "highly at risk": "Highly At Risk",
+ };
+ return labels[level] || level;
+ };
+
+ const getMentalStateIcon = (level: string) => {
+ const icons: { [key: string]: string } = {
+ safe: "✅",
+ unstable: "⚠️",
+ idealizing: "❗",
+ "self-harming": "🚨",
+ "highly at risk": "⛔",
+ };
+ return icons[level] || "❓";
+ };
+
+ if (loading) {
+ return (
+ <div className={s.loadingWrap}>
+ <div className={s.loadingText}>Loading...</div>
+ </div>
+ );
+ }
+
+ return (
+ <div className={s.page}>
+ {/* WebSocket Connection Indicator */}
+ {!wsConnected && (
+ <div className={s.wsBanner}>⚠️ Live updates disconnected. Reconnecting...</div>
+ )}
+
+ {/* Header with navigation */}
+ <header className={s.header}>
+ <div className={s.headerInner}>
+ <Link href="/" className={s.logoLink}>
+ Doughmination System®
+ </Link>
+
+ {/* Desktop Navigation */}
+ <div className={s.desktopNavRow}>
+ {loggedIn && currentUser && (
+ <div className={s.navUser}>
+ Logged in as:{" "}
+ <span className={s.navUserName}>
+ {currentUser.display_name || currentUser.username}
+ </span>
+ </div>
+ )}
+ {loggedIn ? (
+ <>
+ {isOwner && (
+ <Button variant="outline" size="sm" asChild>
+ <Link href="/owner/dash">Owner Panel</Link>
+ </Button>
+ )}
+ {isAdmin && (
+ <Button variant="outline" size="sm" asChild>
+ <Link href="/admin/dash">Admin Panel</Link>
+ </Button>
+ )}
+ <Button variant="outline" size="sm" asChild>
+ <Link href="/user/metrics">Metrics</Link>
+ </Button>
+ <Button variant="outline" size="sm" asChild>
+ <Link href="/user/profile">Profile</Link>
+ </Button>
+ <Button variant="destructive" size="sm" onClick={handleLogout}>
+ Logout
+ </Button>
+ </>
+ ) : (
+ <Button variant="outline" size="sm" asChild>
+ <Link href="/user/login">Login</Link>
+ </Button>
+ )}
+ </div>
+
+ {/* Mobile menu button */}
+ <button
+ className={s.mobileMenuBtn}
+ onClick={toggleMenu}
+ aria-label="Toggle menu"
+ aria-expanded={menuOpen}
+ >
+ <svg className={s.icon24} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ {menuOpen ? (
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
+ ) : (
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 6h16M4 12h16M4 18h16" />
+ )}
+ </svg>
+ </button>
+ </div>
+
+ {/* Mobile Navigation overlay */}
+ {menuOpen && (
+ <div className={s.mobileOverlay} onClick={toggleMenu}>
+ <div className={s.mobilePanel} onClick={(e) => e.stopPropagation()}>
+ <ul className={s.mobileList}>
+ {loggedIn && currentUser && (
+ <li className={s.mobileUser}>
+ Logged in as:{" "}
+ <span className={s.mobileUserName}>
+ {currentUser.display_name || currentUser.username}
+ </span>
+ </li>
+ )}
+ {loggedIn ? (
+ <>
+ {isOwner && (
+ <li>
+ <Link href="/owner/dash" className={s.mobileLink} onClick={toggleMenu}>
+ Owner Panel
+ </Link>
+ </li>
+ )}
+ {isAdmin && (
+ <li>
+ <Link href="/admin/dash" className={s.mobileLink} onClick={toggleMenu}>
+ Admin Panel
+ </Link>
+ </li>
+ )}
+ <li>
+ <Link href="/user/metrics" className={s.mobileLink} onClick={toggleMenu}>
+ Metrics
+ </Link>
+ </li>
+ <li>
+ <Link href="/user/profile" className={s.mobileLink} onClick={toggleMenu}>
+ Profile
+ </Link>
+ </li>
+ <li>
+ <button
+ onClick={() => {
+ handleLogout();
+ toggleMenu();
+ }}
+ className={s.mobileLogout}
+ >
+ Logout
+ </button>
+ </li>
+ </>
+ ) : (
+ <li>
+ <Link href="/user/login" className={s.mobileLink} onClick={toggleMenu}>
+ Login
+ </Link>
+ </li>
+ )}
+ </ul>
+ </div>
+ </div>
+ )}
+ </header>
+
+ {/* Space for fixed header */}
+ <div className={s.headerSpacer}></div>
+
+ {/* Main content */}
+ <main className={s.main}>
+ <div className={s.contentWrapper}>
+ <div>
+ <h1 className={s.pageTitle}>System Members</h1>
+
+ {/* Mental State Banner */}
+ {systemInfo?.mental_state && (
+ <div
+ className={cn(
+ site.mentalStateBanner,
+ MENTAL_STATE_CLASSES[systemInfo.mental_state.level],
+ )}
+ >
+ <div className={s.bannerRow}>
+ <span className={s.bannerIcon}>
+ {getMentalStateIcon(systemInfo.mental_state.level)}
+ </span>
+ <div>
+ <span>Current Status: </span>
+ <span>{getMentalStateLabel(systemInfo.mental_state.level)}</span>
+ {systemInfo.mental_state.notes && (
+ <p className={s.bannerNotes}>{systemInfo.mental_state.notes}</p>
+ )}
+ </div>
+ </div>
+ <small className={s.bannerUpdated}>
+ Last updated: {new Date(systemInfo.mental_state.updated_at).toLocaleString()}
+ </small>
+ </div>
+ )}
+
+ {/* Currently Fronting Section */}
+ {fronting && fronting.members && fronting.members.length > 0 && (
+ <div className={s.frontingSection}>
+ <h2 className={s.frontingTitle}>
+ Currently {fronting.members.length > 1 ? "Co-fronting" : "Fronting"}
+ </h2>
+ <div className={s.frontingRow}>
+ {fronting.members.map((member, index) => {
+ const memberColor = normalizeColor(member.color);
+ const borderColor = memberColor || "var(--accent)";
+ const nameColor = readableOnDark(member.color, "var(--accent)");
+ // Appending "40" only yields valid CSS for a hex literal.
+ const glow = memberColor
+ ? `${memberColor}40`
+ : "color-mix(in srgb, var(--accent) 25%, transparent)";
+
+ return (
+ <div key={member.id || `${member.name}-${index}`} className={s.frontingItem}>
+ {/* Status Bubble - Thought Bubble Style */}
+ {member.status && (
+ <div className={s.bubbleWrap}>
+ <div className={s.bubble}>
+ <div className={s.bubbleRow}>
+ {member.status.emoji && (
+ <span className={s.bubbleEmoji}>{member.status.emoji}</span>
+ )}
+ <span className={s.bubbleText}>{member.status.text}</span>
+ </div>
+ {/* Thought bubble circles - staggered diagonally toward avatar */}
+ <div className={s.bubbleDotWrapLarge}>
+ <div className={s.bubbleDotLarge}></div>
+ </div>
+ <div className={s.bubbleDotWrapSmall}>
+ <div className={s.bubbleDotSmall}></div>
+ </div>
+ </div>
+ </div>
+ )}
+ <Link href={`/${member.name}`}>
+ <div className={s.searchRelative}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={s.avatarImg}
+ style={{
+ borderColor: borderColor,
+ boxShadow: `0 0 12px ${glow}`,
+ }}
+ loading="lazy"
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ </div>
+ </Link>
+ <div className={s.frontingNameWrap}>
+ <Link
+ href={`/${member.name}`}
+ className={s.memberLink}
+ style={{ color: nameColor }}
+ >
+ {member.display_name || member.name || "Unknown"}
+ </Link>
+
+ {member.tags && member.tags.length > 0 && (
+ <div className={s.tagRow}>
+ {[...member.tags]
+ .sort((a, b) => a.localeCompare(b))
+ .map((tag, tagIndex) => (
+ <span key={tagIndex} className={s.tagChip}>
+ {tag}
+ </span>
+ ))}
+ </div>
+ )}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ )}
+
+ {/* Search and Filter */}
+ <div className={s.filtersBlock}>
+ <div className={s.filterRow}>
+ <button
+ onClick={() => handleTagFilterChange(null)}
+ className={cn(site.filterButton, currentTagFilter === null && site.filterButtonActive)}
+ >
+ All Members
+ </button>
+ {availableTags.map((tag) => (
+ <button
+ key={tag}
+ onClick={() => handleTagFilterChange(tag)}
+ className={cn(site.filterButton, currentTagFilter === tag && site.filterButtonActive)}
+ >
+ {tag}
+ </button>
+ ))}
+ <button
+ onClick={() => handleTagFilterChange("untagged")}
+ className={cn(
+ site.filterButton,
+ currentTagFilter === "untagged" && site.filterButtonActive,
+ )}
+ >
+ Untagged
+ </button>
+ </div>
+
+ <div className={site.searchContainer}>
+ <div className={s.searchRelative}>
+ <svg className={site.searchIcon} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={2}
+ d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
+ />
+ </svg>
+ <input
+ id="member-search"
+ type="text"
+ placeholder="Search members..."
+ value={searchQuery}
+ onChange={handleSearchChange}
+ className={site.searchInput}
+ />
+ {searchQuery && (
+ <button onClick={clearSearch} className={site.searchClear}>
+ <svg className={s.icon20} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={2}
+ d="M6 18L18 6M6 6l12 12"
+ />
+ </svg>
+ </button>
+ )}
+ </div>
+ </div>
+ </div>
+
+ {/* Members Grid */}
+ {filteredMembers.length > 0 ? (
+ <div className={site.memberGrid} style={{ paddingTop: "3rem" }}>
+ {filteredMembers.map((member) => {
+ const isFronting = isMemberFronting(member.id, member.name);
+ const memberColor = normalizeColor(member.color);
+ const borderColor = memberColor || "var(--accent)";
+ const nameColor = readableOnDark(member.color, "var(--text)");
+ const glow = memberColor
+ ? `${memberColor}40`
+ : "color-mix(in srgb, var(--accent) 25%, transparent)";
+
+ return (
+ <div
+ key={member.id}
+ className={cn(
+ site.memberGridItem,
+ isFronting && site.frontingGlow,
+ s.gridItemRelative,
+ )}
+ style={
+ {
+ "--member-color": borderColor,
+ } as React.CSSProperties & { "--member-color": string }
+ }
+ >
+ {/* Status Bubble - Thought Bubble Style */}
+ {member.status && (
+ <div className={s.bubbleWrapGrid}>
+ <div className={s.bubble} style={{ maxWidth: "130px" }}>
+ <div className={s.bubbleRow}>
+ {member.status.emoji && (
+ <span className={s.bubbleEmoji}>{member.status.emoji}</span>
+ )}
+ <span className={s.bubbleText}>{member.status.text}</span>
+ </div>
+ {/* Thought bubble circles - staggered diagonally toward avatar */}
+ <div className={s.bubbleDotWrapLarge}>
+ <div className={s.bubbleDotLarge}></div>
+ </div>
+ <div className={s.bubbleDotWrapSmall}>
+ <div className={s.bubbleDotSmall}></div>
+ </div>
+ </div>
+ </div>
+ )}
+ <Link href={`/${member.name}`}>
+ <div className={s.cardCenter}>
+ <div className={s.relativeInline}>
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+ <img
+ src={member.avatar_url || FALLBACK_AVATAR}
+ alt={member.display_name || member.name}
+ className={s.avatarImgGrid}
+ style={{
+ borderColor: borderColor,
+ boxShadow: `0 0 12px ${glow}`,
+ }}
+ onError={(e) => {
+ (e.target as HTMLImageElement).src = FALLBACK_AVATAR;
+ }}
+ />
+ </div>
+ <h3
+ className={s.memberCardName}
+ style={{ color: nameColor }}
+ >
+ {member.display_name || member.name}
+ </h3>
+ {member.pronouns && (
+ <p className={s.memberPronouns}>{member.pronouns}</p>
+ )}
+
+ {member.tags && member.tags.length > 0 && (
+ <div className={s.tagRowSpaced}>
+ {[...member.tags]
+ .sort((a, b) => a.localeCompare(b))
+ .slice(0, 2)
+ .map((tag, index) => (
+ <span key={index} className={s.tagChip}>
+ {tag}
+ </span>
+ ))}
+ {member.tags.length > 2 && (
+ <span className={s.tagMore}>+{member.tags.length - 2}</span>
+ )}
+ </div>
+ )}
+ </div>
+ </Link>
+ </div>
+ );
+ })}
+ </div>
+ ) : (
+ <div className={s.emptyState}>
+ <p className={s.emptyText}>
+ {searchQuery || currentTagFilter
+ ? "No members found matching your criteria."
+ : "No members available."}
+ </p>
+ {(searchQuery || currentTagFilter) && (
+ <div className={s.emptyActions}>
+ {searchQuery && (
+ <Button variant="secondary" size="sm" onClick={clearSearch}>
+ Clear search
+ </Button>
+ )}
+ {currentTagFilter && (
+ <Button variant="secondary" size="sm" onClick={() => setCurrentTagFilter(null)}>
+ Clear filter
+ </Button>
+ )}
+ </div>
+ )}
+ </div>
+ )}
+ </div>
+ </div>
+ </main>
+
+ {/* Footer */}
+ <footer className={site.githubFooter}>
+ <a
+ href="https://github.com/doughmination/web/tree/main/system"
+ target="_blank"
+ rel="noopener noreferrer"
+ className={site.githubButton}
+ >
+ <Github />
+ View on GitHub
+ </a>
+ <p className={s.footerNote}>
+ Doughmination System® is a trade mark in the United Kingdom under trademark number{" "}
+ <a
+ href="https://www.ipo.gov.uk/t-tmj.htm/t-tmj/tm-journals/2025-039/UK00004263144.html"
+ target="_blank"
+ rel="noopener noreferrer"
+ className={s.footerNoteLink}
+ >
+ UK00004263144
+ </a>
+ </p>
+ </footer>
+
+ {/* SEO Content Section - Hidden visually but readable by search engines */}
+ <section className={s.srOnly} aria-label="About Doughmination System">
+ <h1>Doughmination System® - Real-Time Plural System Tracker</h1>
+ <p>
+ Welcome to the Doughmination System®, a plural system (DID/OSDD) management platform.
+ Track current fronters, view all system members, and manage switching patterns in
+ real-time.
+ </p>
+ <h2>Features</h2>
+ <ul>
+ <li>Real-time fronting status tracking</li>
+ <li>Comprehensive member profiles with pronouns and descriptions</li>
+ <li>Mental health state monitoring</li>
+ <li>Member tagging and categorization</li>
+ <li>Switching metrics and analytics</li>
+ </ul>
+ </section>
+ </div>
+ );
+}
diff --git a/src/components/MemberStatus.tsx b/src/components/MemberStatus.tsx
new file mode 100644
index 0000000..7d5206d
--- /dev/null
+++ b/src/components/MemberStatus.tsx
@@ -0,0 +1,51 @@
+/* system/src/components/MemberStatus.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import React from "react";
+import * as s from "./components.css";
+
+interface MemberStatus {
+ text: string;
+ emoji?: string;
+ updated_at: string;
+}
+
+interface MemberStatusProps {
+ status: MemberStatus | null | undefined;
+ compact?: boolean;
+}
+
+export default function MemberStatus({ status, compact = false }: MemberStatusProps) {
+ if (!status) {
+ return null;
+ }
+
+ if (compact) {
+ // Compact version for member cards
+ return (
+ <div className={s.statusCompact}>
+ {status.emoji && <span className={s.statusCompactEmoji}>{status.emoji}</span>}
+ <span className={s.statusCompactText}>{status.text}</span>
+ </div>
+ );
+ }
+
+ // Full version for member details page
+ return (
+ <div className={s.statusFull}>
+ {status.emoji && <span className={s.statusFullEmoji}>{status.emoji}</span>}
+ <div className={s.statusFullBody}>
+ <p className={s.statusFullText}>{status.text}</p>
+ <p className={s.statusFullUpdated}>
+ Updated {new Date(status.updated_at).toLocaleString()}
+ </p>
+ </div>
+ </div>
+ );
+}
+
+// Export the status interface for use in other components
+export type { MemberStatus };
diff --git a/src/components/ProtectedRoute.tsx b/src/components/ProtectedRoute.tsx
new file mode 100644
index 0000000..bfe9ecc
--- /dev/null
+++ b/src/components/ProtectedRoute.tsx
@@ -0,0 +1,111 @@
+/* system/src/components/ProtectedRoute.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import React, { useEffect, useState } from "react";
+import { usePathname, useRouter } from "next/navigation";
+import { useUserInfo } from "@doughmination/react-api";
+import * as s from "./components.css";
+
+interface ProtectedRouteProps {
+ children: React.ReactNode;
+ adminRequired?: boolean;
+ ownerRequired?: boolean;
+ petRequired?: boolean;
+}
+
+const ProtectedRoute: React.FC<ProtectedRouteProps> = ({
+ children,
+ adminRequired = false,
+ ownerRequired = false,
+ petRequired = false,
+}) => {
+ const router = useRouter();
+ const pathname = usePathname();
+
+ // Read the token once on mount; the provider also feeds it to the client.
+ const [token, setToken] = useState<string | null>(null);
+ const [tokenLoaded, setTokenLoaded] = useState(false);
+ useEffect(() => {
+ setToken(localStorage.getItem("token"));
+ setTokenLoaded(true);
+ }, []);
+
+ const isMock = token?.startsWith("mock-") ?? false;
+
+ // user_info returns is_admin / is_owner / is_pet in one call, replacing the
+ // three separate /auth/* requests.
+ const userInfo = useUserInfo({ enabled: Boolean(token) && !isMock });
+
+ let isAuthenticated = false;
+ let isAdmin = false;
+ let isOwner = false;
+ let isPet = false;
+
+ if (token && isMock) {
+ isAuthenticated = true;
+ isAdmin = token === "mock-admin";
+ isOwner = token === "mock-owner";
+ isPet = token === "mock-pet";
+ } else if (token && userInfo.data) {
+ const u = userInfo.data;
+ isAuthenticated = true;
+ isAdmin = !!u.is_admin;
+ isOwner = !!u.is_owner;
+ isPet = !!u.is_pet;
+ }
+
+ const loading =
+ !tokenLoaded || (Boolean(token) && !isMock && userInfo.isLoading);
+
+ useEffect(() => {
+ if (!loading && !isAuthenticated) {
+ router.replace(`/user/login?from=${encodeURIComponent(pathname)}`);
+ }
+ }, [loading, isAuthenticated, router, pathname]);
+
+ if (loading) {
+ return <div className={s.guardLoading}>Verifying access...</div>;
+ }
+
+ if (!isAuthenticated) {
+ // redirecting to /user/login
+ return null;
+ }
+
+ const denied = (emoji: string, title: string, text: string) => (
+ <div className={s.guardPage}>
+ <div className={s.guardCard}>
+ <div className={s.guardEmoji}>{emoji}</div>
+ <h1 className={s.guardTitle}>{title}</h1>
+ <p className={s.guardText}>{text}</p>
+ <button onClick={() => window.history.back()} className={s.guardBack}>
+ ← Go Back
+ </button>
+ </div>
+ </div>
+ );
+
+ // Check owner permission (owner has all permissions)
+ if (ownerRequired && !isOwner) {
+ return denied("🔒", "Owner Access Required", "This area is restricted to system owners only.");
+ }
+
+ // Check admin permission (admin and owner have admin access)
+ if (adminRequired && !isAdmin && !isOwner) {
+ return denied("🔒", "Admin Access Required", "This area is restricted to administrators only.");
+ }
+
+ // Check pet permission
+ if (petRequired && !isPet && !isOwner) {
+ return denied("🐾", "Pet Access Required", "This area is restricted to pets only.");
+ }
+
+ return <>{children}</>;
+};
+
+export default ProtectedRoute;
diff --git a/src/components/VisitorTracker.tsx b/src/components/VisitorTracker.tsx
new file mode 100644
index 0000000..e865082
--- /dev/null
+++ b/src/components/VisitorTracker.tsx
@@ -0,0 +1,52 @@
+/* system/src/components/VisitorTracker.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import { useEffect } from "react";
+import { usePathname } from "next/navigation";
+
+/**
+ * Pings POST /helper on every route change so the backend can log the visit.
+ * Renders nothing. Mounted in the root layout.
+ *
+ * Fires for ALL paths, including the 404 catch-all (which is the point —
+ * the backend wants to see attempts at non-existent URLs too).
+ */
+const VisitorTracker = () => {
+ const pathname = usePathname();
+
+ useEffect(() => {
+ const path = `${pathname}${window.location.search}${window.location.hash}`;
+ const body = JSON.stringify({ path });
+
+ // Prefer sendBeacon when leaving the page; otherwise plain fetch.
+ // Both are fire-and-forget — we never block rendering on the log call.
+ try {
+ if (typeof navigator !== "undefined" && navigator.sendBeacon) {
+ const blob = new Blob([body], { type: "application/json" });
+ const ok = navigator.sendBeacon("https://doughmination.uk/v2/plural/helper", blob);
+ if (ok) return;
+ }
+ } catch {
+ // fall through to fetch
+ }
+
+ fetch("https://doughmination.uk/v2/plural/helper", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body,
+ keepalive: true,
+ credentials: "same-origin",
+ }).catch(() => {
+ // Silently ignore — visitor logging must never break the UI.
+ });
+ }, [pathname]);
+
+ return null;
+};
+
+export default VisitorTracker;
diff --git a/src/components/components.css.ts b/src/components/components.css.ts
new file mode 100644
index 0000000..4e68294
--- /dev/null
+++ b/src/components/components.css.ts
@@ -0,0 +1,141 @@
+/* system/src/components/components.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ *
+ * Styles for app-level components (MemberStatus, ThemeToggle, ProtectedRoute).
+ */
+
+import { style } from "@vanilla-extract/css";
+import { vars } from "@/styles/theme.css";
+
+/* MemberStatus */
+export const statusCompact = style({
+ marginTop: "0.5rem",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ gap: "0.25rem",
+});
+
+export const statusCompactEmoji = style({
+ fontSize: "0.875rem",
+});
+
+export const statusCompactText = style({
+ fontSize: "0.75rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ overflow: "hidden",
+ textOverflow: "ellipsis",
+ whiteSpace: "nowrap",
+ maxWidth: "100px",
+});
+
+export const statusFull = style({
+ display: "flex",
+ alignItems: "flex-start",
+ gap: "0.5rem",
+ padding: "0.75rem",
+ borderRadius: "0.5rem",
+ backgroundColor: `color-mix(in srgb, ${vars.surface} 50%, transparent)`,
+ border: `1px solid ${vars.surface}`,
+});
+
+export const statusFullEmoji = style({
+ fontSize: "1.5rem",
+ flexShrink: 0,
+});
+
+export const statusFullBody = style({
+ flex: 1,
+ minWidth: 0,
+});
+
+export const statusFullText = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "0.875rem",
+ wordBreak: "break-word",
+});
+
+export const statusFullUpdated = style({
+ fontSize: "0.75rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ marginTop: "0.25rem",
+});
+
+/* ThemeToggle */
+export const themeToggleButton = style({
+ position: "relative",
+ overflow: "hidden",
+ transition: "all 0.3s ease",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ ":hover": {
+ transform: "scale(1.05)",
+ },
+});
+
+export const themeToggleInner = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.5rem",
+});
+
+export const themeToggleIcon = style({ fontSize: "0.875rem" });
+export const themeToggleLabel = style({
+ fontSize: "0.75rem",
+ fontWeight: 500
+});
+
+/* ProtectedRoute */
+export const guardLoading = style({
+ textAlign: "center",
+ padding: "2rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const guardPage = style({
+ width: "100%",
+ margin: "0 auto",
+ padding: "1.5rem",
+ paddingTop: "5rem",
+});
+
+export const guardCard = style({
+ maxWidth: "28rem",
+ margin: "0 auto",
+ textAlign: "center",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+});
+
+export const guardEmoji = style({ fontSize: "3.75rem" });
+
+export const guardTitle = style({
+ fontSize: "1.5rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+});
+
+export const guardText = style({
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const guardBack = style({
+ color: vars.accent,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ background: "none",
+ border: "none",
+ cursor: "pointer",
+ ":hover": { textDecoration: "underline" },
+});
diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsx
new file mode 100644
index 0000000..36383ad
--- /dev/null
+++ b/src/components/ui/alert.tsx
@@ -0,0 +1,35 @@
+/* system/src/components/ui/alert.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import * as React from "react";
+import { cn } from "@/lib/utils";
+import { alert, alertTitle, alertDescription } from "./ui.css";
+
+type AlertVariants = NonNullable<Parameters<typeof alert>[0]>;
+
+const Alert = React.forwardRef<
+ HTMLDivElement,
+ React.HTMLAttributes<HTMLDivElement> & { variant?: AlertVariants["variant"] }
+>(({ className, variant, ...props }, ref) => (
+ <div ref={ref} role="alert" className={cn(alert({ variant }), className)} {...props} />
+));
+Alert.displayName = "Alert";
+
+const AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
+ ({ className, ...props }, ref) => (
+ <h5 ref={ref} className={cn(alertTitle, className)} {...props} />
+ ),
+);
+AlertTitle.displayName = "AlertTitle";
+
+const AlertDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn(alertDescription, className)} {...props} />
+ ),
+);
+AlertDescription.displayName = "AlertDescription";
+
+export { Alert, AlertTitle, AlertDescription };
diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx
new file mode 100644
index 0000000..018ed9a
--- /dev/null
+++ b/src/components/ui/badge.tsx
@@ -0,0 +1,21 @@
+/* system/src/components/ui/badge.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import * as React from "react";
+import { cn } from "@/lib/utils";
+import { badge } from "./ui.css";
+
+type BadgeVariants = NonNullable<Parameters<typeof badge>[0]>;
+
+export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
+ variant?: BadgeVariants["variant"];
+}
+
+function Badge({ className, variant, ...props }: BadgeProps) {
+ return <div className={cn(badge({ variant }), className)} {...props} />;
+}
+
+export { Badge, badge as badgeVariants };
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
new file mode 100644
index 0000000..676881c
--- /dev/null
+++ b/src/components/ui/button.tsx
@@ -0,0 +1,36 @@
+/* system/src/components/ui/button.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import * as React from "react";
+import { Slot } from "@radix-ui/react-slot";
+import { cn } from "@/lib/utils";
+import { button } from "./ui.css";
+
+type ButtonVariants = NonNullable<Parameters<typeof button>[0]>;
+
+export interface ButtonProps
+ extends React.ButtonHTMLAttributes<HTMLButtonElement> {
+ variant?: ButtonVariants["variant"];
+ size?: ButtonVariants["size"];
+ asChild?: boolean;
+}
+
+const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
+ const Comp = asChild ? Slot : "button";
+ return (
+ <Comp className={cn(button({
+ variant,
+ size
+ }), className)} ref={ref} {...props} />
+ );
+ },
+);
+Button.displayName = "Button";
+
+export { Button, button as buttonVariants };
diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx
new file mode 100644
index 0000000..725ec64
--- /dev/null
+++ b/src/components/ui/card.tsx
@@ -0,0 +1,53 @@
+/* system/src/components/ui/card.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import * as React from "react";
+import { cn } from "@/lib/utils";
+import * as s from "./ui.css";
+
+const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn(s.card, className)} {...props} />
+ ),
+);
+Card.displayName = "Card";
+
+const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn(s.cardHeader, className)} {...props} />
+ ),
+);
+CardHeader.displayName = "CardHeader";
+
+const CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
+ ({ className, ...props }, ref) => (
+ <h3 ref={ref} className={cn(s.cardTitle, className)} {...props} />
+ ),
+);
+CardTitle.displayName = "CardTitle";
+
+const CardDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
+ ({ className, ...props }, ref) => (
+ <p ref={ref} className={cn(s.cardDescription, className)} {...props} />
+ ),
+);
+CardDescription.displayName = "CardDescription";
+
+const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn(s.cardContent, className)} {...props} />
+ ),
+);
+CardContent.displayName = "CardContent";
+
+const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn(s.cardFooter, className)} {...props} />
+ ),
+);
+CardFooter.displayName = "CardFooter";
+
+export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
diff --git a/src/components/ui/checkbox.tsx b/src/components/ui/checkbox.tsx
new file mode 100644
index 0000000..d29604e
--- /dev/null
+++ b/src/components/ui/checkbox.tsx
@@ -0,0 +1,27 @@
+/* system/src/components/ui/checkbox.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import * as React from "react";
+import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
+import { Check } from "react-bootstrap-icons";
+import { cn } from "@/lib/utils";
+import * as s from "./ui.css";
+
+const Checkbox = React.forwardRef<
+ React.ElementRef<typeof CheckboxPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
+>(({ className, ...props }, ref) => (
+ <CheckboxPrimitive.Root ref={ref} className={cn(s.checkbox, className)} {...props}>
+ <CheckboxPrimitive.Indicator className={s.checkboxIndicator}>
+ <Check size={16} />
+ </CheckboxPrimitive.Indicator>
+ </CheckboxPrimitive.Root>
+));
+Checkbox.displayName = CheckboxPrimitive.Root.displayName;
+
+export { Checkbox };
diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx
new file mode 100644
index 0000000..c60bf4f
--- /dev/null
+++ b/src/components/ui/input.tsx
@@ -0,0 +1,18 @@
+/* system/src/components/ui/input.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import * as React from "react";
+import { cn } from "@/lib/utils";
+import * as s from "./ui.css";
+
+const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
+ ({ className, type, ...props }, ref) => {
+ return <input type={type} className={cn(s.input, className)} ref={ref} {...props} />;
+ },
+);
+Input.displayName = "Input";
+
+export { Input };
diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx
new file mode 100644
index 0000000..0414c11
--- /dev/null
+++ b/src/components/ui/label.tsx
@@ -0,0 +1,22 @@
+/* system/src/components/ui/label.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import * as React from "react";
+import * as LabelPrimitive from "@radix-ui/react-label";
+import { cn } from "@/lib/utils";
+import * as s from "./ui.css";
+
+const Label = React.forwardRef<
+ React.ElementRef<typeof LabelPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>
+>(({ className, ...props }, ref) => (
+ <LabelPrimitive.Root ref={ref} className={cn(s.label, className)} {...props} />
+));
+Label.displayName = LabelPrimitive.Root.displayName;
+
+export { Label };
diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx
new file mode 100644
index 0000000..5094623
--- /dev/null
+++ b/src/components/ui/select.tsx
@@ -0,0 +1,128 @@
+/* system/src/components/ui/select.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import * as React from "react";
+import * as SelectPrimitive from "@radix-ui/react-select";
+import { Check, ChevronDown, ChevronUp } from "react-bootstrap-icons";
+import { cn } from "@/lib/utils";
+import * as s from "./ui.css";
+
+const Select = SelectPrimitive.Root;
+
+const SelectGroup = SelectPrimitive.Group;
+
+const SelectValue = SelectPrimitive.Value;
+
+const SelectTrigger = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Trigger ref={ref} className={cn(s.selectTrigger, className)} {...props}>
+ {children}
+ <SelectPrimitive.Icon asChild>
+ <ChevronDown className={s.selectIcon} />
+ </SelectPrimitive.Icon>
+ </SelectPrimitive.Trigger>
+));
+SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
+
+const SelectScrollUpButton = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.ScrollUpButton
+ ref={ref}
+ className={cn(s.selectScrollButton, className)}
+ {...props}
+ >
+ <ChevronUp size={16} />
+ </SelectPrimitive.ScrollUpButton>
+));
+SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
+
+const SelectScrollDownButton = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.ScrollDownButton
+ ref={ref}
+ className={cn(s.selectScrollButton, className)}
+ {...props}
+ >
+ <ChevronDown size={16} />
+ </SelectPrimitive.ScrollDownButton>
+));
+SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
+
+const SelectContent = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
+>(({ className, children, position = "popper", ...props }, ref) => (
+ <SelectPrimitive.Portal>
+ <SelectPrimitive.Content
+ ref={ref}
+ className={cn(s.selectContent, className)}
+ position={position}
+ {...props}
+ >
+ <SelectScrollUpButton />
+ <SelectPrimitive.Viewport
+ className={cn(s.selectViewport, position === "popper" && s.selectViewportPopper)}
+ >
+ {children}
+ </SelectPrimitive.Viewport>
+ <SelectScrollDownButton />
+ </SelectPrimitive.Content>
+ </SelectPrimitive.Portal>
+));
+SelectContent.displayName = SelectPrimitive.Content.displayName;
+
+const SelectLabel = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Label>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.Label ref={ref} className={cn(s.selectLabel, className)} {...props} />
+));
+SelectLabel.displayName = SelectPrimitive.Label.displayName;
+
+const SelectItem = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Item ref={ref} className={cn(s.selectItem, className)} {...props}>
+ <span className={s.selectItemIndicator}>
+ <SelectPrimitive.ItemIndicator>
+ <Check size={16} />
+ </SelectPrimitive.ItemIndicator>
+ </span>
+
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ </SelectPrimitive.Item>
+));
+SelectItem.displayName = SelectPrimitive.Item.displayName;
+
+const SelectSeparator = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.Separator ref={ref} className={cn(s.selectSeparator, className)} {...props} />
+));
+SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
+
+export {
+ Select,
+ SelectGroup,
+ SelectValue,
+ SelectTrigger,
+ SelectContent,
+ SelectLabel,
+ SelectItem,
+ SelectSeparator,
+ SelectScrollUpButton,
+ SelectScrollDownButton,
+};
diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsx
new file mode 100644
index 0000000..2140fb4
--- /dev/null
+++ b/src/components/ui/separator.tsx
@@ -0,0 +1,32 @@
+/* system/src/components/ui/separator.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import * as React from "react";
+import * as SeparatorPrimitive from "@radix-ui/react-separator";
+import { cn } from "@/lib/utils";
+import * as s from "./ui.css";
+
+const Separator = React.forwardRef<
+ React.ElementRef<typeof SeparatorPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
+>(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => (
+ <SeparatorPrimitive.Root
+ ref={ref}
+ decorative={decorative}
+ orientation={orientation}
+ className={cn(
+ s.separatorBase,
+ orientation === "horizontal" ? s.separatorHorizontal : s.separatorVertical,
+ className,
+ )}
+ {...props}
+ />
+));
+Separator.displayName = SeparatorPrimitive.Root.displayName;
+
+export { Separator };
diff --git a/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsx
new file mode 100644
index 0000000..0e8e20d
--- /dev/null
+++ b/src/components/ui/sonner.tsx
@@ -0,0 +1,40 @@
+/* system/src/components/ui/sonner.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import { useEffect, useState } from "react";
+import { Toaster as Sonner, toast } from "sonner";
+
+type ToasterProps = React.ComponentProps<typeof Sonner>;
+
+const Toaster = ({ ...props }: ToasterProps) => {
+ const [flavor, setFlavor] = useState("cherry");
+
+ useEffect(() => {
+ setFlavor(document.documentElement.getAttribute("data-flavor") ?? "cherry");
+ const onChange = (e: Event) =>
+ setFlavor((e as CustomEvent<{ theme: string }>).detail.theme);
+ document.addEventListener("themeChanged", onChange);
+ return () => document.removeEventListener("themeChanged", onChange);
+ }, []);
+
+ return (
+ <Sonner
+ theme={flavor === "latte" ? "light" : "dark"}
+ style={
+ {
+ "--normal-bg": "var(--bg)",
+ "--normal-text": "var(--text)",
+ "--normal-border": "var(--surface)",
+ } as React.CSSProperties
+ }
+ {...props}
+ />
+ );
+};
+
+export { Toaster, toast };
diff --git a/src/components/ui/toast.tsx b/src/components/ui/toast.tsx
new file mode 100644
index 0000000..f3c4b45
--- /dev/null
+++ b/src/components/ui/toast.tsx
@@ -0,0 +1,92 @@
+/* system/src/components/ui/toast.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import * as React from "react";
+import * as ToastPrimitives from "@radix-ui/react-toast";
+import { X } from "react-bootstrap-icons";
+import { cn } from "@/lib/utils";
+import * as s from "./ui.css";
+
+const ToastProvider = ToastPrimitives.Provider;
+
+const ToastViewport = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Viewport>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Viewport ref={ref} className={cn(s.toastViewport, className)} {...props} />
+));
+ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
+
+type ToastRootVariants = NonNullable<Parameters<typeof s.toastRoot>[0]>;
+
+const Toast = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Root>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> & {
+ variant?: ToastRootVariants["variant"];
+ }
+>(({ className, variant, ...props }, ref) => {
+ return (
+ <ToastPrimitives.Root ref={ref} className={cn(s.toastRoot({ variant }), className)} {...props} />
+ );
+});
+Toast.displayName = ToastPrimitives.Root.displayName;
+
+const ToastAction = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Action>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Action ref={ref} className={cn(s.toastAction, className)} {...props} />
+));
+ToastAction.displayName = ToastPrimitives.Action.displayName;
+
+const ToastClose = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Close>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Close
+ ref={ref}
+ className={cn(s.toastClose, className)}
+ toast-close=""
+ {...props}
+ >
+ <X size={16} />
+ </ToastPrimitives.Close>
+));
+ToastClose.displayName = ToastPrimitives.Close.displayName;
+
+const ToastTitle = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Title>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Title ref={ref} className={cn(s.toastTitle, className)} {...props} />
+));
+ToastTitle.displayName = ToastPrimitives.Title.displayName;
+
+const ToastDescription = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Description>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Description ref={ref} className={cn(s.toastDescription, className)} {...props} />
+));
+ToastDescription.displayName = ToastPrimitives.Description.displayName;
+
+type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
+
+type ToastActionElement = React.ReactElement<typeof ToastAction>;
+
+export {
+ type ToastProps,
+ type ToastActionElement,
+ ToastProvider,
+ ToastViewport,
+ Toast,
+ ToastTitle,
+ ToastDescription,
+ ToastClose,
+ ToastAction,
+};
diff --git a/src/components/ui/toaster.tsx b/src/components/ui/toaster.tsx
new file mode 100644
index 0000000..3c02f09
--- /dev/null
+++ b/src/components/ui/toaster.tsx
@@ -0,0 +1,40 @@
+/* system/src/components/ui/toaster.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import { useToast } from "@/lib/use-toast";
+import {
+ Toast,
+ ToastClose,
+ ToastDescription,
+ ToastProvider,
+ ToastTitle,
+ ToastViewport,
+} from "@/components/ui/toast";
+import { toastContentGrid } from "./ui.css";
+
+export function Toaster() {
+ const { toasts } = useToast();
+
+ return (
+ <ToastProvider>
+ {toasts.map(function({ id, title, description, action, ...props }) {
+ return (
+ <Toast key={id} {...props}>
+ <div className={toastContentGrid}>
+ {title && <ToastTitle>{title}</ToastTitle>}
+ {description && <ToastDescription>{description}</ToastDescription>}
+ </div>
+ {action}
+ <ToastClose />
+ </Toast>
+ );
+ })}
+ <ToastViewport />
+ </ToastProvider>
+ );
+}
diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsx
new file mode 100644
index 0000000..d3a8388
--- /dev/null
+++ b/src/components/ui/tooltip.tsx
@@ -0,0 +1,33 @@
+/* system/src/components/ui/tooltip.tsx
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import * as React from "react";
+import * as TooltipPrimitive from "@radix-ui/react-tooltip";
+import { cn } from "@/lib/utils";
+import * as s from "./ui.css";
+
+const TooltipProvider = TooltipPrimitive.Provider;
+
+const Tooltip = TooltipPrimitive.Root;
+
+const TooltipTrigger = TooltipPrimitive.Trigger;
+
+const TooltipContent = React.forwardRef<
+ React.ElementRef<typeof TooltipPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
+>(({ className, sideOffset = 4, ...props }, ref) => (
+ <TooltipPrimitive.Content
+ ref={ref}
+ sideOffset={sideOffset}
+ className={cn(s.tooltipContent, className)}
+ {...props}
+ />
+));
+TooltipContent.displayName = TooltipPrimitive.Content.displayName;
+
+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
diff --git a/src/components/ui/ui.css.ts b/src/components/ui/ui.css.ts
new file mode 100644
index 0000000..dd4958e
--- /dev/null
+++ b/src/components/ui/ui.css.ts
@@ -0,0 +1,660 @@
+/* system/src/components/ui/ui.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ *
+ * vanilla-extract styles for the UI component library (formerly shadcn/ui
+ * Tailwind classes). Variants are expressed with @vanilla-extract/recipes.
+ */
+
+import { globalStyle, keyframes, style } from "@vanilla-extract/css";
+import { recipe } from "@vanilla-extract/recipes";
+import { vars } from "@/styles/theme.css";
+
+const mix = (color: string, pct: number) =>
+ `color-mix(in srgb, ${color} ${pct}%, transparent)`;
+
+/* Shared animations (replacing tailwindcss-animate) */
+const fadeZoomIn = keyframes({
+ from: {
+ opacity: 0,
+ transform: "scale(0.95)"
+ },
+ to: {
+ opacity: 1,
+ transform: "scale(1)"
+ },
+});
+const fadeZoomOut = keyframes({
+ from: {
+ opacity: 1,
+ transform: "scale(1)"
+ },
+ to: {
+ opacity: 0,
+ transform: "scale(0.95)"
+ },
+});
+
+/* ============================================================================
+ BUTTON
+ ============================================================================ */
+export const button = recipe({
+ base: {
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ gap: "0.5rem",
+ whiteSpace: "nowrap",
+ borderRadius: "0.375rem",
+ fontSize: "0.875rem",
+ lineHeight: "1.25rem",
+ fontWeight: 500,
+ transition: "color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease",
+ cursor: "pointer",
+ border: "1px solid transparent",
+ selectors: {
+ "&:focus-visible": {
+ outline: "none",
+ boxShadow: `0 0 0 2px ${vars.bg}, 0 0 0 4px ${vars.accent}`,
+ },
+ "&:disabled": {
+ pointerEvents: "none",
+ opacity: 0.5,
+ },
+ },
+ },
+ variants: {
+ variant: {
+ default: {
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ ":hover": { backgroundColor: mix(vars.accent, 90) },
+ },
+ destructive: {
+ backgroundColor: vars.danger,
+ color: vars.bg,
+ ":hover": { backgroundColor: mix(vars.danger, 90) },
+ },
+ outline: {
+ border: `1px solid ${vars.surface}`,
+ backgroundColor: vars.bg,
+ color: vars.text,
+ ":hover": {
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ },
+ },
+ secondary: {
+ backgroundColor: vars.surface,
+ color: vars.text,
+ ":hover": { backgroundColor: mix(vars.surface, 80) },
+ },
+ ghost: {
+ backgroundColor: "transparent",
+ color: vars.text,
+ ":hover": {
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ },
+ },
+ link: {
+ backgroundColor: "transparent",
+ color: vars.accent,
+ textUnderlineOffset: "4px",
+ ":hover": { textDecoration: "underline" },
+ },
+ },
+ size: {
+ default: {
+ height: "2.5rem",
+ padding: "0.5rem 1rem"
+ },
+ sm: {
+ height: "2.25rem",
+ borderRadius: "0.375rem",
+ padding: "0 0.75rem"
+ },
+ lg: {
+ height: "2.75rem",
+ borderRadius: "0.375rem",
+ padding: "0 2rem"
+ },
+ icon: {
+ height: "2.5rem",
+ width: "2.5rem",
+ padding: 0
+ },
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+});
+
+/* ============================================================================
+ CARD
+ ============================================================================ */
+export const card = style({
+ borderRadius: "0.5rem",
+ border: `1px solid ${vars.surface}`,
+ backgroundColor: vars.bgRaised,
+ color: vars.text,
+ boxShadow: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
+});
+
+export const cardHeader = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.375rem",
+ padding: "1.5rem",
+});
+
+export const cardTitle = style({
+ fontSize: "1.5rem",
+ fontWeight: 600,
+ lineHeight: 1,
+ letterSpacing: "-0.025em",
+});
+
+export const cardDescription = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+});
+
+export const cardContent = style({
+ padding: "1.5rem",
+ paddingTop: 0,
+});
+
+export const cardFooter = style({
+ display: "flex",
+ alignItems: "center",
+ padding: "1.5rem",
+ paddingTop: 0,
+});
+
+/* ============================================================================
+ INPUT
+ ============================================================================ */
+export const input = style({
+ display: "flex",
+ height: "2.5rem",
+ width: "100%",
+ borderRadius: "0.375rem",
+ border: `1px solid ${vars.surface}`,
+ backgroundColor: vars.bg,
+ padding: "0.5rem 0.75rem",
+ fontSize: "1rem",
+ color: vars.text,
+ "::placeholder": {
+ color: vars.textMuted,
+ },
+ selectors: {
+ "&:focus-visible": {
+ outline: "none",
+ boxShadow: `0 0 0 2px ${vars.bg}, 0 0 0 4px ${vars.accent}`,
+ },
+ "&:disabled": {
+ cursor: "not-allowed",
+ opacity: 0.5,
+ },
+ },
+ "@media": {
+ "screen and (min-width: 768px)": { fontSize: "0.875rem" },
+ },
+});
+
+/* ============================================================================
+ LABEL
+ ============================================================================ */
+export const label = style({
+ fontSize: "0.875rem",
+ fontWeight: 500,
+ lineHeight: 1,
+});
+
+/* ============================================================================
+ BADGE
+ ============================================================================ */
+export const badge = recipe({
+ base: {
+ display: "inline-flex",
+ alignItems: "center",
+ borderRadius: "9999px",
+ border: "1px solid transparent",
+ padding: "0.125rem 0.625rem",
+ fontSize: "0.75rem",
+ fontWeight: 600,
+ transition: "colors 0.15s ease",
+ },
+ variants: {
+ variant: {
+ default: {
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ },
+ secondary: {
+ backgroundColor: vars.surface,
+ color: vars.text,
+ },
+ destructive: {
+ backgroundColor: vars.danger,
+ color: vars.bg,
+ },
+ outline: {
+ color: vars.text,
+ borderColor: vars.surface,
+ backgroundColor: "transparent",
+ },
+ },
+ },
+ defaultVariants: { variant: "default" },
+});
+
+/* ============================================================================
+ ALERT
+ ============================================================================ */
+export const alert = recipe({
+ base: {
+ position: "relative",
+ width: "100%",
+ borderRadius: "0.5rem",
+ border: `1px solid ${vars.surface}`,
+ padding: "1rem",
+ },
+ variants: {
+ variant: {
+ default: {
+ backgroundColor: vars.bg,
+ color: vars.text,
+ },
+ destructive: {
+ borderColor: mix(vars.danger, 50),
+ color: vars.danger,
+ },
+ },
+ },
+ defaultVariants: { variant: "default" },
+});
+
+export const alertTitle = style({
+ marginBottom: "0.25rem",
+ fontWeight: 500,
+ lineHeight: 1,
+ letterSpacing: "-0.025em",
+});
+
+export const alertDescription = style({
+ fontSize: "0.875rem",
+});
+
+globalStyle(`${alertDescription} p`, { lineHeight: 1.625 });
+
+/* ============================================================================
+ SEPARATOR
+ ============================================================================ */
+export const separatorBase = style({
+ flexShrink: 0,
+ backgroundColor: vars.surface,
+});
+
+export const separatorHorizontal = style({
+ height: "1px",
+ width: "100%"
+});
+export const separatorVertical = style({
+ height: "100%",
+ width: "1px"
+});
+
+/* ============================================================================
+ CHECKBOX
+ ============================================================================ */
+export const checkbox = style({
+ height: "1rem",
+ width: "1rem",
+ flexShrink: 0,
+ borderRadius: "0.125rem",
+ border: `1px solid ${vars.accent}`,
+ backgroundColor: "transparent",
+ cursor: "pointer",
+ selectors: {
+ '&[data-state="checked"]': {
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ },
+ "&:focus-visible": {
+ outline: "none",
+ boxShadow: `0 0 0 2px ${vars.bg}, 0 0 0 4px ${vars.accent}`,
+ },
+ "&:disabled": {
+ cursor: "not-allowed",
+ opacity: 0.5,
+ },
+ },
+});
+
+export const checkboxIndicator = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ color: "currentColor",
+});
+
+/* ============================================================================
+ TOOLTIP
+ ============================================================================ */
+export const tooltipContent = style({
+ zIndex: 50,
+ overflow: "hidden",
+ borderRadius: "0.375rem",
+ border: `1px solid ${vars.surface}`,
+ backgroundColor: vars.bgRaised,
+ padding: "0.375rem 0.75rem",
+ fontSize: "0.875rem",
+ color: vars.text,
+ boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1)",
+ animation: `${fadeZoomIn} 0.15s ease`,
+ selectors: {
+ '&[data-state="closed"]': {
+ animation: `${fadeZoomOut} 0.15s ease`,
+ },
+ },
+});
+
+/* ============================================================================
+ SELECT
+ ============================================================================ */
+export const selectTrigger = style({
+ display: "flex",
+ height: "2.5rem",
+ width: "100%",
+ alignItems: "center",
+ justifyContent: "space-between",
+ borderRadius: "0.375rem",
+ border: `1px solid ${vars.surface}`,
+ backgroundColor: vars.bg,
+ color: vars.text,
+ padding: "0.5rem 0.75rem",
+ fontSize: "0.875rem",
+ cursor: "pointer",
+ selectors: {
+ "&:focus": {
+ outline: "none",
+ boxShadow: `0 0 0 2px ${vars.bg}, 0 0 0 4px ${vars.accent}`,
+ },
+ "&:disabled": {
+ cursor: "not-allowed",
+ opacity: 0.5,
+ },
+ },
+});
+
+globalStyle(`${selectTrigger} > span`, {
+ overflow: "hidden",
+ textOverflow: "ellipsis",
+ whiteSpace: "nowrap",
+});
+
+export const selectIcon = style({
+ height: "1rem",
+ width: "1rem",
+ opacity: 0.5,
+});
+
+export const selectScrollButton = style({
+ display: "flex",
+ cursor: "default",
+ alignItems: "center",
+ justifyContent: "center",
+ padding: "0.25rem 0",
+});
+
+export const selectContent = style({
+ position: "relative",
+ zIndex: 50,
+ maxHeight: "24rem",
+ minWidth: "8rem",
+ overflow: "hidden",
+ borderRadius: "0.375rem",
+ border: `1px solid ${vars.surface}`,
+ backgroundColor: vars.bgRaised,
+ color: vars.text,
+ boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1)",
+ animation: `${fadeZoomIn} 0.15s ease`,
+ selectors: {
+ '&[data-state="closed"]': {
+ animation: `${fadeZoomOut} 0.15s ease`,
+ },
+ '&[data-side="bottom"]': { transform: "translateY(0.25rem)" },
+ '&[data-side="top"]': { transform: "translateY(-0.25rem)" },
+ },
+});
+
+export const selectViewport = style({
+ padding: "0.25rem",
+});
+
+export const selectViewportPopper = style({
+ height: "var(--radix-select-trigger-height)",
+ width: "100%",
+ minWidth: "var(--radix-select-trigger-width)",
+});
+
+export const selectLabel = style({
+ padding: "0.375rem 0.5rem 0.375rem 2rem",
+ fontSize: "0.875rem",
+ fontWeight: 600,
+});
+
+export const selectItem = style({
+ position: "relative",
+ display: "flex",
+ width: "100%",
+ cursor: "default",
+ userSelect: "none",
+ alignItems: "center",
+ borderRadius: "0.125rem",
+ padding: "0.375rem 0.5rem 0.375rem 2rem",
+ fontSize: "0.875rem",
+ outline: "none",
+ selectors: {
+ "&[data-disabled]": {
+ pointerEvents: "none",
+ opacity: 0.5,
+ },
+ "&:focus": {
+ backgroundColor: vars.accent,
+ color: vars.bg,
+ },
+ },
+});
+
+export const selectItemIndicator = style({
+ position: "absolute",
+ left: "0.5rem",
+ display: "flex",
+ height: "0.875rem",
+ width: "0.875rem",
+ alignItems: "center",
+ justifyContent: "center",
+});
+
+export const selectSeparator = style({
+ margin: "0.25rem -0.25rem",
+ height: "1px",
+ backgroundColor: vars.surface,
+});
+
+/* ============================================================================
+ TOAST (Radix)
+ ============================================================================ */
+const slideInFromTop = keyframes({
+ from: { transform: "translateY(-100%)" },
+ to: { transform: "translateY(0)" },
+});
+const slideInFromBottom = keyframes({
+ from: { transform: "translateY(100%)" },
+ to: { transform: "translateY(0)" },
+});
+const slideOutToRight = keyframes({
+ from: {
+ transform: "translateX(0)",
+ opacity: 1
+ },
+ to: {
+ transform: "translateX(100%)",
+ opacity: 0
+ },
+});
+
+export const toastViewport = style({
+ position: "fixed",
+ top: 0,
+ zIndex: 100,
+ display: "flex",
+ maxHeight: "100vh",
+ width: "100%",
+ flexDirection: "column-reverse",
+ padding: "1rem",
+ "@media": {
+ "screen and (min-width: 640px)": {
+ bottom: 0,
+ right: 0,
+ top: "auto",
+ flexDirection: "column",
+ },
+ "screen and (min-width: 768px)": {
+ maxWidth: "420px",
+ },
+ },
+});
+
+export const toastRoot = recipe({
+ base: {
+ pointerEvents: "auto",
+ position: "relative",
+ display: "flex",
+ width: "100%",
+ alignItems: "center",
+ justifyContent: "space-between",
+ gap: "1rem",
+ overflow: "hidden",
+ borderRadius: "0.375rem",
+ border: `1px solid ${vars.surface}`,
+ padding: "1.5rem",
+ paddingRight: "2rem",
+ boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
+ transition: "all 0.2s ease",
+ selectors: {
+ '&[data-swipe="cancel"]': { transform: "translateX(0)" },
+ '&[data-swipe="end"]': {
+ transform: "translateX(var(--radix-toast-swipe-end-x))",
+ animation: `${slideOutToRight} 0.15s ease forwards`,
+ },
+ '&[data-swipe="move"]': {
+ transform: "translateX(var(--radix-toast-swipe-move-x))",
+ transition: "none",
+ },
+ '&[data-state="open"]': {
+ animation: `${slideInFromTop} 0.2s ease`,
+ },
+ '&[data-state="closed"]': {
+ animation: `${slideOutToRight} 0.2s ease forwards`,
+ },
+ },
+ "@media": {
+ "screen and (min-width: 640px)": {
+ selectors: {
+ '&[data-state="open"]': {
+ animation: `${slideInFromBottom} 0.2s ease`,
+ },
+ },
+ },
+ },
+ },
+ variants: {
+ variant: {
+ default: {
+ backgroundColor: vars.bg,
+ color: vars.text,
+ },
+ destructive: {
+ borderColor: vars.danger,
+ backgroundColor: vars.danger,
+ color: vars.bg,
+ },
+ },
+ },
+ defaultVariants: { variant: "default" },
+});
+
+export const toastAction = style({
+ display: "inline-flex",
+ height: "2rem",
+ flexShrink: 0,
+ alignItems: "center",
+ justifyContent: "center",
+ borderRadius: "0.375rem",
+ border: `1px solid ${vars.surface}`,
+ backgroundColor: "transparent",
+ padding: "0 0.75rem",
+ fontSize: "0.875rem",
+ fontWeight: 500,
+ cursor: "pointer",
+ transition: "colors 0.15s ease",
+ ":hover": { backgroundColor: vars.surface },
+ selectors: {
+ "&:focus": {
+ outline: "none",
+ boxShadow: `0 0 0 2px ${vars.accent}`,
+ },
+ "&:disabled": {
+ pointerEvents: "none",
+ opacity: 0.5
+ },
+ },
+});
+
+export const toastClose = style({
+ position: "absolute",
+ right: "0.5rem",
+ top: "0.5rem",
+ borderRadius: "0.375rem",
+ padding: "0.25rem",
+ color: mix(vars.text, 50),
+ opacity: 0,
+ transition: "opacity 0.15s ease",
+ background: "transparent",
+ border: "none",
+ cursor: "pointer",
+ ":hover": { color: vars.text },
+ selectors: {
+ "&:focus": {
+ opacity: 1,
+ outline: "none",
+ boxShadow: `0 0 0 2px ${vars.accent}`
+ },
+ },
+});
+
+globalStyle(`${toastRoot.classNames.base}:hover ${toastClose}`, {
+ opacity: 1,
+});
+
+export const toastTitle = style({
+ fontSize: "0.875rem",
+ fontWeight: 600,
+});
+
+export const toastDescription = style({
+ fontSize: "0.875rem",
+ opacity: 0.9,
+});
+
+export const toastContentGrid = style({
+ display: "grid",
+ gap: "0.25rem",
+});
diff --git a/src/lib/pride.ts b/src/lib/pride.ts
new file mode 100644
index 0000000..fac4776
--- /dev/null
+++ b/src/lib/pride.ts
@@ -0,0 +1,93 @@
+/* system/src/lib/pride.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+export interface PrideFlag {
+ label: string;
+ stripes: string[];
+}
+
+// Curated catalogue. `label` is what the API stores per member; `stripes` are
+// the flag's horizontal bands, top to bottom, rendered as a small swatch.
+export const PRIDE_FLAGS: PrideFlag[] = [
+ {
+ label: "Lesbian",
+ stripes: ["#d52d00", "#ff9a56", "#ffffff", "#d362a4", "#a30262"],
+ },
+ {
+ label: "Gay",
+ stripes: ["#078d70", "#98e8c1", "#ffffff", "#7bade2", "#3d1a78"],
+ },
+ {
+ label: "Bisexual",
+ stripes: ["#d60270", "#9b4f96", "#0038a8"],
+ },
+ {
+ label: "Pansexual",
+ stripes: ["#ff218c", "#ffd800", "#21b1ff"],
+ },
+ {
+ label: "Asexual",
+ stripes: ["#000000", "#a3a3a3", "#ffffff", "#800080"],
+ },
+ {
+ label: "Aromantic",
+ stripes: ["#3da542", "#a7d379", "#ffffff", "#a9a9a9", "#000000"],
+ },
+ {
+ label: "Transgender",
+ stripes: ["#5bcefa", "#f5a9b8", "#ffffff", "#f5a9b8", "#5bcefa"],
+ },
+ {
+ label: "Nonbinary",
+ stripes: ["#fcf434", "#ffffff", "#9c59d1", "#2c2c2c"],
+ },
+ {
+ label: "Genderfluid",
+ stripes: ["#ff75a2", "#ffffff", "#be18d6", "#000000", "#333ebd"],
+ },
+ {
+ label: "Genderqueer",
+ stripes: ["#b57edc", "#ffffff", "#4a8123"],
+ },
+ {
+ label: "Agender",
+ stripes: ["#000000", "#bcc4c7", "#ffffff", "#b7f684", "#ffffff", "#bcc4c7", "#000000"],
+ },
+ {
+ label: "Intersex",
+ stripes: ["#ffd800", "#7a00ac"],
+ },
+ {
+ label: "Demisexual",
+ stripes: ["#000000", "#ffffff", "#6e0070", "#d3d3d3"],
+ },
+ {
+ label: "Polyamory",
+ stripes: ["#0000ff", "#ff0000", "#000000"],
+ },
+ {
+ label: "Queer",
+ stripes: ["#b57edc", "#ffffff", "#4a8123"],
+ },
+ {
+ label: "Rainbow",
+ stripes: ["#e40303", "#ff8c00", "#ffed00", "#008026", "#004dff", "#750787"],
+ },
+];
+
+export function findPrideFlag(label: string): PrideFlag | undefined {
+ return PRIDE_FLAGS.find((flag) => flag.label.toLowerCase() === label.toLowerCase());
+}
+
+export function prideSwatchGradient(stripes: string[]): string {
+ const bandSize = 100 / stripes.length;
+ const bands = stripes.map((color, index) => {
+ const from = (bandSize * index).toFixed(2);
+ const to = (bandSize * (index + 1)).toFixed(2);
+ return `${color} ${from}%, ${color} ${to}%`;
+ });
+ return `linear-gradient(180deg, ${bands.join(", ")})`;
+}
diff --git a/src/lib/use-mobile.ts b/src/lib/use-mobile.ts
new file mode 100644
index 0000000..ed896c3
--- /dev/null
+++ b/src/lib/use-mobile.ts
@@ -0,0 +1,27 @@
+/* system/src/lib/use-mobile.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import * as React from "react";
+
+const MOBILE_BREAKPOINT = 768;
+
+export function useIsMobile() {
+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined);
+
+ React.useEffect(() => {
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
+ const onChange = () => {
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
+ };
+ mql.addEventListener("change", onChange);
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
+ return () => mql.removeEventListener("change", onChange);
+ }, []);
+
+ return !!isMobile;
+}
diff --git a/src/lib/use-toast.ts b/src/lib/use-toast.ts
new file mode 100644
index 0000000..ae900b9
--- /dev/null
+++ b/src/lib/use-toast.ts
@@ -0,0 +1,206 @@
+/* system/src/lib/use-toast.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+"use client";
+
+import * as React from "react";
+
+import type { ToastActionElement, ToastProps } from "@/components/ui/toast";
+
+const TOAST_LIMIT = 1;
+const TOAST_REMOVE_DELAY = 1000000;
+
+type ToasterToast = ToastProps & {
+ id: string;
+ title?: React.ReactNode;
+ description?: React.ReactNode;
+ action?: ToastActionElement;
+};
+
+const actionTypes = {
+ ADD_TOAST: "ADD_TOAST",
+ UPDATE_TOAST: "UPDATE_TOAST",
+ DISMISS_TOAST: "DISMISS_TOAST",
+ REMOVE_TOAST: "REMOVE_TOAST",
+} as const;
+
+let count = 0;
+
+function genId() {
+ count = (count + 1) % Number.MAX_SAFE_INTEGER;
+ return count.toString();
+}
+
+type ActionType = typeof actionTypes;
+
+type Action =
+ | {
+ type: ActionType["ADD_TOAST"];
+ toast: ToasterToast;
+ }
+ | {
+ type: ActionType["UPDATE_TOAST"];
+ toast: Partial<ToasterToast>;
+ }
+ | {
+ type: ActionType["DISMISS_TOAST"];
+ toastId?: ToasterToast["id"];
+ }
+ | {
+ type: ActionType["REMOVE_TOAST"];
+ toastId?: ToasterToast["id"];
+ };
+
+interface State {
+ toasts: ToasterToast[];
+}
+
+const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();
+
+const addToRemoveQueue = (toastId: string) => {
+ if (toastTimeouts.has(toastId)) {
+ return;
+ }
+
+ const timeout = setTimeout(() => {
+ toastTimeouts.delete(toastId);
+ dispatch({
+ type: "REMOVE_TOAST",
+ toastId: toastId,
+ });
+ }, TOAST_REMOVE_DELAY);
+
+ toastTimeouts.set(toastId, timeout);
+};
+
+export const reducer = (state: State, action: Action): State => {
+ switch (action.type) {
+ case "ADD_TOAST":
+ return {
+ ...state,
+ toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
+ };
+
+ case "UPDATE_TOAST":
+ return {
+ ...state,
+ toasts: state.toasts.map((t) => (t.id === action.toast.id ? {
+ ...t,
+ ...action.toast
+ } : t)),
+ };
+
+ case "DISMISS_TOAST": {
+ const { toastId } = action;
+
+ // ! Side effects ! - This could be extracted into a dismissToast() action,
+ // but I'll keep it here for simplicity
+ if (toastId) {
+ addToRemoveQueue(toastId);
+ } else {
+ state.toasts.forEach((toast) => {
+ addToRemoveQueue(toast.id);
+ });
+ }
+
+ return {
+ ...state,
+ toasts: state.toasts.map((t) =>
+ t.id === toastId || toastId === undefined
+ ? {
+ ...t,
+ open: false,
+ }
+ : t,
+ ),
+ };
+ }
+ case "REMOVE_TOAST":
+ if (action.toastId === undefined) {
+ return {
+ ...state,
+ toasts: [],
+ };
+ }
+ return {
+ ...state,
+ toasts: state.toasts.filter((t) => t.id !== action.toastId),
+ };
+ }
+};
+
+const listeners: Array<(state: State) => void> = [];
+
+let memoryState: State = { toasts: [] };
+
+function dispatch(action: Action) {
+ memoryState = reducer(memoryState, action);
+ listeners.forEach((listener) => {
+ listener(memoryState);
+ });
+}
+
+type Toast = Omit<ToasterToast, "id">;
+
+function toast({ ...props }: Toast) {
+ const id = genId();
+
+ const update = (props: ToasterToast) =>
+ dispatch({
+ type: "UPDATE_TOAST",
+ toast: {
+ ...props,
+ id
+ },
+ });
+ const dismiss = () => dispatch({
+ type: "DISMISS_TOAST",
+ toastId: id
+ });
+
+ dispatch({
+ type: "ADD_TOAST",
+ toast: {
+ ...props,
+ id,
+ open: true,
+ onOpenChange: (open) => {
+ if (!open) dismiss();
+ },
+ },
+ });
+
+ return {
+ id: id,
+ dismiss,
+ update,
+ };
+}
+
+function useToast() {
+ const [state, setState] = React.useState<State>(memoryState);
+
+ React.useEffect(() => {
+ listeners.push(setState);
+ return () => {
+ const index = listeners.indexOf(setState);
+ if (index > -1) {
+ listeners.splice(index, 1);
+ }
+ };
+ }, [state]);
+
+ return {
+ ...state,
+ toast,
+ dismiss: (toastId?: string) => dispatch({
+ type: "DISMISS_TOAST",
+ toastId
+ }),
+ };
+}
+
+export { useToast, toast };
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
new file mode 100644
index 0000000..4423155
--- /dev/null
+++ b/src/lib/utils.ts
@@ -0,0 +1,119 @@
+/* system/src/lib/utils.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import { clsx, type ClassValue } from "clsx";
+
+// tailwind-merge is no longer needed — styles are vanilla-extract classes now.
+export function cn(...inputs: ClassValue[]) {
+ return clsx(inputs);
+}
+
+/* ============================================================================
+ MEMBER COLOURS
+ ============================================================================ */
+
+/** PluralKit returns hex colours without the leading `#`. Normalise to a
+ * usable CSS colour, or null when unset. */
+export function normalizeColor(color: string | null | undefined): string | null {
+ if (!color) return null;
+ const trimmed = color.trim();
+ if (!trimmed) return null;
+ return trimmed.startsWith("#") ? trimmed : `#${trimmed}`;
+}
+
+function hexToRgb(hex: string): [number, number, number] | null {
+ let h = hex.replace("#", "").trim();
+ if (h.length === 3) h = h.split("").map((c) => c + c).join("");
+ if (h.length !== 6 || !/^[0-9a-fA-F]{6}$/.test(h)) return null;
+ return [
+ parseInt(h.slice(0, 2), 16),
+ parseInt(h.slice(2, 4), 16),
+ parseInt(h.slice(4, 6), 16),
+ ];
+}
+
+/** WCAG relative luminance, 0 (black) to 1 (white). */
+function relativeLuminance([r, g, b]: [number, number, number]): number {
+ const chan = (v: number) => {
+ const c = v / 255;
+ return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
+ };
+ return 0.2126 * chan(r) + 0.7152 * chan(g) + 0.0722 * chan(b);
+}
+
+function rgbToHsl([r, g, b]: [number, number, number]): [number, number, number] {
+ const rn = r / 255, gn = g / 255, bn = b / 255;
+ const max = Math.max(rn, gn, bn), min = Math.min(rn, gn, bn);
+ const l = (max + min) / 2;
+ if (max === min) return [0, 0, l];
+ const d = max - min;
+ const s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
+ let h: number;
+ if (max === rn) h = ((gn - bn) / d + (gn < bn ? 6 : 0)) / 6;
+ else if (max === gn) h = ((bn - rn) / d + 2) / 6;
+ else h = ((rn - gn) / d + 4) / 6;
+ return [h, s, l];
+}
+
+function hslToRgb([h, s, l]: [number, number, number]): [number, number, number] {
+ if (s === 0) {
+ const v = Math.round(l * 255);
+ return [v, v, v];
+ }
+ const hue = (p: number, q: number, t: number) => {
+ let tt = t;
+ if (tt < 0) tt += 1;
+ if (tt > 1) tt -= 1;
+ if (tt < 1 / 6) return p + (q - p) * 6 * tt;
+ if (tt < 1 / 2) return q;
+ if (tt < 2 / 3) return p + (q - p) * (2 / 3 - tt) * 6;
+ return p;
+ };
+ const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
+ const p = 2 * l - q;
+ return [
+ Math.round(hue(p, q, h + 1 / 3) * 255),
+ Math.round(hue(p, q, h) * 255),
+ Math.round(hue(p, q, h - 1 / 3) * 255),
+ ];
+}
+
+/** Luminance floor that reads comfortably against the dark theme backgrounds
+ * (all flavours sit below ~0.02 luminance). */
+const MIN_LUMINANCE = 0.18;
+
+/**
+ * Keep a member's chosen colour, but raise its lightness when it is too dark
+ * to read against the dark background. Hue and saturation are preserved, so
+ * the colour still reads as "theirs" — it just stops disappearing.
+ * Returns `fallback` when there is no usable colour.
+ */
+export function readableOnDark(
+ color: string | null | undefined,
+ fallback = "var(--text)",
+): string {
+ const normalized = normalizeColor(color);
+ if (!normalized) return fallback;
+
+ const rgb = hexToRgb(normalized);
+ // Non-hex (named colours, rgb()) pass through untouched.
+ if (!rgb) return normalized;
+
+ if (relativeLuminance(rgb) >= MIN_LUMINANCE) return normalized;
+
+ const [h, s] = rgbToHsl(rgb);
+ let [, , l] = rgbToHsl(rgb);
+ let out = rgb;
+ // Walk lightness up until the colour clears the floor, capping well short
+ // of white so strongly-coloured names keep their identity.
+ while (l < 0.85 && relativeLuminance(out) < MIN_LUMINANCE) {
+ l = Math.min(0.85, l + 0.04);
+ out = hslToRgb([h, s, l]);
+ }
+
+ const toHex = (v: number) => v.toString(16).padStart(2, "0");
+ return `#${toHex(out[0])}${toHex(out[1])}${toHex(out[2])}`;
+}
diff --git a/src/styles/admin.css.ts b/src/styles/admin.css.ts
new file mode 100644
index 0000000..9ed138d
--- /dev/null
+++ b/src/styles/admin.css.ts
@@ -0,0 +1,449 @@
+/* system/src/styles/admin.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ *
+ * Shared styles for the admin + owner dashboard pages.
+ */
+
+import { style } from "@vanilla-extract/css";
+import { vars } from "./theme.css";
+
+export const page = style({
+ width: "100%",
+ margin: "0 auto",
+ padding: "1.5rem",
+ paddingTop: "5rem",
+});
+
+export const loadingText = style({
+ textAlign: "center",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const wrap = style({
+ maxWidth: "56rem",
+ margin: "0 auto",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1.5rem",
+});
+
+export const wrapNarrow = style({
+ maxWidth: "48rem",
+ margin: "0 auto",
+ display: "flex",
+ flexDirection: "column",
+ gap: "1.5rem",
+});
+
+export const headerRow = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "space-between",
+});
+
+export const pageTitle = style({
+ fontSize: "1.875rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+});
+
+export const pageSubtitle = style({
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const btnIcon = style({
+ width: "1rem",
+ height: "1rem",
+ marginRight: "0.5rem",
+});
+
+/* Dashboard grid */
+export const dashGrid = style({
+ display: "grid",
+ gridTemplateColumns: "repeat(2, 1fr)",
+ gap: "1rem",
+ "@media": {
+ "screen and (min-width: 768px)": {
+ gridTemplateColumns: "repeat(3, 1fr)",
+ },
+ },
+});
+
+export const dashCard = style({
+ padding: "1.5rem",
+ borderRadius: "0.5rem",
+ border: `2px solid ${vars.surface}`,
+ backgroundColor: vars.bgRaised,
+ color: vars.text,
+ transition: "all 0.15s ease",
+ cursor: "pointer",
+ textAlign: "center",
+ height: "100%",
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "center",
+ justifyContent: "flex-start",
+ gap: "0.25rem",
+ ":hover": {
+ borderColor: vars.accent,
+ backgroundColor: vars.surfaceHi,
+ },
+});
+
+export const dashIcon = style({
+ fontSize: "2.25rem",
+ display: "block",
+ marginBottom: "0.75rem",
+ transition: "transform 0.15s ease",
+ selectors: {
+ [`${dashCard}:hover &`]: { transform: "scale(1.1)" },
+ },
+});
+
+export const dashLabel = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ /* Explicit size: without it this h3 inherits the global 1.75rem heading
+ rule and overflows the card. */
+ fontSize: "1.0625rem",
+ lineHeight: 1.3,
+ margin: 0,
+});
+
+export const dashDesc = style({
+ fontSize: "0.75rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ marginTop: "0.25rem",
+});
+
+/* Forms */
+export const formStack = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+});
+
+export const fieldBlock = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.5rem",
+});
+
+export const checkboxRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.5rem",
+});
+
+export const checkboxLabel = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ cursor: "pointer",
+});
+
+export const buttonRow = style({
+ display: "flex",
+ gap: "0.5rem",
+});
+
+export const flexGrow = style({ flex: 1 });
+
+export const fullWidth = style({ width: "100%" });
+
+export const cardTopPad = style({ paddingTop: "1.5rem" });
+
+/* User list */
+export const listStack = style({
+ display: "flex",
+ flexDirection: "column",
+ gap: "0.75rem",
+});
+
+export const userRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.75rem",
+ padding: "1rem",
+ backgroundColor: vars.surface,
+ borderRadius: "0.5rem",
+ border: `1px solid ${vars.surface}`,
+});
+
+export const userRowCurrent = style({
+ borderColor: vars.accent,
+});
+
+export const userAvatar = style({
+ width: "3rem",
+ height: "3rem",
+ borderRadius: "9999px",
+ objectFit: "cover",
+ flexShrink: 0,
+});
+
+export const userInfo = style({
+ flex: 1,
+ minWidth: 0,
+});
+
+export const userNameRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.5rem",
+ flexWrap: "wrap",
+});
+
+export const userName = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const userHandle = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const smallBadge = style({
+ fontFamily: vars.fontComic,
+ fontSize: "0.75rem",
+});
+
+/* Per-user edit panel */
+export const editPanel = style({
+ padding: "1rem",
+ backgroundColor: vars.bg,
+ borderRadius: "0.5rem",
+ border: `1px solid ${vars.surface}`,
+ display: "flex",
+ flexDirection: "column",
+ gap: "1rem",
+});
+
+/* Stats */
+export const statsGrid = style({
+ display: "grid",
+ gridTemplateColumns: "repeat(2, 1fr)",
+ gap: "1rem",
+});
+
+export const statBox = style({
+ padding: "1rem",
+ backgroundColor: vars.surface,
+ borderRadius: "0.5rem",
+});
+
+export const statLabel = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const statValue = style({
+ fontSize: "1.5rem",
+ fontWeight: 700,
+ fontFamily: vars.fontComic,
+});
+
+export const emptyNote = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ textAlign: "center",
+ padding: "1rem 0",
+});
+
+/* Member rows (status/tag/switch managers) */
+export const memberRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.75rem",
+ padding: "0.75rem",
+ backgroundColor: vars.surface,
+ borderRadius: "0.5rem",
+ border: `1px solid ${vars.surface}`,
+ transition: "border-color 0.15s ease",
+ cursor: "pointer",
+ ":hover": { borderColor: vars.accent },
+});
+
+export const memberRowSelected = style({
+ borderColor: vars.accent,
+ backgroundColor: vars.surfaceHi,
+});
+
+export const memberAvatarSm = style({
+ width: "1.5rem",
+ height: "1.5rem",
+ borderRadius: "9999px",
+ objectFit: "cover",
+});
+
+export const memberAvatarMd = style({
+ width: "2.5rem",
+ height: "2.5rem",
+ borderRadius: "9999px",
+ objectFit: "cover",
+});
+
+export const inlineRow = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.5rem",
+});
+
+export const inlineRowTight = style({
+ display: "flex",
+ alignItems: "center",
+ gap: "0.5rem",
+ marginTop: "0.25rem",
+});
+
+export const smallMuted = style({
+ fontSize: "0.75rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const smallMutedRight = style([smallMuted, { textAlign: "right" }]);
+
+export const memberRowName = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "0.875rem",
+});
+
+export const truncate = style({
+ overflow: "hidden",
+ textOverflow: "ellipsis",
+ whiteSpace: "nowrap",
+});
+
+/* Emoji picker */
+export const emojiInput = style({
+ width: "5rem",
+ textAlign: "center",
+ fontSize: "1.5rem",
+});
+
+export const emojiGrid = style({
+ display: "flex",
+ flexWrap: "wrap",
+ gap: "0.25rem",
+});
+
+export const emojiButton = style({
+ width: "2rem",
+ height: "2rem",
+ fontSize: "1.25rem",
+ borderRadius: "0.25rem",
+ border: "none",
+ background: "transparent",
+ cursor: "pointer",
+ transition: "background-color 0.15s ease",
+ ":hover": { backgroundColor: vars.surfaceHi },
+});
+
+export const emojiPickerRow = style({
+ display: "flex",
+ gap: "0.5rem",
+ alignItems: "center",
+ marginTop: "0.5rem",
+});
+
+/* Current status box */
+export const statusBox = style({
+ marginTop: "1rem",
+ padding: "0.75rem",
+ backgroundColor: vars.surface,
+ borderRadius: "0.5rem",
+ border: `1px solid ${vars.surface}`,
+});
+
+export const statusBoxText = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ fontSize: "0.875rem",
+});
+
+export const emojiLg = style({ fontSize: "1.25rem" });
+
+/* Tag chips */
+export const chipRow = style({
+ display: "flex",
+ flexWrap: "wrap",
+ gap: "0.5rem",
+});
+
+export const chip = style({
+ display: "inline-flex",
+ alignItems: "center",
+ gap: "0.375rem",
+ fontSize: "0.75rem",
+ padding: "0.25rem 0.625rem",
+ borderRadius: "9999px",
+ backgroundColor: vars.surface,
+ color: vars.text,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
+
+export const chipRemove = style({
+ background: "transparent",
+ border: "none",
+ cursor: "pointer",
+ color: "inherit",
+ fontWeight: 700,
+ padding: 0,
+ lineHeight: 1,
+ ":hover": { color: vars.danger },
+});
+
+/* Force refresh banner */
+export const dangerBanner = style({
+ backgroundColor: `color-mix(in srgb, ${vars.danger} 10%, transparent)`,
+ border: `2px solid ${vars.danger}`,
+ borderRadius: "0.5rem",
+ padding: "1rem",
+});
+
+export const dangerBannerRow = style({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "space-between",
+ gap: "1rem",
+});
+
+export const dangerBannerTitle = style({
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ color: vars.danger,
+ marginBottom: "0.25rem",
+});
+
+export const dangerBannerText = style({
+ fontSize: "0.875rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ color: vars.textMuted,
+});
+
+export const noWrap = style({ whiteSpace: "nowrap" });
+
+export const helpText = style({
+ fontSize: "0.875rem",
+ color: vars.textMuted,
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+});
diff --git a/src/styles/global.css.ts b/src/styles/global.css.ts
new file mode 100644
index 0000000..7033bc1
--- /dev/null
+++ b/src/styles/global.css.ts
@@ -0,0 +1,134 @@
+/* system/src/styles/global.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ *
+ * Global reset, typography, fonts and scrollbar styling — ported from the old
+ * app's src/css/main.css + fonts.css to vanilla-extract globalStyle calls.
+ */
+
+import { globalFontFace, globalStyle } from "@vanilla-extract/css";
+import { vars } from "./theme.css";
+
+/* ============================================================================
+ FONTS — Comic Code
+ ============================================================================ */
+const comic = "Comic Code";
+
+globalFontFace(comic, {
+ src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Regular.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Regular.woff') format('woff')",
+ fontWeight: 400,
+ fontStyle: "normal",
+});
+globalFontFace(comic, {
+ src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Italic.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Italic.woff') format('woff')",
+ fontWeight: 400,
+ fontStyle: "italic",
+});
+globalFontFace(comic, {
+ src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Medium.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Medium.woff') format('woff')",
+ fontWeight: 500,
+ fontStyle: "normal",
+});
+globalFontFace(comic, {
+ src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Bold.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Bold.woff') format('woff')",
+ fontWeight: 700,
+ fontStyle: "normal",
+});
+
+/* ============================================================================
+ GLOBAL RESET & BASE STYLES
+ ============================================================================ */
+globalStyle("*", {
+ margin: 0,
+ padding: 0,
+ boxSizing: "border-box",
+ borderColor: vars.surface,
+});
+
+globalStyle("html, body", {
+ overflowX: "hidden",
+ maxWidth: "100vw",
+});
+
+globalStyle("html", {
+ scrollBehavior: "smooth",
+});
+
+globalStyle("body", {
+ fontFamily: `'${comic}', sans-serif`,
+ background: vars.bg,
+ color: vars.text,
+ minHeight: "100vh",
+ transition: "background-color 0.3s ease, color 0.3s ease",
+});
+
+globalStyle(
+ "h1, h2, h3, h4, h5, h6, label, input, select, textarea, button",
+ {
+ fontFamily: `'${comic}', cursive`,
+ },
+);
+
+/* Anchors inherit their surrounding colour and are not underlined by default.
+ Without this, every next/link renders with the user-agent blue/purple
+ underline, which wrecks card and nav styling. Content links opt back in
+ via their own class. */
+globalStyle("a", {
+ color: "inherit",
+ textDecoration: "none",
+});
+
+globalStyle("h1", {
+ fontSize: "2.5rem",
+ fontWeight: 700
+});
+globalStyle("h2", {
+ fontSize: "2rem",
+ fontWeight: 600
+});
+globalStyle("h3", {
+ fontSize: "1.75rem",
+ fontWeight: 600
+});
+
+globalStyle(
+ "button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible",
+ {
+ outline: `2px solid ${vars.accent}`,
+ outlineOffset: "2px",
+ },
+);
+
+/* Mobile heading sizes */
+globalStyle("h1", { "@media": { "screen and (max-width: 640px)": { fontSize: "2rem" } } });
+globalStyle("h2", { "@media": { "screen and (max-width: 640px)": { fontSize: "1.75rem" } } });
+globalStyle("h3", { "@media": { "screen and (max-width: 640px)": { fontSize: "1.5rem" } } });
+
+/* ============================================================================
+ SCROLLBAR STYLING — THEME AWARE
+ ============================================================================ */
+globalStyle("html ::-webkit-scrollbar", {
+ width: "12px",
+ height: "12px",
+});
+globalStyle("html ::-webkit-scrollbar-track", {
+ background: vars.bgRaised,
+ borderRadius: "6px",
+});
+globalStyle("html ::-webkit-scrollbar-thumb", {
+ background: vars.accent,
+ borderRadius: "6px",
+ border: `2px solid ${vars.bgRaised}`,
+ transition: "background-color 0.2s ease",
+});
+globalStyle("html ::-webkit-scrollbar-thumb:hover", {
+ background: vars.accentAlt,
+});
+globalStyle("html ::-webkit-scrollbar-thumb:active", {
+ background: vars.lavender,
+});
+globalStyle("html", {
+ scrollbarWidth: "thin",
+ scrollbarColor: `${vars.accent} ${vars.bgRaised}`,
+});
diff --git a/src/styles/site.css.ts b/src/styles/site.css.ts
new file mode 100644
index 0000000..d50666c
--- /dev/null
+++ b/src/styles/site.css.ts
@@ -0,0 +1,518 @@
+/* system/src/styles/site.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ *
+ * Shared site-wide component styles ported from main.css (@layer components)
+ * to vanilla-extract. Classes are imported by pages instead of referenced as
+ * string literals.
+ */
+
+import { globalStyle, keyframes, style } from "@vanilla-extract/css";
+import { vars } from "./theme.css";
+
+const mobile = "screen and (max-width: 640px)";
+const tablet = "screen and (min-width: 641px) and (max-width: 1024px)";
+const ultrawide = "screen and (min-width: 1920px)";
+
+// No per-flavor font token in the new theme contract — same face across
+// every flavor, so it just lives here as a plain constant.
+const FONT_COMIC = "'Comic Code', cursive";
+
+export const fontComic = style({
+ fontFamily: FONT_COMIC,
+ fontWeight: 600,
+});
+
+/* App shell (old #root styles) */
+export const appRoot = style({
+ maxWidth: "none",
+ margin: "0 auto",
+ padding: "1rem",
+ textAlign: "center",
+ overflowX: "hidden",
+ minHeight: "100vh",
+ display: "flex",
+ flexDirection: "column",
+});
+
+/* Header */
+export const header = style({
+ position: "fixed",
+ top: 0,
+ left: 0,
+ right: 0,
+ zIndex: 40,
+ height: "68px",
+ backgroundColor: `color-mix(in srgb, ${vars.bg} 90%, transparent)`,
+ backdropFilter: "blur(12px)",
+ WebkitBackdropFilter: "blur(12px)",
+ borderBottom: `1px solid color-mix(in srgb, ${vars.surface} 50%, transparent)`,
+ boxShadow: `0 1px 3px color-mix(in srgb, ${vars.text} 8%, transparent)`,
+ "@media": {
+ [mobile]: {
+ height: "60px",
+ padding: "0.5rem 1rem"
+ },
+ },
+});
+
+export const container = style({
+ width: "100%",
+ maxWidth: "none",
+ paddingLeft: "1rem",
+ paddingRight: "1rem",
+ marginLeft: "auto",
+ marginRight: "auto",
+ boxSizing: "border-box",
+ "@media": {
+ [mobile]: {
+ padding: "0 1rem",
+ maxWidth: "100%"
+ },
+ [tablet]: { padding: "0 1.5rem" },
+ },
+});
+
+export const headerContainer = style([
+ container,
+ {
+ height: "100%",
+ padding: "0 1rem",
+ display: "flex",
+ justifyContent: "space-between",
+ alignItems: "center",
+ maxWidth: "none",
+ },
+]);
+
+/* Navigation */
+export const desktopNav = style({
+ display: "none",
+ gap: "1rem",
+ alignItems: "center",
+ marginLeft: "auto",
+ "@media": {
+ "screen and (min-width: 768px)": { display: "flex" },
+ },
+});
+
+globalStyle(`${desktopNav} button, ${desktopNav} a`, {
+ padding: "0.75rem 1.25rem",
+ minHeight: "3rem",
+ borderRadius: "0.375rem",
+ transition: "all 0.2s ease",
+ fontFamily: FONT_COMIC,
+ fontWeight: 600,
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ textDecoration: "none",
+ backgroundColor: vars.surface,
+ color: vars.text,
+ border: `1px solid ${vars.surface}`,
+});
+
+globalStyle(`${desktopNav} button:hover, ${desktopNav} a:hover`, {
+ backgroundColor: vars.accentAlt,
+ color: vars.bg,
+ borderColor: vars.accent,
+});
+
+/* Member grid */
+export const memberGrid = style({
+ display: "grid",
+ gridTemplateColumns: "repeat(auto-fill, minmax(140px, 1fr))",
+ gridAutoRows: "1fr",
+ alignItems: "stretch",
+ gap: "1.5rem",
+ padding: "1rem",
+ width: "100%",
+ maxWidth: "none",
+ overflow: "visible",
+ boxSizing: "border-box",
+ "@media": {
+ [mobile]: {
+ gridTemplateColumns: "repeat(auto-fill, minmax(90px, 1fr))",
+ gap: "0.5rem",
+ padding: "0.5rem",
+ },
+ [tablet]: {
+ gridTemplateColumns: "repeat(auto-fill, minmax(120px, 1fr))",
+ gap: "1rem",
+ },
+ [ultrawide]: {
+ gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
+ gap: "1.75rem",
+ },
+ },
+});
+
+/* Grid items stretch to the tallest card in their row so the bottoms stay
+ flush regardless of name wrapping or missing pronouns. */
+export const memberGridItem = style({
+ display: "flex",
+ height: "100%",
+});
+
+globalStyle(`${memberGridItem} a`, {
+ padding: "1rem",
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "center",
+ justifyContent: "flex-start",
+ gap: "0.25rem",
+ height: "100%",
+ width: "100%",
+ borderRadius: "0.75rem",
+ backdropFilter: "blur(10px)",
+ WebkitBackdropFilter: "blur(10px)",
+ transition: "all 0.3s ease",
+ textDecoration: "none !important" as unknown as "none",
+ /* `surface` sits one step lighter than `bg` in every flavour, so the card
+ reads as a distinct panel instead of blending into the page. */
+ backgroundColor: vars.surface,
+ border: `1px solid ${vars.surfaceHi}`,
+ boxShadow: "0 1px 3px rgb(0 0 0 / 0.35)",
+ color: vars.text,
+});
+
+/* Lift on hover, and go one shade lighter than the resting card. */
+globalStyle(`${memberGridItem} a:hover`, {
+ transform: "translateY(-5px)",
+ boxShadow: `0 10px 15px -3px color-mix(in srgb, ${vars.accent} 40%, transparent)`,
+ borderColor: `color-mix(in srgb, ${vars.accent} 70%, transparent)`,
+ backgroundColor: vars.surfaceHi,
+});
+
+/* Avatars */
+export const avatarContainer = style({
+ position: "relative",
+ borderRadius: "50%",
+ overflow: "hidden",
+ flexShrink: 0,
+ margin: "0 auto",
+ boxSizing: "border-box",
+ width: "4.5rem",
+ height: "4.5rem",
+ border: `2px solid ${vars.surface}`,
+ backgroundColor: vars.surface,
+ "@media": {
+ [mobile]: {
+ width: "3.5rem",
+ height: "3.5rem"
+ },
+ [tablet]: {
+ width: "4rem",
+ height: "4rem"
+ },
+ },
+});
+
+globalStyle(`${avatarContainer} img`, {
+ width: "100%",
+ height: "100%",
+ objectFit: "cover",
+ objectPosition: "center center",
+ position: "absolute",
+ top: 0,
+ left: 0,
+ right: 0,
+ bottom: 0,
+ margin: 0,
+ padding: 0,
+});
+
+globalStyle(`${memberGridItem} a:hover ${avatarContainer}`, {
+ boxShadow: "0 0 20px var(--member-color)",
+});
+
+/* Fronting members */
+export const frontingMembersContainer = style({
+ display: "flex",
+ flexWrap: "wrap",
+ justifyContent: "center",
+ gap: "1.5rem",
+ alignItems: "flex-start",
+ width: "100%",
+ maxWidth: "100%",
+ "@media": {
+ [mobile]: { gap: "1rem" },
+ },
+});
+
+export const frontingMember = style({
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "center",
+ maxWidth: "140px",
+ textAlign: "center",
+ flexShrink: 0,
+ "@media": {
+ [mobile]: {
+ maxWidth: "100px",
+ minWidth: "90px"
+ },
+ },
+});
+
+export const frontingMemberName = style({
+ marginTop: "0.75rem",
+ fontFamily: FONT_COMIC,
+ fontWeight: 600,
+ fontSize: "1.5rem",
+ lineHeight: 1.2,
+ wordWrap: "break-word",
+ maxWidth: "100%",
+ color: vars.text,
+ "@media": {
+ [mobile]: {
+ fontSize: "1.25rem",
+ marginTop: "0.5rem"
+ },
+ },
+});
+
+export const memberName = style({
+ fontSize: "1.5rem",
+ fontFamily: FONT_COMIC,
+ fontWeight: 600,
+ "@media": {
+ [mobile]: { fontSize: "1.25rem" },
+ },
+});
+
+/* Mental state banners */
+const pulse = keyframes({
+ "0%, 100%": { boxShadow: "0 0 0 0 rgba(220, 38, 38, 0.7)" },
+ "70%": { boxShadow: "0 0 0 10px rgba(220, 38, 38, 0)" },
+});
+
+export const mentalStateBanner = style({
+ padding: "1rem",
+ margin: "1rem 0",
+ borderRadius: "0.5rem",
+ border: "2px solid",
+ position: "relative",
+ fontFamily: FONT_COMIC,
+ fontWeight: 600,
+});
+
+globalStyle(`${mentalStateBanner} *`, {
+ fontFamily: FONT_COMIC,
+ fontWeight: 600,
+});
+
+export const mentalStateSafe = style({
+ background:
+ "linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%)",
+ borderColor: "rgba(34, 197, 94, 0.5)",
+ color: "#10b981",
+});
+
+export const mentalStateUnstable = style({
+ background:
+ "linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%)",
+ borderColor: "rgba(251, 191, 36, 0.5)",
+ color: "#f59e0b",
+});
+
+export const mentalStateSelfHarming = style({
+ background:
+ "linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%)",
+ borderColor: "rgba(239, 68, 68, 0.7)",
+ color: "#f87171",
+});
+
+export const mentalStateHighlyAtRisk = style({
+ background:
+ "linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%)",
+ borderColor: "rgba(220, 38, 38, 0.8)",
+ color: "#fca5a5",
+ animation: `${pulse} 2s infinite`,
+});
+
+/* Badges */
+export const hostBadge = style({
+ display: "inline-block",
+ fontSize: "0.7rem",
+ padding: "0.15rem 0.55rem",
+ borderRadius: "0.35rem",
+ marginLeft: "0.5rem",
+ fontWeight: 600,
+ textTransform: "uppercase",
+ verticalAlign: "middle",
+ letterSpacing: "0.5px",
+ fontFamily: FONT_COMIC,
+ background: vars.accent,
+ color: vars.bg,
+ boxShadow: `0 2px 4px color-mix(in srgb, ${vars.accent} 50%, transparent)`,
+});
+
+/* Footer */
+export const githubFooter = style({
+ marginTop: "3rem",
+ padding: "1.5rem 0",
+ textAlign: "center",
+ width: "100%",
+ fontFamily: FONT_COMIC,
+ borderTop: `1px solid color-mix(in srgb, ${vars.surface} 30%, transparent)`,
+});
+
+export const githubButton = style({
+ display: "inline-flex",
+ alignItems: "center",
+ gap: "0.5rem",
+ padding: "1rem 2rem",
+ minHeight: "3.5rem",
+ borderRadius: "0.5rem",
+ fontWeight: 600,
+ transition: "all 0.2s ease",
+ fontFamily: FONT_COMIC,
+ textDecoration: "none",
+ background: vars.surface,
+ color: `${vars.text} !important` as unknown as string,
+ boxShadow: `0 2px 4px color-mix(in srgb, ${vars.text} 10%, transparent)`,
+ border: `1px solid ${vars.surface}`,
+ ":hover": {
+ transform: "translateY(-1px)",
+ boxShadow: `0 4px 6px color-mix(in srgb, ${vars.accent} 30%, transparent)`,
+ background: vars.accentAlt,
+ color: vars.bg,
+ },
+});
+
+/* Search bar */
+export const searchContainer = style({
+ position: "relative",
+ maxWidth: "28rem",
+ margin: "0 auto 1.5rem",
+});
+
+export const searchInput = style({
+ width: "100%",
+ padding: "0.75rem 1rem 0.75rem 3rem",
+ borderRadius: "0.5rem",
+ border: `1px solid ${vars.surface}`,
+ backgroundColor: vars.surface,
+ color: vars.text,
+ fontFamily: FONT_COMIC,
+ fontSize: "0.875rem",
+ transition: "all 0.2s ease",
+ ":focus": {
+ outline: "none",
+ borderColor: vars.accent,
+ boxShadow: `0 0 0 2px color-mix(in srgb, ${vars.accent} 20%, transparent)`,
+ },
+ "::placeholder": {
+ color: vars.textMuted,
+ },
+});
+
+export const searchIcon = style({
+ position: "absolute",
+ left: "0.75rem",
+ top: "50%",
+ transform: "translateY(-50%)",
+ color: vars.textMuted,
+ width: "1.25rem",
+ height: "1.25rem",
+});
+
+export const searchClear = style({
+ position: "absolute",
+ right: "0.75rem",
+ top: "50%",
+ transform: "translateY(-50%)",
+ color: vars.textMuted,
+ cursor: "pointer",
+ padding: "0.25rem",
+ borderRadius: "0.25rem",
+ transition: "all 0.2s ease",
+ ":hover": {
+ color: vars.text,
+ backgroundColor: vars.surface,
+ },
+});
+
+/* Filter buttons */
+export const filterButton = style({
+ padding: "0.5rem 1rem",
+ borderRadius: "0.5rem",
+ transition: "all 0.2s ease",
+ fontFamily: FONT_COMIC,
+ fontWeight: 600,
+ fontSize: "0.875rem",
+ cursor: "pointer",
+ border: `1px solid ${vars.surface}`,
+ backgroundColor: vars.surface,
+ color: vars.text,
+ ":hover": {
+ backgroundColor: vars.accentAlt,
+ color: vars.bg,
+ borderColor: vars.accent,
+ },
+});
+
+export const filterButtonActive = style({
+ backgroundColor: `${vars.accent} !important` as unknown as string,
+ color: `${vars.bg} !important` as unknown as string,
+ borderColor: vars.accent,
+});
+
+/* Fronting glow */
+const frontingPulse = keyframes({
+ "0%, 100%": { transform: "scale(1)" },
+ "50%": { transform: "scale(1.02)" },
+});
+
+export const frontingGlow = style({
+ position: "relative",
+ animation: `${frontingPulse} 2s ease-in-out infinite`,
+});
+
+globalStyle(`${frontingGlow} a`, {
+ background:
+ "linear-gradient(135deg, color-mix(in srgb, var(--member-color) 15%, transparent) 0%, color-mix(in srgb, var(--member-color) 5%, transparent) 100%)",
+ border: "2px solid color-mix(in srgb, var(--member-color) 50%, transparent)",
+ boxShadow:
+ "0 0 20px color-mix(in srgb, var(--member-color) 30%, transparent), 0 0 40px color-mix(in srgb, var(--member-color) 20%, transparent), inset 0 0 20px color-mix(in srgb, var(--member-color) 10%, transparent)",
+});
+
+globalStyle(`${frontingGlow} a:hover`, {
+ borderColor: "color-mix(in srgb, var(--member-color) 80%, transparent)",
+ boxShadow:
+ "0 0 30px color-mix(in srgb, var(--member-color) 50%, transparent), 0 0 60px color-mix(in srgb, var(--member-color) 30%, transparent), inset 0 0 30px color-mix(in srgb, var(--member-color) 15%, transparent)",
+});
+
+globalStyle(`${frontingGlow} img`, {
+ borderColor: "var(--member-color)",
+ boxShadow: "0 0 15px color-mix(in srgb, var(--member-color) 40%, transparent)",
+});
+
+globalStyle(`${frontingGlow} a::before`, {
+ content: '"FRONTING"',
+ position: "absolute",
+ top: "-8px",
+ left: "50%",
+ transform: "translateX(-50%)",
+ background: "var(--member-color)",
+ color: "white",
+ fontSize: "0.65rem",
+ padding: "0.15rem 0.5rem",
+ borderRadius: "0.25rem",
+ fontWeight: 700,
+ letterSpacing: "0.5px",
+ fontFamily: FONT_COMIC,
+ boxShadow: "0 2px 8px color-mix(in srgb, var(--member-color) 40%, transparent)",
+ zIndex: 10,
+ textShadow: "0 1px 2px rgba(0, 0, 0, 0.3)",
+});
+
+/* Utility */
+export const themeTransition = style({
+ transition: "background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease",
+});
+
+// Re-export vars for pages that need raw tokens (e.g. charts)
+export { vars };
diff --git a/src/styles/theme.css.ts b/src/styles/theme.css.ts
new file mode 100644
index 0000000..52a9ead
--- /dev/null
+++ b/src/styles/theme.css.ts
@@ -0,0 +1,82 @@
+/* system/src/styles/theme.css.ts
+ * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
+ * Licensed under the DASL-1.0 Licence.
+ * See LICENCE.md in the project root for full licence information.
+ */
+
+import {
+ createGlobalTheme,
+ createGlobalThemeContract,
+ globalStyle,
+} from "@vanilla-extract/css";
+
+/** Token -> literal CSS custom-property name (accentAlt => var(--accent-alt)). */
+export const vars = createGlobalThemeContract({
+ accent: "accent",
+ accentAlt: "accent-alt",
+ success: "success",
+ danger: "danger",
+ warning: "warning",
+ info: "info",
+ rosewater: "rosewater",
+ maroon: "maroon",
+ peach: "peach",
+ teal: "teal",
+ sky: "sky",
+ sapphire: "sapphire",
+ lavender: "lavender",
+ bgDeep: "bg-deep",
+ bgRaised: "bg-raised",
+ bg: "bg",
+ surface: "surface",
+ surfaceHi: "surface-hi",
+ surfaceHigher: "surface-higher",
+ textFaint: "text-faint",
+ textDim: "text-dim",
+ textMuted: "text-muted",
+ textSoft: "text-soft",
+ text: "text",
+ fontComic: "font-comic",
+});
+
+/** Not flavor-dependent, but goes through the same contract so it's always
+ * referenced via var(--font-comic) — never inlined as a raw string, which
+ * trips up the CSS serializer on the quote+comma combo. */
+const FONT_COMIC_VALUE = "'Comic Code', cursive";
+
+/**
+ * One palette, applied globally. The old per-flavor themes (cherry, toxic,
+ * estrogen, cyberpunk, lemon) and the ThemeToggle switcher were dropped — every
+ * site now shares the info site's dark trans palette. Extra shades are derived
+ * from info's seven core colours (bg #0a0b10, surface #12141c, surfaceHover
+ * #1b1e2a, text #f4f6fb, muted #9aa3c2, border #232838, accent #f5a9b8) so the
+ * whole thing reads as one uniform, pink-accented dark theme.
+ */
+createGlobalTheme(":root", vars, {
+ accent: "#f5a9b8",
+ accentAlt: "#d15f8c",
+ success: "#f5a9b8",
+ danger: "#d15f8c",
+ warning: "#f5a9b8",
+ info: "#9aa3c2",
+ rosewater: "#f7d6e0",
+ maroon: "#d15f8c",
+ peach: "#f5a9b8",
+ teal: "#9aa3c2",
+ sky: "#9aa3c2",
+ sapphire: "#6b7391",
+ lavender: "#f5a9b8",
+ bgDeep: "#05060a",
+ bgRaised: "#0e1017",
+ bg: "#0a0b10",
+ surface: "#12141c",
+ surfaceHi: "#1b1e2a",
+ surfaceHigher: "#232838",
+ textFaint: "#5b6480",
+ textDim: "#6b7391",
+ textMuted: "#9aa3c2",
+ textSoft: "#c9cfe0",
+ text: "#f4f6fb",
+ fontComic: FONT_COMIC_VALUE,
+});
+globalStyle(":root", { colorScheme: "dark" });
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..ded3d18
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,52 @@
+{
+ "compilerOptions": {
+ "target": "ES2017",
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "react-jsx",
+ "incremental": true,
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ],
+ "paths": {
+ "@/*": [
+ "./src/*"
+ ]
+ }
+ },
+ "include": [
+ "next-env.d.ts",
+ "**/*.ts",
+ "**/*.tsx",
+ ".next/types/**/*.ts",
+ ".next/dev/types/**/*.ts",
+ "**/*.mts",
+ ".next-sandbox/types/**/*.ts",
+ ".next-sandbox/dev/types/**/*.ts",
+ ".next-sandbox2/types/**/*.ts",
+ ".next-sandbox2/dev/types/**/*.ts",
+ ".next-sandbox3/types/**/*.ts",
+ ".next-sandbox3/dev/types/**/*.ts",
+ ".next-sandbox4/types/**/*.ts",
+ ".next-sandbox4/dev/types/**/*.ts",
+ ".next-sandbox5/types/**/*.ts",
+ ".next-sandbox5/dev/types/**/*.ts"
+ ],
+ "exclude": [
+ "node_modules"
+ ]
+}
diff --git a/wrangler.jsonc b/wrangler.jsonc
new file mode 100644
index 0000000..8d17323
--- /dev/null
+++ b/wrangler.jsonc
@@ -0,0 +1,27 @@
+{
+ "$schema": "node_modules/wrangler/config-schema.json",
+ "main": ".open-next/worker.js",
+ "name": "doughmination-system",
+ "compatibility_date": "2026-08-01",
+ "compatibility_flags": [
+ // Required for Next.js server code to run on Workers.
+ "nodejs_compat",
+ // Makes fetch() in server code go over the public internet — needed so the
+ // [member_id] layout can call the Doughmination/PluralKit API.
+ "global_fetch_strictly_public"
+ ],
+ "assets": {
+ "directory": ".open-next/assets",
+ "binding": "ASSETS"
+ },
+ "services": [
+ {
+ "binding": "WORKER_SELF_REFERENCE",
+ // Must match "name" above.
+ "service": "doughmination-system"
+ }
+ ]
+ // To enable persistent Next.js data/ISR caching, create an R2 bucket and add
+ // an "r2_buckets" binding named NEXT_INC_CACHE_R2_BUCKET here, then switch
+ // open-next.config.ts to r2IncrementalCache. Not needed for always-fresh data.
+}