{cat.label}
+{page.title}
+{page.summary}
++ + {content ? ( +
+ This page is being written. Check back shortly. +
+diff --git a/app/(docs)/docs.css b/app/(docs)/docs.css
new file mode 100644
index 0000000..2742166
--- /dev/null
+++ b/app/(docs)/docs.css
@@ -0,0 +1,360 @@
+/* =============================================================================
+ * Docs section styling. Scoped under .docs-root so it never bleeds into the
+ * management app. Matches the public site (landing / resources): near-black
+ * surfaces, IBM Plex Mono UI, Libre Baskerville display, lime accent.
+ * ===========================================================================*/
+
+.docs-root {
+ --doc-bg: #0c0c0c;
+ --doc-surface: #141414;
+ --doc-surface-2: #1a1a1a;
+ --doc-border: #262626;
+ --doc-border-soft: #1e1e1e;
+ --doc-text: #e8e8e8;
+ --doc-text-dim: #9a9a9a;
+ --doc-text-muted: #6a6a6a;
+ --doc-accent: #d4ff00;
+
+ min-height: 100dvh;
+ position: relative;
+ background: var(--doc-bg);
+ color: var(--doc-text);
+ font-family: var(--font-ibm-plex-mono), 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
+ font-size: 14px;
+ line-height: 1.6;
+ -webkit-font-smoothing: antialiased;
+}
+
+.docs-root ::selection {
+ background: var(--doc-accent);
+ color: var(--doc-bg);
+}
+
+.docs-grid-bg {
+ position: fixed;
+ inset: 0;
+ z-index: 0;
+ pointer-events: none;
+ background-image:
+ linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
+ background-size: 64px 64px;
+ mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 40%, transparent 100%);
+}
+
+.docs-root > *:not(.docs-grid-bg) {
+ position: relative;
+ z-index: 1;
+}
+
+/* ---- Header ------------------------------------------------------------- */
+.docs-header {
+ position: sticky;
+ top: 0;
+ z-index: 20;
+ border-bottom: 1px solid var(--doc-border);
+ background: color-mix(in srgb, var(--doc-bg) 88%, transparent);
+ backdrop-filter: blur(8px);
+}
+.docs-header-inner {
+ max-width: 1280px;
+ margin: 0 auto;
+ padding: 0 24px;
+ height: 56px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 16px;
+}
+.docs-wordmark {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ font-weight: 500;
+ letter-spacing: -0.01em;
+ color: var(--doc-text);
+}
+.docs-wordmark .doc-accent { color: var(--doc-accent); }
+.docs-header-links {
+ display: flex;
+ align-items: center;
+ gap: 18px;
+ font-size: 13px;
+}
+.docs-header-links a { color: var(--doc-text-dim); transition: color 0.12s; }
+.docs-header-links a:hover { color: var(--doc-text); }
+.docs-header-cta {
+ color: var(--doc-accent) !important;
+ border: 1px solid color-mix(in srgb, var(--doc-accent) 40%, transparent);
+ border-radius: 6px;
+ padding: 5px 12px;
+}
+.docs-header-cta:hover {
+ background: var(--doc-accent);
+ color: var(--doc-bg) !important;
+}
+
+/* ---- Shell (sidebar + content) ----------------------------------------- */
+.docs-shell {
+ max-width: 1280px;
+ margin: 0 auto;
+ padding: 0 24px;
+ display: grid;
+ grid-template-columns: 248px minmax(0, 1fr);
+ gap: 48px;
+ align-items: start;
+}
+@media (max-width: 900px) {
+ .docs-shell { grid-template-columns: 1fr; gap: 0; }
+}
+
+/* ---- Sidebar ----------------------------------------------------------- */
+.docs-sidebar {
+ position: sticky;
+ top: 56px;
+ align-self: start;
+ max-height: calc(100dvh - 56px);
+ overflow-y: auto;
+ padding: 32px 8px 48px 0;
+}
+@media (max-width: 900px) {
+ .docs-sidebar {
+ position: static;
+ max-height: none;
+ border-bottom: 1px solid var(--doc-border);
+ padding-bottom: 20px;
+ }
+}
+.docs-sidebar-group { margin-bottom: 26px; }
+.docs-sidebar-group-label {
+ font-size: 11px;
+ text-transform: uppercase;
+ letter-spacing: 0.12em;
+ color: var(--doc-text-muted);
+ margin-bottom: 10px;
+ padding-left: 10px;
+}
+.docs-sidebar-link {
+ display: block;
+ padding: 6px 10px;
+ border-radius: 6px;
+ color: var(--doc-text-dim);
+ font-size: 13px;
+ line-height: 1.4;
+ border-left: 2px solid transparent;
+ transition: color 0.12s, background 0.12s;
+}
+.docs-sidebar-link:hover { color: var(--doc-text); background: var(--doc-surface); }
+.docs-sidebar-link.is-active {
+ color: var(--doc-accent);
+ background: var(--doc-surface);
+ border-left-color: var(--doc-accent);
+}
+
+/* ---- Content ----------------------------------------------------------- */
+.docs-content {
+ min-width: 0;
+ padding: 40px 0 96px;
+}
+.docs-breadcrumb {
+ font-size: 12px;
+ color: var(--doc-text-muted);
+ margin-bottom: 14px;
+ display: flex;
+ gap: 8px;
+ align-items: center;
+}
+.docs-breadcrumb a { color: var(--doc-text-dim); }
+.docs-breadcrumb a:hover { color: var(--doc-text); }
+
+.docs-page-head { margin-bottom: 8px; }
+.docs-eyebrow {
+ font-size: 11px;
+ text-transform: uppercase;
+ letter-spacing: 0.14em;
+ color: var(--doc-accent);
+}
+.docs-page-title {
+ font-family: var(--font-libre-baskerville), Georgia, serif;
+ font-size: clamp(28px, 4vw, 38px);
+ line-height: 1.12;
+ font-weight: 700;
+ margin: 8px 0 6px;
+ color: #fff;
+}
+.docs-page-summary { color: var(--doc-text-dim); font-size: 15px; max-width: 60ch; }
+.docs-rule { border: none; border-top: 1px solid var(--doc-border); margin: 28px 0; }
+
+/* ---- Prose ------------------------------------------------------------- */
+.docs-prose { max-width: 72ch; color: var(--doc-text); }
+.docs-prose > *:first-child { margin-top: 0; }
+.docs-prose h1,
+.docs-prose h2,
+.docs-prose h3,
+.docs-prose h4 {
+ color: #fff;
+ font-weight: 600;
+ letter-spacing: -0.01em;
+ scroll-margin-top: 72px;
+}
+.docs-prose h1 { font-size: 24px; margin: 40px 0 14px; }
+.docs-prose h2 {
+ font-size: 20px;
+ margin: 38px 0 12px;
+ padding-bottom: 8px;
+ border-bottom: 1px solid var(--doc-border-soft);
+}
+.docs-prose h3 { font-size: 16px; margin: 28px 0 8px; }
+.docs-prose h4 { font-size: 14px; margin: 22px 0 6px; color: var(--doc-text); }
+.docs-prose p { margin: 14px 0; }
+.docs-prose a { color: var(--doc-accent); text-decoration: underline; text-underline-offset: 2px; }
+.docs-prose a:hover { text-decoration: none; }
+.docs-prose strong { color: #fff; font-weight: 600; }
+.docs-prose em { font-style: italic; }
+.docs-prose ul,
+.docs-prose ol { margin: 14px 0; padding-left: 22px; }
+.docs-prose li { margin: 6px 0; }
+.docs-prose ul { list-style: none; }
+.docs-prose ul > li { position: relative; }
+.docs-prose ul > li::before {
+ content: '—';
+ position: absolute;
+ left: -22px;
+ color: var(--doc-text-muted);
+}
+.docs-prose ol { list-style: decimal; }
+.docs-prose ol > li::marker { color: var(--doc-text-muted); }
+.docs-prose code {
+ font-family: var(--font-ibm-plex-mono), ui-monospace, monospace;
+ font-size: 0.86em;
+ background: var(--doc-surface-2);
+ border: 1px solid var(--doc-border-soft);
+ border-radius: 4px;
+ padding: 1px 5px;
+ color: var(--doc-accent);
+}
+.docs-prose pre {
+ background: var(--doc-surface);
+ border: 1px solid var(--doc-border);
+ border-radius: 8px;
+ padding: 14px 16px;
+ margin: 16px 0;
+ overflow-x: auto;
+}
+.docs-prose pre code {
+ background: none;
+ border: none;
+ padding: 0;
+ color: var(--doc-text);
+ font-size: 12.5px;
+ line-height: 1.6;
+}
+.docs-prose blockquote {
+ margin: 16px 0;
+ padding: 2px 16px;
+ border-left: 3px solid var(--doc-accent);
+ background: var(--doc-surface);
+ border-radius: 0 6px 6px 0;
+ color: var(--doc-text-dim);
+}
+.docs-prose blockquote p { margin: 10px 0; }
+.docs-prose hr { border: none; border-top: 1px solid var(--doc-border); margin: 28px 0; }
+.docs-figure { display: block; margin: 22px 0; }
+.docs-figure img {
+ display: block;
+ max-width: 100%;
+ height: auto;
+ border: 1px solid var(--doc-border);
+ border-radius: 10px;
+ background: var(--doc-surface);
+}
+.docs-figcaption {
+ display: block;
+ margin-top: 8px;
+ font-size: 12px;
+ color: var(--doc-text-muted);
+ text-align: center;
+}
+.docs-prose table {
+ width: 100%;
+ border-collapse: collapse;
+ margin: 18px 0;
+ font-size: 13px;
+ display: block;
+ overflow-x: auto;
+}
+.docs-prose th,
+.docs-prose td {
+ border: 1px solid var(--doc-border);
+ padding: 8px 12px;
+ text-align: left;
+ vertical-align: top;
+}
+.docs-prose th { background: var(--doc-surface); color: #fff; font-weight: 600; }
+
+/* ---- Prev / next ------------------------------------------------------- */
+.docs-pager {
+ display: flex;
+ justify-content: space-between;
+ gap: 16px;
+ margin-top: 48px;
+ padding-top: 24px;
+ border-top: 1px solid var(--doc-border);
+}
+.docs-pager a {
+ display: block;
+ flex: 1;
+ padding: 14px 16px;
+ border: 1px solid var(--doc-border);
+ border-radius: 8px;
+ transition: border-color 0.12s, background 0.12s;
+}
+.docs-pager a:hover { border-color: var(--doc-accent); background: var(--doc-surface); }
+.docs-pager .docs-pager-next { text-align: right; }
+.docs-pager-dir { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--doc-text-muted); }
+.docs-pager-title { color: var(--doc-text); margin-top: 4px; }
+
+/* ---- Home -------------------------------------------------------------- */
+.docs-home-hero { padding: 56px 0 32px; }
+.docs-home-title {
+ font-family: var(--font-libre-baskerville), Georgia, serif;
+ font-size: clamp(34px, 5vw, 52px);
+ line-height: 1.06;
+ font-weight: 700;
+ color: #fff;
+}
+.docs-home-title em { color: var(--doc-accent); font-style: italic; }
+.docs-home-lede { color: var(--doc-text-dim); font-size: 16px; max-width: 62ch; margin-top: 16px; }
+.docs-cat-grid {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 16px;
+ padding-bottom: 80px;
+}
+@media (max-width: 760px) { .docs-cat-grid { grid-template-columns: 1fr; } }
+.docs-cat-card {
+ border: 1px solid var(--doc-border);
+ border-radius: 12px;
+ padding: 22px;
+ background: var(--doc-surface);
+ transition: border-color 0.12s;
+}
+.docs-cat-card:hover { border-color: color-mix(in srgb, var(--doc-accent) 45%, var(--doc-border)); }
+.docs-cat-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--doc-accent); }
+.docs-cat-title {
+ font-size: 20px;
+ font-weight: 600;
+ color: #fff;
+ margin: 8px 0 6px;
+}
+.docs-cat-diataxis { color: var(--doc-text-dim); font-size: 13px; margin-bottom: 14px; }
+.docs-cat-list { display: flex; flex-direction: column; gap: 2px; }
+.docs-cat-list a {
+ display: block;
+ padding: 6px 8px;
+ margin: 0 -8px;
+ border-radius: 6px;
+ color: var(--doc-text-dim);
+ font-size: 13px;
+}
+.docs-cat-list a:hover { color: var(--doc-text); background: var(--doc-surface-2); }
diff --git a/app/(docs)/docs/[category]/[slug]/page.tsx b/app/(docs)/docs/[category]/[slug]/page.tsx
new file mode 100644
index 0000000..3d17e89
--- /dev/null
+++ b/app/(docs)/docs/[category]/[slug]/page.tsx
@@ -0,0 +1,86 @@
+import Link from 'next/link'
+import { notFound } from 'next/navigation'
+import { DOC_CATEGORIES, findPage, flatPages } from '@/lib/docs/nav'
+import { loadDocContent } from '@/lib/docs/load'
+import { DocsMarkdown } from '@/components/docs/docs-markdown'
+import { DocsSidebar } from '@/components/docs/docs-sidebar'
+
+export function generateStaticParams() {
+ return DOC_CATEGORIES.flatMap(cat =>
+ cat.pages.map(page => ({ category: cat.id, slug: page.slug })),
+ )
+}
+
+export const dynamicParams = false
+
+type Params = { category: string; slug: string }
+
+export async function generateMetadata({ params }: { params: Promise {cat.label} {page.summary}
+ This page is being written. Check back shortly.
+ Documentation
+ Everything hackerspace.sh does, written down. Organized the{' '}
+
+ Diátaxis
+ {' '}
+ way: learn with tutorials, get things done with how-to guides, look up the
+ details in reference, and understand the why in explanation.
+ {cat.tagline} {cat.diataxis}{page.title}
+
+
+ {content ? (
+
+ Run your space, documented
+
+ {cat.label}
+
Not running a space? Read the{' '} diff --git a/components/docs/docs-markdown.tsx b/components/docs/docs-markdown.tsx new file mode 100644 index 0000000..e57e8a2 --- /dev/null +++ b/components/docs/docs-markdown.tsx @@ -0,0 +1,49 @@ +import ReactMarkdown from 'react-markdown' +import remarkGfm from 'remark-gfm' +import { makeHeadingSlugger, isInDocumentHref } from '@/lib/markdown-anchors' + +// Docs-brand markdown renderer. Unlike components/markdown.tsx (which is bound +// to the management app's theme tokens), this emits headings with stable anchor +// ids and otherwise leans on the `.docs-prose` stylesheet in docs.css so the +// output matches the public site's dark / monospace / lime aesthetic. +// +// Content here is author-trusted (checked-in .md), but we still never enable +// rehypeRaw, so any stray HTML stays inert. +export function DocsMarkdown({ content }: { content: string }) { + const slug = makeHeadingSlugger() + + return ( +
react-markdown wraps a lone image in) styled as blocks; the alt
+ // text doubles as the caption.
+ img: ({ src, alt }) =>
+ typeof src === 'string' ? (
+
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+
+ {alt ? {alt} : null}
+
+ ) : null,
+ a: ({ href, children }) =>
+ isInDocumentHref(href) ? (
+ {children}
+ ) : (
+
+ {children}
+
+ ),
+ }}
+ >
+ {content}
+
+```
+
+The link lands new people on a space-scoped join page that carries the code into account creation. Anyone who redeems it becomes a member at the role the invite grants.
+
+## Revoke or remove a code
+
+These controls are admin-only.
+
+- **Disable** turns the code off without deleting it. Redemptions stop immediately; you can **Enable** it again later. This is the quickest way to revoke a leaked or expired code.
+- **Delete** removes the code permanently after a confirmation prompt.
+
+A code also stops working on its own once it is disabled, past its expiry, or at its use cap. The list flags these with `disabled`, `expired`, and `at cap` markers, and each row shows its usage count (for example, `uses 3 / 10`).
+
+## Notes and edge cases
+
+- Disabling and deleting affect only future joins. Members who already joined keep their role; change it from [`/members`](/members).
+- If your space requires approval, new joiners still land as unverified pending an admin's review. See [Roles and permissions](/docs/reference/roles-and-permissions) for what each granted role can do.
diff --git a/content/docs/how-to/manage-ops-knowledge.md b/content/docs/how-to/manage-ops-knowledge.md
new file mode 100644
index 0000000..c7177de
--- /dev/null
+++ b/content/docs/how-to/manage-ops-knowledge.md
@@ -0,0 +1,96 @@
+The Ops & Facilities hub at [/ops](/ops) is where your space keeps its operational memory: how-to articles, repeatable processes, who owns which area, and the credentials that run the building. This recipe walks you through writing each kind of entry and storing a credential safely in the encrypted vault.
+
+The screen has four tabs: **Knowledge Base**, **Processes**, **Secrets & Credentials**, and **Area Leads**. Every current member can read and author the first two. Secrets and area leads are restricted, as noted below.
+
+
+
+## Write a knowledge base entry
+
+Any current member can add an article; there is no separate authoring role.
+
+1. Open [/ops](/ops) and stay on the **Knowledge Base** tab.
+2. Click **Add Entry** (top right).
+3. Fill in the fields:
+
+| Field | Required | Notes |
+| --- | --- | --- |
+| Title | Yes | Up to 200 characters (for example, `How to open the space`). |
+| Content | Yes | The article body, up to 50,000 characters. |
+| Area | No | A free-text label (for example, `Woodshop`, `Kitchen`). |
+| Visibility | Yes | Who may read it. Defaults to All Members. |
+| Pin | No | Marks the entry critical so it stays at the top. |
+| Tag as Process | No | Moves the entry to the Processes tab. |
+
+4. Click **Create Entry**.
+
+### Set who can read it
+
+The **Visibility** dropdown maps to the `kb_visibility` values in the database:
+
+- **All Members** (`all_members`): every member can read it. This is the default.
+- **Board Only** (`board`): restricted to board members.
+- **Admin Only** (`admin_only`): restricted to admins.
+
+Visibility controls reading, not authoring. Set it deliberately for anything sensitive, since the default is All Members.
+
+## Add a process
+
+A process is just a knowledge base entry tagged `process`. It lives on the **Processes** tab so step-by-step procedures stay separate from reference articles.
+
+1. Open the **Processes** tab and click **Add Entry**.
+2. Fill in Title and Content as above.
+3. Check **Tag as Process** before saving.
+
+The entry now appears under Processes and is filtered out of the Knowledge Base list. Uncheck the tag to move it back.
+
+## Assign an area lead
+
+Area leads record who owns each space, station, or zone. Adding, editing, and removing leads requires the `admin` or `board` role.
+
+1. Open the **Area Leads** tab and click **Add Area Lead**.
+2. Fill in the fields:
+
+| Field | Required | Notes |
+| --- | --- | --- |
+| Area Name | Yes | The area this person owns (for example, `Woodshop`). |
+| Member Name | Yes | The lead's name or handle (for example, `Alice Smith`). |
+| Contact Info | No | How to reach them (for example, an email or `Slack @alice`). |
+
+3. Click **Add Lead**.
+
+## Store a credential in the vault
+
+The **Secrets & Credentials** tab is an encrypted vault for shared credentials: WiFi passwords, alarm codes, vendor logins, and door controller passwords. The [connect a door](/docs/how-to/connect-a-door) recipe expects the controller's shared password to live here, then references it from the connection.
+
+### What the vault needs
+
+Encryption uses AES-256-GCM with a master key read server-side from the `SECRETS_ENCRYPTION_KEY` environment variable (64 hex characters, generated with `openssl rand -hex 32`). The key never reaches the browser; the server encrypts each value before storing it. If the key is missing, the value is stored unencrypted as a fallback, so confirm it is set before trusting the vault. See the [security model](/docs/explanation/security-model) for how the crypto and access layers fit together.
+
+### Who can add and reveal
+
+- **Add or edit** a secret: `admin` or `board` only. The **Add Secret** button appears only when you can see the tab.
+- **Reveal** a secret: `admin` or `board`, a holder of the `ops.secrets.read` permission, or anyone granted per-secret access through the **Access** editor.
+- **Delete** a secret: `admin` only.
+
+If you lack access, the Secrets tab shows a lock and no values.
+
+### Add a secret
+
+1. Open the **Secrets & Credentials** tab and click **Add Secret**.
+2. Fill in the fields:
+
+| Field | Required | Notes |
+| --- | --- | --- |
+| Label | Yes | What the credential is (for example, `WiFi Password`). |
+| Area | No | An optional grouping (for example, `Network`). |
+| Secret Value | Yes | The credential itself, up to 5,000 characters. |
+
+3. Click **Save Secret**. The value is sent to the server, encrypted, and never written to the browser in plaintext.
+
+### Reveal a secret
+
+The list shows only each secret's label and area; the value stays hidden until you ask for it.
+
+1. Find the secret and click **Reveal**. The server decrypts it on demand and returns the plaintext just to you.
+2. Use **Copy** to put the value on your clipboard.
+3. The value re-hides after 30 seconds, and immediately if the window loses focus (for example, during a screen share). Every reveal is written to the activity log.
diff --git a/content/docs/how-to/publish-a-policy.md b/content/docs/how-to/publish-a-policy.md
new file mode 100644
index 0000000..9ef543a
--- /dev/null
+++ b/content/docs/how-to/publish-a-policy.md
@@ -0,0 +1,64 @@
+Policies are your space's versioned governance documents: bylaws, code of conduct, station rules. Each policy has a stable slug and a full version history, and only one version at a time is active. This recipe walks you through drafting a policy, publishing it, and later superseding it with a new version.
+
+You need the `admin` or `board` role. Every member can read policies at [/policies](/policies), but the `New policy` button and the management controls only appear for admins and board.
+
+## Draft a new policy
+
+1. Go to [/policies](/policies) and click `New policy` (top right). This opens [/policies/new](/policies/new).
+2. Fill in the fields:
+
+| Field | Required | Notes |
+| --- | --- | --- |
+| Slug | Yes | Lowercase letters, numbers, and hyphens only; max 80 characters (e.g. `bylaws`, `code-of-conduct`). This is the stable identifier that carries across every version. |
+| Section reference | No | An optional citation label such as `Article III §2`, shown next to the version. |
+| Title | Yes | Human-readable name, max 200 characters. |
+| Plain-language summary | No | A short, readable gloss of the formal text. Rendered as Markdown. |
+| Formal text | Yes in practice | The authoritative body. Rendered as Markdown. |
+
+3. Click `Save as draft v1`. The policy is created at `version` 1 with status `draft` and you land on its detail page at `/policies/`.
+
+A draft is not yet in force. It has no `effective_at` date and does not count as the space's governing text until you activate it.
+
+The slug must be unique within your space. If you try to create a second policy with a slug that already exists, you get an error telling you to supersede the existing one instead, that is how new versions are made.
+
+## Publish (activate) the policy
+
+1. Open the policy at `/policies/`.
+2. In the `Manage` panel, click `Activate v1`.
+
+Activating does two things atomically:
+
+- Sets the policy's status to `active` and stamps `effective_at` with the current time.
+- Marks any previously `active` version of the same slug as `superseded`, so exactly one version is ever active.
+
+The detail page's primary view always shows the active version (falling back to the latest version if none is active), and the status badge on [/policies](/policies) reflects it.
+
+## Supersede with a new version
+
+When the text needs to change, you do not edit the active version in place, you publish a new version and swap it in.
+
+1. Open the active policy and click `Supersede with new version` in the `Manage` panel.
+2. The formal text and plain-language fields open pre-filled with the current version's content. Edit them.
+3. Click `Create draft v`. This inserts a new row that keeps the same slug, increments `version`, records `prior_version_id` pointing at the version you superseded, and starts at status `draft`.
+4. Review the new draft, then click `Activate v`. Activation flips the new version to `active` and marks the prior active version as `superseded` in the same step.
+
+The full lineage stays visible in the `Version history` section of the detail page, newest first, with each version's status and creation date. Nothing is ever deleted.
+
+## Other status transitions
+
+The `Manage` panel also exposes the remaining statuses. Policy status is one of:
+
+| Status | Meaning |
+| --- | --- |
+| `draft` | Written but not in force; no effective date. |
+| `active` | The current governing version. At most one per slug. |
+| `deprecated` | Retired without a replacement (e.g. a rule you no longer enforce). Use the `Deprecate` button on an active policy. |
+| `superseded` | Replaced by a newer version. Set automatically when a newer version is activated. |
+
+You can also set `draft`, `deprecated`, or `superseded` directly with the `Set ` buttons, but the automatic transitions during activation handle the common case.
+
+## Notes
+
+- Every action here requires the `admin` or `board` role; the underlying create, supersede, and status actions reject anyone else.
+- A version can record the proposal that adopted it; when set, the version history links straight to that proposal. See [Run a proposal](/docs/how-to/run-a-proposal) for putting a bylaw change to a vote before you activate it.
+- Both body fields render Markdown, so headings, lists, and emphasis display formatted on the detail page.
diff --git a/content/docs/how-to/run-a-proposal.md b/content/docs/how-to/run-a-proposal.md
new file mode 100644
index 0000000..53b47c1
--- /dev/null
+++ b/content/docs/how-to/run-a-proposal.md
@@ -0,0 +1,62 @@
+Proposals give your space an auditable, async way to decide things: a member drafts a question, opens it for voting, members record a position, and the app computes quorum and pass/fail for you. This recipe walks the full lifecycle from draft to decided.
+
+
+
+## Before you start
+
+- Any current member can create a proposal and open it for voting. A member whose status is still `unverified` (pending approval) cannot create, open, or vote.
+- Only an `admin` or `board` member can mark an open proposal **decided**. A proposer can **withdraw** their own proposal only while it is still a **draft**; an `admin` or `board` member can withdraw a draft **or** an open proposal. The Withdraw button also appears to the proposer on an open proposal, but clicking it there is a silent no-op, row-level security blocks the change and no error is shown.
+- Quorum and the voting window are not entered per proposal. They are computed from your space's governance defaults at the moment voting opens. You choose only the pass **threshold**.
+
+## Create the proposal
+
+1. Go to [/proposals](/proposals) and click **New proposal** (this opens [/proposals/new](/proposals/new)).
+2. Fill in **Title** and **Body**. The body accepts Markdown and is rendered on the detail page.
+3. Pick a **Type**. This is a label describing the kind of decision:
+
+ | Type | Use for |
+ |------|---------|
+ | `advisory_poll` | Non-binding sense of the room (the default) |
+ | `board_action` | A specific action for the board to take |
+ | `membership_vote` | A decision put to the membership |
+ | `bylaw_change` | Amending a policy or bylaw |
+ | `budget` | Spending or budget approval |
+ | `recall` | A vote of confidence / recall |
+
+4. Pick a **Threshold to pass**. This sets how the yes/no split is judged when the proposal is decided:
+
+ | Threshold | Passes when |
+ |-----------|-------------|
+ | `simple_majority` | Yes votes exceed no votes |
+ | `two_thirds` | Yes is at least two-thirds of yes+no |
+ | `three_fourths` | Yes is at least three-fourths of yes+no |
+ | `unanimous` | No "no" votes and at least one "yes" |
+
+5. To go straight to voting, tick **Open voting immediately**. Its label notes that quorum and the voting window come from space defaults. Leave it unchecked to save a draft you can open later.
+6. Click **Save proposal**. You land on the proposal's detail page.
+
+## Open voting
+
+If you saved a draft, open it when you are ready. On the proposal page under **Manage**, click **Open for voting**. At that moment the app:
+
+- counts your active members and computes `quorum_required` from the space's default quorum percent (with a floor), and
+- sets the voting window using the default window length (shipped default is 216 hours, or 9 days) unless you supplied a close time.
+
+Once open, the proposal moves to the **Open for voting** section on [/proposals](/proposals) and shows its close time.
+
+## Let members vote
+
+While voting is open, every member sees a **Cast your vote** panel with four positions: `yes`, `no`, `abstain`, `recused`. Choosing `recused` requires a recusal reason. A public **Comment** is optional. Members can change their vote until the window closes; votes are never deleted. All votes and voter names are visible to the space for transparency.
+
+The **Tally** section updates live: yes / no / abstain / recused counts, plus a quorum bar showing votes counted against `quorum_required` and whether quorum is **met**. Quorum counts yes, no, and abstain; recused votes do not count toward quorum.
+
+## Record the outcome
+
+When the discussion has run its course, an `admin` or `board` member clicks **Mark decided** under **Manage**. This freezes the tally, stamps the decision time, and sets the outcome. The proposal page then shows **PASSED** or **DID NOT PASS**, and it moves to the **Archive** section on [/proposals](/proposals).
+
+A proposal passes only if quorum was met **and** the threshold you chose is satisfied on the yes/no split (abstentions do not count toward the threshold). If quorum was never met, the result is **DID NOT PASS** regardless of the vote split.
+
+## Related
+
+- [Governance model](/docs/explanation/governance-model), why proposals, incidents, and policies are built together.
+- [Governance reference](/docs/reference/governance), every enum, field, and status.
diff --git a/content/docs/how-to/stripe-dues.md b/content/docs/how-to/stripe-dues.md
new file mode 100644
index 0000000..01952e7
--- /dev/null
+++ b/content/docs/how-to/stripe-dues.md
@@ -0,0 +1,59 @@
+Recurring Stripe dues let members subscribe once and have every renewal reconcile itself: the payment lands in your ledger already matched to the member and their dues advance with no treasurer action. This recipe enables it end to end, using your space's own Stripe account.
+
+
+
+## Before you start
+
+You need the `admin` role to configure Stripe. All setup happens on the [/settings](/settings) screen, which is admin-only. You also need a Stripe account and, in it, the ability to create Prices, add a webhook, and activate the Customer Portal.
+
+This is the automatic path. For PayPal, Venmo, Zeffy, or cash that you match by hand, see [Connect payments and reconcile manually](/docs/how-to/connect-payments) instead.
+
+## Create your dues Prices in Stripe
+
+1. In the Stripe Dashboard, create one recurring **Price** per membership tier you charge (`plus`, `basic`, `associate`).
+2. Copy each `price_...` id. You will map tiers to these in the next step.
+
+Members are charged the Price mapped to their tier, so a member whose tier has no Price cannot check out.
+
+## Enable Stripe in your space
+
+Open [/settings](/settings) and go to the **Dues** tab, **Stripe recurring dues** panel.
+
+1. Set **mode** to `Test` or `Live`.
+2. Enter your **publishable key** (`pk_...`).
+3. Enter your **secret key** (`sk_...`).
+4. Fill the **Tier to Stripe Price** map with the `price_...` ids from Stripe.
+5. Set **grace days**: how long a past-due member stays `current` before flipping to `late` (default `7`).
+6. Click **Save Stripe settings**.
+
+The secret key and webhook signing secret are stored in the encrypted secrets vault, never in plain config, and are never shown again. A blank secret field on a later save keeps the stored value; type a new value only to rotate it. Non-secret settings (mode, publishable key, price map, grace days) live in `integrations.config`.
+
+## Add the webhook
+
+The panel shows your endpoint: `/api/stripe/webhook/`.
+
+1. In Stripe, go to **Developers, Webhooks** and add that URL.
+2. Subscribe to these events: `checkout.session.completed`, `customer.subscription.*`, `invoice.paid`, `invoice.payment_failed`.
+3. Copy the signing secret (`whsec_...`), paste it into the **webhook signing secret** field, and save again.
+4. Activate the **Customer Portal** in Stripe so members can manage their card and cancel.
+
+Without the signing secret the endpoint rejects every event, so dues will not advance until this step is done.
+
+## How a member subscribes
+
+A member opens [/me](/me) and starts checkout. The app resolves their membership and tier server-side, creates or reuses their Stripe customer, and opens a hosted Checkout in subscription mode. They never pick a plan or type an amount.
+
+## How reconciliation happens automatically
+
+When Stripe fires an event, the webhook resolves which member it belongs to by the `member_id` written into the subscription and checkout metadata, falling back to the `stripe_customer_id` on file. It never matches by email.
+
+- On `invoice.paid`, the charge is written to your [/payments](/payments) ledger already `linked` to the member, and their last-paid date advances. No manual reconcile step.
+- Subscription events keep `member_billing` in sync and set the member `current` or `late`.
+
+A member stays `current` through the grace window, which is `current_period_end` plus your grace days. Only past that does the webhook mark them `late`. Dues never auto-set `inactive`; that stays an admin decision. Out-of-order events never rewind a member's paid period.
+
+## Related
+
+- [Payments and dues reference](/docs/reference/payments-and-dues)
+- [Data and reconciliation](/docs/explanation/data-and-reconciliation)
+- [Connect payments and reconcile manually](/docs/how-to/connect-payments)
diff --git a/content/docs/how-to/track-projects.md b/content/docs/how-to/track-projects.md
new file mode 100644
index 0000000..3a21222
--- /dev/null
+++ b/content/docs/how-to/track-projects.md
@@ -0,0 +1,43 @@
+Projects are how your space tracks shop builds and multi-step work on a shared board: backlog, in progress, review, and done. Any member can create a project and move it across the board; only board members and admins can delete one. This recipe covers creating a project, setting its details, and reading progress on the board.
+
+## Before you start
+
+- **View the board, create a project, change a project's status:** any current member of the space.
+- **Delete a project:** `board` or `admin` role. The board's delete control is offered to everyone, but the database rejects the delete unless you hold one of those roles, so a non-privileged member will see an error.
+- Projects are scoped to your space. You only ever see and edit projects that belong to the space you are a member of.
+
+## Create a project
+
+1. Go to [/projects](/projects) and click **New Project**. You can also use **+ Add project** at the foot of any column, or the button on the empty state.
+2. Enter a **Title** (required, up to 200 characters).
+3. Optionally add a **Description** (up to 2000 characters).
+4. Choose an **Area** from the dropdown. The list comes from your space's configured areas (Woodshop, Electronics, Laser, and so on); if none are set up, a default list is shown. Leave it on **No area** to skip. See [Customize your space](/docs/how-to/customize-space) to define areas.
+5. Optionally set a **Due Date** and add **Tags** as a comma-separated list (for example `electronics, hardware, cnc`), up to 20 tags.
+6. Click **Create Project**.
+
+New projects always start in the **Backlog** column. Status and lead cannot be chosen at creation time (status defaults to `backlog`).
+
+## Set status on the board
+
+The board groups projects into four columns by status: **Backlog**, **In Progress**, **Review**, and **Done**. Each column header shows a count of the projects in it.
+
+To move a project, open the status dropdown on its card and pick the new column. The card moves immediately and the change is saved.
+
+Note one edge case: the underlying status field also has a `blocked` value, but the board has no `blocked` column and the dropdown does not offer it. A project set to `blocked` outside this screen will not appear in any column here.
+
+## Read progress and details
+
+Each card shows the title, an optional description, the area and due date, any tags, and a thin progress bar. The bar reflects the project's stored progress value (0 to 100 percent), which is driven by the project's linked tasks rather than edited by hand on this screen. See [/tasks](/tasks) to add work items to a project.
+
+## Members and leads
+
+The projects schema keeps a **lead** and **assignee** fields, but the board screen does not expose controls to set them. Creating and moving projects here does not assign a lead or members; those fields stay empty unless populated elsewhere.
+
+## Delete a project
+
+Hover a card and click the small **x** in its top-right corner, then confirm. Deletion is permanent. If you lack the `board` or `admin` role, the action returns an error and the project stays put.
+
+## Related
+
+- [Customize your space](/docs/how-to/customize-space) - define the areas that tag projects.
+- [Permissions model](/docs/explanation/permissions-model) - how role gates like delete are enforced.
diff --git a/content/docs/how-to/use-comms-and-forum.md b/content/docs/how-to/use-comms-and-forum.md
new file mode 100644
index 0000000..fdb6443
--- /dev/null
+++ b/content/docs/how-to/use-comms-and-forum.md
@@ -0,0 +1,55 @@
+Your space has two ways to talk: **Comms** at [/comms](/comms) for fast, real-time chat in channels, and the **Forum** at [/forum](/forum) for longer threaded discussion that sticks around. This recipe covers posting to channels, starting and moderating threads, and who is allowed to do what.
+
+## Before you start
+
+- **Post messages, create channels, start threads, comment:** any current member of the space.
+- **Pin or lock a thread:** the `admin` or `board` role. The `forum.moderate` permission carries this and is granted to `board` by default (see [Roles and permissions](/docs/reference/roles-and-permissions)).
+- **Delete a thread:** its author, or an admin.
+- **Delete a comment:** its author, an admin, or a board member.
+- Comms and Forum are space-wide. Every member sees every channel and every thread. There is no per-tier, per-role, or visibility gate on channels or threads, so treat them as open to your whole membership.
+
+## Post to a comms channel
+
+1. Open [/comms](/comms) and pick a channel from the sidebar. New spaces start with three: `general`, `announcements` (both `general` type), and `ops`.
+2. Type in the message box and press **Enter** to send (up to 4000 characters).
+3. Your message appears instantly and is delivered to everyone viewing the channel in real time.
+
+Messages are read on the browser client through a realtime subscription, but sending goes through the `sendMessage` server action. Your sender identity (display name, handle, and space) is derived server-side from your session, never from the browser, so you cannot post as someone else or into another space's channel.
+
+### Channel types
+
+Channels carry one of four types: `general`, `area`, `ops`, or `project`. The sidebar groups them under General, Areas, and Projects. When you create a channel the picker offers general, area, and project; `ops` is used by the seeded operations channel.
+
+### Create a channel
+
+1. In the [/comms](/comms) sidebar, click **New channel**.
+2. Enter a name (lowercase letters, numbers, and hyphens only, up to 50 characters, unique within your space).
+3. Optionally add a description, choose a type, and click **Create**.
+
+Any member can create a channel. The creator or an admin or board member can rename it; a non-default channel can be deleted by its creator or an admin or board member. The default `general` channel cannot be deleted.
+
+## Start a forum thread
+
+1. Go to [/forum](/forum) and click **New thread** (or open [/forum/new](/forum/new)).
+2. Enter a **Title** (up to 200 characters).
+3. Pick a **Category**: General, Announcements, Projects, Help, Feedback, or Off topic.
+4. Write the **Body** in Markdown (headings, lists, code blocks, and links are supported), then click **Post thread**. You land on the new thread page.
+
+### Comment on a thread
+
+Open any thread at [/forum/[id]](/forum) and add a comment (up to 10000 characters). Reply to an existing comment to nest the discussion. You can edit or delete your own comments; admins and board members can remove any comment. If a thread is **locked**, new comments are rejected.
+
+## Moderate the forum
+
+Admins and board members see extra controls on a thread:
+
+- **Pin** keeps a thread at the top of the list.
+- **Lock** stops new comments while keeping the thread readable.
+- **Delete** removes the thread and all of its comments. This cannot be undone.
+
+Pinning and locking are restricted to the `admin` and `board` roles. Deleting a thread is restricted to its author or an admin (board members cannot delete a thread they did not write, though they can delete comments).
+
+## Related
+
+- [Roles and permissions](/docs/reference/roles-and-permissions) for what each role can do.
+- [Customize your space](/docs/how-to/customize-space) to set up the areas your channels and threads reference.
diff --git a/content/docs/reference/access-control.md b/content/docs/reference/access-control.md
new file mode 100644
index 0000000..b8c44f8
--- /dev/null
+++ b/content/docs/reference/access-control.md
@@ -0,0 +1,85 @@
+Physical access lives in the door module: member cards, per-door connections to a controller, the slot map that keys cards into a controller, inbound event ingest, and an append-only access log. This page is the exhaustive reference for those tables, their fields, and the permissions that gate them. To set a door up step by step, see [Connect a door](/docs/how-to/connect-a-door).
+
+## Permissions
+
+Two access permission codes gate the whole module, plus one for API buttons. All are additive and assignable to any role; the seed grants them to `board`, and `admin` holds them implicitly. See [Roles and permissions](/docs/reference/roles-and-permissions).
+
+| Code | Group | Grants |
+| --- | --- | --- |
+| `door.manage` | Access | Configure connections and API buttons; manage member cards; view the access log |
+| `door.operate` | Access | Live actions: open/unlock/lock, grant/revoke a card; view the access log |
+| `apicall.invoke` | Access | Default required permission to press an API button |
+
+Managers configure at [/door/manage](/door/manage) and [/door/buttons](/door/buttons). Members see their own cards, self-entry doors, buttons they may press, and their recent activity at [/doors](/doors); the dashboard also surfaces self-entry.
+
+## Member cards
+
+`member_cards` maps a physical card UID to a member. The raw UID is treated as a credential: only `door.manage` holders can read the table, and a member's own view returns a per-card list (`card_type`, `label`, `is_active`, and the last four characters of the UID, rendered `••••ABCD`), never more than the last four of the UID.
+
+| Field | Type | Notes |
+| --- | --- | --- |
+| `card_uid` | text | The credential. Unique per `(space_id, card_uid)` |
+| `card_type` | text | `rfid` or `nfc` (default `rfid`) |
+| `label` | text | Optional operator label |
+| `is_active` | boolean | Inactive cards cannot be granted |
+
+## Door connections
+
+A `door_connections` row is one configured integration to a physical controller.
+
+| Field | Values | Notes |
+| --- | --- | --- |
+| `adapter` | `native_heatsync`, `generic_http` | HeatSync/23b uses built-in query-string verbs; generic uses per-verb templates |
+| `base_url` | must start with `http://`/`https://` | Controller or reachable proxy |
+| `pinned_host` | hostname/IP | SSRF pin: the executor calls only this host, blocks cloud-metadata/link-local, and forbids redirects |
+| `auth_mode` | `none`, `query`, `header`, `bearer` | With `auth_param` |
+| `secret_ref` | secrets vault id | Outbound door password; decrypted server-side only, never returned |
+| `verbs` | jsonb | Generic per-verb templates with `{slot}`, `{tag}`, `{perm}`, `{door}`, `{pw}` |
+| `allow_member_self_entry` | boolean | Opt-in per connection; off by default |
+| `is_enabled` | boolean | Disabled connections reject all calls |
+| `inbound_enabled` | boolean | Gates the inbound webhook |
+| `inbound_secret_ref` | secrets vault id | Inbound webhook bearer, distinct from the door password |
+
+Native HeatSync encodes fixed-width query strings: grant `?m&p&t&e=`, revoke `?r&e=`, and control verbs `?o1` (open), `?u` (unlock), `?l` (lock), `?9` (status), `?z` (log).
+
+## Card slots
+
+`door_card_slots` is the platform's allocation map. Controllers key cards by an integer `slot` (HeatSync range 0-200), scoped per connection.
+
+- `UNIQUE (connection_id, slot)` arbitrates concurrent grants racing for a slot.
+- `UNIQUE (connection_id, card_id)` makes re-granting idempotent.
+- The lowest-free-slot policy lives in unit-tested logic, not SQL. Only the service-client executor writes rows, in lockstep with the controller call.
+
+## Inbound ingest
+
+Two transports pull entry/denied events into the log and share one core. Ingested rows carry `door_access_log.dedupe_key` (partial-unique per connection), so retries and re-polls insert once via `ON CONFLICT DO NOTHING`.
+
+- Poll: a `CRON_SECRET`-guarded route reads each enabled `native_heatsync` connection's `?z` log through the hardened executor.
+- Webhook: a per-connection public endpoint accepts normalized event JSON, authenticated by the inbound bearer secret. Used for generic controllers and relays.
+
+## Access log
+
+`door_access_log` is an append-only, immutable audit of every attempt. Secrets are redacted before write, and only the validated service-client executor inserts rows (no client write policy). `door.manage` or `door.operate` may read it.
+
+| Field | Notes |
+| --- | --- |
+| `action` | `grant`, `revoke`, `open`, `unlock`, `lock`, `test`, `self_entry`, plus ingested events |
+| `success` | Attempt outcome |
+| `actor_member_id` / `target_member_id` | Who acted / whose card |
+| `detail` | Redacted status snippet |
+| `dedupe_key` | Set only on ingested rows |
+
+## API buttons
+
+`api_buttons` are named admin-defined HTTP calls fired through the same hardened egress as the door executor.
+
+| Field | Values | Notes |
+| --- | --- | --- |
+| `label` / `button_group` | text | Grouped and ordered by `sort_order` |
+| `method` | `GET`, `POST`, `PUT`, `PATCH`, `DELETE` | Default `POST` |
+| `base_url` / `pinned_host` |, | Per-button SSRF pin |
+| `url_template` / `body_template` / `headers` |, | With `secret_ref` injected server-side |
+| `required_permission` | catalog code | Default `apicall.invoke`; a member sees only buttons whose permission they hold |
+| `confirm` | boolean | Prompt before firing (default true) |
+
+Managing buttons requires `door.manage`. Every press writes one redacted row to `api_call_log`, which mirrors the access log's immutable, `door.manage`-read posture.
diff --git a/content/docs/reference/classes-and-equipment.md b/content/docs/reference/classes-and-equipment.md
new file mode 100644
index 0000000..49fbbbd
--- /dev/null
+++ b/content/docs/reference/classes-and-equipment.md
@@ -0,0 +1,106 @@
+The classes, certifications, and equipment modules share one spine: a certification type awarded by completing a class can gate who may reserve a piece of equipment. This page is the exhaustive reference for their data model, statuses, capacity rules, and the permissions that guard each action.
+
+## Classes
+
+A class is a per-space offering; a session is a scheduled occurrence; a signup is one member's place in a session. Members browse and sign up at [/classes](/classes); managers create classes and sessions at [/classes/manage](/classes/manage).
+
+### Class fields
+
+| Field | Notes |
+| --- | --- |
+| `title` | 1-200 chars, required |
+| `description` | optional |
+| `payment_link` | optional `http(s)` URL only; a manual link, no live payment integration |
+| `capacity` | optional default per-session capacity; `> 0`; null = unlimited |
+| `grants_certification_id` | optional; completing a session of this class can award this certification |
+| `required_form_id` | optional; a published [form](/docs/how-to/build-a-form) that must be on file before signup |
+| `is_active` | archive flag; inactive classes are hidden from members |
+
+### Session fields
+
+`class_sessions` carry `starts_at`, optional `ends_at` (must be `>= starts_at`), `location`, an optional `capacity` override, `notes`, and a status.
+
+| Session status | Meaning |
+| --- | --- |
+| `scheduled` | open; the default |
+| `cancelled` | closed to signups; signed-up members are emailed |
+| `completed` | run and closed; set only via completion, which fires cert awards |
+
+### Signup and waitlist rules
+
+- **Effective capacity** = the session `capacity` if set, else the class `capacity`, else unlimited.
+- A new signup is `registered` when the current registered count is below effective capacity, otherwise `waitlisted`.
+- At most one non-cancelled signup per member per session; cancelling leaves the row as history and a re-signup is allowed.
+- When a `registered` member cancels and a seat frees, the earliest-signed-up `waitlisted` member is promoted to `registered` and emailed.
+- Signup and cancel run inside per-session transactional functions (`class_signup_tx` / `class_cancel_tx`) so concurrent signups cannot over-enroll and concurrent cancels cannot double-promote.
+
+| Signup status | Set by |
+| --- | --- |
+| `registered` | signup below capacity, or waitlist promotion |
+| `waitlisted` | signup at or above capacity |
+| `cancelled` | member or manager cancel |
+
+Signing up needs no permission, only space membership. If the class has a `required_form_id`, the member must have a completed submission on file first; a manager acting with override bypasses this and can sign another member up.
+
+### Attendance and completion
+
+Instructors mark `attended` per signup and complete a session. Completing sets the session to `completed`; if the class has `grants_certification_id`, the certification is awarded to every attended, non-cancelled member. That award goes through the normal certifications path, so it only succeeds if the acting instructor also holds `certifications.grant`; otherwise completion still succeeds and the response reports that certificates were not issued.
+
+### Class permissions
+
+| Permission | Grants |
+| --- | --- |
+| `classes.manage` | create/edit/archive classes; schedule/cancel/delete sessions |
+| `classes.instruct` | view attendees, mark attendance, complete a session |
+
+Both seed to the `board` role by default.
+
+## Certifications
+
+A certification is a per-space type (name unique case-insensitive, `description`, optional `validity_months`, `is_active`). A grant (`member_certifications`) awards one type to one member. Managed alongside members at [/certifications](/certifications) and [/members](/members).
+
+- `expires_at` is computed and stored **at grant time** from the type's `validity_months` (null = never expires). Later edits to the type never change existing grants.
+- At most one active (non-revoked) grant per member per type; revoked grants stay as history and a re-grant is allowed.
+- Revoking is a soft revoke (`revoked_at`, `revoked_by`, `revoked_reason`); grants are never hard-deleted by clients.
+- Renewing a non-revoked grant resets `granted_at` and recomputes expiry. A revoked grant is terminal, issue a fresh grant.
+
+| Cert status | Rule |
+| --- | --- |
+| `active` | not revoked, not expired |
+| `expiring_soon` | expires within 30 days |
+| `expired` | past `expires_at` |
+| `revoked` | `revoked_at` set (always wins) |
+
+| Permission | Grants |
+| --- | --- |
+| `certifications.manage` | create/edit/archive certification types |
+| `certifications.grant` | award/revoke/renew grants; this is the "instructor" capability |
+
+## Equipment and reservations
+
+Equipment is a per-space tool record; a reservation is one member's time window on one tool. Members browse and reserve at [/equipment](/equipment); managers maintain the registry at [/equipment/manage](/equipment/manage). See [Reserve equipment](/docs/how-to/equipment-reservations) for the task walkthrough.
+
+Equipment fields: `name` (1-200), `description`, `location`, `asset_tag`, `is_active`, an optional `required_certification_id`, and an operational status.
+
+| Equipment status | Reservable? |
+| --- | --- |
+| `available` | yes |
+| `maintenance` | no |
+| `retired` | no |
+
+### Reservation rules
+
+- Reservations use half-open `[starts_at, ends_at)` windows; `ends_at` must be after `starts_at` and cannot start in the past.
+- Only `reserved` rows block; `cancelled` and `completed` never do. Two `reserved` windows on the same equipment may not overlap. Touching end-to-start does not overlap.
+- No-overlap is enforced in the database by a GiST exclusion constraint, so concurrent requests cannot double-book.
+- If the equipment has `required_certification_id`, the member must hold an active grant of it. A manager with `equipment.manage` override bypasses the cert gate and may book on another member's behalf, but override never bypasses an operational status block.
+
+| Reservation status | Meaning |
+| --- | --- |
+| `reserved` | active; blocks overlaps |
+| `cancelled` | released; member or manager |
+| `completed` | past/closed |
+
+Reserving needs only membership. `equipment.manage` covers registry CRUD, status changes, and adjusting or cancelling any reservation. Equipment that has reservations must be archived rather than deleted; likewise a class with sessions and a session with signups.
+
+Cert-gating ties the modules together: grant a certification on class completion, require that certification to reserve a machine. Roles and the seeding of these permissions are covered in [Roles and permissions](/docs/reference/roles-and-permissions).
diff --git a/content/docs/reference/forms.md b/content/docs/reference/forms.md
new file mode 100644
index 0000000..ab75689
--- /dev/null
+++ b/content/docs/reference/forms.md
@@ -0,0 +1,82 @@
+Forms and waivers are per-space form definitions with a jsonb field schema, a lifecycle status, and a visibility setting. Every submission snapshots the schema and legal text it was signed against, so a waiver stays valid against exactly what the signer saw even after the form is edited. This page documents the field types, visibility rules, gating, and the immutable submission record. To build one, see [Build a form](/docs/how-to/build-a-form).
+
+## Where forms live
+
+Managers work with forms at [/forms](/forms): created at [/forms/new](/forms/new), edited at `/forms/{id}/edit`, and their submissions viewed at `/forms/{id}/results`. Public and signed-in forms are filled at `/f/{space}/{slug}`; members-only forms are filled from inside the app. Managing forms requires the `forms.manage` permission, seeded to the `board` role by default (admins always have it via implicit-all). Ordinary members can read only `published` forms.
+
+## Form record
+
+Each form is one row in the `forms` table.
+
+| Field | Type | Notes |
+| --- | --- | --- |
+| `slug` | text | Unique per space. Lowercase letters, numbers, and internal hyphens; 1-80 chars. Immutable after creation. |
+| `title` | text | 1-200 chars. |
+| `description` | text | Optional, up to 2000 chars. |
+| `kind` | enum | `form` or `waiver`. |
+| `visibility` | enum | `public_anon`, `public_auth`, or `members`. |
+| `status` | enum | `draft`, `published`, or `closed`. |
+| `schema` | jsonb | Ordered array of field definitions (see below). |
+| `legal_text` | text | Optional legal/consent text, up to 100000 chars. |
+| `version` | integer | Starts at 1; bumps on waiver edits (see [Versioning](#versioning)). |
+
+The slug is unique per space (`UNIQUE (space_id, slug)`), not globally, so two spaces can use the same slug.
+
+## Field types
+
+The `schema` is an ordered array of fields. Each field has a `key` (lowercase letters, numbers, underscores; 1-60 chars; unique within the form), a `label`, an optional `help` string, and an optional `required` flag (default `false`). A form may have up to 200 fields.
+
+| `type` | Answer stored as | Server validation |
+| --- | --- | --- |
+| `short_text` | trimmed string | max 2000 chars |
+| `long_text` | trimmed string | max 20000 chars |
+| `email` | trimmed, lowercased string | must match an email pattern |
+| `number` | number | must be finite |
+| `date` | string | must parse as a date |
+| `checkbox` | boolean | if `required`, must be checked (`true`) |
+| `select` | string | must be one of `options` |
+| `radio` | string | must be one of `options` |
+
+`select` and `radio` fields require an `options` array (each option 1-200 chars, up to 100 options). Answers are validated server-side against the stored schema on submit: unknown keys are discarded, empty required fields are rejected, and only known fields are persisted.
+
+## Member linking
+
+A submission links to a member when its `submitter_email` matches a member in the same space (case-insensitive); if several members share an email, the earliest-joined one is chosen. For members-only and signed-in forms the linked member and email come from the authenticated session. For anonymous public submissions the email may be typed or derived from an `email`-type answer; linking by a typed email is an intentional attribution-only behavior that grants no access. Managers can re-run linking across the space, and members can retro-claim their own prior anonymous submissions once their email is verified.
+
+## Visibility
+
+Visibility controls who can open and submit a form.
+
+| `visibility` | UI label | Who can submit | Public URL |
+| --- | --- | --- | --- |
+| `public_anon` | Public | Anyone, no sign-in | `/f/{space}/{slug}` |
+| `public_auth` | Signed in | Any signed-in user | `/f/{space}/{slug}` |
+| `members` | Members only | Members of the space | Not served publicly; filled in-app |
+
+Members-only forms are never returned by the public page, so their schema is not exposed to non-members. The public read path serves only a `published` form and never a `members` form. A form must be `published` to accept responses regardless of visibility; `draft` and `closed` forms reject submissions.
+
+## Required-form gating
+
+A class definition can reference a form as its `required_form_id`. When set, the form gates signups for that class's sessions: a member cannot sign up until they have a submission on file for that form. The referenced form must be `published` before it can gate signups. See [Classes and sessions](/docs/reference/modules) and the class screens under [/classes](/classes).
+
+## Submission snapshots
+
+Submissions are rows in `form_submissions`. Each row captures a point-in-time copy of the form so the record is self-contained:
+
+| Field | Notes |
+| --- | --- |
+| `answers` | jsonb, keyed by field `key`; only known, validated fields. |
+| `form_snapshot` | The field schema as it was at submit time. |
+| `legal_text_snapshot` | The legal text as it was at submit time. |
+| `form_version` | The form's `version` at submit time. |
+| `member_id` | Linked member, if resolved (see below). |
+| `submitter_email` | Provided or derived email, lowercased. |
+| `ip`, `user_agent`, `created_at` | Request metadata and timestamp. |
+
+Submissions are immutable and append-only. The `form_submissions` table has no client insert, update, or delete policy under row-level security, so every submission is written by one validated server action using the service client, after server-side schema validation and snapshotting. Managers can read submissions (`forms.manage`) and permanently delete a single submission from the results screen. Deleting a form cascades and permanently removes all of its submissions, including signed waivers; this requires an explicit confirmation.
+
+Results are viewable at `/forms/{id}/results` and can be exported to CSV. The CSV header is `submitted_at`, `form_version`, `member_id`, `submitter_email`, `ip`, followed by one column per field key.
+
+## Waivers and versioning {#versioning}
+
+A form with `kind` set to `waiver` requires the submitter to agree (a consent flag must be `true`) before the submission is accepted. A form's `version` starts at 1. Editing bumps the version only when it is a `published` waiver and either the legal text or the field schema actually changed. This is a non-blocking re-sign: existing submissions stay valid against their own snapshot, and only new signers see the bumped version. Ordinary forms and draft waivers never bump their version on edit.
diff --git a/content/docs/reference/governance.md b/content/docs/reference/governance.md
new file mode 100644
index 0000000..537566b
--- /dev/null
+++ b/content/docs/reference/governance.md
@@ -0,0 +1,165 @@
+The governance kernel is three linked entities (proposals, incidents, and policies) plus the enums and computed fields that drive async voting, code-of-conduct tracking, and versioned bylaws. This page enumerates every enum value, field, and lifecycle state defined in the schema. It backs the app screens at [/proposals](/proposals), [/incidents](/incidents), and [/policies](/policies), and the how-to guides [Run a proposal](/docs/how-to/run-a-proposal), [Handle incidents](/docs/how-to/handle-incidents), and [Publish a policy](/docs/how-to/publish-a-policy).
+
+## Proposals
+
+A proposal is an async vote in a space. Members read and cast; admin and board members transition status. Tallies are recomputed by trigger on every vote.
+
+### `proposal_type`
+
+| Value | Meaning |
+|---|---|
+| `bylaw_change` | Amend a policy; usually cites a clause via `policy_ref_id` |
+| `board_action` | A board decision put to a vote |
+| `membership_vote` | A vote on a membership matter |
+| `advisory_poll` | Non-binding poll (the default) |
+| `recall` | Vote of confidence / recall |
+| `budget` | Budget or spending decision |
+
+The column default is `advisory_poll`.
+
+### `proposal_status`
+
+| Value | Meaning |
+|---|---|
+| `draft` | Editable by the proposer; not yet open for votes |
+| `open` | Voting window active; votes accepted |
+| `decided` | Closed with a recorded outcome |
+| `withdrawn` | Retracted before decision |
+| `expired` | Voting window elapsed without a decision |
+
+The column default is `draft`. Votes are only accepted while `status = 'open'` and the current time is within `voting_opens_at` and `voting_closes_at`.
+
+### `threshold_rule`
+
+Determines what fraction of yes-plus-no votes is required to pass.
+
+| Value | Passes when |
+|---|---|
+| `simple_majority` | `yes > no` |
+| `two_thirds` | `yes * 3 >= (yes + no) * 2` |
+| `three_fourths` | `yes * 4 >= (yes + no) * 3` |
+| `unanimous` | `no = 0` and `yes > 0` |
+
+A proposal passes only if quorum is met and at least one non-abstain vote exists. The column default is `simple_majority`.
+
+### `vote_position`
+
+| Value | Counts toward quorum | Counts toward threshold |
+|---|---|---|
+| `yes` | Yes | Yes |
+| `no` | Yes | Yes |
+| `abstain` | Yes | No |
+| `recused` | No | No |
+
+A vote of `recused` requires a non-empty `recusal_reason` (enforced by a check constraint). One vote per member per proposal (`UNIQUE (proposal_id, member_id)`); votes are never deleted.
+
+### Quorum and outcome fields
+
+Quorum is computed by trigger when a proposal moves to `open`. The member count includes only `space_members` with `status` in `current` or `late` and `approved = true`.
+
+| Field | Type | Notes |
+|---|---|---|
+| `quorum_percent` | integer | Percentage from space settings at open time |
+| `quorum_floor` | integer | Minimum absolute count |
+| `quorum_required` | integer | `GREATEST(quorum_floor, ceil(members * quorum_percent / 100))` |
+| `voting_opens_at` | timestamptz | Defaults to `now()` at open |
+| `voting_closes_at` | timestamptz | Defaults to open plus the space voting window |
+| `outcome_yes` / `outcome_no` / `outcome_abstain` / `outcome_recused` | integer | Live tallies, refreshed per vote |
+| `total_voters` | integer | Total votes cast |
+| `quorum_met` | boolean | `(yes + no + abstain) >= quorum_required` |
+| `passed` | boolean | Applies the `threshold_rule` |
+
+## Incidents
+
+An incident is a code-of-conduct complaint, safety report, or conflict. Admin and board members see all incidents; the reporter sees their own. Incidents are never deleted.
+
+### `incident_status`
+
+| Value | Meaning |
+|---|---|
+| `received` | Filed, not yet acknowledged (the default) |
+| `under_review` | Acknowledged by board; `acknowledged_at` set |
+| `decided` | Disposition recorded; `decided_at` set |
+| `appealed` | Reporter filed an appeal, linked via `appeal_proposal_id` |
+| `closed` | Resolved; `closed_at` set |
+
+### `incident_severity`
+
+| Value |
+|---|
+| `low` |
+| `medium` (default) |
+| `high` |
+| `critical` |
+
+### `incident_update_visibility`
+
+Each entry in an incident's update thread carries its own visibility. Admin and board can always read.
+
+| Value | Visible to |
+|---|---|
+| `reporter_only` | The reporter |
+| `all_parties` | Reporter and board (the default) |
+| `board_only` | Admin and board only |
+
+### Other incident fields
+
+| Field | Type | Notes |
+|---|---|---|
+| `reporter_id` | uuid | Null when anonymous |
+| `reporter_token` | text | Opaque token for anonymous status lookup; unique |
+| `is_anonymous` | boolean | Default false |
+| `subjects` | uuid[] | Members the report concerns |
+| `category` | text | Free-form; default `general` |
+| `disposition` | text | The recorded decision |
+| `decision_maker_ids` | uuid[] | Members who decided |
+| `sla_response_by` | timestamptz | Computed as `created_at + incident_sla_hours` |
+
+## Policies
+
+A policy is a versioned document, bylaws, code of conduct, station rules. Members read; admin and board create. Rows are immutable: a new version is a new row pointing back via `prior_version_id`, uniqueness enforced by `UNIQUE (space_id, slug, version)`.
+
+### `policy_status`
+
+| Value | Meaning |
+|---|---|
+| `draft` | Not yet in force (the default) |
+| `active` | In effect |
+| `deprecated` | Retired without a replacement |
+| `superseded` | Replaced by a newer version |
+
+### Other policy fields
+
+| Field | Type | Notes |
+|---|---|---|
+| `slug` | text | Stable identifier, e.g. `code-of-conduct` |
+| `section_ref` | text | Free-form clause reference, e.g. `8.4` |
+| `parent_policy_id` | uuid | Nests a policy under another |
+| `body_formal` | text | Formal text |
+| `body_plain` | text | Plain-language summary |
+| `version` | integer | Starts at 1 |
+| `effective_at` | timestamptz | When the version takes effect |
+| `adopted_by_proposal_id` | uuid | The proposal that adopted it, if any |
+
+## Space-level defaults
+
+Six columns on `spaces` seed governance behavior. Proposals copy the quorum, window, and threshold values at open time; incidents copy the SLA at creation.
+
+| Column | Default | Purpose |
+|---|---|---|
+| `default_quorum_percent` | 10 | Quorum as a percent of eligible members |
+| `default_quorum_floor` | 1 | Minimum quorum count |
+| `default_voting_window_hours` | 216 | Voting window (9 days) |
+| `default_threshold` | `simple_majority` | Default `threshold_rule` |
+| `incident_sla_hours` | 72 | Response SLA (3 days) |
+| `mission_statement` | null | Space mission text |
+
+## Cross-references
+
+The three entities link to each other:
+
+- A bylaw-change proposal cites a policy via `proposals.policy_ref_id`.
+- An incident appeal becomes a proposal; the proposal carries `parent_incident_id` and the incident carries `appeal_proposal_id`.
+- An adopted policy version records the proposal that passed it via `policies.adopted_by_proposal_id`.
+
+See also the [Modules reference](/docs/reference/modules) for where governance sits among the platform's modules.
diff --git a/content/docs/reference/integrations.md b/content/docs/reference/integrations.md
new file mode 100644
index 0000000..e1cf0d6
--- /dev/null
+++ b/content/docs/reference/integrations.md
@@ -0,0 +1,91 @@
+The platform reaches the outside world through three server endpoints: a notification dispatcher cron that drains the email outbox, two inbound door transports (a poll and a webhook), and the Resend email transport behind them. All three are session-less and authenticated by a shared secret or a per-connection bearer secret, never by a logged-in user. This page documents their contracts, environment variables, and behavior.
+
+## Environment variables
+
+These control delivery and cron authentication. The ones that govern integrations are:
+
+| Variable | Purpose | Unset behavior |
+|----------|---------|----------------|
+| `RESEND_API_KEY` | Resend HTTP API key for transactional email. | Outbox still fills; each row is recorded `failed` with "transport not configured" (non-retryable). |
+| `EMAIL_FROM` | From address for all platform email, e.g. `HeatSync Labs `. Domain must be verified in Resend (SPF + DKIM). | Same as unset `RESEND_API_KEY`: sends no-op as failed. |
+| `CRON_SECRET` | Shared secret guarding both cron endpoints. Generate with `openssl rand -hex 32`. | Both cron routes return `503` and never run. |
+| `SENTRY_DSN` | Optional Sentry-compatible error backend; both cron dispatchers and the webhook report to it. | Capture seam no-ops. |
+
+The two cron endpoints reuse the same `CRON_SECRET`. The door webhook does not use it, it authenticates on a per-connection secret from the vault.
+
+## Notification dispatcher, `POST /api/cron/notifications`
+
+Transactional email is an outbox (the `notifications` table). The Stripe webhook and other server actions only enqueue rows; nothing sends inline. This endpoint drains the outbox and is meant to be hit once a minute by the droplet crontab.
+
+- Auth: `Authorization: Bearer `, compared in constant time. Returns `503` if `CRON_SECRET` is unset, `401` on mismatch.
+- Selects up to 200 oldest `pending`, `channel = 'email'` rows under the attempt cap, then round-robin fair-drains up to 20 across spaces so one tenant's burst cannot head-of-line-block others.
+- Sends are spaced ~220 ms apart (~4.5/sec) to stay under Resend's 5 req/sec limit.
+- Idempotent and safe to overlap: there is no row lock, but each send carries a per-attempt `Idempotency-Key` of `${id}:${attempts}`, so concurrent runs of the same attempt dedupe at Resend.
+- Response body: `{ scanned, sent, failed, retried, skipped }`.
+
+### Outbox row lifecycle
+
+| Status | Meaning |
+|--------|---------|
+| `pending` | Awaiting send or awaiting retry. |
+| `sent` | Delivered to Resend; `sent_at` set. |
+| `failed` | Terminal: permanent (config/validation) error, or attempt budget exhausted. |
+| `skipped` | Terminal: the recipient muted this category (never sent, no Resend call). |
+
+A row retries on transient failures (`429`, `5xx`, network) up to `MAX_NOTIFICATION_ATTEMPTS` (5) before going to `failed`. Every status write is guarded on `status = 'pending'`, so a losing overlapping run is a no-op.
+
+## Notification preferences and muting
+
+Members opt out of muteable categories from their profile at [/me](/me); the toggles write per-member rows the dispatcher reads. Billing notices are membership-critical and can never be muted.
+
+| Category | Muteable | Example types |
+|----------|----------|---------------|
+| `billing` | No | `dues_renewed`, `dues_payment_failed`, `dues_lapsed` |
+| `bookings` | Yes | `booking_confirmed`, `booking_cancelled` |
+| `classes` | Yes | `class_signup_registered`, `class_signup_waitlisted`, `class_signup_promoted`, `class_session_cancelled` |
+| `forms` | Yes | `form_submission_received` |
+| `admin_alerts` | Yes | `form_submission_admin` |
+
+The model is opt-out: an absent preference row means enabled. A type with no category mapping is treated as always-on (fail-open). When the dispatcher marks an email `skipped`, the notification still appears unread in the member's in-app inbox on [/me](/me), the `read_at` marker is independent of email delivery.
+
+## Door inbound, poll vs. webhook
+
+A space that runs a door controller can pull real entry/denied events into the access log through one of two transports, both configured per connection on [/door/manage](/door/manage) (requires the `door.manage` permission, see [Access control](/docs/reference/access-control) and [Connect a door](/docs/how-to/connect-a-door)). Both share one ingest core; ingested rows dedupe on `(connection_id, dedupe_key)`.
+
+### Poll, `POST /api/cron/door-ingest`
+
+For native-HeatSync controllers only. A once-a-minute crontab call reads each enabled connection's `?z` log through the hardened outbound executor and matches each card to a member.
+
+- Auth: same `CRON_SECRET` bearer as the notification cron. `503` if unset, `401` on mismatch.
+- Polls only connections with `is_enabled`, `inbound_enabled`, and `adapter = 'native_heatsync'`, up to 50 per run, concurrently.
+- Idempotent: overlapping or missed minutes are harmless.
+
+### Webhook, `POST /api/door/inbound/[connection]`
+
+For generic (non-HeatSync) controllers or a LAN relay that pushes normalized events. This is the reliable transport: each event carries a caller-supplied stable id, so retries are idempotent.
+
+- `[connection]` is the connection's UUID; a malformed id returns a generic `404`.
+- Auth: `Authorization: Bearer `, the per-connection secret from the AES-256-GCM vault (`inbound_secret_ref`), distinct from the outbound door password. A missing connection, disabled inbound, or bad secret all return the same `401`. The webhook URL is shown on [/door/manage](/door/manage) once inbound is enabled.
+- Rate limited to 120 requests/minute per connection (`429` over that). Bodies over 64 KB are rejected `413`.
+
+Request body:
+
+```json
+{
+ "events": [
+ {
+ "id": "stable-caller-id",
+ "card_uid": "optional-string",
+ "card_number": "optional-digits",
+ "result": "granted",
+ "occurred_at": "2026-08-05T14:03:00Z"
+ }
+ ]
+}
+```
+
+`events` holds 1-100 items. `result` is one of `granted`, `denied`, `unknown`. Provide `card_uid` and/or `card_number` (digits only) to resolve the event to a member. Valid requests return `{ "received": true, ... }` with per-batch insert counts; malformed JSON or a schema failure returns `400`.
+
+## Email transport (Resend)
+
+`lib/email/send.ts` is the single transport seam. It talks to Resend's HTTP API (`https://api.resend.com/emails`) with `fetch`, no SDK, so a self-hosted deploy can swap it for SMTP without touching any caller. It classifies each failure as retryable (`429`, `5xx`, network) or terminal (unset config, invalid recipient, other `4xx`), which is what drives the outbox retry-vs-`failed` decision above.
diff --git a/content/docs/reference/members.md b/content/docs/reference/members.md
new file mode 100644
index 0000000..90d5c7b
--- /dev/null
+++ b/content/docs/reference/members.md
@@ -0,0 +1,86 @@
+A member is one person's record in your space, stored in the `space_members` table. This page lists every member status and tier, the fields on the member record, and the settings that control who can see the directory. Manage members at [/members](/members); members edit their own record at [/me](/me).
+
+
+
+## Statuses
+
+`status` is the `member_status` enum. It defaults to `unverified`. It governs whether a member can act in the app and whether they hold their role's privileges.
+
+| Status | Can use the app | Holds role privileges | Shown on |
+| --- | --- | --- | --- |
+| `current` | Yes | Yes | All members |
+| `late` | Yes | Yes | All members (dues lapsed) |
+| `unverified` | Yes | No, pending approval | Pending Approval tab |
+| `inactive` | No, blocked from all actions | No | Inactive tab |
+
+Notes:
+
+- The active set is `current`, `unverified`, and `late`. Only these three are loaded as a member's active membership; `inactive` members are blocked from every server action.
+- `late` is a dues state, not an authorization downgrade, a late member keeps their role and privileges.
+- `unverified` is the approval gate. In a `require_approval` space, a new member stays `unverified` and holds **no** privileged capability until an admin approves them, even if they redeemed a role-bearing invite. Approving sets `status` to `current` and `approved` to `true`.
+- The [/members](/members) page tabs are All, Payment Issues, Pending Approval (`unverified`), and Inactive. The All tab hides `inactive` members.
+
+## Tiers
+
+`tier` is the `member_tier` enum. It defaults to `basic` and records the membership level. It is set by an admin when adding or editing a member; it does not by itself grant permissions (roles do that).
+
+| Tier |
+| --- |
+| `plus` |
+| `basic` |
+| `associate` |
+
+## Record fields
+
+Key columns on `space_members`. `user_id` is nullable on purpose: admins can add "offline" members who have no auth account.
+
+| Field | Type | Notes |
+| --- | --- | --- |
+| `id` | uuid | Primary key |
+| `space_id` | uuid | Owning space |
+| `user_id` | uuid, nullable | Auth account; null for offline members |
+| `role` | `member_role` | Default `member`; see roles |
+| `tier` | `member_tier` | Default `basic` |
+| `tier_id` | uuid, nullable | FK to `space_tiers`; canonical custom-tier reference |
+| `status` | `member_status` | Default `unverified` |
+| `approved` | boolean | Default `true`; set true on approval |
+| `display_name` | text | Self- or admin-editable |
+| `handle` | text | Self- or admin-editable |
+| `email` | text | Unique per space when present |
+| `phone` | text | |
+| `bio` | text | Self-editable |
+| `avatar_url` | text | |
+| `has_card_access` | boolean | Door access flag |
+| `payment_status` | text | Non-`current` value drives the Payment Issues tab |
+| `payment_note` | text | |
+| `last_payment_at` / `last_paid_at` | timestamptz | |
+| `dues_paid_until` | timestamptz | Dues coverage end |
+| `joined_at` | timestamptz | Sort key on [/members](/members) |
+| `stripe_customer_id` | text | |
+| `skills` / `interests` / `willing_to` / `affiliations` | text[] | Self-editable profile arrays |
+| `coi_last_disclosed_at` | timestamptz | Set when affiliations are disclosed |
+| `onboarding_completed_at` | timestamptz, nullable | Set when onboarding is finished or skipped |
+| `onboarding_progress` | jsonb | Default `{}`; tracks completed onboarding step IDs |
+| `created_at` / `updated_at` | timestamptz | |
+
+Constraints: unique on `(space_id, user_id)`, and a partial unique index on `(space_id, email)` when `email` is present.
+
+### Who edits what
+
+- **Self** (at [/me](/me)): `display_name`, `handle`, `phone`, `bio`, `skills`, `interests`, `willing_to`, and `affiliations`. Changing affiliations re-runs conflict-of-interest disclosure and updates `coi_last_disclosed_at`.
+- **Admin** (at [/members](/members)): `email`, `display_name`, `phone`, `handle`, `role`, `tier`, `status`, `has_card_access`, `payment_status`, and `payment_note`. `joined_at` is only set when adding a member; `updateMember` does not accept it.
+
+On the [/members](/members) page, some per-member panels are gated by capability rather than role: the access-cards panel (card UID) requires `door.manage`, the certifications panel requires `certifications.grant`, and the submitted-forms panel requires `forms.manage`.
+
+## Directory visibility
+
+Who can see the member directory is set per space by `member_directory_visibility` (the `directory_visibility` enum) under Member directory visibility in [/settings](/settings). It defaults to `members_visible`.
+
+| Value | Who sees the directory |
+| --- | --- |
+| `members_visible` | Any authenticated member (default) |
+| `public_members_visible` | Any authenticated member; behaves identically to `members_visible` (there is no public, unauthenticated directory route) |
+| `board_only` | Elevated roles only (`admin`, `board`, `treasurer`) |
+| `member_count_visible` | Elevated roles only; treated identically to `board_only`, non-elevated members get the same restricted notice (no count is shown) |
+
+When a member is not permitted to see the directory, [/members](/members) shows a "restricted in this space" notice instead of the table.
diff --git a/content/docs/reference/modules.md b/content/docs/reference/modules.md
new file mode 100644
index 0000000..3c5b53d
--- /dev/null
+++ b/content/docs/reference/modules.md
@@ -0,0 +1,103 @@
+The platform is organized into twelve modules, each covering one area of running a space. This page lists every module, what it does, and the primary route where you use it. The same twelve are shown on the [landing page](/) under "What it does."
+
+## Module list
+
+| # | Module | What it does | Primary route |
+|---|--------|--------------|---------------|
+| 01 | Members | The member roster with dues status and contact info. Membership tiers, custom roles, and the per-space permissions matrix are configured at `/customize`. | `/members` |
+| 02 | Tasks and chores | One-off and recurring work with assignments, due dates, and area tags. | `/tasks` |
+| 03 | Projects | A board of what the space is building, with progress, areas, and who is on it. | `/projects` |
+| 04 | Payments | Import from PayPal, Venmo, or Zeffy and reconcile transactions to members. | `/payments` |
+| 05 | Ops and knowledge | Markdown procedures and knowledge base, area leads, and an encrypted secrets vault. | `/ops` |
+| 06 | Governance | Proposals with quorum and voting, incident reports, a versioned policy library, and a member forum. | `/proposals` |
+| 07 | Forms and waivers | A builder for any form or signable waiver, with immutable per-submission snapshots. | `/my-forms` |
+| 08 | Certifications | Define certifications and let instructors award or revoke them, with expiry tracking. | `/certifications` |
+| 09 | Classes | Schedule sessions, take signups with waitlists, mark attendance, and grant certifications. | `/classes` |
+| 10 | Equipment | A tool registry with reservations, optionally gated behind a required certification. | `/equipment` |
+| 11 | Access control | Associate member cards, connect a door controller, and keep an immutable access log. | `/doors` |
+| 12 | Onboarding and invites | A configurable onboarding flow and role-granting invite links with usage caps. | `/customize` |
+
+## Where each module lives
+
+Several modules span more than one screen. The primary route above is the main entry point; the routes below are the related management and detail screens.
+
+### Members
+
+- `/members`, the member roster, dues statuses, and contact info.
+- `/customize`, where membership tiers, custom roles, and the permissions matrix are configured (admin only; board can open `/customize` but these panels are read-only for board).
+- `/contacts`, non-member contacts.
+- `/me`, a member's own membership record ("My membership").
+- `/recruitment`, prospective-member pipeline (admin only).
+
+### Tasks, projects, and ops
+
+- `/tasks`, tasks and chores.
+- `/projects`, the project board.
+- `/ops`, ops and facilities docs, area leads, and the secrets vault. Individual docs open at `/ops/[id]`.
+
+### Payments and finance
+
+- `/payments`, transaction import and reconciliation.
+- `/financials`, financial reporting.
+- `/import`, import and sync (admin only).
+
+See [Connect payments](/docs/how-to/connect-payments) and [Import members](/docs/how-to/import-members).
+
+### Governance
+
+- `/proposals`, proposals, with detail at `/proposals/[id]` and creation at `/proposals/new`.
+- `/incidents`, incident reports (`/incidents/new`, `/incidents/[id]`).
+- `/policies`, the policy library (`/policies/new`, `/policies/[slug]`).
+- `/forum`, the member forum (`/forum/new`, `/forum/[id]`).
+
+See [Run a proposal](/docs/how-to/run-a-proposal).
+
+### Forms and waivers
+
+- `/my-forms`, forms available to you to fill out and sign.
+- `/forms`, the form and waiver builder (`/forms/new`, `/forms/[id]`), gated by the `forms.manage` permission.
+
+See [Build a form](/docs/how-to/build-a-form).
+
+### Classes, certifications, and equipment
+
+- `/classes`, the class schedule; `/classes/manage` for scheduling and rosters.
+- `/certifications`, certification records, gated by `certifications.manage`.
+- `/equipment`, the tool registry and reservations; `/equipment/manage` for the registry.
+- `/attendance`, attendance records.
+
+See [Your first class](/docs/tutorials/first-class) and [Equipment reservations](/docs/how-to/equipment-reservations).
+
+### Access control
+
+- `/doors`, the member-facing door and card view.
+- `/door/manage`, door connections, cards, and the access log (`door.manage`).
+- `/door/buttons`, API buttons for door actions.
+
+See [Connect a door](/docs/how-to/connect-a-door).
+
+### Onboarding and invites
+
+- `/customize`, the onboarding flow builder and invite-link management (admin only).
+- `/settings`, space settings (admin only).
+
+See [Configure onboarding](/docs/how-to/configure-onboarding) and [Invite links](/docs/how-to/invite-links).
+
+## Communication
+
+Alongside the twelve modules, `/comms` provides in-app messaging, and `/dashboard` is the landing screen after sign-in. Both appear in the sidebar's Workspace section.
+
+## Admin-only modules
+
+Some routes are visible only to the `admin` and `board` roles, or to members granted the matching `*.manage` permission:
+
+| Route | Requires |
+|-------|----------|
+| `/customize`, `/settings`, `/import`, `/recruitment` | admin or board |
+| `/forms` | `forms.manage` |
+| `/certifications` | `certifications.manage` |
+| `/classes/manage` | `classes.manage` |
+| `/equipment/manage` | `equipment.manage` |
+| `/door/manage`, `/door/buttons` | `door.manage` |
+
+Members without the role or permission do not see these links in the sidebar.
diff --git a/content/docs/reference/payments-and-dues.md b/content/docs/reference/payments-and-dues.md
new file mode 100644
index 0000000..13a65b9
--- /dev/null
+++ b/content/docs/reference/payments-and-dues.md
@@ -0,0 +1,93 @@
+The payments and dues subsystem records money that comes into your space and maps it to members. This page is the authoritative reference for the payment enums, the advance-only dues rule, admin-configured pay-here links, and the Stripe billing fields. For the day-to-day workflow, see [/payments](/payments) and the member self-view at [/me](/me).
+
+## Payment platforms
+
+The `payment_platform` enum tags every payment and every pay-here link with its origin. Only these five values exist.
+
+| Value | Meaning | Pay-here link | In-app checkout |
+| --- | --- | --- | --- |
+| `paypal` | PayPal | Yes | No |
+| `zeffy` | Zeffy | Yes | No |
+| `venmo` | Venmo | Yes | No |
+| `cash` | Cash logged by a treasurer | No | No |
+| `stripe` | In-app recurring dues integration | No | Yes |
+
+The url-based subset (`paypal`, `zeffy`, `venmo`) is the only set allowed for external pay-here links (`DUES_LINK_PLATFORMS`). `cash` and `stripe` cannot be configured as external dues links.
+
+## Link status
+
+Every row in `payments` carries a `payment_link_status`, which records whether the payment has been matched to a member.
+
+| Value | Meaning |
+| --- | --- |
+| `unlinked` | Not yet matched to a member (the default) |
+| `linked` | Matched to a member in this space |
+
+Two columns hold this value: `link_status` is canonical, and `status` is kept for backward compatibility. Both default to `unlinked`. A cash payment logged with a member is inserted as `linked`; imported CSV rows and unmatched platform payments start `unlinked`. Linking via [/payments](/payments) sets `link_status` to `linked` and stamps `member_id`. The unlinked count drives the alert badge on the [/dashboard](/dashboard).
+
+## Advance-only dues rule
+
+When a linked payment updates a member's dues state, the state can only move forward in time. This is enforced by `resolveDuesAdvance`, which compares the member's existing `last_paid_at` against the incoming payment's `transaction_date`:
+
+- If the incoming payment is the same as or newer than what is on file, `last_paid_at` advances to the incoming date and the member's `payment_status` is set to `current`.
+- If the incoming payment is older than what is on file, `last_paid_at` is left unchanged and `payment_status` is not touched.
+
+A backdated or historical payment therefore never moves a member's dues state backward. Comparison is by instant, not string order, so timezone offsets and `Z`-suffixed timestamps never disagree. The rule runs on both cash logging and payment linking.
+
+## Pay-here links (`dues_payment_methods`)
+
+Admins configure external pay-here links so members can pay dues off-platform; a treasurer reconciles the payment manually later through the [/payments](/payments) flow (the platform tag pre-types that reconcile). Configuration is link-only, no automated payment record is created.
+
+| Column | Type | Notes |
+| --- | --- | --- |
+| `platform` | `payment_platform` | One of `paypal`, `zeffy`, `venmo`; unique per space |
+| `url` | text | Must be an absolute `https://` URL (DB CHECK `url ~* '^https://'`) |
+| `instructions` | text | Optional memo hint, e.g. "put your member name in the note" |
+| `is_active` | boolean | Only active links render to members; defaults to `true` |
+| `sort_order` | integer | Display order, `0`-`999`; defaults to `0` |
+
+There is at most one link per `(space, platform)`; saving is an idempotent upsert on that pair. The [/me](/me) self-view shows only active links, in `sort_order`; the [/settings](/settings) admin UI shows every configured method, active and inactive.
+
+### URL safety
+
+Because `url` is rendered as a member-clickable anchor and admins can write the row directly through RLS, the `https://`-only rule is enforced at three layers: the DB CHECK constraint, the Zod schema (`isSafeDuesUrl`, max 500 chars), and the read boundary that feeds the clickable card. `http://`, `javascript:`, `data:`, and other non-https schemes are rejected everywhere.
+
+### Permissions
+
+| Operation | Roles |
+| --- | --- |
+| View active links ([/me](/me)) | Any space member |
+| View all links, create, update, delete ([/settings](/settings)) | `admin`, `board` |
+
+## Stripe billing fields (`member_billing`)
+
+Stripe recurring dues uses per-space own keys (not Connect). Each member with a Stripe subscription has one row in `member_billing`.
+
+| Column | Type | Notes |
+| --- | --- | --- |
+| `stripe_customer_id` | text | The member's Stripe customer |
+| `stripe_subscription_id` | text | The active subscription |
+| `subscription_status` | text | Raw Stripe subscription status |
+| `current_period_end` | timestamptz | End of the paid period; drives the grace window |
+
+Two service-client paths write this table: the Stripe webhook, and `startDuesCheckout`, which upserts `stripe_customer_id` when it first creates the member's Stripe customer. SELECT is limited to `admin`, `board`, and `treasurer` via RLS. A member reads their own row through a validated service-client action ([/me](/me)). The admin dues view lists every member's billing status.
+
+### Status mapping
+
+Raw Stripe `subscription.status` maps to a member status. Dues lapse tops out at `late`, it never auto-sets `inactive`; an admin decides inactivation manually.
+
+| Stripe status | Member status |
+| --- | --- |
+| `active`, `trialing` | `current` |
+| `past_due` (within grace) | `current` |
+| `past_due` (grace exceeded) | `late` |
+| `canceled`, `unpaid`, `incomplete`, `incomplete_expired` | `late` |
+
+The grace window is `current_period_end` plus the configured `grace_days` (default `7`). Stripe settings live in `integrations.config`: `mode` (`test`/`live`), publishable key, the tier-to-price map, `grace_days`, and the secret/webhook refs. The secret key and webhook signing secret are stored in the encrypted [secrets vault](/docs/explanation/security-model), not in `config`. See [/settings](/settings) to configure Stripe.
+
+## Related pages
+
+- [/payments](/payments), log, import, link, and reconcile payments
+- [/me](/me), member dues self-view, pay-here links, and Stripe checkout
+- [/settings](/settings), configure Stripe and pay-here links
+- [Members: statuses, tiers & fields](/docs/reference/members), member statuses, tiers, and fields
diff --git a/content/docs/reference/roles-and-permissions.md b/content/docs/reference/roles-and-permissions.md
new file mode 100644
index 0000000..8e9d792
--- /dev/null
+++ b/content/docs/reference/roles-and-permissions.md
@@ -0,0 +1,69 @@
+Every space controls who can do what through two layers: a fixed set of five built-in roles that drive database-level access, and an additive per-space permission matrix that grants named capabilities to roles. This page catalogs both, plus the status gate that decides when a role or permission actually takes effect.
+
+## Built-in roles
+
+There are exactly five roles, defined by the `member_role` enum and listed here in privilege order. Every member holds exactly one built-in role. Roles cannot be added or removed, but a space can rename any of them and change its color in [Customize](/customize) (see [Customize your space](/docs/how-to/customize-space)); the rename is display-only and does not change access.
+
+| Role | Default label | Notes |
+|------|---------------|-------|
+| `admin` | Admin | Implicitly holds every permission and can never be locked out |
+| `board` | Board | Broad operational access; default holder of most permissions |
+| `treasurer` | Treasurer | Finance-focused |
+| `member` | Member | Standard member |
+| `associate` | Associate | Limited access |
+
+Two role groups are used throughout the app: `ADMIN_ROLES` (`admin`, `board`) gate most administrative writes, and `TREASURER_ROLES` (`admin`, `board`, `treasurer`) gate financial sign-off.
+
+## Status and privilege eligibility
+
+Holding a role is not enough to use it. A member's `member_status` must be privilege-eligible before any role or permission resolves. This is enforced at both the app layer and the RLS layer (`user_has_role_in_space` and `user_has_permission` both require it).
+
+| Status | Can act in app | Privilege-eligible |
+|--------|:-:|:-:|
+| `current` | Yes | Yes |
+| `late` | Yes | Yes |
+| `unverified` | Yes (own `/me` and onboarding only) | No |
+| `inactive` | No | No |
+
+`unverified` is deliberately excluded: in a space that requires approval, a new member stays `unverified` until an admin approves them and must hold no privileged capability in that window, even if they redeemed a role-bearing [invite code](/docs/how-to/invite-links). A dues lapse moves a member `current` → `late`; that is a grace state, not an authorization downgrade, so `late` keeps its role.
+
+## Permission catalog
+
+Permissions are app-owned capability codes (the set is fixed by the product). Which roles hold which permissions is stored per space in `space_role_permissions`. The table below lists every code with its group and the built-in roles that hold it in a newly seeded space. `admin` holds all of them implicitly and is never stored.
+
+| Code | Group | Capability | Default holders |
+|------|-------|------------|-----------------|
+| `ops.kb.read` | Ops | Read knowledge base | board, treasurer, member, associate |
+| `ops.kb.write` | Ops | Write knowledge base | board |
+| `ops.process.read` | Ops | Read processes | board, treasurer, member |
+| `ops.process.write` | Ops | Write processes | board |
+| `ops.secrets.read` | Ops | Reveal secrets | board |
+| `ops.secrets.write` | Ops | Manage secrets | board |
+| `ops.arealeads.manage` | Ops | Manage area leads | board |
+| `members.manage` | People | Manage members | board |
+| `payments.manage` | Finance | Manage payments | board, treasurer |
+| `governance.manage` | Governance | Manage proposals, incidents, policies | board |
+| `forum.moderate` | Community | Moderate forum and comments | board |
+| `forms.manage` | Community | Manage forms and waivers | board |
+| `certifications.manage` | Certifications | Manage certification types | board |
+| `certifications.grant` | Certifications | Award and revoke certifications | board |
+| `classes.manage` | Classes | Manage classes and schedule sessions | board |
+| `classes.instruct` | Classes | Run classes: attendance, completion, attendees | board |
+| `equipment.manage` | Equipment | Manage equipment and reservations | board |
+| `door.manage` | Access | Configure door integrations, buttons, and member cards | board |
+| `door.operate` | Access | Operate doors: open/lock, push/revoke cards | board |
+| `apicall.invoke` | Access | Use API-call buttons (non-door automations) | board |
+| `customize.manage` | Admin | Customize roles, tiers, areas, invites, onboarding | board |
+| `settings.manage` | Admin | Space settings, integrations, webhooks | board |
+
+## Custom roles
+
+A space can also create custom roles (in the Roles section of [Customize](/customize)). A custom role has a slug, name, description, and color. On its own it is display-only: creating one adds a label for committees, mentors, or area leads and grants nothing. However, a custom role's slug appears as a subject in the Permissions matrix, so an admin can grant it any capability from the catalog. Custom roles are created and edited by `admin`/`board`; only `admin` can delete one.
+
+## How permissions resolve
+
+`user_effective_roles(uid, sid)` returns a member's built-in role, the slugs of any custom roles assigned to them, and an `area_lead:` marker for each area they lead. `user_has_permission(uid, sid, perm)` then answers true when the member is privilege-eligible and either holds the `admin` role (implicit-all shortcut) or one of their effective roles has the permission granted in `space_role_permissions`.
+
+This layer is strictly additive. A grant can only widen what a role can do through the surfaces that consult permissions; it never overrides the row-level security that isolates one space's data from another. The Permissions matrix is editable by `admin` and `board`, both the `setRolePermissions` server action and the `space_role_permissions` RLS policies authorize the two roles. The Customize UI, however, currently exposes the matrix as view-only to `board` and enables editing for `admin` only; a board member can still change permissions through the server action directly.
+
+See also: [Modules reference](/docs/reference/modules) and [Customize your space](/docs/how-to/customize-space).
diff --git a/content/docs/tutorials/dues-end-to-end.md b/content/docs/tutorials/dues-end-to-end.md
new file mode 100644
index 0000000..5973b5a
--- /dev/null
+++ b/content/docs/tutorials/dues-end-to-end.md
@@ -0,0 +1,78 @@
+In this tutorial you will set up an external pay-here link, watch a member pay through it, then record that payment and reconcile it to the member so their dues advance. By the end you will have taken one dues payment all the way from "add a link" to a member marked `current`.
+
+You will use three screens: [/settings](/settings) to add the link, [/import](/import) to record the payment, and [/payments](/payments) to reconcile it.
+
+## Before you start
+
+You need the right role for each part:
+
+| Task | Required role |
+| --- | --- |
+| Add or edit a pay-here link | admin (the Settings screen is admin-only) |
+| Import and reconcile payments | admin, board, or treasurer |
+
+This example uses Venmo, but PayPal and Zeffy work exactly the same way.
+
+## Step 1: Add a pay-here link
+
+
+
+1. Go to [/settings](/settings) and open the **Dues** tab.
+2. Under **Other ways to pay dues** you will see a card for each platform: PayPal, Zeffy, and Venmo. Find the **Venmo** card.
+3. Paste your payment link into the **URL** field. It must be an absolute `https://` URL, anything else is rejected.
+4. Optionally add an instruction, for example `Put your member name in the note`. This is a hint that helps you match the payment later.
+5. Leave the toggle set to **shown** so members can see it.
+6. Click **Save**.
+
+The link is now live for your space. You can add all three platforms, and hide any one later by flipping its toggle to **hidden**.
+
+## Step 2: The member pays externally
+
+There is nothing for you to do here, this is what the member sees.
+
+1. The member opens their [/me](/me) page and looks at the **Dues** section.
+2. While they still owe dues, the card shows your active links under **Other ways to pay** (or **Pay your dues** if your space has no card billing set up).
+3. They click **Pay with Venmo**, which opens your external payment page in a new tab, and they pay you there, adding their name in the note if you asked them to.
+
+The platform does not record this payment automatically. That is the next step.
+
+## Step 3: Record the payment
+
+
+
+When your Venmo activity is available, export it as a CSV and import it.
+
+1. Go to [/import](/import) and switch the **Import type** to **Payments**.
+2. Upload your CSV file by dropping it on the upload area or clicking to browse.
+3. On **Map Columns**, confirm the required fields are mapped: **Amount**, **Sender / From Name**, and **Date**. Set the **Platform** column to `venmo` so the payment is tagged correctly, and map the note column if you have one.
+4. Click **Preview Import**, review the first few rows, then click **Import**.
+
+Every imported row lands as an `unlinked` payment. Rows with a bad amount, platform, or date are skipped and counted, so nothing invalid is silently added.
+
+> Recording a single hand-received payment instead? Use the **Log Cash** button on [/payments](/payments), but note it always records the platform as `cash`.
+
+## Step 4: Reconcile the payment to the member
+
+
+
+1. Go to [/payments](/payments). The header shows a count like **1 unlinked** whenever payments still need a member.
+2. Find your Venmo row. You can narrow the list with the **All Platforms** and **All Status** filters at the top of the transactions table.
+3. Click **+ Link member** on that row.
+4. In the **Link to Member** dialog, pick the member who paid.
+
+The row flips to `linked` and shows the member's name with a check mark.
+
+## Step 5: Confirm the dues advanced
+
+Linking a payment does two things automatically:
+
+- It advances the member's **last paid** date to the payment's date.
+- It sets the member's status to `current`, as long as this payment is the most recent one on file for them.
+
+This is **advance-only**: recording an older or backdated payment never moves a member's dues backward. If the member already has a newer payment recorded, linking an older one leaves their status untouched.
+
+To verify, open the member on [/members](/members) and check their status, or have the member reload [/me](/me), where the payment now appears under **My payments**.
+
+## What you did
+
+You added an external pay-here link, a member paid through it, you imported the payment as an `unlinked` row, and you reconciled it to the member, advancing their dues to `current`. Repeat Step 3 and Step 4 whenever new external payments come in.
diff --git a/content/docs/tutorials/first-class.md b/content/docs/tutorials/first-class.md
new file mode 100644
index 0000000..111d609
--- /dev/null
+++ b/content/docs/tutorials/first-class.md
@@ -0,0 +1,73 @@
+This tutorial walks you through the full lifecycle of a class in your space: you will create a class offering, schedule a session with a capacity, watch members sign up (with a waitlist when it fills), mark attendance as the instructor, and complete the session so it can award a certification. By the end you will have run one class from start to finish.
+
+Set aside about fifteen minutes. You will need the `classes.manage` permission to create classes and sessions, and `classes.instruct` to run the session and mark attendance. Both are granted to the `board` role by default. To have completion award a certification, the instructor also needs `certifications.grant`.
+
+## Before you start
+
+- Sign in as a member with `classes.manage` (a board member by default).
+- Optional: if you want the class to award a certification, create the certification type first at [/certifications](/certifications). Note its name.
+
+## Step 1: Create a class
+
+
+
+A class is the reusable offering ("Woodshop Basics"). Sessions are the individual scheduled occurrences you will add later.
+
+1. Go to [/classes/manage](/classes/manage).
+2. Select **New class**.
+3. Enter a **Title**, for example `Woodshop Basics`. Add an optional description.
+4. Optionally set a **Default capacity**. Leave it blank for unlimited. Each session can override this later.
+5. Optionally, in the certification dropdown, choose **Grants: ``** so completing a session awards that certification to attendees.
+6. Select **Create class**.
+
+You will see a "Class created" confirmation and the class listed with any `cap` and `grants` badges you set.
+
+Two optional fields you can ignore for this tutorial: a **Payment link** (a plain external URL shown to members, with no live payment processing) and a **required form** that gates signup until the member has it on file (for example a liability waiver published under [/forms](/forms)).
+
+## Step 2: Schedule a session
+
+1. On the class card, select **+ Schedule session**.
+2. Set **Starts** (and optionally **Ends**). Ends must not be before Starts.
+3. Optionally add a **Location**, a **Capacity override**, and **Notes**.
+4. Select **Schedule**.
+
+The session appears under the class with its start time and a **Scheduled** status. The effective capacity is the session's capacity override if set, otherwise the class default; if both are blank, the session is open (unlimited).
+
+## Step 3: Members sign up
+
+
+
+Members do not need any special permission to sign up, only membership in the space.
+
+1. As a member, go to [/classes](/classes). Upcoming, non-cancelled sessions appear with "X of N spots left" (or "open" when unlimited).
+2. Select **Sign up**. You will see "You are signed up" and a **Registered** badge.
+
+When registered signups reach capacity, the button reads **Join waitlist** instead, and new signups get a **Waitlisted** status. A member can select **Cancel signup** at any time; if a registered member cancels, the earliest waitlisted member is automatically promoted to registered and emailed. If the class requires a form the member has not submitted, the button becomes **Complete required form** and links to the form first.
+
+## Step 4: Mark attendance
+
+Now switch back to someone with `classes.instruct`. (A user with only `classes.manage` can open the roster and see who signed up, but cannot check **attended** or run **Complete session**, both require `classes.instruct`.)
+
+1. On [/classes/manage](/classes/manage), find the session and select **Signups**. (Instructors browsing [/classes](/classes) can use **Attendees** on the session instead.)
+2. The roster lists each signup with its status. Check the **attended** box next to each member who showed up.
+
+Attendance is what determines who receives a certification in the next step, so check it before completing.
+
+## Step 5: Complete the session and award the certification
+
+1. In the same attendees panel, select **Complete session**.
+2. The session status changes to **Completed**.
+
+If the class grants a certification, completion awards it to every member you marked as attended. The result confirms how many certificates were issued. If the instructor lacks `certifications.grant`, the session still completes but you will see "Certificates were NOT issued (requires the certifications.grant permission)", grant that permission and the members can be certified through [/certifications](/certifications).
+
+Members can see their signups and completed sessions on their own page at [/me](/me), and any certification they earned appears in their certifications.
+
+## What you built
+
+You now have a class with one completed session, an attendance record, and (optionally) certifications awarded to attendees. From here you can:
+
+- Schedule more sessions of the same class, the offering is reusable.
+- **Archive** a class you no longer offer instead of deleting it (deleting is only allowed when a class has no sessions).
+- **Cancel** a session instead of deleting it to keep the signup history; every signed-up member is emailed when you do.
+
+See the [classes, certifications & equipment reference](/docs/reference/classes-and-equipment) for every field, status, and permission, including how certification types are defined and granted on class completion.
diff --git a/content/docs/tutorials/getting-started.md b/content/docs/tutorials/getting-started.md
new file mode 100644
index 0000000..214d27d
--- /dev/null
+++ b/content/docs/tutorials/getting-started.md
@@ -0,0 +1,78 @@
+This tutorial walks you from a blank signup form to a working space where you land as an admin, then gives you a quick tour of the dashboard and left navigation so you know where everything lives. It takes about five minutes.
+
+By the end you will have a space of your own, an admin membership inside it, and a mental map of the sidebar.
+
+
+
+## Before you start
+
+You need an email address and a password of at least 8 characters. If someone has already set up a space for your group and given you an invite code, skip ahead to [Joining an existing space](#joining-an-existing-space) instead.
+
+## Step 1: Create your account
+
+1. Go to `/signup`.
+2. Under **Create your account**, fill in **Full Name**, **Email**, and **Password** (minimum 8 characters).
+3. Under **What are you doing?**, click the **Create a Space** card.
+4. Click **Continue →**.
+
+## Step 2: Name your space
+
+Now you are on the **Set up your Space** step.
+
+1. Enter a **Space Name**, such as `HeatSync Labs`. As you type, a **Slug** is filled in for you automatically, it is the lowercase, letters-and-numbers-only handle for your space (for example `heatsynclabs`). You can edit it.
+2. Optionally enter a **City / Location**.
+3. Read the note: you will be the admin of this space, and default channels (general, announcements, ops) are created for you.
+4. Click **Create Space →**.
+
+Depending on how email confirmation is configured, one of two things happens:
+
+- You go straight to `/dashboard`, already signed in.
+- You are sent to `/signup/confirm` to verify your email first. Open the link in that email, and you will land on the dashboard afterward.
+
+That is it, your space exists. As the founder you are set up as an **admin** on the **plus** tier with a **current** status, and you skip the member onboarding flow entirely.
+
+## Step 3: Get your bearings on the dashboard
+
+The first time you open `/dashboard` in an empty space, you see a **"Let's set up your space"** panel instead of a grid of zeros. It offers four first steps:
+
+| Step | Where it goes |
+| --- | --- |
+| Invite or add members | `/members` |
+| Set up onboarding | `/customize` |
+| Create your first task or chore | `/tasks` |
+| Connect payments | `/settings` |
+
+That panel disappears on its own once there is real activity. After that, the dashboard shows a stat row (**Active Members**, **Dues Current**, **Open Tasks**, **Unlinked Payments**) plus quick chores, active projects, who is present now, and recent activity. The **Quick Task** button in the header jumps to `/tasks`.
+
+## Step 4: Explore the left navigation
+
+
+
+The sidebar groups every screen into sections. As an admin you see all of them:
+
+- **Workspace**, Dashboard, Tasks & Chores, Projects, Ops & Facilities, Comms, Forum
+- **Governance**, Proposals, Incidents, Policies
+- **Access & Resources**, Classes, Equipment, Doors, Forms
+- **People**, Members, Attendance, Contacts, Recruitment
+- **Finance**, Payments, Financials
+- **Account**, My membership
+- **Admin**, Customize, Settings, Import / Sync, and the management screens for forms, certifications, classes, equipment, and doors
+
+The **Admin** section only appears for admins, board members, or members you have granted a specific manage permission. There is also a **Jump to...** button at the top of the sidebar (or press ⌘K) that opens a command palette for fast navigation.
+
+A good next stop is [inviting your first members](/members), or `/customize` to shape what new members see when they join.
+
+## Joining an existing space
+
+If you were given an invite code instead of starting a new space:
+
+1. Go to `/signup` (or open the `/signup?invite=CODE` link your admin shared, which prefills the code for you).
+2. Fill in your account details and click the **Join a Space** card, then **Continue →**.
+3. Enter the **Invite Code**, it looks like `HSL-2025-XXXX`. Ask your space admin for it if you do not have one; they can find the space's default code under Settings.
+4. Click **Join Space →**.
+
+You join as a **member**. If the space requires approval (the default), your status starts as **unverified** and an admin approves you before you gain full access, until then the dashboard is still yours to look around. If the space does not require approval, you are **current** right away.
+
+## What you did
+
+You created (or joined) a space, landed with the right role, and learned where the dashboard and sidebar put things. From here, follow the dashboard's setup steps to add members, build your onboarding flow, and start capturing tasks.
diff --git a/content/docs/tutorials/onboard-members.md b/content/docs/tutorials/onboard-members.md
new file mode 100644
index 0000000..5a4f993
--- /dev/null
+++ b/content/docs/tutorials/onboard-members.md
@@ -0,0 +1,96 @@
+In this tutorial you will bring your first people into your space two ways (a shareable join link and a manual add), shape what a new member sees when they first open the app, and move everyone to `current` status. Work through it as a space admin; by the end you will have a repeatable way to grow your roster.
+
+
+
+## Before you start
+
+You need the **admin** role (a **board** member can copy and share existing invite codes, but not create, disable, or delete them). Everything below happens on the [/members](/members) screen and the onboarding card in [/customize](/customize).
+
+There are two ways in:
+
+- **Invite code / join link**, people sign themselves up, then you approve them.
+- **Add member**, you enter someone directly and they are active immediately.
+
+You will use both.
+
+## Step 1: Create an invite code
+
+1. Open [/members](/members) and find the **Invite codes** card.
+2. Click **+ New invite**.
+3. Leave the code blank to auto-generate one, or type your own. Optionally set a **Label**, an expiry, and a **Max uses** cap. Leave both blank for a permanent code.
+4. Pick what the code **grants**, for new members, choose `member`.
+5. Tick **Single use** if the code should auto-disable after one join.
+6. Click **Create invite**.
+
+Your code appears in the list with a `grants member` tag and a live use count.
+
+## Step 2: Share the join link
+
+On the new code's row you have two buttons:
+
+- **Copy code**, copies just the code (for people who will type it during signup).
+- **Copy link**, copies the one-click join link, which looks like:
+
+```
+https://your-space.example/join/your-space?code=ABC23XYZ
+```
+
+Send the link. Whoever opens it lands on a **Join** page for your space, creates an account, and is added as a member with `unverified` status, waiting for your approval.
+
+If a code is ever shared too widely, an admin can click **Disable** to revoke it, or **Delete** to remove it outright, both controls are admin-only.
+
+## Step 3: Approve people who joined
+
+New self-serve joiners do not get in automatically.
+
+1. Back on [/members](/members), open the **Pending Approval** tab. Everyone who used your link is here.
+2. Click **APPROVE** on a row to move that member to `current`.
+3. To clear a batch at once, select the rows and click **Approve selected**.
+
+Approving flips the member to `current` and marks them approved, so they count toward your active roster.
+
+## Step 4: Add a member manually
+
+Some people you will enter yourself, a founding member, someone who paid at the door.
+
+1. On [/members](/members), click **Add Member**.
+2. Fill in **Full Name** and **Email** (both required). Phone and handle are optional.
+3. Choose a **Tier** (`Plus`, `Basic`, `Associate`, or `Admin`) and a **Role** (`Member`, `Board`, `Treasurer`, or `Admin`).
+4. Optionally set **Joined At** and tick **Card Access**.
+5. Click **Add Member**.
+
+A manually added member starts at `current` immediately, no approval step needed.
+
+## Step 5: Shape the onboarding flow
+
+Now decide what a member sees the first time they open the app.
+
+1. Go to [/customize](/customize) and find the **New member onboarding** card.
+2. Every new space starts with four built-in steps in order: **Welcome**, **Code of Conduct** (a required acknowledgement), **Complete your profile**, and **Set up your dues**.
+3. Edit any step's title inline, and its body where the step has one (body supports Markdown), the built-in **Complete your profile** step has only an editable title, no body. Change the order with the number box, and untick **Enabled** to hide a step.
+4. On the **Set up your dues** step, paste your **Payment link** so the member gets a working "Set up payment" button.
+5. Add your own with **+ Custom step**, or use **+ Form step** to make members sign a published form or waiver as part of onboarding.
+
+Built-in steps can be disabled and reordered but not deleted. Only steps you mark **Required** block a member from finishing.
+
+## Step 6: See what the new member sees
+
+
+
+The first time an approved member opens the app they are routed to [/onboarding](/onboarding) and walk your enabled steps in order, a progress bar tracks **Step X of Y**. They must tick the code-of-conduct box and any other required step before the final **Finish** button lets them through to the [/dashboard](/dashboard). If no step is required, a **Skip for now** link is available.
+
+## You are done
+
+You now have members arriving two ways and a first-run flow that greets them. From here:
+
+- Keep an eye on the **Pending Approval** and **Payment Issues** tabs on [/members](/members).
+- Refine your onboarding copy and required steps in [/customize](/customize) as your space's norms settle.
+
+### Member statuses at a glance
+
+| Status | Meaning |
+| --- | --- |
+| `current` | Active member in good standing |
+| `late` | Active but behind on dues |
+| `inactive` | No longer participating |
+| `unverified` | Joined via a link, awaiting approval |
diff --git a/docs/HANDOFF-audit-cleanup.md b/docs/HANDOFF-audit-cleanup.md
index 31ae454..29056bc 100644
--- a/docs/HANDOFF-audit-cleanup.md
+++ b/docs/HANDOFF-audit-cleanup.md
@@ -76,3 +76,44 @@ pnpm build # compiles + type-checks all routes
Review Phases A + B + CI first (low-risk, high-value: type safety, bug fixes, tests). Then the refactor
slices (structural, verified by tsc + build + tests). Then the SoC pass. Merge via PR; a squash or
merge-commit is fine. After merge to `main` it deploys — have the manual UI smoke-test done first.
+
+---
+
+## Update — 2026-08-05 (merged to `main`, live)
+
+The audit/cleanup branch was merged (PR #7) and deployed. The four residual items above are now resolved:
+
+1. **Manual UI smoke-test — DONE.** The decomposed ops/settings/members screens (plus onboarding, dashboard,
+ /me) were clicked through against a real seeded backend; a live mutation (area-lead create) and the
+ certifications dialog were exercised. Zero console/server errors.
+2. **`types/database.ts` regenerated — DONE.** Regenerated from the canonical `scripts/schema.sql` (built on
+ a local Supabase). All 11 `// TODO(types)` join casts removed, hand-added RPCs now native, and
+ `types/domain/governance.ts` collapsed to `Tables<>`/`Enums<>`. Two embeds that resolved to `any[]` were
+ traced to the deliberately-wide `ServerSupabase` gate type and fixed by using `createClient()` directly.
+3. **Deferred bug L3 — FIXED.** `markOnboardingStepDone` now routes through `mark_onboarding_step_done`
+ (migration `055`): a single atomic, ownership-guarded dedup-append into `onboarding_progress`. Covered by
+ `integration/onboarding-progress.test.ts` (incl. a 12-way concurrency case).
+4. **CI DB-backed suites — DONE.** `.github/workflows/ci.yml` now has an `integration-e2e` job that stands up
+ a Supabase service, runs the integration suite and Playwright e2e, and **fails if the integration suite
+ executes 0 tests** (so a missing DB can't masquerade as passing).
+
+Items 5 (comms realtime dedup) and 6 (commit granularity) still stand as written.
+
+## Docs section + homepage fix (branch `feat/docs-and-homepage-fix`)
+
+- **Homepage redirect fix** (`app/(landing)/page.tsx`): it used to `redirect('/dashboard')` for any signed-in
+ visitor, so the marketing site (and the new docs) were unreachable while logged in. The redirect is gone;
+ the nav/hero/closing CTAs are now auth-aware (signed-in shows a "Dashboard" button).
+- **Public `/docs` section** organized by Diátaxis (tutorials / how-to / reference / explanation), **34 pages**
+ covering every module. Source of truth is `lib/docs/nav.ts`; content is markdown under
+ `content/docs//.md`, read at build time (the routes are statically generated) and rendered
+ by `components/docs/docs-markdown.tsx` (reuses the existing `react-markdown` stack, no new deps). The
+ `(docs)` route group has its own theme (`docs.css`) matching the public site. Screenshots live in
+ `public/docs-media/` and are embedded as captioned figures. Docs prose contains no em-dashes by house style.
+- **Authoring notes:** add a page = add it to `DOC_CATEGORIES` in `lib/docs/nav.ts` and drop the matching
+ `content/docs//.md`. No H1 in the body (the page chrome renders the title). Cross-link docs
+ as `/docs//` and app screens as `/route`. Every page was fact-checked against the code by an
+ adversarial verify pass; the permission gotcha that recurs: server actions often allow `board`, but the
+ space-config UI (`/settings`, `/customize` config panels, integrations) is admin-only.
+
+Gates on this branch: `tsc` 0 · `lint` 0 errors · `build` ✓ (all 34 `/docs` pages prerendered).
diff --git a/lib/docs/load.ts b/lib/docs/load.ts
new file mode 100644
index 0000000..38b688a
--- /dev/null
+++ b/lib/docs/load.ts
@@ -0,0 +1,17 @@
+import { promises as fs } from 'node:fs'
+import path from 'node:path'
+
+// Doc bodies are authored as markdown under content/docs//.md
+// and read at build time (the /docs routes are statically generated, so the
+// files are only needed during `next build`, never at runtime).
+const CONTENT_ROOT = path.join(process.cwd(), 'content', 'docs')
+
+export async function loadDocContent(categoryId: string, slug: string): Promise {
+ const file = path.join(CONTENT_ROOT, categoryId, `${slug}.md`)
+ try {
+ const raw = await fs.readFile(file, 'utf8')
+ return raw.trim().length > 0 ? raw : null
+ } catch {
+ return null
+ }
+}
diff --git a/lib/docs/nav.ts b/lib/docs/nav.ts
new file mode 100644
index 0000000..d627d43
--- /dev/null
+++ b/lib/docs/nav.ts
@@ -0,0 +1,113 @@
+// Docs information architecture, organized by the Diátaxis framework:
+// tutorials — learning-oriented, start-to-finish lessons
+// how-to — task-oriented, goal-focused recipes
+// reference — information-oriented, dry technical facts
+// explanation — understanding-oriented, background & rationale
+//
+// This registry is the single source of truth for the docs nav, the
+// static-param generation, and the content pipeline. Each page's body lives at
+// content/docs//.md and is rendered by .
+
+export type DocCategoryId = 'tutorials' | 'how-to' | 'reference' | 'explanation'
+
+export type DocPage = {
+ slug: string
+ title: string
+ summary: string
+}
+
+export type DocCategory = {
+ id: DocCategoryId
+ label: string
+ tagline: string
+ /** Diátaxis one-liner shown on the docs home. */
+ diataxis: string
+ pages: DocPage[]
+}
+
+export const DOC_CATEGORIES: DocCategory[] = [
+ {
+ id: 'tutorials',
+ label: 'Tutorials',
+ tagline: 'Start here',
+ diataxis: 'Learning-oriented lessons that take you from nothing to a working space, step by step.',
+ pages: [
+ { slug: 'getting-started', title: 'Set up your space', summary: 'Create or join a space, land as an admin, and get your bearings.' },
+ { slug: 'onboard-members', title: 'Onboard your first members', summary: 'Invite people, shape the onboarding flow, and get everyone current.' },
+ { slug: 'first-class', title: 'Run your first class', summary: 'Create a class, schedule a session, take signups, mark attendance, award a cert.' },
+ { slug: 'dues-end-to-end', title: 'Track dues, end to end', summary: 'Add a pay-here link, import a payment, and reconcile it to a member.' },
+ ],
+ },
+ {
+ id: 'how-to',
+ label: 'How-to guides',
+ tagline: 'Get a task done',
+ diataxis: 'Task-oriented recipes for a specific goal, assuming you already know the basics.',
+ pages: [
+ { slug: 'import-members', title: 'Import members from a spreadsheet', summary: 'Bulk-add members by pasting rows, with tiers and statuses.' },
+ { slug: 'invite-links', title: 'Create role-granting invite links', summary: 'Generate invite codes with usage caps, expiry, and a granted role.' },
+ { slug: 'configure-onboarding', title: 'Configure the onboarding flow', summary: 'Add, reorder, require, and disable onboarding steps.' },
+ { slug: 'connect-payments', title: 'Connect payments & reconcile dues', summary: 'Add a platform, import transactions, and match them to members.' },
+ { slug: 'stripe-dues', title: 'Set up recurring Stripe dues', summary: 'Let members subscribe so dues reconcile themselves each cycle.' },
+ { slug: 'build-a-form', title: 'Build a form or signable waiver', summary: 'Compose fields, set visibility, and capture immutable submissions.' },
+ { slug: 'equipment-reservations', title: 'Set up equipment & reservations', summary: 'Register tools, take reservations, and gate a tool behind a certification.' },
+ { slug: 'connect-a-door', title: 'Connect a door controller', summary: 'Wire a native or generic controller, assign cards, and read the access log.' },
+ { slug: 'create-tasks-chores', title: 'Create tasks & recurring chores', summary: 'Add one-off and recurring work with assignments, due dates, and areas.' },
+ { slug: 'track-projects', title: 'Track projects', summary: 'Run a shared board of what the space is building.' },
+ { slug: 'use-comms-and-forum', title: 'Use comms & the forum', summary: 'Post to channels and threads for space-wide discussion.' },
+ { slug: 'manage-ops-knowledge', title: 'Write ops docs & store secrets', summary: 'Author knowledge base entries and keep credentials in the encrypted vault.' },
+ { slug: 'run-a-proposal', title: 'Run a proposal to a vote', summary: 'Open a proposal, set quorum and threshold, and record the outcome.' },
+ { slug: 'handle-incidents', title: 'File & manage an incident', summary: 'Report an incident (anonymously if needed) and move it to a decision.' },
+ { slug: 'publish-a-policy', title: 'Publish & version a policy', summary: 'Write a policy, publish it, and supersede it with a new version.' },
+ { slug: 'customize-space', title: 'Customize roles, tiers & areas', summary: 'Rename roles, tune the permissions matrix, define tiers and areas.' },
+ ],
+ },
+ {
+ id: 'reference',
+ label: 'Reference',
+ tagline: 'Look it up',
+ diataxis: 'Information-oriented, exhaustive descriptions of the machinery. Dry and accurate.',
+ pages: [
+ { slug: 'modules', title: 'Modules overview', summary: 'Every module in one place, with what it does and where it lives.' },
+ { slug: 'roles-and-permissions', title: 'Roles & permissions', summary: 'Built-in roles, custom roles, and the per-space permission matrix.' },
+ { slug: 'members', title: 'Members: statuses, tiers & fields', summary: 'Every member status, tier, and profile field, and what each controls.' },
+ { slug: 'governance', title: 'Governance reference', summary: 'Proposal types, thresholds, quorum, incident and policy lifecycles.' },
+ { slug: 'payments-and-dues', title: 'Payments & dues reference', summary: 'Platforms, link statuses, dues advancement, and pay-here links.' },
+ { slug: 'access-control', title: 'Access control & doors reference', summary: 'Card slots, controller types, inbound ingest, and the access log.' },
+ { slug: 'forms', title: 'Forms & waivers reference', summary: 'Field types, visibility, required-form gating, and submission snapshots.' },
+ { slug: 'classes-and-equipment', title: 'Classes, certifications & equipment', summary: 'Sessions, waitlists, attendance, cert awards, and reservation rules.' },
+ { slug: 'integrations', title: 'Integrations, cron & webhooks', summary: 'Notification dispatch, door inbound webhooks, and the cron endpoints.' },
+ ],
+ },
+ {
+ id: 'explanation',
+ label: 'Explanation',
+ tagline: 'Understand why',
+ diataxis: 'Understanding-oriented discussion of how things fit together and why they are built this way.',
+ pages: [
+ { slug: 'architecture', title: 'Architecture overview', summary: 'Next.js App Router, Supabase, server actions, and the request path.' },
+ { slug: 'permissions-model', title: 'The multi-space & permissions model', summary: 'How space-scoping, roles, and effective permissions actually work.' },
+ { slug: 'governance-model', title: 'How governance works', summary: 'Why quorum, thresholds, recusal, and anonymity are modeled the way they are.' },
+ { slug: 'security-model', title: 'Security & privacy model', summary: 'RLS, the encrypted secrets vault, authz gates, and what the server derives.' },
+ { slug: 'data-and-reconciliation', title: 'Dues & reconciliation, explained', summary: 'The philosophy behind advance-only dues and hand/auto matching.' },
+ ],
+ },
+]
+
+export const DOC_CATEGORY_IDS = DOC_CATEGORIES.map(c => c.id)
+
+export function findCategory(id: string): DocCategory | undefined {
+ return DOC_CATEGORIES.find(c => c.id === id)
+}
+
+export function findPage(categoryId: string, slug: string): { category: DocCategory; page: DocPage } | undefined {
+ const category = findCategory(categoryId)
+ const page = category?.pages.find(p => p.slug === slug)
+ if (!category || !page) return undefined
+ return { category, page }
+}
+
+/** Flat, in-order list for prev/next navigation. */
+export function flatPages(): { categoryId: DocCategoryId; slug: string; title: string }[] {
+ return DOC_CATEGORIES.flatMap(c => c.pages.map(p => ({ categoryId: c.id, slug: p.slug, title: p.title })))
+}
diff --git a/public/docs-media/classes-manage.jpg b/public/docs-media/classes-manage.jpg
new file mode 100644
index 0000000..108abd3
Binary files /dev/null and b/public/docs-media/classes-manage.jpg differ
diff --git a/public/docs-media/classes.jpg b/public/docs-media/classes.jpg
new file mode 100644
index 0000000..60cb866
Binary files /dev/null and b/public/docs-media/classes.jpg differ
diff --git a/public/docs-media/customize.jpg b/public/docs-media/customize.jpg
new file mode 100644
index 0000000..ba36fdc
Binary files /dev/null and b/public/docs-media/customize.jpg differ
diff --git a/public/docs-media/dashboard.jpg b/public/docs-media/dashboard.jpg
new file mode 100644
index 0000000..7f211cf
Binary files /dev/null and b/public/docs-media/dashboard.jpg differ
diff --git a/public/docs-media/import.jpg b/public/docs-media/import.jpg
new file mode 100644
index 0000000..2fd4a06
Binary files /dev/null and b/public/docs-media/import.jpg differ
diff --git a/public/docs-media/me.jpg b/public/docs-media/me.jpg
new file mode 100644
index 0000000..dcd187f
Binary files /dev/null and b/public/docs-media/me.jpg differ
diff --git a/public/docs-media/members.jpg b/public/docs-media/members.jpg
new file mode 100644
index 0000000..9e8ac38
Binary files /dev/null and b/public/docs-media/members.jpg differ
diff --git a/public/docs-media/ops.jpg b/public/docs-media/ops.jpg
new file mode 100644
index 0000000..cee1094
Binary files /dev/null and b/public/docs-media/ops.jpg differ
diff --git a/public/docs-media/payments.jpg b/public/docs-media/payments.jpg
new file mode 100644
index 0000000..87e7a2b
Binary files /dev/null and b/public/docs-media/payments.jpg differ
diff --git a/public/docs-media/proposals.jpg b/public/docs-media/proposals.jpg
new file mode 100644
index 0000000..e8d9d6b
Binary files /dev/null and b/public/docs-media/proposals.jpg differ
diff --git a/public/docs-media/settings-dues.jpg b/public/docs-media/settings-dues.jpg
new file mode 100644
index 0000000..aa90b71
Binary files /dev/null and b/public/docs-media/settings-dues.jpg differ
diff --git a/public/docs-media/tasks.jpg b/public/docs-media/tasks.jpg
new file mode 100644
index 0000000..3a3b78e
Binary files /dev/null and b/public/docs-media/tasks.jpg differ