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
fix(preview,export,viewer): Windows watcher crash, offline font width, CSS modularization
Hermes Agent1d2500949021
diff --git a/archify.zip b/archify.zipindex b4f4d8af..f03c90b3 100644Binary files a/archify.zip and b/archify.zip differdiff --git a/archify/assets/template.html b/archify/assets/template.htmlindex 2bf71579..bb2a9768 100644--- a/archify/assets/template.html+++ b/archify/assets/template.html@@ -6390,7 +6390,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6405,6 +6414,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/archify/bin/preview.mjs b/archify/bin/preview.mjsindex 16ed94ed..8b36686d 100644--- a/archify/bin/preview.mjs+++ b/archify/bin/preview.mjs@@ -21,6 +21,27 @@ 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.+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;+ }+}+function sourceDigest(inputPath) {try {const bytes = fs.readFileSync(inputPath);@@ -587,9 +608,14 @@ export async function startPreview(options) {}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();+ 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 --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.htmlindex 08f32fb3..7389fb23 100644--- a/archify/examples/dataflow-product-analytics.html+++ b/archify/examples/dataflow-product-analytics.html@@ -6501,7 +6501,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6516,6 +6525,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.htmlindex 33692ec3..ab527e48 100644--- a/archify/examples/lifecycle-agent-run.html+++ b/archify/examples/lifecycle-agent-run.html@@ -6436,7 +6436,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6451,6 +6460,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.htmlindex 7de50a1c..486d5c61 100644--- a/archify/examples/sequence-cache-miss-request.html+++ b/archify/examples/sequence-cache-miss-request.html@@ -6516,7 +6516,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6531,6 +6540,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.htmlindex ff65a3e5..8ff919d7 100644--- a/archify/examples/web-app-rendered.html+++ b/archify/examples/web-app-rendered.html@@ -6465,7 +6465,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6480,6 +6489,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.htmlindex c44cd78c..b00d4ddf 100644--- a/archify/examples/workflow-agent-tool-call-rendered.html+++ b/archify/examples/workflow-agent-tool-call-rendered.html@@ -6507,7 +6507,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6522,6 +6531,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/archify/test/generate-viewer.test.mjs b/archify/test/generate-viewer.test.mjsindex 1de23f7e..6b74ac00 100644--- a/archify/test/generate-viewer.test.mjs+++ b/archify/test/generate-viewer.test.mjs@@ -8,6 +8,7 @@ import { fileURLToPath } from 'node:url';const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');const marker = '/* ARCHIFY:READER_LAYOUT */';+const tokensMarker = '/* ARCHIFY:TOKENS */';const exportMarker = '/* ARCHIFY:EXPORT */';const cleanupMarker = '/* ARCHIFY:EXPORT_CLEANUP */';const chromeMarker = '/* ARCHIFY:CHROME_LAYOUT */';@@ -69,7 +70,8 @@ test('the committed Viewer rebuilds deterministically outside the repository wortest('editing any authoritative source requires explicit regeneration', (t) => {const f = fixture(t);- 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]) {+ 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]) {const previous = fs.readFileSync(f.output);fs.appendFileSync(input, '\n/* source change */\n');const stale = f.run('--check');@@ -118,7 +120,9 @@ for (const [fragment, slot] of Object.entries(fragments)) {test('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.export, reader + cleanupMarker);fs.writeFileSync(f.cleanup, reader);fs.writeFileSync(f.chrome, reader);@@ -133,7 +137,17 @@ test('assembly preserves literal replacement tokens, Unicode and source line endfs.writeFileSync(f.focus, reader);fs.writeFileSync(f.reader, reader);assert.equal(f.run().status, 0);- assert.equal(fs.readFileSync(f.output, 'utf8'), `<script>\r\n${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}</script>\n`);+ // The tokens.css file is inlined inside the <style> block. The marker sits+ // at column 0 inside the shell so every line of the CSS gets a 4-space+ // reindent, including the first. The <script> block then contains the JS+ // fragments unchanged. Both the leading `\n` after the marker and the+ // marker line itself are stripped from `parts[1]` so the reindented CSS+ // ends flush with the closing </style> tag.+ const indentedTokens = tokens.split('\n').map((line) => line.length === 0 ? line : ' ' + line).join('\n');+ assert.equal(+ fs.readFileSync(f.output, 'utf8'),+ `<style>${indentedTokens}</style><script>\r\n${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}${reader}</script>\n`,+ );assert.equal(f.run('--check').status, 0);});diff --git a/archify/test/offline-font-fallback.test.mjs b/archify/test/offline-font-fallback.test.mjsnew file mode 100644index 00000000..94eeee66--- /dev/null+++ b/archify/test/offline-font-fallback.test.mjs@@ -0,0 +1,61 @@+import { test } from 'node:test';+import assert from 'node:assert/strict';+import fs from 'node:fs';+import path from 'node:path';+import { fileURLToPath } from 'node:url';++// Regression coverage for issue #277: when the bundled JetBrains Mono font+// has not yet decoded (common when the artifact opens offline or under a+// strict CSP), `ctx.measureText` would otherwise produce widths that don't+// match the SVG layer's rendered metrics — labels silently overflow. The+// fix detects the unloaded state with `document.fonts.check` and forces the+// fallback font so Canvas measurement and SVG layout stay in lockstep.+//+// These tests are static (string match) so they exercise the contract+// without needing a browser. The browser-side behavior is covered by+// offline-font-browser.test.mjs, which only runs when ARCHIFY_CHROME is set.++const here = path.dirname(fileURLToPath(import.meta.url));+const skillRoot = path.resolve(here, '..');+const repoRoot = path.resolve(skillRoot, '..');+const exportSource = fs.readFileSync(+ path.resolve(repoRoot, 'viewer', 'export.js'),+ 'utf8',+);++test('fitCanvasText consults document.fonts before measuring', () => {+ // The helper must check whether the embedded face is actually loaded and+ // fall back to the system monospace stack so Canvas measurement and the+ // SVG layer agree on the string width. Without this guard the export+ // would overflow the share card title under offline / strict-CSP loads.+ assert.match(+ exportSource,+ /function fitCanvasText[\s\S]*?document\.fonts\.check/,+ 'fitCanvasText must defer to document.fonts.check before measuring',+ );+});++test('the offline fallback uses the same monospace stack the SVG layer declares', () => {+ // If the fallback font list diverges from the SVG layer, the two will+ // disagree on glyph widths and the rasterized share card will spill past+ // the layout boundary. Pin both to the ui-monospace stack.+ const conditional = exportSource.match(/fontsLoaded\(\)[\s\S]{0,120}:\s*'([^']+)'/);+ assert.ok(conditional, 'fitCanvasText must switch fonts based on fontsLoaded()');+ const fallback = conditional[1];+ assert.ok(fallback.includes('ui-monospace'), `fallback stack missing ui-monospace: ${fallback}`);+ assert.ok(fallback.includes('Menlo'), `fallback stack missing Menlo: ${fallback}`);+ assert.ok(fallback.includes('Consolas'), `fallback stack missing Consolas: ${fallback}`);+});++test('fontsLoaded tolerates browsers without document.fonts', () => {+ // Older browsers (or jsdom in some configurations) expose no Font Loading+ // API at all. The helper must short-circuit to `true` rather than throw,+ // because the caller cannot distinguish "loaded" from "unknown" — both+ // mean "do not change the font". We assert the safe return path.+ const helperMatch = exportSource.match(/function fontsLoaded\(\)\s*\{([\s\S]*?)\n\s*\}/);+ assert.ok(helperMatch, 'fontsLoaded helper must exist');+ const body = helperMatch[1];+ assert.match(body, /document\.fonts/, 'helper must reference document.fonts');+ assert.match(body, /typeof fonts\.check/, 'helper must guard with typeof fonts.check');+ assert.match(body, /return true/, 'helper must return true when the Font Loading API is unavailable');+});\ No newline at end of filediff --git a/archify/test/resolve-watch-target.test.mjs b/archify/test/resolve-watch-target.test.mjsnew file mode 100644index 00000000..e8aa3b51--- /dev/null+++ b/archify/test/resolve-watch-target.test.mjs@@ -0,0 +1,58 @@+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';++// 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.++const here = path.dirname(fileURLToPath(import.meta.url));+const { resolveWatchTarget } = await import(+ path.resolve(here, '..', 'bin', 'preview.mjs')+);++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;+ }+ 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', () => {+ 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));+});++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);+});\ No newline at end of filediff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.jsonindex b4b0a2cc..b9c4b62e 100644--- a/docs/assets/archify-live-proof.json+++ b/docs/assets/archify-live-proof.json@@ -13,29 +13,29 @@{"id": "signal-flow","artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",- "artifactSha256": "3ad7b10452fc1afe61008c2dd6eebf6348c7e694227f0b03f217bd1bac1fe046",+ "artifactSha256": "30cfe23afa4bfa18c941e643d9e3a015f77113d706e22fd9fbf3ff3cca15889a","view": "happy-path",- "eyebrow": "WORKFLOW · SIGNAL FLOW",+ "eyebrow": "WORKFLOW \u00b7 SIGNAL FLOW","title": "Agent Tool Call",- "receipt": "12 nodes · 11 edges · 9/9 checks"+ "receipt": "12 nodes \u00b7 11 edges \u00b7 9/9 checks"},{"id": "blueprint","artifact": "docs/gallery/artifacts/production-deployment.architecture.html",- "artifactSha256": "e2b4168de0170e58a04a72966438770e3dade7e62bf57dc8b108dc33d65cfa58",+ "artifactSha256": "2f7ed9009ec158232317646506bc3d018dd70aa9ecd23a4da8914e8fe975b7ef","view": "request-boundary",- "eyebrow": "ARCHITECTURE · BLUEPRINT",+ "eyebrow": "ARCHITECTURE \u00b7 BLUEPRINT","title": "Production Deployment",- "receipt": "12 nodes · 12 edges · 9/9 checks"+ "receipt": "12 nodes \u00b7 12 edges \u00b7 9/9 checks"},{"id": "classic","artifact": "docs/gallery/artifacts/cache-miss.sequence.html",- "artifactSha256": "1a38f34911db256a86962512fbd744ed6ec894750b91256a0ca41ca543921d0b",+ "artifactSha256": "375b1a0a76688a4a4235f0e4b3c11cf8b22361a20d96fab002a95ee3ec05dd4d","view": "cache-fallback",- "eyebrow": "SEQUENCE · CLASSIC",+ "eyebrow": "SEQUENCE \u00b7 CLASSIC","title": "Cache Miss Request",- "receipt": "7 participants · 12 messages · 9/9 checks"+ "receipt": "7 participants \u00b7 12 messages \u00b7 9/9 checks"}]}diff --git a/docs/gallery.html b/docs/gallery.htmlindex 9e375c5f..55db4e34 100644--- a/docs/gallery.html+++ b/docs/gallery.html@@ -298,7 +298,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 11E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3ad7b10452fc1afe61008c2dd6eebf6348c7e694227f0b03f217bd1bac1fe046">3ad7b10452fc</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="30cfe23afa4bfa18c941e643d9e3a015f77113d706e22fd9fbf3ff3cca15889a">30cfe23afa4b</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html?present=1&play=1#view=happy-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -328,7 +328,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e2b4168de0170e58a04a72966438770e3dade7e62bf57dc8b108dc33d65cfa58">e2b4168de017</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2f7ed9009ec158232317646506bc3d018dd70aa9ecd23a4da8914e8fe975b7ef">2f7ed9009ec1</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html?present=1&play=1#view=request-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -357,7 +357,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1a38f34911db256a86962512fbd744ed6ec894750b91256a0ca41ca543921d0b">1a38f34911db</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="375b1a0a76688a4a4235f0e4b3c11cf8b22361a20d96fab002a95ee3ec05dd4d">375b1a0a7668</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html?present=1&play=1#view=cache-fallback" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -386,7 +386,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="75cdfb37ec8803c1c90738e76f2a7b64ba99db4d43cacb6d1f4e60b0948778d8">75cdfb37ec88</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="171229602d86069b4d4fffb2ee4c45a66f05d4d1b64f2fec9582a73c0ffa87c5">171229602d86</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html?present=1&play=1#view=approval-to-production" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -415,7 +415,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="61ae407a326474dbf1f02b1d46509d68a0b9e3faa3ec2138c67f86e72635cf5b">61ae407a3264</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="83e1e46befb14304ce87310126914cb1c62a0219da8f340ad3d041d493c544b5">83e1e46befb1</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html?present=1&play=1#view=mitigate-and-verify" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -444,7 +444,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c401af2063084329198bc915c0c3caec1c5156668dfd12c7f599f0573cb74814">c401af206308</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="a127eb84aad879120ca348a8947a71abbfbc563a501090f2927d0b9cc6c350fd">a127eb84aad8</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html?present=1&play=1#view=consent-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -473,7 +473,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="33bf7ef66adc0a3e9bb40d4269c6cb3976445c44b3284e2763a68035ccfb9013">33bf7ef66adc</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ee3e550cc4fc1f20b26040e7d20c06f916e0c9e2f4c53c52131235feb21a8cd0">ee3e550cc4fc</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html?present=1&play=1#view=work-and-retry" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -502,7 +502,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d8ddc6a43617e37ae514b187f1aba723f2bfe8b8cb080be0fb8479bded0ec0d4">d8ddc6a43617</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="dbe39972cd222052160cd6100a9f1c10da2a08728924ea661522e60610004993">dbe39972cd22</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html?present=1&play=1#view=order-transit" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -531,7 +531,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 6E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e11f2b1db9bb0c9659516f33a139c6c0e4f68c7a8ff264daf941e8bf4347f8bd">e11f2b1db9bb</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6145ead732d63c56bdc940f622e476e5ec68d31c13bc1546e77ad12fd9589156">6145ead732d6</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html?present=1&play=1#view=main-lifecycle" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -560,7 +560,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 6E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="a812754ab6358777fed0154da55222986873ed077f6197b700957b97d3c569bd">a812754ab635</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e121fb34a56080e3f89bd2e07f799ffe5f1fbf3a92a433f7ec05028f478f7416">e121fb34a560</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html?present=1&play=1#view=rollback-outcomes" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -589,7 +589,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 9E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3b6576e29920ce22343b48ab6ee8cb3c98aa1febc583b569e4af30543e37be96">3b6576e29920</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="25a1c1f60bde36dec1bd332092ff51ce6113f89058e60e71b252329be3f17f35">25a1c1f60bde</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/web-app.architecture.html?present=1&play=1#view=request-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -675,8 +675,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 818979,- "artifactSha256": "3ad7b10452fc1afe61008c2dd6eebf6348c7e694227f0b03f217bd1bac1fe046",+ "artifactBytes": 820372,+ "artifactSha256": "30cfe23afa4bfa18c941e643d9e3a015f77113d706e22fd9fbf3ff3cca15889a","sourceBytes": 5687,"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c","checks": [@@ -775,8 +775,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 820813,- "artifactSha256": "e2b4168de0170e58a04a72966438770e3dade7e62bf57dc8b108dc33d65cfa58",+ "artifactBytes": 822206,+ "artifactSha256": "2f7ed9009ec158232317646506bc3d018dd70aa9ecd23a4da8914e8fe975b7ef","sourceBytes": 5476,"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb","checks": [@@ -875,8 +875,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 814102,- "artifactSha256": "1a38f34911db256a86962512fbd744ed6ec894750b91256a0ca41ca543921d0b",+ "artifactBytes": 815495,+ "artifactSha256": "375b1a0a76688a4a4235f0e4b3c11cf8b22361a20d96fab002a95ee3ec05dd4d","sourceBytes": 4374,"sourceSha256": "9a799a3661c16cd6ab4f6373ff6a04da95a9ab70d93b0a349b668466f4912fd7","checks": [@@ -975,8 +975,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 815179,- "artifactSha256": "75cdfb37ec8803c1c90738e76f2a7b64ba99db4d43cacb6d1f4e60b0948778d8",+ "artifactBytes": 816572,+ "artifactSha256": "171229602d86069b4d4fffb2ee4c45a66f05d4d1b64f2fec9582a73c0ffa87c5","sourceBytes": 5164,"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91","checks": [@@ -1075,8 +1075,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 812508,- "artifactSha256": "61ae407a326474dbf1f02b1d46509d68a0b9e3faa3ec2138c67f86e72635cf5b",+ "artifactBytes": 813901,+ "artifactSha256": "83e1e46befb14304ce87310126914cb1c62a0219da8f340ad3d041d493c544b5","sourceBytes": 5375,"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b","checks": [@@ -1175,8 +1175,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 816419,- "artifactSha256": "c401af2063084329198bc915c0c3caec1c5156668dfd12c7f599f0573cb74814",+ "artifactBytes": 817812,+ "artifactSha256": "a127eb84aad879120ca348a8947a71abbfbc563a501090f2927d0b9cc6c350fd","sourceBytes": 5618,"sourceSha256": "91411404fb4828a3b7ea358f3a7b9877781c9e9dc9c04b42b6eb4a757281b59f","checks": [@@ -1275,8 +1275,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 813193,- "artifactSha256": "33bf7ef66adc0a3e9bb40d4269c6cb3976445c44b3284e2763a68035ccfb9013",+ "artifactBytes": 814586,+ "artifactSha256": "ee3e550cc4fc1f20b26040e7d20c06f916e0c9e2f4c53c52131235feb21a8cd0","sourceBytes": 4370,"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9","checks": [@@ -1375,8 +1375,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 820400,- "artifactSha256": "d8ddc6a43617e37ae514b187f1aba723f2bfe8b8cb080be0fb8479bded0ec0d4",+ "artifactBytes": 821793,+ "artifactSha256": "dbe39972cd222052160cd6100a9f1c10da2a08728924ea661522e60610004993","sourceBytes": 5433,"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e","checks": [@@ -1475,8 +1475,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 809522,- "artifactSha256": "e11f2b1db9bb0c9659516f33a139c6c0e4f68c7a8ff264daf941e8bf4347f8bd",+ "artifactBytes": 810915,+ "artifactSha256": "6145ead732d63c56bdc940f622e476e5ec68d31c13bc1546e77ad12fd9589156","sourceBytes": 4044,"sourceSha256": "7c0ad72ee7affbd6c6e4758b7520d61ddd4508c917acf36beabcad3ee7ca3ba7","checks": [@@ -1575,8 +1575,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 6,- "artifactBytes": 811064,- "artifactSha256": "a812754ab6358777fed0154da55222986873ed077f6197b700957b97d3c569bd",+ "artifactBytes": 812457,+ "artifactSha256": "e121fb34a56080e3f89bd2e07f799ffe5f1fbf3a92a433f7ec05028f478f7416","sourceBytes": 4274,"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71","checks": [@@ -1675,8 +1675,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 811157,- "artifactSha256": "3b6576e29920ce22343b48ab6ee8cb3c98aa1febc583b569e4af30543e37be96",+ "artifactBytes": 812550,+ "artifactSha256": "25a1c1f60bde36dec1bd332092ff51ce6113f89058e60e71b252329be3f17f35","sourceBytes": 3793,"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf","checks": [diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.htmlindex 33692ec3..ab527e48 100644--- a/docs/gallery/artifacts/agent-run.lifecycle.html+++ b/docs/gallery/artifacts/agent-run.lifecycle.html@@ -6436,7 +6436,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6451,6 +6460,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.htmlindex c44cd78c..b00d4ddf 100644--- a/docs/gallery/artifacts/agent-tool-call.workflow.html+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html@@ -6507,7 +6507,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6522,6 +6531,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.htmlindex 217eaf06..508ac142 100644--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html@@ -6528,7 +6528,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6543,6 +6552,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.htmlindex 7de50a1c..486d5c61 100644--- a/docs/gallery/artifacts/cache-miss.sequence.html+++ b/docs/gallery/artifacts/cache-miss.sequence.html@@ -6516,7 +6516,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6531,6 +6540,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.htmlindex e5d14d44..3d61fc52 100644--- a/docs/gallery/artifacts/deployment-release.lifecycle.html+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html@@ -6462,7 +6462,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6477,6 +6486,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.htmlindex a70c75e1..6c96a883 100644--- a/docs/gallery/artifacts/event-stream.dataflow.html+++ b/docs/gallery/artifacts/event-stream.dataflow.html@@ -6540,7 +6540,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6555,6 +6564,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.htmlindex ce5f5168..7b9acc26 100644--- a/docs/gallery/artifacts/incident-response.workflow.html+++ b/docs/gallery/artifacts/incident-response.workflow.html@@ -6467,7 +6467,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6482,6 +6491,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.htmlindex 08f32fb3..7389fb23 100644--- a/docs/gallery/artifacts/product-analytics.dataflow.html+++ b/docs/gallery/artifacts/product-analytics.dataflow.html@@ -6501,7 +6501,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6516,6 +6525,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.htmlindex 5054e853..20dd9283 100644--- a/docs/gallery/artifacts/production-deployment.architecture.html+++ b/docs/gallery/artifacts/production-deployment.architecture.html@@ -6532,7 +6532,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6547,6 +6556,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.htmlindex eed09a79..e8c9a011 100644--- a/docs/gallery/artifacts/release-delivery.workflow.html+++ b/docs/gallery/artifacts/release-delivery.workflow.html@@ -6493,7 +6493,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6508,6 +6517,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.htmlindex ff65a3e5..8ff919d7 100644--- a/docs/gallery/artifacts/web-app.architecture.html+++ b/docs/gallery/artifacts/web-app.architecture.html@@ -6465,7 +6465,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6480,6 +6489,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.jsonindex 94c4a3e7..69220c22 100644--- a/docs/gallery/manifest.json+++ b/docs/gallery/manifest.json@@ -27,8 +27,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 818979,- "artifactSha256": "3ad7b10452fc1afe61008c2dd6eebf6348c7e694227f0b03f217bd1bac1fe046",+ "artifactBytes": 820372,+ "artifactSha256": "30cfe23afa4bfa18c941e643d9e3a015f77113d706e22fd9fbf3ff3cca15889a","sourceBytes": 5687,"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c","checks": [@@ -127,8 +127,8 @@"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 820813,- "artifactSha256": "e2b4168de0170e58a04a72966438770e3dade7e62bf57dc8b108dc33d65cfa58",+ "artifactBytes": 822206,+ "artifactSha256": "2f7ed9009ec158232317646506bc3d018dd70aa9ecd23a4da8914e8fe975b7ef","sourceBytes": 5476,"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb","checks": [@@ -227,8 +227,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 814102,- "artifactSha256": "1a38f34911db256a86962512fbd744ed6ec894750b91256a0ca41ca543921d0b",+ "artifactBytes": 815495,+ "artifactSha256": "375b1a0a76688a4a4235f0e4b3c11cf8b22361a20d96fab002a95ee3ec05dd4d","sourceBytes": 4374,"sourceSha256": "9a799a3661c16cd6ab4f6373ff6a04da95a9ab70d93b0a349b668466f4912fd7","checks": [@@ -327,8 +327,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 815179,- "artifactSha256": "75cdfb37ec8803c1c90738e76f2a7b64ba99db4d43cacb6d1f4e60b0948778d8",+ "artifactBytes": 816572,+ "artifactSha256": "171229602d86069b4d4fffb2ee4c45a66f05d4d1b64f2fec9582a73c0ffa87c5","sourceBytes": 5164,"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91","checks": [@@ -427,8 +427,8 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 812508,- "artifactSha256": "61ae407a326474dbf1f02b1d46509d68a0b9e3faa3ec2138c67f86e72635cf5b",+ "artifactBytes": 813901,+ "artifactSha256": "83e1e46befb14304ce87310126914cb1c62a0219da8f340ad3d041d493c544b5","sourceBytes": 5375,"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b","checks": [@@ -527,8 +527,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 816419,- "artifactSha256": "c401af2063084329198bc915c0c3caec1c5156668dfd12c7f599f0573cb74814",+ "artifactBytes": 817812,+ "artifactSha256": "a127eb84aad879120ca348a8947a71abbfbc563a501090f2927d0b9cc6c350fd","sourceBytes": 5618,"sourceSha256": "91411404fb4828a3b7ea358f3a7b9877781c9e9dc9c04b42b6eb4a757281b59f","checks": [@@ -627,8 +627,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 813193,- "artifactSha256": "33bf7ef66adc0a3e9bb40d4269c6cb3976445c44b3284e2763a68035ccfb9013",+ "artifactBytes": 814586,+ "artifactSha256": "ee3e550cc4fc1f20b26040e7d20c06f916e0c9e2f4c53c52131235feb21a8cd0","sourceBytes": 4370,"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9","checks": [@@ -727,8 +727,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 820400,- "artifactSha256": "d8ddc6a43617e37ae514b187f1aba723f2bfe8b8cb080be0fb8479bded0ec0d4",+ "artifactBytes": 821793,+ "artifactSha256": "dbe39972cd222052160cd6100a9f1c10da2a08728924ea661522e60610004993","sourceBytes": 5433,"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e","checks": [@@ -827,8 +827,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 809522,- "artifactSha256": "e11f2b1db9bb0c9659516f33a139c6c0e4f68c7a8ff264daf941e8bf4347f8bd",+ "artifactBytes": 810915,+ "artifactSha256": "6145ead732d63c56bdc940f622e476e5ec68d31c13bc1546e77ad12fd9589156","sourceBytes": 4044,"sourceSha256": "7c0ad72ee7affbd6c6e4758b7520d61ddd4508c917acf36beabcad3ee7ca3ba7","checks": [@@ -927,8 +927,8 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 6,- "artifactBytes": 811064,- "artifactSha256": "a812754ab6358777fed0154da55222986873ed077f6197b700957b97d3c569bd",+ "artifactBytes": 812457,+ "artifactSha256": "e121fb34a56080e3f89bd2e07f799ffe5f1fbf3a92a433f7ec05028f478f7416","sourceBytes": 4274,"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71","checks": [@@ -1027,8 +1027,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 811157,- "artifactSha256": "3b6576e29920ce22343b48ab6ee8cb3c98aa1febc583b569e4af30543e37be96",+ "artifactBytes": 812550,+ "artifactSha256": "25a1c1f60bde36dec1bd332092ff51ce6113f89058e60e71b252329be3f17f35","sourceBytes": 3793,"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf","checks": [diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.htmlindex b99bf226..7891f29d 100644--- a/examples/checkout-platform-delta.html+++ b/examples/checkout-platform-delta.html@@ -11224,7 +11224,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -11239,6 +11248,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });@@ -26451,7 +26476,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -26466,6 +26500,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.jsonindex 7b8ad355..8d57bd9f 100644--- a/examples/checkout-platform-delta.receipt.json+++ b/examples/checkout-platform-delta.receipt.json@@ -219,8 +219,8 @@"Boundary identity is conservatively derived from kind + label."],"artifact": {- "sha256": "c6ad05b9e1852f1dd68c8c076e03d026f00ad8edcfe7fbd186f82b73db923aae",- "bytes": 2215875+ "sha256": "179137eb8cb95618c8e89929e62ba62cdcb5709bbf519a62e1d8e44f972da23a",+ "bytes": 2218769},"validation": {"checksPassed": 28,diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.htmlindex 08f32fb3..7389fb23 100644--- a/examples/dataflow-product-analytics.html+++ b/examples/dataflow-product-analytics.html@@ -6501,7 +6501,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6516,6 +6525,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.htmlindex 33692ec3..ab527e48 100644--- a/examples/lifecycle-agent-run.html+++ b/examples/lifecycle-agent-run.html@@ -6436,7 +6436,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6451,6 +6460,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.htmlindex 7de50a1c..486d5c61 100644--- a/examples/sequence-cache-miss-request.html+++ b/examples/sequence-cache-miss-request.html@@ -6516,7 +6516,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6531,6 +6540,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.htmlindex ff65a3e5..8ff919d7 100644--- a/examples/web-app-rendered.html+++ b/examples/web-app-rendered.html@@ -6465,7 +6465,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6480,6 +6489,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/examples/web-app.html b/examples/web-app.htmlindex ff65a3e5..8ff919d7 100644--- a/examples/web-app.html+++ b/examples/web-app.html@@ -6465,7 +6465,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6480,6 +6489,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.htmlindex c44cd78c..b00d4ddf 100644--- a/examples/workflow-agent-tool-call-rendered.html+++ b/examples/workflow-agent-tool-call-rendered.html@@ -6507,7 +6507,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -6522,6 +6531,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/scripts/generate-viewer.mjs b/scripts/generate-viewer.mjsindex 7415279d..9e868001 100644--- a/scripts/generate-viewer.mjs+++ b/scripts/generate-viewer.mjs@@ -6,21 +6,39 @@ import { fileURLToPath } from 'node:url';const 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+// 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.const fragments = [- ['/* 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'],+ { 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 },];+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);@@ -28,19 +46,27 @@ try {throw new Error('Usage: node scripts/generate-viewer.mjs [--check]');}let generated = fs.readFileSync(path.join(root, 'viewer/template.source.html'), 'utf8');- for (const [marker, filename] of fragments) {- const source = fs.readFileSync(path.join(root, 'viewer', filename), 'utf8');+ for (const fragment of fragments) {+ const { marker, file, indent } = fragment;+ 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)) {+ 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) {@@ -59,4 +85,4 @@ try {} catch (error) {console.error(error.message);process.exitCode = 1;-}+}\ No newline at end of filediff --git a/viewer/export.js b/viewer/export.jsindex 7337ec07..2d77c8b8 100644--- a/viewer/export.js+++ b/viewer/export.js@@ -463,7 +463,16 @@function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ // If the embedded JetBrains Mono face has not finished loading (e.g.+ // the user opens the artifact offline before the data: URLs decode,+ // or a CSP blocks font decoding), `ctx.measureText` would otherwise+ // fall back to the browser's default monospace — which produces+ // measurements that do not match what the SVG renders side by side+ // and silently overflows labels. Detect that and force the fallback+ // font that the SVG layer already uses so the two stay in lockstep.+ var family = fontsLoaded()+ ? "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"+ : 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';while (size > minSize) {ctx.font = (weight || '600') + ' ' + size + 'px ' + family;if (ctx.measureText(value).width <= maxWidth) return value;@@ -478,6 +487,22 @@return value + suffix;}+ // Returns true once every face of the bundled JetBrains Mono family has+ // actually decoded and is usable for measurement. `document.fonts.check`+ // is the only reliable way to know this — the @font-face `src` is a+ // data: URL that never fires a network request, so any earlier check+ // (e.g. CSS parsing or `document.fonts.ready`) can resolve while the+ // decoder is still working through the base64 payload.+ function fontsLoaded() {+ var fonts = typeof document !== 'undefined' && document.fonts;+ if (!fonts || typeof fonts.check !== 'function') return true;+ try {+ return fonts.check('700 16px "JetBrains Mono"');+ } catch (_) {+ return true;+ }+ }+function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {throw exportError('viewer.export.error.canvasUnavailable', { label: label });diff --git a/viewer/template.source.html b/viewer/template.source.htmlindex fbd46652..52245285 100644--- a/viewer/template.source.html+++ b/viewer/template.source.html@@ -166,2964 +166,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }</style><style>- /* ==========================================================- 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- 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 {- display: grid;- grid-template-columns: minmax(0, 1fr) auto;- align-items: start;- gap: 0.75rem;- padding: 0.7rem 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-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;- }+/* ARCHIFY:TOKENS */body { background: #ffffff !important; padding: 0; }.container { max-width: none; }.toolbar, .diagram-nav, .focus-chip, .guided-views, .archify-toast, .no-print { display: none !important; }diff --git a/viewer/tokens.css b/viewer/tokens.cssnew file mode 100644index 00000000..6e474f69--- /dev/null+++ b/viewer/tokens.css@@ -0,0 +1,2958 @@+/* ==========================================================+ 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+ 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 {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.75rem;+ padding: 0.7rem 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-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;+ }