Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
Merge dev and address PR 403 review
sunsunsun8c131042099a
diff --cc .github/workflows/ci.ymlindex 8942a7fe,2fb170b4..a04c80cf--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@@ -184,6 -158,44 +158,46 @@@ jobsExpand-Archive -Path archify.zip -DestinationPath $packageRoot- name: Validate packaged skill without installing dependenciesrun: node scripts/package-smoke.mjs+ - name: Install delivery-lock test dependencies+ if: runner.os != 'Linux'+ run: npm ci --ignore-scripts+ working-directory: archify+ - name: Verify delivery-lock ownership with real subprocesses+ if: runner.os != 'Linux'+ run: >-+ node --test+ --test-name-pattern="cli: portable delivery lock:"+ test/cli.test.mjs+ working-directory: archify+ - name: Verify macOS opener stays behind delivery-lock release+ if: runner.os == 'macOS'+ run: >-+ node --test+ --test-name-pattern="cli: lock release failure does not invoke the requested opener"+ test/cli.test.mjs+ working-directory: archify++ windows-test-portability:+ name: Windows test portability+ runs-on: windows-latest+ steps:+ - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0+ - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0+ with:+ node-version: 22+ - name: Install test dependencies+ run: npm ci --ignore-scripts+ working-directory: archify+ - name: Verify Windows-sensitive regression fixtures+ run: >-+ node --test- --test-name-pattern="Git checkout preserves|clean staging preserves index modes|workflow migration cleanup failure|preview runs from an installed skill"++ --test-name-pattern="Git checkout preserves|clean staging preserves index modes|workflow migration cleanup failure|preview runs from an installed skill|resolveWatchTarget|canonical watch target"+ archify/test/checkout-line-endings.test.mjs+ archify/test/clean-skill-staging.test.mjs+ archify/test/workflow-migration.test.mjs+ archify/test/cli.test.mjs++ archify/test/resolve-watch-target.test.mjs++ archify/test/preview.test.mjsdeploy-pages:if: github.event_name == 'push' && github.ref == 'refs/heads/main'diff --cc archify.zipindex 3f1a37c8,e8d5ae6c..5c538493Binary files differdiff --cc archify/bin/preview.mjsindex 8b36686d,16ed94ed..b4de7218--- a/archify/bin/preview.mjs+++ b/archify/bin/preview.mjs@@@ -21,27 -21,6 +21,15 @@@ function sha256(value)return createHash('sha256').update(value).digest('hex');}+// Resolve the directory we will watch to its real on-disk path. On Windows,- // `path.resolve` keeps 8.3 short names intact, but libuv rejects them with- // EINVAL when opening the directory handle. `realpathSync.native` follows- // junctions and expands short names to their NT form, which is what- // `fs.watch` (backed by `ReadDirectoryChangesW`) requires. The native- // variant is identical to `realpathSync` on POSIX, so this is safe on every- // platform the CLI ships to. If the directory is missing or unreadable we- // fall back to `path.resolve` so the polling timer (set up below) still- // detects changes — surfacing a thrown error here would prevent the preview- // from running at all on a read-only checkout.++// `path.resolve` keeps 8.3 short names intact, but libuv can abort when the++// watched short name and the long path reported by ReadDirectoryChangesW do++// not share the same prefix. The native realpath also resolves junctions, so++// fs.watch receives the same path form that the operating system reports.+export function resolveWatchTarget(targetPath) {- try {- return fs.realpathSync.native(targetPath);- } catch (error) {- if (error && (error.code === 'ENOENT' || error.code === 'EACCES' || error.code === 'EPERM')) {- return path.resolve(targetPath);- }- throw error;- }++ return fs.realpathSync.native(targetPath);+}+function sourceDigest(inputPath) {try {const bytes = fs.readFileSync(inputPath);@@@ -608,14 -587,9 +596,14 @@@ export async function startPreview(opti}if (options.watch !== false) {- const watchedDirectory = resolveWatchTarget(path.dirname(inputPath));- const inputBasename = path.basename(inputPath);try {- watcher = fs.watch(path.dirname(inputPath), (event, filename) => {- if (!filename || filename.toString() === path.basename(inputPath)) observeSource();++ const watchedDirectory = resolveWatchTarget(path.dirname(inputPath));++ const inputBasename = path.basename(inputPath);+ watcher = fs.watch(watchedDirectory, (event, filename) => {+ // On Windows the watcher hands us just the basename; on POSIX it can be+ // null. Accept either empty signals or a basename match so editors that+ // swap a file atomically (write to temp + rename) still trigger us.+ if (!filename || filename.toString() === inputBasename) observeSource();});watcher.on('error', () => {const failedWatcher = watcher;diff --cc archify/test/generate-viewer.test.mjsindex 6b74ac00,1de23f7e..59f3e87f--- a/archify/test/generate-viewer.test.mjs+++ b/archify/test/generate-viewer.test.mjs@@@ -21,7 -20,7 +21,7 @@@ const lensMarker = '/* ARCHIFY:SEMANTICconst routeMarker = '/* ARCHIFY:ROUTE_PROBE */';const focusMarker = '/* ARCHIFY:FOCUS */';const guidedMarker = '/* ARCHIFY:GUIDED_VIEWS */';--const fragments = { export: exportMarker, reader: marker, cleanup: cleanupMarker, chrome: chromeMarker, camera: cameraMarker, radar: radarMarker, motion: motionMarker, finder: finderMarker, intent: intentMarker, lens: lensMarker, route: routeMarker, guided: guidedMarker, focus: focusMarker };++const fragments = { tokens: tokensMarker, export: exportMarker, reader: marker, cleanup: cleanupMarker, chrome: chromeMarker, camera: cameraMarker, radar: radarMarker, motion: motionMarker, finder: finderMarker, intent: intentMarker, lens: lensMarker, route: routeMarker, guided: guidedMarker, focus: focusMarker };function fixture(t) {const root = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-viewer-build-'));@@@ -35,6 -34,6 +35,7 @@@return {root, output,shell: path.join(root, 'viewer/template.source.html'),++ tokens: path.join(root, 'viewer/tokens.css'),export: path.join(root, 'viewer/export.js'),reader: path.join(root, 'viewer/reader-layout.js'),cleanup: path.join(root, 'viewer/export-cleanup.js'),@@@ -70,8 -69,7 +71,7 @@@ test('the committed Viewer rebuilds dettest('editing any authoritative source requires explicit regeneration', (t) => {const f = fixture(t);- const tokens = path.join(path.dirname(f.shell), 'tokens.css');- for (const input of [f.shell, tokens, f.export, f.reader, f.cleanup, f.chrome, f.camera, f.radar, f.motion, f.finder, f.intent, f.lens, f.route, f.guided, f.focus]) {- for (const input of [f.shell, f.export, f.reader, f.cleanup, f.chrome, f.camera, f.radar, f.motion, f.finder, f.intent, f.lens, f.route, f.guided, f.focus]) {++ for (const input of [f.shell, f.tokens, f.export, f.reader, f.cleanup, f.chrome, f.camera, f.radar, f.motion, f.finder, f.intent, f.lens, f.route, f.guided, f.focus]) {const previous = fs.readFileSync(f.output);fs.appendFileSync(input, '\n/* source change */\n');const stale = f.run('--check');@@@ -120,9 -118,7 +120,9 @@@ for (const [fragment, slot] of Object.etest('assembly preserves literal replacement tokens, Unicode and source line endings', (t) => {const f = fixture(t);const reader = '// $& $\' $` $$ 中文 \u{1f5fa}\r\n(function () {})();\r\n';- fs.writeFileSync(f.shell, `<script>\r\n${focusMarker}${guidedMarker}${routeMarker}${lensMarker}${intentMarker}${finderMarker}${motionMarker}${radarMarker}${cameraMarker}${chromeMarker}${exportMarker}${marker}</script>\n`);+ const tokens = '/* === TOKENS === */\r\n:root { --x: 1; }\r\n';+ fs.writeFileSync(f.shell, `<style>${tokensMarker}</style><script>\r\n${focusMarker}${guidedMarker}${routeMarker}${lensMarker}${intentMarker}${finderMarker}${motionMarker}${radarMarker}${cameraMarker}${chromeMarker}${exportMarker}${marker}</script>\n`);- fs.writeFileSync(path.join(path.dirname(f.shell), 'tokens.css'), tokens);++ fs.writeFileSync(f.tokens, tokens);fs.writeFileSync(f.export, reader + cleanupMarker);fs.writeFileSync(f.cleanup, reader);fs.writeFileSync(f.chrome, reader);diff --cc archify/test/preview.test.mjsindex 6ffd8cde,6ffd8cde..d040dcd2--- a/archify/test/preview.test.mjs+++ b/archify/test/preview.test.mjs@@@ -528,3 -528,3 +528,71 @@@ test('preview: polling continues afterassert.equal(closeCount, 1, 'shutdown must not close the failed watcher again');await assert.rejects(fetch(preview.url));});++++test('preview: canonical watch target observes edits through a directory alias', { timeout: 30000 }, async (t) => {++ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-preview-watch-alias-'));++ t.after(() => fs.rmSync(tmp, { recursive: true, force: true }));++ const realDirectory = path.join(tmp, 'real input directory');++ const aliasDirectory = path.join(tmp, 'input-alias');++ fs.mkdirSync(realDirectory);++ fs.symlinkSync(realDirectory, aliasDirectory, process.platform === 'win32' ? 'junction' : 'dir');++ const realInput = path.join(realDirectory, 'diagram.architecture.json');++ const aliasedInput = path.join(aliasDirectory, 'diagram.architecture.json');++ const output = path.join(tmp, 'diagram.html');++ const source = JSON.parse(fs.readFileSync(path.join(skillRoot, 'examples/web-app.architecture.json'), 'utf8'));++ source.meta.title = 'Watched through alias';++ fs.writeFileSync(realInput, JSON.stringify(source));++++ const preview = await startPreview({++ type: 'architecture',++ input: aliasedInput,++ output,++ open: false,++ debounceMs: 20,++ pollMs: 60_000,++ });++ try {++ await waitForState(preview.url, (state) => state.status === 'verified' && state.revision === 1, 'aliased input did not verify');++ source.meta.title = 'Watcher observed canonical target';++ fs.writeFileSync(realInput, JSON.stringify(source));++ await waitForState(preview.url, (state) => state.status === 'verified' && state.revision === 2, 'watcher did not observe the edited canonical target');++ const artifact = await (await fetch(new URL('/artifact.html', preview.url))).text();++ assert.match(artifact, /Watcher observed canonical target/);++ } finally {++ await preview.stop();++ }++ await assert.rejects(fetch(preview.url));++});++++test('preview: native watch-target resolution failure closes startup resources', async (t) => {++ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-preview-watch-cleanup-'));++ t.after(() => fs.rmSync(tmp, { recursive: true, force: true }));++ const input = path.join(tmp, 'diagram.architecture.json');++ const output = path.join(tmp, 'diagram.html');++ fs.copyFileSync(path.join(skillRoot, 'examples/web-app.architecture.json'), input);++++ const createServer = http.createServer.bind(http);++ const realpathNative = fs.realpathSync.native.bind(fs.realpathSync);++ let server;++ t.mock.method(http, 'createServer', (...args) => {++ server = createServer(...args);++ return server;++ });++ t.mock.method(fs.realpathSync, 'native', (...args) => {++ if (server?.listening) {++ throw Object.assign(new Error('not a directory'), { code: 'ENOTDIR' });++ }++ return realpathNative(...args);++ });++++ await assert.rejects(++ startPreview({ type: 'architecture', input, output, open: false }),++ /Could not watch the input directory: not a directory/,++ );++ assert.equal(server?.listening, false, 'failed startup left the preview server listening');++ assert.deepEqual(++ fs.readdirSync(tmp).filter((name) => name.startsWith('.archify-preview-')),++ [],++ 'failed startup left its staging directory behind',++ );++});diff --cc archify/test/resolve-watch-target.test.mjsindex e8aa3b51,00000000..2616d40amode 100644,000000..100644--- a/archify/test/resolve-watch-target.test.mjs+++ b/archify/test/resolve-watch-target.test.mjs@@@ -1,58 -1,0 +1,44 @@@+import { test } from 'node:test';+import assert from 'node:assert/strict';+import fs from 'node:fs';+import os from 'node:os';+import path from 'node:path';- import { fileURLToPath } from 'node:url';++import { fileURLToPath, pathToFileURL } from 'node:url';++// Regression coverage for issue #310: on Windows, `fs.watch` crashes when the+// directory path still contains an 8.3 short name. `resolveWatchTarget` must+// call `fs.realpathSync.native` to expand short names and junctions before the- // directory handle is opened. The native variant is a no-op on POSIX, so the- // assertions below hold on every platform the CLI ships to.++// directory handle is opened. On POSIX the same call canonicalizes symlinks,++// so the assertions below hold on every platform the CLI ships to.++const here = path.dirname(fileURLToPath(import.meta.url));+const { resolveWatchTarget } = await import(- path.resolve(here, '..', 'bin', 'preview.mjs')++ pathToFileURL(path.resolve(here, '..', 'bin', 'preview.mjs')).href+);++test('resolveWatchTarget follows symlinks and junctions via realpathSync.native', (t) => {+ const root = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-watch-'));+ t.after(() => fs.rmSync(root, { recursive: true, force: true }));+ const real = path.join(root, 'real');+ fs.mkdirSync(real);- // Symlink works on POSIX; on Windows this is the same path realpath would- // resolve (no junction), but the test is exercising the function's contract.+ const alias = path.join(root, 'alias');- try {- fs.symlinkSync(real, alias, 'dir');- } catch (error) {- if (error && error.code === 'EPERM') {- // Windows without Developer Mode skips the symlink dance; the function- // must still return an absolute path that fs.watch accepts.- assert.equal(resolveWatchTarget(real), fs.realpathSync.native(real));- return;- }- throw error;- }++ fs.symlinkSync(real, alias, process.platform === 'win32' ? 'junction' : 'dir');+ const resolved = resolveWatchTarget(alias);+ // The resolved path must match what realpathSync.native produces so the+ // subsequent fs.watch sees the same handle Windows would hand it for the+ // underlying inode.+ assert.equal(resolved, fs.realpathSync.native(alias));+ assert.equal(resolved, fs.realpathSync.native(real));+});+- test('resolveWatchTarget falls back to path.resolve when the target is missing', () => {++test('resolveWatchTarget preserves native realpath failures for startup cleanup', () => {+ const ghost = path.join(os.tmpdir(), 'archify-ghost-' + Date.now(), 'missing');- const resolved = resolveWatchTarget(ghost);- // ENOENT must NOT bubble up — the polling timer covers the directory.- assert.equal(resolved, path.resolve(ghost));++ assert.throws(() => resolveWatchTarget(ghost), { code: 'ENOENT' });+});++test('resolveWatchTarget is exported as a pure function', () => {+ // The export is consumed by the watcher inside startPreview; the assertion+ // is here to catch accidental renaming that would silently regress #310.+ assert.equal(typeof resolveWatchTarget, 'function');+ assert.equal(resolveWatchTarget.length, 1);- });++});diff --cc scripts/generate-viewer.mjsindex 9e868001,7415279d..99026220--- a/scripts/generate-viewer.mjs+++ b/scripts/generate-viewer.mjs@@@ -6,39 -6,21 +6,38 @@@ import { fileURLToPath } from 'node:urlconst root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');const output = path.join(root, 'archify/assets/template.html');+// Each fragment maps a marker in `viewer/template.source.html` to a file in- // `viewer/`. `indent` re-prefixes every non-empty source line with N spaces so++// `viewer/`. The optional indent re-prefixes every non-empty source line so+// the inlined block sits inside the surrounding `<style>` / `<script>` tags at- // the same depth the marker occupies. JS fragments use 0 (the marker is at- // column 0 in `<script>` blocks already); the standalone CSS file is authored- // at column 0 and needs the same 4-space indent the original CSS had.++// the same depth the marker occupies. JS fragments need no indent because their++// markers are already at column 0; the standalone CSS file needs four spaces.const fragments = [- { marker: '/* ARCHIFY:TOKENS */', file: 'tokens.css', indent: 4 },- { marker: '/* ARCHIFY:EXPORT */', file: 'export.js', indent: 0 },- { marker: '/* ARCHIFY:READER_LAYOUT */', file: 'reader-layout.js', indent: 0 },- { marker: '/* ARCHIFY:CHROME_LAYOUT */', file: 'viewer-chrome-layout.js', indent: 0 },- { marker: '/* ARCHIFY:CAMERA */', file: 'viewer-camera.js', indent: 0 },- { marker: '/* ARCHIFY:RADAR */', file: 'semantic-radar.js', indent: 0 },- { marker: '/* ARCHIFY:MOTION_GOVERNOR */', file: 'motion-governor.js', indent: 0 },- { marker: '/* ARCHIFY:NODE_FINDER */', file: 'node-finder.js', indent: 0 },- { marker: '/* ARCHIFY:FOCUS */', file: 'focus.js', indent: 0 },- { marker: '/* ARCHIFY:INTENT_TRACE */', file: 'intent-trace.js', indent: 0 },- { marker: '/* ARCHIFY:SEMANTIC_LENS */', file: 'semantic-lens.js', indent: 0 },- { marker: '/* ARCHIFY:ROUTE_PROBE */', file: 'route-probe.js', indent: 0 },- { marker: '/* ARCHIFY:GUIDED_VIEWS */', file: 'guided-views.js', indent: 0 },- { marker: '/* ARCHIFY:EXPORT_CLEANUP */', file: 'export-cleanup.js', indent: 0 },++ ['/* ARCHIFY:TOKENS */', 'tokens.css', 4],+ ['/* ARCHIFY:EXPORT */', 'export.js'],+ ['/* ARCHIFY:READER_LAYOUT */', 'reader-layout.js'],+ ['/* ARCHIFY:CHROME_LAYOUT */', 'viewer-chrome-layout.js'],+ ['/* ARCHIFY:CAMERA */', 'viewer-camera.js'],+ ['/* ARCHIFY:RADAR */', 'semantic-radar.js'],+ ['/* ARCHIFY:MOTION_GOVERNOR */', 'motion-governor.js'],+ ['/* ARCHIFY:NODE_FINDER */', 'node-finder.js'],+ ['/* ARCHIFY:FOCUS */', 'focus.js'],+ ['/* ARCHIFY:INTENT_TRACE */', 'intent-trace.js'],+ ['/* ARCHIFY:SEMANTIC_LENS */', 'semantic-lens.js'],+ ['/* ARCHIFY:ROUTE_PROBE */', 'route-probe.js'],+ ['/* ARCHIFY:GUIDED_VIEWS */', 'guided-views.js'],+ ['/* ARCHIFY:EXPORT_CLEANUP */', 'export-cleanup.js'],];+const childMarker = '/* ARCHIFY:EXPORT_CLEANUP */';+const childOwner = 'export.js';++function reindent(source, spaces) {+ if (!spaces) return source;+ const pad = ' '.repeat(spaces);+ return source+ .split('\n')+ .map((line) => (line.length === 0 ? line : pad + line))+ .join('\n');+}try {const args = process.argv.slice(2);@@@ -46,27 -28,19 +45,26 @@@throw new Error('Usage: node scripts/generate-viewer.mjs [--check]');}let generated = fs.readFileSync(path.join(root, 'viewer/template.source.html'), 'utf8');- for (const fragment of fragments) {- const { marker, file, indent } = fragment;- for (const [marker, filename] of fragments) {- const source = fs.readFileSync(path.join(root, 'viewer', filename), 'utf8');++ for (const [marker, file, indent = 0] of fragments) {+ const source = fs.readFileSync(path.join(root, 'viewer', file), 'utf8');const parts = generated.split(marker);- if (parts.length !== 2) throw new Error(`Viewer source must contain exactly one ${filename} marker.`);+ if (parts.length !== 2) throw new Error(`Viewer source must contain exactly one ${file} marker.`);// Export owns the sole nested fragment; expand it before Cleanup.- const childMarker = filename === 'export.js' ? '/* ARCHIFY:EXPORT_CLEANUP */' : null;- if (!source.trim() || (childMarker && source.split(childMarker).length !== 2) ||- fragments.some(([slot]) => source.includes(slot) && slot !== childMarker)) {- throw new Error(`${filename} source is empty or contains an unresolved marker.`);+ const expectedChild = file === childOwner ? childMarker : null;+ if (!source.trim() || (expectedChild && source.split(expectedChild).length !== 2) ||- fragments.some(({ marker: slot }) => source.includes(slot) && slot !== expectedChild)) {++ fragments.some(([slot]) => source.includes(slot) && slot !== expectedChild)) {+ throw new Error(`${file} source is empty or contains an unresolved marker.`);}+ // For indented fragments the marker line in the template ends with `\n`;+ // `split` leaves that `\n` at the head of `parts[1]`. Strip it so the+ // reindented source's trailing newline is the only separator — without+ // this we'd emit a blank line between the fragment and the surrounding+ // CSS, and every byte after the seam would shift.+ let tail = parts[1];+ if (indent && tail.startsWith('\n')) tail = tail.slice(1);// Preserve classic-script scope, execution position and literal source bytes,// including characters with String.replace semantics.- generated = parts[0] + source + parts[1];+ generated = parts[0] + reindent(source, indent) + tail;}if (args[0] === '--check') {if (!fs.existsSync(output) || fs.readFileSync(output, 'utf8') !== generated) {diff --cc viewer/README.mdindex 002b9940,002b9940..c4687f5b--- a/viewer/README.md+++ b/viewer/README.md@@@ -9,15 -9,15 +9,18 @@@ and legend previews, `route-probe.js` f`guided-views.js` for authored chapters and Story playback,`focus.js` for semantic selection, relationships, reachability and shared flow tokens,`export.js` for export menus, serialization, images, cards, clipboard and WebM,--`export-cleanup.js` for its private SVG clone cleanup, and--`template.source.html` for the rest of the Viewer.++`export-cleanup.js` for its private SVG clone cleanup, `tokens.css` for the++main Viewer stylesheet, and `template.source.html` for the remaining shell.`archify/assets/template.html` is the committedgenerated artifact, consumed unchanged by all five renderers and the installedSkill. These maintainer sources live outside the packaged `archify/` directory.From `archify/`, run `npm run generate:viewer` after editing any source.`npm run check:viewer` verifies freshness without writing; `npm test` includes--that check. Assembly inserts each fragment verbatim at its fixed marker.++that check. Assembly inserts JavaScript fragments verbatim at fixed markers.++The CSS fragment is authored at column zero and reindented four spaces when it++is inserted into the shell's `<style>` block; this preserves the delivered++template bytes while keeping the standalone source easy to edit.Reader, Chrome Layout, Camera, Radar, Motion Governor, Finder, Intent Trace, Semantic Lens, Route Probe, Guided Views, Focus and Exportextractions preserve delivered HTML bytes. Export cleanup adds aprivate function and a call, changing script bytes but preserving cleanup orderdiff --cc viewer/tokens.cssindex 6e474f69,00000000..b8b05fb4mode 100644,000000..100644--- a/viewer/tokens.css+++ b/viewer/tokens.css@@@ -1,2958 -1,0 +1,2984 @@@+/* ==========================================================+ THEME VARIABLES — switch by toggling [data-theme] on <html>+ ========================================================== */+:root,+[data-theme="dark"] {+ --bg: #020617;+ --grid: #1e293b;+ --text: #ffffff;+ --text-muted: #94a3b8;+ --text-dim: #475569;+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */+ --text-faint: #7d8da1;++ --panel: rgba(15, 23, 42, 0.5);+ --panel-border: #1e293b;+ --lane-fill: rgba(15, 23, 42, 0.22);+ --lane-stroke: #334155;++ --arrow: #64748b;+ --arrow-emphasis: #34d399;++ /* Opaque mask color used behind semi-transparent component fills+ so the arrows drawn underneath are properly hidden. */+ --mask: #0f172a;++ --frontend-fill: rgba(8, 51, 68, 0.4);+ --frontend-stroke: #22d3ee;+ --backend-fill: rgba(6, 78, 59, 0.4);+ --backend-stroke: #34d399;+ --database-fill: rgba(76, 29, 149, 0.4);+ --database-stroke: #a78bfa;+ --cloud-fill: rgba(120, 53, 15, 0.3);+ --cloud-stroke: #fbbf24;+ --security-fill: rgba(136, 19, 55, 0.4);+ --security-stroke: #fb7185;+ --messagebus-fill: rgba(251, 146, 60, 0.3);+ --messagebus-stroke:#fb923c;+ --external-fill: rgba(30, 41, 59, 0.5);+ --external-stroke: #94a3b8;++ --toolbar-bg: rgba(15, 23, 42, 0.8);+ --toolbar-border: #334155;+ --toolbar-text: #e2e8f0;+ --toolbar-hover: rgba(15, 23, 42, 0.95);+ --toolbar-menu-bg: #0f172a;+}++[data-theme="light"] {+ --bg: #f8fafc;+ --grid: #e2e8f0;+ --text: #0f172a;+ --text-muted: #64748b;+ --text-dim: #94a3b8;+ --text-faint: #64748b;++ --panel: #ffffff;+ --panel-border: #e2e8f0;+ --lane-fill: rgba(248, 250, 252, 0.65);+ --lane-stroke: #cbd5e1;++ --arrow: #94a3b8;+ --arrow-emphasis: #059669;++ --mask: #ffffff;++ --frontend-fill: rgba(34, 211, 238, 0.15);+ --frontend-stroke: #0891b2;+ --backend-fill: rgba(52, 211, 153, 0.18);+ --backend-stroke: #059669;+ --database-fill: rgba(167, 139, 250, 0.2);+ --database-stroke: #7c3aed;+ --cloud-fill: rgba(251, 191, 36, 0.18);+ --cloud-stroke: #d97706;+ --security-fill: rgba(251, 113, 133, 0.15);+ --security-stroke: #e11d48;+ --messagebus-fill: rgba(251, 146, 60, 0.15);+ --messagebus-stroke:#ea580c;+ --external-fill: rgba(148, 163, 184, 0.18);+ --external-stroke: #64748b;++ --toolbar-bg: rgba(255, 255, 255, 0.92);+ --toolbar-border: #cbd5e1;+ --toolbar-text: #334155;+ --toolbar-hover: #ffffff;+ --toolbar-menu-bg: #ffffff;+}++/* ==========================================================+ SIGNAL FLOW — an opt-in, motion-forward visual preset.+ The variables also target a standalone exported SVG, whose+ root carries data-preset and data-theme directly.+ ========================================================== */+[data-preset="signal-flow"][data-theme="dark"] {+ --bg: #030711;+ --grid: #15233a;+ --panel: rgba(6, 14, 28, 0.78);+ --panel-border: #1d3350;+ --lane-fill: rgba(9, 22, 40, 0.5);+ --lane-stroke: #2c4564;+ --text: #f5fbff;+ --text-muted: #9eb0c7;+ --text-dim: #52667f;+ --text-faint: #7890ad;+ --mask: #07101e;+ --frontend-fill: rgba(6, 182, 212, 0.14);+ --frontend-stroke: #67e8f9;+ --backend-fill: rgba(16, 185, 129, 0.14);+ --backend-stroke: #5eead4;+ --database-fill: rgba(139, 92, 246, 0.16);+ --database-stroke: #c4b5fd;+ --cloud-fill: rgba(245, 158, 11, 0.13);+ --cloud-stroke: #fcd34d;+ --security-fill: rgba(244, 63, 94, 0.13);+ --security-stroke: #fda4af;+ --messagebus-fill: rgba(249, 115, 22, 0.13);+ --messagebus-stroke: #fdba74;+ --external-fill: rgba(71, 85, 105, 0.24);+ --external-stroke: #a5b4c7;+ --arrow: #7890ad;+ --arrow-emphasis: #2dd4bf;+ --toolbar-bg: rgba(7, 16, 30, 0.86);+ --toolbar-border: #29415f;+ --toolbar-menu-bg: #07101e;+}++[data-preset="signal-flow"][data-theme="light"] {+ --bg: #f4f9fc;+ --grid: #d4e5ee;+ --panel: rgba(255, 255, 255, 0.82);+ --panel-border: #bfd5e2;+ --lane-fill: rgba(232, 243, 248, 0.62);+ --lane-stroke: #a9c5d5;+ --text: #102638;+ --text-muted: #587287;+ --text-dim: #8aa2b4;+ --text-faint: #668397;+ --mask: #ffffff;+ --frontend-fill: rgba(6, 182, 212, 0.09);+ --frontend-stroke: #0789a1;+ --backend-fill: rgba(5, 150, 105, 0.09);+ --backend-stroke: #087f69;+ --database-fill: rgba(124, 58, 237, 0.09);+ --database-stroke: #7254c7;+ --cloud-fill: rgba(217, 119, 6, 0.08);+ --cloud-stroke: #b9670b;+ --security-fill: rgba(225, 29, 72, 0.08);+ --security-stroke: #c53a59;+ --messagebus-fill: rgba(234, 88, 12, 0.08);+ --messagebus-stroke: #c65f27;+ --external-fill: rgba(100, 116, 139, 0.1);+ --external-stroke: #607a8c;+ --arrow: #7b97aa;+ --arrow-emphasis: #0d9488;+}++/* ==========================================================+ BLUEPRINT — a review-first drafting preset for deployment,+ infrastructure, and technical design documentation. It keeps+ the same semantic palette and geometry while trading glow for+ precise grid contrast, squared materials, and drafting marks.+ ========================================================== */+[data-preset="blueprint"][data-theme="dark"] {+ --bg: #06131f;+ --grid: #17425a;+ --panel: rgba(7, 27, 43, 0.9);+ --panel-border: #27627f;+ --lane-fill: rgba(10, 43, 66, 0.36);+ --lane-stroke: #34799a;+ --text: #e3f6ff;+ --text-muted: #91b8ca;+ --text-dim: #557e92;+ --text-faint: #739caf;+ --mask: #0a2031;+ --frontend-fill: rgba(26, 157, 193, 0.14);+ --frontend-stroke: #66d9ef;+ --backend-fill: rgba(31, 155, 124, 0.13);+ --backend-stroke: #69dfbd;+ --database-fill: rgba(120, 105, 196, 0.14);+ --database-stroke: #b4a8ff;+ --cloud-fill: rgba(197, 145, 43, 0.13);+ --cloud-stroke: #ffd166;+ --security-fill: rgba(199, 76, 104, 0.13);+ --security-stroke: #ff8da1;+ --messagebus-fill: rgba(207, 112, 49, 0.13);+ --messagebus-stroke: #ffad66;+ --external-fill: rgba(84, 119, 139, 0.18);+ --external-stroke: #a7cad9;+ --arrow: #78a3b7;+ --arrow-emphasis: #64dfc1;+ --toolbar-bg: rgba(7, 28, 45, 0.92);+ --toolbar-border: #34799a;+ --toolbar-text: #d8f3ff;+ --toolbar-hover: rgba(18, 58, 83, 0.95);+ --toolbar-menu-bg: #0a2031;+}++[data-preset="blueprint"][data-theme="light"] {+ --bg: #edf7fa;+ --grid: #b5d5e1;+ --panel: rgba(249, 253, 255, 0.94);+ --panel-border: #78aabd;+ --lane-fill: rgba(210, 232, 240, 0.42);+ --lane-stroke: #83b2c4;+ --text: #123344;+ --text-muted: #4e7486;+ --text-dim: #86a6b4;+ --text-faint: #668c9d;+ --mask: #f9fdff;+ --frontend-fill: rgba(8, 145, 178, 0.08);+ --frontend-stroke: #087f9c;+ --backend-fill: rgba(5, 128, 101, 0.08);+ --backend-stroke: #08755f;+ --database-fill: rgba(100, 75, 180, 0.08);+ --database-stroke: #6757a8;+ --cloud-fill: rgba(181, 120, 15, 0.08);+ --cloud-stroke: #a86609;+ --security-fill: rgba(190, 48, 80, 0.07);+ --security-stroke: #b32f50;+ --messagebus-fill: rgba(196, 81, 22, 0.07);+ --messagebus-stroke: #b65120;+ --external-fill: rgba(79, 112, 128, 0.08);+ --external-stroke: #506f7e;+ --arrow: #6d93a5;+ --arrow-emphasis: #087f69;+ --toolbar-bg: rgba(247, 252, 254, 0.94);+ --toolbar-border: #8ab5c5;+ --toolbar-text: #294f61;+ --toolbar-hover: #ffffff;+ --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 {+ 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;+ background: var(--bg);+ min-height: 100vh;+ padding: 2rem;+ color: var(--text);+ transition: background 0.2s ease, color 0.2s ease;+}++html[data-preset="signal-flow"] body {+ background-image:+ radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),+ radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);+ background-attachment: fixed;+}+html[data-preset="signal-flow"][data-theme="light"] body {+ background-image:+ radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),+ radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);+}+html[data-preset="blueprint"] body {+ background-image:+ linear-gradient(var(--grid) 1px, transparent 1px),+ linear-gradient(90deg, var(--grid) 1px, transparent 1px);+ background-size: 32px 32px;+ 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. */+html[data-embed="true"] body {+ min-height: 0;+ padding: 0;+ overflow: hidden;+ background: var(--bg);+ background-image: none;+}+html[data-embed="true"] .toolbar,+html[data-embed="true"] .header,+html[data-embed="true"] .cards,+html[data-embed="true"] .diagram-nav,+html[data-embed="true"] .overview-map,+html[data-embed="true"] .focus-chip,+html[data-embed="true"] .route-probe,+html[data-embed="true"] .semantic-lens,+html[data-embed="true"] .diagram-guide,+html[data-embed="true"] .node-finder,+html[data-embed="true"] .guided-views { display: none !important; }+html[data-embed="true"] .container { max-width: none; }+html[data-embed="true"] .diagram-container {+ padding: 0.5rem;+ border: 0;+ border-radius: 0;+ box-shadow: none;+}+html[data-embed="true"] .diagram-container svg { min-width: 0; }++/* Share Chapter Cue lives in the HTML viewer layer, not inside the SVG.+ It gives one-shot embeds a title, authored note, truthful stop order,+ and lifecycle state while canonical diagram geometry stays untouched. */+.share-chapter-cue { display: none; }+html[data-embed="true"][data-share-playback="true"] .share-chapter-cue:not([hidden]),+html[data-embed="true"][data-share-moment="true"] .share-chapter-cue:not([hidden]) {+ position: absolute;+ z-index: 18;+ top: 0.85rem;+ left: 50%;+ display: grid;+ grid-template-columns: auto minmax(9rem, 13.5rem) minmax(0, 1fr);+ align-items: center;+ gap: 0.45rem 0.85rem;+ width: min(52rem, calc(100% - 1.5rem));+ min-height: 3.35rem;+ padding: 0.55rem 0.75rem 0.65rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));+ border-radius: 0.75rem;+ background:+ linear-gradient(115deg, color-mix(in srgb, var(--frontend-fill) 52%, transparent), transparent 45%),+ color-mix(in srgb, var(--toolbar-menu-bg) 92%, transparent);+ color: var(--toolbar-text);+ box-shadow: 0 14px 42px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.045);+ backdrop-filter: blur(16px);+ pointer-events: none;+ animation: archify-share-cue-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;+}+html[data-preset="blueprint"] .share-chapter-cue {+ border-radius: 0.2rem;+ background:+ linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 46%, transparent), transparent 36%),+ var(--toolbar-menu-bg);+ 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;+ min-width: 5rem;+ padding-right: 0.75rem;+ border-right: 1px solid var(--toolbar-border);+}+.share-chapter-state {+ display: inline-flex;+ align-items: center;+ gap: 0.36rem;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.14em;+ text-transform: uppercase;+}+.share-chapter-state::before {+ width: 0.38rem;+ height: 0.38rem;+ border-radius: 50%;+ background: currentColor;+ box-shadow: 0 0 10px currentColor;+ content: '';+}+.share-chapter-cue[data-state="playing"] .share-chapter-state::before {+ animation: archify-share-cue-pulse 1.15s ease-in-out infinite;+}+.share-chapter-count {+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 700;+ letter-spacing: 0.08em;+ text-transform: uppercase;+}+.share-chapter-copy { min-width: 0; }+.share-chapter-copy strong,+.share-chapter-copy small,+.share-chapter-route {+ display: block;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.share-chapter-copy strong {+ color: var(--toolbar-text);+ font-size: 0.6875rem;+ line-height: 1.35;+}+.share-chapter-copy small {+ margin-top: 0.08rem;+ color: var(--text-muted);+ font-size: 0.5rem;+ line-height: 1.35;+}+.share-chapter-route {+ color: color-mix(in srgb, var(--frontend-stroke) 76%, var(--text-muted));+ font-size: 0.5625rem;+ font-weight: 650;+ letter-spacing: 0.015em;+ text-align: right;+}+.share-chapter-progress {+ position: absolute;+ right: 0;+ bottom: 0;+ left: 0;+ height: 2px;+ overflow: hidden;+ background: color-mix(in srgb, var(--toolbar-border) 72%, transparent);+}+.share-chapter-progress span {+ display: block;+ width: 100%;+ height: 100%;+ background: linear-gradient(90deg, var(--frontend-stroke), var(--database-stroke));+ box-shadow: 0 0 12px var(--frontend-stroke);+ transform: scaleX(0);+ transform-origin: left center;+}++/* Presentation Stage is a viewer-only layer: it gives the live diagram+ the viewport while keeping guided views, theme, focus, and exports real.+ Embed mode wins when both query parameters are present. */+html[data-present="true"]:not([data-embed="true"]) body {+ height: 100dvh;+ min-height: 0;+ padding: 1rem;+ overflow: hidden;+}+html[data-present="true"]:not([data-embed="true"]) .container {+ display: flex;+ flex-direction: column;+ gap: 0.75rem;+ width: 100%;+ max-width: none;+ height: calc(100dvh - 2rem);+}+html[data-present="true"]:not([data-embed="true"]) .header {+ flex: none;+ min-width: 0;+ margin: 0;+ padding-right: 23rem;+}+html[data-present="true"]:not([data-embed="true"]) .header-row { margin-bottom: 0.25rem; }+html[data-present="true"]:not([data-embed="true"]) .subtitle {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+html[data-present="true"]:not([data-embed="true"]) .guided-views {+ flex: none;+ margin-bottom: 0;+}+html[data-present="true"]:not([data-embed="true"]) .diagram-container {+ display: flex;+ flex: 1 1 auto;+ align-items: center;+ justify-content: center;+ min-height: 0;+ padding: 0.75rem;+ padding-bottom: calc(0.75rem + var(--archify-nav-reserve));+}+html[data-present="true"]:not([data-embed="true"]) .diagram-container > svg {+ flex: 1 1 auto;+ height: 100%;+ min-height: 0;+ width: 100%;+ min-width: 0;+}+html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }+html[data-present="true"]:not([data-embed="true"]) #btn-present {+ border-color: var(--frontend-stroke);+ color: var(--frontend-stroke);+}+- /* The reader owns only the outer scale. Wide diagrams keep one authored++/* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored+ SVG/viewBox while the runtime chooses a desktop width from the actual+ vertical budget. This avoids device-specific files and breakpoint+ jumps between a laptop and a tall monitor. */+.container {+ width: 100%;+ max-width: var(--archify-reader-width, 1440px);+ margin: 0 auto;+}+@media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+}++.header { margin-bottom: 1.5rem; padding-right: 29.5rem; }++html[data-preset="signal-flow"] .header,+html[data-preset="blueprint"] .header,+html[data-preset="editorial"] .header { padding-right: 29.5rem; }++.header-row {+ display: flex;+ align-items: center;+ gap: 1rem;+ margin-bottom: 0.5rem;+}++.pulse-dot {+ width: 12px;+ height: 12px;+ background: var(--frontend-stroke);+ border-radius: 50%;+ animation: none;+}++html[data-motion-capable="true"] .pulse-dot { animation: pulse 2s infinite; }++@keyframes pulse {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0.5; }+}++h1 {+ font-size: 1.5rem;+ font-weight: 700;+ letter-spacing: -0.025em;+}++.subtitle {+ color: var(--text-muted);+ font-size: 0.875rem;+ margin-left: 1.75rem;+}++html[data-preset="signal-flow"] .header-row::after {+ content: attr(data-preset-badge-signal-flow);+ margin-left: auto;+ color: var(--frontend-stroke);+ border: 1px solid var(--frontend-stroke);+ border-radius: 999px;+ padding: 0.28rem 0.6rem;+ font-size: 0.625rem;+ letter-spacing: 0.12em;+ opacity: 0.82;+ box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);+ white-space: nowrap;+}++html[data-preset="blueprint"] .pulse-dot {+ width: 10px;+ height: 10px;+ border: 1px solid var(--frontend-stroke);+ border-radius: 1px;+ background: transparent;+ box-shadow: inset 0 0 0 2px var(--bg);+ transform: rotate(45deg);+ animation: none;+}+html[data-preset="blueprint"] .header-row::after {+ content: attr(data-preset-badge-blueprint);+ margin-left: auto;+ padding: 0.28rem 0.55rem;+ border-top: 1px solid var(--frontend-stroke);+ border-bottom: 1px solid var(--frontend-stroke);+ color: var(--frontend-stroke);+ font-size: 0.5625rem;+ font-weight: 700;+ letter-spacing: 0.14em;+ 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: attr(data-preset-badge-editorial);+ 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 {+ --archify-nav-reserve: 0px;+ background: var(--panel);+ border-radius: 1rem;+ border: 1px solid var(--panel-border);+ padding: 1.5rem;+ padding-bottom: calc(1.5rem + var(--archify-nav-reserve));+ overflow: hidden;+ position: relative;+}++html[data-preset="signal-flow"] .diagram-container {+ position: relative;+ overflow: hidden;+ background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);+}+html[data-preset="signal-flow"][data-theme="light"] .diagram-container {+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);+}+html[data-preset="blueprint"] .diagram-container {+ border-color: var(--panel-border);+ border-radius: 0.35rem;+ background: var(--panel);+ box-shadow:+ inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),+ 0 18px 48px rgba(0, 0, 0, 0.16);+}+html[data-preset="blueprint"] .diagram-container::after {+ content: "";+ position: absolute;+ z-index: 10;+ inset: 0.7rem;+ pointer-events: none;+ background:+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,+ 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: attr(data-preset-badge-editorial-plate);+ 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;+ inset: 0;+ pointer-events: none;+ background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);+ transform: translateX(-70%);+ animation: archify-signal-scan 4.8s ease-in-out 1 both;+}++/* Motion Governor gives the reader a real static state and gives the+ strongest semantic action the only motion budget. Atmosphere resets to+ its authored base instead of freezing mid-cycle. Static artifacts never+ start a decorative pulse or scan. */+html:not([data-motion-capable="true"]) svg[data-animation="trace"] [data-animate] {+ animation: none !important;+}+html[data-motion="still"] .pulse-dot,+html[data-motion="still"] .diagram-container::before,+html[data-motion="still"] svg[data-animation="trace"] [data-animate],+html[data-motion-owner] .pulse-dot,+html[data-motion-owner] .diagram-container::before,+html[data-motion-owner] svg[data-animation="trace"] [data-animate],+html[data-embed="true"] .pulse-dot,+html[data-embed="true"] .diagram-container::before,+html[data-share-playback="true"] .pulse-dot,+html[data-share-playback="true"] .diagram-container::before,+html[data-document-hidden="true"] .pulse-dot,+html[data-document-hidden="true"] .diagram-container::before,+html[data-document-hidden="true"] svg[data-animation="trace"] [data-animate] {+ animation: none !important;+}+html[data-motion="still"] .diagram-container::before,+html[data-motion-owner] .diagram-container::before,+html[data-embed="true"] .diagram-container::before,+html[data-share-playback="true"] .diagram-container::before {+ opacity: 0;+}+html[data-motion="still"] .guided-view-progress span,+html[data-motion="still"] .guided-story-caption,+html[data-motion="still"] .story-trail-flow,+html[data-motion="still"] .intent-trace-flow,+html[data-motion="still"] .route-probe-flow,+html[data-motion="still"] .route-journey-flow,+html[data-motion="still"] .semantic-lens-flow,+html[data-motion="still"] .diagram-guide,+html[data-motion="still"] [data-story-step],+html[data-motion="still"] .overview-map-live,+html[data-motion="still"] .guided-view-stop,+html[data-motion="still"] .share-chapter-cue,+html[data-motion="still"] .share-chapter-state::before,+html[data-motion="still"] .share-chapter-progress span,+html[data-document-hidden="true"] .guided-view-progress span,+html[data-document-hidden="true"] .story-trail-flow,+html[data-document-hidden="true"] .intent-trace-flow,+html[data-document-hidden="true"] .route-probe-flow,+html[data-document-hidden="true"] .route-journey-flow,+html[data-document-hidden="true"] .semantic-lens-flow,+html[data-document-hidden="true"] .diagram-guide,+html[data-document-hidden="true"] [data-story-step],+html[data-document-hidden="true"] .overview-map-live,+html[data-document-hidden="true"] .guided-view-stop,+html[data-document-hidden="true"] .share-chapter-cue,+html[data-document-hidden="true"] .share-chapter-state::before,+html[data-document-hidden="true"] .share-chapter-progress span {+ animation: none !important;+}+html[data-motion="still"] .guided-view-progress span {+ transform: scaleX(1) !important;+}+html[data-motion="still"] svg[data-story-playing="true"] .story-trail-flow {+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.55;+}+html[data-motion="still"] .intent-trace-flow,+html[data-motion="still"] .route-probe-flow {+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.72;+}+html[data-motion="still"] .route-journey-overlay,+html[data-document-hidden="true"] .route-journey-overlay { display: none !important; }+html[data-motion="still"] .relationship-pulse-overlay,+html[data-motion="still"] .story-carrier-overlay,+html[data-document-hidden="true"] .story-carrier-overlay { display: none !important; }+html[data-motion="still"] .chapter-handoff-overlay { display: none !important; }+html[data-motion="still"] .chapter-handoff-anchor { animation: none !important; }+html[data-motion="still"] .guided-view-chapter,+html[data-motion="still"] svg [data-node-id],+html[data-motion="still"] svg [data-edge-from],+html[data-motion="still"] svg [data-detail],+html[data-motion="still"] svg [data-detail-anchor],+html[data-motion="still"] svg [data-legend-hit],+html[data-motion="still"] svg {+ transition: none !important;+}++svg {+ width: 100%;+ min-width: min(900px, 100%);+ display: block;+ transform-origin: 0 0;+ transition: transform 0.18s ease;+}++.diagram-container.is-camera-moving svg {+ transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);+}+.diagram-container.is-camera-transaction svg { transition: none; }+.diagram-container.is-pannable { cursor: grab; }+.diagram-container.is-panning { cursor: grabbing; user-select: none; }+.diagram-container.is-panning svg { transition: none; }++.diagram-nav {+ position: absolute;+ right: 1rem;+ bottom: 1rem;+ z-index: 12;+ display: inline-flex;+ align-items: center;+ max-width: calc(100% - 2rem);+ padding: 0.15rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 48%, transparent);+ border-radius: 0.58rem;+ background: color-mix(in srgb, var(--toolbar-bg) 82%, transparent);+ box-shadow: 0 5px 14px rgba(0, 0, 0, 0.07);+ backdrop-filter: blur(10px);+ scrollbar-width: none;+}+.diagram-nav::-webkit-scrollbar { display: none; }+.diagram-nav button,+.focus-chip button,+.guided-views button {+ border: 0;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ cursor: pointer;+}+.diagram-nav button {+ min-width: 2rem;+ height: 2rem;+ padding: 0 0.35rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.56rem;+ font-weight: 600;+ letter-spacing: 0.02em;+ transition: background 0.15s, color 0.15s;+}+.diagram-nav button:hover,+.diagram-nav button:focus-visible,+.focus-chip button:hover,+.focus-chip button:focus-visible,+.guided-views button:hover,+.guided-views button:focus-visible { background: var(--toolbar-hover); }+.diagram-nav button:focus-visible,+.focus-chip button:focus-visible,+.guided-views button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+}+.diagram-nav button:disabled { opacity: 0.38; cursor: default; }+.diagram-nav button:disabled:hover { background: transparent; }+.diagram-nav #btn-route-probe,+.diagram-nav #btn-overview-map,+.diagram-nav #btn-semantic-lens {+ min-width: auto;+ padding-inline: 0.5rem;+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+}+.diagram-nav #btn-node-finder,+.diagram-nav [data-view="out"] {+ position: relative;+ margin-left: 0.25rem;+}+.diagram-nav #btn-node-finder::before,+.diagram-nav [data-view="out"]::before {+ position: absolute;+ top: 0.4rem;+ bottom: 0.4rem;+ left: -0.13rem;+ width: 1px;+ background: color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ content: "";+ pointer-events: none;+}+.diagram-nav-icon {+ display: block;+ width: 0.72rem;+ height: 0.72rem;+ margin: auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+}+.diagram-nav-icon.find {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='4.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m12 12 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='4.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m12 12 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+}+.diagram-nav-icon.guide {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.8 7.3a2.4 2.4 0 014.6.9c0 1.8-2.4 2-2.4 3.7M10 14.9h.01' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.8 7.3a2.4 2.4 0 014.6.9c0 1.8-2.4 2-2.4 3.7M10 14.9h.01' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+}+.diagram-nav-icon.minus {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+}+.diagram-nav-icon.plus {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+}+.diagram-nav [data-view="reset"] {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.2rem;+ min-width: 3.1rem;+ padding-inline: 0.35rem;+}+.diagram-nav [data-view="reset"][data-detail-visible] {+ min-width: 3.8rem;+}+.diagram-nav-detail {+ color: color-mix(in srgb, var(--toolbar-text) 52%, transparent);+ font-size: 0.44rem;+ font-weight: 700;+ line-height: 1;+ letter-spacing: 0.07em;+}+.diagram-nav-percent {+ color: color-mix(in srgb, var(--toolbar-text) 84%, transparent);+ font-size: 0.55rem;+ font-weight: 650;+ line-height: 1;+}+.diagram-container[data-camera-indicator="true"] .diagram-nav-detail,+.diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }+.diagram-nav #btn-diagram-guide[aria-expanded="true"] {+ color: var(--cloud-stroke);+ background: var(--toolbar-hover);+}++/* Semantic Radar is a deliberately simplified, viewer-only overview. It+ uses authored node bounds and the live camera viewport rather than+ cloning the canonical SVG, so IDs, filters, animation, and export state+ stay singular and deterministic. */+.overview-map {+ position: absolute;+ right: 1rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));+ z-index: 12;+ width: 11.25rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ border-radius: 0.78rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.625rem;+}+.overview-map[hidden] { display: none; }+.overview-map[data-docked="true"] {+ position: fixed;+ right: var(--archify-radar-right, 1rem);+ top: var(--archify-radar-top, 1rem);+ bottom: auto;+}+.overview-map[data-docked="true"][data-dock-side="left"] {+ right: auto;+ left: var(--archify-radar-left, 1rem);+}+html[data-preset="blueprint"] .overview-map { border-radius: 0.28rem; }+.overview-map-head {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.45rem;+ min-height: 2.25rem;+ padding: 0.42rem 0.48rem 0.38rem 0.55rem;+ border-bottom: 1px solid var(--toolbar-border);+ background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);+ cursor: grab;+ touch-action: none;+ user-select: none;+}+.overview-map[data-panel-dragging="true"] .overview-map-head { cursor: grabbing; }+.overview-map[data-placement-invalid="true"] {+ border-color: var(--security-stroke);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--security-stroke) 34%, transparent), 0 16px 42px rgba(0, 0, 0, 0.3);+}+.overview-map[data-compact="true"] {+ width: 7.4rem;+}+.overview-map[data-compact="true"] .overview-map-head {+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.24rem;+ min-height: 1.5rem;+ padding: 0.05rem 0.16rem 0.05rem 0.32rem;+ border-bottom: 0;+}+.overview-map[data-compact="true"] .overview-map-live,+.overview-map[data-compact="true"] .overview-map-copy,+.overview-map[data-compact="true"] .overview-map-surface,+.overview-map[data-compact="true"] .overview-map-hint {+ display: none;+}+.overview-map[data-compact="true"] .overview-map-expand { display: inline-flex; }+.overview-map[data-compact="true"] .overview-map-close {+ width: 1.15rem;+ height: 1.15rem;+ font-size: 0.72rem;+}+.overview-map-live {+ width: 0.42rem;+ height: 0.42rem;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);+ animation: archify-radar-live 2.4s ease-out infinite;+}+.overview-map-copy { min-width: 0; line-height: 1.1; }+.overview-map-copy strong {+ display: block;+ overflow: hidden;+ color: var(--frontend-stroke);+ font-size: 0.59rem;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ white-space: nowrap;+ text-overflow: ellipsis;+}+.overview-map-copy small {+ display: block;+ margin-top: 0.18rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.52rem;+ letter-spacing: 0.04em;+ white-space: nowrap;+ text-overflow: ellipsis;+}+.overview-map-expand {+ display: none;+ align-items: center;+ justify-content: center;+ min-width: 0;+ height: 1.2rem;+ padding: 0 0.34rem;+ overflow: hidden;+ border: 0;+ border-radius: 0.3rem;+ background: transparent;+ color: var(--frontend-stroke);+ font: inherit;+ font-size: 0.49rem;+ font-weight: 700;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ white-space: nowrap;+ cursor: pointer;+}+.overview-map-close {+ width: 1.55rem;+ height: 1.55rem;+ padding: 0;+ border: 0;+ border-radius: 0.34rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 0.9rem;+ cursor: pointer;+}+.overview-map-expand:hover,+.overview-map-expand:focus-visible,+.overview-map-close:hover,+.overview-map-close:focus-visible { background: var(--toolbar-hover); }+.overview-map-expand:focus-visible,+.overview-map-close:focus-visible,+.overview-map-surface:focus-visible,+.overview-map-node:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+}+.overview-map-surface {+ position: relative;+ height: 7rem;+ margin: 0.42rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);+ border-radius: 0.42rem;+ background:+ linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),+ linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),+ color-mix(in srgb, var(--bg) 86%, transparent);+ background-size: 12px 12px;+ cursor: crosshair;+ touch-action: none;+}+html[data-preset="blueprint"] .overview-map-surface { border-radius: 0.1rem; }+.overview-map-surface > svg {+ width: 100%;+ height: 100%;+ min-width: 0;+ transform: none !important;+ transition: none !important;+ display: block;+ overflow: visible;+}+.overview-map-node {+ fill: var(--backend-stroke);+ fill-opacity: 0.52;+ stroke: var(--backend-stroke);+ stroke-opacity: 0.86;+ vector-effect: non-scaling-stroke;+ cursor: pointer;+ transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;+}+.overview-map-node[data-kind="frontend"],+.overview-map-node[data-kind="start"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }+.overview-map-node[data-kind="database"],+.overview-map-node[data-kind="success"] { fill: var(--database-stroke); stroke: var(--database-stroke); }+.overview-map-node[data-kind="cloud"],+.overview-map-node[data-kind="waiting"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }+.overview-map-node[data-kind="messagebus"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }+.overview-map-node[data-kind="security"],+.overview-map-node[data-kind="decision"],+.overview-map-node[data-kind="failure"] { fill: var(--security-stroke); stroke: var(--security-stroke); }+.overview-map-node[data-kind="external"],+.overview-map-node[data-kind="neutral"] { fill: var(--external-stroke); stroke: var(--external-stroke); }+.overview-map-node[data-radar-active="true"],+.overview-map-node:hover,+.overview-map-node:focus-visible {+ fill-opacity: 0.92;+ stroke-width: 2.2;+ filter: drop-shadow(0 0 3px currentColor);+}+.overview-map-viewport {+ fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);+ stroke: var(--frontend-stroke);+ stroke-width: 2;+ vector-effect: non-scaling-stroke;+ pointer-events: none;+ filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));+}+.overview-map-hint {+ display: flex;+ justify-content: space-between;+ gap: 0.5rem;+ padding: 0 0.52rem 0.46rem;+ color: var(--text-faint);+ font-size: 0.49rem;+ letter-spacing: 0.06em;+ text-transform: uppercase;+}+.diagram-nav #btn-overview-map[aria-expanded="true"] {+ color: var(--frontend-stroke);+ background: var(--toolbar-hover);+}+.overview-map-feedback {+ position: absolute;+ right: 1rem;+ bottom: 4.15rem;+ z-index: 13;+ max-width: min(16rem, calc(100% - 2rem));+ padding: 0.38rem 0.55rem;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ border-radius: 0.5rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);+ font-size: 0.52rem;+ line-height: 1.35;+ pointer-events: none;+}+.overview-map-feedback[hidden] { display: none; }+.focus-chip[data-radar-yielded="true"] { display: none !important; }+.diagram-nav #btn-route-probe[aria-pressed="true"] {+ color: var(--backend-stroke);+ background: var(--toolbar-hover);+}+.diagram-nav #btn-semantic-lens[aria-expanded="true"],+.diagram-nav #btn-semantic-lens[aria-pressed="true"] {+ color: var(--database-stroke);+ background: var(--toolbar-hover);+}++/* Semantic Lens turns the compiled node-kind palette into an analytical+ legend. One kind reveals its real traffic; two kinds compare only their+ direct authored relationships. Geometry and the canonical SVG stay put. */+.semantic-lens {+ position: absolute;+ right: 1rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));+ z-index: 24;+ width: min(20rem, calc(100% - 2rem));+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);+ backdrop-filter: blur(18px);+ animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);+}+.semantic-lens[hidden] { display: none; }+.semantic-lens[data-dock-side="left"] { left: 1rem; right: auto; }+.semantic-lens[data-dock-side="right"] { left: auto; right: 1rem; }+html[data-preset="blueprint"] .semantic-lens { border-radius: 0.28rem; }+.semantic-lens-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.75rem;+ padding: 0.72rem 0.78rem 0.62rem;+ border-bottom: 1px solid var(--toolbar-border);+}+.semantic-lens-eyebrow {+ display: block;+ color: var(--database-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.16em;+ text-transform: uppercase;+}+.semantic-lens-title {+ display: block;+ margin-top: 0.16rem;+ color: var(--text);+ font-size: 0.82rem;+ letter-spacing: -0.02em;+}+.semantic-lens-close {+ width: 1.75rem;+ height: 1.75rem;+ padding: 0;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+}+.semantic-lens-close:hover,+.semantic-lens-close:focus-visible { background: var(--toolbar-hover); }+.semantic-lens-instruction {+ margin: 0;+ padding: 0.52rem 0.78rem 0.48rem;+ color: var(--text-faint);+ font-size: 0.55rem;+ line-height: 1.45;+}+.semantic-lens-kinds {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 0.3rem;+ max-height: min(15rem, 40vh);+ padding: 0 0.5rem 0.5rem;+ overflow-y: auto;+ scrollbar-width: thin;+}+.semantic-lens-kind {+ --lens-color: var(--external-stroke);+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.42rem;+ min-width: 0;+ min-height: 2.15rem;+ padding: 0.35rem 0.42rem;+ border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));+ border-radius: 0.45rem;+ background: color-mix(in srgb, var(--panel) 76%, transparent);+ color: var(--toolbar-text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;+}+html[data-preset="blueprint"] .semantic-lens-kind { border-radius: 0.12rem; }+.semantic-lens-kind[data-kind="frontend"],+.semantic-lens-kind[data-kind="start"] { --lens-color: var(--frontend-stroke); }+.semantic-lens-kind[data-kind="backend"],+.semantic-lens-kind[data-kind="active"] { --lens-color: var(--backend-stroke); }+.semantic-lens-kind[data-kind="database"],+.semantic-lens-kind[data-kind="success"] { --lens-color: var(--database-stroke); }+.semantic-lens-kind[data-kind="cloud"],+.semantic-lens-kind[data-kind="waiting"] { --lens-color: var(--cloud-stroke); }+.semantic-lens-kind[data-kind="messagebus"] { --lens-color: var(--messagebus-stroke); }+.semantic-lens-kind[data-kind="security"],+.semantic-lens-kind[data-kind="decision"],+.semantic-lens-kind[data-kind="failure"] { --lens-color: var(--security-stroke); }+.semantic-lens-kind:hover,+.semantic-lens-kind:focus-visible,+.semantic-lens-kind[aria-pressed="true"] {+ border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));+ background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));+}+.semantic-lens-kind:focus-visible,+.semantic-lens-close:focus-visible,+.semantic-lens-actions button:focus-visible {+ outline: 2px solid var(--database-stroke);+ outline-offset: 1px;+}+.semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }+.semantic-lens-swatch {+ width: 0.48rem;+ height: 0.48rem;+ border-radius: 50%;+ background: var(--lens-color);+ box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);+}+.semantic-lens-kind strong {+ overflow: hidden;+ color: var(--text);+ font-size: 0.61rem;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.semantic-lens-kind em {+ color: var(--lens-color);+ font-size: 0.54rem;+ font-style: normal;+ font-weight: 800;+}+.semantic-lens-status {+ min-height: 2.5rem;+ margin: 0;+ padding: 0.55rem 0.78rem;+ border-top: 1px solid var(--toolbar-border);+ color: var(--text-faint);+ font-size: 0.55rem;+ line-height: 1.45;+}+.semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }+.semantic-lens-actions {+ display: flex;+ justify-content: flex-end;+ gap: 0.28rem;+ padding: 0 0.62rem 0.62rem;+}+.semantic-lens-actions button {+ min-height: 1.8rem;+ padding: 0.28rem 0.48rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 0.56rem;+ cursor: pointer;+}+.semantic-lens-actions button:hover { background: var(--toolbar-hover); }+.semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }+@keyframes archify-lens-in {+ from { opacity: 0; transform: translateY(5px) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+}++/* Route Probe answers a reader question over the compiled semantic graph:+ choose two stable nodes and reveal the shortest authored directed route.+ The receipt and signal live entirely in the viewer layer. */+.route-probe {+ position: absolute;+ left: 1rem;+ bottom: calc(1rem + var(--archify-nav-reserve));+ z-index: 12;+ width: min(46rem, calc(100% - 25rem));+ min-width: 18rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.625rem;+}+.route-probe[hidden] { display: none; }+.route-probe[data-route-dock="top"] {+ top: 1rem;+ bottom: auto;+}+html[data-preset="blueprint"] .route-probe { border-radius: 0.25rem; }+.route-probe-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.65rem;+ padding: 0.52rem 0.58rem 0.44rem;+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);+}+.route-probe-copy { min-width: 0; }+.route-probe-eyebrow {+ display: block;+ color: var(--backend-stroke);+ font-size: 0.48rem;+ font-weight: 800;+ letter-spacing: 0.15em;+ text-transform: uppercase;+}+.route-probe-title {+ display: block;+ margin-top: 0.14rem;+ overflow: hidden;+ color: var(--toolbar-text);+ font-size: 0.72rem;+ line-height: 1.25;+ white-space: nowrap;+ text-overflow: ellipsis;+}+.route-probe-actions { display: flex; gap: 0.2rem; }+.route-probe button {+ min-height: 1.55rem;+ padding: 0.25rem 0.42rem;+ border: 0;+ border-radius: 0.36rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ cursor: pointer;+}+.route-probe button:hover,+.route-probe button:focus-visible { background: var(--toolbar-hover); }+.route-probe button:focus-visible {+ outline: 2px solid var(--backend-stroke);+ outline-offset: 1px;+}+.route-probe-copy-link { color: var(--frontend-stroke) !important; }+.route-probe-find { color: var(--backend-stroke) !important; }+.route-probe-copy-link[hidden] { display: none; }+.route-probe-find[hidden] { display: none; }+.route-probe-path {+ display: flex;+ align-items: center;+ min-height: 2.2rem;+ padding: 0.42rem 0.58rem 0.24rem;+ overflow-x: auto;+ scrollbar-width: thin;+ white-space: nowrap;+}+.route-probe-node,+.route-probe button.route-probe-node {+ flex: none;+ max-width: 9.5rem;+ overflow: hidden;+ min-height: 1.75rem !important;+ padding: 0.22rem 0.38rem;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));+ border-radius: 999px;+ background: color-mix(in srgb, var(--backend-fill) 52%, transparent);+ color: var(--text);+ font-size: 0.56rem;+ font-weight: 700;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.route-probe-node[data-endpoint="start"] {+ border-color: var(--frontend-stroke);+ color: var(--frontend-stroke);+}+.route-probe-node[data-endpoint="end"] {+ border-color: var(--security-stroke);+ color: var(--security-stroke);+}+.route-probe-node[data-route-journey-state="past"] { opacity: 0.66; }+.route-probe-node[data-route-journey-state="future"] { opacity: 0.48; }+.route-probe-node[aria-current="step"] {+ border-color: var(--backend-stroke);+ background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));+ color: var(--text);+ 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);+ opacity: 1;+}+html[data-preset="blueprint"] .route-probe-node[aria-current="step"] {+ border-style: double;+ border-width: 3px;+ border-radius: 0.2rem;+ box-shadow: none;+}+.route-probe-arrow {+ flex: none;+ padding: 0 0.28rem;+ color: var(--text-faint);+ font-size: 0.65rem;+}+.route-probe-placeholder {+ color: var(--text-faint);+ font-size: 0.56rem;+ letter-spacing: 0.03em;+}+.route-probe-status {+ display: block;+ min-height: 1.45rem;+ padding: 0.08rem 0.58rem 0.44rem;+ color: var(--text-faint);+ font-size: 0.52rem;+ line-height: 1.35;+}+.route-journey-controls {+ display: grid;+ grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);+ justify-content: start;+ gap: 0.22rem;+ padding: 0.08rem 0.58rem 0.28rem;+}+.route-journey-controls[hidden] { display: none; }+.route-journey-controls button {+ min-height: 1.8rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);+ background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);+ font-size: 0.54rem;+ font-weight: 700;+}+.route-journey-controls button:disabled {+ cursor: default;+ opacity: 0.34;+}+.route-journey-play { color: var(--backend-stroke) !important; }+.route-journey-overview { color: var(--frontend-stroke) !important; }+.route-journey-controls[data-playing="true"] .route-journey-play {+ border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));+ background: color-mix(in srgb, var(--backend-fill) 62%, transparent);+}+.route-probe[data-state="error"] {+ border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));+}+.route-probe[data-state="error"] .route-probe-status { color: var(--security-stroke); }++.focus-chip {+ position: absolute;+ left: 1rem;+ top: 1rem;+ z-index: 12;+ display: block;+ width: min(22rem, calc(100% - 13rem));+ max-width: calc(100% - 13rem);+ overflow: hidden;+ border: 1px solid var(--frontend-stroke);+ border-radius: 0.85rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.6875rem;+}+.focus-chip[hidden] { display: none; }+html[data-preset="blueprint"] .focus-chip { border-radius: 0.3rem; }+.focus-chip button {+ flex: none;+ padding: 0.3rem 0.45rem;+ border-radius: 0.35rem;+ font-size: 0.625rem;+}+.relationship-lens-head {++ position: relative;+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.75rem;- padding: 0.7rem 0.75rem 0.65rem;++ padding: 0.9rem 0.75rem 0.65rem;+ border-bottom: 1px solid var(--toolbar-border);+ background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);+}++.relationship-lens-drag-handle {++ position: absolute;++ top: 0.12rem;++ left: 50%;++ width: 2.5rem;++ height: 0.78rem;++ padding: 0 !important;++ transform: translateX(-50%);++ color: var(--text-faint) !important;++ cursor: grab;++ touch-action: none;++ user-select: none;++}++.relationship-lens-drag-handle::before {++ content: "";++ display: block;++ width: 1.25rem;++ margin: auto;++ border-top: 2px dotted currentColor;++ opacity: 0.72;++}++.focus-chip[data-panel-dragging="true"] .relationship-lens-drag-handle { cursor: grabbing; }++@media (hover: none), (pointer: coarse) {++ .relationship-lens-drag-handle { display: none; }++}+.relationship-lens-copy { min-width: 0; }+.relationship-lens-actions {+ display: flex;+ flex-direction: column;+ align-items: flex-end;+ gap: 0.18rem;+}+.relationship-lens-actions button { white-space: nowrap; }+.relationship-lens-actions #btn-focus-clear {+ display: grid;+ width: 1.75rem;+ height: 1.75rem;+ padding: 0;+ place-items: center;+ color: var(--text-muted);+ font-size: 1rem;+ line-height: 1;+}+.relationship-lens-actions #btn-focus-clear:hover,+.relationship-lens-actions #btn-focus-clear:focus-visible {+ background: var(--toolbar-hover);+ color: var(--text);+}+.relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }+.relationship-lens-actions #btn-focus-relations { display: none; }+.relationship-lens-eyebrow {+ display: block;+ margin-bottom: 0.18rem;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.14em;+ text-transform: uppercase;+}+.relationship-lens-title {+ display: block;+ overflow: hidden;+ color: var(--text);+ font-size: 0.8rem;+ line-height: 1.35;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.semantic-passport-detail {+ display: block;+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-muted);+ font-size: 0.625rem;+ line-height: 1.4;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.semantic-passport-detail[hidden] { display: none; }+.semantic-passport-meta {+ display: flex;+ flex-wrap: wrap;+ gap: 0.24rem;+ margin-top: 0.42rem;+}+.semantic-passport-meta span,+.semantic-passport-meta code {+ max-width: 100%;+ overflow: hidden;+ padding: 0.14rem 0.34rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);+ border-radius: 999px;+ background: color-mix(in srgb, var(--panel) 68%, transparent);+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5rem;+ letter-spacing: 0.04em;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.semantic-passport-meta [data-passport="kind"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));+ color: var(--frontend-stroke);+ font-weight: 800;+ text-transform: uppercase;+}+.semantic-passport-meta [data-passport="tag"] { color: var(--cloud-stroke); }+.semantic-passport-meta [data-passport="brand"] {+ border-color: color-mix(in srgb, var(--messagebus-stroke) 52%, var(--toolbar-border));+ color: var(--messagebus-stroke);+ font-weight: 700;+}+.semantic-passport-meta [hidden] { display: none; }+html[data-preset="blueprint"] .semantic-passport-meta span,+html[data-preset="blueprint"] .semantic-passport-meta code { border-radius: 0.1rem; }+.semantic-passport-evidence {+ margin-top: 0.52rem;+ padding: 0.5rem;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));+}+.semantic-passport-evidence[hidden] { display: none; }+html[data-preset="blueprint"] .semantic-passport-evidence { border-radius: 0.18rem; }+.semantic-passport-evidence-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.55rem;+ margin-bottom: 0.35rem;+}+.semantic-passport-evidence-status {+ display: inline-flex;+ align-items: center;+ gap: 0.28rem;+ color: var(--backend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.08em;+ text-transform: uppercase;+}+.semantic-passport-evidence-status::before {+ content: '';+ width: 0.38rem;+ height: 0.38rem;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);+}+.semantic-passport-repository {+ min-width: 0;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ text-decoration: none;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.semantic-passport-repository:hover,+.semantic-passport-repository:focus-visible { color: var(--backend-stroke); }+.semantic-passport-evidence-links { display: grid; gap: 0.22rem; }+.semantic-passport-source {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.15rem 0.45rem;+ align-items: center;+ padding: 0.34rem 0.4rem;+ border: 1px solid transparent;+ border-radius: 0.38rem;+ color: var(--text-muted);+ text-decoration: none;+}+a.semantic-passport-source:hover,+a.semantic-passport-source:focus-visible {+ border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);+ background: color-mix(in srgb, var(--backend-fill) 32%, transparent);+ color: var(--text);+}+.semantic-passport-source strong {+ overflow: hidden;+ font-size: 0.5625rem;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.semantic-passport-source code {+ color: var(--backend-stroke);+ font: inherit;+ font-size: 0.5rem;+}+.semantic-passport-source small {+ grid-column: 1 / -1;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.relationship-lens-summary {+ display: block;+ margin-top: 0.12rem;+ color: var(--text-faint);+ font-size: 0.5625rem;+}+.semantic-passport-reach {+ display: grid;+ gap: 0.28rem;+ margin-top: 0.52rem;+ padding-top: 0.48rem;+ border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);+}+.semantic-passport-reach[hidden] { display: none; }+.semantic-passport-reach-label {+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.1em;+ text-transform: uppercase;+}+.semantic-passport-reach-actions {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 0.25rem;+}+.semantic-passport-reach-actions button {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.5rem;+ min-width: 0;+ min-height: 2rem;+ padding: 0.32rem 0.42rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);+ background: color-mix(in srgb, var(--panel) 70%, transparent);+ color: var(--text-muted);+ text-align: left;+}+.semantic-passport-reach-actions button:hover:not(:disabled),+.semantic-passport-reach-actions button:focus-visible {+ border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));+ color: var(--text);+}+.semantic-passport-reach-actions button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+}+.semantic-passport-reach-actions button:disabled {+ cursor: default;+ opacity: 0.5;+}+.semantic-passport-reach-actions button[aria-pressed="true"] {+ border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));+ background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);+ color: var(--text);+}+#btn-reach-upstream {+ --reach-color: var(--database-stroke);+ --reach-fill: var(--database-fill);+}+#btn-reach-downstream {+ --reach-color: var(--backend-stroke);+ --reach-fill: var(--backend-fill);+}+.semantic-passport-reach-actions strong {+ color: var(--reach-color, var(--frontend-stroke));+ font-size: 0.625rem;+}+.semantic-passport-reach-status {+ color: var(--text-faint);+ font-size: 0.525rem;+ line-height: 1.4;+}+.semantic-passport-reach-status[hidden] { display: none; }+.relationship-lens-list {+ max-height: min(18rem, 46vh);+ overflow: auto;+ padding: 0.4rem;+ scrollbar-width: thin;+ scrollbar-color: var(--frontend-stroke) transparent;+}+.relationship-lens-list::-webkit-scrollbar { width: 4px; }+.relationship-lens-list::-webkit-scrollbar-thumb {+ border-radius: 999px;+ background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);+}+.relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }+.relationship-lens-group-title {+ display: block;+ padding: 0.24rem 0.38rem 0.16rem;+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.12em;+ text-transform: uppercase;+}+.relationship-lens-row {+ display: grid;+ grid-template-columns: 2.1rem minmax(0, 1fr);+ gap: 0.06rem 0.45rem;+ width: 100%;+ padding: 0.45rem 0.5rem !important;+ text-align: left;+}+.relationship-lens-row:hover,+.relationship-lens-row:focus-visible,+.relationship-lens-row[data-preview-active="true"] {+ background: var(--toolbar-hover);+ box-shadow: inset 2px 0 0 var(--frontend-stroke);+}+.relationship-lens-row:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -2px;+}+.relationship-lens-direction {+ grid-row: 1 / 3;+ align-self: center;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.08em;+}+.relationship-lens-row[data-direction="in"] .relationship-lens-direction { color: var(--database-stroke); }+.relationship-lens-row[data-direction="loop"] .relationship-lens-direction { color: var(--security-stroke); }+.relationship-lens-row strong {+ overflow: hidden;+ color: var(--text);+ font-size: 0.6875rem;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.relationship-lens-row small {+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5625rem;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.relationship-lens-empty {+ margin: 0;+ padding: 0.75rem;+ color: var(--text-faint);+ font-size: 0.625rem;+ text-align: center;+}++/* Diagram Guide keeps the artifact's growing reader vocabulary+ discoverable without widening the permanent control bar. It derives+ honest counts at runtime and delegates every action to an existing+ production interaction instead of creating a second command system. */+.diagram-guide {+ position: absolute;+ top: 1rem;+ right: 1rem;+ z-index: 26;+ width: min(32rem, calc(100% - 2rem));+ max-height: min(42rem, calc(100% - 2rem));+ overflow: auto;+ border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);+ backdrop-filter: blur(18px);+ animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);+}+.diagram-guide[hidden] { display: none; }+html[data-preset="blueprint"] .diagram-guide { border-radius: 0.28rem; }+.diagram-guide-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 1rem;+ padding: 0.82rem 0.9rem 0.68rem;+ border-bottom: 1px solid var(--toolbar-border);+}+.diagram-guide-eyebrow {+ display: block;+ color: var(--cloud-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.16em;+ text-transform: uppercase;+}+.diagram-guide-title {+ display: block;+ margin-top: 0.16rem;+ color: var(--text);+ font-size: 0.86rem;+ letter-spacing: -0.02em;+}+.diagram-guide-close {+ width: 1.8rem;+ height: 1.8rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+}+.diagram-guide-close:hover,+.diagram-guide-close:focus-visible { background: var(--toolbar-hover); }+.diagram-guide-stats {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ margin: 0;+ padding: 0.54rem 0.9rem;+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);+ color: var(--text-faint);+ font-size: 0.56rem;+ letter-spacing: 0.025em;+}+.diagram-guide-stats::before {+ content: '';+ width: 0.42rem;+ height: 0.42rem;+ flex: none;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);+}+.diagram-guide-actions {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 0.38rem;+ padding: 0.62rem;+}+.diagram-guide-action {+ --guide-accent: var(--frontend-stroke);+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.55rem;+ min-height: 4.15rem;+ padding: 0.55rem 0.58rem;+ border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ color: var(--toolbar-text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;+}+.diagram-guide-action[data-guide-action="route"] { --guide-accent: var(--backend-stroke); }+.diagram-guide-action[data-guide-action="map"] { --guide-accent: var(--database-stroke); }+.diagram-guide-action[data-guide-action="lens"] { --guide-accent: var(--messagebus-stroke); }+.diagram-guide-action[data-guide-action="story"] { --guide-accent: var(--security-stroke); }+.diagram-guide-action[data-guide-action="present"] {+ --guide-accent: var(--cloud-stroke);+}+.diagram-guide-action:hover,+.diagram-guide-action:focus-visible {+ border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));+ background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));+ transform: translateY(-1px);+}+.diagram-guide-action:focus-visible,+.diagram-guide-close:focus-visible {+ outline: 2px solid var(--cloud-stroke);+ outline-offset: 1px;+}+.diagram-guide-action:disabled {+ opacity: 0.42;+ cursor: default;+ transform: none;+}+.diagram-guide-index {+ display: grid;+ place-items: center;+ width: 1.65rem;+ height: 1.65rem;+ border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));+ border-radius: 0.35rem;+ color: var(--guide-accent);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.06em;+}+.diagram-guide-action-copy { min-width: 0; }+.diagram-guide-action strong {+ display: block;+ overflow: hidden;+ color: var(--text);+ font-size: 0.66rem;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.diagram-guide-action small {+ display: -webkit-box;+ margin-top: 0.18rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ line-height: 1.35;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 2;+}+.diagram-guide kbd {+ align-self: start;+ min-width: 1.45rem;+ padding: 0.12rem 0.3rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.25rem;+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5rem;+ text-align: center;+}+.diagram-guide-shortcuts {+ display: flex;+ flex-wrap: wrap;+ gap: 0.34rem 0.62rem;+ padding: 0.58rem 0.9rem 0.68rem;+ border-top: 1px solid var(--toolbar-border);+ color: var(--text-faint);+ font-size: 0.5rem;+}+.diagram-guide-shortcuts span {+ display: inline-flex;+ align-items: center;+ gap: 0.28rem;+ white-space: nowrap;+}+.diagram-guide-feedback {+ min-height: 1rem;+ margin: -0.18rem 0.9rem 0.62rem;+ color: var(--security-stroke);+ font-size: 0.5rem;+}+.diagram-guide-feedback:empty { display: none; }+@keyframes archify-guide-in {+ from { opacity: 0; transform: translateY(-5px) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+}++.node-finder {+ position: absolute;+ top: 1rem;+ left: 1rem;+ z-index: 24;+ display: flex;+ flex-direction: column;+ width: min(22rem, calc(100% - 2rem));+ max-height: calc(100% - 2rem);+ overflow: hidden;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.85rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);+ backdrop-filter: blur(16px);+}+.node-finder[hidden] { display: none; }+.node-finder[data-context="route-source"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));+}+.node-finder[data-context="route-target"] {+ border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));+}+html[data-preset="blueprint"] .node-finder { border-radius: 0.3rem; }+.node-finder-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.7rem 0.8rem 0.45rem;+}+.node-finder-head strong {+ color: var(--text);+ font-size: 0.6875rem;+ letter-spacing: 0.08em;+ text-transform: uppercase;+}+.node-finder[data-context="route-source"] .node-finder-head strong { color: var(--frontend-stroke); }+.node-finder[data-context="route-target"] .node-finder-head strong { color: var(--security-stroke); }+.node-finder-close {+ width: 1.75rem;+ height: 1.75rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+}+.node-finder-close:hover,+.node-finder-close:focus-visible { background: var(--toolbar-hover); }+.node-finder-close:focus-visible,+.node-finder-result:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -2px;+}+.node-finder-search {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.55rem;+ margin: 0 0.55rem 0.55rem;+ padding: 0 0.7rem;+ min-height: 2.6rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ transition: border-color 160ms ease-out, box-shadow 160ms ease-out;+}+html[data-preset="blueprint"] .node-finder-search { border-radius: 0.18rem; }+.node-finder-search > span { color: var(--frontend-stroke); font-size: 0.875rem; }+.node-finder-search:focus-within {+ border-color: var(--frontend-stroke);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);+}+.node-finder-input {+ appearance: none;+ width: 100%;+ min-width: 0;+ border: 0;+ outline: 0;+ background: transparent;+ color: var(--text);+ font: inherit;+ font-size: 0.75rem;+}+.node-finder-input:focus-visible { outline: none; }+.node-finder-input::placeholder { color: var(--text-faint); }+.node-finder kbd {+ padding: 0.1rem 0.32rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.25rem;+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5625rem;+}+.node-finder-results {+ display: grid;+ flex: 1 1 auto;+ gap: 0;+ min-height: 0;+ max-height: min(18rem, 48vh);+ margin: 0 0.55rem 0.45rem;+ padding: 0;+ overflow-y: auto;+ overscroll-behavior: contain;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 54%, transparent);+ scroll-padding-block: 0.25rem;+ scrollbar-width: thin;+}+html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }+.node-finder-result {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.2rem 0.75rem;+ width: 100%;+ min-height: 3.25rem;+ padding: 0.58rem 0.65rem;+ border: 0;+ border-radius: 0;+ background: transparent;+ color: var(--text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: background-color 160ms ease-out;+}+.node-finder-result:not(:last-child) {+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+}+.node-finder-result:hover,+.node-finder-result:focus-visible {+ position: relative;+ z-index: 1;+ background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));+}+.node-finder-result strong {+ overflow: hidden;+ font-size: 0.75rem;+ line-height: 1.25;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.node-finder-result small {+ grid-column: 1 / -1;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5625rem;+ letter-spacing: 0.015em;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.node-finder-result em {+ align-self: center;+ color: var(--frontend-stroke);+ font-size: 0.625rem;+ font-style: normal;+}+.node-finder[data-context^="route-"] .node-finder-result em {+ padding: 0.1rem 0.3rem;+ border: 1px solid color-mix(in srgb, currentColor 52%, transparent);+ border-radius: 999px;+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.05em;+ text-transform: uppercase;+}+.node-finder[data-context="route-target"] .node-finder-result em { color: var(--security-stroke); }+.node-finder-empty {+ padding: 1.1rem 0.75rem 1.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ text-align: center;+}+.node-finder-status {+ margin: 0;+ padding: 0.1rem 0.8rem 0.65rem;+ color: var(--text-faint);+ font-size: 0.5625rem;+}++.guided-views {+ display: grid;+ grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem auto;+ align-items: stretch;+ gap: 0.35rem;+ min-width: 0;+ margin: 0 0 0.75rem;+ padding: 0.35rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.85rem;+ background: var(--toolbar-bg);+ background: linear-gradient(120deg, var(--toolbar-bg), color-mix(in srgb, var(--toolbar-bg) 82%, var(--frontend-fill)));+ box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);+ backdrop-filter: blur(12px);+}+.guided-views[hidden] { display: none; }++html[data-preset="blueprint"] .guided-views {+ border-color: var(--panel-border);+ border-radius: 0.35rem;+ background:+ linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 36%, transparent), transparent 24%),+ var(--toolbar-bg);+ box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);+}+html[data-preset="blueprint"] .guided-views button { border-radius: 0.2rem; }+html[data-preset="blueprint"] .guided-view-progress { border-radius: 0; }+html[data-preset="blueprint"] .guided-view-progress span { border-radius: 0; }+.guided-views button {+ min-width: 0;+ padding: 0.45rem 0.6rem;+ border-radius: 0.55rem;+ font-size: 0.75rem;+}+.guided-views > #guided-view-prev,+.guided-views > #guided-view-next { min-width: 2.75rem; min-height: 2.75rem; }+.guided-views button:disabled { opacity: 0.3; cursor: default; }+.guided-view-copy {+ min-width: 0;+ padding: 0.2rem 0.5rem;+ border-left: 1px solid var(--toolbar-border);+ overflow: hidden;+}+.guided-view-meta {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ min-height: 1rem;+ margin-bottom: 0.12rem;+ color: var(--frontend-stroke);+ font-size: 0.5625rem;+ font-weight: 700;+ letter-spacing: 0.12em;+ text-transform: uppercase;+}+.guided-view-handoff {+ box-sizing: border-box;+ height: 1rem;+ min-width: 0;+ max-width: 15rem;+ overflow: hidden;+ padding: 0 0.38rem;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 46%, transparent);+ border-radius: 999px;+ color: var(--toolbar-text);+ background: color-mix(in srgb, var(--frontend-fill) 44%, transparent);+ font-size: 0.5rem;+ line-height: calc(1rem - 2px);+ letter-spacing: 0.06em;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.guided-view-handoff[hidden] { display: none; }+html[data-preset="blueprint"] .guided-view-handoff { border-radius: 0.15rem; }+.chapter-handoff-overlay { pointer-events: none; }+.chapter-handoff-anchor {+ fill: color-mix(in srgb, var(--frontend-fill) 10%, transparent);+ stroke: var(--frontend-stroke);+ stroke-width: 2;+ stroke-dasharray: 4 4;+ vector-effect: non-scaling-stroke;+ opacity: 0.96;+ animation: archify-chapter-anchor 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;+}+svg[data-chapter-handoff] [data-node-id][data-chapter-role="stay"] { opacity: 1; }+svg[data-chapter-handoff] [data-node-id][data-chapter-role="enter"] { opacity: 0.78; }+svg[data-chapter-handoff] [data-node-id][data-chapter-role="leave"] { opacity: 0.26; }+@keyframes archify-chapter-anchor {+ 0% { opacity: 0.35; stroke-dashoffset: 8; }+ 45% { opacity: 1; }+ 100% { opacity: 0.72; stroke-dashoffset: 0; }+}+.guided-view-progress {+ width: 3.5rem;+ height: 2px;+ overflow: hidden;+ border-radius: 999px;+ background: var(--toolbar-border);+}+.guided-view-progress span {+ display: block;+ width: 100%;+ height: 100%;+ border-radius: inherit;+ background: var(--frontend-stroke);+ transform: scaleX(0);+ transform-origin: left center;+}+.guided-view-copy strong,+.guided-view-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.guided-view-copy strong { color: var(--toolbar-text); font-size: 0.75rem; line-height: 1.35; }+.guided-view-copy small { margin-top: 0; color: var(--text-muted); font-size: 0.625rem; line-height: 1.35; }+.guided-story-caption {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ gap: 0.12rem 0.55rem;+ align-items: center;+ min-width: 0;+ margin-top: 0.18rem;+ padding: 0.3rem 0.5rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 32%, var(--toolbar-border));+ border-radius: 0.58rem;+ background: color-mix(in srgb, var(--frontend-fill) 26%, transparent);+ animation: archify-story-caption-in 140ms cubic-bezier(0.22, 1, 0.36, 1) both;+}+.guided-story-caption[hidden] { display: none; }+.guided-story-caption-index {+ grid-row: 1 / span 2;+ align-self: stretch;+ display: inline-grid;+ min-width: 3.3rem;+ place-items: center;+ padding-right: 0.52rem;+ border-right: 1px solid color-mix(in srgb, var(--frontend-stroke) 28%, var(--toolbar-border));+ color: var(--frontend-stroke);+ font-size: 0.5625rem;+ font-weight: 800;+ letter-spacing: 0.08em;+ text-transform: uppercase;+}+.guided-story-caption strong,+.guided-story-caption small {+ display: block;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.guided-story-caption strong { color: var(--toolbar-text); font-size: 0.6875rem; line-height: 1.3; }+.guided-story-caption small { color: var(--text-muted); font-size: 0.5625rem; line-height: 1.35; }+.guided-story-caption-next {+ grid-column: 3;+ grid-row: 1 / span 2;+ display: grid;+ min-width: 6.4rem;+ max-width: 9.5rem;+ align-self: stretch;+ align-content: center;+ padding-left: 0.58rem;+ border-left: 1px solid color-mix(in srgb, var(--frontend-stroke) 22%, var(--toolbar-border));+}+.guided-story-caption-next[hidden] { display: none; }+.guided-story-caption-next small {+ color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--text-muted));+ font-weight: 800;+ letter-spacing: 0.09em;+ text-transform: uppercase;+}+.guided-story-caption-next strong { color: var(--text-muted); font-weight: 700; }+html[data-preset="blueprint"] .guided-story-caption { border-radius: 0.2rem; }+.guided-views[data-story-beat] .guided-view-copy > #guided-view-label,+.guided-views[data-story-beat] .guided-view-copy > #guided-view-note { display: none; }+@keyframes archify-story-caption-in {+ from { opacity: 0; transform: translateY(3px); }+ to { opacity: 1; transform: translateY(0); }+}+.guided-view-trail {+ display: flex;+ align-items: center;+ gap: 0.28rem;+ min-width: 0;+ min-height: 1.7rem;+ margin-top: 0;+ padding: 0;+ overflow-x: auto;+ color: var(--text-faint);+ overscroll-behavior-x: contain;+ touch-action: pan-x;+ scrollbar-width: none;+ white-space: nowrap;+}+.guided-view-trail[hidden] { display: none; }+.guided-view-trail::-webkit-scrollbar { display: none; }+.guided-view-trail .guided-view-stop {+ appearance: none;+ box-sizing: border-box;+ display: inline-flex;+ flex: 0 0 auto;+ align-items: center;+ gap: 0.28rem;+ min-height: 1.5rem;+ padding: 0.1rem 0.3rem 0.1rem 0.18rem;+ border: 1px solid transparent;+ border-radius: 999px;+ background: transparent;+ color: var(--text-muted);+ cursor: pointer;+ font-family: inherit;+ font-size: 0.5625rem;+ font-weight: 650;+ letter-spacing: 0.02em;+ line-height: 1;+ transition: background 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;+}+.guided-view-stop:hover {+ border-color: color-mix(in srgb, var(--frontend-stroke) 36%, transparent);+ background: color-mix(in srgb, var(--frontend-fill) 34%, transparent);+}+.guided-view-stop:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+}+.guided-view-stop:disabled { cursor: wait; }+.guided-view-stop::before {+ display: inline-grid;+ width: 1rem;+ height: 1rem;+ place-items: center;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 54%, var(--toolbar-border));+ border-radius: 50%;+ background: color-mix(in srgb, var(--frontend-fill) 58%, var(--toolbar-bg));+ color: var(--frontend-stroke);+ content: attr(data-story-number);+ font-size: 0.5rem;+ line-height: 1;+}+.guided-view-stop + .guided-view-stop::after {+ order: -1;+ color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--text-faint));+ content: '\00b7';+ font-size: 0.65rem;+}+.guided-view-stop[data-story-link="forward"]::after { content: '\2192'; }+.guided-view-stop[data-story-link="reverse"]::after { content: '\2190'; }+.guided-view-stop[data-story-link="multiple"]::after { content: '\21c4'; }+.guided-view-stop[data-story-beat-state="pending"] { opacity: 0.38; }+.guided-view-stop[data-story-beat-state="next"] {+ border-style: dashed;+ border-color: color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));+ color: color-mix(in srgb, var(--toolbar-text) 68%, var(--text-muted));+ opacity: 0.58;+}+.guided-view-stop[data-story-beat-state="past"] { color: var(--text-muted); opacity: 0.76; }+.guided-view-stop[data-story-beat-state="active"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border));+ background: color-mix(in srgb, var(--frontend-fill) 42%, transparent);+ color: var(--toolbar-text);+ font-weight: 800;+ opacity: 1;+}+.guided-view-stop[data-story-beat-state="active"]::before {+ border-color: var(--frontend-stroke);+ box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 54%, transparent);+}+html[data-preset="blueprint"] .guided-view-stop,+html[data-preset="blueprint"] .guided-view-stop::before { border-radius: 0.1rem; }+html[data-preset="blueprint"] .guided-view-stop[data-story-beat-state="active"]::before { box-shadow: none; }+.guided-view-actions { display: flex; align-items: stretch; gap: 0.2rem; }+.guided-view-actions button { white-space: nowrap; }+.guided-view-play {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.38rem;+ min-width: 6.25rem !important;+ color: var(--frontend-stroke) !important;+ font-size: 0.625rem !important;+}+.guided-view-play[aria-pressed="true"] { background: var(--toolbar-hover); }+.guided-view-all { min-width: 3.25rem !important; color: var(--text-muted) !important; font-size: 0.625rem !important; }+.guided-view-beat-link {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.3rem;+ min-width: 5.4rem !important;+ min-height: 1.5rem;+ color: var(--text-muted) !important;+ font-size: 0.5625rem !important;+ letter-spacing: 0.025em;+ transition: background 140ms ease, border-color 140ms ease, color 140ms ease;+}+.guided-view-beat-link:not(:disabled):hover {+ border-color: color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ color: var(--frontend-stroke) !important;+}+.guided-view-beat-link[data-copy-state="copied"] {+ border-color: color-mix(in srgb, var(--backend-stroke) 58%, var(--toolbar-border));+ background: color-mix(in srgb, var(--backend-fill) 46%, transparent);+ color: var(--backend-stroke) !important;+}+.guided-view-index {+ grid-column: 1 / -1;+ min-width: 0;+ padding: 0.28rem 0.12rem 0.08rem;+ overflow: hidden;+ border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);+}+@media (min-width: 721px) {+ html[data-present="true"]:not([data-embed="true"]) .guided-views[data-playing="true"] .guided-view-index,+ html[data-present="true"]:not([data-embed="true"]) .guided-views[data-playing="true"] .guided-view-beat-link,+ html[data-present="true"]:not([data-embed="true"]) .guided-views[data-playing="true"] .guided-view-all,+ html[data-present="true"]:not([data-embed="true"]) .guided-views[data-playing="true"] .guided-view-trail,+ html[data-present="true"]:not([data-embed="true"]) .guided-views[data-playing="true"] .guided-view-copy > #guided-view-label,+ html[data-present="true"]:not([data-embed="true"]) .guided-views[data-playing="true"] .guided-view-copy > #guided-view-note { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .guided-views[data-playing="true"] .guided-story-caption { margin-top: 0.08rem; }+}+.guided-view-chapters {+ display: flex;+ gap: 0.28rem;+ min-width: 0;+ margin: 0;+ padding: 0.08rem 0.05rem 0.2rem;+ overflow-x: auto;+ list-style: none;+ scroll-padding-inline: 0.05rem;+ scroll-snap-type: x proximity;+ scrollbar-width: none;+}+.guided-view-chapters::-webkit-scrollbar { display: none; }+.guided-view-chapters li {+ display: flex;+ flex: 1 1 0;+ min-width: 9.5rem;+ scroll-snap-align: center;+}+.guided-view-chapter {+ position: relative;+ display: grid !important;+ grid-template-columns: 1.55rem minmax(0, 1fr) auto;+ align-items: center;+ width: 100%;+ min-height: 2.75rem;+ padding: 0.36rem 0.48rem !important;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent) !important;+ border-radius: 0.48rem !important;+ background: color-mix(in srgb, var(--toolbar-bg) 88%, transparent) !important;+ color: var(--text-muted) !important;+ text-align: left;+ transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;+}+.guided-view-chapter:hover {+ border-color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--toolbar-border)) !important;+ background: color-mix(in srgb, var(--frontend-fill) 42%, var(--toolbar-bg)) !important;+}+.guided-view-chapter:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+}+.guided-view-chapter-index {+ display: inline-grid;+ width: 1.32rem;+ height: 1.32rem;+ place-items: center;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 48%, var(--toolbar-border));+ border-radius: 50%;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.03em;+}+.guided-view-chapter-title {+ min-width: 0;+ overflow: hidden;+ color: var(--toolbar-text);+ font-size: 0.625rem;+ font-weight: 700;+ line-height: 1.3;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.guided-view-chapter-count {+ grid-column: 3;+ grid-row: 1;+ margin-left: 0.38rem;+ color: var(--text-faint);+ font-size: 0.5rem;+ font-style: normal;+ font-weight: 650;+ white-space: nowrap;+}+.guided-view-chapter-delta {+ display: inline-flex;+ grid-column: 3;+ grid-row: 1;+ align-items: center;+ gap: 0.22rem;+ margin-left: 0.38rem;+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 750;+ letter-spacing: 0.01em;+ white-space: nowrap;+}+.guided-view-chapter-delta[hidden] { display: none; }+.guided-view-chapter-delta [data-delta-kind="stay"] { color: var(--text-muted); }+.guided-view-chapter-delta [data-delta-kind="enter"] { color: var(--frontend-stroke); }+.guided-view-chapter-delta [data-delta-kind="leave"] { color: var(--security-stroke); }+.guided-view-chapter[data-preview-active="true"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border)) !important;+ background: color-mix(in srgb, var(--frontend-fill) 54%, var(--toolbar-bg)) !important;+}+.guided-view-chapter[data-chapter-position="current"] {+ border: 2px solid var(--frontend-stroke) !important;+ padding: calc(0.36rem - 1px) calc(0.48rem - 1px) !important;+ box-shadow: inset 3px 0 0 var(--frontend-stroke);+ color: var(--toolbar-text) !important;+}+.guided-view-chapter[data-chapter-position="current"] .guided-view-chapter-index {+ background: var(--frontend-stroke);+ color: var(--bg);+}+.guided-view-chapter[data-chapter-position="before"] {+ border-style: solid !important;+ opacity: 0.72;+}+.guided-view-chapter[data-chapter-position="after"] { border-style: dashed !important; }+html[data-preset="signal-flow"] .guided-view-chapter[data-chapter-position="current"] {+ box-shadow: inset 3px 0 0 var(--frontend-stroke), 0 0 18px color-mix(in srgb, var(--frontend-stroke) 18%, transparent);+}+html[data-preset="blueprint"] .guided-view-chapter,+html[data-preset="blueprint"] .guided-view-chapter-index { border-radius: 0.12rem !important; }++/* Story Shelf — keep every authored chapter and the Play action visible,+ but do not spend a second row on unavailable director controls before+ the reader enters a chapter. Existing data-active-view state expands+ the full guided surface without a new toggle or stored preference. */+.guided-views[data-active-view="all"] {+ grid-template-columns: minmax(11rem, .72fr) auto minmax(0, 2fr);+ align-items: center;+ padding: 0.28rem 0.35rem;+}+.guided-views[data-active-view="all"] > #guided-view-prev,+.guided-views[data-active-view="all"] > #guided-view-next,+.guided-views[data-active-view="all"] .guided-view-beat-link,+.guided-views[data-active-view="all"] .guided-view-all { display: none; }+.guided-views[data-active-view="all"] .guided-view-copy {+ grid-column: 1;+ grid-row: 1;+ padding: 0.1rem 0.55rem;+}+.guided-views[data-active-view="all"] .guided-view-copy > #guided-view-note { display: none; }+.guided-views[data-active-view="all"] .guided-view-actions {+ display: block;+ grid-column: 2;+ grid-row: 1;+}+.guided-views[data-active-view="all"] .guided-view-play { min-height: 2.75rem; }+.guided-views[data-active-view="all"] .guided-view-index {+ grid-column: 3;+ grid-row: 1;+ padding: 0 0.08rem 0 0.42rem;+ border-top: 0;+ border-left: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);+}+.guided-views[data-active-view="all"] .guided-view-chapters {+ gap: 0.3rem;+ padding: 0;+}++.cards {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));+ gap: 1rem;+ margin-top: 2rem;+}++.card {+ background: var(--panel);+ border-radius: 0.75rem;+ border: 1px solid var(--panel-border);+ padding: 1.25rem;+}++html[data-preset="signal-flow"] .card {+ background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);+}+html[data-preset="signal-flow"][data-theme="light"] .card {+ background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);+}++/* Preserve the one-screen guarantee on ordinary laptop displays. The+ high-screen expansion above must not trade a fuller canvas for page+ scrolling at 900–1080px heights. */+@media (min-width: 768px) and (max-height: 1100px) {+ .header { margin-bottom: 1rem; }+ .diagram-container {+ padding: 0.875rem;+ padding-bottom: calc(0.875rem + var(--archify-nav-reserve));+ }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+}+@media (min-width: 768px) and (max-height: 920px) {+ body { padding-block: 1.25rem; }+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ html[data-nav-stage-rail="true"] body { padding-block: 0.375rem; }+ html[data-nav-stage-rail="true"] .header { margin-bottom: 0.5rem; }+ html[data-nav-stage-rail="true"] .guided-views { margin-bottom: 0.375rem; }+ html[data-nav-stage-rail="true"] .diagram-container[data-nav-stage-rail="true"] { padding-top: 0.5rem; }+ html[data-nav-stage-rail="true"] .cards { margin-top: 0.375rem; }+}++html[data-preset="blueprint"] .card {+ position: relative;+ border-color: var(--panel-border);+ border-radius: 0.3rem;+ background: var(--panel);+ box-shadow: none;+}+html[data-preset="blueprint"] .card::before {+ content: "";+ position: absolute;+ top: -1px;+ left: 1rem;+ width: 2.5rem;+ 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;+ gap: 0.5rem;+ margin-bottom: 0.75rem;+}++.card-dot {+ width: 8px;+ height: 8px;+ border-radius: 50%;+}++.card-dot.cyan { background: var(--frontend-stroke); }+.card-dot.emerald { background: var(--backend-stroke); }+.card-dot.violet { background: var(--database-stroke); }+.card-dot.amber { background: var(--cloud-stroke); }+.card-dot.rose { background: var(--security-stroke); }+.card-dot.orange { background: var(--messagebus-stroke); }+.card-dot.slate { background: var(--external-stroke); }++.card h3 { font-size: 0.875rem; font-weight: 600; color: var(--text); }++.card ul {+ list-style: none;+ color: var(--text-muted);+ font-size: 0.75rem;+}++.card li { margin-bottom: 0.375rem; }++/* ==========================================================+ Print stylesheet — hide interactive controls, force light,+ drop the grid so the diagram doesn't waste ink, use landscape+ so wide diagrams fit, pack summary cards into 2 columns to+ avoid an orphan card on a trailing page.+ ========================================================== */+@page { size: landscape; margin: 1.5cm; }++@media print {+ /* Force the FULL light palette — including component fills/strokes and+ lane/arrow colors — so printing from dark theme doesn't put neon+ strokes and translucent dark fills on white paper. */+ :root, [data-theme="dark"], [data-theme="light"] {+ --bg: #ffffff;+ --grid: transparent;+ --panel: #ffffff;+ --panel-border: #e2e8f0;+ --text: #0f172a;+ --text-muted: #475569;+ --text-dim: #94a3b8;+ --text-faint: #64748b;+ --mask: #ffffff;+ --lane-fill: rgba(248, 250, 252, 0.65);+ --lane-stroke: #cbd5e1;+ --arrow: #94a3b8;+ --arrow-emphasis: #059669;+ --frontend-fill: rgba(34, 211, 238, 0.15);+ --frontend-stroke: #0891b2;+ --backend-fill: rgba(52, 211, 153, 0.18);+ --backend-stroke: #059669;+ --database-fill: rgba(167, 139, 250, 0.2);+ --database-stroke: #7c3aed;+ --cloud-fill: rgba(251, 191, 36, 0.18);+ --cloud-stroke: #d97706;+ --security-fill: rgba(251, 113, 133, 0.15);+ --security-stroke: #e11d48;+ --messagebus-fill: rgba(251, 146, 60, 0.15);+ --messagebus-stroke:#ea580c;+ --external-fill: rgba(148, 163, 184, 0.18);+ --external-stroke: #64748b;+ }