Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix: harden output and release stability (#53)

tt-a1ia097c2d63ece
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b634100c..cc4d4070 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [20, 22]
+ node-version: [18, 20, 22, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7ba071e7..3a92793c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -44,8 +44,27 @@ jobs:
echo "::error::tag v$tag does not match archify/package.json version $pkg_version"
exit 1
fi
+ - name: Classify stable and prerelease tags
+ id: release-kind
+ shell: bash
+ run: |
+ version="${GITHUB_REF_NAME#v}"
+ if [[ "$version" == *-* ]]; then
+ echo "prerelease=true" >> "$GITHUB_OUTPUT"
+ echo "make_latest=false" >> "$GITHUB_OUTPUT"
+ else
+ echo "prerelease=false" >> "$GITHUB_OUTPUT"
+ echo "make_latest=true" >> "$GITHUB_OUTPUT"
+ fi
- name: Build skill archive
run: scripts/build-zip.sh
+ - name: Validate the exact release archive without installing dependencies
+ run: |
+ set -euo pipefail
+ package_root="$RUNNER_TEMP/archify-release-package"
+ mkdir -p "$package_root"
+ unzip -q archify.zip -d "$package_root"
+ node scripts/package-smoke.mjs "$package_root/archify"
- name: Committed zip must match the build (same gate as CI)
run: |
mkdir /tmp/fresh /tmp/checked
@@ -58,3 +77,5 @@ jobs:
with:
files: archify.zip
generate_release_notes: true
+ prerelease: ${{ steps.release-kind.outputs.prerelease }}
+ make_latest: ${{ steps.release-kind.outputs.make_latest }}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4984997a..44c6e2b7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@ All notable changes are documented here. Format loosely follows [Keep a Changelo
## [Unreleased]
+> Development identity: `v2.13.0-dev.0`. This checkout contains unreleased work and is not the published `v2.12.0` release.
+
### Added
- **Exact-ID Architecture Delta Review Navigator.** Every validated Architecture Delta proof now keeps a compact Overview / Previous / Review / Next strip above the unchanged three-state canvas and turns its deterministic authored-change list into native exact-ID controls. Selecting a component, relationship, or boundary highlights only matching `data-node-id`, `data-edge-id`, or derived boundary identity; one deliberate Review activation advances through the same stable order once at 1400ms per change, never loops, and yields to manual navigation, view changes, page hiding, print, or dynamic reduced motion. Generation and runtime validators require one unambiguous primary identity with the receipt's exact state and classification, otherwise the navigator fails closed while the static Before / Delta / After proof remains usable. Roving keyboard navigation, Overview/Escape cleanup, dark/light and all three presets add no URL, history, storage, schema, comparator inference, dependency, GitHub integration, risk claim, or mobile product surface.
- **Architecture Delta / PR Proof.** The zero-dependency CLI now exposes `archify compare architecture <base.json> <head.json> [output.html] --json`: it validates both snapshots independently, pairs components and relationships only by authored stable IDs, classifies semantic, evidence, scope, topology, geometry, provenance, and presentation changes separately, and emits deterministic Before / Delta / After HTML plus a complete machine receipt. Removed nodes and relationships retain baseline geometry, moved nodes keep a `MOVE FROM` phantom, endpoint changes show old and new routes, and `+ / ~ / − / ↔` plus line patterns keep meaning independent of color or motion. Formatting, object-key, entity-order, `wraps`, and `sources` set changes preserve the semantic hash and artifact bytes; failures preserve the previous artifact. Repository mismatches, zero shared component IDs, missing relationship IDs, and ambiguous boundary keys fail closed. The proof says `AUTHORED SNAPSHOTS` or, after both repository-evidence gates pass, `REVISION-PINNED INPUTS`; it never claims risk, blast radius, safety, mergeability, or verified PR impact. No sixth diagram type, GitHub API, Git ref parser, LLM, Graphviz, hosted service, dependency, telemetry, or mobile product surface was added.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 87441925..df8d0e99 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -13,7 +13,7 @@ Do not include secrets, access tokens, credentials, private repository content,
## Local setup
-The renderer package lives in `archify/` and supports Node.js 20 and 22.
+The renderer package lives in `archify/` and supports Node.js 18 and later; CI covers Node.js 18, 20, 22, and 24.
```bash
cd archify
diff --git a/README.md b/README.md
index 1520e2c5..33c67398 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,9 @@ Archify is an agent skill for Raven, Cursor, Claude Code, Codex CLI, and OpenCod
![License](https://img.shields.io/badge/license-MIT-22c55e?style=flat-square)
![Agent Skill](https://img.shields.io/badge/Agent-Skill-7C3AED?style=flat-square)
-![Version](https://img.shields.io/badge/version-2.12.0-0891b2?style=flat-square)
+![Development Version](https://img.shields.io/badge/version-2.13.0--dev.0-0891b2?style=flat-square)
+
+**Current development version:** `v2.13.0-dev.0` (unreleased; latest stable: `v2.12.0`). See [Unreleased](CHANGELOG.md#unreleased).
**[Project page](https://tt-a1i.github.io/archify/)** · **[Scenario guide](https://tt-a1i.github.io/archify/guide.html)** · **[Proof Lab](https://tt-a1i.github.io/archify/gallery.html)**
@@ -106,7 +108,7 @@ To try it without a permanent install:
npx skills use tt-a1i/archify@archify --agent codex
```
-The same Skill works with `raven`, `cursor`, `codex`, `claude-code`, and `opencode`; the [quick-start agent switcher](https://tt-a1i.github.io/archify/start.html?agent=cursor&type=architecture) generates the exact command without maintaining vendor-specific forks. The packaged [`archify.zip`](archify.zip) also works without `npm install`; for Raven, extract it into `~/.raven/workspace/skills`.
+The [agent switcher](https://tt-a1i.github.io/archify/start.html?agent=cursor&type=architecture) covers `cursor`, `codex`, `claude-code`, and `opencode`. For Raven's manual ZIP install, extract [`archify.zip`](archify.zip) into `~/.raven/workspace/skills`; it yields `~/.raven/workspace/skills/archify`. Raven is not a switcher target.
### 2. Ask for one bounded view
@@ -251,7 +253,7 @@ The complete generation and viewer contract lives in [`archify/SKILL.md`](archif
| Surface | Install location or method | Capability |
|---|---|---|
-| **Raven** | `~/.raven/workspace/skills/archify` | Full renderer + validation workflow |
+| **Raven** | Manual ZIP into `~/.raven/workspace/skills` → `~/.raven/workspace/skills/archify` | Full renderer + validation workflow |
| **Claude Code** | `~/.claude/skills/` or `.claude/skills/` | Full renderer + validation workflow |
| **Codex CLI** | `~/.agents/skills/` or `.agents/skills/` | Full renderer + validation workflow |
| **opencode** | `~/.config/opencode/skills/`, `.opencode/skills/`, or `.agents/skills/` | Full renderer + validation workflow |
@@ -267,7 +269,7 @@ The complete generation and viewer contract lives in [`archify/SKILL.md`](archif
- [Roadmap](ROADMAP.md)
- [Generated Proof Lab](https://tt-a1i.github.io/archify/gallery.html)
-Archify 2.12 includes typed IR across all five modes, real-repository proof, deterministic exact-ID Architecture Delta review, verified live preview, authored reachability, optional finite motion, guided views, semantic search and relationship exploration, shareable deep links, 1200×630 diagram and route cards, browser-native WebM recording, explicit `standard` / `showcase` quality profiles, and an opt-in deployment ownership contract.
+Unreleased `v2.13.0-dev.0` includes typed IR across all five modes, real-repository proof, deterministic exact-ID Architecture Delta review, verified live preview, authored reachability, optional finite motion, guided views, semantic search and relationship exploration, shareable deep links, 1200×630 diagram and route cards, browser-native WebM recording, explicit `standard` / `showcase` quality profiles, and an opt-in deployment ownership contract.
Automatic Mermaid parsing, general-purpose auto-layout, hosted sharing, and WYSIWYG editing are intentionally outside the current scope.
diff --git a/README_EN.md b/README_EN.md
index 1520e2c5..33c67398 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -21,7 +21,9 @@ Archify is an agent skill for Raven, Cursor, Claude Code, Codex CLI, and OpenCod
![License](https://img.shields.io/badge/license-MIT-22c55e?style=flat-square)
![Agent Skill](https://img.shields.io/badge/Agent-Skill-7C3AED?style=flat-square)
-![Version](https://img.shields.io/badge/version-2.12.0-0891b2?style=flat-square)
+![Development Version](https://img.shields.io/badge/version-2.13.0--dev.0-0891b2?style=flat-square)
+
+**Current development version:** `v2.13.0-dev.0` (unreleased; latest stable: `v2.12.0`). See [Unreleased](CHANGELOG.md#unreleased).
**[Project page](https://tt-a1i.github.io/archify/)** · **[Scenario guide](https://tt-a1i.github.io/archify/guide.html)** · **[Proof Lab](https://tt-a1i.github.io/archify/gallery.html)**
@@ -106,7 +108,7 @@ To try it without a permanent install:
npx skills use tt-a1i/archify@archify --agent codex
```
-The same Skill works with `raven`, `cursor`, `codex`, `claude-code`, and `opencode`; the [quick-start agent switcher](https://tt-a1i.github.io/archify/start.html?agent=cursor&type=architecture) generates the exact command without maintaining vendor-specific forks. The packaged [`archify.zip`](archify.zip) also works without `npm install`; for Raven, extract it into `~/.raven/workspace/skills`.
+The [agent switcher](https://tt-a1i.github.io/archify/start.html?agent=cursor&type=architecture) covers `cursor`, `codex`, `claude-code`, and `opencode`. For Raven's manual ZIP install, extract [`archify.zip`](archify.zip) into `~/.raven/workspace/skills`; it yields `~/.raven/workspace/skills/archify`. Raven is not a switcher target.
### 2. Ask for one bounded view
@@ -251,7 +253,7 @@ The complete generation and viewer contract lives in [`archify/SKILL.md`](archif
| Surface | Install location or method | Capability |
|---|---|---|
-| **Raven** | `~/.raven/workspace/skills/archify` | Full renderer + validation workflow |
+| **Raven** | Manual ZIP into `~/.raven/workspace/skills` → `~/.raven/workspace/skills/archify` | Full renderer + validation workflow |
| **Claude Code** | `~/.claude/skills/` or `.claude/skills/` | Full renderer + validation workflow |
| **Codex CLI** | `~/.agents/skills/` or `.agents/skills/` | Full renderer + validation workflow |
| **opencode** | `~/.config/opencode/skills/`, `.opencode/skills/`, or `.agents/skills/` | Full renderer + validation workflow |
@@ -267,7 +269,7 @@ The complete generation and viewer contract lives in [`archify/SKILL.md`](archif
- [Roadmap](ROADMAP.md)
- [Generated Proof Lab](https://tt-a1i.github.io/archify/gallery.html)
-Archify 2.12 includes typed IR across all five modes, real-repository proof, deterministic exact-ID Architecture Delta review, verified live preview, authored reachability, optional finite motion, guided views, semantic search and relationship exploration, shareable deep links, 1200×630 diagram and route cards, browser-native WebM recording, explicit `standard` / `showcase` quality profiles, and an opt-in deployment ownership contract.
+Unreleased `v2.13.0-dev.0` includes typed IR across all five modes, real-repository proof, deterministic exact-ID Architecture Delta review, verified live preview, authored reachability, optional finite motion, guided views, semantic search and relationship exploration, shareable deep links, 1200×630 diagram and route cards, browser-native WebM recording, explicit `standard` / `showcase` quality profiles, and an opt-in deployment ownership contract.
Automatic Mermaid parsing, general-purpose auto-layout, hosted sharing, and WYSIWYG editing are intentionally outside the current scope.
diff --git a/README_ZH.md b/README_ZH.md
index 9d0d343c..9a92a40a 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -17,7 +17,9 @@ Archify 是适用于 Raven、Cursor、Claude Code、Codex CLI 和 OpenCode 的 A
![License](https://img.shields.io/badge/license-MIT-22c55e?style=flat-square)
![Agent Skill](https://img.shields.io/badge/Agent-Skill-7C3AED?style=flat-square)
-![Version](https://img.shields.io/badge/version-2.12.0-0891b2?style=flat-square)
+![开发版本](https://img.shields.io/badge/version-2.13.0--dev.0-0891b2?style=flat-square)
+
+**当前开发版本:** `v2.13.0-dev.0`(尚未发布;最新稳定版本:`v2.12.0`)。详见 [Unreleased](CHANGELOG.md#unreleased)。
**[在线项目页](https://tt-a1i.github.io/archify/)** · **[场景选图指南](https://tt-a1i.github.io/archify/guide.html)** · **[Proof Lab](https://tt-a1i.github.io/archify/gallery.html)**
@@ -102,7 +104,7 @@ npx -y skills add tt-a1i/archify --skill archify --agent cursor --global --copy
npx skills use tt-a1i/archify@archify --agent codex
```
-同一份 Skill 可用于 `raven`、`cursor`、`codex`、`claude-code` 和 `opencode`;[快速开始页的 Agent 切换器](https://tt-a1i.github.io/archify/start.html?agent=cursor&type=architecture)会生成准确命令,不维护厂商专属分叉。仓库内的 [`archify.zip`](archify.zip) 也不需要执行 `npm install`;在 Raven 中,将其解压到 `~/.raven/workspace/skills` 即可。
+[Agent 切换器](https://tt-a1i.github.io/archify/start.html?agent=cursor&type=architecture)只为 `cursor`、`codex`、`claude-code` 和 `opencode` 生成命令。Raven 仅支持 ZIP 手动安装:将 [`archify.zip`](archify.zip) 解压到 `~/.raven/workspace/skills`,解压后会得到 `~/.raven/workspace/skills/archify`;Raven 不属于切换器目标。
### 2. 先画一个边界清楚的视图
@@ -246,7 +248,7 @@ node bin/archify.mjs deliver workflow examples/agent-tool-call.workflow.json /tm
| 使用位置 | 安装位置或方法 | 能力 |
|---|---|---|
-| **Raven** | `~/.raven/workspace/skills/archify` | 完整 Renderer + Validation 工作流 |
+| **Raven** | ZIP 手动安装:将 `archify.zip` 解压到 `~/.raven/workspace/skills`,解压后会得到 `~/.raven/workspace/skills/archify` | 完整 Renderer + Validation 工作流 |
| **Claude Code** | `~/.claude/skills/` 或 `.claude/skills/` | 完整 Renderer + Validation 工作流 |
| **Codex CLI** | `~/.agents/skills/` 或 `.agents/skills/` | 完整 Renderer + Validation 工作流 |
| **opencode** | `~/.config/opencode/skills/`、`.opencode/skills/` 或 `.agents/skills/` | 完整 Renderer + Validation 工作流 |
@@ -266,7 +268,7 @@ Claude.ai 中的上传入口:
- [路线图](ROADMAP.md)
- [自动生成的 Proof Lab](https://tt-a1i.github.io/archify/gallery.html)
-Archify 2.12 已覆盖五种 Typed IR、真实仓库证明、基于精确 ID 的确定性 Architecture Delta 评审、验证后实时预览、作者可达性、可选有限动态、引导视图、语义搜索与关系探索、可分享深链、1200×630 整图与路径卡片、浏览器原生 WebM、显式 `standard` / `showcase` 质量档位,以及按需启用的部署所有权契约。
+尚未发布的 `v2.13.0-dev.0` 开发线覆盖五种 Typed IR、真实仓库证明、基于精确 ID 的确定性 Architecture Delta 评审、验证后实时预览、作者可达性、可选有限动态、引导视图、语义搜索与关系探索、可分享深链、1200×630 整图与路径卡片、浏览器原生 WebM、显式 `standard` / `showcase` 质量档位,以及按需启用的部署所有权契约。
自动 Mermaid Parser、通用自动布局、托管分享服务和 WYSIWYG 编辑器目前都不在产品范围内。
diff --git a/ROADMAP.md b/ROADMAP.md
index ae090914..90c7f112 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -1,6 +1,6 @@
# Archify Roadmap
-As of v2.12.0, the coordinate-stability work has shipped as JSON IR plus typed renderers for architecture, workflow, sequence, data-flow, and lifecycle diagrams. Workflow diagrams now also have phase/group/exception-lane structure, happy-path linting, trace animation, and route-crossing guards. The shared viewer adds deterministic semantic node IDs, optional author-controlled relationship IDs with durable `#relation=` links, a pre-click Intent Trace for exact one-hop traffic, a two-endpoint Route Probe with an inspectable Route Journey over deterministic shortest authored paths, searchable Node Finder navigation, read-only one-hop focus with a renderer-owned Semantic Passport and copyable focus link, upstream/downstream Authored Reachability, a runtime-built Semantic Radar for desktop viewport navigation, bounded typed guided views with a visible Named Chapter Rail, pre-commit Chapter Delta Preview, Shared Anchor Handoff, and path-aware Semantic Story Beats, a reader-controlled Live/Still Motion Governor, share-ready one-shot chapters with a title/route/step/state/progress cue, a viewport-filling Presentation Stage, Semantic Camera framing, pan/zoom, four reader-switchable visual presets with a direct Style Picker, a contain-only 1200×630 Share Card, route-focused Route Share Card and authored-reach Reach Share Card variants, and browser-native WebM export. A generated Proof Lab publishes 11 live scenario artifacts with their exact sources, three named reader views, 99 artifact checks, and named composition receipts; its preview grid stays static while deliberate proof links play one named chapter once. The landing-page Live Proof Stage promotes three of those generated artifacts into the first bounded motion proof, and the README motion reel carries the same proof-first story onto GitHub without claiming SVG animation support. A question-first scenario guide maps concrete user needs to those 11 bounded recipes across the five modes, with one shared source for CLI and GitHub Pages and direct proof navigation. A unified CLI (`bin/archify.mjs`) wraps guide, render, preview, deliver, validate, check, and examples, with optional last-good desktop preview and verified post-commit open handoffs. This file records the design decisions that led there, plus the ideas that were explicitly declined. The original v2.4 / v2.5 backlog (export-scale URL param, color-blind palette, gzip+base64 share links) was considered and dropped — see [Not planned](#not-planned) for the rationale on each.
+The current development line is `v2.13.0-dev.0`; it contains the work under Changelog **Unreleased** and is not a stable release. `v2.12.0` remains the latest published identity. Across the published release and current development line, the coordinate-stability work uses JSON IR plus typed renderers for architecture, workflow, sequence, data-flow, and lifecycle diagrams. Workflow diagrams also have phase/group/exception-lane structure, happy-path linting, trace animation, and route-crossing guards. The shared viewer adds deterministic semantic node IDs, optional author-controlled relationship IDs with durable `#relation=` links, a pre-click Intent Trace for exact one-hop traffic, a two-endpoint Route Probe with an inspectable Route Journey over deterministic shortest authored paths, searchable Node Finder navigation, read-only one-hop focus with a renderer-owned Semantic Passport and copyable focus link, upstream/downstream Authored Reachability, a runtime-built Semantic Radar for desktop viewport navigation, bounded typed guided views with a visible Named Chapter Rail, pre-commit Chapter Delta Preview, Shared Anchor Handoff, and path-aware Semantic Story Beats, a reader-controlled Live/Still Motion Governor, share-ready one-shot chapters with a title/route/step/state/progress cue, a viewport-filling Presentation Stage, Semantic Camera framing, pan/zoom, four reader-switchable visual presets with a direct Style Picker, a contain-only 1200×630 Share Card, route-focused Route Share Card and authored-reach Reach Share Card variants, and browser-native WebM export. A generated Proof Lab publishes 11 live scenario artifacts with their exact sources, three named reader views, 99 artifact checks, and named composition receipts; its preview grid stays static while deliberate proof links play one named chapter once. The landing-page Live Proof Stage promotes three of those generated artifacts into the first bounded motion proof, and the README motion reel carries the same proof-first story onto GitHub without claiming SVG animation support. A question-first scenario guide maps concrete user needs to those 11 bounded recipes across the five modes, with one shared source for CLI and GitHub Pages and direct proof navigation. A unified CLI (`bin/archify.mjs`) wraps guide, render, preview, deliver, validate, check, and examples, with optional last-good desktop preview and verified post-commit open handoffs. This file records the design decisions that led there, plus the ideas that were explicitly declined. The original v2.4 / v2.5 backlog (export-scale URL param, color-blind palette, gzip+base64 share links) was considered and dropped — see [Not planned](#not-planned) for the rationale on each.
The latest viewer slice turns the one-click Style cycle into a direct, accessible four-option Visual Style Picker. Each named option includes a compact material sample and audience cue; radio state, Arrow/Home/End navigation, Escape/Tab/outside-click dismissal, focus return, and mutual exclusion with Export follow the existing viewer contract. <kbd>S</kbd> still cycles for fast keyboard use. The picker is shared by all five renderers and keeps Classic as the default; it changes no geometry, topology, semantic identity, authored data, URL, storage, schema, dependency, export format, or passive-embed behavior.
diff --git a/archify.zip b/archify.zip
index cace84b6..6796d76e 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/SKILL.md b/archify/SKILL.md
index 31e7b355..e356c649 100644
--- a/archify/SKILL.md
+++ b/archify/SKILL.md
@@ -3,7 +3,7 @@ name: archify
description: Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data lineage, state machines, or to convert/beautify Mermaid.
license: MIT
metadata:
- version: "2.12"
+ version: "2.13"
author: tt-a1i
based_on: Cocoon-AI/architecture-diagram-generator (MIT, v1.0)
---
diff --git a/archify/assets/template.html b/archify/assets/template.html
index 95393b1d..97ef1a08 100644
--- a/archify/assets/template.html
+++ b/archify/assets/template.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>[PROJECT NAME] Architecture Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/archify/bin/archify.mjs b/archify/bin/archify.mjs
index 4124af23..f0e6d08f 100755
--- a/archify/bin/archify.mjs
+++ b/archify/bin/archify.mjs
@@ -409,6 +409,7 @@ function renderValidatedArchitecture(inputPath, outputPath, quality, repoRoot) {
}
async function commandCompare(args) {
+ const { resolveOutputPath } = await import('../renderers/shared/output-path.mjs');
const qualityArgs = extractQualityArgs(args);
const repoArgs = extractRepoRootArgs(qualityArgs.rest);
const options = extractCompareOptions(repoArgs.rest);
@@ -436,10 +437,51 @@ async function commandCompare(args) {
const basePath = path.resolve(baseInput);
const headPath = path.resolve(headInput);
- const outputPath = path.resolve(requestedOutput || 'architecture-delta.html');
- const receiptPath = path.resolve(options.receipt || compareReceiptPath(outputPath));
- if (outputPath === receiptPath) fail('Compare artifact and receipt must use different paths.');
-
+ let outputPath;
+ try {
+ ({ outputPath } = resolveOutputPath({
+ requestedOutput,
+ defaultOutput: 'architecture-delta.html',
+ inputPaths: [basePath, headPath],
+ }));
+ } catch (error) {
+ const outputDiagnostic = error.archifyDiagnostics?.[0];
+ reportCompareFailure({
+ json: options.json,
+ stage: 'prepare',
+ error: error.message,
+ code: outputDiagnostic?.code || 'output/path-resolution',
+ details: {
+ ...(outputDiagnostic?.subject || {}),
+ ...(outputDiagnostic?.evidence || {}),
+ supportedFixes: outputDiagnostic?.supportedFixes || ['choose a safe output path and retry'],
+ },
+ });
+ return;
+ }
+ let receiptPath;
+ try {
+ ({ outputPath: receiptPath } = resolveOutputPath({
+ requestedOutput: options.receipt || compareReceiptPath(outputPath),
+ defaultOutput: compareReceiptPath(outputPath),
+ inputPaths: [basePath, headPath],
+ otherOutputPaths: [outputPath],
+ }));
+ } catch (error) {
+ const outputDiagnostic = error.archifyDiagnostics?.[0];
+ reportCompareFailure({
+ json: options.json,
+ stage: 'prepare',
+ error: error.message,
+ code: outputDiagnostic?.code || 'output/path-resolution',
+ details: {
+ ...(outputDiagnostic?.subject || {}),
+ ...(outputDiagnostic?.evidence || {}),
+ supportedFixes: outputDiagnostic?.supportedFixes || ['choose a safe receipt path and retry'],
+ },
+ });
+ return;
+ }
let baseBuffer;
let headBuffer;
let base;
@@ -586,6 +628,34 @@ async function commandCompare(args) {
};
fs.writeFileSync(receiptCandidate, `${JSON.stringify(finalReceipt, null, 2)}\n`);
+ try {
+ const currentOutput = resolveOutputPath({
+ requestedOutput,
+ defaultOutput: 'architecture-delta.html',
+ inputPaths: [basePath, headPath],
+ }).outputPath;
+ resolveOutputPath({
+ requestedOutput: options.receipt || compareReceiptPath(currentOutput),
+ defaultOutput: compareReceiptPath(currentOutput),
+ inputPaths: [basePath, headPath],
+ otherOutputPaths: [currentOutput],
+ });
+ } catch (error) {
+ const outputDiagnostic = error.archifyDiagnostics?.[0];
+ reportCompareFailure({
+ json: options.json,
+ stage: 'commit',
+ error: error.message,
+ code: outputDiagnostic?.code || 'output/path-resolution',
+ details: {
+ ...(outputDiagnostic?.subject || {}),
+ ...(outputDiagnostic?.evidence || {}),
+ supportedFixes: outputDiagnostic?.supportedFixes || ['restore safe output paths and retry'],
+ },
+ });
+ return;
+ }
+
commitComparePair({ htmlCandidate, receiptCandidate, outputPath, receiptPath, stagingDirectory });
if (options.json) console.log(JSON.stringify(finalReceipt, null, 2));
else {
@@ -680,6 +750,7 @@ function engineeringProfileFromArtifact(artifact) {
}
async function commandDeliver(args) {
+ const { resolveOutputPath } = await import('../renderers/shared/output-path.mjs');
const qualityArgs = extractQualityArgs(args);
const repoArgs = extractRepoRootArgs(qualityArgs.rest);
const json = repoArgs.rest.includes('--json');
@@ -715,8 +786,34 @@ async function commandDeliver(args) {
const authoredOutput = typeof diagram?.meta?.output === 'string' && diagram.meta.output
? diagram.meta.output
- : `${type}.html`;
- const outputPath = path.resolve(requestedOutput || authoredOutput);
+ : undefined;
+ let outputPath;
+ try {
+ ({ outputPath } = resolveOutputPath({
+ requestedOutput,
+ authoredOutput,
+ defaultOutput: `${type}.html`,
+ inputPaths: [inputPath],
+ }));
+ } catch (error) {
+ const attemptedOutput = path.resolve(requestedOutput || authoredOutput || `${type}.html`);
+ reportDeliveryFailure({
+ json,
+ stage: 'prepare',
+ type,
+ input: inputPath,
+ output: attemptedOutput,
+ error: error.message,
+ diagnostics: error.archifyDiagnostics || [diagnostic({
+ code: 'output/path-resolution',
+ message: error.message,
+ subject: { output: attemptedOutput },
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}) },
+ supportedFixes: ['choose a safe output path and retry'],
+ })],
+ });
+ return;
+ }
const outputDirectory = path.dirname(outputPath);
try {
fs.mkdirSync(outputDirectory, { recursive: true });
@@ -934,6 +1031,32 @@ async function commandDeliver(args) {
} : {}),
};
+ try {
+ resolveOutputPath({
+ requestedOutput,
+ authoredOutput,
+ defaultOutput: `${type}.html`,
+ inputPaths: [inputPath],
+ });
+ } catch (error) {
+ reportDeliveryFailure({
+ json,
+ stage: 'commit',
+ type,
+ input: inputPath,
+ output: outputPath,
+ error: error.message,
+ diagnostics: error.archifyDiagnostics || [diagnostic({
+ code: 'output/path-resolution',
+ message: error.message,
+ subject: { output: outputPath },
+ evidence: { ...(error?.code ? { systemCode: error.code } : {}) },
+ supportedFixes: ['restore a safe output path and retry'],
+ })],
+ });
+ return;
+ }
+
try {
fs.renameSync(candidatePath, outputPath);
} catch (error) {
@@ -1068,6 +1191,13 @@ async function commandDoctor() {
missing: fs.existsSync(previewRuntime) ? 0 : 1,
});
+ const outputPathRuntime = path.join(skillRoot, 'renderers/shared/output-path.mjs');
+ checks.push({
+ label: 'Output path safety runtime',
+ ok: fs.existsSync(outputPathRuntime),
+ missing: fs.existsSync(outputPathRuntime) ? 0 : 1,
+ });
+
const scenarioGuide = path.join(skillRoot, 'recipes/scenarios.mjs');
checks.push({
label: 'Scenario recipe guide',
diff --git a/archify/bin/preview.mjs b/archify/bin/preview.mjs
index 0a112018..449383f8 100644
--- a/archify/bin/preview.mjs
+++ b/archify/bin/preview.mjs
@@ -6,6 +6,7 @@ import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { openLoopbackUrl } from './open-artifact.mjs';
+import { resolveOutputPath } from '../renderers/shared/output-path.mjs';
const here = path.dirname(fileURLToPath(import.meta.url));
const cliPath = path.join(here, 'archify.mjs');
@@ -29,33 +30,17 @@ function sourceDigest(inputPath) {
}
}
-function canonicalFuturePath(targetPath) {
- let current = path.resolve(targetPath);
- const missingSegments = [];
- while (true) {
- try {
- return path.join(fs.realpathSync(current), ...missingSegments.reverse());
- } catch {
- const parent = path.dirname(current);
- if (parent === current) return path.resolve(targetPath);
- missingSegments.push(path.basename(current));
- current = parent;
- }
- }
-}
-
-function initialOutputPath(type, inputPath, requestedOutput) {
- if (requestedOutput) return path.resolve(requestedOutput);
+function initialAuthoredOutput(inputPath) {
try {
const source = JSON.parse(fs.readFileSync(inputPath, 'utf8'));
if (typeof source?.meta?.output === 'string' && source.meta.output) {
- return path.resolve(source.meta.output);
+ return source.meta.output;
}
} catch {
// An invalid initial source still gets a status shell. Its output target is
// fixed to the same fallback that `deliver` would use after repair.
}
- return path.resolve(`${type}.html`);
+ return undefined;
}
function previewPage() {
@@ -200,10 +185,15 @@ export async function startPreview(options) {
throw new Error(`Unknown quality profile "${options.quality}".`);
}
const inputPath = path.resolve(options.input);
- const outputPath = initialOutputPath(type, inputPath, options.output);
- if (canonicalFuturePath(inputPath) === canonicalFuturePath(outputPath)) {
- throw new Error('Preview output must not replace its JSON input.');
- }
+ const outputRequest = {
+ requestedOutput: options.output,
+ authoredOutput: initialAuthoredOutput(inputPath),
+ defaultOutput: `${type}.html`,
+ inputPaths: [inputPath],
+ inputDescription: 'its JSON input',
+ cwd: options.cwd || process.cwd(),
+ };
+ const { outputPath } = resolveOutputPath(outputRequest);
const outputDirectory = path.dirname(outputPath);
const debounceMs = Number.isFinite(options.debounceMs) ? options.debounceMs : defaultDebounceMs;
const pollMs = Number.isFinite(options.pollMs) ? options.pollMs : defaultPollMs;
@@ -457,9 +447,7 @@ export async function startPreview(options) {
if (digest !== receipt?.artifact?.sha256) {
throw new Error('Verified candidate bytes do not match the delivery receipt.');
}
- if (canonicalFuturePath(inputPath) === canonicalFuturePath(outputPath)) {
- throw new Error('Preview output resolved to its JSON input before commit.');
- }
+ resolveOutputPath(outputRequest);
const sameArtifact = state.lastVerified?.sha256 === digest;
let outputMatches = false;
if (sameArtifact) {
diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.html
index 9daab182..b585c2fd 100644
--- a/archify/examples/dataflow-product-analytics.html
+++ b/archify/examples/dataflow-product-analytics.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Product Analytics Data Flow Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.html
index fc75e0b4..7a7580bc 100644
--- a/archify/examples/lifecycle-agent-run.html
+++ b/archify/examples/lifecycle-agent-run.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Agent Run Lifecycle Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.html
index 7eb5ad37..d68ad688 100644
--- a/archify/examples/sequence-cache-miss-request.html
+++ b/archify/examples/sequence-cache-miss-request.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Cache Miss Request Sequence Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.html
index 3aea3786..6118f90a 100644
--- a/archify/examples/web-app-rendered.html
+++ b/archify/examples/web-app-rendered.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Sample Web App Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.html
index f2be2f00..35c7c1a1 100644
--- a/archify/examples/workflow-agent-tool-call-rendered.html
+++ b/archify/examples/workflow-agent-tool-call-rendered.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Agent Tool Call Workflow Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/archify/package-lock.json b/archify/package-lock.json
index 45502fb0..f81be57f 100644
--- a/archify/package-lock.json
+++ b/archify/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "archify",
- "version": "2.12.0",
+ "version": "2.13.0-dev.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "archify",
- "version": "2.12.0",
+ "version": "2.13.0-dev.0",
"license": "MIT",
"bin": {
"archify": "bin/archify.mjs"
diff --git a/archify/package.json b/archify/package.json
index b4842f0c..eb70519f 100644
--- a/archify/package.json
+++ b/archify/package.json
@@ -1,6 +1,6 @@
{
"name": "archify",
- "version": "2.12.0",
+ "version": "2.13.0-dev.0",
"private": true,
"type": "module",
"description": "JSON-IR diagram renderers (architecture / workflow / sequence / dataflow / lifecycle).",
@@ -14,12 +14,13 @@
"scripts": {
"generate:validators": "node scripts/generate-validators.mjs",
"check:validators": "node scripts/generate-validators.mjs --check",
+ "check:release-identity": "node ../scripts/check-release-identity.mjs",
"build:gallery": "node ../scripts/build-gallery.mjs ../docs",
"build:guide": "node ../scripts/build-guide.mjs ../docs/guide.html",
"build:start": "node ../scripts/build-start.mjs ../docs/start.html",
"build:readme-showcase": "node ../scripts/build-readme-showcase.mjs",
"test:webm": "node test/webm-artifact.smoke.mjs",
- "test": "npm run check:validators && node test/golden.mjs && node ../scripts/run-tests.mjs",
+ "test": "npm run check:validators && npm run check:release-identity && node test/golden.mjs && node ../scripts/run-tests.mjs",
"render:examples": "node scripts/render-examples.mjs ../examples"
},
"devDependencies": {
diff --git a/archify/renderers/shared/cli.mjs b/archify/renderers/shared/cli.mjs
index 3b09e0b2..1a348615 100644
--- a/archify/renderers/shared/cli.mjs
+++ b/archify/renderers/shared/cli.mjs
@@ -5,9 +5,12 @@ import { validateSchema } from './validator.mjs';
import { verifyRepositoryEvidence } from './repository-evidence.mjs';
import { installRendererDiagnosticBoundary, throwDiagnosticProblems } from './diagnostics.mjs';
import { validateEngineeringProfile } from './engineering-profiles.mjs';
+import { resolveOutputPath } from './output-path.mjs';
installRendererDiagnosticBoundary();
+const outputPathGuards = new Map();
+
// Common CLI head: node render-<type>.mjs [input.json] [output.html]
export function loadDiagram({ rendererDir, diagramType, defaultExample, argv = process.argv }) {
const skillRoot = path.resolve(rendererDir, '../..');
@@ -21,7 +24,15 @@ export function loadDiagram({ rendererDir, diagramType, defaultExample, argv = p
const template = fs.readFileSync(path.join(skillRoot, 'assets/template.html'), 'utf8');
// Optional chaining: in degraded mode (no ajv) malformed input must still
// reach the renderer's friendly layout checks instead of crashing here.
- const outPath = path.resolve(process.cwd(), argv[3] || diagram.meta?.output || `${diagramType}.html`);
+ const outputRequest = {
+ requestedOutput: argv[3],
+ authoredOutput: diagram.meta?.output,
+ defaultOutput: `${diagramType}.html`,
+ inputPaths: [inputPath],
+ cwd: process.cwd(),
+ };
+ const { outputPath: outPath } = resolveOutputPath(outputRequest);
+ outputPathGuards.set(outPath, outputRequest);
return { diagram, template, outPath, sourceEvidence };
}
@@ -32,6 +43,8 @@ const START_TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow',
// belongs in canonical SVG exports or on paper.
export function writeDiagram({ outPath, template, diagramType, meta, footerLabel, svg, cards, sourceEvidence = null }) {
if (!START_TYPES.has(diagramType)) throw new Error(`writeDiagram: unknown diagram type ${JSON.stringify(diagramType)}`);
+ const outputGuard = outputPathGuards.get(outPath);
+ if (outputGuard) resolveOutputPath(outputGuard);
fs.mkdirSync(path.dirname(outPath), { recursive: true });
const guidedHint = Array.isArray(meta.views) && meta.views.length
? ' &bull; <kbd>[</kbd>/<kbd>]</kbd> views &bull; <kbd>P</kbd> play story'
@@ -47,6 +60,7 @@ export function writeDiagram({ outPath, template, diagramType, meta, footerLabel
guidedViews: meta.views || [],
sourceEvidence,
}));
+ outputPathGuards.delete(outPath);
console.log(outPath);
}
diff --git a/archify/renderers/shared/output-path.mjs b/archify/renderers/shared/output-path.mjs
new file mode 100644
index 00000000..ca911965
--- /dev/null
+++ b/archify/renderers/shared/output-path.mjs
@@ -0,0 +1,321 @@
+import fs from 'node:fs';
+import path from 'node:path';
+
+const MAX_SYMLINK_DEPTH = 64;
+const directorySemanticsCache = new Map();
+let semanticsProbeSequence = 0;
+
+function splitAbsolute(absolutePath) {
+ const root = path.parse(absolutePath).root;
+ return {
+ root,
+ segments: absolutePath.slice(root.length).split(path.sep).filter(Boolean),
+ };
+}
+
+function canonicalize(targetPath, depth) {
+ const absolutePath = path.resolve(targetPath);
+ const { root, segments } = splitAbsolute(absolutePath);
+ let current = root;
+
+ for (let index = 0; index < segments.length; index += 1) {
+ const candidate = path.join(current, segments[index]);
+ let stat;
+ try {
+ stat = fs.lstatSync(candidate);
+ } catch (error) {
+ if (error.code === 'ENOENT' || error.code === 'ENOTDIR') {
+ return path.resolve(current, ...segments.slice(index));
+ }
+ throw error;
+ }
+
+ if (stat.isSymbolicLink()) {
+ if (depth >= MAX_SYMLINK_DEPTH) {
+ const error = new Error(`Could not resolve path because a symbolic-link cycle includes "${candidate}".`);
+ error.code = 'ELOOP';
+ error.path = candidate;
+ throw error;
+ }
+ const link = fs.readlinkSync(candidate);
+ const linkTarget = path.isAbsolute(link) ? link : path.resolve(path.dirname(candidate), link);
+ return canonicalize(path.join(linkTarget, ...segments.slice(index + 1)), depth + 1);
+ }
+
+ current = fs.realpathSync.native(candidate);
+ }
+
+ return path.normalize(current);
+}
+
+export function canonicalFuturePath(targetPath) {
+ try {
+ return canonicalize(targetPath, 0);
+ } catch (error) {
+ if (error?.code !== 'ELOOP') throw error;
+ const output = path.resolve(targetPath);
+ throw new OutputPathError(`Output path contains a symbolic-link cycle: "${output}".`, {
+ code: 'output/symlink-cycle',
+ message: 'Output path could not be resolved because it contains a symbolic-link cycle.',
+ subject: { output },
+ evidence: {
+ systemCode: 'ELOOP',
+ ...(error.path ? { cycleAt: path.resolve(error.path) } : {}),
+ },
+ supportedFixes: ['remove the symbolic-link cycle or choose an output path outside it'],
+ });
+ }
+}
+
+function hasFileIdentity(stat) {
+ return stat.ino !== 0 && stat.ino !== 0n;
+}
+
+function sameFileIdentity(left, right) {
+ return hasFileIdentity(left)
+ && hasFileIdentity(right)
+ && left.dev === right.dev
+ && left.ino === right.ino;
+}
+
+function nearestExistingDirectory(targetPath) {
+ let directory = path.dirname(targetPath);
+ while (true) {
+ try {
+ const stat = fs.statSync(directory);
+ if (stat.isDirectory()) {
+ return {
+ path: fs.realpathSync.native(directory),
+ stat,
+ };
+ }
+ } catch (error) {
+ if (error.code !== 'ENOENT' && error.code !== 'ENOTDIR') return null;
+ }
+ const parent = path.dirname(directory);
+ if (parent === directory) return null;
+ directory = parent;
+ }
+}
+
+function directoryIdentityKey(directory) {
+ if (!hasFileIdentity(directory.stat)) return null;
+ return `${directory.stat.dev}:${directory.stat.ino}`;
+}
+
+function probeNamesAlias(directoryPath, authoredName, lookupName) {
+ let fileDescriptor;
+ let created = false;
+ let result = null;
+ let cleaned = true;
+ const authoredPath = path.join(directoryPath, authoredName);
+ const lookupPath = path.join(directoryPath, lookupName);
+ try {
+ fileDescriptor = fs.openSync(authoredPath, 'wx', 0o600);
+ created = true;
+ fs.closeSync(fileDescriptor);
+ fileDescriptor = undefined;
+
+ let authored;
+ let lookup;
+ try {
+ authored = fs.statSync(authoredPath);
+ lookup = fs.statSync(lookupPath);
+ } catch (error) {
+ if (error.code === 'ENOENT') result = false;
+ }
+ if (authored && lookup) {
+ if (sameFileIdentity(authored, lookup)) {
+ result = true;
+ } else {
+ try {
+ result = fs.realpathSync.native(authoredPath) === fs.realpathSync.native(lookupPath);
+ } catch {
+ result = null;
+ }
+ }
+ }
+ } catch {
+ result = null;
+ } finally {
+ if (fileDescriptor !== undefined) {
+ try {
+ fs.closeSync(fileDescriptor);
+ } catch {
+ cleaned = false;
+ }
+ }
+ if (created) {
+ try {
+ fs.unlinkSync(authoredPath);
+ } catch {
+ cleaned = false;
+ }
+ }
+ }
+ return cleaned ? result : null;
+}
+
+function probeDirectorySemantics(directory) {
+ const cacheKey = directoryIdentityKey(directory);
+ if (cacheKey && directorySemanticsCache.has(cacheKey)) {
+ return directorySemanticsCache.get(cacheKey);
+ }
+
+ semanticsProbeSequence += 1;
+ const suffix = `${process.pid}-${Date.now().toString(36)}-${semanticsProbeSequence}`;
+ const caseAuthored = `.archify-Case-Probe-${suffix}`;
+ const normalizationAuthored = `.archify-norm-\u00e9-probe-${suffix}`;
+ const semantics = {
+ caseInsensitive: probeNamesAlias(
+ directory.path,
+ caseAuthored,
+ caseAuthored.toLowerCase(),
+ ),
+ normalizationInsensitive: probeNamesAlias(
+ directory.path,
+ normalizationAuthored,
+ normalizationAuthored.normalize('NFD'),
+ ),
+ };
+ if (
+ cacheKey
+ && semantics.caseInsensitive !== null
+ && semantics.normalizationInsensitive !== null
+ ) {
+ directorySemanticsCache.set(cacheKey, semantics);
+ }
+ return semantics;
+}
+
+function sameDirectory(left, right) {
+ return left.path === right.path || sameFileIdentity(left.stat, right.stat);
+}
+
+function futurePathsAlias(leftPath, rightPath) {
+ const left = canonicalFuturePath(leftPath);
+ const right = canonicalFuturePath(rightPath);
+ if (left === right) return true;
+
+ const leftDirectory = nearestExistingDirectory(left);
+ const rightDirectory = nearestExistingDirectory(right);
+ if (!leftDirectory || !rightDirectory || !sameDirectory(leftDirectory, rightDirectory)) {
+ return false;
+ }
+
+ const semantics = probeDirectorySemantics(leftDirectory);
+ let comparableLeft = path.relative(leftDirectory.path, left);
+ let comparableRight = path.relative(rightDirectory.path, right);
+ if (semantics.normalizationInsensitive !== false) {
+ comparableLeft = comparableLeft.normalize('NFC');
+ comparableRight = comparableRight.normalize('NFC');
+ }
+ if (semantics.caseInsensitive !== false) {
+ comparableLeft = comparableLeft.toLowerCase();
+ comparableRight = comparableRight.toLowerCase();
+ }
+ return comparableLeft === comparableRight;
+}
+
+export function pathsAlias(leftPath, rightPath) {
+ if (futurePathsAlias(leftPath, rightPath)) return true;
+ try {
+ const left = fs.statSync(leftPath);
+ const right = fs.statSync(rightPath);
+ return sameFileIdentity(left, right);
+ } catch {
+ return false;
+ }
+}
+
+function pathIsInside(directoryPath, targetPath) {
+ const relative = path.relative(canonicalFuturePath(directoryPath), canonicalFuturePath(targetPath));
+ return relative === '' || (!path.isAbsolute(relative) && relative !== '..' && !relative.startsWith(`..${path.sep}`));
+}
+
+export class OutputPathError extends Error {
+ constructor(message, diagnostic) {
+ super(message);
+ this.name = 'OutputPathError';
+ this.archifyDiagnostics = [{
+ severity: 'error',
+ subject: {},
+ evidence: {},
+ supportedFixes: [],
+ ...diagnostic,
+ }];
+ }
+}
+
+export function resolveOutputPath({
+ requestedOutput,
+ authoredOutput,
+ defaultOutput,
+ inputPaths = [],
+ inputDescription = 'an input',
+ otherOutputPaths = [],
+ cwd = process.cwd(),
+}) {
+ const rawOutput = requestedOutput || authoredOutput || defaultOutput;
+ const source = requestedOutput ? 'cli' : (authoredOutput ? 'meta' : 'default');
+ if (
+ source === 'meta'
+ && (path.isAbsolute(rawOutput) || path.posix.isAbsolute(rawOutput) || path.win32.isAbsolute(rawOutput))
+ ) {
+ throw new OutputPathError('meta.output must be a relative path.', {
+ code: 'output/meta-absolute',
+ message: 'meta.output must be a relative path resolved from the current working directory.',
+ subject: { output: rawOutput },
+ supportedFixes: ['set meta.output to a relative .html path inside the current working directory'],
+ });
+ }
+ if (source === 'meta' && path.extname(rawOutput).toLowerCase() !== '.html') {
+ throw new OutputPathError('meta.output must target an .html file.', {
+ code: 'output/meta-extension',
+ message: 'meta.output must target an .html file.',
+ subject: { output: rawOutput },
+ supportedFixes: ['change meta.output to a path ending in .html'],
+ });
+ }
+ const outputPath = path.resolve(cwd, rawOutput);
+ if (source === 'meta' && path.extname(canonicalFuturePath(outputPath)).toLowerCase() !== '.html') {
+ throw new OutputPathError('meta.output must resolve to an .html file.', {
+ code: 'output/meta-resolved-extension',
+ message: 'meta.output must resolve to an .html file after symbolic links are followed.',
+ subject: { output: rawOutput },
+ supportedFixes: ['remove the symbolic-link alias or point it to an .html target inside the current working directory'],
+ });
+ }
+ if (source === 'meta' && !pathIsInside(cwd, outputPath)) {
+ throw new OutputPathError('meta.output must stay inside the current working directory.', {
+ code: 'output/meta-outside-cwd',
+ message: 'meta.output must stay inside the current working directory after symbolic links are resolved.',
+ subject: { output: rawOutput, cwd: path.resolve(cwd) },
+ supportedFixes: ['set meta.output to a relative .html path inside the current working directory'],
+ });
+ }
+
+ for (const inputPath of inputPaths) {
+ if (!pathsAlias(outputPath, inputPath)) continue;
+ throw new OutputPathError(`Output must not replace ${inputDescription}.`, {
+ code: 'output/input-alias',
+ message: `Output must not replace ${inputDescription}, including through a symbolic-link or future-path alias.`,
+ subject: { output: outputPath, input: path.resolve(inputPath) },
+ supportedFixes: ['choose an output path that is distinct from every input path'],
+ });
+ }
+ for (const otherOutputPath of otherOutputPaths) {
+ if (!pathsAlias(outputPath, otherOutputPath)) continue;
+ throw new OutputPathError('Output targets must use distinct paths.', {
+ code: 'output/target-alias',
+ message: 'Output targets must use distinct paths, including symbolic-link and future-path aliases.',
+ subject: { output: outputPath, conflictingOutput: path.resolve(otherOutputPath) },
+ supportedFixes: ['choose distinct paths for every generated output'],
+ });
+ }
+
+ return {
+ outputPath,
+ source,
+ };
+}
diff --git a/archify/test/cli.test.mjs b/archify/test/cli.test.mjs
index 04e464d3..a76ae566 100644
--- a/archify/test/cli.test.mjs
+++ b/archify/test/cli.test.mjs
@@ -29,8 +29,8 @@ function makeFakeOpeners(name, { exitCode = 0 } = {}) {
const log = path.join(bin, 'open-log.json');
fs.mkdirSync(bin, { recursive: true });
const source = `#!/usr/bin/env node
-import fs from 'node:fs';
-const target = process.argv.at(-1);
+const fs = require('node:fs');
+const target = process.argv[process.argv.length - 1];
fs.writeFileSync(process.env.ARCHIFY_TEST_OPEN_LOG, JSON.stringify({
argv: process.argv.slice(2),
target,
diff --git a/archify/test/golden.mjs b/archify/test/golden.mjs
index 28245f48..bbdae366 100644
--- a/archify/test/golden.mjs
+++ b/archify/test/golden.mjs
@@ -39,6 +39,37 @@ function normalizeNewlines(text) {
return text.replace(/\r\n?/g, '\n');
}
+function shieldsBadgeMessages(source, label) {
+ const marker = `/badge/${label}-`;
+ const messages = [];
+ let searchFrom = 0;
+ while (searchFrom < source.length) {
+ const start = source.indexOf(marker, searchFrom);
+ if (start === -1) break;
+ let cursor = start + marker.length;
+ let message = '';
+ while (cursor < source.length) {
+ const character = source[cursor];
+ const next = source[cursor + 1];
+ if (character === '-' && next === '-') {
+ message += '-';
+ cursor += 2;
+ } else if (character === '_' && next === '_') {
+ message += '_';
+ cursor += 2;
+ } else if (character === '-') {
+ break;
+ } else {
+ message += character;
+ cursor += 1;
+ }
+ }
+ try { messages.push(decodeURIComponent(message)); } catch { messages.push(message); }
+ searchFrom = cursor + 1;
+ }
+ return messages;
+}
+
// ---------------------------------------------------------------------------
console.log('golden renders (renderer output must match checked-in examples)');
@@ -147,19 +178,22 @@ check('package-lock.json version matches package.json',
const skillMd = fs.readFileSync(path.join(skillRoot, 'SKILL.md'), 'utf8');
const skillVersion = (skillMd.match(/^\s*version:\s*"([^"]+)"/m) || [])[1];
+const packageMajorMinor = pkg.version.match(/^(\d+\.\d+)\./)?.[1];
check('SKILL.md metadata version matches package.json major.minor',
- !!skillVersion && pkg.version.startsWith(skillVersion),
+ !!packageMajorMinor && skillVersion === packageMajorMinor,
`SKILL.md says ${skillVersion}, package.json says ${pkg.version}`);
for (const readmeName of ['README.md', 'README_EN.md', 'README_ZH.md']) {
const readme = fs.readFileSync(path.join(repoRoot, readmeName), 'utf8');
+ const badgeVersions = shieldsBadgeMessages(readme, 'version');
check(`${readmeName} badge matches package.json version`,
- readme.includes(`/badge/version-${pkg.version}-`),
- `${readmeName} does not advertise ${pkg.version}`);
+ badgeVersions.length > 0 && badgeVersions.every((version) => version === pkg.version),
+ `${readmeName} badge says ${[...new Set(badgeVersions)].join(', ') || '(missing)'} instead of ${pkg.version}`);
}
const landingPage = fs.readFileSync(path.join(repoRoot, 'docs/index.html'), 'utf8');
-const landingVersions = [...landingPage.matchAll(/\bv\d+\.\d+\.\d+\b/g)].map((m) => m[0]);
+const landingVersions = [...landingPage.matchAll(/\bv\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?\b/g)]
+ .map((match) => match[0]);
check('GitHub Pages version labels match package.json',
landingVersions.length > 0 && landingVersions.every((v) => v === `v${pkg.version}`),
`landing page says ${[...new Set(landingVersions)].join(', ') || '(no version)'}`);
diff --git a/archify/test/output-path.test.mjs b/archify/test/output-path.test.mjs
new file mode 100644
index 00000000..e3b1ae98
--- /dev/null
+++ b/archify/test/output-path.test.mjs
@@ -0,0 +1,585 @@
+import { spawn, spawnSync } from 'node:child_process';
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+import test from 'node:test';
+import assert from 'node:assert/strict';
+import { startPreview } from '../bin/preview.mjs';
+import { loadDiagram, writeDiagram } from '../renderers/shared/cli.mjs';
+import { pathsAlias } from '../renderers/shared/output-path.mjs';
+
+const here = path.dirname(fileURLToPath(import.meta.url));
+const skillRoot = path.resolve(here, '..');
+const cli = path.join(skillRoot, 'bin/archify.mjs');
+const workflowFixture = path.join(skillRoot, 'examples/agent-tool-call.workflow.json');
+const baseFixture = path.join(skillRoot, 'examples/checkout-platform.base.architecture.json');
+const headFixture = path.join(skillRoot, 'examples/checkout-platform.head.architecture.json');
+
+function run(args, cwd) {
+ return spawnSync(process.execPath, [cli, ...args], {
+ cwd,
+ encoding: 'utf8',
+ });
+}
+
+function copyInstalledSkill(target) {
+ fs.cpSync(skillRoot, target, {
+ recursive: true,
+ filter(source) {
+ const relative = path.relative(skillRoot, source);
+ return relative !== 'node_modules'
+ && !relative.startsWith(`node_modules${path.sep}`)
+ && relative !== 'test'
+ && !relative.startsWith(`test${path.sep}`);
+ },
+ });
+}
+
+function directoryAliasesNames(directory, authoredName, lookupName) {
+ const authoredPath = path.join(directory, authoredName);
+ const lookupPath = path.join(directory, lookupName);
+ fs.writeFileSync(authoredPath, 'filesystem semantics probe', { flag: 'wx' });
+ try {
+ let authored;
+ let lookup;
+ try {
+ authored = fs.statSync(authoredPath);
+ lookup = fs.statSync(lookupPath);
+ } catch (error) {
+ if (error.code === 'ENOENT') return false;
+ throw error;
+ }
+ return authored.dev === lookup.dev && authored.ino === lookup.ino;
+ } finally {
+ fs.unlinkSync(authoredPath);
+ }
+}
+
+test('future-path aliases follow the containing directory case and Unicode semantics', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-semantics-'));
+ const caseInsensitive = directoryAliasesNames(cwd, 'ArchifyCaseProbe', 'archifycaseprobe');
+ const normalizationInsensitive = directoryAliasesNames(
+ cwd,
+ 'archify-norm-\u00e9-probe',
+ 'archify-norm-e\u0301-probe',
+ );
+
+ assert.equal(
+ pathsAlias(path.join(cwd, 'Future.HTML'), path.join(cwd, 'future.html')),
+ caseInsensitive,
+ );
+ assert.equal(
+ pathsAlias(path.join(cwd, 'Caf\u00e9.html'), path.join(cwd, 'Cafe\u0301.html')),
+ normalizationInsensitive,
+ );
+});
+
+test('compare rejects case-only future targets before input work when the directory aliases case', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-compare-case-'));
+ const caseInsensitive = directoryAliasesNames(cwd, 'ArchifyCaseProbe', 'archifycaseprobe');
+ const output = path.join(cwd, 'Future.HTML');
+ const receiptPath = path.join(cwd, 'future.html');
+
+ const result = run([
+ 'compare', 'architecture',
+ path.join(cwd, 'missing-base.json'),
+ path.join(cwd, 'missing-head.json'),
+ output,
+ '--receipt', receiptPath,
+ '--json',
+ ], cwd);
+
+ assert.equal(result.status, 1);
+ const receipt = JSON.parse(result.stdout);
+ assert.equal(
+ receipt.diagnostics[0].code,
+ caseInsensitive ? 'output/target-alias' : 'delta/base-input',
+ );
+ assert.equal(receipt.stage, caseInsensitive ? 'prepare' : 'input');
+});
+
+test('render reports an output symlink cycle as a structured output diagnostic', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-cycle-'));
+ const input = path.join(cwd, 'diagram.workflow.json');
+ const output = path.join(cwd, 'cycle-a.html');
+ const otherLink = path.join(cwd, 'cycle-b.html');
+ fs.copyFileSync(workflowFixture, input);
+ fs.symlinkSync(otherLink, output, 'file');
+ fs.symlinkSync(output, otherLink, 'file');
+
+ const result = spawnSync(
+ process.execPath,
+ [path.join(skillRoot, 'renderers/workflow/render-workflow.mjs'), input, output],
+ {
+ cwd,
+ encoding: 'utf8',
+ env: { ...process.env, ARCHIFY_DIAGNOSTIC_FORMAT: 'json' },
+ },
+ );
+
+ assert.equal(result.status, 1);
+ const failure = JSON.parse(result.stderr);
+ assert.equal(failure.diagnostics[0].code, 'output/symlink-cycle');
+ assert.equal(failure.diagnostics[0].subject.output, output);
+ assert.ok(failure.diagnostics[0].supportedFixes.length > 0);
+});
+
+test('render rejects an output symlink that aliases its JSON input', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-render-'));
+ const input = path.join(cwd, 'diagram.workflow.json');
+ const output = path.join(cwd, 'diagram.html');
+ const source = fs.readFileSync(workflowFixture);
+ fs.writeFileSync(input, source);
+ fs.symlinkSync(input, output, 'file');
+
+ const result = run(['render', 'workflow', input, output], cwd);
+
+ assert.equal(result.status, 1);
+ assert.match(result.stderr, /output must not replace an input/i);
+ assert.deepEqual(fs.readFileSync(input), source);
+});
+
+test('render rejects an existing output hard link to its JSON input', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-render-hardlink-'));
+ const input = path.join(cwd, 'diagram.workflow.json');
+ const output = path.join(cwd, 'diagram.html');
+ const source = fs.readFileSync(workflowFixture);
+ fs.writeFileSync(input, source);
+ fs.linkSync(input, output);
+
+ const result = run(['render', 'workflow', input, output], cwd);
+
+ assert.equal(result.status, 1);
+ assert.match(result.stderr, /output must not replace an input/i);
+ assert.deepEqual(fs.readFileSync(input), source);
+});
+
+test('render rejects an absolute meta.output when no CLI output is provided', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-meta-absolute-'));
+ const input = path.join(cwd, 'diagram.workflow.json');
+ const output = path.join(cwd, 'authored.html');
+ const source = JSON.parse(fs.readFileSync(workflowFixture, 'utf8'));
+ source.meta.output = output;
+ fs.writeFileSync(input, JSON.stringify(source));
+
+ const result = run(['render', 'workflow', input], cwd);
+
+ assert.equal(result.status, 1);
+ assert.match(result.stderr, /meta\.output must be a relative path/i);
+ assert.equal(fs.existsSync(output), false);
+});
+
+test('render rejects a relative meta.output that escapes the working directory', () => {
+ const parent = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-meta-parent-'));
+ const cwd = path.join(parent, 'work');
+ fs.mkdirSync(cwd);
+ const input = path.join(cwd, 'diagram.workflow.json');
+ const output = path.join(parent, 'escaped.html');
+ const source = JSON.parse(fs.readFileSync(workflowFixture, 'utf8'));
+ source.meta.output = '../escaped.html';
+ fs.writeFileSync(input, JSON.stringify(source));
+
+ const result = run(['render', 'workflow', input], cwd);
+
+ assert.equal(result.status, 1);
+ assert.match(result.stderr, /meta\.output must stay inside the current working directory/i);
+ assert.equal(fs.existsSync(output), false);
+});
+
+test('render rejects a meta.output that escapes through a directory symlink', () => {
+ const parent = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-meta-link-'));
+ const cwd = path.join(parent, 'work');
+ const outside = path.join(parent, 'outside');
+ fs.mkdirSync(cwd);
+ fs.mkdirSync(outside);
+ fs.symlinkSync(outside, path.join(cwd, 'linked'), 'dir');
+ const input = path.join(cwd, 'diagram.workflow.json');
+ const output = path.join(outside, 'authored.html');
+ const source = JSON.parse(fs.readFileSync(workflowFixture, 'utf8'));
+ source.meta.output = 'linked/authored.html';
+ fs.writeFileSync(input, JSON.stringify(source));
+
+ const result = run(['render', 'workflow', input], cwd);
+
+ assert.equal(result.status, 1);
+ assert.match(result.stderr, /meta\.output must stay inside the current working directory/i);
+ assert.equal(fs.existsSync(output), false);
+});
+
+test('render requires a meta.output target with an html extension', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-meta-extension-'));
+ const input = path.join(cwd, 'diagram.workflow.json');
+ const output = path.join(cwd, 'authored.json');
+ const source = JSON.parse(fs.readFileSync(workflowFixture, 'utf8'));
+ source.meta.output = 'authored.json';
+ fs.writeFileSync(input, JSON.stringify(source));
+
+ const result = run(['render', 'workflow', input], cwd);
+
+ assert.equal(result.status, 1);
+ assert.match(result.stderr, /meta\.output must target an? \.html file/i);
+ assert.equal(fs.existsSync(output), false);
+});
+
+test('render rejects a meta.output symlink that resolves to a non-html target', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-meta-extension-link-'));
+ const input = path.join(cwd, 'diagram.workflow.json');
+ const target = path.join(cwd, 'authored.json');
+ const output = path.join(cwd, 'authored.html');
+ const source = JSON.parse(fs.readFileSync(workflowFixture, 'utf8'));
+ source.meta.output = 'authored.html';
+ fs.writeFileSync(input, JSON.stringify(source));
+ fs.writeFileSync(target, 'trusted target');
+ fs.symlinkSync(target, output, 'file');
+
+ const result = run(['render', 'workflow', input], cwd);
+
+ assert.equal(result.status, 1);
+ assert.match(result.stderr, /meta\.output must resolve to an? \.html file/i);
+ assert.equal(fs.readFileSync(target, 'utf8'), 'trusted target');
+});
+
+test('deliver rejects a future-path alias of its JSON input with a structured diagnostic', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-deliver-'));
+ const realDirectory = path.join(cwd, 'real');
+ const linkedDirectory = path.join(cwd, 'linked');
+ fs.mkdirSync(realDirectory);
+ fs.symlinkSync(realDirectory, linkedDirectory, 'dir');
+ const input = path.join(realDirectory, 'diagram.workflow.json');
+ const output = path.join(linkedDirectory, 'diagram.workflow.json');
+ const source = fs.readFileSync(workflowFixture);
+ fs.writeFileSync(input, source);
+
+ const result = run(['deliver', 'workflow', input, output, '--json'], cwd);
+
+ assert.equal(result.status, 1);
+ const receipt = JSON.parse(result.stdout);
+ assert.equal(receipt.stage, 'prepare');
+ assert.equal(receipt.diagnostics[0].code, 'output/input-alias');
+ assert.deepEqual(fs.readFileSync(input), source);
+});
+
+test('deliver rechecks aliases immediately before committing a verified candidate', { timeout: 10000 }, async () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-deliver-race-'));
+ const installedRoot = path.join(cwd, 'skill');
+ const installedBin = path.join(installedRoot, 'bin');
+ const installedShared = path.join(installedRoot, 'renderers/shared');
+ const installedRenderer = path.join(installedRoot, 'renderers/workflow');
+ const installedScripts = path.join(installedRoot, 'scripts');
+ fs.mkdirSync(installedBin, { recursive: true });
+ fs.mkdirSync(installedShared, { recursive: true });
+ fs.mkdirSync(installedRenderer, { recursive: true });
+ fs.mkdirSync(installedScripts, { recursive: true });
+ fs.copyFileSync(cli, path.join(installedBin, 'archify.mjs'));
+ fs.copyFileSync(
+ path.join(skillRoot, 'renderers/shared/output-path.mjs'),
+ path.join(installedShared, 'output-path.mjs'),
+ );
+ fs.writeFileSync(path.join(installedRenderer, 'render-workflow.mjs'), `
+import fs from 'node:fs';
+const [, output] = process.argv.slice(2);
+fs.writeFileSync(process.env.ARCHIFY_TEST_RENDER_STARTED, output);
+await new Promise((resolve) => setTimeout(resolve, 500));
+fs.writeFileSync(output, '<!doctype html><title>verified candidate</title><svg></svg>');
+`);
+ fs.writeFileSync(path.join(installedScripts, 'check-render-output.mjs'), `
+console.log(JSON.stringify({
+ ok: true,
+ checks: [{ name: 'single_svg', ok: true }],
+ composition: {
+ profile: 'showcase',
+ status: 'pass',
+ summary: { errors: 0, warnings: 0 }
+ }
+}));
+`);
+
+ const inputDirectory = path.join(cwd, 'input');
+ const initialOutputDirectory = path.join(cwd, 'safe-output');
+ const linkedDirectory = path.join(cwd, 'linked-output');
+ fs.mkdirSync(inputDirectory);
+ fs.mkdirSync(initialOutputDirectory);
+ fs.symlinkSync(initialOutputDirectory, linkedDirectory, 'dir');
+ const input = path.join(inputDirectory, 'diagram.json');
+ const output = path.join(linkedDirectory, 'diagram.json');
+ const source = Buffer.from('{"meta":{"title":"race input"}}');
+ fs.writeFileSync(input, source);
+ const marker = path.join(cwd, 'renderer-started');
+
+ const child = spawn(process.execPath, [
+ path.join(installedBin, 'archify.mjs'),
+ 'deliver', 'workflow', input, output, '--json',
+ ], {
+ cwd,
+ encoding: 'utf8',
+ env: { ...process.env, ARCHIFY_TEST_RENDER_STARTED: marker },
+ stdio: ['ignore', 'pipe', 'pipe'],
+ });
+ let stdout = '';
+ let stderr = '';
+ child.stdout.setEncoding('utf8');
+ child.stderr.setEncoding('utf8');
+ child.stdout.on('data', (chunk) => { stdout += chunk; });
+ child.stderr.on('data', (chunk) => { stderr += chunk; });
+
+ const started = Date.now();
+ while (!fs.existsSync(marker) && Date.now() - started < 3000) {
+ await new Promise((resolve) => setTimeout(resolve, 20));
+ }
+ assert.equal(fs.existsSync(marker), true, `renderer did not start; stderr=${stderr}`);
+ const candidatePath = fs.readFileSync(marker, 'utf8');
+ const candidateRelative = path.relative(linkedDirectory, candidatePath);
+ fs.mkdirSync(path.dirname(path.join(inputDirectory, candidateRelative)), { recursive: true });
+ fs.unlinkSync(linkedDirectory);
+ fs.symlinkSync(inputDirectory, linkedDirectory, 'dir');
+
+ const status = await new Promise((resolve) => child.once('close', resolve));
+
+ assert.equal(status, 1, stderr);
+ const receipt = JSON.parse(stdout);
+ assert.equal(receipt.stage, 'commit');
+ assert.equal(receipt.diagnostics[0].code, 'output/input-alias');
+ assert.deepEqual(fs.readFileSync(input), source);
+});
+
+test('compare rejects an artifact path that aliases either architecture input', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-compare-'));
+ const realDirectory = path.join(cwd, 'real');
+ const linkedDirectory = path.join(cwd, 'linked');
+ fs.mkdirSync(realDirectory);
+ fs.symlinkSync(realDirectory, linkedDirectory, 'dir');
+ const base = path.join(realDirectory, 'review.html');
+ const output = path.join(linkedDirectory, 'review.html');
+ const baseSource = fs.readFileSync(baseFixture);
+ fs.writeFileSync(base, baseSource);
+
+ const result = run(['compare', 'architecture', base, headFixture, output, '--json'], cwd);
+
+ assert.equal(result.status, 1);
+ const receipt = JSON.parse(result.stdout);
+ assert.equal(receipt.stage, 'prepare');
+ assert.equal(receipt.diagnostics[0].code, 'output/input-alias');
+ assert.deepEqual(fs.readFileSync(base), baseSource);
+});
+
+test('compare rejects a receipt path that aliases either architecture input', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-compare-receipt-'));
+ const base = path.join(cwd, 'base.json');
+ const output = path.join(cwd, 'delta.html');
+ const baseSource = fs.readFileSync(baseFixture);
+ fs.writeFileSync(base, baseSource);
+
+ const result = run([
+ 'compare', 'architecture', base, headFixture, output,
+ '--receipt', base, '--json',
+ ], cwd);
+
+ assert.equal(result.status, 1);
+ const receipt = JSON.parse(result.stdout);
+ assert.equal(receipt.stage, 'prepare');
+ assert.equal(receipt.diagnostics[0].code, 'output/input-alias');
+ assert.deepEqual(fs.readFileSync(base), baseSource);
+ assert.equal(fs.existsSync(output), false);
+});
+
+test('compare rejects a dangling receipt symlink to the future artifact path', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-compare-pair-'));
+ const output = path.join(cwd, 'delta.html');
+ const receiptPath = path.join(cwd, 'delta.receipt.json');
+ fs.symlinkSync(output, receiptPath, 'file');
+
+ const result = run([
+ 'compare', 'architecture', baseFixture, headFixture, output,
+ '--receipt', receiptPath, '--json',
+ ], cwd);
+
+ assert.equal(result.status, 1);
+ const receipt = JSON.parse(result.stdout);
+ assert.equal(receipt.stage, 'prepare');
+ assert.equal(receipt.diagnostics[0].code, 'output/target-alias');
+ assert.equal(fs.lstatSync(receiptPath).isSymbolicLink(), true);
+ assert.equal(fs.existsSync(output), false);
+});
+
+test('preview applies the meta.output relative-path boundary before starting a server', async () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-preview-meta-'));
+ const input = path.join(cwd, 'diagram.workflow.json');
+ const output = path.join(cwd, 'authored.html');
+ const source = JSON.parse(fs.readFileSync(workflowFixture, 'utf8'));
+ source.meta.output = output;
+ fs.writeFileSync(input, JSON.stringify(source));
+
+ const failure = await startPreview({
+ type: 'workflow',
+ input,
+ open: false,
+ watch: false,
+ cwd,
+ }).then(async (preview) => {
+ await preview.stop();
+ return null;
+ }, (error) => error);
+
+ assert.ok(failure instanceof Error);
+ assert.match(failure.message, /meta\.output must be a relative path/i);
+ assert.equal(fs.existsSync(output), false);
+});
+
+test('the shared renderer rechecks its guarded output immediately before writing', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-render-race-'));
+ const inputDirectory = path.join(cwd, 'input');
+ const initialOutputDirectory = path.join(cwd, 'safe-output');
+ const linkedDirectory = path.join(cwd, 'linked-output');
+ fs.mkdirSync(inputDirectory);
+ fs.mkdirSync(initialOutputDirectory);
+ fs.symlinkSync(initialOutputDirectory, linkedDirectory, 'dir');
+ const input = path.join(inputDirectory, 'diagram.workflow.json');
+ const output = path.join(linkedDirectory, 'diagram.workflow.json');
+ const source = fs.readFileSync(workflowFixture);
+ fs.writeFileSync(input, source);
+
+ const loaded = loadDiagram({
+ rendererDir: path.join(skillRoot, 'renderers/workflow'),
+ diagramType: 'workflow',
+ defaultExample: 'agent-tool-call.workflow.json',
+ argv: ['node', 'render-workflow.mjs', input, output],
+ });
+ fs.unlinkSync(linkedDirectory);
+ fs.symlinkSync(inputDirectory, linkedDirectory, 'dir');
+
+ assert.throws(
+ () => writeDiagram({
+ outPath: loaded.outPath,
+ template: loaded.template,
+ diagramType: 'workflow',
+ meta: loaded.diagram.meta,
+ footerLabel: 'Workflow',
+ svg: '<svg role="img"></svg>',
+ cards: [],
+ }),
+ /output must not replace an input/i,
+ );
+ assert.deepEqual(fs.readFileSync(input), source);
+});
+
+test('compare rechecks every target immediately before committing the artifact pair', { timeout: 10000 }, async () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-compare-race-'));
+ const installedRoot = path.join(cwd, 'skill');
+ const installedBin = path.join(installedRoot, 'bin');
+ const installedShared = path.join(installedRoot, 'renderers/shared');
+ const installedRenderer = path.join(installedRoot, 'renderers/architecture');
+ const installedScripts = path.join(installedRoot, 'scripts');
+ const installedDelta = path.join(installedRoot, 'delta');
+ for (const directory of [installedBin, installedShared, installedRenderer, installedScripts, installedDelta]) {
+ fs.mkdirSync(directory, { recursive: true });
+ }
+ fs.copyFileSync(cli, path.join(installedBin, 'archify.mjs'));
+ fs.copyFileSync(
+ path.join(skillRoot, 'renderers/shared/output-path.mjs'),
+ path.join(installedShared, 'output-path.mjs'),
+ );
+ fs.writeFileSync(path.join(installedRenderer, 'render-architecture.mjs'), `
+import fs from 'node:fs';
+import path from 'node:path';
+const [, output] = process.argv.slice(2);
+if (path.basename(output) === 'head.html') {
+ fs.writeFileSync(process.env.ARCHIFY_TEST_RENDER_STARTED, output);
+ await new Promise((resolve) => setTimeout(resolve, 500));
+}
+fs.writeFileSync(output, '<!doctype html><svg role="img"></svg>');
+`);
+ fs.writeFileSync(path.join(installedScripts, 'check-render-output.mjs'), `
+console.log(JSON.stringify({
+ ok: true,
+ checks: [{ name: 'single_svg', ok: true }],
+ composition: {
+ profile: 'showcase',
+ status: 'pass',
+ summary: { errors: 0, warnings: 0 }
+ }
+}));
+`);
+ fs.writeFileSync(path.join(installedDelta, 'architecture-delta.mjs'), `
+export class ArchitectureDeltaError extends Error {}
+export const annotateArchitectureSideSvg = (svg) => svg;
+export const buildDeltaSvg = () => '<svg role="img"></svg>';
+export const canonicalArchitecture = (value) => value;
+export const canonicalArchitectureJson = (value) => JSON.stringify(value);
+export const compareArchitecture = () => ({
+ command: 'compare',
+ base: {},
+ head: {},
+ completeness: 'complete',
+ proofLevel: 'authored'
+});
+export const extractArchitectureSvg = () => '<svg role="img"></svg>';
+export const extractArtifactCss = () => '';
+export const renderArchitectureDeltaHtml = () => '<!doctype html><svg role="img"></svg>';
+export const validateArchitectureDeltaHtml = () => ({ checksPassed: 1, checkCount: 1 });
+`);
+
+ const inputDirectory = path.join(cwd, 'input');
+ const initialOutputDirectory = path.join(cwd, 'safe-output');
+ const linkedDirectory = path.join(cwd, 'linked-output');
+ fs.mkdirSync(inputDirectory);
+ fs.mkdirSync(initialOutputDirectory);
+ fs.symlinkSync(initialOutputDirectory, linkedDirectory, 'dir');
+ const base = path.join(inputDirectory, 'diagram.json');
+ const head = path.join(cwd, 'head.json');
+ const output = path.join(linkedDirectory, 'diagram.json');
+ const source = Buffer.from('{"side":"base"}');
+ fs.writeFileSync(base, source);
+ fs.writeFileSync(head, '{"side":"head"}');
+ const marker = path.join(cwd, 'renderer-started');
+
+ const child = spawn(process.execPath, [
+ path.join(installedBin, 'archify.mjs'),
+ 'compare', 'architecture', base, head, output, '--json',
+ ], {
+ cwd,
+ encoding: 'utf8',
+ env: { ...process.env, ARCHIFY_TEST_RENDER_STARTED: marker },
+ stdio: ['ignore', 'pipe', 'pipe'],
+ });
+ let stdout = '';
+ let stderr = '';
+ child.stdout.setEncoding('utf8');
+ child.stderr.setEncoding('utf8');
+ child.stdout.on('data', (chunk) => { stdout += chunk; });
+ child.stderr.on('data', (chunk) => { stderr += chunk; });
+
+ const started = Date.now();
+ while (!fs.existsSync(marker) && Date.now() - started < 3000) {
+ await new Promise((resolve) => setTimeout(resolve, 20));
+ }
+ assert.equal(fs.existsSync(marker), true, `renderer did not start; stderr=${stderr}`);
+ const candidatePath = fs.readFileSync(marker, 'utf8');
+ const candidateRelative = path.relative(linkedDirectory, candidatePath);
+ fs.mkdirSync(path.dirname(path.join(inputDirectory, candidateRelative)), { recursive: true });
+ fs.unlinkSync(linkedDirectory);
+ fs.symlinkSync(inputDirectory, linkedDirectory, 'dir');
+
+ const status = await new Promise((resolve) => child.once('close', resolve));
+
+ assert.equal(status, 1, stderr);
+ const receipt = JSON.parse(stdout);
+ assert.equal(receipt.stage, 'commit');
+ assert.equal(receipt.diagnostics[0].code, 'output/input-alias');
+ assert.deepEqual(fs.readFileSync(base), source);
+});
+
+test('doctor reports a missing output-path safety runtime in an installed skill', () => {
+ const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-output-doctor-'));
+ const installedRoot = path.join(cwd, 'skill');
+ copyInstalledSkill(installedRoot);
+ fs.rmSync(path.join(installedRoot, 'renderers/shared/output-path.mjs'));
+
+ const result = spawnSync(process.execPath, [path.join(installedRoot, 'bin/archify.mjs'), 'doctor'], {
+ cwd: installedRoot,
+ encoding: 'utf8',
+ });
+
+ assert.equal(result.status, 1);
+ assert.match(result.stdout, /\[missing\] Output path safety runtime/);
+});
diff --git a/archify/test/release-identity.test.mjs b/archify/test/release-identity.test.mjs
new file mode 100644
index 00000000..370e8331
--- /dev/null
+++ b/archify/test/release-identity.test.mjs
@@ -0,0 +1,318 @@
+import { spawnSync } from 'node:child_process';
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+import test from 'node:test';
+import assert from 'node:assert/strict';
+
+const here = path.dirname(fileURLToPath(import.meta.url));
+const repoRoot = path.resolve(here, '..', '..');
+const checker = path.join(repoRoot, 'scripts', 'check-release-identity.mjs');
+
+function writeFile(root, relativePath, content) {
+ const target = path.join(root, relativePath);
+ fs.mkdirSync(path.dirname(target), { recursive: true });
+ fs.writeFileSync(target, content);
+}
+
+function runCheck(root) {
+ return spawnSync(process.execPath, [checker, '--root', root], {
+ encoding: 'utf8',
+ });
+}
+
+function writeValidDevelopmentFixture(root, overrides = {}) {
+ const version = '2.13.0-dev.0';
+ const english = [
+ '![Development Version](https://img.shields.io/badge/version-2.13.0--dev.0-blue)',
+ '',
+ `Current development version: \`v${version}\``,
+ '',
+ 'Raven uses manual ZIP installation: extract archify.zip into `~/.raven/workspace/skills`, which yields `~/.raven/workspace/skills/archify`; Raven is not an agent-switcher target.',
+ ].join('\n');
+ const chinese = [
+ '![开发版本](https://img.shields.io/badge/version-2.13.0--dev.0-blue)',
+ '',
+ `当前开发版本:\`v${version}\``,
+ '',
+ 'Raven 使用 ZIP 手动安装:将 archify.zip 解压到 `~/.raven/workspace/skills`,解压后会得到 `~/.raven/workspace/skills/archify`;Raven 不属于 Agent 切换器目标。',
+ ].join('\n');
+ const files = {
+ 'archify/package.json': JSON.stringify({ version }),
+ 'archify/package-lock.json': JSON.stringify({ version, packages: { '': { version } } }),
+ 'archify/SKILL.md': '---\nmetadata:\n version: "2.13"\n---\n',
+ 'archify/assets/template.html': '<meta name="generator" content="archify 2.13.0-dev.0">',
+ 'CHANGELOG.md': [
+ '# Changelog',
+ '',
+ '## [Unreleased]',
+ '',
+ `> Development identity: \`v${version}\`. Not a stable release.`,
+ '',
+ '### Added',
+ '- Real unreleased work.',
+ '',
+ '## [2.12.0] — 2026-07-23',
+ '',
+ ].join('\n'),
+ 'README.md': english,
+ 'README_EN.md': english,
+ 'README_ZH.md': chinese,
+ 'scripts/start-template.html': 'development · 开发版 · [[ARCHIFY_VERSION]]',
+ 'scripts/guide-template.html': 'development · 开发版 · [[ARCHIFY_VERSION]]',
+ 'scripts/gallery-template.html': 'development · 开发版 · [[ARCHIFY_VERSION]]',
+ 'docs/index.html': `<span>development · v${version} · 开发版 · 9/9 checks</span><p>Raven manual ZIP / ZIP 手动安装: extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify; 将 archify.zip 解压到 ~/.raven/workspace/skills,解压后会得到 ~/.raven/workspace/skills/archify; not an agent-switcher target.</p>`,
+ 'docs/start.html': `<span>development · v${version} · 开发版</span><p>Raven manual ZIP / ZIP 手动安装: extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify; 将 archify.zip 解压到 ~/.raven/workspace/skills,解压后会得到 ~/.raven/workspace/skills/archify; not an agent-switcher target.</p>`,
+ 'ROADMAP.md': `The current development line is \`v${version}\`; it contains the work under Changelog Unreleased and is not a stable release.`,
+ };
+ for (const [relativePath, content] of Object.entries({ ...files, ...overrides })) {
+ writeFile(root, relativePath, content);
+ }
+}
+
+function writeValidStableFixture(root, overrides = {}) {
+ const version = '2.13.0';
+ const english = [
+ '![Stable Version](https://img.shields.io/badge/version-2.13.0-blue)',
+ '',
+ `Current stable version: \`v${version}\``,
+ '',
+ 'Raven uses manual ZIP installation: extract archify.zip into `~/.raven/workspace/skills`, which yields `~/.raven/workspace/skills/archify`; Raven is not an agent-switcher target.',
+ ].join('\n');
+ const chinese = [
+ '![稳定版本](https://img.shields.io/badge/version-2.13.0-blue)',
+ '',
+ `当前稳定版本:\`v${version}\``,
+ '',
+ 'Raven 使用 ZIP 手动安装:将 archify.zip 解压到 `~/.raven/workspace/skills`,解压后会得到 `~/.raven/workspace/skills/archify`;Raven 不属于 Agent 切换器目标。',
+ ].join('\n');
+ const files = {
+ 'archify/package.json': JSON.stringify({ version }),
+ 'archify/package-lock.json': JSON.stringify({ version, packages: { '': { version } } }),
+ 'archify/SKILL.md': '---\nmetadata:\n version: "2.13"\n---\n',
+ 'archify/assets/template.html': '<meta name="generator" content="archify 2.13.0">',
+ 'CHANGELOG.md': [
+ '# Changelog',
+ '',
+ '## [Unreleased]',
+ '',
+ '## [2.13.0] — 2026-07-29',
+ '- Published work.',
+ '',
+ ].join('\n'),
+ 'README.md': english,
+ 'README_EN.md': english,
+ 'README_ZH.md': chinese,
+ 'scripts/start-template.html': 'stable · 稳定版 · [[ARCHIFY_VERSION]]',
+ 'scripts/guide-template.html': 'stable · 稳定版 · [[ARCHIFY_VERSION]]',
+ 'scripts/gallery-template.html': 'stable · 稳定版 · [[ARCHIFY_VERSION]]',
+ 'docs/index.html': `<span>stable · v${version} · 稳定版 · 9/9 checks</span><p>Raven manual ZIP / ZIP 手动安装: extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify; 将 archify.zip 解压到 ~/.raven/workspace/skills,解压后会得到 ~/.raven/workspace/skills/archify; not an agent-switcher target.</p>`,
+ 'docs/start.html': `<span>stable · v${version} · 稳定版</span><p>Raven manual ZIP / ZIP 手动安装: extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify; 将 archify.zip 解压到 ~/.raven/workspace/skills,解压后会得到 ~/.raven/workspace/skills/archify; not an agent-switcher target.</p>`,
+ 'ROADMAP.md': `The current stable version is \`v${version}\`.`,
+ };
+ for (const [relativePath, content] of Object.entries({ ...files, ...overrides })) {
+ writeFile(root, relativePath, content);
+ }
+}
+
+test('an empty Unreleased section accepts a coherent stable release identity', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ writeValidStableFixture(fixture);
+
+ const result = runCheck(fixture);
+ assert.equal(result.status, 0, result.stderr);
+ assert.match(result.stdout, /release identity ok: 2\.13\.0/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('real Unreleased changes cannot reuse a stable published package identity', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ writeFile(fixture, 'archify/package.json', JSON.stringify({ version: '2.12.0' }));
+ writeFile(fixture, 'CHANGELOG.md', [
+ '# Changelog',
+ '',
+ '## [Unreleased]',
+ '',
+ '### Added',
+ '- Real unreleased work.',
+ '',
+ '## [2.12.0] — 2026-07-23',
+ '',
+ ].join('\n'));
+
+ const result = runCheck(fixture);
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /Unreleased changes require a prerelease package version/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('package, lockfile, Skill metadata, escaped Shields badge, and public docs share one development identity', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ writeFile(fixture, 'archify/package.json', JSON.stringify({ version: '2.13.0-dev.0' }));
+ writeFile(fixture, 'archify/package-lock.json', JSON.stringify({
+ version: '2.12.0',
+ packages: { '': { version: '2.12.0' } },
+ }));
+ writeFile(fixture, 'archify/SKILL.md', '---\nmetadata:\n version: "2.12"\n---\n');
+ writeFile(fixture, 'CHANGELOG.md', [
+ '# Changelog',
+ '',
+ '## [Unreleased]',
+ '',
+ '### Added',
+ '- Real unreleased work.',
+ '',
+ '## [2.12.0] — 2026-07-23',
+ '',
+ ].join('\n'));
+ const staleEnglish = [
+ '![Version](https://img.shields.io/badge/version-2.13.0-blue)',
+ '',
+ 'Archify 2.12 includes unreleased capabilities.',
+ ].join('\n');
+ writeFile(fixture, 'README.md', staleEnglish);
+ writeFile(fixture, 'README_EN.md', staleEnglish);
+ writeFile(fixture, 'README_ZH.md', '![Version](https://img.shields.io/badge/version-2.13.0-blue)\n\nArchify 2.12 包含未发布能力。\n');
+ writeFile(fixture, 'docs/index.html', '<span>Agent Skill · v2.12.0</span>');
+ writeFile(fixture, 'docs/start.html', '<span>Archify v2.12.0</span>');
+
+ const result = runCheck(fixture);
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /package-lock\.json must match 2\.13\.0-dev\.0/);
+ assert.match(result.stderr, /SKILL\.md metadata version 2\.12 must map to package 2\.13\.0-dev\.0/);
+ assert.match(result.stderr, /README\.md must advertise development identity v2\.13\.0-dev\.0/);
+ assert.match(result.stderr, /docs\/index\.html must advertise development identity v2\.13\.0-dev\.0/);
+ assert.match(result.stderr, /docs\/start\.html must advertise development identity v2\.13\.0-dev\.0/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('landing proof receipt matches the current nine-check artifact contract', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ writeValidDevelopmentFixture(fixture, {
+ 'docs/index.html': '<span>development · v2.13.0-dev.0 · 开发版 · 8/8 checks</span><p>Raven manual ZIP / ZIP 手动安装: extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify; 将 archify.zip 解压到 ~/.raven/workspace/skills,解压后会得到 ~/.raven/workspace/skills/archify; not an agent-switcher target.</p>',
+ });
+
+ const result = runCheck(fixture);
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /docs\/index\.html proof receipt must say 9\/9/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('landing rejects every stale N/N contract count even when 9/9 is also present', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ writeValidDevelopmentFixture(fixture, {
+ 'docs/index.html': [
+ '<span>development · v2.13.0-dev.0 · 开发版 · 9/9 checks</span>',
+ '<span>legacy receipt · 7/7 checks</span>',
+ '<p>Raven manual ZIP / ZIP 手动安装: extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify; 将 archify.zip 解压到 ~/.raven/workspace/skills,解压后会得到 ~/.raven/workspace/skills/archify; not an agent-switcher target.</p>',
+ ].join('\n'),
+ });
+
+ const result = runCheck(fixture);
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /every N\/N proof receipt must be exactly 9\/9; found 7\/7/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('Raven stays a truthful manual ZIP install and never becomes a generated agent-switcher command', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ writeValidDevelopmentFixture(fixture, {
+ 'docs/start.html': [
+ '<span>development · v2.13.0-dev.0 · 开发版</span>',
+ '<button data-agent="raven">Raven</button>',
+ '<pre>npx skills add tt-a1i/archify --agent raven</pre>',
+ ].join('\n'),
+ });
+
+ const result = runCheck(fixture);
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /Raven must remain a manual ZIP installation outside the agent switcher/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('Raven instructions reject extracting the archive into the final Skill directory', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ const nestedEnglish = [
+ '![Development Version](https://img.shields.io/badge/version-2.13.0--dev.0-blue)',
+ '',
+ 'Current development version: `v2.13.0-dev.0`',
+ '',
+ 'Raven is manual ZIP only: extract archify.zip into `~/.raven/workspace/skills/archify`; Raven is not an agent-switcher target.',
+ ].join('\n');
+ writeValidDevelopmentFixture(fixture, {
+ 'README.md': nestedEnglish,
+ 'README_EN.md': nestedEnglish,
+ });
+
+ const result = runCheck(fixture);
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /extract archify\.zip into ~\/\.raven\/workspace\/skills, yielding ~\/\.raven\/workspace\/skills\/archify/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('renderer template generator carries the complete package prerelease identity', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ writeValidDevelopmentFixture(fixture, {
+ 'archify/assets/template.html': '<meta name="generator" content="archify 2.12.0">',
+ });
+
+ const result = runCheck(fixture);
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /archify\/assets\/template\.html generator must be archify 2\.13\.0-dev\.0/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('roadmap current identity follows the package release state', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ writeValidDevelopmentFixture(fixture, {
+ 'ROADMAP.md': 'The current development line is `v2.12.0`; it is not a stable release.',
+ });
+
+ const result = runCheck(fixture);
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /ROADMAP\.md must declare the current development line as v2\.13\.0-dev\.0/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('generated public-page templates keep a development marker and version placeholder', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-release-identity-'));
+ try {
+ writeValidDevelopmentFixture(fixture, {
+ 'scripts/gallery-template.html': 'Proof Lab / 2.12.0',
+ });
+
+ const result = runCheck(fixture);
+ assert.notEqual(result.status, 0);
+ assert.match(result.stderr, /scripts\/gallery-template\.html must use \[\[ARCHIFY_VERSION\]\] with development and 开发版 labels/);
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
diff --git a/archify/test/release-package-gates.test.mjs b/archify/test/release-package-gates.test.mjs
new file mode 100644
index 00000000..c9bc135a
--- /dev/null
+++ b/archify/test/release-package-gates.test.mjs
@@ -0,0 +1,164 @@
+import { test } from 'node:test';
+import assert from 'node:assert/strict';
+import { spawnSync } from 'node:child_process';
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const __dirname = path.dirname(fileURLToPath(import.meta.url));
+const repoRoot = path.resolve(__dirname, '..', '..');
+
+function workflowStep(workflow, name) {
+ const marker = ` - name: ${name}`;
+ const start = workflow.indexOf(marker);
+ assert.notEqual(start, -1, `workflow is missing the "${name}" step`);
+ const next = workflow.indexOf('\n - ', start + marker.length);
+ return workflow.slice(start, next === -1 ? workflow.length : next);
+}
+
+function workflowJob(workflow, name) {
+ const marker = ` ${name}:`;
+ const start = workflow.indexOf(marker);
+ assert.notEqual(start, -1, `workflow is missing the "${name}" job`);
+ const next = workflow.slice(start + marker.length).search(/\n [a-z][a-z0-9-]*:\n/);
+ return workflow.slice(start, next === -1 ? workflow.length : start + marker.length + next);
+}
+
+test('release smokes the exact archive built for the release before freshness and upload', () => {
+ const workflow = fs.readFileSync(path.join(repoRoot, '.github', 'workflows', 'release.yml'), 'utf8');
+ const tagGate = workflowStep(workflow, 'Tag must match package.json version');
+ const build = workflowStep(workflow, 'Build skill archive');
+ const smoke = workflowStep(workflow, 'Validate the exact release archive without installing dependencies');
+ const freshness = workflowStep(workflow, 'Committed zip must match the build (same gate as CI)');
+ const upload = workflowStep(workflow, 'Create GitHub Release with the zip attached');
+
+ assert.ok(workflow.indexOf(tagGate) < workflow.indexOf(build), 'tag/version gate must precede the release build');
+ assert.ok(workflow.indexOf(build) < workflow.indexOf(smoke), 'release smoke must follow the archive build');
+ assert.ok(workflow.indexOf(smoke) < workflow.indexOf(freshness), 'release smoke must inspect the built archive before it is restored');
+ assert.ok(workflow.indexOf(freshness) < workflow.indexOf(upload), 'freshness must pass before release upload');
+
+ assert.match(tagGate, /require\('\.\/archify\/package\.json'\)\.version/);
+ assert.match(tagGate, /GITHUB_REF_NAME#v/);
+ assert.match(build, /run: scripts\/build-zip\.sh/);
+ assert.match(smoke, /unzip -q archify\.zip -d "\$package_root"/);
+ assert.match(smoke, /node scripts\/package-smoke\.mjs "\$package_root\/archify"/);
+ assert.doesNotMatch(smoke, /\bnpm\s+(?:ci|install)\b/);
+ assert.match(freshness, /git checkout HEAD -- archify\.zip/);
+ assert.match(freshness, /diff -r \/tmp\/fresh\/archify \/tmp\/checked\/archify/);
+ assert.match(upload, /files: archify\.zip/);
+});
+
+test('release tags with a SemVer prerelease are marked prerelease and never become latest', () => {
+ const workflow = fs.readFileSync(path.join(repoRoot, '.github', 'workflows', 'release.yml'), 'utf8');
+ const classifier = workflowStep(workflow, 'Classify stable and prerelease tags');
+ const upload = workflowStep(workflow, 'Create GitHub Release with the zip attached');
+
+ assert.ok(workflow.indexOf(classifier) < workflow.indexOf(upload), 'release kind must be known before upload');
+ assert.match(classifier, /version="\$\{GITHUB_REF_NAME#v\}"/);
+ assert.match(classifier, /if \[\[ "\$version" == \*-\* \]\]/);
+ assert.match(classifier, /echo "prerelease=true" >> "\$GITHUB_OUTPUT"/);
+ assert.match(classifier, /echo "make_latest=false" >> "\$GITHUB_OUTPUT"/);
+ assert.match(classifier, /echo "prerelease=false" >> "\$GITHUB_OUTPUT"/);
+ assert.match(classifier, /echo "make_latest=true" >> "\$GITHUB_OUTPUT"/);
+ assert.match(upload, /prerelease: \$\{\{ steps\.release-kind\.outputs\.prerelease \}\}/);
+ assert.match(upload, /make_latest: \$\{\{ steps\.release-kind\.outputs\.make_latest \}\}/);
+});
+
+test('package smoke rejects every dependency or repository-only artifact', () => {
+ const packageSmoke = path.join(repoRoot, 'scripts', 'package-smoke.mjs');
+ const forbidden = [
+ { relative: 'node_modules', kind: 'directory' },
+ { relative: 'package-lock.json', kind: 'file' },
+ { relative: path.join('scripts', 'generate-validators.mjs'), kind: 'file' },
+ { relative: 'test', kind: 'directory' },
+ { relative: '.hive', kind: 'directory' },
+ { relative: '.workbuddy', kind: 'directory' },
+ ];
+
+ for (const { relative, kind } of forbidden) {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-package-gate-'));
+ try {
+ fs.mkdirSync(path.join(fixture, 'bin'), { recursive: true });
+ fs.writeFileSync(path.join(fixture, 'bin', 'archify.mjs'), '');
+ const target = path.join(fixture, relative);
+ if (kind === 'directory') fs.mkdirSync(target, { recursive: true });
+ else {
+ fs.mkdirSync(path.dirname(target), { recursive: true });
+ fs.writeFileSync(target, '');
+ }
+
+ const result = spawnSync(process.execPath, [packageSmoke, fixture], { encoding: 'utf8' });
+ assert.notEqual(result.status, 0, `${relative} must fail package smoke`);
+ assert.match(
+ `${result.stdout}\n${result.stderr}`,
+ new RegExp(`packaged skill must not contain ${relative.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`),
+ `${relative} must be rejected explicitly`,
+ );
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+ }
+});
+
+test('package smoke rejects every dependency metadata field in a built package', () => {
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-built-package-gate-'));
+ try {
+ const archive = path.join(fixture, 'archify.zip');
+ const build = spawnSync(path.join(repoRoot, 'scripts', 'build-zip.sh'), [archive], {
+ cwd: repoRoot,
+ encoding: 'utf8',
+ });
+ assert.equal(build.status, 0, `${build.stdout}\n${build.stderr}`);
+
+ const extracted = path.join(fixture, 'extracted');
+ fs.mkdirSync(extracted);
+ const unzip = spawnSync('unzip', ['-q', archive, '-d', extracted], { encoding: 'utf8' });
+ assert.equal(unzip.status, 0, `${unzip.stdout}\n${unzip.stderr}`);
+ const builtPackage = path.join(extracted, 'archify');
+ const dependencyFields = {
+ dependencies: { runtime: '1.0.0' },
+ devDependencies: { build: '1.0.0' },
+ optionalDependencies: { optional: '1.0.0' },
+ peerDependencies: { peer: '1.0.0' },
+ bundledDependencies: ['bundled'],
+ bundleDependencies: ['bundle-alias'],
+ };
+
+ for (const [field, value] of Object.entries(dependencyFields)) {
+ const caseRoot = path.join(fixture, field);
+ fs.cpSync(builtPackage, caseRoot, { recursive: true });
+ const packagePath = path.join(caseRoot, 'package.json');
+ const packageJson = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
+ packageJson[field] = value;
+ fs.writeFileSync(packagePath, `${JSON.stringify(packageJson, null, 2)}\n`);
+
+ const result = spawnSync(process.execPath, [path.join(repoRoot, 'scripts', 'package-smoke.mjs'), caseRoot], {
+ encoding: 'utf8',
+ });
+ assert.notEqual(result.status, 0, `${field} must fail package smoke`);
+ assert.match(`${result.stdout}\n${result.stderr}`, new RegExp(`dependency metadata: ${field}\\b`));
+ }
+ } finally {
+ fs.rmSync(fixture, { recursive: true, force: true });
+ }
+});
+
+test('CI tests the declared Node floor plus every maintained current lane', () => {
+ const packageJson = JSON.parse(fs.readFileSync(path.join(repoRoot, 'archify', 'package.json'), 'utf8'));
+ assert.equal(packageJson.engines?.node, '>=18');
+
+ const workflow = fs.readFileSync(path.join(repoRoot, '.github', 'workflows', 'ci.yml'), 'utf8');
+ const testJob = workflowJob(workflow, 'test');
+ const versions = testJob.match(/node-version:\s*\[([^\]]+)\]/)?.[1]
+ .split(',')
+ .map((version) => Number(version.trim()));
+ assert.ok(versions, 'test job must declare an explicit Node version matrix');
+ for (const version of [18, 20, 22, 24]) {
+ assert.ok(versions.includes(version), `test matrix must cover Node ${version}`);
+ }
+
+ const packageSmokeJob = workflowJob(workflow, 'package-smoke');
+ assert.match(packageSmokeJob, /os:\s*\[ubuntu-latest, macos-latest, windows-latest\]/);
+ assert.match(packageSmokeJob, /node-version:\s*22/);
+});
diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gif
index c5489121..e0581315 100644
Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differ
diff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.json
index 236798d5..59c320ff 100644
--- a/docs/assets/archify-live-proof.json
+++ b/docs/assets/archify-live-proof.json
@@ -7,13 +7,13 @@
"fps": 10,
"frameCount": 54,
"durationSeconds": 5.4,
- "bytes": 1532750,
- "sha256": "efd1ca676e5548e75781aec988afc6e2cbca54191bcb8bf44e3f1195a82c868a",
+ "bytes": 1621722,
+ "sha256": "9dfa85f0d04f0d072b94502893956bd45e92c51599fd40c2fd7096e7bd72c3c0",
"scenes": [
{
"id": "signal-flow",
"artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",
- "artifactSha256": "6e44131bafbfa576c1f471d41410b37b3c80b38160423d4de516771844a8e40a",
+ "artifactSha256": "969d6f866a040cbb2923a2ed83b8eb2bc17761f9c8f3cac2070dca9d1a94f312",
"view": "happy-path",
"eyebrow": "WORKFLOW · SIGNAL FLOW",
"title": "Agent Tool Call",
@@ -22,7 +22,7 @@
{
"id": "blueprint",
"artifact": "docs/gallery/artifacts/production-deployment.architecture.html",
- "artifactSha256": "b0ec59f3ede5b08b2b90ab996410a6d16dde8d5874bd0d6295f83d57e38b5192",
+ "artifactSha256": "ff3f9976979b6c3f1477ff5bed79e6ef0c1ce3d5b484665b7ddcb4decdf058ab",
"view": "request-boundary",
"eyebrow": "ARCHITECTURE · BLUEPRINT",
"title": "Production Deployment",
@@ -31,7 +31,7 @@
{
"id": "classic",
"artifact": "docs/gallery/artifacts/cache-miss.sequence.html",
- "artifactSha256": "3f461d05a742e6a2965942eb118686ddfad842c1c3f64bf1914db5838145dc40",
+ "artifactSha256": "4c0b4f4f47c2e422f1fd840263879ea2f23f76290e068994b9126f791d9d8bb0",
"view": "cache-fallback",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
diff --git a/docs/cases/mco-runtime.architecture.html b/docs/cases/mco-runtime.architecture.html
index f60fbc3c..0165948b 100644
--- a/docs/cases/mco-runtime.architecture.html
+++ b/docs/cases/mco-runtime.architecture.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>MCO Runtime Architecture Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery.html b/docs/gallery.html
index 4fd953d2..42019917 100644
--- a/docs/gallery.html
+++ b/docs/gallery.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify gallery 2.12.0">
+ <meta name="generator" content="archify gallery 2.13.0-dev.0">
<title>Archify Proof Lab — Generated Diagram Gallery</title>
<meta name="description" content="A generated gallery of validated, self-contained Archify diagrams. Every preview links to its exact JSON source and interactive HTML artifact.">
<link rel="preconnect" href="https://fonts.googleapis.com">
@@ -272,7 +272,7 @@
<div class="shell topbar-inner">
<a class="brand" href="index.html" aria-label="Back to Archify home">
<span class="brand-mark" aria-hidden="true"><span>A</span></span>
- <span class="brand-copy"><strong>Archify</strong><small>Proof Lab / 2.12.0</small></span>
+ <span class="brand-copy"><strong>Archify</strong><small data-en="Proof Lab / development / v2.13.0-dev.0" data-zh="验证作品集 / 开发版 / v2.13.0-dev.0">Proof Lab / development / v2.13.0-dev.0</small></span>
</a>
<div class="top-actions">
<a class="top-link" href="guide.html" data-en="Scenario guide" data-zh="场景指南">Scenario guide</a>
@@ -339,7 +339,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 11E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6e44131bafbfa576c1f471d41410b37b3c80b38160423d4de516771844a8e40a">6e44131bafbf</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="969d6f866a040cbb2923a2ed83b8eb2bc17761f9c8f3cac2070dca9d1a94f312">969d6f866a04</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html?present=1&amp;play=1#view=happy-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -369,7 +369,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b0ec59f3ede5b08b2b90ab996410a6d16dde8d5874bd0d6295f83d57e38b5192">b0ec59f3ede5</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ff3f9976979b6c3f1477ff5bed79e6ef0c1ce3d5b484665b7ddcb4decdf058ab">ff3f9976979b</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html?present=1&amp;play=1#view=request-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -398,7 +398,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3f461d05a742e6a2965942eb118686ddfad842c1c3f64bf1914db5838145dc40">3f461d05a742</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="4c0b4f4f47c2e422f1fd840263879ea2f23f76290e068994b9126f791d9d8bb0">4c0b4f4f47c2</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html?present=1&amp;play=1#view=cache-fallback" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -427,7 +427,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ea9b02cac6bd1ec228f715291fdc3c5ab08266862120e6d660c9a1df6ed89514">ea9b02cac6bd</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="824ba0b9bfe49baa3b1cc30a6cc5bc0d48b0ad2f6585812d0003f8a45d3a18ce">824ba0b9bfe4</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html?present=1&amp;play=1#view=approval-to-production" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -456,7 +456,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9d7b4ee88cc9c495f324dc28d29757b2c768637f313482cc0090b02a49e458ca">9d7b4ee88cc9</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ff3aeb81e75927679c8f19427f436d6f60768572868eb67a1e7c4252d0951d2e">ff3aeb81e759</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html?present=1&amp;play=1#view=mitigate-and-verify" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -485,7 +485,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="054ed6d3cdce7e0c05adc8537e60039c4c5254c54da054e6a1e996a7b59778d3">054ed6d3cdce</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="5c01aff416b7b44f12c1549064907da9d79cfa98714bc61dcc15e318509d24cb">5c01aff416b7</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html?present=1&amp;play=1#view=consent-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -514,7 +514,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="0739bdcdb5ad0295d2d4678cd35fd602f7dd6ec493f2cdbfa9b39e3daa5ba6ca">0739bdcdb5ad</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c6361d168e6ea7d248a42e053da7fc387dece34e2c5da29e91841b9d8cbbb93b">c6361d168e6e</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html?present=1&amp;play=1#view=work-and-retry" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -543,7 +543,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="a2080899f33e2838dc2262631ffb0ccd5cc9fb733e0a70b3a10ea9db6a58f432">a2080899f33e</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2be7f08e8b3c8a1cd50bef6152db0dfac98ef6e70d3f1fb27438a3e10bd39d84">2be7f08e8b3c</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html?present=1&amp;play=1#view=order-transit" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -572,7 +572,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 6E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d17afa5eb4d4dc46d3bdf36e933ae4e516c887436465aa3a38fb80e068eb4a4c">d17afa5eb4d4</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1179a53de66ab1ed58639dcdd25f574a6c102087f810adcce40f3ca158858575">1179a53de66a</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html?present=1&amp;play=1#view=main-lifecycle" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -601,7 +601,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 6E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="07b7866bae2a55081b098e9ca138c78e21fbe7cd8a17019e6c3e4fa161dbd015">07b7866bae2a</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d3cecbf6ecf3bd2d347297de6312a22a8858d1cd5ce71cca5000de6c665bb56f">d3cecbf6ecf3</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html?present=1&amp;play=1#view=rollback-outcomes" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -630,7 +630,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 9E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="81575f47e406dcd836af7a1f6b50d327ccfff6227773fca95b6681b8a8ae611c">81575f47e406</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="35d9c14c7b9589c3f9f6ede9b8d7d6f276bc861dee126080c7460bca187239d7">35d9c14c7b95</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/web-app.architecture.html?present=1&amp;play=1#view=request-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -683,14 +683,14 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
<footer>
<div class="shell footer-inner">
<span data-en="Generated from Archify's checked-in examples. No hand-authored capability claims." data-zh="由 Archify 仓库内示例自动生成,不手写可能过期的能力声明。">Generated from Archify's checked-in examples. No hand-authored capability claims.</span>
- <span>Archify 2.12.0 · MIT</span>
+ <span data-en="Archify v2.13.0-dev.0 · development · MIT" data-zh="Archify v2.13.0-dev.0 · 开发版 · MIT">Archify v2.13.0-dev.0 · development · MIT</span>
</div>
</footer>
<script id="gallery-manifest" type="application/json">{
"schemaVersion": 1,
"generator": "scripts/build-gallery.mjs",
- "archifyVersion": "2.12.0",
+ "archifyVersion": "2.13.0-dev.0",
"entryCount": 11,
"checkCount": 99,
"entries": [
@@ -716,8 +716,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 619331,
- "artifactSha256": "6e44131bafbfa576c1f471d41410b37b3c80b38160423d4de516771844a8e40a",
+ "artifactBytes": 619337,
+ "artifactSha256": "969d6f866a040cbb2923a2ed83b8eb2bc17761f9c8f3cac2070dca9d1a94f312",
"sourceBytes": 6470,
"sourceSha256": "a3afc6b30044eb256aa15c6195ddfbbcd1a14880d99967ed5605bc621ffb7e5f",
"checks": [
@@ -814,8 +814,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 619647,
- "artifactSha256": "b0ec59f3ede5b08b2b90ab996410a6d16dde8d5874bd0d6295f83d57e38b5192",
+ "artifactBytes": 619653,
+ "artifactSha256": "ff3f9976979b6c3f1477ff5bed79e6ef0c1ce3d5b484665b7ddcb4decdf058ab",
"sourceBytes": 5546,
"sourceSha256": "03e647d057eb20d99f7fb4ba4ddfdd5d58a7a813865338680e968038e6a90e0f",
"checks": [
@@ -912,8 +912,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 613480,
- "artifactSha256": "3f461d05a742e6a2965942eb118686ddfad842c1c3f64bf1914db5838145dc40",
+ "artifactBytes": 613486,
+ "artifactSha256": "4c0b4f4f47c2e422f1fd840263879ea2f23f76290e068994b9126f791d9d8bb0",
"sourceBytes": 4442,
"sourceSha256": "30098d81006a18813bab447da698edf74604a1463770f01dc056b0af8cb314ef",
"checks": [
@@ -1010,8 +1010,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 615593,
- "artifactSha256": "ea9b02cac6bd1ec228f715291fdc3c5ab08266862120e6d660c9a1df6ed89514",
+ "artifactBytes": 615599,
+ "artifactSha256": "824ba0b9bfe49baa3b1cc30a6cc5bc0d48b0ad2f6585812d0003f8a45d3a18ce",
"sourceBytes": 5256,
"sourceSha256": "44aa56ac6ca807937dfe84a6404e8b07d6394a38ae2ac53248a1985337dfd671",
"checks": [
@@ -1108,8 +1108,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 615454,
- "artifactSha256": "9d7b4ee88cc9c495f324dc28d29757b2c768637f313482cc0090b02a49e458ca",
+ "artifactBytes": 615460,
+ "artifactSha256": "ff3aeb81e75927679c8f19427f436d6f60768572868eb67a1e7c4252d0951d2e",
"sourceBytes": 5471,
"sourceSha256": "9beb8698b275679a2fc92d4b51288cd5b5fc2115696d06b9168f3d7fef253a72",
"checks": [
@@ -1206,8 +1206,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 616980,
- "artifactSha256": "054ed6d3cdce7e0c05adc8537e60039c4c5254c54da054e6a1e996a7b59778d3",
+ "artifactBytes": 616986,
+ "artifactSha256": "5c01aff416b7b44f12c1549064907da9d79cfa98714bc61dcc15e318509d24cb",
"sourceBytes": 5719,
"sourceSha256": "f71c89288f80255bdedcdc0057bcbc155d1d8b1b7476d024b35f4e27c730c974",
"checks": [
@@ -1304,8 +1304,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 614277,
- "artifactSha256": "0739bdcdb5ad0295d2d4678cd35fd602f7dd6ec493f2cdbfa9b39e3daa5ba6ca",
+ "artifactBytes": 614283,
+ "artifactSha256": "c6361d168e6ea7d248a42e053da7fc387dece34e2c5da29e91841b9d8cbbb93b",
"sourceBytes": 4483,
"sourceSha256": "1b53d7c4ce7b2d8f6f40b8f33a394abe1d37fc991272b534c1ccd0255920ab52",
"checks": [
@@ -1402,8 +1402,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 620935,
- "artifactSha256": "a2080899f33e2838dc2262631ffb0ccd5cc9fb733e0a70b3a10ea9db6a58f432",
+ "artifactBytes": 620941,
+ "artifactSha256": "2be7f08e8b3c8a1cd50bef6152db0dfac98ef6e70d3f1fb27438a3e10bd39d84",
"sourceBytes": 5543,
"sourceSha256": "bbfedc2f1b73bf50932490f7f56d45d5f853e970d2fab26660a04947a783969c",
"checks": [
@@ -1500,8 +1500,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 610312,
- "artifactSha256": "d17afa5eb4d4dc46d3bdf36e933ae4e516c887436465aa3a38fb80e068eb4a4c",
+ "artifactBytes": 610318,
+ "artifactSha256": "1179a53de66ab1ed58639dcdd25f574a6c102087f810adcce40f3ca158858575",
"sourceBytes": 4527,
"sourceSha256": "2e756b3d1ebc2f6c3f62f46c0fbb5584ed7bd6213627259ab43153b18c831cdf",
"checks": [
@@ -1598,8 +1598,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 611302,
- "artifactSha256": "07b7866bae2a55081b098e9ca138c78e21fbe7cd8a17019e6c3e4fa161dbd015",
+ "artifactBytes": 611308,
+ "artifactSha256": "d3cecbf6ecf3bd2d347297de6312a22a8858d1cd5ce71cca5000de6c665bb56f",
"sourceBytes": 4394,
"sourceSha256": "aa614f0c9a82f210e301e382f362dfbd7f290bda4d5501de3c99a6cd81b4c0a4",
"checks": [
@@ -1696,8 +1696,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 610934,
- "artifactSha256": "81575f47e406dcd836af7a1f6b50d327ccfff6227773fca95b6681b8a8ae611c",
+ "artifactBytes": 610940,
+ "artifactSha256": "35d9c14c7b9589c3f9f6ede9b8d7d6f276bc861dee126080c7460bca187239d7",
"sourceBytes": 3863,
"sourceSha256": "01567b5e49cad5139baa071533a028d22f0e80fedfb49095e0d9330aee7f87db",
"checks": [
diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.html
index fc75e0b4..7a7580bc 100644
--- a/docs/gallery/artifacts/agent-run.lifecycle.html
+++ b/docs/gallery/artifacts/agent-run.lifecycle.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Agent Run Lifecycle Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.html
index f2be2f00..35c7c1a1 100644
--- a/docs/gallery/artifacts/agent-tool-call.workflow.html
+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Agent Tool Call Workflow Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
index 34b01733..6b72c906 100644
--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html
+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Async Job Roundtrip Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.html
index 7eb5ad37..d68ad688 100644
--- a/docs/gallery/artifacts/cache-miss.sequence.html
+++ b/docs/gallery/artifacts/cache-miss.sequence.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Cache Miss Request Sequence Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.html
index a3b4bd43..ee7343a9 100644
--- a/docs/gallery/artifacts/deployment-release.lifecycle.html
+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Deployment Release Lifecycle Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.html
index 692fb6ec..47f07d00 100644
--- a/docs/gallery/artifacts/event-stream.dataflow.html
+++ b/docs/gallery/artifacts/event-stream.dataflow.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Order Event-stream Topology Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.html
index 2d93e605..70284ce2 100644
--- a/docs/gallery/artifacts/incident-response.workflow.html
+++ b/docs/gallery/artifacts/incident-response.workflow.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Incident Response Runbook Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.html
index 9daab182..b585c2fd 100644
--- a/docs/gallery/artifacts/product-analytics.dataflow.html
+++ b/docs/gallery/artifacts/product-analytics.dataflow.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Product Analytics Data Flow Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.html
index ab1680fe..5594a951 100644
--- a/docs/gallery/artifacts/production-deployment.architecture.html
+++ b/docs/gallery/artifacts/production-deployment.architecture.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Production Deployment Ownership Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.html
index 7d253d3e..68202415 100644
--- a/docs/gallery/artifacts/release-delivery.workflow.html
+++ b/docs/gallery/artifacts/release-delivery.workflow.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Release Delivery Workflow Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.html
index 3aea3786..6118f90a 100644
--- a/docs/gallery/artifacts/web-app.architecture.html
+++ b/docs/gallery/artifacts/web-app.architecture.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Sample Web App Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.json
index 36ea7fda..0d785237 100644
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"generator": "scripts/build-gallery.mjs",
- "archifyVersion": "2.12.0",
+ "archifyVersion": "2.13.0-dev.0",
"entryCount": 11,
"checkCount": 99,
"entries": [
@@ -27,8 +27,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 619331,
- "artifactSha256": "6e44131bafbfa576c1f471d41410b37b3c80b38160423d4de516771844a8e40a",
+ "artifactBytes": 619337,
+ "artifactSha256": "969d6f866a040cbb2923a2ed83b8eb2bc17761f9c8f3cac2070dca9d1a94f312",
"sourceBytes": 6470,
"sourceSha256": "a3afc6b30044eb256aa15c6195ddfbbcd1a14880d99967ed5605bc621ffb7e5f",
"checks": [
@@ -125,8 +125,8 @@
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 619647,
- "artifactSha256": "b0ec59f3ede5b08b2b90ab996410a6d16dde8d5874bd0d6295f83d57e38b5192",
+ "artifactBytes": 619653,
+ "artifactSha256": "ff3f9976979b6c3f1477ff5bed79e6ef0c1ce3d5b484665b7ddcb4decdf058ab",
"sourceBytes": 5546,
"sourceSha256": "03e647d057eb20d99f7fb4ba4ddfdd5d58a7a813865338680e968038e6a90e0f",
"checks": [
@@ -223,8 +223,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 613480,
- "artifactSha256": "3f461d05a742e6a2965942eb118686ddfad842c1c3f64bf1914db5838145dc40",
+ "artifactBytes": 613486,
+ "artifactSha256": "4c0b4f4f47c2e422f1fd840263879ea2f23f76290e068994b9126f791d9d8bb0",
"sourceBytes": 4442,
"sourceSha256": "30098d81006a18813bab447da698edf74604a1463770f01dc056b0af8cb314ef",
"checks": [
@@ -321,8 +321,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 615593,
- "artifactSha256": "ea9b02cac6bd1ec228f715291fdc3c5ab08266862120e6d660c9a1df6ed89514",
+ "artifactBytes": 615599,
+ "artifactSha256": "824ba0b9bfe49baa3b1cc30a6cc5bc0d48b0ad2f6585812d0003f8a45d3a18ce",
"sourceBytes": 5256,
"sourceSha256": "44aa56ac6ca807937dfe84a6404e8b07d6394a38ae2ac53248a1985337dfd671",
"checks": [
@@ -419,8 +419,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 615454,
- "artifactSha256": "9d7b4ee88cc9c495f324dc28d29757b2c768637f313482cc0090b02a49e458ca",
+ "artifactBytes": 615460,
+ "artifactSha256": "ff3aeb81e75927679c8f19427f436d6f60768572868eb67a1e7c4252d0951d2e",
"sourceBytes": 5471,
"sourceSha256": "9beb8698b275679a2fc92d4b51288cd5b5fc2115696d06b9168f3d7fef253a72",
"checks": [
@@ -517,8 +517,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 616980,
- "artifactSha256": "054ed6d3cdce7e0c05adc8537e60039c4c5254c54da054e6a1e996a7b59778d3",
+ "artifactBytes": 616986,
+ "artifactSha256": "5c01aff416b7b44f12c1549064907da9d79cfa98714bc61dcc15e318509d24cb",
"sourceBytes": 5719,
"sourceSha256": "f71c89288f80255bdedcdc0057bcbc155d1d8b1b7476d024b35f4e27c730c974",
"checks": [
@@ -615,8 +615,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 614277,
- "artifactSha256": "0739bdcdb5ad0295d2d4678cd35fd602f7dd6ec493f2cdbfa9b39e3daa5ba6ca",
+ "artifactBytes": 614283,
+ "artifactSha256": "c6361d168e6ea7d248a42e053da7fc387dece34e2c5da29e91841b9d8cbbb93b",
"sourceBytes": 4483,
"sourceSha256": "1b53d7c4ce7b2d8f6f40b8f33a394abe1d37fc991272b534c1ccd0255920ab52",
"checks": [
@@ -713,8 +713,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 620935,
- "artifactSha256": "a2080899f33e2838dc2262631ffb0ccd5cc9fb733e0a70b3a10ea9db6a58f432",
+ "artifactBytes": 620941,
+ "artifactSha256": "2be7f08e8b3c8a1cd50bef6152db0dfac98ef6e70d3f1fb27438a3e10bd39d84",
"sourceBytes": 5543,
"sourceSha256": "bbfedc2f1b73bf50932490f7f56d45d5f853e970d2fab26660a04947a783969c",
"checks": [
@@ -811,8 +811,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 610312,
- "artifactSha256": "d17afa5eb4d4dc46d3bdf36e933ae4e516c887436465aa3a38fb80e068eb4a4c",
+ "artifactBytes": 610318,
+ "artifactSha256": "1179a53de66ab1ed58639dcdd25f574a6c102087f810adcce40f3ca158858575",
"sourceBytes": 4527,
"sourceSha256": "2e756b3d1ebc2f6c3f62f46c0fbb5584ed7bd6213627259ab43153b18c831cdf",
"checks": [
@@ -909,8 +909,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 611302,
- "artifactSha256": "07b7866bae2a55081b098e9ca138c78e21fbe7cd8a17019e6c3e4fa161dbd015",
+ "artifactBytes": 611308,
+ "artifactSha256": "d3cecbf6ecf3bd2d347297de6312a22a8858d1cd5ce71cca5000de6c665bb56f",
"sourceBytes": 4394,
"sourceSha256": "aa614f0c9a82f210e301e382f362dfbd7f290bda4d5501de3c99a6cd81b4c0a4",
"checks": [
@@ -1007,8 +1007,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 610934,
- "artifactSha256": "81575f47e406dcd836af7a1f6b50d327ccfff6227773fca95b6681b8a8ae611c",
+ "artifactBytes": 610940,
+ "artifactSha256": "35d9c14c7b9589c3f9f6ede9b8d7d6f276bc861dee126080c7460bca187239d7",
"sourceBytes": 3863,
"sourceSha256": "01567b5e49cad5139baa071533a028d22f0e80fedfb49095e0d9330aee7f87db",
"checks": [
diff --git a/docs/guide.html b/docs/guide.html
index aa0ab526..0aba71d0 100644
--- a/docs/guide.html
+++ b/docs/guide.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify guide 2.12.0">
+ <meta name="generator" content="archify guide 2.13.0-dev.0">
<title>Archify Scenario Guide — Choose the Right Diagram</title>
<meta name="description" content="Describe the technical question you need to answer. Archify recommends a bounded diagram recipe, evidence checklist, and copy-ready prompt.">
<meta name="theme-color" content="#020617">
@@ -149,7 +149,7 @@
<header class="shell topbar">
<a class="brand" href="index.html" aria-label="Archify home">
<span class="brand-mark">◆</span>
- <span class="brand-copy"><strong>Archify</strong><small>Scenario guide / v2.12.0</small></span>
+ <span class="brand-copy"><strong>Archify</strong><small data-i18n="versionLabel">Scenario guide / development / v2.13.0-dev.0</small></span>
</a>
<nav class="nav" aria-label="Main navigation">
<a href="gallery.html" data-i18n="navProof">Proof Lab</a>
@@ -210,12 +210,12 @@
var lastRecipe = null;
var copy = {
en: {
- navProof:'Proof Lab', eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',
+ navProof:'Proof Lab',versionLabel:'Scenario guide / development / v2.13.0-dev.0',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',
metricRecipes:'real-world<br>recipes',metricModes:'typed diagram<br>modes',metricRuntime:'runtime<br>dependencies',chooserTitle:'What must the diagram explain?',chooserBody:'Write a situation, not a diagram type. Specific system facts produce a stronger recommendation.',placeholder:'Example: Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.',recommend:'Recommend a recipe →',clear:'Clear',libraryEyebrow:'Recipe library',libraryTitle:'Eleven small, opinionated starting points.',libraryBody:'Each recipe answers one technical question. That boundary keeps the result legible, reviewable, and honest about missing evidence.',footerLeft:'Generated from the same recipe source as the Archify CLI.',all:'All recipes',recommended:'Recommended recipe',use:'Use when',avoid:'Avoid when',must:'Evidence to include',presentation:'Presentation',prompt:'Copy-ready prompt',copyPrompt:'Copy prompt',copied:'Copied',alternatives:'Other possible fits:',confidence:'confidence',open:'Open recipe',proofReady:'Verified proof',proofLink:'Open verified example ↗',
samples:[['API + cache miss','Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.'],['Kafka + DLQ','Map Kafka topics, ordered processors, consumer groups, replay, state stores, and the dead-letter queue.'],['Incident response','Show how responders detect, triage, mitigate, escalate, communicate, and verify recovery.']]
},
zh: {
- navProof:'验证作品集',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',
+ navProof:'验证作品集',versionLabel:'场景指南 / 开发版 / v2.13.0-dev.0',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',
metricRecipes:'个真实场景<br>配方',metricModes:'种类型化<br>图表模式',metricRuntime:'个运行时<br>依赖',chooserTitle:'这张图必须解释什么?',chooserBody:'写清场景,不要只写图表类型。系统事实越具体,推荐越可靠。',placeholder:'例如:展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。',recommend:'推荐配方 →',clear:'清空',libraryEyebrow:'配方库',libraryTitle:'十一个小而专的起点。',libraryBody:'每个配方只回答一个技术问题。清晰的边界让图更易读、可评审,也不会掩盖证据缺口。',footerLeft:'网页与 Archify CLI 使用同一份配方数据生成。',all:'全部配方',recommended:'推荐配方',use:'适合',avoid:'不要这样用',must:'必须包含的证据',presentation:'表现建议',prompt:'可直接复制的提示词',copyPrompt:'复制提示词',copied:'已复制',alternatives:'其他可能:',confidence:'置信度',open:'打开配方',proofReady:'已验证成品',proofLink:'打开验证成品 ↗',
samples:[['API + 缓存未命中','展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。'],['Kafka + 死信','梳理 Kafka Topic、有序处理器、消费者组、重放、状态存储和死信队列。'],['事故处置','展示响应者如何发现、分诊、缓解、升级、沟通并验证恢复。']]
}
diff --git a/docs/index.html b/docs/index.html
index 29725d86..1eed39a4 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -378,7 +378,7 @@
<div class="hero-intro">
<div class="hero-badge fade-up">
<div class="pulse-dot"></div>
- <span data-i18n="hero-badge">Agent Skill &nbsp;·&nbsp; v2.12.0</span>
+ <span data-i18n="hero-badge">Agent Skill &nbsp;·&nbsp; development &nbsp;·&nbsp; v2.13.0-dev.0</span>
</div>
<h1 class="fade-up d1" data-i18n="hero-h1">From plain English<br>to architecture <em>you can trust.</em></h1>
<p class="hero-sub fade-up d2" data-i18n="hero-sub">Describe your system in chat. Archify generates a polished, explorable HTML diagram — with progressive MAP → READ → FULL detail, a semantic camera, path-aware stories, motion, and ultra-crisp export built in.</p>
@@ -401,7 +401,7 @@
<span class="proof-live" data-i18n="proof-live">Live proof</span>
<div class="proof-status-copy">
<strong data-i18n="proof-status">Generated, checked, interactive</strong>
- <span data-i18n="proof-receipt">Real gallery artifact · 8/8 validation checks</span>
+ <span data-i18n="proof-receipt">Real gallery artifact · 9/9 validation checks</span>
</div>
</div>
<a class="proof-open" id="proof-open" href="gallery/artifacts/agent-tool-call.workflow.html?present=1&amp;play=1#view=happy-path" target="_blank" rel="noopener">
@@ -697,7 +697,7 @@
<div class="fade-up" style="margin-bottom:2.75rem">
<div class="section-label" data-i18n="label-qs">Quick Start</div>
<h2 class="section-heading" data-i18n="qs-h2">Up and running<br>in three steps.</h2>
- <p class="section-body" data-i18n="qs-body">One checked Skill for Cursor, Claude Code, Codex, and OpenCode. Choose an agent, then draw.</p>
+ <p class="section-body" data-i18n="qs-body">One checked Skill for Cursor, Claude Code, Codex, and OpenCode. Their switcher generates exact commands; for Raven, extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify.</p>
</div>
<div class="quickstart-layout">
<div class="qs-card fade-up d1">
@@ -706,7 +706,7 @@
<div class="step-num">1</div>
<div class="step-content">
<h4 data-i18n="step1-h">Install in one command</h4>
- <p data-i18n="step1-p">Run <code>npx skills add tt-a1i/archify -g</code>, or open the <a href="start.html?agent=cursor&amp;type=architecture">agent-aware quick start</a> for an exact Cursor, Codex, Claude Code, or OpenCode command.</p>
+ <p data-i18n="step1-p">Run <code>npx skills add tt-a1i/archify -g</code>, or open the <a href="start.html?agent=cursor&amp;type=architecture">agent-aware quick start</a> for an exact Cursor, Codex, Claude Code, or OpenCode command. Raven is not a switcher target; for a manual ZIP install, extract archify.zip into <code>~/.raven/workspace/skills</code>, which yields <code>~/.raven/workspace/skills/archify</code>.</p>
</div>
</div>
<div class="step">
@@ -774,7 +774,7 @@
<a class="nav-logo" href="#">
<span style="font-size:.8125rem;font-weight:700;color:var(--muted)">Archify</span>
</a>
- <p class="footer-meta" data-i18n="footer-meta">v2.12.0 &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator</p>
+ <p class="footer-meta" data-i18n="footer-meta">development &nbsp;·&nbsp; v2.13.0-dev.0 &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator</p>
</div>
<div class="footer-links">
<a href="https://github.com/tt-a1i/archify" target="_blank" rel="noopener">GitHub</a>
@@ -791,11 +791,11 @@
const LANGS = {
en: {
'nav-guide':'Guide','nav-gallery':'Gallery','nav-docs':'Docs','nav-install':'Install Skill',
- 'hero-badge':'Agent Skill &nbsp;·&nbsp; v2.12.0',
+ 'hero-badge':'Agent Skill &nbsp;·&nbsp; development &nbsp;·&nbsp; v2.13.0-dev.0',
'hero-h1':'From plain English<br>to architecture <em>you can trust.</em>',
'hero-sub':'Describe your system in chat. Archify generates a polished, explorable HTML diagram — with progressive MAP → READ → FULL detail, a semantic camera, path-aware stories, motion, and ultra-crisp export built in.',
'hero-cta':'Choose the right diagram','hero-gallery':'Explore proof gallery',
- 'proof-live':'Live proof','proof-status':'Generated, checked, interactive','proof-receipt':'Real gallery artifact · 8/8 validation checks','proof-open':'Open artifact','proof-hint':'Play a story that follows the current authored moment, then pin and share that exact node.',
+ 'proof-live':'Live proof','proof-status':'Generated, checked, interactive','proof-receipt':'Real gallery artifact · 9/9 validation checks','proof-open':'Open artifact','proof-hint':'Play a story that follows the current authored moment, then pin and share that exact node.',
'rail-label':'Live specimens — select to load',
'stat-types':'Diagram types','stat-presets':'Visual presets','stat-themes':'Coordinated themes','stat-export':'Native export scale','stat-deps':'Dependencies',
'label-types':'Diagram Types',
@@ -838,21 +838,21 @@
'chip-external':'External','chip-external-use':'Users, 3rd parties, generic',
'label-qs':'Quick Start',
'qs-h2':'Up and running<br>in three steps.',
- 'qs-body':'One checked Skill for Cursor, Claude Code, Codex, and OpenCode. Choose an agent, then draw.',
- 'step1-h':'Install in one command','step1-p':'Run <code>npx skills add tt-a1i/archify -g</code>, or open the <a href="start.html?agent=cursor&amp;type=architecture">agent-aware quick start</a> for an exact Cursor, Codex, Claude Code, or OpenCode command.',
+ 'qs-body':'One checked Skill for Cursor, Claude Code, Codex, and OpenCode. Their switcher generates exact commands; for Raven, extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify.',
+ 'step1-h':'Install in one command','step1-p':'Run <code>npx skills add tt-a1i/archify -g</code>, or open the <a href="start.html?agent=cursor&amp;type=architecture">agent-aware quick start</a> for an exact Cursor, Codex, Claude Code, or OpenCode command. Raven is not a switcher target; for a manual ZIP install, extract archify.zip into <code>~/.raven/workspace/skills</code>, which yields <code>~/.raven/workspace/skills/archify</code>.',
'step2-h':'Describe your system','step2-p':'Describe components, connections, and cloud services — or ask your agent to analyze the repository first.',
'step3-h':'Ask your agent to draw it','step3-p':'Tell your agent to use Archify. It generates a self-contained HTML file you can open in any browser and refine in chat.',
'kbd-label':'Keyboard shortcuts','kbd-guide':'Diagram guide','kbd-theme':'Toggle theme','kbd-find':'Find node / route endpoint','kbd-route':'Trace, inspect, and play a route','kbd-radar':'Semantic radar','kbd-lens':'Compare semantic kinds','kbd-present':'Presentation stage','kbd-export':'Open export menu','kbd-focus':'Focus node','kbd-views':'Guided views','kbd-play':'Play story','kbd-zoom':'Reading depth / reset','kbd-nav':'Navigate menu','kbd-close':'Close menu',
- 'footer-meta':'v2.12.0 &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator',
+ 'footer-meta':'development &nbsp;·&nbsp; v2.13.0-dev.0 &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator',
'footer-changelog':'Changelog','footer-license':'License'
},
zh: {
'nav-guide':'场景指南','nav-gallery':'作品集','nav-docs':'文档','nav-install':'安装技能',
- 'hero-badge':'Agent 技能 &nbsp;·&nbsp; v2.12.0',
+ 'hero-badge':'Agent 技能 &nbsp;·&nbsp; 开发版 &nbsp;·&nbsp; v2.13.0-dev.0',
'hero-h1':'用自然语言,<br>生成<em>可信的架构图。</em>',
'hero-sub':'在对话中描述你的系统,Archify 生成精美、可探索的 HTML 技术图——信息会按 MAP → READ → FULL 渐进展开,并内置语义镜头、路径故事、动态效果和超清导出。',
'hero-cta':'选择合适的图','hero-gallery':'查看验证作品集',
- 'proof-live':'实时成品','proof-status':'自动生成 · 检查通过 · 可交互','proof-receipt':'真实作品集成品 · 8/8 项验证通过','proof-open':'打开完整成品','proof-hint':'播放会跟随当前作者时刻的故事,再钉住并分享这个精确节点。',
+ 'proof-live':'实时成品','proof-status':'自动生成 · 检查通过 · 可交互','proof-receipt':'真实作品集成品 · 9/9 项验证通过','proof-open':'打开完整成品','proof-hint':'播放会跟随当前作者时刻的故事,再钉住并分享这个精确节点。',
'rail-label':'实时标本 · 点击加载',
'stat-types':'图表类型','stat-presets':'视觉预设','stat-themes':'深浅主题','stat-export':'原生导出倍率','stat-deps':'外部依赖',
'label-types':'图表类型',
@@ -895,12 +895,12 @@
'chip-external':'外部系统','chip-external-use':'用户、第三方、通用外部',
'label-qs':'快速开始',
'qs-h2':'三步上手,<br>即刻运行。',
- 'qs-body':'同一份经过检查的 Skill 可用于 Cursor、Claude Code、Codex 和 OpenCode;选择 Agent,然后开始作图。',
- 'step1-h':'一条命令安装','step1-p':'运行 <code>npx skills add tt-a1i/archify -g</code>,或打开<a href="start.html?agent=cursor&amp;type=architecture">可切换 Agent 的快速开始页</a>,获取准确的 Cursor、Codex、Claude Code 或 OpenCode 命令。',
+ 'qs-body':'同一份经过检查的 Skill 可用于 Cursor、Claude Code、Codex 和 OpenCode,切换器会生成准确命令;Raven 采用 ZIP 手动安装:将 archify.zip 解压到 ~/.raven/workspace/skills,解压后会得到 ~/.raven/workspace/skills/archify。',
+ 'step1-h':'一条命令安装','step1-p':'运行 <code>npx skills add tt-a1i/archify -g</code>,或打开<a href="start.html?agent=cursor&amp;type=architecture">可切换 Agent 的快速开始页</a>,获取准确的 Cursor、Codex、Claude Code 或 OpenCode 命令。Raven 不属于切换器目标;请将 archify.zip 解压到 <code>~/.raven/workspace/skills</code>,解压后会得到 <code>~/.raven/workspace/skills/archify</code>。',
'step2-h':'描述你的系统','step2-p':'描述组件、连接关系和云服务,也可以先让 agent 分析代码仓库。',
'step3-h':'让 agent 绘制','step3-p':'告诉 agent 使用 Archify,它会生成可在任意浏览器打开的单文件 HTML,并可继续在对话中迭代。',
'kbd-label':'键盘快捷键','kbd-guide':'图表指南','kbd-theme':'切换主题','kbd-find':'查找节点 / 路径端点','kbd-route':'探查、检查并播放路径','kbd-radar':'语义雷达','kbd-lens':'对比语义类型','kbd-present':'演示舞台','kbd-export':'打开导出菜单','kbd-focus':'聚焦节点','kbd-views':'引导视图','kbd-play':'播放故事','kbd-zoom':'阅读层级 / 复位','kbd-nav':'菜单导航','kbd-close':'关闭菜单',
- 'footer-meta':'v2.12.0 &nbsp;·&nbsp; MIT 许可证<br>基于 Cocoon-AI/architecture-diagram-generator',
+ 'footer-meta':'开发版 &nbsp;·&nbsp; v2.13.0-dev.0 &nbsp;·&nbsp; MIT 许可证<br>基于 Cocoon-AI/architecture-diagram-generator',
'footer-changelog':'更新日志','footer-license':'许可证'
}
};
diff --git a/docs/start.html b/docs/start.html
index 47a4e938..5e60f811 100644
--- a/docs/start.html
+++ b/docs/start.html
@@ -234,7 +234,7 @@
<article class="panel">
<div class="panel-kicker"><b>01</b><span data-en="Install the skill" data-zh="安装 Skill">Install the skill</span></div>
<h2 data-en="Keep the tool local." data-zh="让工具留在本地。">Keep the tool local.</h2>
- <p class="panel-intro" data-en="Choose Cursor, Codex, Claude Code, or OpenCode. Every agent receives the same checked Skill and zero-dependency renderers—no vendor-specific fork." data-zh="选择 Cursor、Codex、Claude Code 或 OpenCode。每个 Agent 使用同一份经过检查的 Skill 与零依赖渲染器,不维护厂商专属分叉。">Choose Cursor, Codex, Claude Code, or OpenCode. Every agent receives the same checked Skill and zero-dependency renderers—no vendor-specific fork.</p>
+ <p class="panel-intro" data-en="Choose Cursor, Codex, Claude Code, or OpenCode. The switcher gives each one the same checked Skill and zero-dependency renderers—no vendor-specific fork." data-zh="选择 Cursor、Codex、Claude Code 或 OpenCode。切换器为每个 Agent 提供同一份经过检查的 Skill 与零依赖渲染器,不维护厂商专属分叉。">Choose Cursor, Codex, Claude Code, or OpenCode. The switcher gives each one the same checked Skill and zero-dependency renderers—no vendor-specific fork.</p>
<div class="agent-picker">
<p class="agent-picker-head"><span data-en="Choose your coding agent" data-zh="选择你的编码 Agent">Choose your coding agent</span><strong id="agent-state">Codex · same Skill</strong></p>
@@ -254,6 +254,7 @@
<div class="command-bar"><span data-en="This repository only" data-zh="仅安装到当前仓库">This repository only</span><button class="copy-button" type="button" data-copy-source="project-command" data-en="Copy" data-zh="复制">Copy</button></div>
<pre id="project-command">npx -y skills add tt-a1i/archify --skill archify --agent codex --copy --yes</pre>
</div>
+ <p class="secondary-note" data-en="Raven is supported through a manual ZIP installation, not a generated agent-switcher command. Extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify." data-zh="Raven 采用 ZIP 手动安装,不使用 Agent 切换器生成命令。将 archify.zip 解压到 ~/.raven/workspace/skills,解压后会得到 ~/.raven/workspace/skills/archify。">Raven is supported through a manual ZIP installation, not a generated agent-switcher command. Extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify.</p>
<p class="secondary-note" data-en="The Start link carries only your agent, language, diagram type, and a coarse source label. Journey events stay in this browser session and are never sent by Archify. No repository path, title, node, relationship, or source JSON is recorded." data-zh="Start 链接只携带 Agent、语言、图表类型和粗粒度来源标签。转化步骤只保存在当前浏览器会话中,Archify 不会发送这些数据,也不会记录仓库路径、标题、节点、关系或源 JSON。">The Start link carries only your agent, language, diagram type, and a coarse source label. Journey events stay in this browser session and are never sent by Archify. No repository path, title, node, relationship, or source JSON is recorded.</p>
</article>
@@ -274,7 +275,7 @@
</section>
<footer class="page-footer">
- <span>Archify v2.12.0 · self-contained HTML · typed JSON source</span>
+ <span data-en="Archify v2.13.0-dev.0 · development · self-contained HTML · typed JSON source" data-zh="Archify v2.13.0-dev.0 · 开发版 · 独立 HTML · 类型化 JSON 源">Archify v2.13.0-dev.0 · development · self-contained HTML · typed JSON source</span>
<span id="copy-status" role="status" aria-live="polite"></span>
<a href="https://github.com/tt-a1i/archify" data-en="View source on GitHub ↗" data-zh="在 GitHub 查看源码 ↗">View source on GitHub ↗</a>
</footer>
diff --git a/examples/archify-repo-grid.html b/examples/archify-repo-grid.html
index 674ea223..f38fa85b 100644
--- a/examples/archify-repo-grid.html
+++ b/examples/archify-repo-grid.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Archify Pipeline Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
@@ -4543,7 +4543,7 @@
</div>
<!-- Main Diagram -->
- <div class="diagram-container" data-detail-level="map">
+ <div class="diagram-container" data-detail-level="read">
<svg viewBox="0 0 1064 356" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory">
<title id="archify-diagram-title">Archify Pipeline</title>
<desc id="archify-diagram-description">Grid placement demo — row/col instead of manual pos</desc>
@@ -4931,7 +4931,7 @@
<!-- Footer -->
<p class="footer">
- Architecture diagram &bull; Built with Archify<span class="no-print"> &bull; <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture" target="_blank" rel="noopener noreferrer">Create yours &nearr;</a> &bull; Hover to trace &bull; <kbd>R</kbd> route &bull; Click to focus &bull; <kbd>+</kbd>/<kbd>&minus;</kbd> zoom &bull; <kbd>M</kbd> radar &bull; <kbd>T</kbd> theme &bull; <kbd>E</kbd> export</span>
+ Architecture diagram &bull; Built with Archify<span class="no-print"> &bull; <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&amp;source=artifact" target="_blank" rel="noopener noreferrer">Create yours &nearr;</a> &bull; Hover to trace &bull; <kbd>R</kbd> route &bull; Click to focus &bull; <kbd>+</kbd>/<kbd>&minus;</kbd> zoom &bull; <kbd>M</kbd> radar &bull; <kbd>T</kbd> theme &bull; <kbd>E</kbd> export</span>
</p>
</div>
@@ -10180,7 +10180,7 @@
function detailLevel() {
if (state.mode === 'semantic') return 'full';
if (state.scale >= 1.75) return 'full';
- if (state.scale >= 1.25) return 'read';
+ if (state.scale >= 1) return 'read';
return 'map';
}
function renderControls() {
diff --git a/examples/archify-repo.html b/examples/archify-repo.html
index 04b40121..4839b1f2 100644
--- a/examples/archify-repo.html
+++ b/examples/archify-repo.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Archify Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
@@ -4543,7 +4543,7 @@
</div>
<!-- Main Diagram -->
- <div class="diagram-container" data-detail-level="map">
+ <div class="diagram-container" data-detail-level="read">
<svg viewBox="0 0 1340 568" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory">
<title id="archify-diagram-title">Archify</title>
<desc id="archify-diagram-description">Agent skill → JSON IR → typed renderers → standalone HTML</desc>
@@ -4993,7 +4993,7 @@
<!-- Footer -->
<p class="footer">
- Architecture diagram &bull; Built with Archify<span class="no-print"> &bull; <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture" target="_blank" rel="noopener noreferrer">Create yours &nearr;</a> &bull; Hover to trace &bull; <kbd>R</kbd> route &bull; Click to focus &bull; <kbd>+</kbd>/<kbd>&minus;</kbd> zoom &bull; <kbd>M</kbd> radar &bull; <kbd>T</kbd> theme &bull; <kbd>E</kbd> export</span>
+ Architecture diagram &bull; Built with Archify<span class="no-print"> &bull; <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&amp;source=artifact" target="_blank" rel="noopener noreferrer">Create yours &nearr;</a> &bull; Hover to trace &bull; <kbd>R</kbd> route &bull; Click to focus &bull; <kbd>+</kbd>/<kbd>&minus;</kbd> zoom &bull; <kbd>M</kbd> radar &bull; <kbd>T</kbd> theme &bull; <kbd>E</kbd> export</span>
</p>
</div>
@@ -10242,7 +10242,7 @@
function detailLevel() {
if (state.mode === 'semantic') return 'full';
if (state.scale >= 1.75) return 'full';
- if (state.scale >= 1.25) return 'read';
+ if (state.scale >= 1) return 'read';
return 'map';
}
function renderControls() {
diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.html
index 39504667..779d8599 100644
--- a/examples/checkout-platform-delta.html
+++ b/examples/checkout-platform-delta.html
@@ -234,6 +234,83 @@
--toolbar-menu-bg: #f9fdff;
}
+ /* ==========================================================
+ EDITORIAL — a warm, publication-minded preset for design
+ reviews, launch notes, and documentation. The diagram keeps
+ the same semantic palette and exact geometry, but trades
+ software chrome for paper, ink, ruled structure, and one
+ restrained vermilion accent.
+ ========================================================== */
+ [data-preset="editorial"][data-theme="dark"] {
+ --bg: #181611;
+ --grid: #39342a;
+ --panel: rgba(35, 31, 24, 0.96);
+ --panel-border: #625a4a;
+ --lane-fill: rgba(52, 46, 35, 0.46);
+ --lane-stroke: #726957;
+ --text: #f4eddf;
+ --text-muted: #b9ae9b;
+ --text-dim: #776e60;
+ --text-faint: #9d917e;
+ --mask: #231f18;
+ --frontend-fill: rgba(43, 133, 142, 0.16);
+ --frontend-stroke: #7fc6c7;
+ --backend-fill: rgba(63, 132, 92, 0.16);
+ --backend-stroke: #8fc29e;
+ --database-fill: rgba(117, 91, 141, 0.17);
+ --database-stroke: #c0a4d0;
+ --cloud-fill: rgba(170, 119, 49, 0.16);
+ --cloud-stroke: #d8ad68;
+ --security-fill: rgba(157, 69, 65, 0.17);
+ --security-stroke: #df9085;
+ --messagebus-fill: rgba(174, 79, 42, 0.16);
+ --messagebus-stroke: #df946f;
+ --external-fill: rgba(126, 115, 96, 0.18);
+ --external-stroke: #b8ad99;
+ --arrow: #948978;
+ --arrow-emphasis: #dd6b3d;
+ --toolbar-bg: rgba(35, 31, 24, 0.92);
+ --toolbar-border: #625a4a;
+ --toolbar-text: #eee5d5;
+ --toolbar-hover: #302a20;
+ --toolbar-menu-bg: #231f18;
+ }
+
+ [data-preset="editorial"][data-theme="light"] {
+ --bg: #f2eee5;
+ --grid: #d8d0c2;
+ --panel: rgba(251, 248, 241, 0.97);
+ --panel-border: #c4b9a6;
+ --lane-fill: rgba(229, 221, 207, 0.42);
+ --lane-stroke: #b8aa94;
+ --text: #242018;
+ --text-muted: #6f6658;
+ --text-dim: #a09788;
+ --text-faint: #817767;
+ --mask: #fbf8f1;
+ --frontend-fill: rgba(31, 117, 126, 0.09);
+ --frontend-stroke: #287e84;
+ --backend-fill: rgba(42, 119, 75, 0.09);
+ --backend-stroke: #397b53;
+ --database-fill: rgba(105, 75, 130, 0.09);
+ --database-stroke: #765d86;
+ --cloud-fill: rgba(157, 103, 31, 0.1);
+ --cloud-stroke: #9a671f;
+ --security-fill: rgba(153, 58, 52, 0.09);
+ --security-stroke: #9e463f;
+ --messagebus-fill: rgba(182, 70, 27, 0.09);
+ --messagebus-stroke: #ad4b25;
+ --external-fill: rgba(101, 91, 75, 0.09);
+ --external-stroke: #746b5e;
+ --arrow: #8a806f;
+ --arrow-emphasis: #bb4c23;
+ --toolbar-bg: rgba(251, 248, 241, 0.94);
+ --toolbar-border: #c4b9a6;
+ --toolbar-text: #40392f;
+ --toolbar-hover: #fffdf8;
+ --toolbar-menu-bg: #fbf8f1;
+ }
+
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
@@ -264,6 +341,12 @@
background-position: -1px -1px;
background-attachment: fixed;
}
+ html[data-preset="editorial"] body {
+ background-image:
+ linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),
+ repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);
+ background-attachment: fixed;
+ }
/* Gallery/embed mode keeps the generated artifact as the source of truth
while presenting only its diagram surface inside a proof card. */
@@ -332,6 +415,20 @@
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
backdrop-filter: none;
}
+ html[data-preset="editorial"] .share-chapter-cue {
+ border-color: var(--panel-border);
+ background:
+ linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 42%),
+ var(--toolbar-menu-bg);
+ box-shadow: 0 10px 30px color-mix(in srgb, #000 18%, transparent);
+ backdrop-filter: none;
+ }
+ html[data-preset="editorial"] .share-chapter-state { color: var(--arrow-emphasis); }
+ html[data-preset="editorial"] .share-chapter-state::before {
+ border-radius: 0;
+ box-shadow: none;
+ transform: rotate(45deg) scale(0.8);
+ }
.share-chapter-index {
display: grid;
gap: 0.12rem;
@@ -471,7 +568,8 @@
.header { margin-bottom: 2rem; padding-right: 29.5rem; }
html[data-preset="signal-flow"] .header,
- html[data-preset="blueprint"] .header { padding-right: 29.5rem; }
+ html[data-preset="blueprint"] .header,
+ html[data-preset="editorial"] .header { padding-right: 29.5rem; }
.header-row {
display: flex;
@@ -544,6 +642,36 @@
white-space: nowrap;
}
+ html[data-preset="editorial"] h1,
+ html[data-preset="editorial"] .card h3 {
+ font-family: Georgia, 'Times New Roman', 'Songti SC', STSong, serif;
+ letter-spacing: -0.02em;
+ }
+ html[data-preset="editorial"] h1 { font-size: 1.72rem; font-weight: 600; }
+ html[data-preset="editorial"] .pulse-dot {
+ width: 9px;
+ height: 9px;
+ border: 1px solid var(--arrow-emphasis);
+ border-radius: 0;
+ background: var(--arrow-emphasis);
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);
+ transform: rotate(45deg);
+ animation: none;
+ }
+ html[data-preset="editorial"] .header-row::after {
+ content: "EDITORIAL / FIELD NOTE";
+ margin-left: auto;
+ padding: 0.32rem 0 0.24rem;
+ border-bottom: 2px solid var(--arrow-emphasis);
+ color: var(--arrow-emphasis);
+ font-family: Georgia, 'Times New Roman', serif;
+ font-size: 0.625rem;
+ font-style: italic;
+ font-weight: 600;
+ letter-spacing: 0.08em;
+ white-space: nowrap;
+ }
+
.diagram-container {
background: var(--panel);
border-radius: 1rem;
@@ -588,6 +716,35 @@
linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;
opacity: 0.58;
}
+ html[data-preset="editorial"] .diagram-container {
+ overflow: hidden;
+ border-color: var(--panel-border);
+ border-radius: 0.38rem;
+ background:
+ linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),
+ var(--panel);
+ box-shadow:
+ 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),
+ 0 18px 48px color-mix(in srgb, #000 19%, transparent);
+ }
+ html[data-preset="editorial"] .diagram-container::after {
+ position: absolute;
+ z-index: 10;
+ top: 0.72rem;
+ right: 1.25rem;
+ padding: 0.2rem 0.52rem;
+ border: 1px solid var(--panel-border);
+ background: var(--panel);
+ color: var(--arrow-emphasis);
+ content: "ARCHIFY / PLATE 04";
+ font-family: Georgia, 'Times New Roman', serif;
+ font-size: 0.52rem;
+ font-style: italic;
+ font-weight: 600;
+ letter-spacing: 0.09em;
+ pointer-events: none;
+ }
+ html[data-embed="true"][data-preset="editorial"] .diagram-container::after { display: none; }
html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-motion="running"] .diagram-container::before {
content: "";
position: absolute;
@@ -2518,6 +2675,22 @@
border-top: 2px solid var(--frontend-stroke);
}
+ html[data-preset="editorial"] .card {
+ position: relative;
+ border-radius: 0.28rem;
+ background: var(--panel);
+ box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);
+ }
+ html[data-preset="editorial"] .card::before {
+ position: absolute;
+ top: -1px;
+ left: 1.25rem;
+ width: 3.25rem;
+ border-top: 3px solid var(--arrow-emphasis);
+ content: "";
+ }
+ html[data-preset="editorial"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }
+
.card-header {
display: flex;
align-items: center;
@@ -2697,6 +2870,7 @@
.toolbar #btn-motion[hidden] { display: none !important; }
.toolbar #btn-motion { min-width: 4.4rem; }
.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }
+ .toolbar .preset-wrap { position: relative; }
.toolbar #btn-preset { min-width: 5.4rem; }
.preset-control-mark {
width: 0.58rem;
@@ -2717,6 +2891,172 @@
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);
transform: rotate(45deg) scale(0.84);
}
+ #btn-preset[data-preset-option="editorial"] .preset-control-mark {
+ border-color: var(--arrow-emphasis);
+ border-radius: 0;
+ background: var(--arrow-emphasis);
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);
+ transform: rotate(45deg) scale(0.72);
+ }
+ .toolbar .preset-menu {
+ position: absolute;
+ top: calc(100% + 0.375rem);
+ right: 0;
+ display: none;
+ width: 16.5rem;
+ padding: 0.4rem;
+ border: 1px solid var(--toolbar-border);
+ border-radius: 0.5rem;
+ background: var(--toolbar-menu-bg);
+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
+ }
+ .toolbar .preset-menu.open { display: block; }
+ .preset-menu-heading {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 1rem;
+ padding: 0.42rem 0.6rem 0.55rem;
+ color: var(--text-faint);
+ font-size: 0.56rem;
+ letter-spacing: 0.13em;
+ text-transform: uppercase;
+ }
+ .preset-menu-heading span:last-child {
+ font-size: 0.52rem;
+ letter-spacing: 0.04em;
+ text-transform: none;
+ }
+ .toolbar .preset-option {
+ display: grid;
+ grid-template-columns: 2rem minmax(0, 1fr) 1rem;
+ align-items: center;
+ gap: 0.68rem;
+ width: 100%;
+ min-height: 3.35rem;
+ padding: 0.5rem 0.62rem;
+ border: 0;
+ border-radius: 0.34rem;
+ background: transparent;
+ text-align: left;
+ }
+ .toolbar .preset-option:hover,
+ .toolbar .preset-option:focus-visible { background: var(--toolbar-hover); }
+ .preset-option-swatch {
+ position: relative;
+ width: 2rem;
+ height: 1.55rem;
+ overflow: hidden;
+ border: 1px solid #64748b;
+ border-radius: 0.24rem;
+ background: #0f172a;
+ box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
+ }
+ .preset-option-swatch::before,
+ .preset-option-swatch::after { position: absolute; content: ""; }
+ .preset-option-swatch.classic::before {
+ top: 0.42rem;
+ right: 0.35rem;
+ bottom: 0.42rem;
+ left: 0.35rem;
+ border: 1px solid #22d3ee;
+ border-radius: 0.16rem;
+ background: rgba(34, 211, 238, 0.14);
+ }
+ .preset-option-swatch.signal-flow {
+ border-color: #29415f;
+ background: linear-gradient(135deg, #07101e 10%, #10243c 100%);
+ }
+ .preset-option-swatch.signal-flow::before {
+ top: 50%;
+ right: 0.2rem;
+ left: 0.2rem;
+ height: 1px;
+ background: linear-gradient(90deg, #67e8f9, #c4b5fd);
+ box-shadow: 0 0 8px #67e8f9;
+ }
+ .preset-option-swatch.signal-flow::after {
+ top: calc(50% - 0.13rem);
+ right: 0.28rem;
+ width: 0.26rem;
+ height: 0.26rem;
+ border-radius: 50%;
+ background: #67e8f9;
+ box-shadow: 0 0 7px #67e8f9;
+ }
+ .preset-option-swatch.blueprint {
+ border-color: #34799a;
+ border-radius: 0.08rem;
+ background-color: #0a2031;
+ background-image:
+ linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);
+ background-size: 0.42rem 0.42rem;
+ }
+ .preset-option-swatch.blueprint::before {
+ top: 0.34rem;
+ right: 0.38rem;
+ bottom: 0.34rem;
+ left: 0.38rem;
+ border: 1px solid #66d9ef;
+ }
+ .preset-option-swatch.editorial {
+ border-color: #b8aa94;
+ border-radius: 0.08rem;
+ background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);
+ }
+ .preset-option-swatch.editorial::before {
+ top: 0;
+ bottom: 0;
+ left: 0.42rem;
+ width: 1px;
+ background: #c9502d;
+ opacity: 0.72;
+ }
+ .preset-option-swatch.editorial::after {
+ top: 0.52rem;
+ right: 0.45rem;
+ width: 0.38rem;
+ height: 0.38rem;
+ background: #c9502d;
+ transform: rotate(45deg);
+ }
+ .preset-option-copy { min-width: 0; }
+ .preset-option-copy strong,
+ .preset-option-copy small { display: block; }
+ .preset-option-copy strong {
+ color: var(--toolbar-text);
+ font-size: 0.72rem;
+ font-weight: 600;
+ }
+ .preset-option-copy small {
+ margin-top: 0.16rem;
+ overflow: hidden;
+ color: var(--text-faint);
+ font-size: 0.57rem;
+ font-weight: 400;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ }
+ .preset-option-check {
+ color: var(--frontend-stroke);
+ font-size: 0.78rem;
+ opacity: 0;
+ }
+ .preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }
+ html[data-preset="editorial"] .toolbar button,
+ html[data-preset="editorial"] .preset-menu,
+ html[data-preset="editorial"] .export-menu,
+ html[data-preset="editorial"] .overview-map,
+ html[data-preset="editorial"] .semantic-lens,
+ html[data-preset="editorial"] .route-probe,
+ html[data-preset="editorial"] .focus-chip,
+ html[data-preset="editorial"] .diagram-guide,
+ html[data-preset="editorial"] .node-finder,
+ html[data-preset="editorial"] .guided-views,
+ html[data-preset="editorial"] .share-chapter-cue {
+ border-radius: 0.3rem;
+ }
.motion-control-dot {
width: 0.46rem;
height: 0.46rem;
@@ -2794,20 +3134,29 @@
@media (max-width: 720px) {
body { padding: 1rem; }
+ .toolbar .preset-menu {
+ position: fixed;
+ top: 4.5rem;
+ right: 1rem;
+ left: 1rem;
+ width: auto;
+ }
.toolbar {
- position: static;
+ position: relative;
justify-content: flex-end;
margin-bottom: 1rem;
}
.header { margin-bottom: 1.25rem; padding-right: 0; }
html[data-preset="signal-flow"] .header,
- html[data-preset="blueprint"] .header { padding-right: 0; }
+ html[data-preset="blueprint"] .header,
+ html[data-preset="editorial"] .header { padding-right: 0; }
.header-row {
gap: 0.75rem;
align-items: flex-start;
}
html[data-preset="signal-flow"] .header-row,
- html[data-preset="blueprint"] .header-row { flex-wrap: wrap; }
+ html[data-preset="blueprint"] .header-row,
+ html[data-preset="editorial"] .header-row { flex-wrap: wrap; }
html[data-preset="signal-flow"] .header-row::after {
margin-left: 0;
order: 3;
@@ -2816,6 +3165,10 @@
margin-left: 0;
order: 3;
}
+ html[data-preset="editorial"] .header-row::after {
+ margin-left: 0;
+ order: 3;
+ }
h1 {
font-size: 1.25rem;
line-height: 1.25;
@@ -3513,6 +3866,11 @@
stroke-linecap: square;
filter: none;
}
+ svg[data-preset="editorial"] .relationship-flow-pulse {
+ stroke: var(--arrow-emphasis);
+ stroke-width: 2.75;
+ filter: none;
+ }
.semantic-flow-token {
color: var(--frontend-stroke);
opacity: 0;
@@ -3555,6 +3913,7 @@
filter: drop-shadow(0 0 5px currentColor);
}
svg[data-preset="blueprint"] .semantic-flow-token { filter: none; }
+ svg[data-preset="editorial"] .semantic-flow-token { filter: none; }
html[data-embed="true"] .relationship-pulse-overlay { display: none; }
/* Intent Trace is a temporary, pre-click exploration layer. Related
@@ -3595,6 +3954,8 @@
filter: none;
stroke-linecap: square;
}
+ svg[data-preset="editorial"] [data-intent-trace-selected],
+ svg[data-preset="editorial"] .intent-trace-flow { filter: none; }
.intent-trace-status {
position: absolute;
width: 1px;
@@ -3678,6 +4039,25 @@
filter: none;
stroke-linecap: square;
}
+ svg[data-preset="editorial"] [data-route-start],
+ svg[data-preset="editorial"] [data-route-end],
+ svg[data-preset="editorial"] [data-route-step],
+ svg[data-preset="editorial"] .route-probe-flow,
+ svg[data-preset="editorial"] .route-journey-flow { filter: none; }
+
+ svg[data-preset="editorial"] .c-grid {
+ stroke-dasharray: 1 4;
+ opacity: 0.48;
+ }
+ svg[data-preset="editorial"] .c-region {
+ fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);
+ stroke-dasharray: 9 4;
+ }
+ svg[data-preset="editorial"] [data-node-id]:hover,
+ svg[data-preset="editorial"] [data-node-id]:focus-visible,
+ svg[data-preset="editorial"][data-focus-active] [data-focus-selected] {
+ filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));
+ }
svg[data-preset="blueprint"] .c-grid {
stroke-dasharray: 1 3;
@@ -3763,6 +4143,10 @@
filter: none;
animation: none;
}
+ svg[data-preset="editorial"] .story-trail-flow { filter: none; }
+ svg[data-preset="editorial"][data-story-beat] [data-story-step][data-story-beat-state="active"] {
+ filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 16%, transparent));
+ }
/* Chapter Delta Preview is a static, pre-commit comparison between two
chapter focus sets. Symbols in the rail carry the meaning without color;
@@ -3824,6 +4208,14 @@
animation-name: archify-blueprint-node-pulse;
animation-duration: 3.8s;
}
+ svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {
+ filter: none;
+ animation-duration: 2.2s;
+ }
+ svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {
+ animation-name: archify-editorial-node-pulse;
+ animation-duration: 3.5s;
+ }
/* Embedded proofs are static until a named Story Trail chapter is played.
This keeps proof grids calm and ensures ?play=1 stops all viewer motion
after one 3.2 second chapter instead of leaving ambient trace loops on. */
@@ -3849,6 +4241,10 @@
0%, 72%, 100% { opacity: 1; filter: none; }
18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }
}
+ @keyframes archify-editorial-node-pulse {
+ 0%, 72%, 100% { opacity: 1; filter: none; }
+ 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }
+ }
@keyframes archify-signal-scan {
0%, 18% { opacity: 1; transform: translateX(-70%); }
70% { opacity: 1; transform: translateX(70%); }
@@ -3987,7 +4383,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
- &lt;meta name=&quot;generator&quot; content=&quot;archify 2.12.0&quot;&gt;
+ &lt;meta name=&quot;generator&quot; content=&quot;archify 2.13.0-dev.0&quot;&gt;
&lt;title&gt;Checkout Platform — Baseline Diagram&lt;/title&gt;
&lt;script&gt;
// Resolve the theme before first paint so light-preference users don&#39;t
@@ -4255,6 +4651,83 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
--toolbar-menu-bg: #f9fdff;
}
+ /* ==========================================================
+ EDITORIAL — a warm, publication-minded preset for design
+ reviews, launch notes, and documentation. The diagram keeps
+ the same semantic palette and exact geometry, but trades
+ software chrome for paper, ink, ruled structure, and one
+ restrained vermilion accent.
+ ========================================================== */
+ [data-preset=&quot;editorial&quot;][data-theme=&quot;dark&quot;] {
+ --bg: #181611;
+ --grid: #39342a;
+ --panel: rgba(35, 31, 24, 0.96);
+ --panel-border: #625a4a;
+ --lane-fill: rgba(52, 46, 35, 0.46);
+ --lane-stroke: #726957;
+ --text: #f4eddf;
+ --text-muted: #b9ae9b;
+ --text-dim: #776e60;
+ --text-faint: #9d917e;
+ --mask: #231f18;
+ --frontend-fill: rgba(43, 133, 142, 0.16);
+ --frontend-stroke: #7fc6c7;
+ --backend-fill: rgba(63, 132, 92, 0.16);
+ --backend-stroke: #8fc29e;
+ --database-fill: rgba(117, 91, 141, 0.17);
+ --database-stroke: #c0a4d0;
+ --cloud-fill: rgba(170, 119, 49, 0.16);
+ --cloud-stroke: #d8ad68;
+ --security-fill: rgba(157, 69, 65, 0.17);
+ --security-stroke: #df9085;
+ --messagebus-fill: rgba(174, 79, 42, 0.16);
+ --messagebus-stroke: #df946f;
+ --external-fill: rgba(126, 115, 96, 0.18);
+ --external-stroke: #b8ad99;
+ --arrow: #948978;
+ --arrow-emphasis: #dd6b3d;
+ --toolbar-bg: rgba(35, 31, 24, 0.92);
+ --toolbar-border: #625a4a;
+ --toolbar-text: #eee5d5;
+ --toolbar-hover: #302a20;
+ --toolbar-menu-bg: #231f18;
+ }
+
+ [data-preset=&quot;editorial&quot;][data-theme=&quot;light&quot;] {
+ --bg: #f2eee5;
+ --grid: #d8d0c2;
+ --panel: rgba(251, 248, 241, 0.97);
+ --panel-border: #c4b9a6;
+ --lane-fill: rgba(229, 221, 207, 0.42);
+ --lane-stroke: #b8aa94;
+ --text: #242018;
+ --text-muted: #6f6658;
+ --text-dim: #a09788;
+ --text-faint: #817767;
+ --mask: #fbf8f1;
+ --frontend-fill: rgba(31, 117, 126, 0.09);
+ --frontend-stroke: #287e84;
+ --backend-fill: rgba(42, 119, 75, 0.09);
+ --backend-stroke: #397b53;
+ --database-fill: rgba(105, 75, 130, 0.09);
+ --database-stroke: #765d86;
+ --cloud-fill: rgba(157, 103, 31, 0.1);
+ --cloud-stroke: #9a671f;
+ --security-fill: rgba(153, 58, 52, 0.09);
+ --security-stroke: #9e463f;
+ --messagebus-fill: rgba(182, 70, 27, 0.09);
+ --messagebus-stroke: #ad4b25;
+ --external-fill: rgba(101, 91, 75, 0.09);
+ --external-stroke: #746b5e;
+ --arrow: #8a806f;
+ --arrow-emphasis: #bb4c23;
+ --toolbar-bg: rgba(251, 248, 241, 0.94);
+ --toolbar-border: #c4b9a6;
+ --toolbar-text: #40392f;
+ --toolbar-hover: #fffdf8;
+ --toolbar-menu-bg: #fbf8f1;
+ }
+
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
@@ -4285,6 +4758,12 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
background-position: -1px -1px;
background-attachment: fixed;
}
+ html[data-preset=&quot;editorial&quot;] body {
+ background-image:
+ linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),
+ repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);
+ background-attachment: fixed;
+ }
/* Gallery/embed mode keeps the generated artifact as the source of truth
while presenting only its diagram surface inside a proof card. */
@@ -4353,6 +4832,20 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
backdrop-filter: none;
}
+ html[data-preset=&quot;editorial&quot;] .share-chapter-cue {
+ border-color: var(--panel-border);
+ background:
+ linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 42%),
+ var(--toolbar-menu-bg);
+ box-shadow: 0 10px 30px color-mix(in srgb, #000 18%, transparent);
+ backdrop-filter: none;
+ }
+ html[data-preset=&quot;editorial&quot;] .share-chapter-state { color: var(--arrow-emphasis); }
+ html[data-preset=&quot;editorial&quot;] .share-chapter-state::before {
+ border-radius: 0;
+ box-shadow: none;
+ transform: rotate(45deg) scale(0.8);
+ }
.share-chapter-index {
display: grid;
gap: 0.12rem;
@@ -4492,7 +4985,8 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
.header { margin-bottom: 2rem; padding-right: 29.5rem; }
html[data-preset=&quot;signal-flow&quot;] .header,
- html[data-preset=&quot;blueprint&quot;] .header { padding-right: 29.5rem; }
+ html[data-preset=&quot;blueprint&quot;] .header,
+ html[data-preset=&quot;editorial&quot;] .header { padding-right: 29.5rem; }
.header-row {
display: flex;
@@ -4565,6 +5059,36 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
white-space: nowrap;
}
+ html[data-preset=&quot;editorial&quot;] h1,
+ html[data-preset=&quot;editorial&quot;] .card h3 {
+ font-family: Georgia, &#39;Times New Roman&#39;, &#39;Songti SC&#39;, STSong, serif;
+ letter-spacing: -0.02em;
+ }
+ html[data-preset=&quot;editorial&quot;] h1 { font-size: 1.72rem; font-weight: 600; }
+ html[data-preset=&quot;editorial&quot;] .pulse-dot {
+ width: 9px;
+ height: 9px;
+ border: 1px solid var(--arrow-emphasis);
+ border-radius: 0;
+ background: var(--arrow-emphasis);
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);
+ transform: rotate(45deg);
+ animation: none;
+ }
+ html[data-preset=&quot;editorial&quot;] .header-row::after {
+ content: &quot;EDITORIAL / FIELD NOTE&quot;;
+ margin-left: auto;
+ padding: 0.32rem 0 0.24rem;
+ border-bottom: 2px solid var(--arrow-emphasis);
+ color: var(--arrow-emphasis);
+ font-family: Georgia, &#39;Times New Roman&#39;, serif;
+ font-size: 0.625rem;
+ font-style: italic;
+ font-weight: 600;
+ letter-spacing: 0.08em;
+ white-space: nowrap;
+ }
+
.diagram-container {
background: var(--panel);
border-radius: 1rem;
@@ -4609,6 +5133,35 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;
opacity: 0.58;
}
+ html[data-preset=&quot;editorial&quot;] .diagram-container {
+ overflow: hidden;
+ border-color: var(--panel-border);
+ border-radius: 0.38rem;
+ background:
+ linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),
+ var(--panel);
+ box-shadow:
+ 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),
+ 0 18px 48px color-mix(in srgb, #000 19%, transparent);
+ }
+ html[data-preset=&quot;editorial&quot;] .diagram-container::after {
+ position: absolute;
+ z-index: 10;
+ top: 0.72rem;
+ right: 1.25rem;
+ padding: 0.2rem 0.52rem;
+ border: 1px solid var(--panel-border);
+ background: var(--panel);
+ color: var(--arrow-emphasis);
+ content: &quot;ARCHIFY / PLATE 04&quot;;
+ font-family: Georgia, &#39;Times New Roman&#39;, serif;
+ font-size: 0.52rem;
+ font-style: italic;
+ font-weight: 600;
+ letter-spacing: 0.09em;
+ pointer-events: none;
+ }
+ html[data-embed=&quot;true&quot;][data-preset=&quot;editorial&quot;] .diagram-container::after { display: none; }
html[data-motion-capable=&quot;true&quot;][data-preset=&quot;signal-flow&quot;][data-ambient-motion=&quot;running&quot;] .diagram-container::before {
content: &quot;&quot;;
position: absolute;
@@ -6539,6 +7092,22 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
border-top: 2px solid var(--frontend-stroke);
}
+ html[data-preset=&quot;editorial&quot;] .card {
+ position: relative;
+ border-radius: 0.28rem;
+ background: var(--panel);
+ box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);
+ }
+ html[data-preset=&quot;editorial&quot;] .card::before {
+ position: absolute;
+ top: -1px;
+ left: 1.25rem;
+ width: 3.25rem;
+ border-top: 3px solid var(--arrow-emphasis);
+ content: &quot;&quot;;
+ }
+ html[data-preset=&quot;editorial&quot;] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }
+
.card-header {
display: flex;
align-items: center;
@@ -6718,6 +7287,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
.toolbar #btn-motion[hidden] { display: none !important; }
.toolbar #btn-motion { min-width: 4.4rem; }
.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }
+ .toolbar .preset-wrap { position: relative; }
.toolbar #btn-preset { min-width: 5.4rem; }
.preset-control-mark {
width: 0.58rem;
@@ -6738,6 +7308,172 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);
transform: rotate(45deg) scale(0.84);
}
+ #btn-preset[data-preset-option=&quot;editorial&quot;] .preset-control-mark {
+ border-color: var(--arrow-emphasis);
+ border-radius: 0;
+ background: var(--arrow-emphasis);
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);
+ transform: rotate(45deg) scale(0.72);
+ }
+ .toolbar .preset-menu {
+ position: absolute;
+ top: calc(100% + 0.375rem);
+ right: 0;
+ display: none;
+ width: 16.5rem;
+ padding: 0.4rem;
+ border: 1px solid var(--toolbar-border);
+ border-radius: 0.5rem;
+ background: var(--toolbar-menu-bg);
+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
+ }
+ .toolbar .preset-menu.open { display: block; }
+ .preset-menu-heading {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 1rem;
+ padding: 0.42rem 0.6rem 0.55rem;
+ color: var(--text-faint);
+ font-size: 0.56rem;
+ letter-spacing: 0.13em;
+ text-transform: uppercase;
+ }
+ .preset-menu-heading span:last-child {
+ font-size: 0.52rem;
+ letter-spacing: 0.04em;
+ text-transform: none;
+ }
+ .toolbar .preset-option {
+ display: grid;
+ grid-template-columns: 2rem minmax(0, 1fr) 1rem;
+ align-items: center;
+ gap: 0.68rem;
+ width: 100%;
+ min-height: 3.35rem;
+ padding: 0.5rem 0.62rem;
+ border: 0;
+ border-radius: 0.34rem;
+ background: transparent;
+ text-align: left;
+ }
+ .toolbar .preset-option:hover,
+ .toolbar .preset-option:focus-visible { background: var(--toolbar-hover); }
+ .preset-option-swatch {
+ position: relative;
+ width: 2rem;
+ height: 1.55rem;
+ overflow: hidden;
+ border: 1px solid #64748b;
+ border-radius: 0.24rem;
+ background: #0f172a;
+ box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
+ }
+ .preset-option-swatch::before,
+ .preset-option-swatch::after { position: absolute; content: &quot;&quot;; }
+ .preset-option-swatch.classic::before {
+ top: 0.42rem;
+ right: 0.35rem;
+ bottom: 0.42rem;
+ left: 0.35rem;
+ border: 1px solid #22d3ee;
+ border-radius: 0.16rem;
+ background: rgba(34, 211, 238, 0.14);
+ }
+ .preset-option-swatch.signal-flow {
+ border-color: #29415f;
+ background: linear-gradient(135deg, #07101e 10%, #10243c 100%);
+ }
+ .preset-option-swatch.signal-flow::before {
+ top: 50%;
+ right: 0.2rem;
+ left: 0.2rem;
+ height: 1px;
+ background: linear-gradient(90deg, #67e8f9, #c4b5fd);
+ box-shadow: 0 0 8px #67e8f9;
+ }
+ .preset-option-swatch.signal-flow::after {
+ top: calc(50% - 0.13rem);
+ right: 0.28rem;
+ width: 0.26rem;
+ height: 0.26rem;
+ border-radius: 50%;
+ background: #67e8f9;
+ box-shadow: 0 0 7px #67e8f9;
+ }
+ .preset-option-swatch.blueprint {
+ border-color: #34799a;
+ border-radius: 0.08rem;
+ background-color: #0a2031;
+ background-image:
+ linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);
+ background-size: 0.42rem 0.42rem;
+ }
+ .preset-option-swatch.blueprint::before {
+ top: 0.34rem;
+ right: 0.38rem;
+ bottom: 0.34rem;
+ left: 0.38rem;
+ border: 1px solid #66d9ef;
+ }
+ .preset-option-swatch.editorial {
+ border-color: #b8aa94;
+ border-radius: 0.08rem;
+ background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);
+ }
+ .preset-option-swatch.editorial::before {
+ top: 0;
+ bottom: 0;
+ left: 0.42rem;
+ width: 1px;
+ background: #c9502d;
+ opacity: 0.72;
+ }
+ .preset-option-swatch.editorial::after {
+ top: 0.52rem;
+ right: 0.45rem;
+ width: 0.38rem;
+ height: 0.38rem;
+ background: #c9502d;
+ transform: rotate(45deg);
+ }
+ .preset-option-copy { min-width: 0; }
+ .preset-option-copy strong,
+ .preset-option-copy small { display: block; }
+ .preset-option-copy strong {
+ color: var(--toolbar-text);
+ font-size: 0.72rem;
+ font-weight: 600;
+ }
+ .preset-option-copy small {
+ margin-top: 0.16rem;
+ overflow: hidden;
+ color: var(--text-faint);
+ font-size: 0.57rem;
+ font-weight: 400;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ }
+ .preset-option-check {
+ color: var(--frontend-stroke);
+ font-size: 0.78rem;
+ opacity: 0;
+ }
+ .preset-option[aria-checked=&quot;true&quot;] .preset-option-check { opacity: 1; }
+ html[data-preset=&quot;editorial&quot;] .toolbar button,
+ html[data-preset=&quot;editorial&quot;] .preset-menu,
+ html[data-preset=&quot;editorial&quot;] .export-menu,
+ html[data-preset=&quot;editorial&quot;] .overview-map,
+ html[data-preset=&quot;editorial&quot;] .semantic-lens,
+ html[data-preset=&quot;editorial&quot;] .route-probe,
+ html[data-preset=&quot;editorial&quot;] .focus-chip,
+ html[data-preset=&quot;editorial&quot;] .diagram-guide,
+ html[data-preset=&quot;editorial&quot;] .node-finder,
+ html[data-preset=&quot;editorial&quot;] .guided-views,
+ html[data-preset=&quot;editorial&quot;] .share-chapter-cue {
+ border-radius: 0.3rem;
+ }
.motion-control-dot {
width: 0.46rem;
height: 0.46rem;
@@ -6815,20 +7551,29 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
@media (max-width: 720px) {
body { padding: 1rem; }
+ .toolbar .preset-menu {
+ position: fixed;
+ top: 4.5rem;
+ right: 1rem;
+ left: 1rem;
+ width: auto;
+ }
.toolbar {
- position: static;
+ position: relative;
justify-content: flex-end;
margin-bottom: 1rem;
}
.header { margin-bottom: 1.25rem; padding-right: 0; }
html[data-preset=&quot;signal-flow&quot;] .header,
- html[data-preset=&quot;blueprint&quot;] .header { padding-right: 0; }
+ html[data-preset=&quot;blueprint&quot;] .header,
+ html[data-preset=&quot;editorial&quot;] .header { padding-right: 0; }
.header-row {
gap: 0.75rem;
align-items: flex-start;
}
html[data-preset=&quot;signal-flow&quot;] .header-row,
- html[data-preset=&quot;blueprint&quot;] .header-row { flex-wrap: wrap; }
+ html[data-preset=&quot;blueprint&quot;] .header-row,
+ html[data-preset=&quot;editorial&quot;] .header-row { flex-wrap: wrap; }
html[data-preset=&quot;signal-flow&quot;] .header-row::after {
margin-left: 0;
order: 3;
@@ -6837,6 +7582,10 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
margin-left: 0;
order: 3;
}
+ html[data-preset=&quot;editorial&quot;] .header-row::after {
+ margin-left: 0;
+ order: 3;
+ }
h1 {
font-size: 1.25rem;
line-height: 1.25;
@@ -7534,6 +8283,11 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
stroke-linecap: square;
filter: none;
}
+ svg[data-preset=&quot;editorial&quot;] .relationship-flow-pulse {
+ stroke: var(--arrow-emphasis);
+ stroke-width: 2.75;
+ filter: none;
+ }
.semantic-flow-token {
color: var(--frontend-stroke);
opacity: 0;
@@ -7576,6 +8330,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
filter: drop-shadow(0 0 5px currentColor);
}
svg[data-preset=&quot;blueprint&quot;] .semantic-flow-token { filter: none; }
+ svg[data-preset=&quot;editorial&quot;] .semantic-flow-token { filter: none; }
html[data-embed=&quot;true&quot;] .relationship-pulse-overlay { display: none; }
/* Intent Trace is a temporary, pre-click exploration layer. Related
@@ -7616,6 +8371,8 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
filter: none;
stroke-linecap: square;
}
+ svg[data-preset=&quot;editorial&quot;] [data-intent-trace-selected],
+ svg[data-preset=&quot;editorial&quot;] .intent-trace-flow { filter: none; }
.intent-trace-status {
position: absolute;
width: 1px;
@@ -7699,6 +8456,25 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
filter: none;
stroke-linecap: square;
}
+ svg[data-preset=&quot;editorial&quot;] [data-route-start],
+ svg[data-preset=&quot;editorial&quot;] [data-route-end],
+ svg[data-preset=&quot;editorial&quot;] [data-route-step],
+ svg[data-preset=&quot;editorial&quot;] .route-probe-flow,
+ svg[data-preset=&quot;editorial&quot;] .route-journey-flow { filter: none; }
+
+ svg[data-preset=&quot;editorial&quot;] .c-grid {
+ stroke-dasharray: 1 4;
+ opacity: 0.48;
+ }
+ svg[data-preset=&quot;editorial&quot;] .c-region {
+ fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);
+ stroke-dasharray: 9 4;
+ }
+ svg[data-preset=&quot;editorial&quot;] [data-node-id]:hover,
+ svg[data-preset=&quot;editorial&quot;] [data-node-id]:focus-visible,
+ svg[data-preset=&quot;editorial&quot;][data-focus-active] [data-focus-selected] {
+ filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));
+ }
svg[data-preset=&quot;blueprint&quot;] .c-grid {
stroke-dasharray: 1 3;
@@ -7784,6 +8560,10 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
filter: none;
animation: none;
}
+ svg[data-preset=&quot;editorial&quot;] .story-trail-flow { filter: none; }
+ svg[data-preset=&quot;editorial&quot;][data-story-beat] [data-story-step][data-story-beat-state=&quot;active&quot;] {
+ filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 16%, transparent));
+ }
/* Chapter Delta Preview is a static, pre-commit comparison between two
chapter focus sets. Symbols in the rail carry the meaning without color;
@@ -7845,6 +8625,14 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
animation-name: archify-blueprint-node-pulse;
animation-duration: 3.8s;
}
+ svg[data-preset=&quot;editorial&quot;][data-animation=&quot;trace&quot;] [data-animate=&quot;edge&quot;] {
+ filter: none;
+ animation-duration: 2.2s;
+ }
+ svg[data-preset=&quot;editorial&quot;][data-animation=&quot;trace&quot;] [data-animate=&quot;node&quot;] {
+ animation-name: archify-editorial-node-pulse;
+ animation-duration: 3.5s;
+ }
/* Embedded proofs are static until a named Story Trail chapter is played.
This keeps proof grids calm and ensures ?play=1 stops all viewer motion
after one 3.2 second chapter instead of leaving ambient trace loops on. */
@@ -7870,6 +8658,10 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
0%, 72%, 100% { opacity: 1; filter: none; }
18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }
}
+ @keyframes archify-editorial-node-pulse {
+ 0%, 72%, 100% { opacity: 1; filter: none; }
+ 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }
+ }
@keyframes archify-signal-scan {
0%, 18% { opacity: 1; transform: translateX(-70%); }
70% { opacity: 1; transform: translateX(70%); }
@@ -8002,12 +8794,42 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
&lt;span id=&quot;theme-icon&quot; aria-hidden=&quot;true&quot;&gt;&amp;#9790;&lt;/span&gt;
&lt;span id=&quot;theme-label&quot;&gt;Dark&lt;/span&gt;
&lt;/button&gt;
- &lt;button id=&quot;btn-preset&quot; type=&quot;button&quot;
- title=&quot;Cycle visual style (S)&quot;
- aria-label=&quot;Cycle visual style&quot;&gt;
- &lt;span class=&quot;preset-control-mark&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
- &lt;span id=&quot;preset-label&quot;&gt;Style&lt;/span&gt;
- &lt;/button&gt;
+ &lt;div class=&quot;preset-wrap&quot;&gt;
+ &lt;button id=&quot;btn-preset&quot; type=&quot;button&quot;
+ title=&quot;Choose visual style (S cycles)&quot;
+ aria-label=&quot;Choose visual style&quot;
+ aria-haspopup=&quot;menu&quot;
+ aria-expanded=&quot;false&quot;
+ aria-controls=&quot;preset-menu&quot;
+ aria-keyshortcuts=&quot;S&quot;&gt;
+ &lt;span class=&quot;preset-control-mark&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span id=&quot;preset-label&quot;&gt;Style&lt;/span&gt;
+ &lt;span aria-hidden=&quot;true&quot;&gt;&amp;#9662;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;div class=&quot;preset-menu&quot; id=&quot;preset-menu&quot; role=&quot;menu&quot; aria-label=&quot;Visual style&quot;&gt;
+ &lt;div class=&quot;preset-menu-heading&quot; role=&quot;presentation&quot;&gt;&lt;span&gt;Visual identity&lt;/span&gt;&lt;span&gt;S cycles&lt;/span&gt;&lt;/div&gt;
+ &lt;button class=&quot;preset-option&quot; data-preset-value=&quot;classic&quot; type=&quot;button&quot; role=&quot;menuitemradio&quot; aria-checked=&quot;false&quot; tabindex=&quot;-1&quot;&gt;
+ &lt;span class=&quot;preset-option-swatch classic&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-copy&quot;&gt;&lt;strong&gt;Classic&lt;/strong&gt;&lt;small&gt;Stable technical default&lt;/small&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-check&quot; aria-hidden=&quot;true&quot;&gt;&amp;#10003;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;button class=&quot;preset-option&quot; data-preset-value=&quot;signal-flow&quot; type=&quot;button&quot; role=&quot;menuitemradio&quot; aria-checked=&quot;false&quot; tabindex=&quot;-1&quot;&gt;
+ &lt;span class=&quot;preset-option-swatch signal-flow&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-copy&quot;&gt;&lt;strong&gt;Signal Flow&lt;/strong&gt;&lt;small&gt;Motion-forward presentation&lt;/small&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-check&quot; aria-hidden=&quot;true&quot;&gt;&amp;#10003;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;button class=&quot;preset-option&quot; data-preset-value=&quot;blueprint&quot; type=&quot;button&quot; role=&quot;menuitemradio&quot; aria-checked=&quot;false&quot; tabindex=&quot;-1&quot;&gt;
+ &lt;span class=&quot;preset-option-swatch blueprint&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-copy&quot;&gt;&lt;strong&gt;Blueprint&lt;/strong&gt;&lt;small&gt;Engineering review&lt;/small&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-check&quot; aria-hidden=&quot;true&quot;&gt;&amp;#10003;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;button class=&quot;preset-option&quot; data-preset-value=&quot;editorial&quot; type=&quot;button&quot; role=&quot;menuitemradio&quot; aria-checked=&quot;false&quot; tabindex=&quot;-1&quot;&gt;
+ &lt;span class=&quot;preset-option-swatch editorial&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-copy&quot;&gt;&lt;strong&gt;Editorial&lt;/strong&gt;&lt;small&gt;Publication and launch notes&lt;/small&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-check&quot; aria-hidden=&quot;true&quot;&gt;&amp;#10003;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;/div&gt;
+ &lt;/div&gt;
&lt;button id=&quot;btn-motion&quot; type=&quot;button&quot; hidden
title=&quot;Pause motion&quot;
aria-label=&quot;Pause motion&quot;
@@ -8101,7 +8923,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
&lt;/div&gt;
&lt;!-- Main Diagram --&gt;
- &lt;div class=&quot;diagram-container&quot; data-detail-level=&quot;map&quot;&gt;
+ &lt;div class=&quot;diagram-container&quot; data-detail-level=&quot;read&quot;&gt;
&lt;svg viewBox=&quot;0 0 1020 548&quot; role=&quot;img&quot; aria-labelledby=&quot;archify-diagram-title archify-diagram-description&quot; data-preset=&quot;signal-flow&quot; data-quality-profile=&quot;standard&quot; data-quality-gates=&quot;advisory&quot;&gt;
&lt;title id=&quot;archify-diagram-title&quot;&gt;Checkout Platform — Baseline&lt;/title&gt;
&lt;desc id=&quot;archify-diagram-description&quot;&gt;Before fraud screening moved into the payment path&lt;/desc&gt;
@@ -8475,7 +9297,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
&lt;!-- Footer --&gt;
&lt;p class=&quot;footer&quot;&gt;
- Architecture diagram &amp;bull; Built with Archify&lt;span class=&quot;no-print&quot;&gt; &amp;bull; &lt;a class=&quot;artifact-start-link&quot; href=&quot;https://tt-a1i.github.io/archify/start.html?type=architecture&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Create yours &amp;nearr;&lt;/a&gt; &amp;bull; Hover to trace &amp;bull; &lt;kbd&gt;R&lt;/kbd&gt; route &amp;bull; Click to focus &amp;bull; &lt;kbd&gt;+&lt;/kbd&gt;/&lt;kbd&gt;&amp;minus;&lt;/kbd&gt; zoom &amp;bull; &lt;kbd&gt;M&lt;/kbd&gt; radar &amp;bull; &lt;kbd&gt;T&lt;/kbd&gt; theme &amp;bull; &lt;kbd&gt;E&lt;/kbd&gt; export&lt;/span&gt;
+ Architecture diagram &amp;bull; Built with Archify&lt;span class=&quot;no-print&quot;&gt; &amp;bull; &lt;a class=&quot;artifact-start-link&quot; href=&quot;https://tt-a1i.github.io/archify/start.html?type=architecture&amp;amp;source=artifact&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Create yours &amp;nearr;&lt;/a&gt; &amp;bull; Hover to trace &amp;bull; &lt;kbd&gt;R&lt;/kbd&gt; route &amp;bull; Click to focus &amp;bull; &lt;kbd&gt;+&lt;/kbd&gt;/&lt;kbd&gt;&amp;minus;&lt;/kbd&gt; zoom &amp;bull; &lt;kbd&gt;M&lt;/kbd&gt; radar &amp;bull; &lt;kbd&gt;T&lt;/kbd&gt; theme &amp;bull; &lt;kbd&gt;E&lt;/kbd&gt; export&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
@@ -8504,18 +9326,22 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
/* ============================================================
- Visual style try-on — one topology, three bundled presets.
+ Visual style try-on — one topology, four bundled presets.
The reader&#39;s choice is intentionally session-only: it updates the
live page and canonical SVG together, but never rewrites the source,
URL, or a later diagram&#39;s authored default.
============================================================ */
Archify.preset = (function () {
- var PRESETS = [&#39;classic&#39;, &#39;signal-flow&#39;, &#39;blueprint&#39;];
- var LABELS = { classic: &#39;Classic&#39;, &#39;signal-flow&#39;: &#39;Flow&#39;, blueprint: &#39;Blueprint&#39; };
+ var PRESETS = [&#39;classic&#39;, &#39;signal-flow&#39;, &#39;blueprint&#39;, &#39;editorial&#39;];
+ var LABELS = { classic: &#39;Classic&#39;, &#39;signal-flow&#39;: &#39;Flow&#39;, blueprint: &#39;Blueprint&#39;, editorial: &#39;Editorial&#39; };
var html = document.documentElement;
var svg = document.querySelector(&#39;.diagram-container svg&#39;);
var btn = document.getElementById(&#39;btn-preset&#39;);
var label = document.getElementById(&#39;preset-label&#39;);
+ var menu = document.getElementById(&#39;preset-menu&#39;);
+ var options = function () {
+ return Array.prototype.slice.call(menu.querySelectorAll(&#39;[data-preset-value]&#39;));
+ };
var authored = PRESETS.indexOf(html.getAttribute(&#39;data-preset&#39;)) &gt;= 0
? html.getAttribute(&#39;data-preset&#39;)
: &#39;classic&#39;;
@@ -8534,16 +9360,80 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
svg.setAttribute(&#39;data-preset&#39;, preset);
btn.setAttribute(&#39;data-preset-option&#39;, preset);
label.textContent = LABELS[preset];
- var next = nextAfter(preset);
- btn.setAttribute(&#39;aria-label&#39;, &#39;Visual style: &#39; + LABELS[preset] + &#39;. Activate for &#39; + LABELS[next]);
- btn.title = &#39;Cycle visual style (S)&#39;;
+ btn.setAttribute(&#39;aria-label&#39;, &#39;Visual style: &#39; + LABELS[preset] + &#39;. Choose visual style&#39;);
+ btn.title = &#39;Choose visual style (S cycles)&#39;;
+ options().forEach(function (option) {
+ var selected = option.getAttribute(&#39;data-preset-value&#39;) === preset;
+ option.setAttribute(&#39;aria-checked&#39;, String(selected));
+ });
return true;
}
function cycle() { return apply(nextAfter(current())); }
+ function isOpen() { return menu.classList.contains(&#39;open&#39;); }
+ function open(focusLast) {
+ if (html.getAttribute(&#39;data-embed&#39;) === &#39;true&#39;) return false;
+ if (Archify.exportMenu &amp;&amp; Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);
+ menu.classList.add(&#39;open&#39;);
+ btn.setAttribute(&#39;aria-expanded&#39;, &#39;true&#39;);
+ var available = options();
+ var selected = available.find(function (option) { return option.getAttribute(&#39;aria-checked&#39;) === &#39;true&#39;; });
+ var target = focusLast ? available[available.length - 1] : (selected || available[0]);
+ if (target) target.focus();
+ return true;
+ }
+ function close(focusTrigger) {
+ menu.classList.remove(&#39;open&#39;);
+ btn.setAttribute(&#39;aria-expanded&#39;, &#39;false&#39;);
+ if (focusTrigger) btn.focus();
+ return false;
+ }
+
apply(authored);
- btn.addEventListener(&#39;click&#39;, cycle);
- return { cycle: cycle, apply: apply, current: current, authored: authored };
+ btn.addEventListener(&#39;click&#39;, function (e) {
+ e.stopPropagation();
+ if (isOpen()) close(false);
+ else open(false);
+ });
+ btn.addEventListener(&#39;keydown&#39;, function (e) {
+ if (e.key === &#39;ArrowDown&#39; || e.key === &#39;ArrowUp&#39;) {
+ e.preventDefault();
+ if (!isOpen()) open(e.key === &#39;ArrowUp&#39;);
+ }
+ });
+ document.addEventListener(&#39;click&#39;, function (e) {
+ if (!menu.contains(e.target) &amp;&amp; e.target !== btn) close(false);
+ });
+ menu.addEventListener(&#39;click&#39;, function (e) {
+ var option = e.target.closest(&#39;[data-preset-value]&#39;);
+ if (!option || !menu.contains(option)) return;
+ if (apply(option.getAttribute(&#39;data-preset-value&#39;))) close(true);
+ });
+ menu.addEventListener(&#39;keydown&#39;, function (e) {
+ if (e.key === &#39;Escape&#39;) { e.preventDefault(); close(true); return; }
+ if (e.key === &#39;Tab&#39;) { close(false); return; }
+ var available = options();
+ var active = available.indexOf(document.activeElement);
+ switch (e.key) {
+ case &#39;ArrowDown&#39;:
+ e.preventDefault();
+ if (available.length) available[(active + 1 + available.length) % available.length].focus();
+ break;
+ case &#39;ArrowUp&#39;:
+ e.preventDefault();
+ if (available.length) available[(active - 1 + available.length) % available.length].focus();
+ break;
+ case &#39;Home&#39;:
+ e.preventDefault();
+ if (available[0]) available[0].focus();
+ break;
+ case &#39;End&#39;:
+ e.preventDefault();
+ if (available.length) available[available.length - 1].focus();
+ break;
+ }
+ });
+ return { cycle: cycle, apply: apply, current: current, authored: authored, open: open, close: close, isOpen: isOpen };
})();
/* ============================================================
@@ -9735,6 +10625,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
function open(focusLast) {
+ if (Archify.preset &amp;&amp; Archify.preset.isOpen()) Archify.preset.close(false);
if (Archify.semanticLens &amp;&amp; typeof Archify.semanticLens.clearPreview === &#39;function&#39;) Archify.semanticLens.clearPreview();
if (Archify.semanticLens &amp;&amp; Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });
syncRouteShareItem();
@@ -13655,7 +14546,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
function detailLevel() {
if (state.mode === &#39;semantic&#39;) return &#39;full&#39;;
if (state.scale &gt;= 1.75) return &#39;full&#39;;
- if (state.scale &gt;= 1.25) return &#39;read&#39;;
+ if (state.scale &gt;= 1) return &#39;read&#39;;
return &#39;map&#39;;
}
function renderControls() {
@@ -16565,6 +17456,9 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
if (e.defaultPrevented) return;
var t = e.target;
if (t &amp;&amp; (t.tagName === &#39;INPUT&#39; || t.tagName === &#39;TEXTAREA&#39; || t.isContentEditable)) return;
+ if (Archify.preset &amp;&amp; Archify.preset.isOpen() &amp;&amp; e.key !== &#39;Escape&#39; &amp;&amp; e.key !== &#39;s&#39; &amp;&amp; e.key !== &#39;S&#39;) {
+ Archify.preset.close(false);
+ }
if (e.key === &#39;?&#39;) {
e.preventDefault();
Archify.guide.toggle();
@@ -16601,6 +17495,9 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
} else if (e.key === &#39;0&#39;) {
e.preventDefault();
Archify.view.reset();
+ } else if (e.key === &#39;Escape&#39; &amp;&amp; Archify.preset.isOpen()) {
+ e.preventDefault();
+ Archify.preset.close(true);
} else if (e.key === &#39;Escape&#39; &amp;&amp; Archify.semanticLens.isOpen()) {
e.preventDefault();
Archify.semanticLens.close({ restoreFocus: true });
@@ -16691,7 +17588,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
<path data-edge-from="buyers" data-edge-to="edge" data-edge-label="HTTPS" data-edge-key="1" data-edge-id="buyer-request" data-composition-points="160,280;220,280" d="M 160 280 L 220 280" class="a-emphasis" stroke-width="1.8" marker-end="url(#delta-head-arrowhead-emphasis)" data-delta-state="same"/>
<path data-edge-from="queue" data-edge-to="worker" data-edge-key="2" data-edge-id="consume-order" data-composition-points="560,450;600,450;600,430;640,430" d="M 560 450 L 592 450 Q 600 450 600 442 L 600 438 Q 600 430 608 430 L 640 430" class="a-default" stroke-width="1.5" marker-end="url(#delta-head-arrowhead)" data-delta-state="same"/>
<path data-edge-from="edge" data-edge-to="checkout" data-edge-key="3" data-edge-id="edge-checkout" data-composition-points="350,280;430,280" d="M 350 280 L 430 280" class="a-default" stroke-width="1.5" marker-end="url(#delta-head-arrowhead)" data-delta-state="same"/>
- <path data-edge-from="checkout" data-edge-to="fraud" data-edge-label="screen" data-edge-key="4" data-edge-id="fraud-check" data-composition-points="495,250;600,250;600,160;705,160" d="M 495 250 L 592 250 Q 600 250 600 242 L 600 168 Q 600 160 608 160 L 705 160" class="a-security" stroke-width="1.5" marker-end="url(#delta-head-arrowhead-security)" data-delta-state="added" data-delta-classifications="topology"/>
+ <path data-edge-from="checkout" data-edge-to="fraud" data-edge-label="screen" data-edge-key="4" data-edge-id="fraud-check" data-composition-points="495,250;495,205;705,205;705,160" d="M 495 250 L 495 213 Q 495 205 503 205 L 697 205 Q 705 205 705 197 L 705 160" class="a-security" stroke-width="1.5" marker-end="url(#delta-head-arrowhead-security)" data-delta-state="added" data-delta-classifications="topology"/>
<path data-edge-from="checkout" data-edge-to="orders" data-edge-label="SQL tx" data-edge-key="5" data-edge-id="persist-order" data-composition-points="560,280;640,280" d="M 560 280 L 640 280" class="a-default" stroke-width="1.5" marker-end="url(#delta-head-arrowhead)" data-delta-state="changed" data-delta-classifications="semantic"/>
<path data-edge-from="checkout" data-edge-to="queue" data-edge-label="accepted" data-edge-key="6" data-edge-id="publish-order" data-composition-points="495,310;495,420" d="M 495 310 L 495 420" class="a-dashed" stroke-width="1.5" marker-end="url(#delta-head-arrowhead-dashed)" data-delta-state="rerouted" data-delta-classifications="geometry"/>
@@ -16898,7 +17795,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
- &lt;meta name=&quot;generator&quot; content=&quot;archify 2.12.0&quot;&gt;
+ &lt;meta name=&quot;generator&quot; content=&quot;archify 2.13.0-dev.0&quot;&gt;
&lt;title&gt;Checkout Platform — Fraud Gate Diagram&lt;/title&gt;
&lt;script&gt;
// Resolve the theme before first paint so light-preference users don&#39;t
@@ -17166,6 +18063,83 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
--toolbar-menu-bg: #f9fdff;
}
+ /* ==========================================================
+ EDITORIAL — a warm, publication-minded preset for design
+ reviews, launch notes, and documentation. The diagram keeps
+ the same semantic palette and exact geometry, but trades
+ software chrome for paper, ink, ruled structure, and one
+ restrained vermilion accent.
+ ========================================================== */
+ [data-preset=&quot;editorial&quot;][data-theme=&quot;dark&quot;] {
+ --bg: #181611;
+ --grid: #39342a;
+ --panel: rgba(35, 31, 24, 0.96);
+ --panel-border: #625a4a;
+ --lane-fill: rgba(52, 46, 35, 0.46);
+ --lane-stroke: #726957;
+ --text: #f4eddf;
+ --text-muted: #b9ae9b;
+ --text-dim: #776e60;
+ --text-faint: #9d917e;
+ --mask: #231f18;
+ --frontend-fill: rgba(43, 133, 142, 0.16);
+ --frontend-stroke: #7fc6c7;
+ --backend-fill: rgba(63, 132, 92, 0.16);
+ --backend-stroke: #8fc29e;
+ --database-fill: rgba(117, 91, 141, 0.17);
+ --database-stroke: #c0a4d0;
+ --cloud-fill: rgba(170, 119, 49, 0.16);
+ --cloud-stroke: #d8ad68;
+ --security-fill: rgba(157, 69, 65, 0.17);
+ --security-stroke: #df9085;
+ --messagebus-fill: rgba(174, 79, 42, 0.16);
+ --messagebus-stroke: #df946f;
+ --external-fill: rgba(126, 115, 96, 0.18);
+ --external-stroke: #b8ad99;
+ --arrow: #948978;
+ --arrow-emphasis: #dd6b3d;
+ --toolbar-bg: rgba(35, 31, 24, 0.92);
+ --toolbar-border: #625a4a;
+ --toolbar-text: #eee5d5;
+ --toolbar-hover: #302a20;
+ --toolbar-menu-bg: #231f18;
+ }
+
+ [data-preset=&quot;editorial&quot;][data-theme=&quot;light&quot;] {
+ --bg: #f2eee5;
+ --grid: #d8d0c2;
+ --panel: rgba(251, 248, 241, 0.97);
+ --panel-border: #c4b9a6;
+ --lane-fill: rgba(229, 221, 207, 0.42);
+ --lane-stroke: #b8aa94;
+ --text: #242018;
+ --text-muted: #6f6658;
+ --text-dim: #a09788;
+ --text-faint: #817767;
+ --mask: #fbf8f1;
+ --frontend-fill: rgba(31, 117, 126, 0.09);
+ --frontend-stroke: #287e84;
+ --backend-fill: rgba(42, 119, 75, 0.09);
+ --backend-stroke: #397b53;
+ --database-fill: rgba(105, 75, 130, 0.09);
+ --database-stroke: #765d86;
+ --cloud-fill: rgba(157, 103, 31, 0.1);
+ --cloud-stroke: #9a671f;
+ --security-fill: rgba(153, 58, 52, 0.09);
+ --security-stroke: #9e463f;
+ --messagebus-fill: rgba(182, 70, 27, 0.09);
+ --messagebus-stroke: #ad4b25;
+ --external-fill: rgba(101, 91, 75, 0.09);
+ --external-stroke: #746b5e;
+ --arrow: #8a806f;
+ --arrow-emphasis: #bb4c23;
+ --toolbar-bg: rgba(251, 248, 241, 0.94);
+ --toolbar-border: #c4b9a6;
+ --toolbar-text: #40392f;
+ --toolbar-hover: #fffdf8;
+ --toolbar-menu-bg: #fbf8f1;
+ }
+
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
@@ -17196,6 +18170,12 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
background-position: -1px -1px;
background-attachment: fixed;
}
+ html[data-preset=&quot;editorial&quot;] body {
+ background-image:
+ linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),
+ repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);
+ background-attachment: fixed;
+ }
/* Gallery/embed mode keeps the generated artifact as the source of truth
while presenting only its diagram surface inside a proof card. */
@@ -17264,6 +18244,20 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
backdrop-filter: none;
}
+ html[data-preset=&quot;editorial&quot;] .share-chapter-cue {
+ border-color: var(--panel-border);
+ background:
+ linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 42%),
+ var(--toolbar-menu-bg);
+ box-shadow: 0 10px 30px color-mix(in srgb, #000 18%, transparent);
+ backdrop-filter: none;
+ }
+ html[data-preset=&quot;editorial&quot;] .share-chapter-state { color: var(--arrow-emphasis); }
+ html[data-preset=&quot;editorial&quot;] .share-chapter-state::before {
+ border-radius: 0;
+ box-shadow: none;
+ transform: rotate(45deg) scale(0.8);
+ }
.share-chapter-index {
display: grid;
gap: 0.12rem;
@@ -17403,7 +18397,8 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
.header { margin-bottom: 2rem; padding-right: 29.5rem; }
html[data-preset=&quot;signal-flow&quot;] .header,
- html[data-preset=&quot;blueprint&quot;] .header { padding-right: 29.5rem; }
+ html[data-preset=&quot;blueprint&quot;] .header,
+ html[data-preset=&quot;editorial&quot;] .header { padding-right: 29.5rem; }
.header-row {
display: flex;
@@ -17476,6 +18471,36 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
white-space: nowrap;
}
+ html[data-preset=&quot;editorial&quot;] h1,
+ html[data-preset=&quot;editorial&quot;] .card h3 {
+ font-family: Georgia, &#39;Times New Roman&#39;, &#39;Songti SC&#39;, STSong, serif;
+ letter-spacing: -0.02em;
+ }
+ html[data-preset=&quot;editorial&quot;] h1 { font-size: 1.72rem; font-weight: 600; }
+ html[data-preset=&quot;editorial&quot;] .pulse-dot {
+ width: 9px;
+ height: 9px;
+ border: 1px solid var(--arrow-emphasis);
+ border-radius: 0;
+ background: var(--arrow-emphasis);
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);
+ transform: rotate(45deg);
+ animation: none;
+ }
+ html[data-preset=&quot;editorial&quot;] .header-row::after {
+ content: &quot;EDITORIAL / FIELD NOTE&quot;;
+ margin-left: auto;
+ padding: 0.32rem 0 0.24rem;
+ border-bottom: 2px solid var(--arrow-emphasis);
+ color: var(--arrow-emphasis);
+ font-family: Georgia, &#39;Times New Roman&#39;, serif;
+ font-size: 0.625rem;
+ font-style: italic;
+ font-weight: 600;
+ letter-spacing: 0.08em;
+ white-space: nowrap;
+ }
+
.diagram-container {
background: var(--panel);
border-radius: 1rem;
@@ -17520,6 +18545,35 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;
opacity: 0.58;
}
+ html[data-preset=&quot;editorial&quot;] .diagram-container {
+ overflow: hidden;
+ border-color: var(--panel-border);
+ border-radius: 0.38rem;
+ background:
+ linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),
+ var(--panel);
+ box-shadow:
+ 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),
+ 0 18px 48px color-mix(in srgb, #000 19%, transparent);
+ }
+ html[data-preset=&quot;editorial&quot;] .diagram-container::after {
+ position: absolute;
+ z-index: 10;
+ top: 0.72rem;
+ right: 1.25rem;
+ padding: 0.2rem 0.52rem;
+ border: 1px solid var(--panel-border);
+ background: var(--panel);
+ color: var(--arrow-emphasis);
+ content: &quot;ARCHIFY / PLATE 04&quot;;
+ font-family: Georgia, &#39;Times New Roman&#39;, serif;
+ font-size: 0.52rem;
+ font-style: italic;
+ font-weight: 600;
+ letter-spacing: 0.09em;
+ pointer-events: none;
+ }
+ html[data-embed=&quot;true&quot;][data-preset=&quot;editorial&quot;] .diagram-container::after { display: none; }
html[data-motion-capable=&quot;true&quot;][data-preset=&quot;signal-flow&quot;][data-ambient-motion=&quot;running&quot;] .diagram-container::before {
content: &quot;&quot;;
position: absolute;
@@ -19450,6 +20504,22 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
border-top: 2px solid var(--frontend-stroke);
}
+ html[data-preset=&quot;editorial&quot;] .card {
+ position: relative;
+ border-radius: 0.28rem;
+ background: var(--panel);
+ box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);
+ }
+ html[data-preset=&quot;editorial&quot;] .card::before {
+ position: absolute;
+ top: -1px;
+ left: 1.25rem;
+ width: 3.25rem;
+ border-top: 3px solid var(--arrow-emphasis);
+ content: &quot;&quot;;
+ }
+ html[data-preset=&quot;editorial&quot;] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }
+
.card-header {
display: flex;
align-items: center;
@@ -19629,6 +20699,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
.toolbar #btn-motion[hidden] { display: none !important; }
.toolbar #btn-motion { min-width: 4.4rem; }
.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }
+ .toolbar .preset-wrap { position: relative; }
.toolbar #btn-preset { min-width: 5.4rem; }
.preset-control-mark {
width: 0.58rem;
@@ -19649,6 +20720,172 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);
transform: rotate(45deg) scale(0.84);
}
+ #btn-preset[data-preset-option=&quot;editorial&quot;] .preset-control-mark {
+ border-color: var(--arrow-emphasis);
+ border-radius: 0;
+ background: var(--arrow-emphasis);
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);
+ transform: rotate(45deg) scale(0.72);
+ }
+ .toolbar .preset-menu {
+ position: absolute;
+ top: calc(100% + 0.375rem);
+ right: 0;
+ display: none;
+ width: 16.5rem;
+ padding: 0.4rem;
+ border: 1px solid var(--toolbar-border);
+ border-radius: 0.5rem;
+ background: var(--toolbar-menu-bg);
+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
+ }
+ .toolbar .preset-menu.open { display: block; }
+ .preset-menu-heading {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 1rem;
+ padding: 0.42rem 0.6rem 0.55rem;
+ color: var(--text-faint);
+ font-size: 0.56rem;
+ letter-spacing: 0.13em;
+ text-transform: uppercase;
+ }
+ .preset-menu-heading span:last-child {
+ font-size: 0.52rem;
+ letter-spacing: 0.04em;
+ text-transform: none;
+ }
+ .toolbar .preset-option {
+ display: grid;
+ grid-template-columns: 2rem minmax(0, 1fr) 1rem;
+ align-items: center;
+ gap: 0.68rem;
+ width: 100%;
+ min-height: 3.35rem;
+ padding: 0.5rem 0.62rem;
+ border: 0;
+ border-radius: 0.34rem;
+ background: transparent;
+ text-align: left;
+ }
+ .toolbar .preset-option:hover,
+ .toolbar .preset-option:focus-visible { background: var(--toolbar-hover); }
+ .preset-option-swatch {
+ position: relative;
+ width: 2rem;
+ height: 1.55rem;
+ overflow: hidden;
+ border: 1px solid #64748b;
+ border-radius: 0.24rem;
+ background: #0f172a;
+ box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
+ }
+ .preset-option-swatch::before,
+ .preset-option-swatch::after { position: absolute; content: &quot;&quot;; }
+ .preset-option-swatch.classic::before {
+ top: 0.42rem;
+ right: 0.35rem;
+ bottom: 0.42rem;
+ left: 0.35rem;
+ border: 1px solid #22d3ee;
+ border-radius: 0.16rem;
+ background: rgba(34, 211, 238, 0.14);
+ }
+ .preset-option-swatch.signal-flow {
+ border-color: #29415f;
+ background: linear-gradient(135deg, #07101e 10%, #10243c 100%);
+ }
+ .preset-option-swatch.signal-flow::before {
+ top: 50%;
+ right: 0.2rem;
+ left: 0.2rem;
+ height: 1px;
+ background: linear-gradient(90deg, #67e8f9, #c4b5fd);
+ box-shadow: 0 0 8px #67e8f9;
+ }
+ .preset-option-swatch.signal-flow::after {
+ top: calc(50% - 0.13rem);
+ right: 0.28rem;
+ width: 0.26rem;
+ height: 0.26rem;
+ border-radius: 50%;
+ background: #67e8f9;
+ box-shadow: 0 0 7px #67e8f9;
+ }
+ .preset-option-swatch.blueprint {
+ border-color: #34799a;
+ border-radius: 0.08rem;
+ background-color: #0a2031;
+ background-image:
+ linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);
+ background-size: 0.42rem 0.42rem;
+ }
+ .preset-option-swatch.blueprint::before {
+ top: 0.34rem;
+ right: 0.38rem;
+ bottom: 0.34rem;
+ left: 0.38rem;
+ border: 1px solid #66d9ef;
+ }
+ .preset-option-swatch.editorial {
+ border-color: #b8aa94;
+ border-radius: 0.08rem;
+ background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);
+ }
+ .preset-option-swatch.editorial::before {
+ top: 0;
+ bottom: 0;
+ left: 0.42rem;
+ width: 1px;
+ background: #c9502d;
+ opacity: 0.72;
+ }
+ .preset-option-swatch.editorial::after {
+ top: 0.52rem;
+ right: 0.45rem;
+ width: 0.38rem;
+ height: 0.38rem;
+ background: #c9502d;
+ transform: rotate(45deg);
+ }
+ .preset-option-copy { min-width: 0; }
+ .preset-option-copy strong,
+ .preset-option-copy small { display: block; }
+ .preset-option-copy strong {
+ color: var(--toolbar-text);
+ font-size: 0.72rem;
+ font-weight: 600;
+ }
+ .preset-option-copy small {
+ margin-top: 0.16rem;
+ overflow: hidden;
+ color: var(--text-faint);
+ font-size: 0.57rem;
+ font-weight: 400;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ }
+ .preset-option-check {
+ color: var(--frontend-stroke);
+ font-size: 0.78rem;
+ opacity: 0;
+ }
+ .preset-option[aria-checked=&quot;true&quot;] .preset-option-check { opacity: 1; }
+ html[data-preset=&quot;editorial&quot;] .toolbar button,
+ html[data-preset=&quot;editorial&quot;] .preset-menu,
+ html[data-preset=&quot;editorial&quot;] .export-menu,
+ html[data-preset=&quot;editorial&quot;] .overview-map,
+ html[data-preset=&quot;editorial&quot;] .semantic-lens,
+ html[data-preset=&quot;editorial&quot;] .route-probe,
+ html[data-preset=&quot;editorial&quot;] .focus-chip,
+ html[data-preset=&quot;editorial&quot;] .diagram-guide,
+ html[data-preset=&quot;editorial&quot;] .node-finder,
+ html[data-preset=&quot;editorial&quot;] .guided-views,
+ html[data-preset=&quot;editorial&quot;] .share-chapter-cue {
+ border-radius: 0.3rem;
+ }
.motion-control-dot {
width: 0.46rem;
height: 0.46rem;
@@ -19726,20 +20963,29 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
@media (max-width: 720px) {
body { padding: 1rem; }
+ .toolbar .preset-menu {
+ position: fixed;
+ top: 4.5rem;
+ right: 1rem;
+ left: 1rem;
+ width: auto;
+ }
.toolbar {
- position: static;
+ position: relative;
justify-content: flex-end;
margin-bottom: 1rem;
}
.header { margin-bottom: 1.25rem; padding-right: 0; }
html[data-preset=&quot;signal-flow&quot;] .header,
- html[data-preset=&quot;blueprint&quot;] .header { padding-right: 0; }
+ html[data-preset=&quot;blueprint&quot;] .header,
+ html[data-preset=&quot;editorial&quot;] .header { padding-right: 0; }
.header-row {
gap: 0.75rem;
align-items: flex-start;
}
html[data-preset=&quot;signal-flow&quot;] .header-row,
- html[data-preset=&quot;blueprint&quot;] .header-row { flex-wrap: wrap; }
+ html[data-preset=&quot;blueprint&quot;] .header-row,
+ html[data-preset=&quot;editorial&quot;] .header-row { flex-wrap: wrap; }
html[data-preset=&quot;signal-flow&quot;] .header-row::after {
margin-left: 0;
order: 3;
@@ -19748,6 +20994,10 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
margin-left: 0;
order: 3;
}
+ html[data-preset=&quot;editorial&quot;] .header-row::after {
+ margin-left: 0;
+ order: 3;
+ }
h1 {
font-size: 1.25rem;
line-height: 1.25;
@@ -20445,6 +21695,11 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
stroke-linecap: square;
filter: none;
}
+ svg[data-preset=&quot;editorial&quot;] .relationship-flow-pulse {
+ stroke: var(--arrow-emphasis);
+ stroke-width: 2.75;
+ filter: none;
+ }
.semantic-flow-token {
color: var(--frontend-stroke);
opacity: 0;
@@ -20487,6 +21742,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
filter: drop-shadow(0 0 5px currentColor);
}
svg[data-preset=&quot;blueprint&quot;] .semantic-flow-token { filter: none; }
+ svg[data-preset=&quot;editorial&quot;] .semantic-flow-token { filter: none; }
html[data-embed=&quot;true&quot;] .relationship-pulse-overlay { display: none; }
/* Intent Trace is a temporary, pre-click exploration layer. Related
@@ -20527,6 +21783,8 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
filter: none;
stroke-linecap: square;
}
+ svg[data-preset=&quot;editorial&quot;] [data-intent-trace-selected],
+ svg[data-preset=&quot;editorial&quot;] .intent-trace-flow { filter: none; }
.intent-trace-status {
position: absolute;
width: 1px;
@@ -20610,6 +21868,25 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
filter: none;
stroke-linecap: square;
}
+ svg[data-preset=&quot;editorial&quot;] [data-route-start],
+ svg[data-preset=&quot;editorial&quot;] [data-route-end],
+ svg[data-preset=&quot;editorial&quot;] [data-route-step],
+ svg[data-preset=&quot;editorial&quot;] .route-probe-flow,
+ svg[data-preset=&quot;editorial&quot;] .route-journey-flow { filter: none; }
+
+ svg[data-preset=&quot;editorial&quot;] .c-grid {
+ stroke-dasharray: 1 4;
+ opacity: 0.48;
+ }
+ svg[data-preset=&quot;editorial&quot;] .c-region {
+ fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);
+ stroke-dasharray: 9 4;
+ }
+ svg[data-preset=&quot;editorial&quot;] [data-node-id]:hover,
+ svg[data-preset=&quot;editorial&quot;] [data-node-id]:focus-visible,
+ svg[data-preset=&quot;editorial&quot;][data-focus-active] [data-focus-selected] {
+ filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));
+ }
svg[data-preset=&quot;blueprint&quot;] .c-grid {
stroke-dasharray: 1 3;
@@ -20695,6 +21972,10 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
filter: none;
animation: none;
}
+ svg[data-preset=&quot;editorial&quot;] .story-trail-flow { filter: none; }
+ svg[data-preset=&quot;editorial&quot;][data-story-beat] [data-story-step][data-story-beat-state=&quot;active&quot;] {
+ filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 16%, transparent));
+ }
/* Chapter Delta Preview is a static, pre-commit comparison between two
chapter focus sets. Symbols in the rail carry the meaning without color;
@@ -20756,6 +22037,14 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
animation-name: archify-blueprint-node-pulse;
animation-duration: 3.8s;
}
+ svg[data-preset=&quot;editorial&quot;][data-animation=&quot;trace&quot;] [data-animate=&quot;edge&quot;] {
+ filter: none;
+ animation-duration: 2.2s;
+ }
+ svg[data-preset=&quot;editorial&quot;][data-animation=&quot;trace&quot;] [data-animate=&quot;node&quot;] {
+ animation-name: archify-editorial-node-pulse;
+ animation-duration: 3.5s;
+ }
/* Embedded proofs are static until a named Story Trail chapter is played.
This keeps proof grids calm and ensures ?play=1 stops all viewer motion
after one 3.2 second chapter instead of leaving ambient trace loops on. */
@@ -20781,6 +22070,10 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
0%, 72%, 100% { opacity: 1; filter: none; }
18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }
}
+ @keyframes archify-editorial-node-pulse {
+ 0%, 72%, 100% { opacity: 1; filter: none; }
+ 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }
+ }
@keyframes archify-signal-scan {
0%, 18% { opacity: 1; transform: translateX(-70%); }
70% { opacity: 1; transform: translateX(70%); }
@@ -20913,12 +22206,42 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
&lt;span id=&quot;theme-icon&quot; aria-hidden=&quot;true&quot;&gt;&amp;#9790;&lt;/span&gt;
&lt;span id=&quot;theme-label&quot;&gt;Dark&lt;/span&gt;
&lt;/button&gt;
- &lt;button id=&quot;btn-preset&quot; type=&quot;button&quot;
- title=&quot;Cycle visual style (S)&quot;
- aria-label=&quot;Cycle visual style&quot;&gt;
- &lt;span class=&quot;preset-control-mark&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
- &lt;span id=&quot;preset-label&quot;&gt;Style&lt;/span&gt;
- &lt;/button&gt;
+ &lt;div class=&quot;preset-wrap&quot;&gt;
+ &lt;button id=&quot;btn-preset&quot; type=&quot;button&quot;
+ title=&quot;Choose visual style (S cycles)&quot;
+ aria-label=&quot;Choose visual style&quot;
+ aria-haspopup=&quot;menu&quot;
+ aria-expanded=&quot;false&quot;
+ aria-controls=&quot;preset-menu&quot;
+ aria-keyshortcuts=&quot;S&quot;&gt;
+ &lt;span class=&quot;preset-control-mark&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span id=&quot;preset-label&quot;&gt;Style&lt;/span&gt;
+ &lt;span aria-hidden=&quot;true&quot;&gt;&amp;#9662;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;div class=&quot;preset-menu&quot; id=&quot;preset-menu&quot; role=&quot;menu&quot; aria-label=&quot;Visual style&quot;&gt;
+ &lt;div class=&quot;preset-menu-heading&quot; role=&quot;presentation&quot;&gt;&lt;span&gt;Visual identity&lt;/span&gt;&lt;span&gt;S cycles&lt;/span&gt;&lt;/div&gt;
+ &lt;button class=&quot;preset-option&quot; data-preset-value=&quot;classic&quot; type=&quot;button&quot; role=&quot;menuitemradio&quot; aria-checked=&quot;false&quot; tabindex=&quot;-1&quot;&gt;
+ &lt;span class=&quot;preset-option-swatch classic&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-copy&quot;&gt;&lt;strong&gt;Classic&lt;/strong&gt;&lt;small&gt;Stable technical default&lt;/small&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-check&quot; aria-hidden=&quot;true&quot;&gt;&amp;#10003;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;button class=&quot;preset-option&quot; data-preset-value=&quot;signal-flow&quot; type=&quot;button&quot; role=&quot;menuitemradio&quot; aria-checked=&quot;false&quot; tabindex=&quot;-1&quot;&gt;
+ &lt;span class=&quot;preset-option-swatch signal-flow&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-copy&quot;&gt;&lt;strong&gt;Signal Flow&lt;/strong&gt;&lt;small&gt;Motion-forward presentation&lt;/small&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-check&quot; aria-hidden=&quot;true&quot;&gt;&amp;#10003;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;button class=&quot;preset-option&quot; data-preset-value=&quot;blueprint&quot; type=&quot;button&quot; role=&quot;menuitemradio&quot; aria-checked=&quot;false&quot; tabindex=&quot;-1&quot;&gt;
+ &lt;span class=&quot;preset-option-swatch blueprint&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-copy&quot;&gt;&lt;strong&gt;Blueprint&lt;/strong&gt;&lt;small&gt;Engineering review&lt;/small&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-check&quot; aria-hidden=&quot;true&quot;&gt;&amp;#10003;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;button class=&quot;preset-option&quot; data-preset-value=&quot;editorial&quot; type=&quot;button&quot; role=&quot;menuitemradio&quot; aria-checked=&quot;false&quot; tabindex=&quot;-1&quot;&gt;
+ &lt;span class=&quot;preset-option-swatch editorial&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-copy&quot;&gt;&lt;strong&gt;Editorial&lt;/strong&gt;&lt;small&gt;Publication and launch notes&lt;/small&gt;&lt;/span&gt;
+ &lt;span class=&quot;preset-option-check&quot; aria-hidden=&quot;true&quot;&gt;&amp;#10003;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;/div&gt;
+ &lt;/div&gt;
&lt;button id=&quot;btn-motion&quot; type=&quot;button&quot; hidden
title=&quot;Pause motion&quot;
aria-label=&quot;Pause motion&quot;
@@ -21012,7 +22335,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
&lt;/div&gt;
&lt;!-- Main Diagram --&gt;
- &lt;div class=&quot;diagram-container&quot; data-detail-level=&quot;map&quot;&gt;
+ &lt;div class=&quot;diagram-container&quot; data-detail-level=&quot;read&quot;&gt;
&lt;svg viewBox=&quot;0 0 1020 568&quot; role=&quot;img&quot; aria-labelledby=&quot;archify-diagram-title archify-diagram-description&quot; data-preset=&quot;signal-flow&quot; data-quality-profile=&quot;standard&quot; data-quality-gates=&quot;advisory&quot;&gt;
&lt;title id=&quot;archify-diagram-title&quot;&gt;Checkout Platform — Fraud Gate&lt;/title&gt;
&lt;desc id=&quot;archify-diagram-description&quot;&gt;Fraud screening now owns payment authorization&lt;/desc&gt;
@@ -21050,7 +22373,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
&lt;path data-edge-from=&quot;buyers&quot; data-edge-to=&quot;edge&quot; data-edge-label=&quot;HTTPS&quot; data-edge-key=&quot;1&quot; data-edge-id=&quot;buyer-request&quot; data-composition-points=&quot;160,280;220,280&quot; d=&quot;M 160 280 L 220 280&quot; class=&quot;a-emphasis&quot; stroke-width=&quot;1.8&quot; marker-end=&quot;url(#arrowhead-emphasis)&quot;/&gt;
&lt;path data-edge-from=&quot;queue&quot; data-edge-to=&quot;worker&quot; data-edge-key=&quot;2&quot; data-edge-id=&quot;consume-order&quot; data-composition-points=&quot;560,450;600,450;600,430;640,430&quot; d=&quot;M 560 450 L 592 450 Q 600 450 600 442 L 600 438 Q 600 430 608 430 L 640 430&quot; class=&quot;a-default&quot; stroke-width=&quot;1.5&quot; marker-end=&quot;url(#arrowhead)&quot;/&gt;
&lt;path data-edge-from=&quot;edge&quot; data-edge-to=&quot;checkout&quot; data-edge-key=&quot;3&quot; data-edge-id=&quot;edge-checkout&quot; data-composition-points=&quot;350,280;430,280&quot; d=&quot;M 350 280 L 430 280&quot; class=&quot;a-default&quot; stroke-width=&quot;1.5&quot; marker-end=&quot;url(#arrowhead)&quot;/&gt;
- &lt;path data-edge-from=&quot;checkout&quot; data-edge-to=&quot;fraud&quot; data-edge-label=&quot;screen&quot; data-edge-key=&quot;4&quot; data-edge-id=&quot;fraud-check&quot; data-composition-points=&quot;495,250;600,250;600,160;705,160&quot; d=&quot;M 495 250 L 592 250 Q 600 250 600 242 L 600 168 Q 600 160 608 160 L 705 160&quot; class=&quot;a-security&quot; stroke-width=&quot;1.5&quot; marker-end=&quot;url(#arrowhead-security)&quot;/&gt;
+ &lt;path data-edge-from=&quot;checkout&quot; data-edge-to=&quot;fraud&quot; data-edge-label=&quot;screen&quot; data-edge-key=&quot;4&quot; data-edge-id=&quot;fraud-check&quot; data-composition-points=&quot;495,250;495,205;705,205;705,160&quot; d=&quot;M 495 250 L 495 213 Q 495 205 503 205 L 697 205 Q 705 205 705 197 L 705 160&quot; class=&quot;a-security&quot; stroke-width=&quot;1.5&quot; marker-end=&quot;url(#arrowhead-security)&quot;/&gt;
&lt;path data-edge-from=&quot;checkout&quot; data-edge-to=&quot;orders&quot; data-edge-label=&quot;SQL tx&quot; data-edge-key=&quot;5&quot; data-edge-id=&quot;persist-order&quot; data-composition-points=&quot;560,280;640,280&quot; d=&quot;M 560 280 L 640 280&quot; class=&quot;a-default&quot; stroke-width=&quot;1.5&quot; marker-end=&quot;url(#arrowhead)&quot;/&gt;
&lt;path data-edge-from=&quot;checkout&quot; data-edge-to=&quot;queue&quot; data-edge-label=&quot;accepted&quot; data-edge-key=&quot;6&quot; data-edge-id=&quot;publish-order&quot; data-composition-points=&quot;495,310;495,420&quot; d=&quot;M 495 310 L 495 420&quot; class=&quot;a-dashed&quot; stroke-width=&quot;1.5&quot; marker-end=&quot;url(#arrowhead-dashed)&quot;/&gt;
@@ -21391,7 +22714,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
&lt;!-- Footer --&gt;
&lt;p class=&quot;footer&quot;&gt;
- Architecture diagram &amp;bull; Built with Archify&lt;span class=&quot;no-print&quot;&gt; &amp;bull; &lt;a class=&quot;artifact-start-link&quot; href=&quot;https://tt-a1i.github.io/archify/start.html?type=architecture&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Create yours &amp;nearr;&lt;/a&gt; &amp;bull; Hover to trace &amp;bull; &lt;kbd&gt;R&lt;/kbd&gt; route &amp;bull; Click to focus &amp;bull; &lt;kbd&gt;+&lt;/kbd&gt;/&lt;kbd&gt;&amp;minus;&lt;/kbd&gt; zoom &amp;bull; &lt;kbd&gt;M&lt;/kbd&gt; radar &amp;bull; &lt;kbd&gt;T&lt;/kbd&gt; theme &amp;bull; &lt;kbd&gt;E&lt;/kbd&gt; export&lt;/span&gt;
+ Architecture diagram &amp;bull; Built with Archify&lt;span class=&quot;no-print&quot;&gt; &amp;bull; &lt;a class=&quot;artifact-start-link&quot; href=&quot;https://tt-a1i.github.io/archify/start.html?type=architecture&amp;amp;source=artifact&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Create yours &amp;nearr;&lt;/a&gt; &amp;bull; Hover to trace &amp;bull; &lt;kbd&gt;R&lt;/kbd&gt; route &amp;bull; Click to focus &amp;bull; &lt;kbd&gt;+&lt;/kbd&gt;/&lt;kbd&gt;&amp;minus;&lt;/kbd&gt; zoom &amp;bull; &lt;kbd&gt;M&lt;/kbd&gt; radar &amp;bull; &lt;kbd&gt;T&lt;/kbd&gt; theme &amp;bull; &lt;kbd&gt;E&lt;/kbd&gt; export&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
@@ -21420,18 +22743,22 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
/* ============================================================
- Visual style try-on — one topology, three bundled presets.
+ Visual style try-on — one topology, four bundled presets.
The reader&#39;s choice is intentionally session-only: it updates the
live page and canonical SVG together, but never rewrites the source,
URL, or a later diagram&#39;s authored default.
============================================================ */
Archify.preset = (function () {
- var PRESETS = [&#39;classic&#39;, &#39;signal-flow&#39;, &#39;blueprint&#39;];
- var LABELS = { classic: &#39;Classic&#39;, &#39;signal-flow&#39;: &#39;Flow&#39;, blueprint: &#39;Blueprint&#39; };
+ var PRESETS = [&#39;classic&#39;, &#39;signal-flow&#39;, &#39;blueprint&#39;, &#39;editorial&#39;];
+ var LABELS = { classic: &#39;Classic&#39;, &#39;signal-flow&#39;: &#39;Flow&#39;, blueprint: &#39;Blueprint&#39;, editorial: &#39;Editorial&#39; };
var html = document.documentElement;
var svg = document.querySelector(&#39;.diagram-container svg&#39;);
var btn = document.getElementById(&#39;btn-preset&#39;);
var label = document.getElementById(&#39;preset-label&#39;);
+ var menu = document.getElementById(&#39;preset-menu&#39;);
+ var options = function () {
+ return Array.prototype.slice.call(menu.querySelectorAll(&#39;[data-preset-value]&#39;));
+ };
var authored = PRESETS.indexOf(html.getAttribute(&#39;data-preset&#39;)) &gt;= 0
? html.getAttribute(&#39;data-preset&#39;)
: &#39;classic&#39;;
@@ -21450,16 +22777,80 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
svg.setAttribute(&#39;data-preset&#39;, preset);
btn.setAttribute(&#39;data-preset-option&#39;, preset);
label.textContent = LABELS[preset];
- var next = nextAfter(preset);
- btn.setAttribute(&#39;aria-label&#39;, &#39;Visual style: &#39; + LABELS[preset] + &#39;. Activate for &#39; + LABELS[next]);
- btn.title = &#39;Cycle visual style (S)&#39;;
+ btn.setAttribute(&#39;aria-label&#39;, &#39;Visual style: &#39; + LABELS[preset] + &#39;. Choose visual style&#39;);
+ btn.title = &#39;Choose visual style (S cycles)&#39;;
+ options().forEach(function (option) {
+ var selected = option.getAttribute(&#39;data-preset-value&#39;) === preset;
+ option.setAttribute(&#39;aria-checked&#39;, String(selected));
+ });
return true;
}
function cycle() { return apply(nextAfter(current())); }
+ function isOpen() { return menu.classList.contains(&#39;open&#39;); }
+ function open(focusLast) {
+ if (html.getAttribute(&#39;data-embed&#39;) === &#39;true&#39;) return false;
+ if (Archify.exportMenu &amp;&amp; Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);
+ menu.classList.add(&#39;open&#39;);
+ btn.setAttribute(&#39;aria-expanded&#39;, &#39;true&#39;);
+ var available = options();
+ var selected = available.find(function (option) { return option.getAttribute(&#39;aria-checked&#39;) === &#39;true&#39;; });
+ var target = focusLast ? available[available.length - 1] : (selected || available[0]);
+ if (target) target.focus();
+ return true;
+ }
+ function close(focusTrigger) {
+ menu.classList.remove(&#39;open&#39;);
+ btn.setAttribute(&#39;aria-expanded&#39;, &#39;false&#39;);
+ if (focusTrigger) btn.focus();
+ return false;
+ }
+
apply(authored);
- btn.addEventListener(&#39;click&#39;, cycle);
- return { cycle: cycle, apply: apply, current: current, authored: authored };
+ btn.addEventListener(&#39;click&#39;, function (e) {
+ e.stopPropagation();
+ if (isOpen()) close(false);
+ else open(false);
+ });
+ btn.addEventListener(&#39;keydown&#39;, function (e) {
+ if (e.key === &#39;ArrowDown&#39; || e.key === &#39;ArrowUp&#39;) {
+ e.preventDefault();
+ if (!isOpen()) open(e.key === &#39;ArrowUp&#39;);
+ }
+ });
+ document.addEventListener(&#39;click&#39;, function (e) {
+ if (!menu.contains(e.target) &amp;&amp; e.target !== btn) close(false);
+ });
+ menu.addEventListener(&#39;click&#39;, function (e) {
+ var option = e.target.closest(&#39;[data-preset-value]&#39;);
+ if (!option || !menu.contains(option)) return;
+ if (apply(option.getAttribute(&#39;data-preset-value&#39;))) close(true);
+ });
+ menu.addEventListener(&#39;keydown&#39;, function (e) {
+ if (e.key === &#39;Escape&#39;) { e.preventDefault(); close(true); return; }
+ if (e.key === &#39;Tab&#39;) { close(false); return; }
+ var available = options();
+ var active = available.indexOf(document.activeElement);
+ switch (e.key) {
+ case &#39;ArrowDown&#39;:
+ e.preventDefault();
+ if (available.length) available[(active + 1 + available.length) % available.length].focus();
+ break;
+ case &#39;ArrowUp&#39;:
+ e.preventDefault();
+ if (available.length) available[(active - 1 + available.length) % available.length].focus();
+ break;
+ case &#39;Home&#39;:
+ e.preventDefault();
+ if (available[0]) available[0].focus();
+ break;
+ case &#39;End&#39;:
+ e.preventDefault();
+ if (available.length) available[available.length - 1].focus();
+ break;
+ }
+ });
+ return { cycle: cycle, apply: apply, current: current, authored: authored, open: open, close: close, isOpen: isOpen };
})();
/* ============================================================
@@ -22651,6 +24042,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
}
function open(focusLast) {
+ if (Archify.preset &amp;&amp; Archify.preset.isOpen()) Archify.preset.close(false);
if (Archify.semanticLens &amp;&amp; typeof Archify.semanticLens.clearPreview === &#39;function&#39;) Archify.semanticLens.clearPreview();
if (Archify.semanticLens &amp;&amp; Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });
syncRouteShareItem();
@@ -26571,7 +27963,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
function detailLevel() {
if (state.mode === &#39;semantic&#39;) return &#39;full&#39;;
if (state.scale &gt;= 1.75) return &#39;full&#39;;
- if (state.scale &gt;= 1.25) return &#39;read&#39;;
+ if (state.scale &gt;= 1) return &#39;read&#39;;
return &#39;map&#39;;
}
function renderControls() {
@@ -29481,6 +30873,9 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
if (e.defaultPrevented) return;
var t = e.target;
if (t &amp;&amp; (t.tagName === &#39;INPUT&#39; || t.tagName === &#39;TEXTAREA&#39; || t.isContentEditable)) return;
+ if (Archify.preset &amp;&amp; Archify.preset.isOpen() &amp;&amp; e.key !== &#39;Escape&#39; &amp;&amp; e.key !== &#39;s&#39; &amp;&amp; e.key !== &#39;S&#39;) {
+ Archify.preset.close(false);
+ }
if (e.key === &#39;?&#39;) {
e.preventDefault();
Archify.guide.toggle();
@@ -29517,6 +30912,9 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
} else if (e.key === &#39;0&#39;) {
e.preventDefault();
Archify.view.reset();
+ } else if (e.key === &#39;Escape&#39; &amp;&amp; Archify.preset.isOpen()) {
+ e.preventDefault();
+ Archify.preset.close(true);
} else if (e.key === &#39;Escape&#39; &amp;&amp; Archify.semanticLens.isOpen()) {
e.preventDefault();
Archify.semanticLens.close({ restoreFocus: true });
@@ -29789,7 +31187,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
const status = document.querySelector('#review-status');
const receiptNode = document.querySelector('#archify-compare-receipt');
const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
- const exportCss = "\n /* ==========================================================\n THEME VARIABLES — switch by toggling [data-theme] on \u003chtml\u003e\n ========================================================== */\n :root,\n [data-theme=\"dark\"] {\n --bg: #020617;\n --grid: #1e293b;\n --text: #ffffff;\n --text-muted: #94a3b8;\n --text-dim: #475569;\n /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */\n --text-faint: #7d8da1;\n\n --panel: rgba(15, 23, 42, 0.5);\n --panel-border: #1e293b;\n --lane-fill: rgba(15, 23, 42, 0.22);\n --lane-stroke: #334155;\n\n --arrow: #64748b;\n --arrow-emphasis: #34d399;\n\n /* Opaque mask color used behind semi-transparent component fills\n so the arrows drawn underneath are properly hidden. */\n --mask: #0f172a;\n\n --frontend-fill: rgba(8, 51, 68, 0.4);\n --frontend-stroke: #22d3ee;\n --backend-fill: rgba(6, 78, 59, 0.4);\n --backend-stroke: #34d399;\n --database-fill: rgba(76, 29, 149, 0.4);\n --database-stroke: #a78bfa;\n --cloud-fill: rgba(120, 53, 15, 0.3);\n --cloud-stroke: #fbbf24;\n --security-fill: rgba(136, 19, 55, 0.4);\n --security-stroke: #fb7185;\n --messagebus-fill: rgba(251, 146, 60, 0.3);\n --messagebus-stroke:#fb923c;\n --external-fill: rgba(30, 41, 59, 0.5);\n --external-stroke: #94a3b8;\n\n --toolbar-bg: rgba(15, 23, 42, 0.8);\n --toolbar-border: #334155;\n --toolbar-text: #e2e8f0;\n --toolbar-hover: rgba(15, 23, 42, 0.95);\n --toolbar-menu-bg: #0f172a;\n }\n\n [data-theme=\"light\"] {\n --bg: #f8fafc;\n --grid: #e2e8f0;\n --text: #0f172a;\n --text-muted: #64748b;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n\n --mask: #ffffff;\n\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n\n --toolbar-bg: rgba(255, 255, 255, 0.92);\n --toolbar-border: #cbd5e1;\n --toolbar-text: #334155;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #ffffff;\n }\n\n /* ==========================================================\n SIGNAL FLOW — an opt-in, motion-forward visual preset.\n The variables also target a standalone exported SVG, whose\n root carries data-preset and data-theme directly.\n ========================================================== */\n [data-preset=\"signal-flow\"][data-theme=\"dark\"] {\n --bg: #030711;\n --grid: #15233a;\n --panel: rgba(6, 14, 28, 0.78);\n --panel-border: #1d3350;\n --lane-fill: rgba(9, 22, 40, 0.5);\n --lane-stroke: #2c4564;\n --text: #f5fbff;\n --text-muted: #9eb0c7;\n --text-dim: #52667f;\n --text-faint: #7890ad;\n --mask: #07101e;\n --frontend-fill: rgba(6, 182, 212, 0.14);\n --frontend-stroke: #67e8f9;\n --backend-fill: rgba(16, 185, 129, 0.14);\n --backend-stroke: #5eead4;\n --database-fill: rgba(139, 92, 246, 0.16);\n --database-stroke: #c4b5fd;\n --cloud-fill: rgba(245, 158, 11, 0.13);\n --cloud-stroke: #fcd34d;\n --security-fill: rgba(244, 63, 94, 0.13);\n --security-stroke: #fda4af;\n --messagebus-fill: rgba(249, 115, 22, 0.13);\n --messagebus-stroke: #fdba74;\n --external-fill: rgba(71, 85, 105, 0.24);\n --external-stroke: #a5b4c7;\n --arrow: #7890ad;\n --arrow-emphasis: #2dd4bf;\n --toolbar-bg: rgba(7, 16, 30, 0.86);\n --toolbar-border: #29415f;\n --toolbar-menu-bg: #07101e;\n }\n\n [data-preset=\"signal-flow\"][data-theme=\"light\"] {\n --bg: #f4f9fc;\n --grid: #d4e5ee;\n --panel: rgba(255, 255, 255, 0.82);\n --panel-border: #bfd5e2;\n --lane-fill: rgba(232, 243, 248, 0.62);\n --lane-stroke: #a9c5d5;\n --text: #102638;\n --text-muted: #587287;\n --text-dim: #8aa2b4;\n --text-faint: #668397;\n --mask: #ffffff;\n --frontend-fill: rgba(6, 182, 212, 0.09);\n --frontend-stroke: #0789a1;\n --backend-fill: rgba(5, 150, 105, 0.09);\n --backend-stroke: #087f69;\n --database-fill: rgba(124, 58, 237, 0.09);\n --database-stroke: #7254c7;\n --cloud-fill: rgba(217, 119, 6, 0.08);\n --cloud-stroke: #b9670b;\n --security-fill: rgba(225, 29, 72, 0.08);\n --security-stroke: #c53a59;\n --messagebus-fill: rgba(234, 88, 12, 0.08);\n --messagebus-stroke: #c65f27;\n --external-fill: rgba(100, 116, 139, 0.1);\n --external-stroke: #607a8c;\n --arrow: #7b97aa;\n --arrow-emphasis: #0d9488;\n }\n\n /* ==========================================================\n BLUEPRINT — a review-first drafting preset for deployment,\n infrastructure, and technical design documentation. It keeps\n the same semantic palette and geometry while trading glow for\n precise grid contrast, squared materials, and drafting marks.\n ========================================================== */\n [data-preset=\"blueprint\"][data-theme=\"dark\"] {\n --bg: #06131f;\n --grid: #17425a;\n --panel: rgba(7, 27, 43, 0.9);\n --panel-border: #27627f;\n --lane-fill: rgba(10, 43, 66, 0.36);\n --lane-stroke: #34799a;\n --text: #e3f6ff;\n --text-muted: #91b8ca;\n --text-dim: #557e92;\n --text-faint: #739caf;\n --mask: #0a2031;\n --frontend-fill: rgba(26, 157, 193, 0.14);\n --frontend-stroke: #66d9ef;\n --backend-fill: rgba(31, 155, 124, 0.13);\n --backend-stroke: #69dfbd;\n --database-fill: rgba(120, 105, 196, 0.14);\n --database-stroke: #b4a8ff;\n --cloud-fill: rgba(197, 145, 43, 0.13);\n --cloud-stroke: #ffd166;\n --security-fill: rgba(199, 76, 104, 0.13);\n --security-stroke: #ff8da1;\n --messagebus-fill: rgba(207, 112, 49, 0.13);\n --messagebus-stroke: #ffad66;\n --external-fill: rgba(84, 119, 139, 0.18);\n --external-stroke: #a7cad9;\n --arrow: #78a3b7;\n --arrow-emphasis: #64dfc1;\n --toolbar-bg: rgba(7, 28, 45, 0.92);\n --toolbar-border: #34799a;\n --toolbar-text: #d8f3ff;\n --toolbar-hover: rgba(18, 58, 83, 0.95);\n --toolbar-menu-bg: #0a2031;\n }\n\n [data-preset=\"blueprint\"][data-theme=\"light\"] {\n --bg: #edf7fa;\n --grid: #b5d5e1;\n --panel: rgba(249, 253, 255, 0.94);\n --panel-border: #78aabd;\n --lane-fill: rgba(210, 232, 240, 0.42);\n --lane-stroke: #83b2c4;\n --text: #123344;\n --text-muted: #4e7486;\n --text-dim: #86a6b4;\n --text-faint: #668c9d;\n --mask: #f9fdff;\n --frontend-fill: rgba(8, 145, 178, 0.08);\n --frontend-stroke: #087f9c;\n --backend-fill: rgba(5, 128, 101, 0.08);\n --backend-stroke: #08755f;\n --database-fill: rgba(100, 75, 180, 0.08);\n --database-stroke: #6757a8;\n --cloud-fill: rgba(181, 120, 15, 0.08);\n --cloud-stroke: #a86609;\n --security-fill: rgba(190, 48, 80, 0.07);\n --security-stroke: #b32f50;\n --messagebus-fill: rgba(196, 81, 22, 0.07);\n --messagebus-stroke: #b65120;\n --external-fill: rgba(79, 112, 128, 0.08);\n --external-stroke: #506f7e;\n --arrow: #6d93a5;\n --arrow-emphasis: #087f69;\n --toolbar-bg: rgba(247, 252, 254, 0.94);\n --toolbar-border: #8ab5c5;\n --toolbar-text: #294f61;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #f9fdff;\n }\n\n * { margin: 0; padding: 0; box-sizing: border-box; }\n\n body {\n font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;\n background: var(--bg);\n min-height: 100vh;\n padding: 2rem;\n color: var(--text);\n transition: background 0.2s ease, color 0.2s ease;\n }\n\n html[data-preset=\"signal-flow\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);\n background-attachment: fixed;\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);\n }\n html[data-preset=\"blueprint\"] body {\n background-image:\n linear-gradient(var(--grid) 1px, transparent 1px),\n linear-gradient(90deg, var(--grid) 1px, transparent 1px);\n background-size: 32px 32px;\n background-position: -1px -1px;\n background-attachment: fixed;\n }\n\n /* Gallery/embed mode keeps the generated artifact as the source of truth\n while presenting only its diagram surface inside a proof card. */\n html[data-embed=\"true\"] body {\n min-height: 0;\n padding: 0;\n overflow: hidden;\n background: var(--bg);\n background-image: none;\n }\n html[data-embed=\"true\"] .toolbar,\n html[data-embed=\"true\"] .header,\n html[data-embed=\"true\"] .cards,\n html[data-embed=\"true\"] .footer,\n html[data-embed=\"true\"] .diagram-nav,\n html[data-embed=\"true\"] .overview-map,\n html[data-embed=\"true\"] .focus-chip,\n html[data-embed=\"true\"] .route-probe,\n html[data-embed=\"true\"] .semantic-lens,\n html[data-embed=\"true\"] .diagram-guide,\n html[data-embed=\"true\"] .node-finder,\n html[data-embed=\"true\"] .guided-views { display: none !important; }\n html[data-embed=\"true\"] .container { max-width: none; }\n html[data-embed=\"true\"] .diagram-container {\n padding: 0.5rem;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n html[data-embed=\"true\"] .diagram-container svg { min-width: 0; }\n\n /* Share Chapter Cue lives in the HTML viewer layer, not inside the SVG.\n It gives one-shot embeds a title, authored note, truthful stop order,\n and lifecycle state while canonical diagram geometry stays untouched. */\n .share-chapter-cue { display: none; }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .share-chapter-cue:not([hidden]),\n html[data-embed=\"true\"][data-share-moment=\"true\"] .share-chapter-cue:not([hidden]) {\n position: absolute;\n z-index: 18;\n top: 0.85rem;\n left: 50%;\n display: grid;\n grid-template-columns: auto minmax(9rem, 13.5rem) minmax(0, 1fr);\n align-items: center;\n gap: 0.45rem 0.85rem;\n width: min(52rem, calc(100% - 1.5rem));\n min-height: 3.35rem;\n padding: 0.55rem 0.75rem 0.65rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));\n border-radius: 0.75rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--frontend-fill) 52%, transparent), transparent 45%),\n color-mix(in srgb, var(--toolbar-menu-bg) 92%, transparent);\n color: var(--toolbar-text);\n box-shadow: 0 14px 42px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.045);\n backdrop-filter: blur(16px);\n pointer-events: none;\n animation: archify-share-cue-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n html[data-preset=\"blueprint\"] .share-chapter-cue {\n border-radius: 0.2rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 46%, transparent), transparent 36%),\n var(--toolbar-menu-bg);\n box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);\n backdrop-filter: none;\n }\n .share-chapter-index {\n display: grid;\n gap: 0.12rem;\n min-width: 5rem;\n padding-right: 0.75rem;\n border-right: 1px solid var(--toolbar-border);\n }\n .share-chapter-state {\n display: inline-flex;\n align-items: center;\n gap: 0.36rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .share-chapter-state::before {\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: currentColor;\n box-shadow: 0 0 10px currentColor;\n content: '';\n }\n .share-chapter-cue[data-state=\"playing\"] .share-chapter-state::before {\n animation: archify-share-cue-pulse 1.15s ease-in-out infinite;\n }\n .share-chapter-count {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .share-chapter-copy { min-width: 0; }\n .share-chapter-copy strong,\n .share-chapter-copy small,\n .share-chapter-route {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .share-chapter-copy strong {\n color: var(--toolbar-text);\n font-size: 0.6875rem;\n line-height: 1.35;\n }\n .share-chapter-copy small {\n margin-top: 0.08rem;\n color: var(--text-muted);\n font-size: 0.5rem;\n line-height: 1.35;\n }\n .share-chapter-route {\n color: color-mix(in srgb, var(--frontend-stroke) 76%, var(--text-muted));\n font-size: 0.5625rem;\n font-weight: 650;\n letter-spacing: 0.015em;\n text-align: right;\n }\n .share-chapter-progress {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n height: 2px;\n overflow: hidden;\n background: color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n .share-chapter-progress span {\n display: block;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, var(--frontend-stroke), var(--database-stroke));\n box-shadow: 0 0 12px var(--frontend-stroke);\n transform: scaleX(0);\n transform-origin: left center;\n }\n\n /* Presentation Stage is a viewer-only layer: it gives the live diagram\n the viewport while keeping guided views, theme, focus, and exports real.\n Embed mode wins when both query parameters are present. */\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body {\n height: 100dvh;\n min-height: 0;\n padding: 1rem;\n overflow: hidden;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n width: 100%;\n max-width: none;\n height: calc(100dvh - 2rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n flex: none;\n min-width: 0;\n margin: 0;\n padding-right: 23rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row { margin-bottom: 0.25rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views {\n flex: none;\n margin-bottom: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n justify-content: center;\n min-height: 0;\n padding: 0.75rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .cards,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .footer { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) #btn-present {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n\n .container { max-width: 1200px; margin: 0 auto; }\n\n .header { margin-bottom: 2rem; padding-right: 29.5rem; }\n\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header { padding-right: 29.5rem; }\n\n .header-row {\n display: flex;\n align-items: center;\n gap: 1rem;\n margin-bottom: 0.5rem;\n }\n\n .pulse-dot {\n width: 12px;\n height: 12px;\n background: var(--frontend-stroke);\n border-radius: 50%;\n animation: none;\n }\n\n html[data-motion-capable=\"true\"] .pulse-dot { animation: pulse 2s infinite; }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n h1 {\n font-size: 1.5rem;\n font-weight: 700;\n letter-spacing: -0.025em;\n }\n\n .subtitle {\n color: var(--text-muted);\n font-size: 0.875rem;\n margin-left: 1.75rem;\n }\n\n html[data-preset=\"signal-flow\"] .header-row::after {\n content: \"SIGNAL FLOW\";\n margin-left: auto;\n color: var(--frontend-stroke);\n border: 1px solid var(--frontend-stroke);\n border-radius: 999px;\n padding: 0.28rem 0.6rem;\n font-size: 0.625rem;\n letter-spacing: 0.12em;\n opacity: 0.82;\n box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);\n white-space: nowrap;\n }\n\n html[data-preset=\"blueprint\"] .pulse-dot {\n width: 10px;\n height: 10px;\n border: 1px solid var(--frontend-stroke);\n border-radius: 1px;\n background: transparent;\n box-shadow: inset 0 0 0 2px var(--bg);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n content: \"BLUEPRINT / REV 01\";\n margin-left: auto;\n padding: 0.28rem 0.55rem;\n border-top: 1px solid var(--frontend-stroke);\n border-bottom: 1px solid var(--frontend-stroke);\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.14em;\n white-space: nowrap;\n }\n\n .diagram-container {\n background: var(--panel);\n border-radius: 1rem;\n border: 1px solid var(--panel-border);\n padding: 1.5rem;\n overflow: hidden;\n position: relative;\n }\n\n html[data-preset=\"signal-flow\"] .diagram-container {\n position: relative;\n overflow: hidden;\n background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .diagram-container {\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);\n }\n html[data-preset=\"blueprint\"] .diagram-container {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background: var(--panel);\n box-shadow:\n inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),\n 0 18px 48px rgba(0, 0, 0, 0.16);\n }\n html[data-preset=\"blueprint\"] .diagram-container::after {\n content: \"\";\n position: absolute;\n z-index: 10;\n inset: 0.7rem;\n pointer-events: none;\n background:\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;\n opacity: 0.58;\n }\n html[data-motion-capable=\"true\"][data-preset=\"signal-flow\"][data-ambient-motion=\"running\"] .diagram-container::before {\n content: \"\";\n position: absolute;\n inset: 0;\n pointer-events: none;\n background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);\n transform: translateX(-70%);\n animation: archify-signal-scan 4.8s ease-in-out 1 both;\n }\n\n /* Motion Governor gives the reader a real static state and gives the\n strongest semantic action the only motion budget. Atmosphere resets to\n its authored base instead of freezing mid-cycle. Static artifacts never\n start a decorative pulse or scan. */\n html:not([data-motion-capable=\"true\"]) svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .pulse-dot,\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion=\"still\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-motion-owner] .pulse-dot,\n html[data-motion-owner] .diagram-container::before,\n html[data-motion-owner] svg[data-animation=\"trace\"] [data-animate],\n html[data-embed=\"true\"] .pulse-dot,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .pulse-dot,\n html[data-share-playback=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] .pulse-dot,\n html[data-document-hidden=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion-owner] .diagram-container::before,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .diagram-container::before {\n opacity: 0;\n }\n html[data-motion=\"still\"] .guided-view-progress span,\n html[data-motion=\"still\"] .guided-story-caption,\n html[data-motion=\"still\"] .story-trail-flow,\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow,\n html[data-motion=\"still\"] .route-journey-flow,\n html[data-motion=\"still\"] .semantic-lens-flow,\n html[data-motion=\"still\"] .diagram-guide,\n html[data-motion=\"still\"] [data-story-step],\n html[data-motion=\"still\"] .overview-map-live,\n html[data-motion=\"still\"] .guided-view-stop,\n html[data-motion=\"still\"] .share-chapter-cue,\n html[data-motion=\"still\"] .share-chapter-state::before,\n html[data-motion=\"still\"] .share-chapter-progress span,\n html[data-document-hidden=\"true\"] .guided-view-progress span,\n html[data-document-hidden=\"true\"] .story-trail-flow,\n html[data-document-hidden=\"true\"] .intent-trace-flow,\n html[data-document-hidden=\"true\"] .route-probe-flow,\n html[data-document-hidden=\"true\"] .route-journey-flow,\n html[data-document-hidden=\"true\"] .semantic-lens-flow,\n html[data-document-hidden=\"true\"] .diagram-guide,\n html[data-document-hidden=\"true\"] [data-story-step],\n html[data-document-hidden=\"true\"] .overview-map-live,\n html[data-document-hidden=\"true\"] .guided-view-stop,\n html[data-document-hidden=\"true\"] .share-chapter-cue,\n html[data-document-hidden=\"true\"] .share-chapter-state::before,\n html[data-document-hidden=\"true\"] .share-chapter-progress span {\n animation: none !important;\n }\n html[data-motion=\"still\"] .guided-view-progress span {\n transform: scaleX(1) !important;\n }\n html[data-motion=\"still\"] svg[data-story-playing=\"true\"] .story-trail-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.55;\n }\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n html[data-motion=\"still\"] .route-journey-overlay,\n html[data-document-hidden=\"true\"] .route-journey-overlay { display: none !important; }\n html[data-motion=\"still\"] .relationship-pulse-overlay,\n html[data-motion=\"still\"] .story-carrier-overlay,\n html[data-document-hidden=\"true\"] .story-carrier-overlay { display: none !important; }\n html[data-motion=\"still\"] .chapter-handoff-overlay { display: none !important; }\n html[data-motion=\"still\"] .chapter-handoff-anchor { animation: none !important; }\n html[data-motion=\"still\"] .guided-view-chapter,\n html[data-motion=\"still\"] svg [data-node-id],\n html[data-motion=\"still\"] svg [data-edge-from],\n html[data-motion=\"still\"] svg [data-detail],\n html[data-motion=\"still\"] svg [data-detail-anchor],\n html[data-motion=\"still\"] svg [data-legend-hit],\n html[data-motion=\"still\"] svg {\n transition: none !important;\n }\n\n svg {\n width: 100%;\n min-width: min(900px, 100%);\n display: block;\n transform-origin: 0 0;\n transition: transform 0.18s ease;\n }\n\n .diagram-container.is-camera-moving svg {\n transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-container.is-camera-transaction svg { transition: none; }\n .diagram-container.is-pannable { cursor: grab; }\n .diagram-container.is-panning { cursor: grabbing; user-select: none; }\n .diagram-container.is-panning svg { transition: none; }\n\n .diagram-nav {\n position: absolute;\n right: 1rem;\n bottom: 1rem;\n z-index: 12;\n display: inline-flex;\n align-items: center;\n padding: 0.25rem;\n gap: 0.2rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.65rem;\n background: var(--toolbar-bg);\n box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(10px);\n }\n .diagram-nav button,\n .focus-chip button,\n .guided-views button {\n border: 0;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .diagram-nav button {\n min-width: 2rem;\n height: 2rem;\n padding: 0 0.45rem;\n border-radius: 0.4rem;\n font-size: 0.75rem;\n font-weight: 600;\n }\n .diagram-nav button:hover,\n .diagram-nav button:focus-visible,\n .focus-chip button:hover,\n .focus-chip button:focus-visible,\n .guided-views button:hover,\n .guided-views button:focus-visible { background: var(--toolbar-hover); }\n .diagram-nav button:focus-visible,\n .focus-chip button:focus-visible,\n .guided-views button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .diagram-nav button:disabled { opacity: 0.38; cursor: default; }\n .diagram-nav [data-view=\"reset\"] { min-width: 3.35rem; font-size: 0.625rem; }\n .diagram-container[data-camera-indicator=\"true\"] .diagram-nav [data-view=\"reset\"] {\n min-width: 5.2rem;\n color: var(--frontend-stroke);\n }\n .diagram-nav #btn-diagram-guide[aria-expanded=\"true\"] {\n color: var(--cloud-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Radar is a deliberately simplified, viewer-only overview. It\n uses authored node bounds and the live camera viewport rather than\n cloning the canonical SVG, so IDs, filters, animation, and export state\n stay singular and deterministic. */\n .overview-map {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 12;\n width: 11.25rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n border-radius: 0.78rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .overview-map[hidden] { display: none; }\n .overview-map[data-docked=\"true\"] {\n position: fixed;\n right: var(--archify-radar-right, 1rem);\n top: var(--archify-radar-top, 1rem);\n bottom: auto;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: var(--archify-radar-left, 1rem);\n }\n html[data-preset=\"blueprint\"] .overview-map { border-radius: 0.28rem; }\n .overview-map-head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.45rem;\n min-height: 2.25rem;\n padding: 0.42rem 0.48rem 0.38rem 0.55rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);\n }\n .overview-map-live {\n width: 0.42rem;\n height: 0.42rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);\n animation: archify-radar-live 2.4s ease-out infinite;\n }\n .overview-map-copy { min-width: 0; line-height: 1.1; }\n .overview-map-copy strong {\n display: block;\n overflow: hidden;\n color: var(--frontend-stroke);\n font-size: 0.59rem;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-copy small {\n display: block;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.52rem;\n letter-spacing: 0.04em;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-close {\n width: 1.55rem;\n height: 1.55rem;\n padding: 0;\n border: 0;\n border-radius: 0.34rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.9rem;\n cursor: pointer;\n }\n .overview-map-close:hover,\n .overview-map-close:focus-visible { background: var(--toolbar-hover); }\n .overview-map-close:focus-visible,\n .overview-map-surface:focus-visible,\n .overview-map-node:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .overview-map-surface {\n position: relative;\n height: 7rem;\n margin: 0.42rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);\n border-radius: 0.42rem;\n background:\n linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n color-mix(in srgb, var(--bg) 86%, transparent);\n background-size: 12px 12px;\n cursor: crosshair;\n touch-action: none;\n }\n html[data-preset=\"blueprint\"] .overview-map-surface { border-radius: 0.1rem; }\n .overview-map-surface \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n transform: none !important;\n transition: none !important;\n display: block;\n overflow: visible;\n }\n .overview-map-node {\n fill: var(--backend-stroke);\n fill-opacity: 0.52;\n stroke: var(--backend-stroke);\n stroke-opacity: 0.86;\n vector-effect: non-scaling-stroke;\n cursor: pointer;\n transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;\n }\n .overview-map-node[data-kind=\"frontend\"],\n .overview-map-node[data-kind=\"start\"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }\n .overview-map-node[data-kind=\"database\"],\n .overview-map-node[data-kind=\"success\"] { fill: var(--database-stroke); stroke: var(--database-stroke); }\n .overview-map-node[data-kind=\"cloud\"],\n .overview-map-node[data-kind=\"waiting\"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }\n .overview-map-node[data-kind=\"messagebus\"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }\n .overview-map-node[data-kind=\"security\"],\n .overview-map-node[data-kind=\"decision\"],\n .overview-map-node[data-kind=\"failure\"] { fill: var(--security-stroke); stroke: var(--security-stroke); }\n .overview-map-node[data-kind=\"external\"],\n .overview-map-node[data-kind=\"neutral\"] { fill: var(--external-stroke); stroke: var(--external-stroke); }\n .overview-map-node[data-radar-active=\"true\"],\n .overview-map-node:hover,\n .overview-map-node:focus-visible {\n fill-opacity: 0.92;\n stroke-width: 2.2;\n filter: drop-shadow(0 0 3px currentColor);\n }\n .overview-map-viewport {\n fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));\n }\n .overview-map-hint {\n display: flex;\n justify-content: space-between;\n gap: 0.5rem;\n padding: 0 0.52rem 0.46rem;\n color: var(--text-faint);\n font-size: 0.49rem;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n }\n .diagram-nav #btn-overview-map[aria-expanded=\"true\"] {\n color: var(--frontend-stroke);\n background: var(--toolbar-hover);\n }\n .diagram-nav #btn-route-probe[aria-pressed=\"true\"] {\n color: var(--backend-stroke);\n background: var(--toolbar-hover);\n }\n .diagram-nav #btn-semantic-lens[aria-expanded=\"true\"],\n .diagram-nav #btn-semantic-lens[aria-pressed=\"true\"] {\n color: var(--database-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Lens turns the compiled node-kind palette into an analytical\n legend. One kind reveals its real traffic; two kinds compare only their\n direct authored relationships. Geometry and the canonical SVG stay put. */\n .semantic-lens {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 24;\n width: min(20rem, calc(100% - 2rem));\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);\n backdrop-filter: blur(18px);\n animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .semantic-lens[hidden] { display: none; }\n .semantic-lens[data-dock-side=\"left\"] { left: 1rem; right: auto; }\n .semantic-lens[data-dock-side=\"right\"] { left: auto; right: 1rem; }\n html[data-preset=\"blueprint\"] .semantic-lens { border-radius: 0.28rem; }\n .semantic-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.72rem 0.78rem 0.62rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .semantic-lens-eyebrow {\n display: block;\n color: var(--database-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .semantic-lens-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.82rem;\n letter-spacing: -0.02em;\n }\n .semantic-lens-close {\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .semantic-lens-close:hover,\n .semantic-lens-close:focus-visible { background: var(--toolbar-hover); }\n .semantic-lens-instruction {\n margin: 0;\n padding: 0.52rem 0.78rem 0.48rem;\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-kinds {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.3rem;\n max-height: min(15rem, 40vh);\n padding: 0 0.5rem 0.5rem;\n overflow-y: auto;\n scrollbar-width: thin;\n }\n .semantic-lens-kind {\n --lens-color: var(--external-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.42rem;\n min-width: 0;\n min-height: 2.15rem;\n padding: 0.35rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));\n border-radius: 0.45rem;\n background: color-mix(in srgb, var(--panel) 76%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;\n }\n html[data-preset=\"blueprint\"] .semantic-lens-kind { border-radius: 0.12rem; }\n .semantic-lens-kind[data-kind=\"frontend\"],\n .semantic-lens-kind[data-kind=\"start\"] { --lens-color: var(--frontend-stroke); }\n .semantic-lens-kind[data-kind=\"backend\"],\n .semantic-lens-kind[data-kind=\"active\"] { --lens-color: var(--backend-stroke); }\n .semantic-lens-kind[data-kind=\"database\"],\n .semantic-lens-kind[data-kind=\"success\"] { --lens-color: var(--database-stroke); }\n .semantic-lens-kind[data-kind=\"cloud\"],\n .semantic-lens-kind[data-kind=\"waiting\"] { --lens-color: var(--cloud-stroke); }\n .semantic-lens-kind[data-kind=\"messagebus\"] { --lens-color: var(--messagebus-stroke); }\n .semantic-lens-kind[data-kind=\"security\"],\n .semantic-lens-kind[data-kind=\"decision\"],\n .semantic-lens-kind[data-kind=\"failure\"] { --lens-color: var(--security-stroke); }\n .semantic-lens-kind:hover,\n .semantic-lens-kind:focus-visible,\n .semantic-lens-kind[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));\n background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));\n }\n .semantic-lens-kind:focus-visible,\n .semantic-lens-close:focus-visible,\n .semantic-lens-actions button:focus-visible {\n outline: 2px solid var(--database-stroke);\n outline-offset: 1px;\n }\n .semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }\n .semantic-lens-swatch {\n width: 0.48rem;\n height: 0.48rem;\n border-radius: 50%;\n background: var(--lens-color);\n box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);\n }\n .semantic-lens-kind strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.61rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-lens-kind em {\n color: var(--lens-color);\n font-size: 0.54rem;\n font-style: normal;\n font-weight: 800;\n }\n .semantic-lens-status {\n min-height: 2.5rem;\n margin: 0;\n padding: 0.55rem 0.78rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }\n .semantic-lens-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.28rem;\n padding: 0 0.62rem 0.62rem;\n }\n .semantic-lens-actions button {\n min-height: 1.8rem;\n padding: 0.28rem 0.48rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.56rem;\n cursor: pointer;\n }\n .semantic-lens-actions button:hover { background: var(--toolbar-hover); }\n .semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }\n @keyframes archify-lens-in {\n from { opacity: 0; transform: translateY(5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n /* Route Probe answers a reader question over the compiled semantic graph:\n choose two stable nodes and reveal the shortest authored directed route.\n The receipt and signal live entirely in the viewer layer. */\n .route-probe {\n position: absolute;\n left: 1rem;\n bottom: 1rem;\n z-index: 12;\n width: min(46rem, calc(100% - 25rem));\n min-width: 18rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .route-probe[hidden] { display: none; }\n .route-probe[data-route-dock=\"top\"] {\n top: 1rem;\n bottom: auto;\n }\n html[data-preset=\"blueprint\"] .route-probe { border-radius: 0.25rem; }\n .route-probe-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.65rem;\n padding: 0.52rem 0.58rem 0.44rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);\n }\n .route-probe-copy { min-width: 0; }\n .route-probe-eyebrow {\n display: block;\n color: var(--backend-stroke);\n font-size: 0.48rem;\n font-weight: 800;\n letter-spacing: 0.15em;\n text-transform: uppercase;\n }\n .route-probe-title {\n display: block;\n margin-top: 0.14rem;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.72rem;\n line-height: 1.25;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .route-probe-actions { display: flex; gap: 0.2rem; }\n .route-probe button {\n min-height: 1.55rem;\n padding: 0.25rem 0.42rem;\n border: 0;\n border-radius: 0.36rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .route-probe button:hover,\n .route-probe button:focus-visible { background: var(--toolbar-hover); }\n .route-probe button:focus-visible {\n outline: 2px solid var(--backend-stroke);\n outline-offset: 1px;\n }\n .route-probe-copy-link { color: var(--frontend-stroke) !important; }\n .route-probe-find { color: var(--backend-stroke) !important; }\n .route-probe-copy-link[hidden] { display: none; }\n .route-probe-find[hidden] { display: none; }\n .route-probe-path {\n display: flex;\n align-items: center;\n min-height: 2.2rem;\n padding: 0.42rem 0.58rem 0.24rem;\n overflow-x: auto;\n scrollbar-width: thin;\n white-space: nowrap;\n }\n .route-probe-node,\n .route-probe button.route-probe-node {\n flex: none;\n max-width: 9.5rem;\n overflow: hidden;\n min-height: 1.75rem !important;\n padding: 0.22rem 0.38rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));\n border-radius: 999px;\n background: color-mix(in srgb, var(--backend-fill) 52%, transparent);\n color: var(--text);\n font-size: 0.56rem;\n font-weight: 700;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .route-probe-node[data-endpoint=\"start\"] {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n .route-probe-node[data-endpoint=\"end\"] {\n border-color: var(--security-stroke);\n color: var(--security-stroke);\n }\n .route-probe-node[data-route-journey-state=\"past\"] { opacity: 0.66; }\n .route-probe-node[data-route-journey-state=\"future\"] { opacity: 0.48; }\n .route-probe-node[aria-current=\"step\"] {\n border-color: var(--backend-stroke);\n background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));\n color: var(--text);\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--backend-stroke) 42%, transparent), 0 0 14px color-mix(in srgb, var(--backend-stroke) 34%, transparent);\n opacity: 1;\n }\n html[data-preset=\"blueprint\"] .route-probe-node[aria-current=\"step\"] {\n border-style: double;\n border-width: 3px;\n border-radius: 0.2rem;\n box-shadow: none;\n }\n .route-probe-arrow {\n flex: none;\n padding: 0 0.28rem;\n color: var(--text-faint);\n font-size: 0.65rem;\n }\n .route-probe-placeholder {\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.03em;\n }\n .route-probe-status {\n display: block;\n min-height: 1.45rem;\n padding: 0.08rem 0.58rem 0.44rem;\n color: var(--text-faint);\n font-size: 0.52rem;\n line-height: 1.35;\n }\n .route-journey-controls {\n display: grid;\n grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);\n justify-content: start;\n gap: 0.22rem;\n padding: 0.08rem 0.58rem 0.28rem;\n }\n .route-journey-controls[hidden] { display: none; }\n .route-journey-controls button {\n min-height: 1.8rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);\n font-size: 0.54rem;\n font-weight: 700;\n }\n .route-journey-controls button:disabled {\n cursor: default;\n opacity: 0.34;\n }\n .route-journey-play { color: var(--backend-stroke) !important; }\n .route-journey-overview { color: var(--frontend-stroke) !important; }\n .route-journey-controls[data-playing=\"true\"] .route-journey-play {\n border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 62%, transparent);\n }\n .route-probe[data-state=\"error\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));\n }\n .route-probe[data-state=\"error\"] .route-probe-status { color: var(--security-stroke); }\n\n .focus-chip {\n position: absolute;\n left: 1rem;\n top: 1rem;\n z-index: 12;\n display: block;\n width: min(22rem, calc(100% - 13rem));\n max-width: calc(100% - 13rem);\n overflow: hidden;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.6875rem;\n }\n .focus-chip[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .focus-chip { border-radius: 0.3rem; }\n .focus-chip button {\n flex: none;\n padding: 0.3rem 0.45rem;\n border-radius: 0.35rem;\n font-size: 0.625rem;\n }\n .relationship-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.7rem 0.75rem 0.65rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);\n }\n .relationship-lens-copy { min-width: 0; }\n .relationship-lens-actions {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 0.18rem;\n }\n .relationship-lens-actions button { white-space: nowrap; }\n .relationship-lens-actions #btn-focus-clear {\n display: grid;\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n place-items: center;\n color: var(--text-muted);\n font-size: 1rem;\n line-height: 1;\n }\n .relationship-lens-actions #btn-focus-clear:hover,\n .relationship-lens-actions #btn-focus-clear:focus-visible {\n background: var(--toolbar-hover);\n color: var(--text);\n }\n .relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }\n .relationship-lens-actions #btn-focus-relations { display: none; }\n .relationship-lens-eyebrow {\n display: block;\n margin-bottom: 0.18rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .relationship-lens-title {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.8rem;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail {\n display: block;\n margin-top: 0.12rem;\n overflow: hidden;\n color: var(--text-muted);\n font-size: 0.625rem;\n line-height: 1.4;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail[hidden] { display: none; }\n .semantic-passport-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 0.24rem;\n margin-top: 0.42rem;\n }\n .semantic-passport-meta span,\n .semantic-passport-meta code {\n max-width: 100%;\n overflow: hidden;\n padding: 0.14rem 0.34rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);\n border-radius: 999px;\n background: color-mix(in srgb, var(--panel) 68%, transparent);\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n letter-spacing: 0.04em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-meta [data-passport=\"kind\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-weight: 800;\n text-transform: uppercase;\n }\n .semantic-passport-meta [data-passport=\"tag\"] { color: var(--cloud-stroke); }\n .semantic-passport-meta [hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-meta span,\n html[data-preset=\"blueprint\"] .semantic-passport-meta code { border-radius: 0.1rem; }\n .semantic-passport-evidence {\n margin-top: 0.52rem;\n padding: 0.5rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));\n }\n .semantic-passport-evidence[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-evidence { border-radius: 0.18rem; }\n .semantic-passport-evidence-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.55rem;\n margin-bottom: 0.35rem;\n }\n .semantic-passport-evidence-status {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n color: var(--backend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .semantic-passport-evidence-status::before {\n content: '';\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);\n }\n .semantic-passport-repository {\n min-width: 0;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-repository:hover,\n .semantic-passport-repository:focus-visible { color: var(--backend-stroke); }\n .semantic-passport-evidence-links { display: grid; gap: 0.22rem; }\n .semantic-passport-source {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.15rem 0.45rem;\n align-items: center;\n padding: 0.34rem 0.4rem;\n border: 1px solid transparent;\n border-radius: 0.38rem;\n color: var(--text-muted);\n text-decoration: none;\n }\n .semantic-passport-source:hover,\n .semantic-passport-source:focus-visible {\n border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);\n background: color-mix(in srgb, var(--backend-fill) 32%, transparent);\n color: var(--text);\n }\n .semantic-passport-source strong {\n overflow: hidden;\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-source code {\n color: var(--backend-stroke);\n font: inherit;\n font-size: 0.5rem;\n }\n .semantic-passport-source small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-summary {\n display: block;\n margin-top: 0.12rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n .semantic-passport-reach {\n display: grid;\n gap: 0.28rem;\n margin-top: 0.52rem;\n padding-top: 0.48rem;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);\n }\n .semantic-passport-reach[hidden] { display: none; }\n .semantic-passport-reach-label {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n }\n .semantic-passport-reach-actions {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 0.25rem;\n }\n .semantic-passport-reach-actions button {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n min-width: 0;\n min-height: 2rem;\n padding: 0.32rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--panel) 70%, transparent);\n color: var(--text-muted);\n text-align: left;\n }\n .semantic-passport-reach-actions button:hover:not(:disabled),\n .semantic-passport-reach-actions button:focus-visible {\n border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));\n color: var(--text);\n }\n .semantic-passport-reach-actions button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .semantic-passport-reach-actions button:disabled {\n cursor: default;\n opacity: 0.5;\n }\n .semantic-passport-reach-actions button[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);\n color: var(--text);\n }\n #btn-reach-upstream {\n --reach-color: var(--database-stroke);\n --reach-fill: var(--database-fill);\n }\n #btn-reach-downstream {\n --reach-color: var(--backend-stroke);\n --reach-fill: var(--backend-fill);\n }\n .semantic-passport-reach-actions strong {\n color: var(--reach-color, var(--frontend-stroke));\n font-size: 0.625rem;\n }\n .semantic-passport-reach-status {\n color: var(--text-faint);\n font-size: 0.525rem;\n line-height: 1.4;\n }\n .semantic-passport-reach-status[hidden] { display: none; }\n .relationship-lens-list {\n max-height: min(18rem, 46vh);\n overflow: auto;\n padding: 0.4rem;\n scrollbar-width: thin;\n scrollbar-color: var(--frontend-stroke) transparent;\n }\n .relationship-lens-list::-webkit-scrollbar { width: 4px; }\n .relationship-lens-list::-webkit-scrollbar-thumb {\n border-radius: 999px;\n background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);\n }\n .relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }\n .relationship-lens-group-title {\n display: block;\n padding: 0.24rem 0.38rem 0.16rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .relationship-lens-row {\n display: grid;\n grid-template-columns: 2.1rem minmax(0, 1fr);\n gap: 0.06rem 0.45rem;\n width: 100%;\n padding: 0.45rem 0.5rem !important;\n text-align: left;\n }\n .relationship-lens-row:hover,\n .relationship-lens-row:focus-visible,\n .relationship-lens-row[data-preview-active=\"true\"] {\n background: var(--toolbar-hover);\n box-shadow: inset 2px 0 0 var(--frontend-stroke);\n }\n .relationship-lens-row:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .relationship-lens-direction {\n grid-row: 1 / 3;\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n }\n .relationship-lens-row[data-direction=\"in\"] .relationship-lens-direction { color: var(--database-stroke); }\n .relationship-lens-row[data-direction=\"loop\"] .relationship-lens-direction { color: var(--security-stroke); }\n .relationship-lens-row strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.6875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-row small {\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-empty {\n margin: 0;\n padding: 0.75rem;\n color: var(--text-faint);\n font-size: 0.625rem;\n text-align: center;\n }\n\n /* Diagram Guide keeps the artifact's growing reader vocabulary\n discoverable without widening the permanent control bar. It derives\n honest counts at runtime and delegates every action to an existing\n production interaction instead of creating a second command system. */\n .diagram-guide {\n position: absolute;\n top: 1rem;\n right: 1rem;\n z-index: 26;\n width: min(32rem, calc(100% - 2rem));\n max-height: min(42rem, calc(100% - 2rem));\n overflow: auto;\n border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(18px);\n animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-guide[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .diagram-guide { border-radius: 0.28rem; }\n .diagram-guide-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 1rem;\n padding: 0.82rem 0.9rem 0.68rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .diagram-guide-eyebrow {\n display: block;\n color: var(--cloud-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .diagram-guide-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.86rem;\n letter-spacing: -0.02em;\n }\n .diagram-guide-close {\n width: 1.8rem;\n height: 1.8rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .diagram-guide-close:hover,\n .diagram-guide-close:focus-visible { background: var(--toolbar-hover); }\n .diagram-guide-stats {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n padding: 0.54rem 0.9rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.025em;\n }\n .diagram-guide-stats::before {\n content: '';\n width: 0.42rem;\n height: 0.42rem;\n flex: none;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);\n }\n .diagram-guide-actions {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.38rem;\n padding: 0.62rem;\n }\n .diagram-guide-action {\n --guide-accent: var(--frontend-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n min-height: 4.15rem;\n padding: 0.55rem 0.58rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;\n }\n .diagram-guide-action[data-guide-action=\"route\"] { --guide-accent: var(--backend-stroke); }\n .diagram-guide-action[data-guide-action=\"map\"] { --guide-accent: var(--database-stroke); }\n .diagram-guide-action[data-guide-action=\"lens\"] { --guide-accent: var(--messagebus-stroke); }\n .diagram-guide-action[data-guide-action=\"story\"] { --guide-accent: var(--security-stroke); }\n .diagram-guide-action[data-guide-action=\"present\"] {\n --guide-accent: var(--cloud-stroke);\n }\n .diagram-guide-action:hover,\n .diagram-guide-action:focus-visible {\n border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));\n background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));\n transform: translateY(-1px);\n }\n .diagram-guide-action:focus-visible,\n .diagram-guide-close:focus-visible {\n outline: 2px solid var(--cloud-stroke);\n outline-offset: 1px;\n }\n .diagram-guide-action:disabled {\n opacity: 0.42;\n cursor: default;\n transform: none;\n }\n .diagram-guide-index {\n display: grid;\n place-items: center;\n width: 1.65rem;\n height: 1.65rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));\n border-radius: 0.35rem;\n color: var(--guide-accent);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.06em;\n }\n .diagram-guide-action-copy { min-width: 0; }\n .diagram-guide-action strong {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.66rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-action small {\n display: -webkit-box;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n line-height: 1.35;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n }\n .diagram-guide kbd {\n align-self: start;\n min-width: 1.45rem;\n padding: 0.12rem 0.3rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n text-align: center;\n }\n .diagram-guide-shortcuts {\n display: flex;\n flex-wrap: wrap;\n gap: 0.34rem 0.62rem;\n padding: 0.58rem 0.9rem 0.68rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.5rem;\n }\n .diagram-guide-shortcuts span {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n white-space: nowrap;\n }\n .diagram-guide-feedback {\n min-height: 1rem;\n margin: -0.18rem 0.9rem 0.62rem;\n color: var(--security-stroke);\n font-size: 0.5rem;\n }\n .diagram-guide-feedback:empty { display: none; }\n @keyframes archify-guide-in {\n from { opacity: 0; transform: translateY(-5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n .node-finder {\n position: absolute;\n top: 1rem;\n left: 1rem;\n z-index: 24;\n display: flex;\n flex-direction: column;\n width: min(22rem, calc(100% - 2rem));\n max-height: calc(100% - 2rem);\n overflow: hidden;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(16px);\n }\n .node-finder[hidden] { display: none; }\n .node-finder[data-context=\"route-source\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));\n }\n .node-finder[data-context=\"route-target\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));\n }\n html[data-preset=\"blueprint\"] .node-finder { border-radius: 0.3rem; }\n .node-finder-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.7rem 0.8rem 0.45rem;\n }\n .node-finder-head strong {\n color: var(--text);\n font-size: 0.6875rem;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-source\"] .node-finder-head strong { color: var(--frontend-stroke); }\n .node-finder[data-context=\"route-target\"] .node-finder-head strong { color: var(--security-stroke); }\n .node-finder-close {\n width: 1.75rem;\n height: 1.75rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .node-finder-close:hover,\n .node-finder-close:focus-visible { background: var(--toolbar-hover); }\n .node-finder-close:focus-visible,\n .node-finder-result:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .node-finder-search {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n margin: 0 0.55rem 0.55rem;\n padding: 0 0.7rem;\n min-height: 2.6rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n transition: border-color 160ms ease-out, box-shadow 160ms ease-out;\n }\n html[data-preset=\"blueprint\"] .node-finder-search { border-radius: 0.18rem; }\n .node-finder-search \u003e span { color: var(--frontend-stroke); font-size: 0.875rem; }\n .node-finder-search:focus-within {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);\n }\n .node-finder-input {\n appearance: none;\n width: 100%;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n font-size: 0.75rem;\n }\n .node-finder-input:focus-visible { outline: none; }\n .node-finder-input::placeholder { color: var(--text-faint); }\n .node-finder kbd {\n padding: 0.1rem 0.32rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5625rem;\n }\n .node-finder-results {\n display: grid;\n flex: 1 1 auto;\n gap: 0;\n min-height: 0;\n max-height: min(18rem, 48vh);\n margin: 0 0.55rem 0.45rem;\n padding: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 54%, transparent);\n scroll-padding-block: 0.25rem;\n scrollbar-width: thin;\n }\n html[data-preset=\"blueprint\"] .node-finder-results { border-radius: 0.18rem; }\n .node-finder-result {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem 0.75rem;\n width: 100%;\n min-height: 3.25rem;\n padding: 0.58rem 0.65rem;\n border: 0;\n border-radius: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color 160ms ease-out;\n }\n .node-finder-result:not(:last-child) {\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);\n }\n .node-finder-result:hover,\n .node-finder-result:focus-visible {\n position: relative;\n z-index: 1;\n background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));\n }\n .node-finder-result strong {\n overflow: hidden;\n font-size: 0.75rem;\n line-height: 1.25;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n letter-spacing: 0.015em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result em {\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.625rem;\n font-style: normal;\n }\n .node-finder[data-context^=\"route-\"] .node-finder-result em {\n padding: 0.1rem 0.3rem;\n border: 1px solid color-mix(in srgb, currentColor 52%, transparent);\n border-radius: 999px;\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-target\"] .node-finder-result em { color: var(--security-stroke); }\n .node-finder-empty {\n padding: 1.1rem 0.75rem 1.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n text-align: center;\n }\n .node-finder-status {\n margin: 0;\n padding: 0.1rem 0.8rem 0.65rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n\n .guided-views {\n display: grid;\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem auto;\n align-items: stretch;\n gap: 0.35rem;\n min-width: 0;\n margin: 0 0 0.75rem;\n padding: 0.35rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-bg);\n background: linear-gradient(120deg, var(--toolbar-bg), color-mix(in srgb, var(--toolbar-bg) 82%, var(--frontend-fill)));\n box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);\n backdrop-filter: blur(12px);\n }\n .guided-views[hidden] { display: none; }\n\n html[data-preset=\"blueprint\"] .guided-views {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 36%, transparent), transparent 24%),\n var(--toolbar-bg);\n box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);\n }\n html[data-preset=\"blueprint\"] .guided-views button { border-radius: 0.2rem; }\n html[data-preset=\"blueprint\"] .guided-view-progress { border-radius: 0; }\n html[data-preset=\"blueprint\"] .guided-view-progress span { border-radius: 0; }\n .guided-views button {\n min-width: 0;\n padding: 0.45rem 0.6rem;\n border-radius: 0.55rem;\n font-size: 0.75rem;\n }\n .guided-views \u003e #guided-view-prev,\n .guided-views \u003e #guided-view-next { min-width: 2.75rem; min-height: 2.75rem; }\n .guided-views button:disabled { opacity: 0.3; cursor: default; }\n .guided-view-copy {\n min-width: 0;\n padding: 0.2rem 0.5rem;\n border-left: 1px solid var(--toolbar-border);\n overflow: hidden;\n }\n .guided-view-meta {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-height: 1rem;\n margin-bottom: 0.12rem;\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .guided-view-handoff {\n box-sizing: border-box;\n height: 1rem;\n min-width: 0;\n max-width: 15rem;\n overflow: hidden;\n padding: 0 0.38rem;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 46%, transparent);\n border-radius: 999px;\n color: var(--toolbar-text);\n background: color-mix(in srgb, var(--frontend-fill) 44%, transparent);\n font-size: 0.5rem;\n line-height: calc(1rem - 2px);\n letter-spacing: 0.06em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-view-handoff[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .guided-view-handoff { border-radius: 0.15rem; }\n .chapter-handoff-overlay { pointer-events: none; }\n .chapter-handoff-anchor {\n fill: color-mix(in srgb, var(--frontend-fill) 10%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n stroke-dasharray: 4 4;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n animation: archify-chapter-anchor 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"stay\"] { opacity: 1; }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"enter\"] { opacity: 0.78; }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"leave\"] { opacity: 0.26; }\n @keyframes archify-chapter-anchor {\n 0% { opacity: 0.35; stroke-dashoffset: 8; }\n 45% { opacity: 1; }\n 100% { opacity: 0.72; stroke-dashoffset: 0; }\n }\n .guided-view-progress {\n width: 3.5rem;\n height: 2px;\n overflow: hidden;\n border-radius: 999px;\n background: var(--toolbar-border);\n }\n .guided-view-progress span {\n display: block;\n width: 100%;\n height: 100%;\n border-radius: inherit;\n background: var(--frontend-stroke);\n transform: scaleX(0);\n transform-origin: left center;\n }\n .guided-view-copy strong,\n .guided-view-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .guided-view-copy strong { color: var(--toolbar-text); font-size: 0.75rem; line-height: 1.35; }\n .guided-view-copy small { margin-top: 0; color: var(--text-muted); font-size: 0.625rem; line-height: 1.35; }\n .guided-story-caption {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n gap: 0.12rem 0.55rem;\n align-items: center;\n min-width: 0;\n margin-top: 0.18rem;\n padding: 0.3rem 0.5rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.58rem;\n background: color-mix(in srgb, var(--frontend-fill) 26%, transparent);\n animation: archify-story-caption-in 140ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n .guided-story-caption[hidden] { display: none; }\n .guided-story-caption-index {\n grid-row: 1 / span 2;\n align-self: stretch;\n display: inline-grid;\n min-width: 3.3rem;\n place-items: center;\n padding-right: 0.52rem;\n border-right: 1px solid color-mix(in srgb, var(--frontend-stroke) 28%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .guided-story-caption strong,\n .guided-story-caption small {\n display: block;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-story-caption strong { color: var(--toolbar-text); font-size: 0.6875rem; line-height: 1.3; }\n .guided-story-caption small { color: var(--text-muted); font-size: 0.5625rem; line-height: 1.35; }\n .guided-story-caption-next {\n grid-column: 3;\n grid-row: 1 / span 2;\n display: grid;\n min-width: 6.4rem;\n max-width: 9.5rem;\n align-self: stretch;\n align-content: center;\n padding-left: 0.58rem;\n border-left: 1px solid color-mix(in srgb, var(--frontend-stroke) 22%, var(--toolbar-border));\n }\n .guided-story-caption-next[hidden] { display: none; }\n .guided-story-caption-next small {\n color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--text-muted));\n font-weight: 800;\n letter-spacing: 0.09em;\n text-transform: uppercase;\n }\n .guided-story-caption-next strong { color: var(--text-muted); font-weight: 700; }\n html[data-preset=\"blueprint\"] .guided-story-caption { border-radius: 0.2rem; }\n .guided-views[data-story-beat] .guided-view-copy \u003e #guided-view-label,\n .guided-views[data-story-beat] .guided-view-copy \u003e #guided-view-note { display: none; }\n @keyframes archify-story-caption-in {\n from { opacity: 0; transform: translateY(3px); }\n to { opacity: 1; transform: translateY(0); }\n }\n .guided-view-trail {\n display: flex;\n align-items: center;\n gap: 0.28rem;\n min-width: 0;\n min-height: 1.7rem;\n margin-top: 0;\n padding: 0;\n overflow-x: auto;\n color: var(--text-faint);\n overscroll-behavior-x: contain;\n touch-action: pan-x;\n scrollbar-width: none;\n white-space: nowrap;\n }\n .guided-view-trail[hidden] { display: none; }\n .guided-view-trail::-webkit-scrollbar { display: none; }\n .guided-view-trail .guided-view-stop {\n appearance: none;\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 0.28rem;\n min-height: 1.5rem;\n padding: 0.1rem 0.3rem 0.1rem 0.18rem;\n border: 1px solid transparent;\n border-radius: 999px;\n background: transparent;\n color: var(--text-muted);\n cursor: pointer;\n font-family: inherit;\n font-size: 0.5625rem;\n font-weight: 650;\n letter-spacing: 0.02em;\n line-height: 1;\n transition: background 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;\n }\n .guided-view-stop:hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 36%, transparent);\n background: color-mix(in srgb, var(--frontend-fill) 34%, transparent);\n }\n .guided-view-stop:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .guided-view-stop:disabled { cursor: wait; }\n .guided-view-stop::before {\n display: inline-grid;\n width: 1rem;\n height: 1rem;\n place-items: center;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 54%, var(--toolbar-border));\n border-radius: 50%;\n background: color-mix(in srgb, var(--frontend-fill) 58%, var(--toolbar-bg));\n color: var(--frontend-stroke);\n content: attr(data-story-number);\n font-size: 0.5rem;\n line-height: 1;\n }\n .guided-view-stop + .guided-view-stop::after {\n order: -1;\n color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--text-faint));\n content: '\\00b7';\n font-size: 0.65rem;\n }\n .guided-view-stop[data-story-link=\"forward\"]::after { content: '\\2192'; }\n .guided-view-stop[data-story-link=\"reverse\"]::after { content: '\\2190'; }\n .guided-view-stop[data-story-link=\"multiple\"]::after { content: '\\21c4'; }\n .guided-view-stop[data-story-beat-state=\"pending\"] { opacity: 0.38; }\n .guided-view-stop[data-story-beat-state=\"next\"] {\n border-style: dashed;\n border-color: color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));\n color: color-mix(in srgb, var(--toolbar-text) 68%, var(--text-muted));\n opacity: 0.58;\n }\n .guided-view-stop[data-story-beat-state=\"past\"] { color: var(--text-muted); opacity: 0.76; }\n .guided-view-stop[data-story-beat-state=\"active\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--frontend-fill) 42%, transparent);\n color: var(--toolbar-text);\n font-weight: 800;\n opacity: 1;\n }\n .guided-view-stop[data-story-beat-state=\"active\"]::before {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 54%, transparent);\n }\n html[data-preset=\"blueprint\"] .guided-view-stop,\n html[data-preset=\"blueprint\"] .guided-view-stop::before { border-radius: 0.1rem; }\n html[data-preset=\"blueprint\"] .guided-view-stop[data-story-beat-state=\"active\"]::before { box-shadow: none; }\n .guided-view-actions { display: flex; align-items: stretch; gap: 0.2rem; }\n .guided-view-actions button { white-space: nowrap; }\n .guided-view-play {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.38rem;\n min-width: 6.25rem !important;\n color: var(--frontend-stroke) !important;\n font-size: 0.625rem !important;\n }\n .guided-view-play[aria-pressed=\"true\"] { background: var(--toolbar-hover); }\n .guided-view-all { min-width: 3.25rem !important; color: var(--text-muted) !important; font-size: 0.625rem !important; }\n .guided-view-beat-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.3rem;\n min-width: 5.4rem !important;\n min-height: 1.5rem;\n color: var(--text-muted) !important;\n font-size: 0.5625rem !important;\n letter-spacing: 0.025em;\n transition: background 140ms ease, border-color 140ms ease, color 140ms ease;\n }\n .guided-view-beat-link:not(:disabled):hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n color: var(--frontend-stroke) !important;\n }\n .guided-view-beat-link[data-copy-state=\"copied\"] {\n border-color: color-mix(in srgb, var(--backend-stroke) 58%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 46%, transparent);\n color: var(--backend-stroke) !important;\n }\n .guided-view-index {\n grid-column: 1 / -1;\n min-width: 0;\n padding: 0.28rem 0.12rem 0.08rem;\n overflow: hidden;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n @media (min-width: 721px) {\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-index,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-beat-link,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-all,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-trail,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-copy \u003e #guided-view-label,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-copy \u003e #guided-view-note { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-story-caption { margin-top: 0.08rem; }\n }\n .guided-view-chapters {\n display: flex;\n gap: 0.28rem;\n min-width: 0;\n margin: 0;\n padding: 0.08rem 0.05rem 0.2rem;\n overflow-x: auto;\n list-style: none;\n scroll-padding-inline: 0.05rem;\n scroll-snap-type: x proximity;\n scrollbar-width: none;\n }\n .guided-view-chapters::-webkit-scrollbar { display: none; }\n .guided-view-chapters li {\n display: flex;\n flex: 1 1 0;\n min-width: 9.5rem;\n scroll-snap-align: center;\n }\n .guided-view-chapter {\n position: relative;\n display: grid !important;\n grid-template-columns: 1.55rem minmax(0, 1fr) auto;\n align-items: center;\n width: 100%;\n min-height: 2.75rem;\n padding: 0.36rem 0.48rem !important;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent) !important;\n border-radius: 0.48rem !important;\n background: color-mix(in srgb, var(--toolbar-bg) 88%, transparent) !important;\n color: var(--text-muted) !important;\n text-align: left;\n transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;\n }\n .guided-view-chapter:hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--toolbar-border)) !important;\n background: color-mix(in srgb, var(--frontend-fill) 42%, var(--toolbar-bg)) !important;\n }\n .guided-view-chapter:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .guided-view-chapter-index {\n display: inline-grid;\n width: 1.32rem;\n height: 1.32rem;\n place-items: center;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 48%, var(--toolbar-border));\n border-radius: 50%;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.03em;\n }\n .guided-view-chapter-title {\n min-width: 0;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.625rem;\n font-weight: 700;\n line-height: 1.3;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-view-chapter-count {\n grid-column: 3;\n grid-row: 1;\n margin-left: 0.38rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-style: normal;\n font-weight: 650;\n white-space: nowrap;\n }\n .guided-view-chapter-delta {\n display: inline-flex;\n grid-column: 3;\n grid-row: 1;\n align-items: center;\n gap: 0.22rem;\n margin-left: 0.38rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 750;\n letter-spacing: 0.01em;\n white-space: nowrap;\n }\n .guided-view-chapter-delta[hidden] { display: none; }\n .guided-view-chapter-delta [data-delta-kind=\"stay\"] { color: var(--text-muted); }\n .guided-view-chapter-delta [data-delta-kind=\"enter\"] { color: var(--frontend-stroke); }\n .guided-view-chapter-delta [data-delta-kind=\"leave\"] { color: var(--security-stroke); }\n .guided-view-chapter[data-preview-active=\"true\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border)) !important;\n background: color-mix(in srgb, var(--frontend-fill) 54%, var(--toolbar-bg)) !important;\n }\n .guided-view-chapter[data-chapter-position=\"current\"] {\n border: 2px solid var(--frontend-stroke) !important;\n padding: calc(0.36rem - 1px) calc(0.48rem - 1px) !important;\n box-shadow: inset 3px 0 0 var(--frontend-stroke);\n color: var(--toolbar-text) !important;\n }\n .guided-view-chapter[data-chapter-position=\"current\"] .guided-view-chapter-index {\n background: var(--frontend-stroke);\n color: var(--bg);\n }\n .guided-view-chapter[data-chapter-position=\"before\"] {\n border-style: solid !important;\n opacity: 0.72;\n }\n .guided-view-chapter[data-chapter-position=\"after\"] { border-style: dashed !important; }\n html[data-preset=\"signal-flow\"] .guided-view-chapter[data-chapter-position=\"current\"] {\n box-shadow: inset 3px 0 0 var(--frontend-stroke), 0 0 18px color-mix(in srgb, var(--frontend-stroke) 18%, transparent);\n }\n html[data-preset=\"blueprint\"] .guided-view-chapter,\n html[data-preset=\"blueprint\"] .guided-view-chapter-index { border-radius: 0.12rem !important; }\n\n /* Story Shelf — keep every authored chapter and the Play action visible,\n but do not spend a second row on unavailable director controls before\n the reader enters a chapter. Existing data-active-view state expands\n the full guided surface without a new toggle or stored preference. */\n .guided-views[data-active-view=\"all\"] {\n grid-template-columns: minmax(11rem, .72fr) auto minmax(0, 2fr);\n align-items: center;\n padding: 0.28rem 0.35rem;\n }\n .guided-views[data-active-view=\"all\"] \u003e #guided-view-prev,\n .guided-views[data-active-view=\"all\"] \u003e #guided-view-next,\n .guided-views[data-active-view=\"all\"] .guided-view-beat-link,\n .guided-views[data-active-view=\"all\"] .guided-view-all { display: none; }\n .guided-views[data-active-view=\"all\"] .guided-view-copy {\n grid-column: 1;\n grid-row: 1;\n padding: 0.1rem 0.55rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-copy \u003e #guided-view-note { display: none; }\n .guided-views[data-active-view=\"all\"] .guided-view-actions {\n display: block;\n grid-column: 2;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-play { min-height: 2.75rem; }\n .guided-views[data-active-view=\"all\"] .guided-view-index {\n grid-column: 3;\n grid-row: 1;\n padding: 0 0.08rem 0 0.42rem;\n border-top: 0;\n border-left: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n .guided-views[data-active-view=\"all\"] .guided-view-chapters {\n gap: 0.3rem;\n padding: 0;\n }\n\n .cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));\n gap: 1rem;\n margin-top: 2rem;\n }\n\n .card {\n background: var(--panel);\n border-radius: 0.75rem;\n border: 1px solid var(--panel-border);\n padding: 1.25rem;\n }\n\n html[data-preset=\"signal-flow\"] .card {\n background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .card {\n background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);\n }\n\n html[data-preset=\"blueprint\"] .card {\n position: relative;\n border-color: var(--panel-border);\n border-radius: 0.3rem;\n background: var(--panel);\n box-shadow: none;\n }\n html[data-preset=\"blueprint\"] .card::before {\n content: \"\";\n position: absolute;\n top: -1px;\n left: 1rem;\n width: 2.5rem;\n border-top: 2px solid var(--frontend-stroke);\n }\n\n .card-header {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin-bottom: 0.75rem;\n }\n\n .card-dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n\n .card-dot.cyan { background: var(--frontend-stroke); }\n .card-dot.emerald { background: var(--backend-stroke); }\n .card-dot.violet { background: var(--database-stroke); }\n .card-dot.amber { background: var(--cloud-stroke); }\n .card-dot.rose { background: var(--security-stroke); }\n .card-dot.orange { background: var(--messagebus-stroke); }\n .card-dot.slate { background: var(--external-stroke); }\n\n .card h3 { font-size: 0.875rem; font-weight: 600; color: var(--text); }\n\n .card ul {\n list-style: none;\n color: var(--text-muted);\n font-size: 0.75rem;\n }\n\n .card li { margin-bottom: 0.375rem; }\n\n .footer {\n text-align: center;\n margin-top: 1.5rem;\n color: var(--text-faint);\n font-size: 0.75rem;\n }\n\n .footer .artifact-start-link {\n color: var(--text-faint);\n text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);\n text-underline-offset: 0.22em;\n transition: color 0.15s ease, text-decoration-color 0.15s ease;\n }\n\n .footer .artifact-start-link:hover,\n .footer .artifact-start-link:focus-visible {\n color: var(--frontend-stroke);\n text-decoration-color: currentColor;\n }\n\n /* ==========================================================\n Print stylesheet — hide interactive controls, force light,\n drop the grid so the diagram doesn't waste ink, use landscape\n so wide diagrams fit, pack summary cards into 2 columns to\n avoid an orphan card on a trailing page.\n ========================================================== */\n @page { size: landscape; margin: 1.5cm; }\n\n @media print {\n /* Force the FULL light palette — including component fills/strokes and\n lane/arrow colors — so printing from dark theme doesn't put neon\n strokes and translucent dark fills on white paper. */\n :root, [data-theme=\"dark\"], [data-theme=\"light\"] {\n --bg: #ffffff;\n --grid: transparent;\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --text: #0f172a;\n --text-muted: #475569;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n --mask: #ffffff;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n }\n body { background: #ffffff !important; padding: 0; }\n .container { max-width: none; }\n .toolbar, .diagram-nav, .focus-chip, .guided-views, .archify-toast, .no-print { display: none !important; }\n .chapter-handoff-overlay { display: none !important; }\n svg [data-node-id][data-chapter-role] { opacity: 1 !important; }\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] { opacity: 1 !important; filter: none !important; }\n .diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }\n html[data-preset=\"signal-flow\"] .diagram-container,\n html[data-preset=\"signal-flow\"] .card { background: #ffffff; }\n .cards { grid-template-columns: 1fr 1fr; }\n /* Ensure elements break sensibly across pages */\n .card { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container svg [data-detail] {\n opacity: 1 !important;\n pointer-events: auto !important;\n }\n .diagram-container svg [data-detail-anchor] { transform: none !important; }\n .diagram-container svg[data-lens-active] [data-node-id],\n .diagram-container svg[data-lens-active] [data-edge-from],\n .diagram-container svg[data-legend-preview-active] [data-node-id],\n .diagram-container svg[data-legend-preview-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n }\n [data-legend-bridge-runtime] { display: none !important; }\n .semantic-lens-overlay { display: none !important; }\n .relationship-hit-overlay { display: none !important; }\n .relationship-pulse-overlay { display: none !important; }\n .route-probe-overlay, .route-journey-overlay { display: none !important; }\n .story-trail-overlay,\n .story-carrier-overlay { display: none !important; }\n .diagram-container svg[data-focus-active] [data-node-id],\n .diagram-container svg[data-focus-active] [data-edge-from],\n .diagram-container svg[data-reach-active] [data-node-id],\n .diagram-container svg[data-reach-active] [data-edge-from],\n .diagram-container svg[data-story-beat] [data-story-step],\n .diagram-container svg[data-story-beat] [data-edge-from][data-story-beat-step],\n .diagram-container svg[data-route-active] [data-node-id],\n .diagram-container svg[data-route-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n animation: none !important;\n }\n h1, .subtitle { color: #0f172a; }\n }\n\n /* ==========================================================\n TOOLBAR (theme toggle + export menu)\n ========================================================== */\n .toolbar {\n position: fixed;\n top: 1rem;\n right: 1rem;\n display: flex;\n gap: 0.5rem;\n z-index: 100;\n }\n .toolbar button {\n background: var(--toolbar-bg);\n color: var(--toolbar-text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 0.875rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n font-weight: 500;\n cursor: pointer;\n backdrop-filter: blur(8px);\n transition: background 0.15s, border-color 0.15s;\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n min-height: 2.75rem;\n }\n .toolbar button:hover {\n background: var(--toolbar-hover);\n border-color: var(--arrow);\n }\n .toolbar button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 2px;\n }\n .toolbar #btn-motion[hidden] { display: none !important; }\n .toolbar #btn-motion { min-width: 4.4rem; }\n .toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }\n .toolbar #btn-preset { min-width: 5.4rem; }\n .preset-control-mark {\n width: 0.58rem;\n height: 0.58rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.2rem;\n background: color-mix(in srgb, var(--frontend-stroke) 28%, transparent);\n transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s;\n }\n #btn-preset[data-preset-option=\"signal-flow\"] .preset-control-mark {\n border-radius: 50%;\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 78%, transparent);\n }\n #btn-preset[data-preset-option=\"blueprint\"] .preset-control-mark {\n border-radius: 0.06rem;\n background: transparent;\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);\n transform: rotate(45deg) scale(0.84);\n }\n .motion-control-dot {\n width: 0.46rem;\n height: 0.46rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 50%;\n background: var(--frontend-stroke);\n box-shadow: 0 0 9px color-mix(in srgb, var(--frontend-stroke) 72%, transparent);\n }\n #btn-motion[aria-pressed=\"false\"] .motion-control-dot {\n background: transparent;\n box-shadow: none;\n }\n .toolbar .export-wrap { position: relative; }\n .toolbar .export-menu {\n position: absolute;\n top: calc(100% + 0.375rem);\n right: 0;\n background: var(--toolbar-menu-bg);\n border: 1px solid var(--toolbar-border);\n border-radius: 0.5rem;\n padding: 0.375rem;\n min-width: 160px;\n display: none;\n flex-direction: column;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .toolbar .export-menu.open { display: flex; }\n .toolbar .export-menu button {\n background: transparent;\n border: 0;\n justify-content: space-between;\n width: 100%;\n text-align: left;\n padding: 0.5rem 0.75rem;\n }\n .toolbar .export-menu button[hidden] { display: none; }\n .toolbar .export-menu button:hover {\n background: var(--toolbar-hover);\n }\n .toolbar .export-menu .hint {\n color: var(--text-faint);\n font-size: 0.625rem;\n }\n .toolbar .export-menu hr {\n border: 0;\n border-top: 1px solid var(--toolbar-border);\n margin: 0.25rem 0.375rem;\n opacity: 0.5;\n }\n\n /* Toast — brief feedback for actions like \"copied\" */\n .archify-toast {\n position: fixed;\n top: 1rem;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: var(--toolbar-menu-bg);\n color: var(--text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n opacity: 0;\n transition: opacity 0.2s, transform 0.2s;\n z-index: 200;\n pointer-events: none;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .archify-toast.show {\n opacity: 1;\n transform: translateX(-50%) translateY(0);\n }\n\n @media (max-width: 720px) {\n body { padding: 1rem; }\n .toolbar {\n position: static;\n justify-content: flex-end;\n margin-bottom: 1rem;\n }\n .header { margin-bottom: 1.25rem; padding-right: 0; }\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header { padding-right: 0; }\n .header-row {\n gap: 0.75rem;\n align-items: flex-start;\n }\n html[data-preset=\"signal-flow\"] .header-row,\n html[data-preset=\"blueprint\"] .header-row { flex-wrap: wrap; }\n html[data-preset=\"signal-flow\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n h1 {\n font-size: 1.25rem;\n line-height: 1.25;\n }\n .subtitle {\n margin-left: 0;\n font-size: 0.8125rem;\n line-height: 1.55;\n }\n .diagram-container {\n padding: 0.75rem;\n border-radius: 0.75rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container {\n padding: 0.75rem 0.75rem 4.25rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] {\n overflow-x: auto;\n overflow-y: hidden;\n overscroll-behavior-x: contain;\n scrollbar-width: thin;\n scroll-behavior: smooth;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n min-width: 720px;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-nav,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .overview-map,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .focus-chip,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .route-probe,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .semantic-lens,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-guide,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .node-finder {\n transform: translateX(var(--archify-scroll-x, 0px));\n }\n .diagram-nav { right: 0.5rem; bottom: 0.5rem; }\n .overview-map {\n right: 0.5rem;\n bottom: 3.7rem;\n width: min(10.25rem, calc(100% - 1rem));\n }\n .overview-map[data-docked=\"true\"] {\n right: 0.5rem;\n top: var(--archify-radar-top, 0.5rem);\n bottom: auto;\n transform: none !important;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: 0.5rem;\n }\n .overview-map-surface { height: 4rem; }\n .semantic-lens {\n right: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n max-height: calc(100% - 4.2rem);\n }\n .semantic-lens[data-dock-side] { left: auto; right: 0.5rem; }\n .semantic-lens-kinds { max-height: min(12rem, 34vh); }\n .focus-chip {\n left: 0.5rem;\n top: 0.5rem;\n width: calc(100% - 1rem);\n max-width: none;\n }\n .relationship-lens-list { max-height: min(12rem, 38vh); }\n .relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-head { border-bottom-color: transparent; }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-list { display: none; }\n /* While a mobile reader previews one relationship, turn the full Lens\n into a compact peek card. This keeps the exact source and target on\n canvas instead of covering them with a long, scrollable list. */\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-list {\n max-height: none;\n padding: 0.35rem;\n overflow: hidden;\n }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group { margin: 0; }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group-title,\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-row:not([data-preview-active=\"true\"]) {\n display: none;\n }\n .node-finder {\n top: 0.5rem;\n left: 0.5rem;\n width: min(22rem, calc(100% - 1rem));\n max-height: calc(100% - 1rem);\n }\n .diagram-guide {\n top: 0.5rem;\n right: 0.5rem;\n left: 0.5rem;\n width: auto;\n max-height: calc(100% - 1rem);\n }\n .diagram-guide-head { padding: 0.62rem 0.7rem 0.52rem; }\n .diagram-guide-stats { padding: 0.42rem 0.7rem; }\n .diagram-guide-actions {\n grid-template-columns: 1fr;\n gap: 0.28rem;\n padding: 0.42rem;\n }\n .diagram-guide-action {\n min-height: 3.1rem;\n padding: 0.42rem 0.48rem;\n }\n .diagram-guide-action small {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-index {\n width: 1.5rem;\n height: 1.5rem;\n }\n .diagram-guide-shortcuts { padding: 0.46rem 0.7rem 0.52rem; }\n .diagram-guide-action[data-guide-action=\"present\"] { grid-column: auto; }\n .route-probe[data-guide-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .node-finder-results { max-height: min(16rem, 38vh); }\n .route-probe {\n left: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n min-width: 0;\n }\n .route-probe[data-route-dock=\"top\"] {\n top: 0.5rem;\n bottom: auto;\n }\n .route-probe[data-finder-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .route-probe-head { padding: 0.45rem 0.48rem 0.38rem; }\n .route-probe-path { padding: 0.35rem 0.48rem 0.2rem; }\n .route-probe-node { min-height: 2.75rem !important; }\n .route-journey-controls {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem minmax(0, 1fr);\n padding: 0.08rem 0.48rem 0.32rem;\n }\n .route-journey-controls button { min-height: 2.75rem; }\n .route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }\n .route-probe-node { max-width: 7.5rem; }\n .guided-views {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;\n gap: 0.2rem;\n padding: 0.25rem;\n }\n .guided-view-actions {\n grid-column: 1 / -1;\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n .guided-views \u003e #guided-view-prev,\n .guided-views \u003e #guided-view-next {\n align-self: center;\n height: 2.75rem;\n }\n .guided-view-play,\n .guided-view-all,\n .guided-view-beat-link { min-height: 2.75rem; }\n .guided-view-copy small { white-space: normal; }\n .guided-story-caption { padding: 0.32rem 0.45rem; }\n .guided-story-caption-index { min-width: 2.9rem; padding-right: 0.42rem; }\n .guided-story-caption strong,\n .guided-story-caption small { white-space: normal; }\n .guided-story-caption-next { display: none; }\n .guided-view-trail { min-height: 2rem; }\n .guided-view-trail .guided-view-stop {\n min-height: 2rem;\n padding: 0.22rem 0.42rem 0.22rem 0.28rem;\n }\n .guided-view-handoff { max-width: min(9rem, 32vw); }\n .guided-view-index { padding-top: 0.35rem; }\n .guided-view-chapters {\n gap: 0.35rem;\n scroll-padding-inline: 0.2rem;\n }\n .guided-view-chapters li {\n flex: 0 0 min(14rem, 78vw);\n min-width: 0;\n }\n .guided-view-chapter { min-height: 2.75rem; }\n .guided-views[data-active-view=\"all\"] {\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem;\n padding: 0.25rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-copy {\n grid-column: 1;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-actions {\n grid-column: 2;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-play {\n min-width: 6rem !important;\n min-height: 2.75rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-index {\n grid-column: 1 / -1;\n grid-row: 2;\n padding: 0.3rem 0.08rem 0;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n border-left: 0;\n }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .share-chapter-cue:not([hidden]),\n html[data-embed=\"true\"][data-share-moment=\"true\"] .share-chapter-cue:not([hidden]) {\n top: 0.5rem;\n grid-template-columns: auto minmax(0, 1fr);\n gap: 0.28rem 0.55rem;\n width: calc(100% - 1rem);\n min-height: 0;\n padding: 0.45rem 0.55rem 0.55rem;\n }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n html[data-embed=\"true\"][data-share-moment=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n .share-chapter-index {\n min-width: 4.4rem;\n padding-right: 0.5rem;\n }\n .share-chapter-copy small { font-size: 0.46rem; }\n .share-chapter-route {\n grid-column: 1 / -1;\n font-size: 0.5rem;\n text-align: left;\n }\n .cards {\n grid-template-columns: 1fr;\n margin-top: 1rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body { padding: 0.5rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n gap: 0.5rem;\n height: calc(100dvh - 1rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar {\n position: fixed;\n top: 0.5rem;\n right: 0.5rem;\n margin: 0;\n gap: 0.25rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar button {\n min-height: 2.75rem;\n padding: 0.42rem 0.58rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n min-height: 2.25rem;\n padding: 3.5rem 0 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row {\n min-height: 2.25rem;\n margin: 0;\n align-items: center;\n flex-wrap: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row::after,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .pulse-dot,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) h1 {\n flex: 1 1 auto;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n font-size: 0.875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views {\n padding: 0.2rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-view-copy small { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-story-caption small { display: block; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n width: 720px;\n height: auto;\n min-width: 720px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .guided-story-caption { animation: none !important; }\n }\n\n @media (max-width: 360px) {\n .toolbar { gap: 0.25rem; }\n .toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }\n .toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }\n #theme-label, #preset-label, #present-label { display: none; }\n .guided-view-handoff { max-width: 6.5rem; }\n }\n\n /* ==========================================================\n SVG SEMANTIC CLASSES — use these instead of inline fill/stroke\n ========================================================== */\n .c-grid { stroke: var(--grid); fill: none; }\n .c-mask { fill: var(--mask); stroke: none; }\n\n .c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }\n .c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }\n .c-database { fill: var(--database-fill); stroke: var(--database-stroke); }\n .c-cloud { fill: var(--cloud-fill); stroke: var(--cloud-stroke); }\n .c-security { fill: var(--security-fill); stroke: var(--security-stroke); }\n .c-messagebus { fill: var(--messagebus-fill); stroke: var(--messagebus-stroke); }\n .c-external { fill: var(--external-fill); stroke: var(--external-stroke); }\n\n /* Text helpers */\n .t-primary { fill: var(--text); }\n .t-muted { fill: var(--text-muted); }\n .t-dim { fill: var(--text-dim); }\n .t-frontend { fill: var(--frontend-stroke); }\n .t-backend { fill: var(--backend-stroke); }\n .t-database { fill: var(--database-stroke); }\n .t-cloud { fill: var(--cloud-stroke); }\n .t-security { fill: var(--security-stroke); }\n .t-messagebus { fill: var(--messagebus-stroke); }\n .t-external { fill: var(--external-stroke); }\n\n /* Semantic Sigils are small authored role stamps, not icons from a brand\n pack and not viewer controls. Prefix selectors with svg so the canonical\n export's SVG-only stylesheet collector keeps them automatically. */\n svg .semantic-sigil {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n opacity: 0.76;\n pointer-events: none;\n }\n svg .semantic-sigil \u003e * { vector-effect: non-scaling-stroke; }\n svg .semantic-sigil .sigil-fill { fill: currentColor; stroke: none; }\n svg .s-frontend { color: var(--frontend-stroke); }\n svg .s-backend { color: var(--backend-stroke); }\n svg .s-database { color: var(--database-stroke); }\n svg .s-cloud { color: var(--cloud-stroke); }\n svg .s-security { color: var(--security-stroke); }\n svg .s-messagebus { color: var(--messagebus-stroke); }\n svg .s-external { color: var(--external-stroke); }\n\n /* Reading Depth is a viewer-only level-of-detail layer. MAP preserves the\n authored structure and primary labels, READ restores relationship labels\n and node context, and FULL restores tags and fine annotations. Semantic\n intent can reveal the relevant detail without moving any geometry. */\n svg [data-detail] { transition: opacity 160ms ease; }\n svg [data-detail-anchor] {\n transform-box: fill-box;\n transform-origin: center;\n transition: transform 160ms ease;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"context\"],\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"fine\"],\n .diagram-container[data-detail-level=\"read\"] svg [data-detail=\"fine\"] {\n opacity: 0;\n pointer-events: none;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail-anchor] {\n transform: translateY(8px);\n }\n\n /* Focus, lens, preview, route, and story states are stronger reader intent than\n the global zoom level. Reveal only their exact semantic matches. */\n svg[data-focus-active] [data-focus-match][data-detail],\n svg[data-focus-active] [data-focus-match] [data-detail],\n svg[data-reach-active] [data-reach-match][data-detail],\n svg[data-reach-active] [data-reach-match] [data-detail],\n svg[data-lens-active] [data-lens-match][data-detail],\n svg[data-lens-active] [data-lens-match] [data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match][data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match][data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],\n svg[data-route-active] [data-route-match][data-detail],\n svg[data-route-active] [data-route-match] [data-detail],\n svg[data-story-active] [data-story-step][data-detail],\n svg[data-story-active] [data-story-step] [data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview][data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],\n svg [data-node-id]:hover [data-detail],\n svg [data-node-id]:focus-visible [data-detail] {\n opacity: 1;\n pointer-events: auto;\n }\n svg[data-focus-active] [data-focus-match] [data-detail-anchor],\n svg[data-reach-active] [data-reach-match] [data-detail-anchor],\n svg[data-lens-active] [data-lens-match] [data-detail-anchor],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],\n svg[data-route-active] [data-route-match] [data-detail-anchor],\n svg[data-story-active] [data-story-step] [data-detail-anchor],\n svg [data-node-id]:hover [data-detail-anchor],\n svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }\n\n /* Arrows */\n .a-default { stroke: var(--arrow); fill: none; }\n .a-emphasis { stroke: var(--arrow-emphasis); fill: none; }\n .a-security { stroke: var(--security-stroke); fill: none; stroke-dasharray: 5,5; }\n .a-dashed { stroke: var(--database-stroke); fill: none; stroke-dasharray: 4,4; }\n\n /* Arrowhead markers reference these */\n .m-default { fill: var(--arrow); }\n .m-emphasis { fill: var(--arrow-emphasis); }\n .m-security { fill: var(--security-stroke); }\n .m-dashed { fill: var(--database-stroke); }\n\n /* Stable semantic exploration hooks emitted by every renderer. */\n svg [data-node-id] {\n cursor: pointer;\n transition: opacity 0.18s ease, filter 0.18s ease;\n }\n svg [data-edge-from] { transition: opacity 0.18s ease, filter 0.18s ease; }\n svg [data-node-id]:hover,\n svg [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n outline: none;\n }\n /* Verified Source Beacons are installed at runtime only for nodes whose\n repository evidence passed the local revision/blob/line checks. They\n live inside the owning node so every focus, route, story, and guided\n view keeps one coherent opacity state. Export serialization removes\n them before producing the canonical SVG or any derived visual. */\n .source-evidence-beacon {\n pointer-events: none;\n opacity: 0.76;\n transition: opacity 160ms ease, filter 160ms ease;\n }\n .source-evidence-beacon rect {\n fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));\n stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n .source-evidence-beacon text {\n fill: var(--backend-stroke);\n font-size: 5.5px;\n font-weight: 800;\n letter-spacing: 0.06em;\n text-anchor: middle;\n text-transform: uppercase;\n }\n svg [data-node-id]:hover .source-evidence-beacon,\n svg [data-node-id]:focus-visible .source-evidence-beacon,\n svg [data-node-id][data-focus-selected] .source-evidence-beacon {\n opacity: 1;\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"signal-flow\"] .source-evidence-beacon { opacity: 0.9; }\n svg[data-preset=\"blueprint\"] .source-evidence-beacon rect {\n rx: 0.8px;\n filter: none;\n }\n svg [data-legend-kind][role=\"button\"] { cursor: pointer; }\n svg [data-legend-kind]:focus { outline: none; }\n svg [data-legend-hit] {\n fill: transparent;\n stroke: transparent;\n stroke-width: 1.4;\n pointer-events: all;\n vector-effect: non-scaling-stroke;\n transition: stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;\n }\n svg [data-legend-count-badge] { pointer-events: none; }\n svg [data-legend-count-badge] rect {\n fill: var(--mask);\n stroke: var(--panel-border);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n svg [data-legend-count-badge] text {\n fill: var(--text-muted);\n font-size: 7px;\n font-weight: 700;\n text-anchor: middle;\n }\n svg [data-legend-kind][role=\"button\"]:hover [data-legend-hit] {\n stroke: color-mix(in srgb, var(--database-stroke) 58%, transparent);\n }\n svg [data-legend-kind][role=\"button\"]:focus-visible [data-legend-hit] {\n stroke: var(--frontend-stroke);\n stroke-width: 1.8;\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-hit] {\n stroke: var(--database-stroke);\n stroke-width: 2.2;\n stroke-dasharray: 3 2;\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-count-badge] rect {\n stroke: var(--database-stroke);\n stroke-width: 1.8;\n }\n svg [data-legend-kind][data-legend-zero] { opacity: 0.44; }\n svg[data-preset=\"signal-flow\"] [data-legend-kind][data-legend-selected] [data-legend-hit] {\n filter: drop-shadow(0 0 4px var(--database-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-legend-hit],\n svg[data-preset=\"blueprint\"] [data-legend-count-badge] rect { rx: 0; filter: none; }\n svg[data-legend-preview-active] [data-node-id],\n svg[data-legend-preview-active] [data-edge-from] { opacity: 0.11; }\n svg[data-legend-preview-active] [data-legend-preview-match] { opacity: 1; }\n svg[data-legend-preview-active] [data-legend-preview-peer] { opacity: 0.62; }\n svg[data-legend-preview-active] [data-legend-preview-selected] {\n filter: drop-shadow(0 0 8px var(--database-stroke));\n }\n svg[data-lens-active] [data-node-id],\n svg[data-lens-active] [data-edge-from] { opacity: 0.11; }\n svg[data-lens-active] [data-lens-match] { opacity: 1; }\n svg[data-lens-active] [data-lens-peer] { opacity: 0.62; }\n svg[data-lens-active] [data-lens-selected] {\n filter: drop-shadow(0 0 10px var(--database-stroke));\n }\n .semantic-lens-overlay { pointer-events: none; }\n .semantic-lens-flow {\n fill: none;\n stroke-width: 3.05;\n stroke-linecap: round;\n stroke-dasharray: 0.075 0.925;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.9;\n animation: archify-semantic-lens-flow 1.35s linear 1 both;\n animation-delay: var(--lens-flow-delay, 0s);\n }\n .semantic-lens-flow[data-direction=\"out\"],\n .semantic-lens-flow[data-direction=\"forward\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n .semantic-lens-flow[data-direction=\"in\"],\n .semantic-lens-flow[data-direction=\"reverse\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 3px var(--database-stroke));\n }\n .semantic-lens-flow[data-direction=\"within\"] {\n stroke: var(--messagebus-stroke);\n filter: drop-shadow(0 0 3px var(--messagebus-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow {\n stroke-width: 3.7;\n opacity: 1;\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"out\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"forward\"] {\n filter: drop-shadow(0 0 6px var(--frontend-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"in\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"reverse\"] {\n filter: drop-shadow(0 0 6px var(--database-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"within\"] {\n filter: drop-shadow(0 0 6px var(--messagebus-stroke));\n }\n svg[data-preset=\"blueprint\"] .semantic-lens-flow {\n stroke-width: 2.45;\n stroke-linecap: square;\n filter: none;\n opacity: 0.78;\n }\n html[data-embed=\"true\"] .semantic-lens-overlay { display: none; }\n svg[data-focus-active] [data-node-id],\n svg[data-focus-active] [data-edge-from] { opacity: 0.13; }\n svg[data-focus-active] [data-focus-match] { opacity: 1; }\n svg[data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n\n /* Authored Reachability is a bounded graph query over the relationships\n already present in the artifact. Upstream walks incoming edges;\n downstream walks outgoing edges. It never claims runtime causality and\n changes only viewer emphasis, not canonical geometry or export bytes. */\n svg[data-reach-active] [data-node-id],\n svg[data-reach-active] [data-edge-from] { opacity: 0.09; }\n svg[data-reach-active] [data-reach-match] { opacity: 1; }\n svg[data-reach-active=\"upstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--database-stroke));\n }\n svg[data-reach-active=\"downstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--backend-stroke));\n }\n svg[data-reach-active=\"upstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--database-stroke) 72%, transparent));\n }\n svg[data-reach-active=\"downstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"blueprint\"][data-reach-active] [data-reach-origin],\n svg[data-preset=\"blueprint\"][data-reach-active] [data-edge-from][data-reach-match] {\n filter: none;\n }\n\n /* Direct Relationship Explorer makes authored paths a real input surface\n without changing their visible stroke or canonical SVG. A transparent\n runtime rail supplies forgiving pointer geometry; the exact authored\n path and endpoints continue to carry every visible state. */\n .relationship-hit-overlay { pointer-events: none; }\n .relationship-hit-target { outline: none; }\n .relationship-hit-rail {\n fill: none;\n stroke: transparent;\n stroke-width: 24;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: stroke;\n cursor: pointer;\n }\n .relationship-focus-rail {\n fill: none;\n stroke: color-mix(in srgb, var(--frontend-stroke) 34%, transparent);\n stroke-width: 6;\n stroke-dasharray: 2 4;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n opacity: 0;\n }\n .relationship-hit-target:focus-visible .relationship-focus-rail {\n opacity: 1;\n }\n svg[data-preset=\"blueprint\"] .relationship-hit-target:focus-visible .relationship-focus-rail {\n stroke-linecap: square;\n filter: none;\n }\n svg[data-relationship-direct-active] [data-node-id],\n svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }\n svg[data-relationship-direct-active] [data-relationship-preview],\n svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,\n svg[data-story-active] .relationship-hit-rail,\n svg[data-route-picking] .relationship-hit-rail,\n svg[data-route-active] .relationship-hit-rail,\n svg[data-lens-active] .relationship-hit-rail,\n svg[data-chapter-preview] .relationship-hit-rail { pointer-events: none; }\n html[data-embed=\"true\"] .relationship-hit-overlay { display: none; }\n @media (hover: none), (pointer: coarse) {\n .relationship-hit-rail { stroke-width: 24; }\n }\n\n /* Relationship Preview is temporary exploration state layered on top of\n neighborhood focus. It changes emphasis only; exported geometry and the\n relationship's original solid/dashed visual language stay untouched. */\n svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }\n svg[data-relationship-preview-active] [data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-relationship-preview-active] [data-relationship-preview] {\n filter: drop-shadow(0 0 5px var(--arrow-emphasis));\n }\n svg[data-relationship-preview-active] [data-relationship-preview] path,\n svg[data-relationship-preview-active] path[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] line,\n svg[data-relationship-preview-active] line[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] polyline,\n svg[data-relationship-preview-active] polyline[data-relationship-preview] {\n stroke-width: 2.75;\n }\n svg[data-relationship-preview-active] [data-relationship-preview-source] {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 7px var(--database-stroke));\n }\n .relationship-pulse-overlay { pointer-events: none; }\n .relationship-flow-pulse {\n fill: none;\n stroke: var(--arrow-emphasis);\n stroke-width: 3.35;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 4px var(--arrow-emphasis));\n animation: archify-relationship-pulse 1.2s linear 1 both;\n }\n svg[data-preset=\"signal-flow\"] .relationship-flow-pulse {\n stroke: var(--frontend-stroke);\n stroke-width: 3.85;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"] .relationship-flow-pulse {\n stroke-width: 2.5;\n stroke-linecap: square;\n filter: none;\n }\n .semantic-flow-token {\n color: var(--frontend-stroke);\n opacity: 0;\n pointer-events: none;\n }\n .relationship-flow-token {\n animation: archify-relationship-token-life 1.2s linear 1 both;\n }\n .story-flow-token {\n animation: archify-relationship-token-life 0.78s linear 1 both;\n }\n .semantic-flow-token-halo {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.1;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n }\n .relationship-flow-token-shape {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-ink {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.05;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-dot { fill: currentColor; stroke: none; }\n .semantic-flow-token[data-token-kind=\"data\"] { color: var(--database-stroke); }\n .semantic-flow-token[data-token-kind=\"event\"] { color: var(--messagebus-stroke); }\n .semantic-flow-token[data-token-kind=\"security\"] { color: var(--security-stroke); }\n .semantic-flow-token[data-token-kind=\"state\"] { color: var(--cloud-stroke); }\n svg[data-preset=\"signal-flow\"] .semantic-flow-token {\n filter: drop-shadow(0 0 5px currentColor);\n }\n svg[data-preset=\"blueprint\"] .semantic-flow-token { filter: none; }\n html[data-embed=\"true\"] .relationship-pulse-overlay { display: none; }\n\n /* Intent Trace is a temporary, pre-click exploration layer. Related\n topology stays readable while a short viewer-only signal runs over\n cloned edge geometry; the authored edge remains untouched underneath. */\n svg[data-intent-trace-active] [data-node-id],\n svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }\n svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }\n svg[data-intent-trace-active] [data-intent-trace-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n .intent-trace-overlay { pointer-events: none; }\n .intent-trace-flow {\n fill: none;\n stroke-width: 3.1;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.94;\n animation: archify-intent-trace-flow 1.15s linear 1 both;\n }\n .intent-trace-flow[data-direction=\"out\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 4px var(--frontend-stroke));\n }\n .intent-trace-flow[data-direction=\"in\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 4px var(--database-stroke));\n animation-direction: reverse;\n }\n .intent-trace-flow[data-direction=\"loop\"] {\n stroke: var(--security-stroke);\n filter: drop-shadow(0 0 4px var(--security-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-intent-trace-selected],\n svg[data-preset=\"blueprint\"] .intent-trace-flow {\n filter: none;\n stroke-linecap: square;\n }\n .intent-trace-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n /* Route Probe separates a durable two-point query from selection and\n one-hop hover. Only the chosen shortest directed path stays prominent;\n the traveling signal is cloned viewer geometry and never authored SVG. */\n svg[data-route-picking=\"target\"] [data-node-id] { opacity: 0.24; }\n svg[data-route-picking=\"target\"] [data-route-candidate],\n svg[data-route-picking=\"target\"] [data-route-start] { opacity: 1; }\n svg[data-route-picking] [data-node-id] { cursor: crosshair; }\n svg[data-route-picking] [data-route-start] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n svg[data-route-active] [data-node-id],\n svg[data-route-active] [data-edge-from] { opacity: 0.11; }\n svg[data-route-active] [data-route-match] { opacity: 1; }\n svg[data-route-active] [data-route-start] {\n filter: drop-shadow(0 0 11px var(--frontend-stroke));\n }\n svg[data-route-active] [data-route-end] {\n filter: drop-shadow(0 0 11px var(--security-stroke));\n }\n svg[data-route-active] [data-route-step]:not([data-route-start]):not([data-route-end]) {\n filter: drop-shadow(0 0 7px var(--backend-stroke));\n }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"past\"] { opacity: 0.62; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"future\"] { opacity: 0.34; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"current\"] { opacity: 1; }\n svg[data-route-journey] [data-node-id][data-route-journey-current] {\n filter: drop-shadow(0 0 10px var(--backend-stroke));\n }\n svg[data-route-journey] [data-edge-from][data-route-journey-current] {\n opacity: 1;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n }\n .route-probe-overlay { pointer-events: none; }\n .route-journey-overlay { pointer-events: none; }\n .route-probe-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.25;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n filter: drop-shadow(0 0 5px var(--backend-stroke));\n animation: archify-route-probe-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n animation-delay: calc(var(--route-step, 0) * 0.16s);\n }\n .route-journey-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.5;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n animation: archify-route-journey-flow 780ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n }\n svg[data-preset=\"blueprint\"] [data-route-start],\n svg[data-preset=\"blueprint\"] [data-route-end],\n svg[data-preset=\"blueprint\"] [data-route-step],\n svg[data-preset=\"blueprint\"] .route-probe-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"blueprint\"] .route-journey-flow {\n filter: none;\n stroke-linecap: square;\n }\n\n svg[data-preset=\"blueprint\"] .c-grid {\n stroke-dasharray: 1 3;\n opacity: 0.78;\n }\n svg[data-preset=\"blueprint\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 58%, transparent);\n stroke-dasharray: 12 4 2 4;\n }\n svg[data-preset=\"blueprint\"] .c-security-group,\n svg[data-preset=\"blueprint\"] .c-lane { stroke-dasharray: 7 3; }\n svg[data-preset=\"blueprint\"] [data-node-id]:hover,\n svg[data-preset=\"blueprint\"] [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active][data-reach-active] [data-focus-selected][data-reach-origin] {\n filter: none;\n }\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-source],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n\n /* Story Trail is a viewer-only overlay derived from the ordered focus IDs\n of the active guided view. The authored edge stays underneath with its\n original color, dash pattern, marker, and geometry intact. */\n .story-trail-overlay { pointer-events: none; }\n .story-carrier-overlay { pointer-events: none; }\n .story-trail-flow {\n fill: none;\n stroke: var(--frontend-stroke);\n stroke-width: 2.8;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n opacity: 0.34;\n filter: drop-shadow(0 0 2px var(--frontend-stroke));\n }\n svg[data-story-beat] [data-story-step] {\n opacity: 0.22;\n filter: saturate(0.42);\n transition: opacity 180ms ease, filter 180ms ease;\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"past\"] {\n opacity: 0.72;\n filter: saturate(0.82);\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"next\"] {\n opacity: 0.5;\n filter: saturate(0.66);\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n opacity: 1;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n animation: archify-story-beat-node 360ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n svg[data-story-beat] [data-edge-from][data-story-beat-step] {\n opacity: 0.16;\n transition: opacity 160ms ease;\n }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"past\"] { opacity: 0.58; }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"next\"] { opacity: 0.34; }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"active\"] { opacity: 1; }\n svg[data-story-beat] .story-trail-flow { opacity: 0; transition: opacity 160ms ease; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"past\"] { opacity: 0.34; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"next\"] { opacity: 0.2; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"active\"] { opacity: 0.92; }\n svg[data-story-beat] .story-trail-flow[data-story-pulse=\"true\"] {\n stroke-dasharray: 2 13;\n stroke-dashoffset: 30;\n opacity: 0.92;\n animation: archify-story-flow 0.78s linear 1 both;\n }\n svg[data-preset=\"blueprint\"] .story-trail-flow {\n stroke-linecap: square;\n filter: none;\n opacity: 0.5;\n }\n svg[data-preset=\"blueprint\"][data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n filter: none;\n animation: none;\n }\n\n /* Chapter Delta Preview is a static, pre-commit comparison between two\n chapter focus sets. Symbols in the rail carry the meaning without color;\n these SVG rules only make exact stable-ID membership easier to scan. */\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] {\n opacity: 0.1 !important;\n filter: none !important;\n transition: none !important;\n }\n svg[data-chapter-preview] .story-trail-overlay { opacity: 0.08 !important; }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"stay\"] {\n opacity: 0.76 !important;\n filter: saturate(0.7) !important;\n }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"enter\"] {\n opacity: 1 !important;\n filter: saturate(1.2) !important;\n }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"leave\"] {\n opacity: 0.28 !important;\n filter: grayscale(0.72) !important;\n }\n svg[data-preset=\"blueprint\"][data-chapter-preview] [data-node-id] { filter: none !important; }\n\n /* Dashed boundary variants */\n .c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }\n .c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }\n .c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }\n\n /* Optional trace animation, enabled only by meta.animation = \"trace\".\n The ordinary viewer performs one ambient pass and then restores the\n authored solid/security/async line language. WebM samples the same\n authored geometry into an explicit canvas timeline. */\n html[data-ambient-motion=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"edge\"] {\n animation: archify-edge-flow 2.4s linear 1;\n animation-delay: calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n transform-box: fill-box;\n transform-origin: center;\n animation: archify-node-pulse 3.6s ease-in-out 1;\n animation-delay: calc(var(--step, 0) * 160ms);\n }\n svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n stroke-linecap: round;\n filter: drop-shadow(0 0 3px var(--arrow-emphasis));\n animation-duration: 1.75s;\n }\n svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-duration: 3.1s;\n }\n svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n stroke-linecap: square;\n filter: none;\n animation-duration: 2.15s;\n }\n svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-name: archify-blueprint-node-pulse;\n animation-duration: 3.8s;\n }\n /* Embedded proofs are static until a named Story Trail chapter is played.\n This keeps proof grids calm and ensures ?play=1 stops all viewer motion\n after one 3.2 second chapter instead of leaving ambient trace loops on. */\n html[data-embed=\"true\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-share-playback=\"true\"] svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n @keyframes archify-edge-flow {\n 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }\n 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }\n 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }\n 100% { stroke-dashoffset: 0; opacity: 1; }\n }\n @keyframes archify-node-pulse {\n 0%, 72%, 100% { filter: none; stroke-width: 1.5; }\n 18%, 36% {\n filter: drop-shadow(0 0 8px var(--arrow-emphasis));\n stroke-width: 2.4;\n }\n }\n @keyframes archify-blueprint-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }\n }\n @keyframes archify-signal-scan {\n 0%, 18% { opacity: 1; transform: translateX(-70%); }\n 70% { opacity: 1; transform: translateX(70%); }\n 100% { opacity: 0; transform: translateX(70%); }\n }\n @keyframes archify-radar-live {\n 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }\n 55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }\n }\n @keyframes archify-guided-progress {\n from { transform: scaleX(var(--guided-progress-start, 0)); }\n to { transform: scaleX(1); }\n }\n @keyframes archify-story-flow {\n to { stroke-dashoffset: 0; }\n }\n @keyframes archify-intent-trace-flow {\n 0% { opacity: 0.28; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.94; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-route-probe-flow {\n 0% { stroke-dashoffset: 0; opacity: 0.96; }\n 78% { stroke-dashoffset: -1; opacity: 0.96; }\n 100% { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.58; }\n }\n @keyframes archify-route-journey-flow {\n 0% { opacity: 0.16; stroke-dashoffset: 0; }\n 14%, 76% { opacity: 1; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-semantic-lens-flow {\n 0% { opacity: 0.2; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.9; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-pulse {\n 0% { opacity: 0.18; stroke-dashoffset: 0; }\n 10%, 76% { opacity: 0.98; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-token-life {\n 0%, 7% { opacity: 0; }\n 13%, 82% { opacity: 1; }\n 100% { opacity: 0; }\n }\n @keyframes archify-story-beat-node {\n from { opacity: 0.48; filter: saturate(0.6); }\n 58% { opacity: 1; filter: drop-shadow(0 0 10px var(--frontend-stroke)); }\n to { opacity: 1; filter: drop-shadow(0 0 7px var(--frontend-stroke)); }\n }\n @keyframes archify-share-cue-enter {\n from { opacity: 0; transform: translate(-50%, -0.45rem); }\n to { opacity: 1; transform: translate(-50%, 0); }\n }\n @keyframes archify-share-cue-pulse {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 50% { opacity: 0.48; transform: scale(0.78); }\n }\n @media (prefers-reduced-motion: reduce) {\n html[data-preset=\"signal-flow\"] .diagram-container::before {\n animation: none !important;\n }\n .pulse-dot { animation: none !important; }\n svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n .guided-view-progress span {\n animation: none !important;\n transform: scaleX(1) !important;\n }\n .story-trail-flow,\n .intent-trace-flow,\n .route-probe-flow,\n .semantic-lens,\n .diagram-guide,\n [data-story-step],\n .overview-map-live,\n .guided-view-stop,\n .share-chapter-cue,\n .chapter-handoff-anchor,\n .share-chapter-state::before,\n .share-chapter-progress span { animation: none !important; }\n .guided-view-chapter,\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] { transition: none !important; }\n svg[data-story-playing=\"true\"] .story-trail-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.55;\n }\n .intent-trace-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n .route-probe-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.78;\n }\n .route-journey-overlay,\n .story-carrier-overlay { display: none !important; }\n .semantic-lens-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-width: 2.2;\n opacity: 0.34;\n filter: none;\n }\n .relationship-pulse-overlay { display: none !important; }\n .guided-view-chapter { transition: none !important; }\n .source-evidence-beacon,\n svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }\n }\n ";
+ const exportCss = "\n /* ==========================================================\n THEME VARIABLES — switch by toggling [data-theme] on \u003chtml\u003e\n ========================================================== */\n :root,\n [data-theme=\"dark\"] {\n --bg: #020617;\n --grid: #1e293b;\n --text: #ffffff;\n --text-muted: #94a3b8;\n --text-dim: #475569;\n /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */\n --text-faint: #7d8da1;\n\n --panel: rgba(15, 23, 42, 0.5);\n --panel-border: #1e293b;\n --lane-fill: rgba(15, 23, 42, 0.22);\n --lane-stroke: #334155;\n\n --arrow: #64748b;\n --arrow-emphasis: #34d399;\n\n /* Opaque mask color used behind semi-transparent component fills\n so the arrows drawn underneath are properly hidden. */\n --mask: #0f172a;\n\n --frontend-fill: rgba(8, 51, 68, 0.4);\n --frontend-stroke: #22d3ee;\n --backend-fill: rgba(6, 78, 59, 0.4);\n --backend-stroke: #34d399;\n --database-fill: rgba(76, 29, 149, 0.4);\n --database-stroke: #a78bfa;\n --cloud-fill: rgba(120, 53, 15, 0.3);\n --cloud-stroke: #fbbf24;\n --security-fill: rgba(136, 19, 55, 0.4);\n --security-stroke: #fb7185;\n --messagebus-fill: rgba(251, 146, 60, 0.3);\n --messagebus-stroke:#fb923c;\n --external-fill: rgba(30, 41, 59, 0.5);\n --external-stroke: #94a3b8;\n\n --toolbar-bg: rgba(15, 23, 42, 0.8);\n --toolbar-border: #334155;\n --toolbar-text: #e2e8f0;\n --toolbar-hover: rgba(15, 23, 42, 0.95);\n --toolbar-menu-bg: #0f172a;\n }\n\n [data-theme=\"light\"] {\n --bg: #f8fafc;\n --grid: #e2e8f0;\n --text: #0f172a;\n --text-muted: #64748b;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n\n --mask: #ffffff;\n\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n\n --toolbar-bg: rgba(255, 255, 255, 0.92);\n --toolbar-border: #cbd5e1;\n --toolbar-text: #334155;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #ffffff;\n }\n\n /* ==========================================================\n SIGNAL FLOW — an opt-in, motion-forward visual preset.\n The variables also target a standalone exported SVG, whose\n root carries data-preset and data-theme directly.\n ========================================================== */\n [data-preset=\"signal-flow\"][data-theme=\"dark\"] {\n --bg: #030711;\n --grid: #15233a;\n --panel: rgba(6, 14, 28, 0.78);\n --panel-border: #1d3350;\n --lane-fill: rgba(9, 22, 40, 0.5);\n --lane-stroke: #2c4564;\n --text: #f5fbff;\n --text-muted: #9eb0c7;\n --text-dim: #52667f;\n --text-faint: #7890ad;\n --mask: #07101e;\n --frontend-fill: rgba(6, 182, 212, 0.14);\n --frontend-stroke: #67e8f9;\n --backend-fill: rgba(16, 185, 129, 0.14);\n --backend-stroke: #5eead4;\n --database-fill: rgba(139, 92, 246, 0.16);\n --database-stroke: #c4b5fd;\n --cloud-fill: rgba(245, 158, 11, 0.13);\n --cloud-stroke: #fcd34d;\n --security-fill: rgba(244, 63, 94, 0.13);\n --security-stroke: #fda4af;\n --messagebus-fill: rgba(249, 115, 22, 0.13);\n --messagebus-stroke: #fdba74;\n --external-fill: rgba(71, 85, 105, 0.24);\n --external-stroke: #a5b4c7;\n --arrow: #7890ad;\n --arrow-emphasis: #2dd4bf;\n --toolbar-bg: rgba(7, 16, 30, 0.86);\n --toolbar-border: #29415f;\n --toolbar-menu-bg: #07101e;\n }\n\n [data-preset=\"signal-flow\"][data-theme=\"light\"] {\n --bg: #f4f9fc;\n --grid: #d4e5ee;\n --panel: rgba(255, 255, 255, 0.82);\n --panel-border: #bfd5e2;\n --lane-fill: rgba(232, 243, 248, 0.62);\n --lane-stroke: #a9c5d5;\n --text: #102638;\n --text-muted: #587287;\n --text-dim: #8aa2b4;\n --text-faint: #668397;\n --mask: #ffffff;\n --frontend-fill: rgba(6, 182, 212, 0.09);\n --frontend-stroke: #0789a1;\n --backend-fill: rgba(5, 150, 105, 0.09);\n --backend-stroke: #087f69;\n --database-fill: rgba(124, 58, 237, 0.09);\n --database-stroke: #7254c7;\n --cloud-fill: rgba(217, 119, 6, 0.08);\n --cloud-stroke: #b9670b;\n --security-fill: rgba(225, 29, 72, 0.08);\n --security-stroke: #c53a59;\n --messagebus-fill: rgba(234, 88, 12, 0.08);\n --messagebus-stroke: #c65f27;\n --external-fill: rgba(100, 116, 139, 0.1);\n --external-stroke: #607a8c;\n --arrow: #7b97aa;\n --arrow-emphasis: #0d9488;\n }\n\n /* ==========================================================\n BLUEPRINT — a review-first drafting preset for deployment,\n infrastructure, and technical design documentation. It keeps\n the same semantic palette and geometry while trading glow for\n precise grid contrast, squared materials, and drafting marks.\n ========================================================== */\n [data-preset=\"blueprint\"][data-theme=\"dark\"] {\n --bg: #06131f;\n --grid: #17425a;\n --panel: rgba(7, 27, 43, 0.9);\n --panel-border: #27627f;\n --lane-fill: rgba(10, 43, 66, 0.36);\n --lane-stroke: #34799a;\n --text: #e3f6ff;\n --text-muted: #91b8ca;\n --text-dim: #557e92;\n --text-faint: #739caf;\n --mask: #0a2031;\n --frontend-fill: rgba(26, 157, 193, 0.14);\n --frontend-stroke: #66d9ef;\n --backend-fill: rgba(31, 155, 124, 0.13);\n --backend-stroke: #69dfbd;\n --database-fill: rgba(120, 105, 196, 0.14);\n --database-stroke: #b4a8ff;\n --cloud-fill: rgba(197, 145, 43, 0.13);\n --cloud-stroke: #ffd166;\n --security-fill: rgba(199, 76, 104, 0.13);\n --security-stroke: #ff8da1;\n --messagebus-fill: rgba(207, 112, 49, 0.13);\n --messagebus-stroke: #ffad66;\n --external-fill: rgba(84, 119, 139, 0.18);\n --external-stroke: #a7cad9;\n --arrow: #78a3b7;\n --arrow-emphasis: #64dfc1;\n --toolbar-bg: rgba(7, 28, 45, 0.92);\n --toolbar-border: #34799a;\n --toolbar-text: #d8f3ff;\n --toolbar-hover: rgba(18, 58, 83, 0.95);\n --toolbar-menu-bg: #0a2031;\n }\n\n [data-preset=\"blueprint\"][data-theme=\"light\"] {\n --bg: #edf7fa;\n --grid: #b5d5e1;\n --panel: rgba(249, 253, 255, 0.94);\n --panel-border: #78aabd;\n --lane-fill: rgba(210, 232, 240, 0.42);\n --lane-stroke: #83b2c4;\n --text: #123344;\n --text-muted: #4e7486;\n --text-dim: #86a6b4;\n --text-faint: #668c9d;\n --mask: #f9fdff;\n --frontend-fill: rgba(8, 145, 178, 0.08);\n --frontend-stroke: #087f9c;\n --backend-fill: rgba(5, 128, 101, 0.08);\n --backend-stroke: #08755f;\n --database-fill: rgba(100, 75, 180, 0.08);\n --database-stroke: #6757a8;\n --cloud-fill: rgba(181, 120, 15, 0.08);\n --cloud-stroke: #a86609;\n --security-fill: rgba(190, 48, 80, 0.07);\n --security-stroke: #b32f50;\n --messagebus-fill: rgba(196, 81, 22, 0.07);\n --messagebus-stroke: #b65120;\n --external-fill: rgba(79, 112, 128, 0.08);\n --external-stroke: #506f7e;\n --arrow: #6d93a5;\n --arrow-emphasis: #087f69;\n --toolbar-bg: rgba(247, 252, 254, 0.94);\n --toolbar-border: #8ab5c5;\n --toolbar-text: #294f61;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #f9fdff;\n }\n\n /* ==========================================================\n EDITORIAL — a warm, publication-minded preset for design\n reviews, launch notes, and documentation. The diagram keeps\n the same semantic palette and exact geometry, but trades\n software chrome for paper, ink, ruled structure, and one\n restrained vermilion accent.\n ========================================================== */\n [data-preset=\"editorial\"][data-theme=\"dark\"] {\n --bg: #181611;\n --grid: #39342a;\n --panel: rgba(35, 31, 24, 0.96);\n --panel-border: #625a4a;\n --lane-fill: rgba(52, 46, 35, 0.46);\n --lane-stroke: #726957;\n --text: #f4eddf;\n --text-muted: #b9ae9b;\n --text-dim: #776e60;\n --text-faint: #9d917e;\n --mask: #231f18;\n --frontend-fill: rgba(43, 133, 142, 0.16);\n --frontend-stroke: #7fc6c7;\n --backend-fill: rgba(63, 132, 92, 0.16);\n --backend-stroke: #8fc29e;\n --database-fill: rgba(117, 91, 141, 0.17);\n --database-stroke: #c0a4d0;\n --cloud-fill: rgba(170, 119, 49, 0.16);\n --cloud-stroke: #d8ad68;\n --security-fill: rgba(157, 69, 65, 0.17);\n --security-stroke: #df9085;\n --messagebus-fill: rgba(174, 79, 42, 0.16);\n --messagebus-stroke: #df946f;\n --external-fill: rgba(126, 115, 96, 0.18);\n --external-stroke: #b8ad99;\n --arrow: #948978;\n --arrow-emphasis: #dd6b3d;\n --toolbar-bg: rgba(35, 31, 24, 0.92);\n --toolbar-border: #625a4a;\n --toolbar-text: #eee5d5;\n --toolbar-hover: #302a20;\n --toolbar-menu-bg: #231f18;\n }\n\n [data-preset=\"editorial\"][data-theme=\"light\"] {\n --bg: #f2eee5;\n --grid: #d8d0c2;\n --panel: rgba(251, 248, 241, 0.97);\n --panel-border: #c4b9a6;\n --lane-fill: rgba(229, 221, 207, 0.42);\n --lane-stroke: #b8aa94;\n --text: #242018;\n --text-muted: #6f6658;\n --text-dim: #a09788;\n --text-faint: #817767;\n --mask: #fbf8f1;\n --frontend-fill: rgba(31, 117, 126, 0.09);\n --frontend-stroke: #287e84;\n --backend-fill: rgba(42, 119, 75, 0.09);\n --backend-stroke: #397b53;\n --database-fill: rgba(105, 75, 130, 0.09);\n --database-stroke: #765d86;\n --cloud-fill: rgba(157, 103, 31, 0.1);\n --cloud-stroke: #9a671f;\n --security-fill: rgba(153, 58, 52, 0.09);\n --security-stroke: #9e463f;\n --messagebus-fill: rgba(182, 70, 27, 0.09);\n --messagebus-stroke: #ad4b25;\n --external-fill: rgba(101, 91, 75, 0.09);\n --external-stroke: #746b5e;\n --arrow: #8a806f;\n --arrow-emphasis: #bb4c23;\n --toolbar-bg: rgba(251, 248, 241, 0.94);\n --toolbar-border: #c4b9a6;\n --toolbar-text: #40392f;\n --toolbar-hover: #fffdf8;\n --toolbar-menu-bg: #fbf8f1;\n }\n\n * { margin: 0; padding: 0; box-sizing: border-box; }\n\n body {\n font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;\n background: var(--bg);\n min-height: 100vh;\n padding: 2rem;\n color: var(--text);\n transition: background 0.2s ease, color 0.2s ease;\n }\n\n html[data-preset=\"signal-flow\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);\n background-attachment: fixed;\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);\n }\n html[data-preset=\"blueprint\"] body {\n background-image:\n linear-gradient(var(--grid) 1px, transparent 1px),\n linear-gradient(90deg, var(--grid) 1px, transparent 1px);\n background-size: 32px 32px;\n background-position: -1px -1px;\n background-attachment: fixed;\n }\n html[data-preset=\"editorial\"] body {\n background-image:\n linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),\n repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);\n background-attachment: fixed;\n }\n\n /* Gallery/embed mode keeps the generated artifact as the source of truth\n while presenting only its diagram surface inside a proof card. */\n html[data-embed=\"true\"] body {\n min-height: 0;\n padding: 0;\n overflow: hidden;\n background: var(--bg);\n background-image: none;\n }\n html[data-embed=\"true\"] .toolbar,\n html[data-embed=\"true\"] .header,\n html[data-embed=\"true\"] .cards,\n html[data-embed=\"true\"] .footer,\n html[data-embed=\"true\"] .diagram-nav,\n html[data-embed=\"true\"] .overview-map,\n html[data-embed=\"true\"] .focus-chip,\n html[data-embed=\"true\"] .route-probe,\n html[data-embed=\"true\"] .semantic-lens,\n html[data-embed=\"true\"] .diagram-guide,\n html[data-embed=\"true\"] .node-finder,\n html[data-embed=\"true\"] .guided-views { display: none !important; }\n html[data-embed=\"true\"] .container { max-width: none; }\n html[data-embed=\"true\"] .diagram-container {\n padding: 0.5rem;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n html[data-embed=\"true\"] .diagram-container svg { min-width: 0; }\n\n /* Share Chapter Cue lives in the HTML viewer layer, not inside the SVG.\n It gives one-shot embeds a title, authored note, truthful stop order,\n and lifecycle state while canonical diagram geometry stays untouched. */\n .share-chapter-cue { display: none; }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .share-chapter-cue:not([hidden]),\n html[data-embed=\"true\"][data-share-moment=\"true\"] .share-chapter-cue:not([hidden]) {\n position: absolute;\n z-index: 18;\n top: 0.85rem;\n left: 50%;\n display: grid;\n grid-template-columns: auto minmax(9rem, 13.5rem) minmax(0, 1fr);\n align-items: center;\n gap: 0.45rem 0.85rem;\n width: min(52rem, calc(100% - 1.5rem));\n min-height: 3.35rem;\n padding: 0.55rem 0.75rem 0.65rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));\n border-radius: 0.75rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--frontend-fill) 52%, transparent), transparent 45%),\n color-mix(in srgb, var(--toolbar-menu-bg) 92%, transparent);\n color: var(--toolbar-text);\n box-shadow: 0 14px 42px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.045);\n backdrop-filter: blur(16px);\n pointer-events: none;\n animation: archify-share-cue-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n html[data-preset=\"blueprint\"] .share-chapter-cue {\n border-radius: 0.2rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 46%, transparent), transparent 36%),\n var(--toolbar-menu-bg);\n box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);\n backdrop-filter: none;\n }\n html[data-preset=\"editorial\"] .share-chapter-cue {\n border-color: var(--panel-border);\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 42%),\n var(--toolbar-menu-bg);\n box-shadow: 0 10px 30px color-mix(in srgb, #000 18%, transparent);\n backdrop-filter: none;\n }\n html[data-preset=\"editorial\"] .share-chapter-state { color: var(--arrow-emphasis); }\n html[data-preset=\"editorial\"] .share-chapter-state::before {\n border-radius: 0;\n box-shadow: none;\n transform: rotate(45deg) scale(0.8);\n }\n .share-chapter-index {\n display: grid;\n gap: 0.12rem;\n min-width: 5rem;\n padding-right: 0.75rem;\n border-right: 1px solid var(--toolbar-border);\n }\n .share-chapter-state {\n display: inline-flex;\n align-items: center;\n gap: 0.36rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .share-chapter-state::before {\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: currentColor;\n box-shadow: 0 0 10px currentColor;\n content: '';\n }\n .share-chapter-cue[data-state=\"playing\"] .share-chapter-state::before {\n animation: archify-share-cue-pulse 1.15s ease-in-out infinite;\n }\n .share-chapter-count {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .share-chapter-copy { min-width: 0; }\n .share-chapter-copy strong,\n .share-chapter-copy small,\n .share-chapter-route {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .share-chapter-copy strong {\n color: var(--toolbar-text);\n font-size: 0.6875rem;\n line-height: 1.35;\n }\n .share-chapter-copy small {\n margin-top: 0.08rem;\n color: var(--text-muted);\n font-size: 0.5rem;\n line-height: 1.35;\n }\n .share-chapter-route {\n color: color-mix(in srgb, var(--frontend-stroke) 76%, var(--text-muted));\n font-size: 0.5625rem;\n font-weight: 650;\n letter-spacing: 0.015em;\n text-align: right;\n }\n .share-chapter-progress {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n height: 2px;\n overflow: hidden;\n background: color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n .share-chapter-progress span {\n display: block;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, var(--frontend-stroke), var(--database-stroke));\n box-shadow: 0 0 12px var(--frontend-stroke);\n transform: scaleX(0);\n transform-origin: left center;\n }\n\n /* Presentation Stage is a viewer-only layer: it gives the live diagram\n the viewport while keeping guided views, theme, focus, and exports real.\n Embed mode wins when both query parameters are present. */\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body {\n height: 100dvh;\n min-height: 0;\n padding: 1rem;\n overflow: hidden;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n width: 100%;\n max-width: none;\n height: calc(100dvh - 2rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n flex: none;\n min-width: 0;\n margin: 0;\n padding-right: 23rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row { margin-bottom: 0.25rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views {\n flex: none;\n margin-bottom: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n justify-content: center;\n min-height: 0;\n padding: 0.75rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .cards,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .footer { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) #btn-present {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n\n .container { max-width: 1200px; margin: 0 auto; }\n\n .header { margin-bottom: 2rem; padding-right: 29.5rem; }\n\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 29.5rem; }\n\n .header-row {\n display: flex;\n align-items: center;\n gap: 1rem;\n margin-bottom: 0.5rem;\n }\n\n .pulse-dot {\n width: 12px;\n height: 12px;\n background: var(--frontend-stroke);\n border-radius: 50%;\n animation: none;\n }\n\n html[data-motion-capable=\"true\"] .pulse-dot { animation: pulse 2s infinite; }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n h1 {\n font-size: 1.5rem;\n font-weight: 700;\n letter-spacing: -0.025em;\n }\n\n .subtitle {\n color: var(--text-muted);\n font-size: 0.875rem;\n margin-left: 1.75rem;\n }\n\n html[data-preset=\"signal-flow\"] .header-row::after {\n content: \"SIGNAL FLOW\";\n margin-left: auto;\n color: var(--frontend-stroke);\n border: 1px solid var(--frontend-stroke);\n border-radius: 999px;\n padding: 0.28rem 0.6rem;\n font-size: 0.625rem;\n letter-spacing: 0.12em;\n opacity: 0.82;\n box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);\n white-space: nowrap;\n }\n\n html[data-preset=\"blueprint\"] .pulse-dot {\n width: 10px;\n height: 10px;\n border: 1px solid var(--frontend-stroke);\n border-radius: 1px;\n background: transparent;\n box-shadow: inset 0 0 0 2px var(--bg);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n content: \"BLUEPRINT / REV 01\";\n margin-left: auto;\n padding: 0.28rem 0.55rem;\n border-top: 1px solid var(--frontend-stroke);\n border-bottom: 1px solid var(--frontend-stroke);\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.14em;\n white-space: nowrap;\n }\n\n html[data-preset=\"editorial\"] h1,\n html[data-preset=\"editorial\"] .card h3 {\n font-family: Georgia, 'Times New Roman', 'Songti SC', STSong, serif;\n letter-spacing: -0.02em;\n }\n html[data-preset=\"editorial\"] h1 { font-size: 1.72rem; font-weight: 600; }\n html[data-preset=\"editorial\"] .pulse-dot {\n width: 9px;\n height: 9px;\n border: 1px solid var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n content: \"EDITORIAL / FIELD NOTE\";\n margin-left: auto;\n padding: 0.32rem 0 0.24rem;\n border-bottom: 2px solid var(--arrow-emphasis);\n color: var(--arrow-emphasis);\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.625rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.08em;\n white-space: nowrap;\n }\n\n .diagram-container {\n background: var(--panel);\n border-radius: 1rem;\n border: 1px solid var(--panel-border);\n padding: 1.5rem;\n overflow: hidden;\n position: relative;\n }\n\n html[data-preset=\"signal-flow\"] .diagram-container {\n position: relative;\n overflow: hidden;\n background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .diagram-container {\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);\n }\n html[data-preset=\"blueprint\"] .diagram-container {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background: var(--panel);\n box-shadow:\n inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),\n 0 18px 48px rgba(0, 0, 0, 0.16);\n }\n html[data-preset=\"blueprint\"] .diagram-container::after {\n content: \"\";\n position: absolute;\n z-index: 10;\n inset: 0.7rem;\n pointer-events: none;\n background:\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;\n opacity: 0.58;\n }\n html[data-preset=\"editorial\"] .diagram-container {\n overflow: hidden;\n border-color: var(--panel-border);\n border-radius: 0.38rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),\n var(--panel);\n box-shadow:\n 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),\n 0 18px 48px color-mix(in srgb, #000 19%, transparent);\n }\n html[data-preset=\"editorial\"] .diagram-container::after {\n position: absolute;\n z-index: 10;\n top: 0.72rem;\n right: 1.25rem;\n padding: 0.2rem 0.52rem;\n border: 1px solid var(--panel-border);\n background: var(--panel);\n color: var(--arrow-emphasis);\n content: \"ARCHIFY / PLATE 04\";\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.52rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.09em;\n pointer-events: none;\n }\n html[data-embed=\"true\"][data-preset=\"editorial\"] .diagram-container::after { display: none; }\n html[data-motion-capable=\"true\"][data-preset=\"signal-flow\"][data-ambient-motion=\"running\"] .diagram-container::before {\n content: \"\";\n position: absolute;\n inset: 0;\n pointer-events: none;\n background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);\n transform: translateX(-70%);\n animation: archify-signal-scan 4.8s ease-in-out 1 both;\n }\n\n /* Motion Governor gives the reader a real static state and gives the\n strongest semantic action the only motion budget. Atmosphere resets to\n its authored base instead of freezing mid-cycle. Static artifacts never\n start a decorative pulse or scan. */\n html:not([data-motion-capable=\"true\"]) svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .pulse-dot,\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion=\"still\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-motion-owner] .pulse-dot,\n html[data-motion-owner] .diagram-container::before,\n html[data-motion-owner] svg[data-animation=\"trace\"] [data-animate],\n html[data-embed=\"true\"] .pulse-dot,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .pulse-dot,\n html[data-share-playback=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] .pulse-dot,\n html[data-document-hidden=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion-owner] .diagram-container::before,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .diagram-container::before {\n opacity: 0;\n }\n html[data-motion=\"still\"] .guided-view-progress span,\n html[data-motion=\"still\"] .guided-story-caption,\n html[data-motion=\"still\"] .story-trail-flow,\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow,\n html[data-motion=\"still\"] .route-journey-flow,\n html[data-motion=\"still\"] .semantic-lens-flow,\n html[data-motion=\"still\"] .diagram-guide,\n html[data-motion=\"still\"] [data-story-step],\n html[data-motion=\"still\"] .overview-map-live,\n html[data-motion=\"still\"] .guided-view-stop,\n html[data-motion=\"still\"] .share-chapter-cue,\n html[data-motion=\"still\"] .share-chapter-state::before,\n html[data-motion=\"still\"] .share-chapter-progress span,\n html[data-document-hidden=\"true\"] .guided-view-progress span,\n html[data-document-hidden=\"true\"] .story-trail-flow,\n html[data-document-hidden=\"true\"] .intent-trace-flow,\n html[data-document-hidden=\"true\"] .route-probe-flow,\n html[data-document-hidden=\"true\"] .route-journey-flow,\n html[data-document-hidden=\"true\"] .semantic-lens-flow,\n html[data-document-hidden=\"true\"] .diagram-guide,\n html[data-document-hidden=\"true\"] [data-story-step],\n html[data-document-hidden=\"true\"] .overview-map-live,\n html[data-document-hidden=\"true\"] .guided-view-stop,\n html[data-document-hidden=\"true\"] .share-chapter-cue,\n html[data-document-hidden=\"true\"] .share-chapter-state::before,\n html[data-document-hidden=\"true\"] .share-chapter-progress span {\n animation: none !important;\n }\n html[data-motion=\"still\"] .guided-view-progress span {\n transform: scaleX(1) !important;\n }\n html[data-motion=\"still\"] svg[data-story-playing=\"true\"] .story-trail-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.55;\n }\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n html[data-motion=\"still\"] .route-journey-overlay,\n html[data-document-hidden=\"true\"] .route-journey-overlay { display: none !important; }\n html[data-motion=\"still\"] .relationship-pulse-overlay,\n html[data-motion=\"still\"] .story-carrier-overlay,\n html[data-document-hidden=\"true\"] .story-carrier-overlay { display: none !important; }\n html[data-motion=\"still\"] .chapter-handoff-overlay { display: none !important; }\n html[data-motion=\"still\"] .chapter-handoff-anchor { animation: none !important; }\n html[data-motion=\"still\"] .guided-view-chapter,\n html[data-motion=\"still\"] svg [data-node-id],\n html[data-motion=\"still\"] svg [data-edge-from],\n html[data-motion=\"still\"] svg [data-detail],\n html[data-motion=\"still\"] svg [data-detail-anchor],\n html[data-motion=\"still\"] svg [data-legend-hit],\n html[data-motion=\"still\"] svg {\n transition: none !important;\n }\n\n svg {\n width: 100%;\n min-width: min(900px, 100%);\n display: block;\n transform-origin: 0 0;\n transition: transform 0.18s ease;\n }\n\n .diagram-container.is-camera-moving svg {\n transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-container.is-camera-transaction svg { transition: none; }\n .diagram-container.is-pannable { cursor: grab; }\n .diagram-container.is-panning { cursor: grabbing; user-select: none; }\n .diagram-container.is-panning svg { transition: none; }\n\n .diagram-nav {\n position: absolute;\n right: 1rem;\n bottom: 1rem;\n z-index: 12;\n display: inline-flex;\n align-items: center;\n padding: 0.25rem;\n gap: 0.2rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.65rem;\n background: var(--toolbar-bg);\n box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(10px);\n }\n .diagram-nav button,\n .focus-chip button,\n .guided-views button {\n border: 0;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .diagram-nav button {\n min-width: 2rem;\n height: 2rem;\n padding: 0 0.45rem;\n border-radius: 0.4rem;\n font-size: 0.75rem;\n font-weight: 600;\n }\n .diagram-nav button:hover,\n .diagram-nav button:focus-visible,\n .focus-chip button:hover,\n .focus-chip button:focus-visible,\n .guided-views button:hover,\n .guided-views button:focus-visible { background: var(--toolbar-hover); }\n .diagram-nav button:focus-visible,\n .focus-chip button:focus-visible,\n .guided-views button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .diagram-nav button:disabled { opacity: 0.38; cursor: default; }\n .diagram-nav [data-view=\"reset\"] { min-width: 3.35rem; font-size: 0.625rem; }\n .diagram-container[data-camera-indicator=\"true\"] .diagram-nav [data-view=\"reset\"] {\n min-width: 5.2rem;\n color: var(--frontend-stroke);\n }\n .diagram-nav #btn-diagram-guide[aria-expanded=\"true\"] {\n color: var(--cloud-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Radar is a deliberately simplified, viewer-only overview. It\n uses authored node bounds and the live camera viewport rather than\n cloning the canonical SVG, so IDs, filters, animation, and export state\n stay singular and deterministic. */\n .overview-map {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 12;\n width: 11.25rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n border-radius: 0.78rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .overview-map[hidden] { display: none; }\n .overview-map[data-docked=\"true\"] {\n position: fixed;\n right: var(--archify-radar-right, 1rem);\n top: var(--archify-radar-top, 1rem);\n bottom: auto;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: var(--archify-radar-left, 1rem);\n }\n html[data-preset=\"blueprint\"] .overview-map { border-radius: 0.28rem; }\n .overview-map-head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.45rem;\n min-height: 2.25rem;\n padding: 0.42rem 0.48rem 0.38rem 0.55rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);\n }\n .overview-map-live {\n width: 0.42rem;\n height: 0.42rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);\n animation: archify-radar-live 2.4s ease-out infinite;\n }\n .overview-map-copy { min-width: 0; line-height: 1.1; }\n .overview-map-copy strong {\n display: block;\n overflow: hidden;\n color: var(--frontend-stroke);\n font-size: 0.59rem;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-copy small {\n display: block;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.52rem;\n letter-spacing: 0.04em;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-close {\n width: 1.55rem;\n height: 1.55rem;\n padding: 0;\n border: 0;\n border-radius: 0.34rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.9rem;\n cursor: pointer;\n }\n .overview-map-close:hover,\n .overview-map-close:focus-visible { background: var(--toolbar-hover); }\n .overview-map-close:focus-visible,\n .overview-map-surface:focus-visible,\n .overview-map-node:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .overview-map-surface {\n position: relative;\n height: 7rem;\n margin: 0.42rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);\n border-radius: 0.42rem;\n background:\n linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n color-mix(in srgb, var(--bg) 86%, transparent);\n background-size: 12px 12px;\n cursor: crosshair;\n touch-action: none;\n }\n html[data-preset=\"blueprint\"] .overview-map-surface { border-radius: 0.1rem; }\n .overview-map-surface \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n transform: none !important;\n transition: none !important;\n display: block;\n overflow: visible;\n }\n .overview-map-node {\n fill: var(--backend-stroke);\n fill-opacity: 0.52;\n stroke: var(--backend-stroke);\n stroke-opacity: 0.86;\n vector-effect: non-scaling-stroke;\n cursor: pointer;\n transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;\n }\n .overview-map-node[data-kind=\"frontend\"],\n .overview-map-node[data-kind=\"start\"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }\n .overview-map-node[data-kind=\"database\"],\n .overview-map-node[data-kind=\"success\"] { fill: var(--database-stroke); stroke: var(--database-stroke); }\n .overview-map-node[data-kind=\"cloud\"],\n .overview-map-node[data-kind=\"waiting\"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }\n .overview-map-node[data-kind=\"messagebus\"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }\n .overview-map-node[data-kind=\"security\"],\n .overview-map-node[data-kind=\"decision\"],\n .overview-map-node[data-kind=\"failure\"] { fill: var(--security-stroke); stroke: var(--security-stroke); }\n .overview-map-node[data-kind=\"external\"],\n .overview-map-node[data-kind=\"neutral\"] { fill: var(--external-stroke); stroke: var(--external-stroke); }\n .overview-map-node[data-radar-active=\"true\"],\n .overview-map-node:hover,\n .overview-map-node:focus-visible {\n fill-opacity: 0.92;\n stroke-width: 2.2;\n filter: drop-shadow(0 0 3px currentColor);\n }\n .overview-map-viewport {\n fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));\n }\n .overview-map-hint {\n display: flex;\n justify-content: space-between;\n gap: 0.5rem;\n padding: 0 0.52rem 0.46rem;\n color: var(--text-faint);\n font-size: 0.49rem;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n }\n .diagram-nav #btn-overview-map[aria-expanded=\"true\"] {\n color: var(--frontend-stroke);\n background: var(--toolbar-hover);\n }\n .diagram-nav #btn-route-probe[aria-pressed=\"true\"] {\n color: var(--backend-stroke);\n background: var(--toolbar-hover);\n }\n .diagram-nav #btn-semantic-lens[aria-expanded=\"true\"],\n .diagram-nav #btn-semantic-lens[aria-pressed=\"true\"] {\n color: var(--database-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Lens turns the compiled node-kind palette into an analytical\n legend. One kind reveals its real traffic; two kinds compare only their\n direct authored relationships. Geometry and the canonical SVG stay put. */\n .semantic-lens {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 24;\n width: min(20rem, calc(100% - 2rem));\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);\n backdrop-filter: blur(18px);\n animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .semantic-lens[hidden] { display: none; }\n .semantic-lens[data-dock-side=\"left\"] { left: 1rem; right: auto; }\n .semantic-lens[data-dock-side=\"right\"] { left: auto; right: 1rem; }\n html[data-preset=\"blueprint\"] .semantic-lens { border-radius: 0.28rem; }\n .semantic-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.72rem 0.78rem 0.62rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .semantic-lens-eyebrow {\n display: block;\n color: var(--database-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .semantic-lens-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.82rem;\n letter-spacing: -0.02em;\n }\n .semantic-lens-close {\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .semantic-lens-close:hover,\n .semantic-lens-close:focus-visible { background: var(--toolbar-hover); }\n .semantic-lens-instruction {\n margin: 0;\n padding: 0.52rem 0.78rem 0.48rem;\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-kinds {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.3rem;\n max-height: min(15rem, 40vh);\n padding: 0 0.5rem 0.5rem;\n overflow-y: auto;\n scrollbar-width: thin;\n }\n .semantic-lens-kind {\n --lens-color: var(--external-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.42rem;\n min-width: 0;\n min-height: 2.15rem;\n padding: 0.35rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));\n border-radius: 0.45rem;\n background: color-mix(in srgb, var(--panel) 76%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;\n }\n html[data-preset=\"blueprint\"] .semantic-lens-kind { border-radius: 0.12rem; }\n .semantic-lens-kind[data-kind=\"frontend\"],\n .semantic-lens-kind[data-kind=\"start\"] { --lens-color: var(--frontend-stroke); }\n .semantic-lens-kind[data-kind=\"backend\"],\n .semantic-lens-kind[data-kind=\"active\"] { --lens-color: var(--backend-stroke); }\n .semantic-lens-kind[data-kind=\"database\"],\n .semantic-lens-kind[data-kind=\"success\"] { --lens-color: var(--database-stroke); }\n .semantic-lens-kind[data-kind=\"cloud\"],\n .semantic-lens-kind[data-kind=\"waiting\"] { --lens-color: var(--cloud-stroke); }\n .semantic-lens-kind[data-kind=\"messagebus\"] { --lens-color: var(--messagebus-stroke); }\n .semantic-lens-kind[data-kind=\"security\"],\n .semantic-lens-kind[data-kind=\"decision\"],\n .semantic-lens-kind[data-kind=\"failure\"] { --lens-color: var(--security-stroke); }\n .semantic-lens-kind:hover,\n .semantic-lens-kind:focus-visible,\n .semantic-lens-kind[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));\n background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));\n }\n .semantic-lens-kind:focus-visible,\n .semantic-lens-close:focus-visible,\n .semantic-lens-actions button:focus-visible {\n outline: 2px solid var(--database-stroke);\n outline-offset: 1px;\n }\n .semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }\n .semantic-lens-swatch {\n width: 0.48rem;\n height: 0.48rem;\n border-radius: 50%;\n background: var(--lens-color);\n box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);\n }\n .semantic-lens-kind strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.61rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-lens-kind em {\n color: var(--lens-color);\n font-size: 0.54rem;\n font-style: normal;\n font-weight: 800;\n }\n .semantic-lens-status {\n min-height: 2.5rem;\n margin: 0;\n padding: 0.55rem 0.78rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }\n .semantic-lens-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.28rem;\n padding: 0 0.62rem 0.62rem;\n }\n .semantic-lens-actions button {\n min-height: 1.8rem;\n padding: 0.28rem 0.48rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.56rem;\n cursor: pointer;\n }\n .semantic-lens-actions button:hover { background: var(--toolbar-hover); }\n .semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }\n @keyframes archify-lens-in {\n from { opacity: 0; transform: translateY(5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n /* Route Probe answers a reader question over the compiled semantic graph:\n choose two stable nodes and reveal the shortest authored directed route.\n The receipt and signal live entirely in the viewer layer. */\n .route-probe {\n position: absolute;\n left: 1rem;\n bottom: 1rem;\n z-index: 12;\n width: min(46rem, calc(100% - 25rem));\n min-width: 18rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .route-probe[hidden] { display: none; }\n .route-probe[data-route-dock=\"top\"] {\n top: 1rem;\n bottom: auto;\n }\n html[data-preset=\"blueprint\"] .route-probe { border-radius: 0.25rem; }\n .route-probe-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.65rem;\n padding: 0.52rem 0.58rem 0.44rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);\n }\n .route-probe-copy { min-width: 0; }\n .route-probe-eyebrow {\n display: block;\n color: var(--backend-stroke);\n font-size: 0.48rem;\n font-weight: 800;\n letter-spacing: 0.15em;\n text-transform: uppercase;\n }\n .route-probe-title {\n display: block;\n margin-top: 0.14rem;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.72rem;\n line-height: 1.25;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .route-probe-actions { display: flex; gap: 0.2rem; }\n .route-probe button {\n min-height: 1.55rem;\n padding: 0.25rem 0.42rem;\n border: 0;\n border-radius: 0.36rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .route-probe button:hover,\n .route-probe button:focus-visible { background: var(--toolbar-hover); }\n .route-probe button:focus-visible {\n outline: 2px solid var(--backend-stroke);\n outline-offset: 1px;\n }\n .route-probe-copy-link { color: var(--frontend-stroke) !important; }\n .route-probe-find { color: var(--backend-stroke) !important; }\n .route-probe-copy-link[hidden] { display: none; }\n .route-probe-find[hidden] { display: none; }\n .route-probe-path {\n display: flex;\n align-items: center;\n min-height: 2.2rem;\n padding: 0.42rem 0.58rem 0.24rem;\n overflow-x: auto;\n scrollbar-width: thin;\n white-space: nowrap;\n }\n .route-probe-node,\n .route-probe button.route-probe-node {\n flex: none;\n max-width: 9.5rem;\n overflow: hidden;\n min-height: 1.75rem !important;\n padding: 0.22rem 0.38rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));\n border-radius: 999px;\n background: color-mix(in srgb, var(--backend-fill) 52%, transparent);\n color: var(--text);\n font-size: 0.56rem;\n font-weight: 700;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .route-probe-node[data-endpoint=\"start\"] {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n .route-probe-node[data-endpoint=\"end\"] {\n border-color: var(--security-stroke);\n color: var(--security-stroke);\n }\n .route-probe-node[data-route-journey-state=\"past\"] { opacity: 0.66; }\n .route-probe-node[data-route-journey-state=\"future\"] { opacity: 0.48; }\n .route-probe-node[aria-current=\"step\"] {\n border-color: var(--backend-stroke);\n background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));\n color: var(--text);\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--backend-stroke) 42%, transparent), 0 0 14px color-mix(in srgb, var(--backend-stroke) 34%, transparent);\n opacity: 1;\n }\n html[data-preset=\"blueprint\"] .route-probe-node[aria-current=\"step\"] {\n border-style: double;\n border-width: 3px;\n border-radius: 0.2rem;\n box-shadow: none;\n }\n .route-probe-arrow {\n flex: none;\n padding: 0 0.28rem;\n color: var(--text-faint);\n font-size: 0.65rem;\n }\n .route-probe-placeholder {\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.03em;\n }\n .route-probe-status {\n display: block;\n min-height: 1.45rem;\n padding: 0.08rem 0.58rem 0.44rem;\n color: var(--text-faint);\n font-size: 0.52rem;\n line-height: 1.35;\n }\n .route-journey-controls {\n display: grid;\n grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);\n justify-content: start;\n gap: 0.22rem;\n padding: 0.08rem 0.58rem 0.28rem;\n }\n .route-journey-controls[hidden] { display: none; }\n .route-journey-controls button {\n min-height: 1.8rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);\n font-size: 0.54rem;\n font-weight: 700;\n }\n .route-journey-controls button:disabled {\n cursor: default;\n opacity: 0.34;\n }\n .route-journey-play { color: var(--backend-stroke) !important; }\n .route-journey-overview { color: var(--frontend-stroke) !important; }\n .route-journey-controls[data-playing=\"true\"] .route-journey-play {\n border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 62%, transparent);\n }\n .route-probe[data-state=\"error\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));\n }\n .route-probe[data-state=\"error\"] .route-probe-status { color: var(--security-stroke); }\n\n .focus-chip {\n position: absolute;\n left: 1rem;\n top: 1rem;\n z-index: 12;\n display: block;\n width: min(22rem, calc(100% - 13rem));\n max-width: calc(100% - 13rem);\n overflow: hidden;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.6875rem;\n }\n .focus-chip[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .focus-chip { border-radius: 0.3rem; }\n .focus-chip button {\n flex: none;\n padding: 0.3rem 0.45rem;\n border-radius: 0.35rem;\n font-size: 0.625rem;\n }\n .relationship-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.7rem 0.75rem 0.65rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);\n }\n .relationship-lens-copy { min-width: 0; }\n .relationship-lens-actions {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 0.18rem;\n }\n .relationship-lens-actions button { white-space: nowrap; }\n .relationship-lens-actions #btn-focus-clear {\n display: grid;\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n place-items: center;\n color: var(--text-muted);\n font-size: 1rem;\n line-height: 1;\n }\n .relationship-lens-actions #btn-focus-clear:hover,\n .relationship-lens-actions #btn-focus-clear:focus-visible {\n background: var(--toolbar-hover);\n color: var(--text);\n }\n .relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }\n .relationship-lens-actions #btn-focus-relations { display: none; }\n .relationship-lens-eyebrow {\n display: block;\n margin-bottom: 0.18rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .relationship-lens-title {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.8rem;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail {\n display: block;\n margin-top: 0.12rem;\n overflow: hidden;\n color: var(--text-muted);\n font-size: 0.625rem;\n line-height: 1.4;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail[hidden] { display: none; }\n .semantic-passport-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 0.24rem;\n margin-top: 0.42rem;\n }\n .semantic-passport-meta span,\n .semantic-passport-meta code {\n max-width: 100%;\n overflow: hidden;\n padding: 0.14rem 0.34rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);\n border-radius: 999px;\n background: color-mix(in srgb, var(--panel) 68%, transparent);\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n letter-spacing: 0.04em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-meta [data-passport=\"kind\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-weight: 800;\n text-transform: uppercase;\n }\n .semantic-passport-meta [data-passport=\"tag\"] { color: var(--cloud-stroke); }\n .semantic-passport-meta [hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-meta span,\n html[data-preset=\"blueprint\"] .semantic-passport-meta code { border-radius: 0.1rem; }\n .semantic-passport-evidence {\n margin-top: 0.52rem;\n padding: 0.5rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));\n }\n .semantic-passport-evidence[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-evidence { border-radius: 0.18rem; }\n .semantic-passport-evidence-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.55rem;\n margin-bottom: 0.35rem;\n }\n .semantic-passport-evidence-status {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n color: var(--backend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .semantic-passport-evidence-status::before {\n content: '';\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);\n }\n .semantic-passport-repository {\n min-width: 0;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-repository:hover,\n .semantic-passport-repository:focus-visible { color: var(--backend-stroke); }\n .semantic-passport-evidence-links { display: grid; gap: 0.22rem; }\n .semantic-passport-source {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.15rem 0.45rem;\n align-items: center;\n padding: 0.34rem 0.4rem;\n border: 1px solid transparent;\n border-radius: 0.38rem;\n color: var(--text-muted);\n text-decoration: none;\n }\n .semantic-passport-source:hover,\n .semantic-passport-source:focus-visible {\n border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);\n background: color-mix(in srgb, var(--backend-fill) 32%, transparent);\n color: var(--text);\n }\n .semantic-passport-source strong {\n overflow: hidden;\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-source code {\n color: var(--backend-stroke);\n font: inherit;\n font-size: 0.5rem;\n }\n .semantic-passport-source small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-summary {\n display: block;\n margin-top: 0.12rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n .semantic-passport-reach {\n display: grid;\n gap: 0.28rem;\n margin-top: 0.52rem;\n padding-top: 0.48rem;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);\n }\n .semantic-passport-reach[hidden] { display: none; }\n .semantic-passport-reach-label {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n }\n .semantic-passport-reach-actions {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 0.25rem;\n }\n .semantic-passport-reach-actions button {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n min-width: 0;\n min-height: 2rem;\n padding: 0.32rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--panel) 70%, transparent);\n color: var(--text-muted);\n text-align: left;\n }\n .semantic-passport-reach-actions button:hover:not(:disabled),\n .semantic-passport-reach-actions button:focus-visible {\n border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));\n color: var(--text);\n }\n .semantic-passport-reach-actions button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .semantic-passport-reach-actions button:disabled {\n cursor: default;\n opacity: 0.5;\n }\n .semantic-passport-reach-actions button[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);\n color: var(--text);\n }\n #btn-reach-upstream {\n --reach-color: var(--database-stroke);\n --reach-fill: var(--database-fill);\n }\n #btn-reach-downstream {\n --reach-color: var(--backend-stroke);\n --reach-fill: var(--backend-fill);\n }\n .semantic-passport-reach-actions strong {\n color: var(--reach-color, var(--frontend-stroke));\n font-size: 0.625rem;\n }\n .semantic-passport-reach-status {\n color: var(--text-faint);\n font-size: 0.525rem;\n line-height: 1.4;\n }\n .semantic-passport-reach-status[hidden] { display: none; }\n .relationship-lens-list {\n max-height: min(18rem, 46vh);\n overflow: auto;\n padding: 0.4rem;\n scrollbar-width: thin;\n scrollbar-color: var(--frontend-stroke) transparent;\n }\n .relationship-lens-list::-webkit-scrollbar { width: 4px; }\n .relationship-lens-list::-webkit-scrollbar-thumb {\n border-radius: 999px;\n background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);\n }\n .relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }\n .relationship-lens-group-title {\n display: block;\n padding: 0.24rem 0.38rem 0.16rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .relationship-lens-row {\n display: grid;\n grid-template-columns: 2.1rem minmax(0, 1fr);\n gap: 0.06rem 0.45rem;\n width: 100%;\n padding: 0.45rem 0.5rem !important;\n text-align: left;\n }\n .relationship-lens-row:hover,\n .relationship-lens-row:focus-visible,\n .relationship-lens-row[data-preview-active=\"true\"] {\n background: var(--toolbar-hover);\n box-shadow: inset 2px 0 0 var(--frontend-stroke);\n }\n .relationship-lens-row:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .relationship-lens-direction {\n grid-row: 1 / 3;\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n }\n .relationship-lens-row[data-direction=\"in\"] .relationship-lens-direction { color: var(--database-stroke); }\n .relationship-lens-row[data-direction=\"loop\"] .relationship-lens-direction { color: var(--security-stroke); }\n .relationship-lens-row strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.6875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-row small {\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-empty {\n margin: 0;\n padding: 0.75rem;\n color: var(--text-faint);\n font-size: 0.625rem;\n text-align: center;\n }\n\n /* Diagram Guide keeps the artifact's growing reader vocabulary\n discoverable without widening the permanent control bar. It derives\n honest counts at runtime and delegates every action to an existing\n production interaction instead of creating a second command system. */\n .diagram-guide {\n position: absolute;\n top: 1rem;\n right: 1rem;\n z-index: 26;\n width: min(32rem, calc(100% - 2rem));\n max-height: min(42rem, calc(100% - 2rem));\n overflow: auto;\n border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(18px);\n animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-guide[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .diagram-guide { border-radius: 0.28rem; }\n .diagram-guide-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 1rem;\n padding: 0.82rem 0.9rem 0.68rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .diagram-guide-eyebrow {\n display: block;\n color: var(--cloud-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .diagram-guide-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.86rem;\n letter-spacing: -0.02em;\n }\n .diagram-guide-close {\n width: 1.8rem;\n height: 1.8rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .diagram-guide-close:hover,\n .diagram-guide-close:focus-visible { background: var(--toolbar-hover); }\n .diagram-guide-stats {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n padding: 0.54rem 0.9rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.025em;\n }\n .diagram-guide-stats::before {\n content: '';\n width: 0.42rem;\n height: 0.42rem;\n flex: none;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);\n }\n .diagram-guide-actions {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.38rem;\n padding: 0.62rem;\n }\n .diagram-guide-action {\n --guide-accent: var(--frontend-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n min-height: 4.15rem;\n padding: 0.55rem 0.58rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;\n }\n .diagram-guide-action[data-guide-action=\"route\"] { --guide-accent: var(--backend-stroke); }\n .diagram-guide-action[data-guide-action=\"map\"] { --guide-accent: var(--database-stroke); }\n .diagram-guide-action[data-guide-action=\"lens\"] { --guide-accent: var(--messagebus-stroke); }\n .diagram-guide-action[data-guide-action=\"story\"] { --guide-accent: var(--security-stroke); }\n .diagram-guide-action[data-guide-action=\"present\"] {\n --guide-accent: var(--cloud-stroke);\n }\n .diagram-guide-action:hover,\n .diagram-guide-action:focus-visible {\n border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));\n background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));\n transform: translateY(-1px);\n }\n .diagram-guide-action:focus-visible,\n .diagram-guide-close:focus-visible {\n outline: 2px solid var(--cloud-stroke);\n outline-offset: 1px;\n }\n .diagram-guide-action:disabled {\n opacity: 0.42;\n cursor: default;\n transform: none;\n }\n .diagram-guide-index {\n display: grid;\n place-items: center;\n width: 1.65rem;\n height: 1.65rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));\n border-radius: 0.35rem;\n color: var(--guide-accent);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.06em;\n }\n .diagram-guide-action-copy { min-width: 0; }\n .diagram-guide-action strong {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.66rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-action small {\n display: -webkit-box;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n line-height: 1.35;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n }\n .diagram-guide kbd {\n align-self: start;\n min-width: 1.45rem;\n padding: 0.12rem 0.3rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n text-align: center;\n }\n .diagram-guide-shortcuts {\n display: flex;\n flex-wrap: wrap;\n gap: 0.34rem 0.62rem;\n padding: 0.58rem 0.9rem 0.68rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.5rem;\n }\n .diagram-guide-shortcuts span {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n white-space: nowrap;\n }\n .diagram-guide-feedback {\n min-height: 1rem;\n margin: -0.18rem 0.9rem 0.62rem;\n color: var(--security-stroke);\n font-size: 0.5rem;\n }\n .diagram-guide-feedback:empty { display: none; }\n @keyframes archify-guide-in {\n from { opacity: 0; transform: translateY(-5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n .node-finder {\n position: absolute;\n top: 1rem;\n left: 1rem;\n z-index: 24;\n display: flex;\n flex-direction: column;\n width: min(22rem, calc(100% - 2rem));\n max-height: calc(100% - 2rem);\n overflow: hidden;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(16px);\n }\n .node-finder[hidden] { display: none; }\n .node-finder[data-context=\"route-source\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));\n }\n .node-finder[data-context=\"route-target\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));\n }\n html[data-preset=\"blueprint\"] .node-finder { border-radius: 0.3rem; }\n .node-finder-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.7rem 0.8rem 0.45rem;\n }\n .node-finder-head strong {\n color: var(--text);\n font-size: 0.6875rem;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-source\"] .node-finder-head strong { color: var(--frontend-stroke); }\n .node-finder[data-context=\"route-target\"] .node-finder-head strong { color: var(--security-stroke); }\n .node-finder-close {\n width: 1.75rem;\n height: 1.75rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .node-finder-close:hover,\n .node-finder-close:focus-visible { background: var(--toolbar-hover); }\n .node-finder-close:focus-visible,\n .node-finder-result:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .node-finder-search {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n margin: 0 0.55rem 0.55rem;\n padding: 0 0.7rem;\n min-height: 2.6rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n transition: border-color 160ms ease-out, box-shadow 160ms ease-out;\n }\n html[data-preset=\"blueprint\"] .node-finder-search { border-radius: 0.18rem; }\n .node-finder-search \u003e span { color: var(--frontend-stroke); font-size: 0.875rem; }\n .node-finder-search:focus-within {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);\n }\n .node-finder-input {\n appearance: none;\n width: 100%;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n font-size: 0.75rem;\n }\n .node-finder-input:focus-visible { outline: none; }\n .node-finder-input::placeholder { color: var(--text-faint); }\n .node-finder kbd {\n padding: 0.1rem 0.32rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5625rem;\n }\n .node-finder-results {\n display: grid;\n flex: 1 1 auto;\n gap: 0;\n min-height: 0;\n max-height: min(18rem, 48vh);\n margin: 0 0.55rem 0.45rem;\n padding: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 54%, transparent);\n scroll-padding-block: 0.25rem;\n scrollbar-width: thin;\n }\n html[data-preset=\"blueprint\"] .node-finder-results { border-radius: 0.18rem; }\n .node-finder-result {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem 0.75rem;\n width: 100%;\n min-height: 3.25rem;\n padding: 0.58rem 0.65rem;\n border: 0;\n border-radius: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color 160ms ease-out;\n }\n .node-finder-result:not(:last-child) {\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);\n }\n .node-finder-result:hover,\n .node-finder-result:focus-visible {\n position: relative;\n z-index: 1;\n background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));\n }\n .node-finder-result strong {\n overflow: hidden;\n font-size: 0.75rem;\n line-height: 1.25;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n letter-spacing: 0.015em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result em {\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.625rem;\n font-style: normal;\n }\n .node-finder[data-context^=\"route-\"] .node-finder-result em {\n padding: 0.1rem 0.3rem;\n border: 1px solid color-mix(in srgb, currentColor 52%, transparent);\n border-radius: 999px;\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-target\"] .node-finder-result em { color: var(--security-stroke); }\n .node-finder-empty {\n padding: 1.1rem 0.75rem 1.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n text-align: center;\n }\n .node-finder-status {\n margin: 0;\n padding: 0.1rem 0.8rem 0.65rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n\n .guided-views {\n display: grid;\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem auto;\n align-items: stretch;\n gap: 0.35rem;\n min-width: 0;\n margin: 0 0 0.75rem;\n padding: 0.35rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-bg);\n background: linear-gradient(120deg, var(--toolbar-bg), color-mix(in srgb, var(--toolbar-bg) 82%, var(--frontend-fill)));\n box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);\n backdrop-filter: blur(12px);\n }\n .guided-views[hidden] { display: none; }\n\n html[data-preset=\"blueprint\"] .guided-views {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 36%, transparent), transparent 24%),\n var(--toolbar-bg);\n box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);\n }\n html[data-preset=\"blueprint\"] .guided-views button { border-radius: 0.2rem; }\n html[data-preset=\"blueprint\"] .guided-view-progress { border-radius: 0; }\n html[data-preset=\"blueprint\"] .guided-view-progress span { border-radius: 0; }\n .guided-views button {\n min-width: 0;\n padding: 0.45rem 0.6rem;\n border-radius: 0.55rem;\n font-size: 0.75rem;\n }\n .guided-views \u003e #guided-view-prev,\n .guided-views \u003e #guided-view-next { min-width: 2.75rem; min-height: 2.75rem; }\n .guided-views button:disabled { opacity: 0.3; cursor: default; }\n .guided-view-copy {\n min-width: 0;\n padding: 0.2rem 0.5rem;\n border-left: 1px solid var(--toolbar-border);\n overflow: hidden;\n }\n .guided-view-meta {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-height: 1rem;\n margin-bottom: 0.12rem;\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .guided-view-handoff {\n box-sizing: border-box;\n height: 1rem;\n min-width: 0;\n max-width: 15rem;\n overflow: hidden;\n padding: 0 0.38rem;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 46%, transparent);\n border-radius: 999px;\n color: var(--toolbar-text);\n background: color-mix(in srgb, var(--frontend-fill) 44%, transparent);\n font-size: 0.5rem;\n line-height: calc(1rem - 2px);\n letter-spacing: 0.06em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-view-handoff[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .guided-view-handoff { border-radius: 0.15rem; }\n .chapter-handoff-overlay { pointer-events: none; }\n .chapter-handoff-anchor {\n fill: color-mix(in srgb, var(--frontend-fill) 10%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n stroke-dasharray: 4 4;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n animation: archify-chapter-anchor 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"stay\"] { opacity: 1; }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"enter\"] { opacity: 0.78; }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"leave\"] { opacity: 0.26; }\n @keyframes archify-chapter-anchor {\n 0% { opacity: 0.35; stroke-dashoffset: 8; }\n 45% { opacity: 1; }\n 100% { opacity: 0.72; stroke-dashoffset: 0; }\n }\n .guided-view-progress {\n width: 3.5rem;\n height: 2px;\n overflow: hidden;\n border-radius: 999px;\n background: var(--toolbar-border);\n }\n .guided-view-progress span {\n display: block;\n width: 100%;\n height: 100%;\n border-radius: inherit;\n background: var(--frontend-stroke);\n transform: scaleX(0);\n transform-origin: left center;\n }\n .guided-view-copy strong,\n .guided-view-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .guided-view-copy strong { color: var(--toolbar-text); font-size: 0.75rem; line-height: 1.35; }\n .guided-view-copy small { margin-top: 0; color: var(--text-muted); font-size: 0.625rem; line-height: 1.35; }\n .guided-story-caption {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n gap: 0.12rem 0.55rem;\n align-items: center;\n min-width: 0;\n margin-top: 0.18rem;\n padding: 0.3rem 0.5rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.58rem;\n background: color-mix(in srgb, var(--frontend-fill) 26%, transparent);\n animation: archify-story-caption-in 140ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n .guided-story-caption[hidden] { display: none; }\n .guided-story-caption-index {\n grid-row: 1 / span 2;\n align-self: stretch;\n display: inline-grid;\n min-width: 3.3rem;\n place-items: center;\n padding-right: 0.52rem;\n border-right: 1px solid color-mix(in srgb, var(--frontend-stroke) 28%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .guided-story-caption strong,\n .guided-story-caption small {\n display: block;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-story-caption strong { color: var(--toolbar-text); font-size: 0.6875rem; line-height: 1.3; }\n .guided-story-caption small { color: var(--text-muted); font-size: 0.5625rem; line-height: 1.35; }\n .guided-story-caption-next {\n grid-column: 3;\n grid-row: 1 / span 2;\n display: grid;\n min-width: 6.4rem;\n max-width: 9.5rem;\n align-self: stretch;\n align-content: center;\n padding-left: 0.58rem;\n border-left: 1px solid color-mix(in srgb, var(--frontend-stroke) 22%, var(--toolbar-border));\n }\n .guided-story-caption-next[hidden] { display: none; }\n .guided-story-caption-next small {\n color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--text-muted));\n font-weight: 800;\n letter-spacing: 0.09em;\n text-transform: uppercase;\n }\n .guided-story-caption-next strong { color: var(--text-muted); font-weight: 700; }\n html[data-preset=\"blueprint\"] .guided-story-caption { border-radius: 0.2rem; }\n .guided-views[data-story-beat] .guided-view-copy \u003e #guided-view-label,\n .guided-views[data-story-beat] .guided-view-copy \u003e #guided-view-note { display: none; }\n @keyframes archify-story-caption-in {\n from { opacity: 0; transform: translateY(3px); }\n to { opacity: 1; transform: translateY(0); }\n }\n .guided-view-trail {\n display: flex;\n align-items: center;\n gap: 0.28rem;\n min-width: 0;\n min-height: 1.7rem;\n margin-top: 0;\n padding: 0;\n overflow-x: auto;\n color: var(--text-faint);\n overscroll-behavior-x: contain;\n touch-action: pan-x;\n scrollbar-width: none;\n white-space: nowrap;\n }\n .guided-view-trail[hidden] { display: none; }\n .guided-view-trail::-webkit-scrollbar { display: none; }\n .guided-view-trail .guided-view-stop {\n appearance: none;\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 0.28rem;\n min-height: 1.5rem;\n padding: 0.1rem 0.3rem 0.1rem 0.18rem;\n border: 1px solid transparent;\n border-radius: 999px;\n background: transparent;\n color: var(--text-muted);\n cursor: pointer;\n font-family: inherit;\n font-size: 0.5625rem;\n font-weight: 650;\n letter-spacing: 0.02em;\n line-height: 1;\n transition: background 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;\n }\n .guided-view-stop:hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 36%, transparent);\n background: color-mix(in srgb, var(--frontend-fill) 34%, transparent);\n }\n .guided-view-stop:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .guided-view-stop:disabled { cursor: wait; }\n .guided-view-stop::before {\n display: inline-grid;\n width: 1rem;\n height: 1rem;\n place-items: center;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 54%, var(--toolbar-border));\n border-radius: 50%;\n background: color-mix(in srgb, var(--frontend-fill) 58%, var(--toolbar-bg));\n color: var(--frontend-stroke);\n content: attr(data-story-number);\n font-size: 0.5rem;\n line-height: 1;\n }\n .guided-view-stop + .guided-view-stop::after {\n order: -1;\n color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--text-faint));\n content: '\\00b7';\n font-size: 0.65rem;\n }\n .guided-view-stop[data-story-link=\"forward\"]::after { content: '\\2192'; }\n .guided-view-stop[data-story-link=\"reverse\"]::after { content: '\\2190'; }\n .guided-view-stop[data-story-link=\"multiple\"]::after { content: '\\21c4'; }\n .guided-view-stop[data-story-beat-state=\"pending\"] { opacity: 0.38; }\n .guided-view-stop[data-story-beat-state=\"next\"] {\n border-style: dashed;\n border-color: color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));\n color: color-mix(in srgb, var(--toolbar-text) 68%, var(--text-muted));\n opacity: 0.58;\n }\n .guided-view-stop[data-story-beat-state=\"past\"] { color: var(--text-muted); opacity: 0.76; }\n .guided-view-stop[data-story-beat-state=\"active\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--frontend-fill) 42%, transparent);\n color: var(--toolbar-text);\n font-weight: 800;\n opacity: 1;\n }\n .guided-view-stop[data-story-beat-state=\"active\"]::before {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 54%, transparent);\n }\n html[data-preset=\"blueprint\"] .guided-view-stop,\n html[data-preset=\"blueprint\"] .guided-view-stop::before { border-radius: 0.1rem; }\n html[data-preset=\"blueprint\"] .guided-view-stop[data-story-beat-state=\"active\"]::before { box-shadow: none; }\n .guided-view-actions { display: flex; align-items: stretch; gap: 0.2rem; }\n .guided-view-actions button { white-space: nowrap; }\n .guided-view-play {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.38rem;\n min-width: 6.25rem !important;\n color: var(--frontend-stroke) !important;\n font-size: 0.625rem !important;\n }\n .guided-view-play[aria-pressed=\"true\"] { background: var(--toolbar-hover); }\n .guided-view-all { min-width: 3.25rem !important; color: var(--text-muted) !important; font-size: 0.625rem !important; }\n .guided-view-beat-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.3rem;\n min-width: 5.4rem !important;\n min-height: 1.5rem;\n color: var(--text-muted) !important;\n font-size: 0.5625rem !important;\n letter-spacing: 0.025em;\n transition: background 140ms ease, border-color 140ms ease, color 140ms ease;\n }\n .guided-view-beat-link:not(:disabled):hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n color: var(--frontend-stroke) !important;\n }\n .guided-view-beat-link[data-copy-state=\"copied\"] {\n border-color: color-mix(in srgb, var(--backend-stroke) 58%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 46%, transparent);\n color: var(--backend-stroke) !important;\n }\n .guided-view-index {\n grid-column: 1 / -1;\n min-width: 0;\n padding: 0.28rem 0.12rem 0.08rem;\n overflow: hidden;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n @media (min-width: 721px) {\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-index,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-beat-link,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-all,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-trail,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-copy \u003e #guided-view-label,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-copy \u003e #guided-view-note { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-story-caption { margin-top: 0.08rem; }\n }\n .guided-view-chapters {\n display: flex;\n gap: 0.28rem;\n min-width: 0;\n margin: 0;\n padding: 0.08rem 0.05rem 0.2rem;\n overflow-x: auto;\n list-style: none;\n scroll-padding-inline: 0.05rem;\n scroll-snap-type: x proximity;\n scrollbar-width: none;\n }\n .guided-view-chapters::-webkit-scrollbar { display: none; }\n .guided-view-chapters li {\n display: flex;\n flex: 1 1 0;\n min-width: 9.5rem;\n scroll-snap-align: center;\n }\n .guided-view-chapter {\n position: relative;\n display: grid !important;\n grid-template-columns: 1.55rem minmax(0, 1fr) auto;\n align-items: center;\n width: 100%;\n min-height: 2.75rem;\n padding: 0.36rem 0.48rem !important;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent) !important;\n border-radius: 0.48rem !important;\n background: color-mix(in srgb, var(--toolbar-bg) 88%, transparent) !important;\n color: var(--text-muted) !important;\n text-align: left;\n transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;\n }\n .guided-view-chapter:hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--toolbar-border)) !important;\n background: color-mix(in srgb, var(--frontend-fill) 42%, var(--toolbar-bg)) !important;\n }\n .guided-view-chapter:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .guided-view-chapter-index {\n display: inline-grid;\n width: 1.32rem;\n height: 1.32rem;\n place-items: center;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 48%, var(--toolbar-border));\n border-radius: 50%;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.03em;\n }\n .guided-view-chapter-title {\n min-width: 0;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.625rem;\n font-weight: 700;\n line-height: 1.3;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-view-chapter-count {\n grid-column: 3;\n grid-row: 1;\n margin-left: 0.38rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-style: normal;\n font-weight: 650;\n white-space: nowrap;\n }\n .guided-view-chapter-delta {\n display: inline-flex;\n grid-column: 3;\n grid-row: 1;\n align-items: center;\n gap: 0.22rem;\n margin-left: 0.38rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 750;\n letter-spacing: 0.01em;\n white-space: nowrap;\n }\n .guided-view-chapter-delta[hidden] { display: none; }\n .guided-view-chapter-delta [data-delta-kind=\"stay\"] { color: var(--text-muted); }\n .guided-view-chapter-delta [data-delta-kind=\"enter\"] { color: var(--frontend-stroke); }\n .guided-view-chapter-delta [data-delta-kind=\"leave\"] { color: var(--security-stroke); }\n .guided-view-chapter[data-preview-active=\"true\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border)) !important;\n background: color-mix(in srgb, var(--frontend-fill) 54%, var(--toolbar-bg)) !important;\n }\n .guided-view-chapter[data-chapter-position=\"current\"] {\n border: 2px solid var(--frontend-stroke) !important;\n padding: calc(0.36rem - 1px) calc(0.48rem - 1px) !important;\n box-shadow: inset 3px 0 0 var(--frontend-stroke);\n color: var(--toolbar-text) !important;\n }\n .guided-view-chapter[data-chapter-position=\"current\"] .guided-view-chapter-index {\n background: var(--frontend-stroke);\n color: var(--bg);\n }\n .guided-view-chapter[data-chapter-position=\"before\"] {\n border-style: solid !important;\n opacity: 0.72;\n }\n .guided-view-chapter[data-chapter-position=\"after\"] { border-style: dashed !important; }\n html[data-preset=\"signal-flow\"] .guided-view-chapter[data-chapter-position=\"current\"] {\n box-shadow: inset 3px 0 0 var(--frontend-stroke), 0 0 18px color-mix(in srgb, var(--frontend-stroke) 18%, transparent);\n }\n html[data-preset=\"blueprint\"] .guided-view-chapter,\n html[data-preset=\"blueprint\"] .guided-view-chapter-index { border-radius: 0.12rem !important; }\n\n /* Story Shelf — keep every authored chapter and the Play action visible,\n but do not spend a second row on unavailable director controls before\n the reader enters a chapter. Existing data-active-view state expands\n the full guided surface without a new toggle or stored preference. */\n .guided-views[data-active-view=\"all\"] {\n grid-template-columns: minmax(11rem, .72fr) auto minmax(0, 2fr);\n align-items: center;\n padding: 0.28rem 0.35rem;\n }\n .guided-views[data-active-view=\"all\"] \u003e #guided-view-prev,\n .guided-views[data-active-view=\"all\"] \u003e #guided-view-next,\n .guided-views[data-active-view=\"all\"] .guided-view-beat-link,\n .guided-views[data-active-view=\"all\"] .guided-view-all { display: none; }\n .guided-views[data-active-view=\"all\"] .guided-view-copy {\n grid-column: 1;\n grid-row: 1;\n padding: 0.1rem 0.55rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-copy \u003e #guided-view-note { display: none; }\n .guided-views[data-active-view=\"all\"] .guided-view-actions {\n display: block;\n grid-column: 2;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-play { min-height: 2.75rem; }\n .guided-views[data-active-view=\"all\"] .guided-view-index {\n grid-column: 3;\n grid-row: 1;\n padding: 0 0.08rem 0 0.42rem;\n border-top: 0;\n border-left: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n .guided-views[data-active-view=\"all\"] .guided-view-chapters {\n gap: 0.3rem;\n padding: 0;\n }\n\n .cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));\n gap: 1rem;\n margin-top: 2rem;\n }\n\n .card {\n background: var(--panel);\n border-radius: 0.75rem;\n border: 1px solid var(--panel-border);\n padding: 1.25rem;\n }\n\n html[data-preset=\"signal-flow\"] .card {\n background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .card {\n background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);\n }\n\n html[data-preset=\"blueprint\"] .card {\n position: relative;\n border-color: var(--panel-border);\n border-radius: 0.3rem;\n background: var(--panel);\n box-shadow: none;\n }\n html[data-preset=\"blueprint\"] .card::before {\n content: \"\";\n position: absolute;\n top: -1px;\n left: 1rem;\n width: 2.5rem;\n border-top: 2px solid var(--frontend-stroke);\n }\n\n html[data-preset=\"editorial\"] .card {\n position: relative;\n border-radius: 0.28rem;\n background: var(--panel);\n box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);\n }\n html[data-preset=\"editorial\"] .card::before {\n position: absolute;\n top: -1px;\n left: 1.25rem;\n width: 3.25rem;\n border-top: 3px solid var(--arrow-emphasis);\n content: \"\";\n }\n html[data-preset=\"editorial\"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }\n\n .card-header {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin-bottom: 0.75rem;\n }\n\n .card-dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n\n .card-dot.cyan { background: var(--frontend-stroke); }\n .card-dot.emerald { background: var(--backend-stroke); }\n .card-dot.violet { background: var(--database-stroke); }\n .card-dot.amber { background: var(--cloud-stroke); }\n .card-dot.rose { background: var(--security-stroke); }\n .card-dot.orange { background: var(--messagebus-stroke); }\n .card-dot.slate { background: var(--external-stroke); }\n\n .card h3 { font-size: 0.875rem; font-weight: 600; color: var(--text); }\n\n .card ul {\n list-style: none;\n color: var(--text-muted);\n font-size: 0.75rem;\n }\n\n .card li { margin-bottom: 0.375rem; }\n\n .footer {\n text-align: center;\n margin-top: 1.5rem;\n color: var(--text-faint);\n font-size: 0.75rem;\n }\n\n .footer .artifact-start-link {\n color: var(--text-faint);\n text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);\n text-underline-offset: 0.22em;\n transition: color 0.15s ease, text-decoration-color 0.15s ease;\n }\n\n .footer .artifact-start-link:hover,\n .footer .artifact-start-link:focus-visible {\n color: var(--frontend-stroke);\n text-decoration-color: currentColor;\n }\n\n /* ==========================================================\n Print stylesheet — hide interactive controls, force light,\n drop the grid so the diagram doesn't waste ink, use landscape\n so wide diagrams fit, pack summary cards into 2 columns to\n avoid an orphan card on a trailing page.\n ========================================================== */\n @page { size: landscape; margin: 1.5cm; }\n\n @media print {\n /* Force the FULL light palette — including component fills/strokes and\n lane/arrow colors — so printing from dark theme doesn't put neon\n strokes and translucent dark fills on white paper. */\n :root, [data-theme=\"dark\"], [data-theme=\"light\"] {\n --bg: #ffffff;\n --grid: transparent;\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --text: #0f172a;\n --text-muted: #475569;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n --mask: #ffffff;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n }\n body { background: #ffffff !important; padding: 0; }\n .container { max-width: none; }\n .toolbar, .diagram-nav, .focus-chip, .guided-views, .archify-toast, .no-print { display: none !important; }\n .chapter-handoff-overlay { display: none !important; }\n svg [data-node-id][data-chapter-role] { opacity: 1 !important; }\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] { opacity: 1 !important; filter: none !important; }\n .diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }\n html[data-preset=\"signal-flow\"] .diagram-container,\n html[data-preset=\"signal-flow\"] .card { background: #ffffff; }\n .cards { grid-template-columns: 1fr 1fr; }\n /* Ensure elements break sensibly across pages */\n .card { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container svg [data-detail] {\n opacity: 1 !important;\n pointer-events: auto !important;\n }\n .diagram-container svg [data-detail-anchor] { transform: none !important; }\n .diagram-container svg[data-lens-active] [data-node-id],\n .diagram-container svg[data-lens-active] [data-edge-from],\n .diagram-container svg[data-legend-preview-active] [data-node-id],\n .diagram-container svg[data-legend-preview-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n }\n [data-legend-bridge-runtime] { display: none !important; }\n .semantic-lens-overlay { display: none !important; }\n .relationship-hit-overlay { display: none !important; }\n .relationship-pulse-overlay { display: none !important; }\n .route-probe-overlay, .route-journey-overlay { display: none !important; }\n .story-trail-overlay,\n .story-carrier-overlay { display: none !important; }\n .diagram-container svg[data-focus-active] [data-node-id],\n .diagram-container svg[data-focus-active] [data-edge-from],\n .diagram-container svg[data-reach-active] [data-node-id],\n .diagram-container svg[data-reach-active] [data-edge-from],\n .diagram-container svg[data-story-beat] [data-story-step],\n .diagram-container svg[data-story-beat] [data-edge-from][data-story-beat-step],\n .diagram-container svg[data-route-active] [data-node-id],\n .diagram-container svg[data-route-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n animation: none !important;\n }\n h1, .subtitle { color: #0f172a; }\n }\n\n /* ==========================================================\n TOOLBAR (theme toggle + export menu)\n ========================================================== */\n .toolbar {\n position: fixed;\n top: 1rem;\n right: 1rem;\n display: flex;\n gap: 0.5rem;\n z-index: 100;\n }\n .toolbar button {\n background: var(--toolbar-bg);\n color: var(--toolbar-text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 0.875rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n font-weight: 500;\n cursor: pointer;\n backdrop-filter: blur(8px);\n transition: background 0.15s, border-color 0.15s;\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n min-height: 2.75rem;\n }\n .toolbar button:hover {\n background: var(--toolbar-hover);\n border-color: var(--arrow);\n }\n .toolbar button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 2px;\n }\n .toolbar #btn-motion[hidden] { display: none !important; }\n .toolbar #btn-motion { min-width: 4.4rem; }\n .toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }\n .toolbar .preset-wrap { position: relative; }\n .toolbar #btn-preset { min-width: 5.4rem; }\n .preset-control-mark {\n width: 0.58rem;\n height: 0.58rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.2rem;\n background: color-mix(in srgb, var(--frontend-stroke) 28%, transparent);\n transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s;\n }\n #btn-preset[data-preset-option=\"signal-flow\"] .preset-control-mark {\n border-radius: 50%;\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 78%, transparent);\n }\n #btn-preset[data-preset-option=\"blueprint\"] .preset-control-mark {\n border-radius: 0.06rem;\n background: transparent;\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);\n transform: rotate(45deg) scale(0.84);\n }\n #btn-preset[data-preset-option=\"editorial\"] .preset-control-mark {\n border-color: var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg) scale(0.72);\n }\n .toolbar .preset-menu {\n position: absolute;\n top: calc(100% + 0.375rem);\n right: 0;\n display: none;\n width: 16.5rem;\n padding: 0.4rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.5rem;\n background: var(--toolbar-menu-bg);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n }\n .toolbar .preset-menu.open { display: block; }\n .preset-menu-heading {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.42rem 0.6rem 0.55rem;\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.13em;\n text-transform: uppercase;\n }\n .preset-menu-heading span:last-child {\n font-size: 0.52rem;\n letter-spacing: 0.04em;\n text-transform: none;\n }\n .toolbar .preset-option {\n display: grid;\n grid-template-columns: 2rem minmax(0, 1fr) 1rem;\n align-items: center;\n gap: 0.68rem;\n width: 100%;\n min-height: 3.35rem;\n padding: 0.5rem 0.62rem;\n border: 0;\n border-radius: 0.34rem;\n background: transparent;\n text-align: left;\n }\n .toolbar .preset-option:hover,\n .toolbar .preset-option:focus-visible { background: var(--toolbar-hover); }\n .preset-option-swatch {\n position: relative;\n width: 2rem;\n height: 1.55rem;\n overflow: hidden;\n border: 1px solid #64748b;\n border-radius: 0.24rem;\n background: #0f172a;\n box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);\n }\n .preset-option-swatch::before,\n .preset-option-swatch::after { position: absolute; content: \"\"; }\n .preset-option-swatch.classic::before {\n top: 0.42rem;\n right: 0.35rem;\n bottom: 0.42rem;\n left: 0.35rem;\n border: 1px solid #22d3ee;\n border-radius: 0.16rem;\n background: rgba(34, 211, 238, 0.14);\n }\n .preset-option-swatch.signal-flow {\n border-color: #29415f;\n background: linear-gradient(135deg, #07101e 10%, #10243c 100%);\n }\n .preset-option-swatch.signal-flow::before {\n top: 50%;\n right: 0.2rem;\n left: 0.2rem;\n height: 1px;\n background: linear-gradient(90deg, #67e8f9, #c4b5fd);\n box-shadow: 0 0 8px #67e8f9;\n }\n .preset-option-swatch.signal-flow::after {\n top: calc(50% - 0.13rem);\n right: 0.28rem;\n width: 0.26rem;\n height: 0.26rem;\n border-radius: 50%;\n background: #67e8f9;\n box-shadow: 0 0 7px #67e8f9;\n }\n .preset-option-swatch.blueprint {\n border-color: #34799a;\n border-radius: 0.08rem;\n background-color: #0a2031;\n background-image:\n linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),\n linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);\n background-size: 0.42rem 0.42rem;\n }\n .preset-option-swatch.blueprint::before {\n top: 0.34rem;\n right: 0.38rem;\n bottom: 0.34rem;\n left: 0.38rem;\n border: 1px solid #66d9ef;\n }\n .preset-option-swatch.editorial {\n border-color: #b8aa94;\n border-radius: 0.08rem;\n background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);\n }\n .preset-option-swatch.editorial::before {\n top: 0;\n bottom: 0;\n left: 0.42rem;\n width: 1px;\n background: #c9502d;\n opacity: 0.72;\n }\n .preset-option-swatch.editorial::after {\n top: 0.52rem;\n right: 0.45rem;\n width: 0.38rem;\n height: 0.38rem;\n background: #c9502d;\n transform: rotate(45deg);\n }\n .preset-option-copy { min-width: 0; }\n .preset-option-copy strong,\n .preset-option-copy small { display: block; }\n .preset-option-copy strong {\n color: var(--toolbar-text);\n font-size: 0.72rem;\n font-weight: 600;\n }\n .preset-option-copy small {\n margin-top: 0.16rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.57rem;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .preset-option-check {\n color: var(--frontend-stroke);\n font-size: 0.78rem;\n opacity: 0;\n }\n .preset-option[aria-checked=\"true\"] .preset-option-check { opacity: 1; }\n html[data-preset=\"editorial\"] .toolbar button,\n html[data-preset=\"editorial\"] .preset-menu,\n html[data-preset=\"editorial\"] .export-menu,\n html[data-preset=\"editorial\"] .overview-map,\n html[data-preset=\"editorial\"] .semantic-lens,\n html[data-preset=\"editorial\"] .route-probe,\n html[data-preset=\"editorial\"] .focus-chip,\n html[data-preset=\"editorial\"] .diagram-guide,\n html[data-preset=\"editorial\"] .node-finder,\n html[data-preset=\"editorial\"] .guided-views,\n html[data-preset=\"editorial\"] .share-chapter-cue {\n border-radius: 0.3rem;\n }\n .motion-control-dot {\n width: 0.46rem;\n height: 0.46rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 50%;\n background: var(--frontend-stroke);\n box-shadow: 0 0 9px color-mix(in srgb, var(--frontend-stroke) 72%, transparent);\n }\n #btn-motion[aria-pressed=\"false\"] .motion-control-dot {\n background: transparent;\n box-shadow: none;\n }\n .toolbar .export-wrap { position: relative; }\n .toolbar .export-menu {\n position: absolute;\n top: calc(100% + 0.375rem);\n right: 0;\n background: var(--toolbar-menu-bg);\n border: 1px solid var(--toolbar-border);\n border-radius: 0.5rem;\n padding: 0.375rem;\n min-width: 160px;\n display: none;\n flex-direction: column;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .toolbar .export-menu.open { display: flex; }\n .toolbar .export-menu button {\n background: transparent;\n border: 0;\n justify-content: space-between;\n width: 100%;\n text-align: left;\n padding: 0.5rem 0.75rem;\n }\n .toolbar .export-menu button[hidden] { display: none; }\n .toolbar .export-menu button:hover {\n background: var(--toolbar-hover);\n }\n .toolbar .export-menu .hint {\n color: var(--text-faint);\n font-size: 0.625rem;\n }\n .toolbar .export-menu hr {\n border: 0;\n border-top: 1px solid var(--toolbar-border);\n margin: 0.25rem 0.375rem;\n opacity: 0.5;\n }\n\n /* Toast — brief feedback for actions like \"copied\" */\n .archify-toast {\n position: fixed;\n top: 1rem;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: var(--toolbar-menu-bg);\n color: var(--text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n opacity: 0;\n transition: opacity 0.2s, transform 0.2s;\n z-index: 200;\n pointer-events: none;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .archify-toast.show {\n opacity: 1;\n transform: translateX(-50%) translateY(0);\n }\n\n @media (max-width: 720px) {\n body { padding: 1rem; }\n .toolbar .preset-menu {\n position: fixed;\n top: 4.5rem;\n right: 1rem;\n left: 1rem;\n width: auto;\n }\n .toolbar {\n position: relative;\n justify-content: flex-end;\n margin-bottom: 1rem;\n }\n .header { margin-bottom: 1.25rem; padding-right: 0; }\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 0; }\n .header-row {\n gap: 0.75rem;\n align-items: flex-start;\n }\n html[data-preset=\"signal-flow\"] .header-row,\n html[data-preset=\"blueprint\"] .header-row,\n html[data-preset=\"editorial\"] .header-row { flex-wrap: wrap; }\n html[data-preset=\"signal-flow\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n h1 {\n font-size: 1.25rem;\n line-height: 1.25;\n }\n .subtitle {\n margin-left: 0;\n font-size: 0.8125rem;\n line-height: 1.55;\n }\n .diagram-container {\n padding: 0.75rem;\n border-radius: 0.75rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container {\n padding: 0.75rem 0.75rem 4.25rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] {\n overflow-x: auto;\n overflow-y: hidden;\n overscroll-behavior-x: contain;\n scrollbar-width: thin;\n scroll-behavior: smooth;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n min-width: 720px;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-nav,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .overview-map,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .focus-chip,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .route-probe,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .semantic-lens,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-guide,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .node-finder {\n transform: translateX(var(--archify-scroll-x, 0px));\n }\n .diagram-nav { right: 0.5rem; bottom: 0.5rem; }\n .overview-map {\n right: 0.5rem;\n bottom: 3.7rem;\n width: min(10.25rem, calc(100% - 1rem));\n }\n .overview-map[data-docked=\"true\"] {\n right: 0.5rem;\n top: var(--archify-radar-top, 0.5rem);\n bottom: auto;\n transform: none !important;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: 0.5rem;\n }\n .overview-map-surface { height: 4rem; }\n .semantic-lens {\n right: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n max-height: calc(100% - 4.2rem);\n }\n .semantic-lens[data-dock-side] { left: auto; right: 0.5rem; }\n .semantic-lens-kinds { max-height: min(12rem, 34vh); }\n .focus-chip {\n left: 0.5rem;\n top: 0.5rem;\n width: calc(100% - 1rem);\n max-width: none;\n }\n .relationship-lens-list { max-height: min(12rem, 38vh); }\n .relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-head { border-bottom-color: transparent; }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-list { display: none; }\n /* While a mobile reader previews one relationship, turn the full Lens\n into a compact peek card. This keeps the exact source and target on\n canvas instead of covering them with a long, scrollable list. */\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-list {\n max-height: none;\n padding: 0.35rem;\n overflow: hidden;\n }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group { margin: 0; }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group-title,\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-row:not([data-preview-active=\"true\"]) {\n display: none;\n }\n .node-finder {\n top: 0.5rem;\n left: 0.5rem;\n width: min(22rem, calc(100% - 1rem));\n max-height: calc(100% - 1rem);\n }\n .diagram-guide {\n top: 0.5rem;\n right: 0.5rem;\n left: 0.5rem;\n width: auto;\n max-height: calc(100% - 1rem);\n }\n .diagram-guide-head { padding: 0.62rem 0.7rem 0.52rem; }\n .diagram-guide-stats { padding: 0.42rem 0.7rem; }\n .diagram-guide-actions {\n grid-template-columns: 1fr;\n gap: 0.28rem;\n padding: 0.42rem;\n }\n .diagram-guide-action {\n min-height: 3.1rem;\n padding: 0.42rem 0.48rem;\n }\n .diagram-guide-action small {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-index {\n width: 1.5rem;\n height: 1.5rem;\n }\n .diagram-guide-shortcuts { padding: 0.46rem 0.7rem 0.52rem; }\n .diagram-guide-action[data-guide-action=\"present\"] { grid-column: auto; }\n .route-probe[data-guide-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .node-finder-results { max-height: min(16rem, 38vh); }\n .route-probe {\n left: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n min-width: 0;\n }\n .route-probe[data-route-dock=\"top\"] {\n top: 0.5rem;\n bottom: auto;\n }\n .route-probe[data-finder-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .route-probe-head { padding: 0.45rem 0.48rem 0.38rem; }\n .route-probe-path { padding: 0.35rem 0.48rem 0.2rem; }\n .route-probe-node { min-height: 2.75rem !important; }\n .route-journey-controls {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem minmax(0, 1fr);\n padding: 0.08rem 0.48rem 0.32rem;\n }\n .route-journey-controls button { min-height: 2.75rem; }\n .route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }\n .route-probe-node { max-width: 7.5rem; }\n .guided-views {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;\n gap: 0.2rem;\n padding: 0.25rem;\n }\n .guided-view-actions {\n grid-column: 1 / -1;\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n .guided-views \u003e #guided-view-prev,\n .guided-views \u003e #guided-view-next {\n align-self: center;\n height: 2.75rem;\n }\n .guided-view-play,\n .guided-view-all,\n .guided-view-beat-link { min-height: 2.75rem; }\n .guided-view-copy small { white-space: normal; }\n .guided-story-caption { padding: 0.32rem 0.45rem; }\n .guided-story-caption-index { min-width: 2.9rem; padding-right: 0.42rem; }\n .guided-story-caption strong,\n .guided-story-caption small { white-space: normal; }\n .guided-story-caption-next { display: none; }\n .guided-view-trail { min-height: 2rem; }\n .guided-view-trail .guided-view-stop {\n min-height: 2rem;\n padding: 0.22rem 0.42rem 0.22rem 0.28rem;\n }\n .guided-view-handoff { max-width: min(9rem, 32vw); }\n .guided-view-index { padding-top: 0.35rem; }\n .guided-view-chapters {\n gap: 0.35rem;\n scroll-padding-inline: 0.2rem;\n }\n .guided-view-chapters li {\n flex: 0 0 min(14rem, 78vw);\n min-width: 0;\n }\n .guided-view-chapter { min-height: 2.75rem; }\n .guided-views[data-active-view=\"all\"] {\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem;\n padding: 0.25rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-copy {\n grid-column: 1;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-actions {\n grid-column: 2;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-play {\n min-width: 6rem !important;\n min-height: 2.75rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-index {\n grid-column: 1 / -1;\n grid-row: 2;\n padding: 0.3rem 0.08rem 0;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n border-left: 0;\n }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .share-chapter-cue:not([hidden]),\n html[data-embed=\"true\"][data-share-moment=\"true\"] .share-chapter-cue:not([hidden]) {\n top: 0.5rem;\n grid-template-columns: auto minmax(0, 1fr);\n gap: 0.28rem 0.55rem;\n width: calc(100% - 1rem);\n min-height: 0;\n padding: 0.45rem 0.55rem 0.55rem;\n }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n html[data-embed=\"true\"][data-share-moment=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n .share-chapter-index {\n min-width: 4.4rem;\n padding-right: 0.5rem;\n }\n .share-chapter-copy small { font-size: 0.46rem; }\n .share-chapter-route {\n grid-column: 1 / -1;\n font-size: 0.5rem;\n text-align: left;\n }\n .cards {\n grid-template-columns: 1fr;\n margin-top: 1rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body { padding: 0.5rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n gap: 0.5rem;\n height: calc(100dvh - 1rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar {\n position: fixed;\n top: 0.5rem;\n right: 0.5rem;\n margin: 0;\n gap: 0.25rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar button {\n min-height: 2.75rem;\n padding: 0.42rem 0.58rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n min-height: 2.25rem;\n padding: 3.5rem 0 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row {\n min-height: 2.25rem;\n margin: 0;\n align-items: center;\n flex-wrap: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row::after,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .pulse-dot,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) h1 {\n flex: 1 1 auto;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n font-size: 0.875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views {\n padding: 0.2rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-view-copy small { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-story-caption small { display: block; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n width: 720px;\n height: auto;\n min-width: 720px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .guided-story-caption { animation: none !important; }\n }\n\n @media (max-width: 360px) {\n .toolbar { gap: 0.25rem; }\n .toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }\n .toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }\n #theme-label, #preset-label, #present-label { display: none; }\n .guided-view-handoff { max-width: 6.5rem; }\n }\n\n /* ==========================================================\n SVG SEMANTIC CLASSES — use these instead of inline fill/stroke\n ========================================================== */\n .c-grid { stroke: var(--grid); fill: none; }\n .c-mask { fill: var(--mask); stroke: none; }\n\n .c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }\n .c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }\n .c-database { fill: var(--database-fill); stroke: var(--database-stroke); }\n .c-cloud { fill: var(--cloud-fill); stroke: var(--cloud-stroke); }\n .c-security { fill: var(--security-fill); stroke: var(--security-stroke); }\n .c-messagebus { fill: var(--messagebus-fill); stroke: var(--messagebus-stroke); }\n .c-external { fill: var(--external-fill); stroke: var(--external-stroke); }\n\n /* Text helpers */\n .t-primary { fill: var(--text); }\n .t-muted { fill: var(--text-muted); }\n .t-dim { fill: var(--text-dim); }\n .t-frontend { fill: var(--frontend-stroke); }\n .t-backend { fill: var(--backend-stroke); }\n .t-database { fill: var(--database-stroke); }\n .t-cloud { fill: var(--cloud-stroke); }\n .t-security { fill: var(--security-stroke); }\n .t-messagebus { fill: var(--messagebus-stroke); }\n .t-external { fill: var(--external-stroke); }\n\n /* Semantic Sigils are small authored role stamps, not icons from a brand\n pack and not viewer controls. Prefix selectors with svg so the canonical\n export's SVG-only stylesheet collector keeps them automatically. */\n svg .semantic-sigil {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n opacity: 0.76;\n pointer-events: none;\n }\n svg .semantic-sigil \u003e * { vector-effect: non-scaling-stroke; }\n svg .semantic-sigil .sigil-fill { fill: currentColor; stroke: none; }\n svg .s-frontend { color: var(--frontend-stroke); }\n svg .s-backend { color: var(--backend-stroke); }\n svg .s-database { color: var(--database-stroke); }\n svg .s-cloud { color: var(--cloud-stroke); }\n svg .s-security { color: var(--security-stroke); }\n svg .s-messagebus { color: var(--messagebus-stroke); }\n svg .s-external { color: var(--external-stroke); }\n\n /* Reading Depth is a viewer-only level-of-detail layer. MAP preserves the\n authored structure and primary labels, READ restores relationship labels\n and node context, and FULL restores tags and fine annotations. Semantic\n intent can reveal the relevant detail without moving any geometry. */\n svg [data-detail] { transition: opacity 160ms ease; }\n svg [data-detail-anchor] {\n transform-box: fill-box;\n transform-origin: center;\n transition: transform 160ms ease;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"context\"],\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"fine\"],\n .diagram-container[data-detail-level=\"read\"] svg [data-detail=\"fine\"] {\n opacity: 0;\n pointer-events: none;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail-anchor] {\n transform: translateY(8px);\n }\n\n /* Focus, lens, preview, route, and story states are stronger reader intent than\n the global zoom level. Reveal only their exact semantic matches. */\n svg[data-focus-active] [data-focus-match][data-detail],\n svg[data-focus-active] [data-focus-match] [data-detail],\n svg[data-reach-active] [data-reach-match][data-detail],\n svg[data-reach-active] [data-reach-match] [data-detail],\n svg[data-lens-active] [data-lens-match][data-detail],\n svg[data-lens-active] [data-lens-match] [data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match][data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match][data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],\n svg[data-route-active] [data-route-match][data-detail],\n svg[data-route-active] [data-route-match] [data-detail],\n svg[data-story-active] [data-story-step][data-detail],\n svg[data-story-active] [data-story-step] [data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview][data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],\n svg [data-node-id]:hover [data-detail],\n svg [data-node-id]:focus-visible [data-detail] {\n opacity: 1;\n pointer-events: auto;\n }\n svg[data-focus-active] [data-focus-match] [data-detail-anchor],\n svg[data-reach-active] [data-reach-match] [data-detail-anchor],\n svg[data-lens-active] [data-lens-match] [data-detail-anchor],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],\n svg[data-route-active] [data-route-match] [data-detail-anchor],\n svg[data-story-active] [data-story-step] [data-detail-anchor],\n svg [data-node-id]:hover [data-detail-anchor],\n svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }\n\n /* Arrows */\n .a-default { stroke: var(--arrow); fill: none; }\n .a-emphasis { stroke: var(--arrow-emphasis); fill: none; }\n .a-security { stroke: var(--security-stroke); fill: none; stroke-dasharray: 5,5; }\n .a-dashed { stroke: var(--database-stroke); fill: none; stroke-dasharray: 4,4; }\n\n /* Arrowhead markers reference these */\n .m-default { fill: var(--arrow); }\n .m-emphasis { fill: var(--arrow-emphasis); }\n .m-security { fill: var(--security-stroke); }\n .m-dashed { fill: var(--database-stroke); }\n\n /* Stable semantic exploration hooks emitted by every renderer. */\n svg [data-node-id] {\n cursor: pointer;\n transition: opacity 0.18s ease, filter 0.18s ease;\n }\n svg [data-edge-from] { transition: opacity 0.18s ease, filter 0.18s ease; }\n svg [data-node-id]:hover,\n svg [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n outline: none;\n }\n /* Verified Source Beacons are installed at runtime only for nodes whose\n repository evidence passed the local revision/blob/line checks. They\n live inside the owning node so every focus, route, story, and guided\n view keeps one coherent opacity state. Export serialization removes\n them before producing the canonical SVG or any derived visual. */\n .source-evidence-beacon {\n pointer-events: none;\n opacity: 0.76;\n transition: opacity 160ms ease, filter 160ms ease;\n }\n .source-evidence-beacon rect {\n fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));\n stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n .source-evidence-beacon text {\n fill: var(--backend-stroke);\n font-size: 5.5px;\n font-weight: 800;\n letter-spacing: 0.06em;\n text-anchor: middle;\n text-transform: uppercase;\n }\n svg [data-node-id]:hover .source-evidence-beacon,\n svg [data-node-id]:focus-visible .source-evidence-beacon,\n svg [data-node-id][data-focus-selected] .source-evidence-beacon {\n opacity: 1;\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"signal-flow\"] .source-evidence-beacon { opacity: 0.9; }\n svg[data-preset=\"blueprint\"] .source-evidence-beacon rect {\n rx: 0.8px;\n filter: none;\n }\n svg [data-legend-kind][role=\"button\"] { cursor: pointer; }\n svg [data-legend-kind]:focus { outline: none; }\n svg [data-legend-hit] {\n fill: transparent;\n stroke: transparent;\n stroke-width: 1.4;\n pointer-events: all;\n vector-effect: non-scaling-stroke;\n transition: stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;\n }\n svg [data-legend-count-badge] { pointer-events: none; }\n svg [data-legend-count-badge] rect {\n fill: var(--mask);\n stroke: var(--panel-border);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n svg [data-legend-count-badge] text {\n fill: var(--text-muted);\n font-size: 7px;\n font-weight: 700;\n text-anchor: middle;\n }\n svg [data-legend-kind][role=\"button\"]:hover [data-legend-hit] {\n stroke: color-mix(in srgb, var(--database-stroke) 58%, transparent);\n }\n svg [data-legend-kind][role=\"button\"]:focus-visible [data-legend-hit] {\n stroke: var(--frontend-stroke);\n stroke-width: 1.8;\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-hit] {\n stroke: var(--database-stroke);\n stroke-width: 2.2;\n stroke-dasharray: 3 2;\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-count-badge] rect {\n stroke: var(--database-stroke);\n stroke-width: 1.8;\n }\n svg [data-legend-kind][data-legend-zero] { opacity: 0.44; }\n svg[data-preset=\"signal-flow\"] [data-legend-kind][data-legend-selected] [data-legend-hit] {\n filter: drop-shadow(0 0 4px var(--database-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-legend-hit],\n svg[data-preset=\"blueprint\"] [data-legend-count-badge] rect { rx: 0; filter: none; }\n svg[data-legend-preview-active] [data-node-id],\n svg[data-legend-preview-active] [data-edge-from] { opacity: 0.11; }\n svg[data-legend-preview-active] [data-legend-preview-match] { opacity: 1; }\n svg[data-legend-preview-active] [data-legend-preview-peer] { opacity: 0.62; }\n svg[data-legend-preview-active] [data-legend-preview-selected] {\n filter: drop-shadow(0 0 8px var(--database-stroke));\n }\n svg[data-lens-active] [data-node-id],\n svg[data-lens-active] [data-edge-from] { opacity: 0.11; }\n svg[data-lens-active] [data-lens-match] { opacity: 1; }\n svg[data-lens-active] [data-lens-peer] { opacity: 0.62; }\n svg[data-lens-active] [data-lens-selected] {\n filter: drop-shadow(0 0 10px var(--database-stroke));\n }\n .semantic-lens-overlay { pointer-events: none; }\n .semantic-lens-flow {\n fill: none;\n stroke-width: 3.05;\n stroke-linecap: round;\n stroke-dasharray: 0.075 0.925;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.9;\n animation: archify-semantic-lens-flow 1.35s linear 1 both;\n animation-delay: var(--lens-flow-delay, 0s);\n }\n .semantic-lens-flow[data-direction=\"out\"],\n .semantic-lens-flow[data-direction=\"forward\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n .semantic-lens-flow[data-direction=\"in\"],\n .semantic-lens-flow[data-direction=\"reverse\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 3px var(--database-stroke));\n }\n .semantic-lens-flow[data-direction=\"within\"] {\n stroke: var(--messagebus-stroke);\n filter: drop-shadow(0 0 3px var(--messagebus-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow {\n stroke-width: 3.7;\n opacity: 1;\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"out\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"forward\"] {\n filter: drop-shadow(0 0 6px var(--frontend-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"in\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"reverse\"] {\n filter: drop-shadow(0 0 6px var(--database-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"within\"] {\n filter: drop-shadow(0 0 6px var(--messagebus-stroke));\n }\n svg[data-preset=\"blueprint\"] .semantic-lens-flow {\n stroke-width: 2.45;\n stroke-linecap: square;\n filter: none;\n opacity: 0.78;\n }\n html[data-embed=\"true\"] .semantic-lens-overlay { display: none; }\n svg[data-focus-active] [data-node-id],\n svg[data-focus-active] [data-edge-from] { opacity: 0.13; }\n svg[data-focus-active] [data-focus-match] { opacity: 1; }\n svg[data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n\n /* Authored Reachability is a bounded graph query over the relationships\n already present in the artifact. Upstream walks incoming edges;\n downstream walks outgoing edges. It never claims runtime causality and\n changes only viewer emphasis, not canonical geometry or export bytes. */\n svg[data-reach-active] [data-node-id],\n svg[data-reach-active] [data-edge-from] { opacity: 0.09; }\n svg[data-reach-active] [data-reach-match] { opacity: 1; }\n svg[data-reach-active=\"upstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--database-stroke));\n }\n svg[data-reach-active=\"downstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--backend-stroke));\n }\n svg[data-reach-active=\"upstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--database-stroke) 72%, transparent));\n }\n svg[data-reach-active=\"downstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"blueprint\"][data-reach-active] [data-reach-origin],\n svg[data-preset=\"blueprint\"][data-reach-active] [data-edge-from][data-reach-match] {\n filter: none;\n }\n\n /* Direct Relationship Explorer makes authored paths a real input surface\n without changing their visible stroke or canonical SVG. A transparent\n runtime rail supplies forgiving pointer geometry; the exact authored\n path and endpoints continue to carry every visible state. */\n .relationship-hit-overlay { pointer-events: none; }\n .relationship-hit-target { outline: none; }\n .relationship-hit-rail {\n fill: none;\n stroke: transparent;\n stroke-width: 24;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: stroke;\n cursor: pointer;\n }\n .relationship-focus-rail {\n fill: none;\n stroke: color-mix(in srgb, var(--frontend-stroke) 34%, transparent);\n stroke-width: 6;\n stroke-dasharray: 2 4;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n opacity: 0;\n }\n .relationship-hit-target:focus-visible .relationship-focus-rail {\n opacity: 1;\n }\n svg[data-preset=\"blueprint\"] .relationship-hit-target:focus-visible .relationship-focus-rail {\n stroke-linecap: square;\n filter: none;\n }\n svg[data-relationship-direct-active] [data-node-id],\n svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }\n svg[data-relationship-direct-active] [data-relationship-preview],\n svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,\n svg[data-story-active] .relationship-hit-rail,\n svg[data-route-picking] .relationship-hit-rail,\n svg[data-route-active] .relationship-hit-rail,\n svg[data-lens-active] .relationship-hit-rail,\n svg[data-chapter-preview] .relationship-hit-rail { pointer-events: none; }\n html[data-embed=\"true\"] .relationship-hit-overlay { display: none; }\n @media (hover: none), (pointer: coarse) {\n .relationship-hit-rail { stroke-width: 24; }\n }\n\n /* Relationship Preview is temporary exploration state layered on top of\n neighborhood focus. It changes emphasis only; exported geometry and the\n relationship's original solid/dashed visual language stay untouched. */\n svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }\n svg[data-relationship-preview-active] [data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-relationship-preview-active] [data-relationship-preview] {\n filter: drop-shadow(0 0 5px var(--arrow-emphasis));\n }\n svg[data-relationship-preview-active] [data-relationship-preview] path,\n svg[data-relationship-preview-active] path[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] line,\n svg[data-relationship-preview-active] line[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] polyline,\n svg[data-relationship-preview-active] polyline[data-relationship-preview] {\n stroke-width: 2.75;\n }\n svg[data-relationship-preview-active] [data-relationship-preview-source] {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 7px var(--database-stroke));\n }\n .relationship-pulse-overlay { pointer-events: none; }\n .relationship-flow-pulse {\n fill: none;\n stroke: var(--arrow-emphasis);\n stroke-width: 3.35;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 4px var(--arrow-emphasis));\n animation: archify-relationship-pulse 1.2s linear 1 both;\n }\n svg[data-preset=\"signal-flow\"] .relationship-flow-pulse {\n stroke: var(--frontend-stroke);\n stroke-width: 3.85;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"] .relationship-flow-pulse {\n stroke-width: 2.5;\n stroke-linecap: square;\n filter: none;\n }\n svg[data-preset=\"editorial\"] .relationship-flow-pulse {\n stroke: var(--arrow-emphasis);\n stroke-width: 2.75;\n filter: none;\n }\n .semantic-flow-token {\n color: var(--frontend-stroke);\n opacity: 0;\n pointer-events: none;\n }\n .relationship-flow-token {\n animation: archify-relationship-token-life 1.2s linear 1 both;\n }\n .story-flow-token {\n animation: archify-relationship-token-life 0.78s linear 1 both;\n }\n .semantic-flow-token-halo {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.1;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n }\n .relationship-flow-token-shape {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-ink {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.05;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-dot { fill: currentColor; stroke: none; }\n .semantic-flow-token[data-token-kind=\"data\"] { color: var(--database-stroke); }\n .semantic-flow-token[data-token-kind=\"event\"] { color: var(--messagebus-stroke); }\n .semantic-flow-token[data-token-kind=\"security\"] { color: var(--security-stroke); }\n .semantic-flow-token[data-token-kind=\"state\"] { color: var(--cloud-stroke); }\n svg[data-preset=\"signal-flow\"] .semantic-flow-token {\n filter: drop-shadow(0 0 5px currentColor);\n }\n svg[data-preset=\"blueprint\"] .semantic-flow-token { filter: none; }\n svg[data-preset=\"editorial\"] .semantic-flow-token { filter: none; }\n html[data-embed=\"true\"] .relationship-pulse-overlay { display: none; }\n\n /* Intent Trace is a temporary, pre-click exploration layer. Related\n topology stays readable while a short viewer-only signal runs over\n cloned edge geometry; the authored edge remains untouched underneath. */\n svg[data-intent-trace-active] [data-node-id],\n svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }\n svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }\n svg[data-intent-trace-active] [data-intent-trace-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n .intent-trace-overlay { pointer-events: none; }\n .intent-trace-flow {\n fill: none;\n stroke-width: 3.1;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.94;\n animation: archify-intent-trace-flow 1.15s linear 1 both;\n }\n .intent-trace-flow[data-direction=\"out\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 4px var(--frontend-stroke));\n }\n .intent-trace-flow[data-direction=\"in\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 4px var(--database-stroke));\n animation-direction: reverse;\n }\n .intent-trace-flow[data-direction=\"loop\"] {\n stroke: var(--security-stroke);\n filter: drop-shadow(0 0 4px var(--security-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-intent-trace-selected],\n svg[data-preset=\"blueprint\"] .intent-trace-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-intent-trace-selected],\n svg[data-preset=\"editorial\"] .intent-trace-flow { filter: none; }\n .intent-trace-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n /* Route Probe separates a durable two-point query from selection and\n one-hop hover. Only the chosen shortest directed path stays prominent;\n the traveling signal is cloned viewer geometry and never authored SVG. */\n svg[data-route-picking=\"target\"] [data-node-id] { opacity: 0.24; }\n svg[data-route-picking=\"target\"] [data-route-candidate],\n svg[data-route-picking=\"target\"] [data-route-start] { opacity: 1; }\n svg[data-route-picking] [data-node-id] { cursor: crosshair; }\n svg[data-route-picking] [data-route-start] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n svg[data-route-active] [data-node-id],\n svg[data-route-active] [data-edge-from] { opacity: 0.11; }\n svg[data-route-active] [data-route-match] { opacity: 1; }\n svg[data-route-active] [data-route-start] {\n filter: drop-shadow(0 0 11px var(--frontend-stroke));\n }\n svg[data-route-active] [data-route-end] {\n filter: drop-shadow(0 0 11px var(--security-stroke));\n }\n svg[data-route-active] [data-route-step]:not([data-route-start]):not([data-route-end]) {\n filter: drop-shadow(0 0 7px var(--backend-stroke));\n }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"past\"] { opacity: 0.62; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"future\"] { opacity: 0.34; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"current\"] { opacity: 1; }\n svg[data-route-journey] [data-node-id][data-route-journey-current] {\n filter: drop-shadow(0 0 10px var(--backend-stroke));\n }\n svg[data-route-journey] [data-edge-from][data-route-journey-current] {\n opacity: 1;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n }\n .route-probe-overlay { pointer-events: none; }\n .route-journey-overlay { pointer-events: none; }\n .route-probe-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.25;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n filter: drop-shadow(0 0 5px var(--backend-stroke));\n animation: archify-route-probe-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n animation-delay: calc(var(--route-step, 0) * 0.16s);\n }\n .route-journey-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.5;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n animation: archify-route-journey-flow 780ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n }\n svg[data-preset=\"blueprint\"] [data-route-start],\n svg[data-preset=\"blueprint\"] [data-route-end],\n svg[data-preset=\"blueprint\"] [data-route-step],\n svg[data-preset=\"blueprint\"] .route-probe-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"blueprint\"] .route-journey-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-route-start],\n svg[data-preset=\"editorial\"] [data-route-end],\n svg[data-preset=\"editorial\"] [data-route-step],\n svg[data-preset=\"editorial\"] .route-probe-flow,\n svg[data-preset=\"editorial\"] .route-journey-flow { filter: none; }\n\n svg[data-preset=\"editorial\"] .c-grid {\n stroke-dasharray: 1 4;\n opacity: 0.48;\n }\n svg[data-preset=\"editorial\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);\n stroke-dasharray: 9 4;\n }\n svg[data-preset=\"editorial\"] [data-node-id]:hover,\n svg[data-preset=\"editorial\"] [data-node-id]:focus-visible,\n svg[data-preset=\"editorial\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));\n }\n\n svg[data-preset=\"blueprint\"] .c-grid {\n stroke-dasharray: 1 3;\n opacity: 0.78;\n }\n svg[data-preset=\"blueprint\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 58%, transparent);\n stroke-dasharray: 12 4 2 4;\n }\n svg[data-preset=\"blueprint\"] .c-security-group,\n svg[data-preset=\"blueprint\"] .c-lane { stroke-dasharray: 7 3; }\n svg[data-preset=\"blueprint\"] [data-node-id]:hover,\n svg[data-preset=\"blueprint\"] [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active][data-reach-active] [data-focus-selected][data-reach-origin] {\n filter: none;\n }\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-source],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n\n /* Story Trail is a viewer-only overlay derived from the ordered focus IDs\n of the active guided view. The authored edge stays underneath with its\n original color, dash pattern, marker, and geometry intact. */\n .story-trail-overlay { pointer-events: none; }\n .story-carrier-overlay { pointer-events: none; }\n .story-trail-flow {\n fill: none;\n stroke: var(--frontend-stroke);\n stroke-width: 2.8;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n opacity: 0.34;\n filter: drop-shadow(0 0 2px var(--frontend-stroke));\n }\n svg[data-story-beat] [data-story-step] {\n opacity: 0.22;\n filter: saturate(0.42);\n transition: opacity 180ms ease, filter 180ms ease;\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"past\"] {\n opacity: 0.72;\n filter: saturate(0.82);\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"next\"] {\n opacity: 0.5;\n filter: saturate(0.66);\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n opacity: 1;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n animation: archify-story-beat-node 360ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n svg[data-story-beat] [data-edge-from][data-story-beat-step] {\n opacity: 0.16;\n transition: opacity 160ms ease;\n }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"past\"] { opacity: 0.58; }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"next\"] { opacity: 0.34; }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"active\"] { opacity: 1; }\n svg[data-story-beat] .story-trail-flow { opacity: 0; transition: opacity 160ms ease; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"past\"] { opacity: 0.34; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"next\"] { opacity: 0.2; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"active\"] { opacity: 0.92; }\n svg[data-story-beat] .story-trail-flow[data-story-pulse=\"true\"] {\n stroke-dasharray: 2 13;\n stroke-dashoffset: 30;\n opacity: 0.92;\n animation: archify-story-flow 0.78s linear 1 both;\n }\n svg[data-preset=\"blueprint\"] .story-trail-flow {\n stroke-linecap: square;\n filter: none;\n opacity: 0.5;\n }\n svg[data-preset=\"blueprint\"][data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n filter: none;\n animation: none;\n }\n svg[data-preset=\"editorial\"] .story-trail-flow { filter: none; }\n svg[data-preset=\"editorial\"][data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 16%, transparent));\n }\n\n /* Chapter Delta Preview is a static, pre-commit comparison between two\n chapter focus sets. Symbols in the rail carry the meaning without color;\n these SVG rules only make exact stable-ID membership easier to scan. */\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] {\n opacity: 0.1 !important;\n filter: none !important;\n transition: none !important;\n }\n svg[data-chapter-preview] .story-trail-overlay { opacity: 0.08 !important; }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"stay\"] {\n opacity: 0.76 !important;\n filter: saturate(0.7) !important;\n }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"enter\"] {\n opacity: 1 !important;\n filter: saturate(1.2) !important;\n }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"leave\"] {\n opacity: 0.28 !important;\n filter: grayscale(0.72) !important;\n }\n svg[data-preset=\"blueprint\"][data-chapter-preview] [data-node-id] { filter: none !important; }\n\n /* Dashed boundary variants */\n .c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }\n .c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }\n .c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }\n\n /* Optional trace animation, enabled only by meta.animation = \"trace\".\n The ordinary viewer performs one ambient pass and then restores the\n authored solid/security/async line language. WebM samples the same\n authored geometry into an explicit canvas timeline. */\n html[data-ambient-motion=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"edge\"] {\n animation: archify-edge-flow 2.4s linear 1;\n animation-delay: calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n transform-box: fill-box;\n transform-origin: center;\n animation: archify-node-pulse 3.6s ease-in-out 1;\n animation-delay: calc(var(--step, 0) * 160ms);\n }\n svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n stroke-linecap: round;\n filter: drop-shadow(0 0 3px var(--arrow-emphasis));\n animation-duration: 1.75s;\n }\n svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-duration: 3.1s;\n }\n svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n stroke-linecap: square;\n filter: none;\n animation-duration: 2.15s;\n }\n svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-name: archify-blueprint-node-pulse;\n animation-duration: 3.8s;\n }\n svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n filter: none;\n animation-duration: 2.2s;\n }\n svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-name: archify-editorial-node-pulse;\n animation-duration: 3.5s;\n }\n /* Embedded proofs are static until a named Story Trail chapter is played.\n This keeps proof grids calm and ensures ?play=1 stops all viewer motion\n after one 3.2 second chapter instead of leaving ambient trace loops on. */\n html[data-embed=\"true\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-share-playback=\"true\"] svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n @keyframes archify-edge-flow {\n 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }\n 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }\n 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }\n 100% { stroke-dashoffset: 0; opacity: 1; }\n }\n @keyframes archify-node-pulse {\n 0%, 72%, 100% { filter: none; stroke-width: 1.5; }\n 18%, 36% {\n filter: drop-shadow(0 0 8px var(--arrow-emphasis));\n stroke-width: 2.4;\n }\n }\n @keyframes archify-blueprint-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }\n }\n @keyframes archify-editorial-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }\n }\n @keyframes archify-signal-scan {\n 0%, 18% { opacity: 1; transform: translateX(-70%); }\n 70% { opacity: 1; transform: translateX(70%); }\n 100% { opacity: 0; transform: translateX(70%); }\n }\n @keyframes archify-radar-live {\n 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }\n 55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }\n }\n @keyframes archify-guided-progress {\n from { transform: scaleX(var(--guided-progress-start, 0)); }\n to { transform: scaleX(1); }\n }\n @keyframes archify-story-flow {\n to { stroke-dashoffset: 0; }\n }\n @keyframes archify-intent-trace-flow {\n 0% { opacity: 0.28; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.94; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-route-probe-flow {\n 0% { stroke-dashoffset: 0; opacity: 0.96; }\n 78% { stroke-dashoffset: -1; opacity: 0.96; }\n 100% { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.58; }\n }\n @keyframes archify-route-journey-flow {\n 0% { opacity: 0.16; stroke-dashoffset: 0; }\n 14%, 76% { opacity: 1; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-semantic-lens-flow {\n 0% { opacity: 0.2; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.9; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-pulse {\n 0% { opacity: 0.18; stroke-dashoffset: 0; }\n 10%, 76% { opacity: 0.98; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-token-life {\n 0%, 7% { opacity: 0; }\n 13%, 82% { opacity: 1; }\n 100% { opacity: 0; }\n }\n @keyframes archify-story-beat-node {\n from { opacity: 0.48; filter: saturate(0.6); }\n 58% { opacity: 1; filter: drop-shadow(0 0 10px var(--frontend-stroke)); }\n to { opacity: 1; filter: drop-shadow(0 0 7px var(--frontend-stroke)); }\n }\n @keyframes archify-share-cue-enter {\n from { opacity: 0; transform: translate(-50%, -0.45rem); }\n to { opacity: 1; transform: translate(-50%, 0); }\n }\n @keyframes archify-share-cue-pulse {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 50% { opacity: 0.48; transform: scale(0.78); }\n }\n @media (prefers-reduced-motion: reduce) {\n html[data-preset=\"signal-flow\"] .diagram-container::before {\n animation: none !important;\n }\n .pulse-dot { animation: none !important; }\n svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n .guided-view-progress span {\n animation: none !important;\n transform: scaleX(1) !important;\n }\n .story-trail-flow,\n .intent-trace-flow,\n .route-probe-flow,\n .semantic-lens,\n .diagram-guide,\n [data-story-step],\n .overview-map-live,\n .guided-view-stop,\n .share-chapter-cue,\n .chapter-handoff-anchor,\n .share-chapter-state::before,\n .share-chapter-progress span { animation: none !important; }\n .guided-view-chapter,\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] { transition: none !important; }\n svg[data-story-playing=\"true\"] .story-trail-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.55;\n }\n .intent-trace-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n .route-probe-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.78;\n }\n .route-journey-overlay,\n .story-carrier-overlay { display: none !important; }\n .semantic-lens-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-width: 2.2;\n opacity: 0.34;\n filter: none;\n }\n .relationship-pulse-overlay { display: none !important; }\n .guided-view-chapter { transition: none !important; }\n .source-evidence-beacon,\n svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }\n }\n ";
let activeIndex = -1;
let playbackToken = 0;
let playbackTimer = 0;
diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.json
index af088bae..e3109e21 100644
--- a/examples/checkout-platform-delta.receipt.json
+++ b/examples/checkout-platform-delta.receipt.json
@@ -219,8 +219,8 @@
"Boundary identity is conservatively derived from kind + label."
],
"artifact": {
- "sha256": "b680c8740e2050e36ca547433a4abd2b777f22724ec1af0159657e8364f45036",
- "bytes": 1664611
+ "sha256": "44c80ea170dff7d73c93ccda00ae851db85c4b81afa1bdd639585bc9c29972e4",
+ "bytes": 1736967
},
"validation": {
"checksPassed": 28,
diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.html
index 9daab182..b585c2fd 100644
--- a/examples/dataflow-product-analytics.html
+++ b/examples/dataflow-product-analytics.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Product Analytics Data Flow Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.html
index fc75e0b4..7a7580bc 100644
--- a/examples/lifecycle-agent-run.html
+++ b/examples/lifecycle-agent-run.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Agent Run Lifecycle Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/examples/maka-architecture.html b/examples/maka-architecture.html
index 7d98709d..62f4575f 100644
--- a/examples/maka-architecture.html
+++ b/examples/maka-architecture.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Maka Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
@@ -4543,7 +4543,7 @@
</div>
<!-- Main Diagram -->
- <div class="diagram-container" data-detail-level="map">
+ <div class="diagram-container" data-detail-level="read">
<svg viewBox="0 0 1180 588" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory">
<title id="archify-diagram-title">Maka</title>
<desc id="archify-diagram-description">Local-first desktop AI workbench — sessions, tools, permissions, recovery</desc>
@@ -5015,7 +5015,7 @@
<!-- Footer -->
<p class="footer">
- Architecture diagram &bull; Built with Archify<span class="no-print"> &bull; <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture" target="_blank" rel="noopener noreferrer">Create yours &nearr;</a> &bull; Hover to trace &bull; <kbd>R</kbd> route &bull; Click to focus &bull; <kbd>+</kbd>/<kbd>&minus;</kbd> zoom &bull; <kbd>M</kbd> radar &bull; <kbd>T</kbd> theme &bull; <kbd>E</kbd> export</span>
+ Architecture diagram &bull; Built with Archify<span class="no-print"> &bull; <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&amp;source=artifact" target="_blank" rel="noopener noreferrer">Create yours &nearr;</a> &bull; Hover to trace &bull; <kbd>R</kbd> route &bull; Click to focus &bull; <kbd>+</kbd>/<kbd>&minus;</kbd> zoom &bull; <kbd>M</kbd> radar &bull; <kbd>T</kbd> theme &bull; <kbd>E</kbd> export</span>
</p>
</div>
@@ -10264,7 +10264,7 @@
function detailLevel() {
if (state.mode === 'semantic') return 'full';
if (state.scale >= 1.75) return 'full';
- if (state.scale >= 1.25) return 'read';
+ if (state.scale >= 1) return 'read';
return 'map';
}
function renderControls() {
diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.html
index 7eb5ad37..d68ad688 100644
--- a/examples/sequence-cache-miss-request.html
+++ b/examples/sequence-cache-miss-request.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Cache Miss Request Sequence Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.html
index 3aea3786..6118f90a 100644
--- a/examples/web-app-rendered.html
+++ b/examples/web-app-rendered.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Sample Web App Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/examples/web-app.html b/examples/web-app.html
index 3aea3786..6118f90a 100644
--- a/examples/web-app.html
+++ b/examples/web-app.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Sample Web App Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.html
index f2be2f00..35c7c1a1 100644
--- a/examples/workflow-agent-tool-call-rendered.html
+++ b/examples/workflow-agent-tool-call-rendered.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="generator" content="archify 2.12.0">
+ <meta name="generator" content="archify 2.13.0-dev.0">
<title>Agent Tool Call Workflow Diagram</title>
<script>
// Resolve the theme before first paint so light-preference users don't
diff --git a/scripts/check-release-identity.mjs b/scripts/check-release-identity.mjs
new file mode 100644
index 00000000..b2d3bc8f
--- /dev/null
+++ b/scripts/check-release-identity.mjs
@@ -0,0 +1,243 @@
+#!/usr/bin/env node
+
+import fs from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const scriptRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
+const rootFlag = process.argv.indexOf('--root');
+const repoRoot = rootFlag === -1 ? scriptRoot : path.resolve(process.argv[rootFlag + 1] || '');
+const failures = [];
+
+function fail(message) {
+ failures.push(message);
+}
+
+function read(relativePath) {
+ try {
+ return fs.readFileSync(path.join(repoRoot, relativePath), 'utf8');
+ } catch {
+ fail(`${relativePath} is missing or unreadable.`);
+ return '';
+ }
+}
+
+function readJson(relativePath) {
+ const source = read(relativePath);
+ if (!source) return {};
+ try {
+ return JSON.parse(source);
+ } catch {
+ fail(`${relativePath} is not valid JSON.`);
+ return {};
+ }
+}
+
+function compareCore(left, right) {
+ for (let index = 0; index < 3; index += 1) {
+ if (left[index] !== right[index]) return left[index] - right[index];
+ }
+ return 0;
+}
+
+function shieldEscape(value) {
+ return value.replaceAll('_', '__').replaceAll('-', '--');
+}
+
+function versionLabels(source) {
+ return [...source.matchAll(/\bv(\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?)\b/g)]
+ .map((match) => match[1]);
+}
+
+function checkReadme(relativePath, source, version, language, isDevelopment) {
+ const badge = `/badge/version-${shieldEscape(version)}-`;
+ const markerLabel = language === 'zh'
+ ? isDevelopment ? '当前开发版本:' : '当前稳定版本:'
+ : isDevelopment ? 'Current development version:' : 'Current stable version:';
+ const identity = isDevelopment ? 'development' : 'stable';
+ const hasMarker = source.split('\n').some((line) => line.includes(markerLabel) && line.includes(`\`v${version}\``));
+ if (!source.includes(badge) || !hasMarker) {
+ fail(`${relativePath} must advertise ${identity} identity v${version} with an exact escaped badge and explicit ${identity} marker.`);
+ }
+}
+
+function checkDocument(relativePath, source, version, isDevelopment) {
+ const labels = versionLabels(source);
+ const identity = isDevelopment ? 'development' : 'stable';
+ const englishLabel = isDevelopment ? /development/i : /stable/i;
+ const chineseLabel = isDevelopment ? /开发版/ : /稳定版/;
+ if (labels.length === 0 || labels.some((label) => label !== version)
+ || !englishLabel.test(source) || !chineseLabel.test(source)) {
+ fail(`${relativePath} must advertise ${identity} identity v${version} in both languages without a conflicting version alias.`);
+ }
+}
+
+function checkRavenBoundary(relativePath, source, language) {
+ const installParent = String.raw`~\/\.raven\/workspace\/skills`;
+ const installedRoot = `${installParent}\/archify`;
+ const pathBoundary = String.raw`(?=$|[\s\x60'"<>,.;:,;。])`;
+ const hasEnglishManual = /manual ZIP/i.test(source);
+ const hasChineseManual = /(?:手动[^\n<]{0,40}ZIP|ZIP[^\n<]{0,40}手动)/i.test(source);
+ const hasRequiredCopy = language === 'both'
+ ? hasEnglishManual && hasChineseManual
+ : language === 'zh' ? hasChineseManual : hasEnglishManual;
+ const englishExtractsIntoParent = new RegExp(
+ String.raw`(?:extract|unpack)[^\n]{0,180}archify\.zip[^\n]{0,180}(?:into|to)\s*[\x60'"<]*${installParent}${pathBoundary}`,
+ 'i',
+ ).test(source);
+ const englishExplainsInstalledRoot = new RegExp(
+ String.raw`(?:yields?|creates?|produces?|results? in)[^\n]{0,120}${installedRoot}`,
+ 'i',
+ ).test(source);
+ const chineseExtractsIntoParent = new RegExp(
+ String.raw`archify\.zip[^\n]{0,100}解压(?:到|至)\s*[\x60'"<]*${installParent}${pathBoundary}`,
+ 'i',
+ ).test(source);
+ const chineseExplainsInstalledRoot = new RegExp(
+ String.raw`(?:得到|生成|产生|最终位于)[^\n]{0,120}${installedRoot}`,
+ 'i',
+ ).test(source);
+ const hasCorrectDestination = language === 'both'
+ ? englishExtractsIntoParent && englishExplainsInstalledRoot
+ && chineseExtractsIntoParent && chineseExplainsInstalledRoot
+ : language === 'zh'
+ ? chineseExtractsIntoParent && chineseExplainsInstalledRoot
+ : englishExtractsIntoParent && englishExplainsInstalledRoot;
+ const nestedDestination = new RegExp(
+ String.raw`(?:\b(?:extract|unpack)[^\n]{0,220}(?:into|to)|解压(?:到|至))\s*[\x60'"<]*${installedRoot}`,
+ 'i',
+ ).test(source);
+ const inventsSwitcher = /data-agent=["']raven["']/i.test(source)
+ || /--agent\s+raven\b/i.test(source)
+ || /[?&]agent=raven\b/i.test(source);
+ if (!/Raven/i.test(source) || !hasRequiredCopy || !hasCorrectDestination
+ || nestedDestination || inventsSwitcher) {
+ fail(`${relativePath}: Raven must remain a manual ZIP installation outside the agent switcher: extract archify.zip into ~/.raven/workspace/skills, yielding ~/.raven/workspace/skills/archify.`);
+ }
+}
+
+function checkIdentityTemplate(relativePath, source, isDevelopment) {
+ const hasHardcodedVersion = /\b\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?\b/.test(source);
+ const identity = isDevelopment ? 'development and 开发版' : 'stable and 稳定版';
+ const hasIdentity = isDevelopment
+ ? /development/i.test(source) && /开发版/.test(source)
+ : /stable/i.test(source) && /稳定版/.test(source);
+ if (!source.includes('[[ARCHIFY_VERSION]]') || !hasIdentity || hasHardcodedVersion) {
+ fail(`${relativePath} must use [[ARCHIFY_VERSION]] with ${identity} labels, never a hardcoded package version.`);
+ }
+}
+
+function checkRoadmap(relativePath, source, version, isDevelopment) {
+ const identity = isDevelopment ? 'development line' : 'stable version';
+ const marker = `The current ${identity} is \`v${version}\``;
+ if (!source.includes(marker)) {
+ fail(`${relativePath} must declare the current ${identity} as v${version}.`);
+ }
+}
+
+const packageJson = readJson('archify/package.json');
+const changelog = read('CHANGELOG.md');
+const unreleasedStart = changelog.search(/^## \[Unreleased\][^\n]*(?:\n|$)/m);
+const afterUnreleased = unreleasedStart === -1
+ ? ''
+ : changelog.slice(unreleasedStart).replace(/^## \[Unreleased\][^\n]*(?:\n|$)/, '');
+const nextRelease = afterUnreleased.search(/^## \[/m);
+const unreleased = nextRelease === -1 ? afterUnreleased : afterUnreleased.slice(0, nextRelease);
+const hasRealUnreleasedChanges = /^\s*-\s+\S/m.test(unreleased);
+const version = packageJson.version;
+const semver = /^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/.exec(version);
+const isDevelopment = Boolean(semver?.[4]);
+
+if (!semver) {
+ fail(`package version is not a supported SemVer identity: ${JSON.stringify(version)}`);
+} else if (hasRealUnreleasedChanges && !semver[4]) {
+ fail(`Unreleased changes require a prerelease package version; found stable ${version}.`);
+}
+
+if (semver && hasRealUnreleasedChanges) {
+ if (semver[4] && !/^dev\.\d+$/.test(semver[4])) {
+ fail(`Unreleased development identity must use a dev.N prerelease; found ${version}.`);
+ }
+ const published = [...changelog.matchAll(/^## \[(\d+)\.(\d+)\.(\d+)\]/gm)]
+ .map((match) => match.slice(1, 4).map(Number));
+ const newestPublished = published.sort((left, right) => compareCore(right, left))[0];
+ const currentCore = semver.slice(1, 4).map(Number);
+ if (newestPublished && compareCore(currentCore, newestPublished) <= 0) {
+ fail(`Unreleased package core ${currentCore.join('.')} must be newer than published ${newestPublished.join('.')}.`);
+ }
+}
+
+if (semver) {
+ const lock = readJson('archify/package-lock.json');
+ if (lock.version !== version || lock.packages?.['']?.version !== version) {
+ fail(`archify/package-lock.json must match ${version} at the root and packages[""].`);
+ }
+
+ const skill = read('archify/SKILL.md');
+ const skillVersion = skill.match(/^\s*version:\s*["']?([^"'\s]+)["']?\s*$/m)?.[1];
+ const expectedSkillVersion = `${semver[1]}.${semver[2]}`;
+ if (skillVersion !== expectedSkillVersion) {
+ fail(`archify/SKILL.md metadata version ${skillVersion || '(missing)'} must map to package ${version} as ${expectedSkillVersion}.`);
+ }
+
+ const rendererTemplate = read('archify/assets/template.html');
+ const generatorVersions = [...rendererTemplate.matchAll(/<meta\s+name="generator"\s+content="archify\s+([^"]+)"\s*\/?>/g)]
+ .map((match) => match[1]);
+ if (generatorVersions.length !== 1 || generatorVersions[0] !== version) {
+ fail(`archify/assets/template.html generator must be archify ${version}; found ${generatorVersions.join(', ') || '(missing)'}.`);
+ }
+
+ const english = read('README.md');
+ const englishMirror = read('README_EN.md');
+ const chinese = read('README_ZH.md');
+ checkReadme('README.md', english, version, 'en', isDevelopment);
+ checkReadme('README_EN.md', englishMirror, version, 'en', isDevelopment);
+ checkReadme('README_ZH.md', chinese, version, 'zh', isDevelopment);
+ checkRavenBoundary('README.md', english, 'en');
+ checkRavenBoundary('README_EN.md', englishMirror, 'en');
+ checkRavenBoundary('README_ZH.md', chinese, 'zh');
+ if (english !== englishMirror) fail('README_EN.md must remain byte-identical to README.md.');
+
+ const newestStableLabel = [...changelog.matchAll(/^## \[(\d+\.\d+\.\d+)\]/gm)][0]?.[1];
+ if (newestStableLabel && isDevelopment) {
+ const stableMinor = newestStableLabel.split('.').slice(0, 2).join('\\.');
+ if (new RegExp(`Archify ${stableMinor} includes\\b`).test(english)
+ || new RegExp(`Archify ${stableMinor} 已覆盖`).test(chinese)) {
+ fail(`README capability summary must describe v${version} as development, not published ${newestStableLabel}.`);
+ }
+ }
+
+ const landing = read('docs/index.html');
+ checkDocument('docs/index.html', landing, version, isDevelopment);
+ checkRavenBoundary('docs/index.html', landing, 'both');
+ const proofCounts = [...landing.matchAll(/\b\d+\/\d+\b/g)].map((match) => match[0]);
+ const staleProofCounts = [...new Set(proofCounts.filter((count) => count !== '9/9'))];
+ if (proofCounts.length === 0 || staleProofCounts.length > 0) {
+ const found = staleProofCounts.length > 0 ? `; found ${staleProofCounts.join(', ')}` : '';
+ fail(`docs/index.html proof receipt must say 9/9 everywhere; every N/N proof receipt must be exactly 9/9${found}.`);
+ }
+ const start = read('docs/start.html');
+ checkDocument('docs/start.html', start, version, isDevelopment);
+ checkRavenBoundary('docs/start.html', start, 'both');
+ checkRoadmap('ROADMAP.md', read('ROADMAP.md'), version, isDevelopment);
+
+ for (const templatePath of [
+ 'scripts/start-template.html',
+ 'scripts/guide-template.html',
+ 'scripts/gallery-template.html',
+ ]) {
+ checkIdentityTemplate(templatePath, read(templatePath), isDevelopment);
+ }
+
+ const changelogMarker = `Development identity: \`v${version}\``;
+ if (hasRealUnreleasedChanges && !unreleased.includes(changelogMarker)) {
+ fail(`CHANGELOG.md Unreleased must declare ${changelogMarker}.`);
+ }
+}
+
+if (failures.length > 0) {
+ for (const message of failures) console.error(`release identity: ${message}`);
+ process.exit(1);
+}
+
+console.log(`release identity ok: ${version}`);
diff --git a/scripts/gallery-template.html b/scripts/gallery-template.html
index a01410d3..7e992669 100644
--- a/scripts/gallery-template.html
+++ b/scripts/gallery-template.html
@@ -272,7 +272,7 @@
<div class="shell topbar-inner">
<a class="brand" href="index.html" aria-label="Back to Archify home">
<span class="brand-mark" aria-hidden="true"><span>A</span></span>
- <span class="brand-copy"><strong>Archify</strong><small>Proof Lab / [[ARCHIFY_VERSION]]</small></span>
+ <span class="brand-copy"><strong>Archify</strong><small data-en="Proof Lab / development / v[[ARCHIFY_VERSION]]" data-zh="验证作品集 / 开发版 / v[[ARCHIFY_VERSION]]">Proof Lab / development / v[[ARCHIFY_VERSION]]</small></span>
</a>
<div class="top-actions">
<a class="top-link" href="guide.html" data-en="Scenario guide" data-zh="场景指南">Scenario guide</a>
@@ -364,7 +364,7 @@ receipt [[CHECK_COUNT]] checks / [[ENTRY_COUNT]] artifacts / deterministic hashe
<footer>
<div class="shell footer-inner">
<span data-en="Generated from Archify's checked-in examples. No hand-authored capability claims." data-zh="由 Archify 仓库内示例自动生成,不手写可能过期的能力声明。">Generated from Archify's checked-in examples. No hand-authored capability claims.</span>
- <span>Archify [[ARCHIFY_VERSION]] · MIT</span>
+ <span data-en="Archify v[[ARCHIFY_VERSION]] · development · MIT" data-zh="Archify v[[ARCHIFY_VERSION]] · 开发版 · MIT">Archify v[[ARCHIFY_VERSION]] · development · MIT</span>
</div>
</footer>
diff --git a/scripts/guide-template.html b/scripts/guide-template.html
index 552efae3..5a92bb83 100644
--- a/scripts/guide-template.html
+++ b/scripts/guide-template.html
@@ -149,7 +149,7 @@
<header class="shell topbar">
<a class="brand" href="index.html" aria-label="Archify home">
<span class="brand-mark">◆</span>
- <span class="brand-copy"><strong>Archify</strong><small>Scenario guide / v[[ARCHIFY_VERSION]]</small></span>
+ <span class="brand-copy"><strong>Archify</strong><small data-i18n="versionLabel">Scenario guide / development / v[[ARCHIFY_VERSION]]</small></span>
</a>
<nav class="nav" aria-label="Main navigation">
<a href="gallery.html" data-i18n="navProof">Proof Lab</a>
@@ -210,12 +210,12 @@
var lastRecipe = null;
var copy = {
en: {
- navProof:'Proof Lab', eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',
+ navProof:'Proof Lab',versionLabel:'Scenario guide / development / v[[ARCHIFY_VERSION]]',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',
metricRecipes:'real-world<br>recipes',metricModes:'typed diagram<br>modes',metricRuntime:'runtime<br>dependencies',chooserTitle:'What must the diagram explain?',chooserBody:'Write a situation, not a diagram type. Specific system facts produce a stronger recommendation.',placeholder:'Example: Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.',recommend:'Recommend a recipe →',clear:'Clear',libraryEyebrow:'Recipe library',libraryTitle:'Eleven small, opinionated starting points.',libraryBody:'Each recipe answers one technical question. That boundary keeps the result legible, reviewable, and honest about missing evidence.',footerLeft:'Generated from the same recipe source as the Archify CLI.',all:'All recipes',recommended:'Recommended recipe',use:'Use when',avoid:'Avoid when',must:'Evidence to include',presentation:'Presentation',prompt:'Copy-ready prompt',copyPrompt:'Copy prompt',copied:'Copied',alternatives:'Other possible fits:',confidence:'confidence',open:'Open recipe',proofReady:'Verified proof',proofLink:'Open verified example ↗',
samples:[['API + cache miss','Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.'],['Kafka + DLQ','Map Kafka topics, ordered processors, consumer groups, replay, state stores, and the dead-letter queue.'],['Incident response','Show how responders detect, triage, mitigate, escalate, communicate, and verify recovery.']]
},
zh: {
- navProof:'验证作品集',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',
+ navProof:'验证作品集',versionLabel:'场景指南 / 开发版 / v[[ARCHIFY_VERSION]]',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',
metricRecipes:'个真实场景<br>配方',metricModes:'种类型化<br>图表模式',metricRuntime:'个运行时<br>依赖',chooserTitle:'这张图必须解释什么?',chooserBody:'写清场景,不要只写图表类型。系统事实越具体,推荐越可靠。',placeholder:'例如:展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。',recommend:'推荐配方 →',clear:'清空',libraryEyebrow:'配方库',libraryTitle:'十一个小而专的起点。',libraryBody:'每个配方只回答一个技术问题。清晰的边界让图更易读、可评审,也不会掩盖证据缺口。',footerLeft:'网页与 Archify CLI 使用同一份配方数据生成。',all:'全部配方',recommended:'推荐配方',use:'适合',avoid:'不要这样用',must:'必须包含的证据',presentation:'表现建议',prompt:'可直接复制的提示词',copyPrompt:'复制提示词',copied:'已复制',alternatives:'其他可能:',confidence:'置信度',open:'打开配方',proofReady:'已验证成品',proofLink:'打开验证成品 ↗',
samples:[['API + 缓存未命中','展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。'],['Kafka + 死信','梳理 Kafka Topic、有序处理器、消费者组、重放、状态存储和死信队列。'],['事故处置','展示响应者如何发现、分诊、缓解、升级、沟通并验证恢复。']]
}
diff --git a/scripts/package-smoke.mjs b/scripts/package-smoke.mjs
index fd73fbb1..c72af653 100644
--- a/scripts/package-smoke.mjs
+++ b/scripts/package-smoke.mjs
@@ -52,10 +52,24 @@ try {
requireAbsent('node_modules');
requireAbsent('package-lock.json');
requireAbsent(path.join('scripts', 'generate-validators.mjs'));
+ requireAbsent('test');
+ requireAbsent('.hive');
+ requireAbsent('.workbuddy');
const packageJson = JSON.parse(fs.readFileSync(path.join(skillRoot, 'package.json'), 'utf8'));
- if (packageJson.dependencies || packageJson.devDependencies) {
- throw new Error('packaged skill must not declare runtime or development dependencies');
+ const dependencyFields = [
+ 'dependencies',
+ 'devDependencies',
+ 'optionalDependencies',
+ 'peerDependencies',
+ 'bundledDependencies',
+ 'bundleDependencies',
+ ];
+ const declaredDependencyField = dependencyFields.find((field) => (
+ Object.prototype.hasOwnProperty.call(packageJson, field)
+ ));
+ if (declaredDependencyField) {
+ throw new Error(`packaged skill must not declare dependency metadata: ${declaredDependencyField}`);
}
const skill = fs.readFileSync(path.join(skillRoot, 'SKILL.md'), 'utf8');
diff --git a/scripts/start-template.html b/scripts/start-template.html
index 6b1306ee..9f329be9 100644
--- a/scripts/start-template.html
+++ b/scripts/start-template.html
@@ -234,7 +234,7 @@
<article class="panel">
<div class="panel-kicker"><b>01</b><span data-en="Install the skill" data-zh="安装 Skill">Install the skill</span></div>
<h2 data-en="Keep the tool local." data-zh="让工具留在本地。">Keep the tool local.</h2>
- <p class="panel-intro" data-en="Choose Cursor, Codex, Claude Code, or OpenCode. Every agent receives the same checked Skill and zero-dependency renderers—no vendor-specific fork." data-zh="选择 Cursor、Codex、Claude Code 或 OpenCode。每个 Agent 使用同一份经过检查的 Skill 与零依赖渲染器,不维护厂商专属分叉。">Choose Cursor, Codex, Claude Code, or OpenCode. Every agent receives the same checked Skill and zero-dependency renderers—no vendor-specific fork.</p>
+ <p class="panel-intro" data-en="Choose Cursor, Codex, Claude Code, or OpenCode. The switcher gives each one the same checked Skill and zero-dependency renderers—no vendor-specific fork." data-zh="选择 Cursor、Codex、Claude Code 或 OpenCode。切换器为每个 Agent 提供同一份经过检查的 Skill 与零依赖渲染器,不维护厂商专属分叉。">Choose Cursor, Codex, Claude Code, or OpenCode. The switcher gives each one the same checked Skill and zero-dependency renderers—no vendor-specific fork.</p>
<div class="agent-picker">
<p class="agent-picker-head"><span data-en="Choose your coding agent" data-zh="选择你的编码 Agent">Choose your coding agent</span><strong id="agent-state">Codex · same Skill</strong></p>
@@ -254,6 +254,7 @@
<div class="command-bar"><span data-en="This repository only" data-zh="仅安装到当前仓库">This repository only</span><button class="copy-button" type="button" data-copy-source="project-command" data-en="Copy" data-zh="复制">Copy</button></div>
<pre id="project-command">npx -y skills add tt-a1i/archify --skill archify --agent codex --copy --yes</pre>
</div>
+ <p class="secondary-note" data-en="Raven is supported through a manual ZIP installation, not a generated agent-switcher command. Extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify." data-zh="Raven 采用 ZIP 手动安装,不使用 Agent 切换器生成命令。将 archify.zip 解压到 ~/.raven/workspace/skills,解压后会得到 ~/.raven/workspace/skills/archify。">Raven is supported through a manual ZIP installation, not a generated agent-switcher command. Extract archify.zip into ~/.raven/workspace/skills, which yields ~/.raven/workspace/skills/archify.</p>
<p class="secondary-note" data-en="The Start link carries only your agent, language, diagram type, and a coarse source label. Journey events stay in this browser session and are never sent by Archify. No repository path, title, node, relationship, or source JSON is recorded." data-zh="Start 链接只携带 Agent、语言、图表类型和粗粒度来源标签。转化步骤只保存在当前浏览器会话中,Archify 不会发送这些数据,也不会记录仓库路径、标题、节点、关系或源 JSON。">The Start link carries only your agent, language, diagram type, and a coarse source label. Journey events stay in this browser session and are never sent by Archify. No repository path, title, node, relationship, or source JSON is recorded.</p>
</article>
@@ -274,7 +275,7 @@
</section>
<footer class="page-footer">
- <span>Archify v[[ARCHIFY_VERSION]] · self-contained HTML · typed JSON source</span>
+ <span data-en="Archify v[[ARCHIFY_VERSION]] · development · self-contained HTML · typed JSON source" data-zh="Archify v[[ARCHIFY_VERSION]] · 开发版 · 独立 HTML · 类型化 JSON 源">Archify v[[ARCHIFY_VERSION]] · development · self-contained HTML · typed JSON source</span>
<span id="copy-status" role="status" aria-live="polite"></span>
<a href="https://github.com/tt-a1i/archify" data-en="View source on GitHub ↗" data-zh="在 GitHub 查看源码 ↗">View source on GitHub ↗</a>
</footer>