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
feat(viewer): glow-boosted Live cascade, Still default, and guide onboarding
tt-a1i54d9f1cd8fb2
diff --git a/archify.zip b/archify.zipindex bf58992a..f7910ef7 100644Binary files a/archify.zip and b/archify.zip differdiff --git a/archify/assets/template.html b/archify/assets/template.htmlindex 867566b9..c3e4300e 100644--- a/archify/assets/template.html+++ b/archify/assets/template.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5448,7 +5469,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="{{i18n:viewer.nav.radar}}" aria-expanded="false" aria-controls="overview-map" title="{{i18n:viewer.nav.radar.title}}">{{i18n:viewer.nav.radar.short}}</button><button id="btn-semantic-lens" type="button" aria-label="{{i18n:viewer.nav.lens}}" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="{{i18n:viewer.nav.lens.title}}">{{i18n:viewer.nav.lens.short}}</button><button id="btn-node-finder" type="button" aria-label="{{i18n:viewer.nav.find}}" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="{{i18n:viewer.nav.find.title}}" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="{{i18n:viewer.nav.guide}}" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="{{i18n:viewer.nav.guide.title}}"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="{{i18n:viewer.nav.guide}}" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="{{i18n:viewer.nav.guide.title}}"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="{{i18n:viewer.nav.zoomOut}}" title="{{i18n:viewer.nav.zoomOut.title}}"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="{{i18n:viewer.nav.reset}}" title="{{i18n:viewer.nav.reset.title}}"><span class="diagram-nav-detail" data-view-detail hidden>{{i18n:viewer.nav.read}}</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="{{i18n:viewer.nav.zoomIn}}" title="{{i18n:viewer.nav.zoomIn.title}}"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7399,10 +7420,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7415,9 +7436,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7426,20 +7450,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7454,6 +7482,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7476,7 +7505,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7497,8 +7526,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7648,7 +7677,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14092,7 +14121,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14192,7 +14223,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14211,6 +14244,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/class-payment-processors-rendered.html b/archify/examples/class-payment-processors-rendered.htmlindex 99f5a260..d675d366 100644--- a/archify/examples/class-payment-processors-rendered.html+++ b/archify/examples/class-payment-processors-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5677,7 +5698,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7590,10 +7611,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7606,9 +7627,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7617,20 +7641,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7645,6 +7673,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7667,7 +7696,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7688,8 +7717,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7839,7 +7868,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14283,7 +14312,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14383,7 +14414,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14402,6 +14435,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/class-payments-rendered.html b/archify/examples/class-payments-rendered.htmlindex c533babd..93df1841 100644--- a/archify/examples/class-payments-rendered.html+++ b/archify/examples/class-payments-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5483,7 +5504,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7396,10 +7417,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7412,9 +7433,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7423,20 +7447,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7451,6 +7479,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7473,7 +7502,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7494,8 +7523,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7645,7 +7674,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14089,7 +14118,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14189,7 +14220,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14208,6 +14241,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.htmlindex bba091cb..8cb4af58 100644--- a/archify/examples/dataflow-product-analytics.html+++ b/archify/examples/dataflow-product-analytics.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5563,7 +5584,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7510,10 +7531,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7526,9 +7547,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7537,20 +7561,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7565,6 +7593,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7587,7 +7616,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7608,8 +7637,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7759,7 +7788,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14203,7 +14232,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14303,7 +14334,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14322,6 +14355,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/erd-orders-rendered.html b/archify/examples/erd-orders-rendered.htmlindex 0e4c938e..b4967214 100644--- a/archify/examples/erd-orders-rendered.html+++ b/archify/examples/erd-orders-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5731,7 +5752,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7678,10 +7699,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7694,9 +7715,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7705,20 +7729,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7733,6 +7761,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7755,7 +7784,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7776,8 +7805,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7927,7 +7956,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14371,7 +14400,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14471,7 +14502,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14490,6 +14523,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.htmlindex ed85d781..23f114cb 100644--- a/archify/examples/lifecycle-agent-run.html+++ b/archify/examples/lifecycle-agent-run.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5589,7 +5610,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7522,10 +7543,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7538,9 +7559,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7549,20 +7573,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7577,6 +7605,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7599,7 +7628,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7620,8 +7649,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7771,7 +7800,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14215,7 +14244,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14315,7 +14346,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14334,6 +14367,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.htmlindex a2bbff81..6e99b1e8 100644--- a/archify/examples/sequence-cache-miss-request.html+++ b/archify/examples/sequence-cache-miss-request.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5578,7 +5599,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7525,10 +7546,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7541,9 +7562,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7552,20 +7576,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7580,6 +7608,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7602,7 +7631,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7623,8 +7652,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7774,7 +7803,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14218,7 +14247,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14318,7 +14349,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14337,6 +14370,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/subscription-billing-rendered.html b/archify/examples/subscription-billing-rendered.htmlindex dd559a59..bc6800bd 100644--- a/archify/examples/subscription-billing-rendered.html+++ b/archify/examples/subscription-billing-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5967,7 +5988,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7902,10 +7923,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7918,9 +7939,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7929,20 +7953,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7957,6 +7985,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7979,7 +8008,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -8000,8 +8029,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -8151,7 +8180,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14595,7 +14624,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14695,7 +14726,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14714,6 +14747,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/timeline-archify-dev-activity-rendered.html b/archify/examples/timeline-archify-dev-activity-rendered.htmlindex fa857618..552449c9 100644--- a/archify/examples/timeline-archify-dev-activity-rendered.html+++ b/archify/examples/timeline-archify-dev-activity-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5689,7 +5710,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7602,10 +7623,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7618,9 +7639,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7629,20 +7653,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7657,6 +7685,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7679,7 +7708,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7700,8 +7729,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7851,7 +7880,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14295,7 +14324,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14395,7 +14426,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14414,6 +14447,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/timeline-payment-incident-rendered.html b/archify/examples/timeline-payment-incident-rendered.htmlindex e500e070..84206dee 100644--- a/archify/examples/timeline-payment-incident-rendered.html+++ b/archify/examples/timeline-payment-incident-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5474,7 +5495,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7387,10 +7408,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7403,9 +7424,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7414,20 +7438,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7442,6 +7470,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7464,7 +7493,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7485,8 +7514,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7636,7 +7665,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14080,7 +14109,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14180,7 +14211,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14199,6 +14232,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/tree-archify-repository-rendered.html b/archify/examples/tree-archify-repository-rendered.htmlindex 98546636..bd22573f 100644--- a/archify/examples/tree-archify-repository-rendered.html+++ b/archify/examples/tree-archify-repository-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5708,7 +5729,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7621,10 +7642,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7637,9 +7658,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7648,20 +7672,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7676,6 +7704,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7698,7 +7727,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7719,8 +7748,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7870,7 +7899,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14314,7 +14343,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14414,7 +14445,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14433,6 +14466,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/tree-payment-platform-rendered.html b/archify/examples/tree-payment-platform-rendered.htmlindex ba380f50..726eace8 100644--- a/archify/examples/tree-payment-platform-rendered.html+++ b/archify/examples/tree-payment-platform-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5489,7 +5510,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7402,10 +7423,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7418,9 +7439,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7429,20 +7453,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7457,6 +7485,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7479,7 +7508,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7500,8 +7529,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7651,7 +7680,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14095,7 +14124,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14195,7 +14226,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14214,6 +14247,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/waterfall-checkout-request-rendered.html b/archify/examples/waterfall-checkout-request-rendered.htmlindex c9975b50..f0cd21ce 100644--- a/archify/examples/waterfall-checkout-request-rendered.html+++ b/archify/examples/waterfall-checkout-request-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5471,7 +5492,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7384,10 +7405,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7400,9 +7421,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7411,20 +7435,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7439,6 +7467,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7461,7 +7490,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7482,8 +7511,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7633,7 +7662,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14077,7 +14106,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14177,7 +14208,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14196,6 +14229,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/waterfall-example-rebuild-rendered.html b/archify/examples/waterfall-example-rebuild-rendered.htmlindex c659705a..a4e74ca2 100644--- a/archify/examples/waterfall-example-rebuild-rendered.html+++ b/archify/examples/waterfall-example-rebuild-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5657,7 +5678,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7570,10 +7591,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7586,9 +7607,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7597,20 +7621,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7625,6 +7653,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7647,7 +7676,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7668,8 +7697,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7819,7 +7848,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14263,7 +14292,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14363,7 +14394,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14382,6 +14415,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.htmlindex 2d2f5c73..f1ec2f0d 100644--- a/archify/examples/web-app-rendered.html+++ b/archify/examples/web-app-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5553,7 +5574,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7498,10 +7519,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7514,9 +7535,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7525,20 +7549,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7553,6 +7581,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7575,7 +7604,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7596,8 +7625,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7747,7 +7776,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14191,7 +14220,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14291,7 +14322,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14310,6 +14343,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.htmlindex 03a112de..fa06f3f1 100644--- a/archify/examples/workflow-agent-tool-call-rendered.html+++ b/archify/examples/workflow-agent-tool-call-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5583,7 +5604,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7516,10 +7537,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7532,9 +7553,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7543,20 +7567,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7571,6 +7599,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7593,7 +7622,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7614,8 +7643,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7765,7 +7794,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14209,7 +14238,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14309,7 +14340,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14328,6 +14361,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gifindex fa9ce0b4..ce8c03ba 100644Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differdiff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.jsonindex 1392c426..b353a117 100644--- a/docs/assets/archify-live-proof.json+++ b/docs/assets/archify-live-proof.json@@ -7,13 +7,13 @@"fps": 10,"frameCount": 54,"durationSeconds": 5.4,- "bytes": 802500,- "sha256": "6f544ff0cd39af9133565f8bb382400b337d4b528e66e5c945e32fb26e960abd",+ "bytes": 815471,+ "sha256": "b2c9eaa7bbe4c064900196d7c6fa47907b86b2127610d9c92f26a5308ea28781","scenes": [{"id": "signal-flow","artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",- "artifactSha256": "7b85a3fa92453f8451edf2aa58da01ac88bbd6a2f32c576b6c80eabf4b72f474",+ "artifactSha256": "b1db6e8c35e9367041624f2a8bd13940640412ee9a2c11c9d6c13fb70697a65f","hash": "#focus=planner&reach=downstream","eyebrow": "WORKFLOW · SIGNAL FLOW","title": "Agent Tool Call",@@ -22,7 +22,7 @@{"id": "blueprint","artifact": "docs/gallery/artifacts/production-deployment.architecture.html",- "artifactSha256": "f48db6ff6de921eff196c227df687ab873cc958ddbb712071d774efeef0193cb",+ "artifactSha256": "9e087a2150df1bec7d391d528c60d40c393cda6151c8dd4057e10bf0c8f49468","hash": "#lens=backend~database","eyebrow": "ARCHITECTURE · BLUEPRINT","title": "Production Deployment",@@ -31,7 +31,7 @@{"id": "classic","artifact": "docs/gallery/artifacts/cache-miss.sequence.html",- "artifactSha256": "6b75c13fa664a15317f51ff4cdeaac907723c9bb17b59085b3d8a469bf1a9288",+ "artifactSha256": "2de9824643d10d7ad4576c04e9072eeaa6bb16dae8393bff58228401b2425333","hash": "#route=web~db","eyebrow": "SEQUENCE · CLASSIC","title": "Cache Miss Request",diff --git a/docs/cases/mco-runtime.architecture.html b/docs/cases/mco-runtime.architecture.htmlindex 2f152cc3..b6a37ff2 100644--- a/docs/cases/mco-runtime.architecture.html+++ b/docs/cases/mco-runtime.architecture.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5613,7 +5634,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7560,10 +7581,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7576,9 +7597,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7587,20 +7611,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7615,6 +7643,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7637,7 +7666,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7658,8 +7687,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7809,7 +7838,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14253,7 +14282,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14353,7 +14384,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14372,6 +14405,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery.html b/docs/gallery.htmlindex c8478a27..81ef6236 100644--- a/docs/gallery.html+++ b/docs/gallery.html@@ -302,7 +302,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="7b85a3fa92453f8451edf2aa58da01ac88bbd6a2f32c576b6c80eabf4b72f474">7b85a3fa9245</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b1db6e8c35e9367041624f2a8bd13940640412ee9a2c11c9d6c13fb70697a65f">b1db6e8c35e9</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html#focus=planner" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -332,7 +332,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="f48db6ff6de921eff196c227df687ab873cc958ddbb712071d774efeef0193cb">f48db6ff6de9</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9e087a2150df1bec7d391d528c60d40c393cda6151c8dd4057e10bf0c8f49468">9e087a2150df</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html#focus=gateway" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -361,7 +361,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="6b75c13fa664a15317f51ff4cdeaac907723c9bb17b59085b3d8a469bf1a9288">6b75c13fa664</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2de9824643d10d7ad4576c04e9072eeaa6bb16dae8393bff58228401b2425333">2de9824643d1</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html#focus=redis" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -390,7 +390,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="9ba06a26cc7c2b93459257ef2d98b3f460ab73dac1ef89d07e7f291b858fffc7">9ba06a26cc7c</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9b97b9f94b12e528334c4c5d5d8c081f6869ed8fc90f0bb4304872eabdaa10e1">9b97b9f94b12</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html#focus=approval" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -419,7 +419,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="8048c23554abffdcc8d02ee444feedc48c297036141613d307da38eae7e146ce">8048c23554ab</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="df4da2e710422d1390102cf175df5959f8771de5237c0d445c0ea110951b073a">df4da2e71042</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html#focus=triage" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -448,7 +448,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="e7c29ac8c73613f2f6ecb5a01191ad70f5147d16be4a4022348e07aeb1e9d3be">e7c29ac8c736</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c3231de748e64c314baf3149100666c15a50f5a0a7b6d9dc165b7b80155b3472">c3231de748e6</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html#focus=consent" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -477,7 +477,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="b1bdc8fb9f234e036b2a8a5af17c87a37a9fb9a1f2934d03d2f89c809d3687ec">b1bdc8fb9f23</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="018f66f1223d3435d02044e75836f62c2f263045c3992c8868060736f144d424">018f66f1223d</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html#focus=queue" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -506,7 +506,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="783fc91b16fe100da07171882c5154a0985816179bdb534786919c631bb43ab9">783fc91b16fe</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="27b7d2fa4cbc88e6753219c5c498f3c30d013dc53e98268d4f68922f43d95dfe">27b7d2fa4cbc</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html#focus=orders" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -535,7 +535,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 · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="abd3c6373430f9a500ce39ae5daa0b5c81f127807459a7ab8303af7631de8fd5">abd3c6373430</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="7da2a1843f3b0861eb3ceafdcfaac254fbb89341b562f8777dba11cae9ad07f1">7da2a1843f3b</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html#focus=approval" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -564,7 +564,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 · 15E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="db7ba874795029b12c844c52640b634469f1062627e810ab5767d68fb4121a69">db7ba8747950</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c6f7315c93c8818181ffe4250198250566906badc0d36791c3f9ea8c315b84a3">c6f7315c93c8</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html#focus=live" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -593,7 +593,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="bcd09b30aa15921e270a99a721355951c1ac5f3c27ff9c9ff2edd6cd2b6e6baf">bcd09b30aa15</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="7d3d01709639b71f056f50ee49e7c0c215460db466755f22584c7cd0819fc331">7d3d01709639</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/web-app.architecture.html#focus=api" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -622,7 +622,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">6N · 5E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6b0604dd91ddae3691f1ef009d5b6def47f3303153560c03b9061dfd07f4b1e5">6b0604dd91dd</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e8e38c0904f3991c9229e66f4f11692ed91cc7155ac145b10750b30647a0424e">e8e38c0904f3</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/orders.erd.html#focus=order" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>@@ -701,8 +701,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 802511,- "artifactSha256": "7b85a3fa92453f8451edf2aa58da01ac88bbd6a2f32c576b6c80eabf4b72f474",+ "artifactBytes": 805870,+ "artifactSha256": "b1db6e8c35e9367041624f2a8bd13940640412ee9a2c11c9d6c13fb70697a65f","sourceBytes": 4939,"sourceSha256": "d67965d50872c97e4ff3476271e645bf19fab6b3ab44e111bdb44b063e3aa36f","checks": [@@ -836,8 +836,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 805223,- "artifactSha256": "f48db6ff6de921eff196c227df687ab873cc958ddbb712071d774efeef0193cb",+ "artifactBytes": 808582,+ "artifactSha256": "9e087a2150df1bec7d391d528c60d40c393cda6151c8dd4057e10bf0c8f49468","sourceBytes": 4734,"sourceSha256": "610a5614667e8f108bdcf1769c9d7af5c3ce0fb62be3ea50550b10eb752e4bda","checks": [@@ -969,8 +969,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 797042,- "artifactSha256": "6b75c13fa664a15317f51ff4cdeaac907723c9bb17b59085b3d8a469bf1a9288",+ "artifactBytes": 800401,+ "artifactSha256": "2de9824643d10d7ad4576c04e9072eeaa6bb16dae8393bff58228401b2425333","sourceBytes": 3805,"sourceSha256": "f8486daa803fff6c295cecca4604c561fbbf9acb2e83326022b5a87639e8afe6","checks": [@@ -1103,8 +1103,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 798019,- "artifactSha256": "9ba06a26cc7c2b93459257ef2d98b3f460ab73dac1ef89d07e7f291b858fffc7",+ "artifactBytes": 801378,+ "artifactSha256": "9b97b9f94b12e528334c4c5d5d8c081f6869ed8fc90f0bb4304872eabdaa10e1","sourceBytes": 4510,"sourceSha256": "dbd5c174af66296caec372e7214cf4df7158b50a563508e16826b95ab8d1cd6c","checks": [@@ -1243,8 +1243,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 795339,- "artifactSha256": "8048c23554abffdcc8d02ee444feedc48c297036141613d307da38eae7e146ce",+ "artifactBytes": 798698,+ "artifactSha256": "df4da2e710422d1390102cf175df5959f8771de5237c0d445c0ea110951b073a","sourceBytes": 4723,"sourceSha256": "630be98449925d2716ecb8439f404b2bff5fe65ba905b0ad0baea6d96890c526","checks": [@@ -1429,8 +1429,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 799331,- "artifactSha256": "e7c29ac8c73613f2f6ecb5a01191ad70f5147d16be4a4022348e07aeb1e9d3be",+ "artifactBytes": 802690,+ "artifactSha256": "c3231de748e64c314baf3149100666c15a50f5a0a7b6d9dc165b7b80155b3472","sourceBytes": 5035,"sourceSha256": "8a635db9e51a5b1a8d2955b9d66f5b9a450e0a298432ce8f2e2f0be11f372e05","checks": [@@ -1564,8 +1564,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 797388,- "artifactSha256": "b1bdc8fb9f234e036b2a8a5af17c87a37a9fb9a1f2934d03d2f89c809d3687ec",+ "artifactBytes": 800747,+ "artifactSha256": "018f66f1223d3435d02044e75836f62c2f263045c3992c8868060736f144d424","sourceBytes": 3766,"sourceSha256": "b8c6c52f1763ede2933c77deb8da59b3e06917bc41d27e66df896136456b859a","checks": [@@ -1716,8 +1716,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 803251,- "artifactSha256": "783fc91b16fe100da07171882c5154a0985816179bdb534786919c631bb43ab9",+ "artifactBytes": 806610,+ "artifactSha256": "27b7d2fa4cbc88e6753219c5c498f3c30d013dc53e98268d4f68922f43d95dfe","sourceBytes": 4769,"sourceSha256": "3bdd77674282009c7c68d588cf8a3c495bc98a3be1b9c45327fd1801a6f83a23","checks": [@@ -1868,8 +1868,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 12,- "artifactBytes": 803397,- "artifactSha256": "abd3c6373430f9a500ce39ae5daa0b5c81f127807459a7ab8303af7631de8fd5",+ "artifactBytes": 806756,+ "artifactSha256": "7da2a1843f3b0861eb3ceafdcfaac254fbb89341b562f8777dba11cae9ad07f1","sourceBytes": 3260,"sourceSha256": "5ba36f5ce91ed428cb48b599e275424916d82b619b9a3231cbd1bbc3966fc54b","checks": [@@ -1990,8 +1990,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 15,- "artifactBytes": 810166,- "artifactSha256": "db7ba874795029b12c844c52640b634469f1062627e810ab5767d68fb4121a69",+ "artifactBytes": 813525,+ "artifactSha256": "c6f7315c93c8818181ffe4250198250566906badc0d36791c3f9ea8c315b84a3","sourceBytes": 4155,"sourceSha256": "e3dc105d03c1c9881160006cdace23cb5d8533803e337caf0ec287c64e775275","checks": [@@ -2112,8 +2112,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 797762,- "artifactSha256": "bcd09b30aa15921e270a99a721355951c1ac5f3c27ff9c9ff2edd6cd2b6e6baf",+ "artifactBytes": 801121,+ "artifactSha256": "7d3d01709639b71f056f50ee49e7c0c215460db466755f22584c7cd0819fc331","sourceBytes": 3197,"sourceSha256": "95e051b27a9e4a3307e194c0f666fca4af51470be7e2228d400ff48aea5b353b","checks": [@@ -2258,8 +2258,8 @@ receipt 108 checks / 12 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 6,"edgeCount": 5,- "artifactBytes": 811979,- "artifactSha256": "6b0604dd91ddae3691f1ef009d5b6def47f3303153560c03b9061dfd07f4b1e5",+ "artifactBytes": 815338,+ "artifactSha256": "e8e38c0904f3991c9229e66f4f11692ed91cc7155ac145b10750b30647a0424e","sourceBytes": 7321,"sourceSha256": "1777a374647084466f4d7ce3a968004be6ab70ac9cf82459b96bed7c556cdfdd","checks": [diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.htmlindex ed85d781..23f114cb 100644--- a/docs/gallery/artifacts/agent-run.lifecycle.html+++ b/docs/gallery/artifacts/agent-run.lifecycle.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5589,7 +5610,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7522,10 +7543,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7538,9 +7559,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7549,20 +7573,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7577,6 +7605,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7599,7 +7628,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7620,8 +7649,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7771,7 +7800,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14215,7 +14244,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14315,7 +14346,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14334,6 +14367,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.htmlindex 03a112de..fa06f3f1 100644--- a/docs/gallery/artifacts/agent-tool-call.workflow.html+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5583,7 +5604,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7516,10 +7537,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7532,9 +7553,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7543,20 +7567,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7571,6 +7599,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7593,7 +7622,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7614,8 +7643,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7765,7 +7794,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14209,7 +14238,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14309,7 +14340,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14328,6 +14361,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.htmlindex 790c3d39..0b802926 100644--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5590,7 +5611,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7537,10 +7558,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7553,9 +7574,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7564,20 +7588,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7592,6 +7620,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7614,7 +7643,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7635,8 +7664,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7786,7 +7815,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14230,7 +14259,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14330,7 +14361,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14349,6 +14382,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.htmlindex a2bbff81..6e99b1e8 100644--- a/docs/gallery/artifacts/cache-miss.sequence.html+++ b/docs/gallery/artifacts/cache-miss.sequence.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5578,7 +5599,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7525,10 +7546,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7541,9 +7562,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7552,20 +7576,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7580,6 +7608,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7602,7 +7631,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7623,8 +7652,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7774,7 +7803,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14218,7 +14247,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14318,7 +14349,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14337,6 +14370,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.htmlindex edd73142..4b294b57 100644--- a/docs/gallery/artifacts/deployment-release.lifecycle.html+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5639,7 +5660,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7586,10 +7607,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7602,9 +7623,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7613,20 +7637,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7641,6 +7669,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7663,7 +7692,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7684,8 +7713,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7835,7 +7864,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14279,7 +14308,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14379,7 +14410,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14398,6 +14431,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.htmlindex 50613032..b4199242 100644--- a/docs/gallery/artifacts/event-stream.dataflow.html+++ b/docs/gallery/artifacts/event-stream.dataflow.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5602,7 +5623,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7549,10 +7570,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7565,9 +7586,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7576,20 +7600,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7604,6 +7632,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7626,7 +7655,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7647,8 +7676,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7798,7 +7827,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14242,7 +14271,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14342,7 +14373,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14361,6 +14394,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.htmlindex b023af90..21ec11e6 100644--- a/docs/gallery/artifacts/incident-response.workflow.html+++ b/docs/gallery/artifacts/incident-response.workflow.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5529,7 +5550,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7476,10 +7497,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7492,9 +7513,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7503,20 +7527,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7531,6 +7559,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7553,7 +7582,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7574,8 +7603,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7725,7 +7754,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14169,7 +14198,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14269,7 +14300,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14288,6 +14321,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/orders.erd.html b/docs/gallery/artifacts/orders.erd.htmlindex 0e4c938e..b4967214 100644--- a/docs/gallery/artifacts/orders.erd.html+++ b/docs/gallery/artifacts/orders.erd.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5731,7 +5752,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7678,10 +7699,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7694,9 +7715,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7705,20 +7729,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7733,6 +7761,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7755,7 +7784,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7776,8 +7805,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7927,7 +7956,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14371,7 +14400,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14471,7 +14502,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14490,6 +14523,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.htmlindex bba091cb..8cb4af58 100644--- a/docs/gallery/artifacts/product-analytics.dataflow.html+++ b/docs/gallery/artifacts/product-analytics.dataflow.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5563,7 +5584,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7510,10 +7531,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7526,9 +7547,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7537,20 +7561,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7565,6 +7593,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7587,7 +7616,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7608,8 +7637,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7759,7 +7788,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14203,7 +14232,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14303,7 +14334,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14322,6 +14355,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.htmlindex 1716d343..6c81a53a 100644--- a/docs/gallery/artifacts/production-deployment.architecture.html+++ b/docs/gallery/artifacts/production-deployment.architecture.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5606,7 +5627,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7553,10 +7574,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7569,9 +7590,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7580,20 +7604,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7608,6 +7636,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7630,7 +7659,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7651,8 +7680,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7802,7 +7831,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14246,7 +14275,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14346,7 +14377,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14365,6 +14398,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.htmlindex 462be0bb..8500a1f9 100644--- a/docs/gallery/artifacts/release-delivery.workflow.html+++ b/docs/gallery/artifacts/release-delivery.workflow.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5555,7 +5576,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7502,10 +7523,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7518,9 +7539,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7529,20 +7553,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7557,6 +7585,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7579,7 +7608,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7600,8 +7629,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7751,7 +7780,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14195,7 +14224,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14295,7 +14326,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14314,6 +14347,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.htmlindex 2d2f5c73..f1ec2f0d 100644--- a/docs/gallery/artifacts/web-app.architecture.html+++ b/docs/gallery/artifacts/web-app.architecture.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5553,7 +5574,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7498,10 +7519,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7514,9 +7535,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7525,20 +7549,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7553,6 +7581,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7575,7 +7604,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7596,8 +7625,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7747,7 +7776,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14191,7 +14220,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14291,7 +14322,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14310,6 +14343,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.jsonindex 9a7d1798..c8c50524 100644--- a/docs/gallery/manifest.json+++ b/docs/gallery/manifest.json@@ -19,8 +19,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 802511,- "artifactSha256": "7b85a3fa92453f8451edf2aa58da01ac88bbd6a2f32c576b6c80eabf4b72f474",+ "artifactBytes": 805870,+ "artifactSha256": "b1db6e8c35e9367041624f2a8bd13940640412ee9a2c11c9d6c13fb70697a65f","sourceBytes": 4939,"sourceSha256": "d67965d50872c97e4ff3476271e645bf19fab6b3ab44e111bdb44b063e3aa36f","checks": [@@ -154,8 +154,8 @@"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 805223,- "artifactSha256": "f48db6ff6de921eff196c227df687ab873cc958ddbb712071d774efeef0193cb",+ "artifactBytes": 808582,+ "artifactSha256": "9e087a2150df1bec7d391d528c60d40c393cda6151c8dd4057e10bf0c8f49468","sourceBytes": 4734,"sourceSha256": "610a5614667e8f108bdcf1769c9d7af5c3ce0fb62be3ea50550b10eb752e4bda","checks": [@@ -287,8 +287,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 797042,- "artifactSha256": "6b75c13fa664a15317f51ff4cdeaac907723c9bb17b59085b3d8a469bf1a9288",+ "artifactBytes": 800401,+ "artifactSha256": "2de9824643d10d7ad4576c04e9072eeaa6bb16dae8393bff58228401b2425333","sourceBytes": 3805,"sourceSha256": "f8486daa803fff6c295cecca4604c561fbbf9acb2e83326022b5a87639e8afe6","checks": [@@ -421,8 +421,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 798019,- "artifactSha256": "9ba06a26cc7c2b93459257ef2d98b3f460ab73dac1ef89d07e7f291b858fffc7",+ "artifactBytes": 801378,+ "artifactSha256": "9b97b9f94b12e528334c4c5d5d8c081f6869ed8fc90f0bb4304872eabdaa10e1","sourceBytes": 4510,"sourceSha256": "dbd5c174af66296caec372e7214cf4df7158b50a563508e16826b95ab8d1cd6c","checks": [@@ -561,8 +561,8 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 795339,- "artifactSha256": "8048c23554abffdcc8d02ee444feedc48c297036141613d307da38eae7e146ce",+ "artifactBytes": 798698,+ "artifactSha256": "df4da2e710422d1390102cf175df5959f8771de5237c0d445c0ea110951b073a","sourceBytes": 4723,"sourceSha256": "630be98449925d2716ecb8439f404b2bff5fe65ba905b0ad0baea6d96890c526","checks": [@@ -747,8 +747,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 799331,- "artifactSha256": "e7c29ac8c73613f2f6ecb5a01191ad70f5147d16be4a4022348e07aeb1e9d3be",+ "artifactBytes": 802690,+ "artifactSha256": "c3231de748e64c314baf3149100666c15a50f5a0a7b6d9dc165b7b80155b3472","sourceBytes": 5035,"sourceSha256": "8a635db9e51a5b1a8d2955b9d66f5b9a450e0a298432ce8f2e2f0be11f372e05","checks": [@@ -882,8 +882,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 797388,- "artifactSha256": "b1bdc8fb9f234e036b2a8a5af17c87a37a9fb9a1f2934d03d2f89c809d3687ec",+ "artifactBytes": 800747,+ "artifactSha256": "018f66f1223d3435d02044e75836f62c2f263045c3992c8868060736f144d424","sourceBytes": 3766,"sourceSha256": "b8c6c52f1763ede2933c77deb8da59b3e06917bc41d27e66df896136456b859a","checks": [@@ -1034,8 +1034,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 803251,- "artifactSha256": "783fc91b16fe100da07171882c5154a0985816179bdb534786919c631bb43ab9",+ "artifactBytes": 806610,+ "artifactSha256": "27b7d2fa4cbc88e6753219c5c498f3c30d013dc53e98268d4f68922f43d95dfe","sourceBytes": 4769,"sourceSha256": "3bdd77674282009c7c68d588cf8a3c495bc98a3be1b9c45327fd1801a6f83a23","checks": [@@ -1186,8 +1186,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 12,- "artifactBytes": 803397,- "artifactSha256": "abd3c6373430f9a500ce39ae5daa0b5c81f127807459a7ab8303af7631de8fd5",+ "artifactBytes": 806756,+ "artifactSha256": "7da2a1843f3b0861eb3ceafdcfaac254fbb89341b562f8777dba11cae9ad07f1","sourceBytes": 3260,"sourceSha256": "5ba36f5ce91ed428cb48b599e275424916d82b619b9a3231cbd1bbc3966fc54b","checks": [@@ -1308,8 +1308,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 15,- "artifactBytes": 810166,- "artifactSha256": "db7ba874795029b12c844c52640b634469f1062627e810ab5767d68fb4121a69",+ "artifactBytes": 813525,+ "artifactSha256": "c6f7315c93c8818181ffe4250198250566906badc0d36791c3f9ea8c315b84a3","sourceBytes": 4155,"sourceSha256": "e3dc105d03c1c9881160006cdace23cb5d8533803e337caf0ec287c64e775275","checks": [@@ -1430,8 +1430,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 797762,- "artifactSha256": "bcd09b30aa15921e270a99a721355951c1ac5f3c27ff9c9ff2edd6cd2b6e6baf",+ "artifactBytes": 801121,+ "artifactSha256": "7d3d01709639b71f056f50ee49e7c0c215460db466755f22584c7cd0819fc331","sourceBytes": 3197,"sourceSha256": "95e051b27a9e4a3307e194c0f666fca4af51470be7e2228d400ff48aea5b353b","checks": [@@ -1576,8 +1576,8 @@"engineeringProfile": null,"nodeCount": 6,"edgeCount": 5,- "artifactBytes": 811979,- "artifactSha256": "6b0604dd91ddae3691f1ef009d5b6def47f3303153560c03b9061dfd07f4b1e5",+ "artifactBytes": 815338,+ "artifactSha256": "e8e38c0904f3991c9229e66f4f11692ed91cc7155ac145b10750b30647a0424e","sourceBytes": 7321,"sourceSha256": "1777a374647084466f4d7ce3a968004be6ab70ac9cf82459b96bed7c556cdfdd","checks": [diff --git a/examples/archify-repo-grid.html b/examples/archify-repo-grid.htmlindex b35243e6..74417808 100644--- a/examples/archify-repo-grid.html+++ b/examples/archify-repo-grid.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.17.0-dev.1">+ <meta name="generator" content="archify 3.0.2-dev.1"><meta name="archify-reader-contract" content="declared-wide-v1"><title>Archify Pipeline Diagram</title><script>@@ -218,7 +218,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.[data-theme="light"] {--bg: #f4f5f7;--grid: #e9edf2;- --canvas-dot: #d9dee5;+ --canvas-dot: #e2e7ec;--text: #111827;--text-muted: #5b6474;--text-dim: #9aa3b2;@@ -599,15 +599,35 @@ OTHER DEALINGS IN THE FONT SOFTWARE.color: var(--frontend-stroke);}- /* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored- SVG/viewBox while the runtime chooses a desktop width from the actual- vertical budget. This avoids device-specific files and breakpoint- jumps between a laptop and a tall monitor. */+ /* The reader owns only the outer scale. Compact automatic sequences fit at+ their authored text size or larger. Long sequences and waterfall rows+ favor reading width and page scroll; other diagrams keep height fitting.+ Small automatic canvases retain a modest scale inside a usable shell.+ Every strategy preserves the authored SVG/viewBox and semantic geometry. */.container {width: 100%;max-width: var(--archify-reader-width, 1440px);margin: 0 auto;}+ html[data-reader-area="true"] .diagram-container {+ min-height: var(--archify-diagram-min-height);+ display: flex;+ align-items: center;+ }+ html[data-reader-area="true"] .diagram-container > svg { flex-shrink: 0; }+ /* The original SVG legend can use the outer corner while the capped or fitted+ diagram stays centered. The container still clips all outer paint. */+ .diagram-container:has([data-reader-legend-corner]) > svg { overflow: visible; }+ .diagram-container [data-reader-legend-corner] {+ transform-origin: 0 0;+ transform-box: view-box;+ transform: var(--archify-reader-legend-transform);+ }+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {+ min-width: 0;+ max-width: var(--archify-diagram-max-width);+ margin-inline: auto;+ }@media (min-width: 768px) and (max-height: 920px) {.header { margin-bottom: 1rem; }.diagram-container { padding: 1rem; }@@ -806,7 +826,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.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 {+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-entry="running"] .diagram-container::before {content: "";position: absolute;inset: 0;@@ -988,8 +1008,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}.diagram-nav-icon {display: block;- width: 0.875rem;- height: 0.875rem;+ width: 0.95rem;+ height: 0.95rem;margin: auto;background: currentColor;-webkit-mask-position: center;@@ -1053,8 +1073,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE..diagram-nav #btn-overview-map::before,.diagram-nav #btn-semantic-lens::before {flex: none;- width: 0.875rem;- height: 0.875rem;+ width: 0.95rem;+ height: 0.95rem;background: currentColor;content: "";opacity: 0.85;@@ -1068,21 +1088,33 @@ OTHER DEALINGS IN THE FONT SOFTWARE..diagram-nav [data-view="out"],.diagram-nav [data-view="reset"],.diagram-nav [data-view="in"] {+ position: relative;border-radius: 0;- background: color-mix(in srgb, var(--text) 4.5%, transparent);+ background: color-mix(in srgb, var(--panel-border) 38%, transparent);}.diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }.diagram-nav [data-view="out"]::before { display: none; }.diagram-nav [data-view="reset"],.diagram-nav [data-view="in"] { margin-left: -0.0625rem; }.diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }+ .diagram-nav [data-view="reset"]::after,+ .diagram-nav [data-view="in"]::after {+ position: absolute;+ top: 0.55rem;+ bottom: 0.55rem;+ left: 0;+ width: 1px;+ background: color-mix(in srgb, var(--panel-border) 75%, transparent);+ content: "";+ pointer-events: none;+ }.diagram-nav [data-view="out"]:hover,.diagram-nav [data-view="reset"]:hover,- .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--panel-border) 60%, transparent); }.diagram-nav [data-view="out"]:disabled,.diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }.diagram-nav [data-view="out"]:disabled:hover,- .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--panel-border) 38%, transparent); }.diagram-nav [data-view="reset"] { min-width: 3.25rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav-detail,.diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }@@ -2326,7 +2358,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.gap: 0.55rem;margin: 0 0.55rem 0.55rem;padding: 0 0.7rem;- min-height: 2.6rem;+ min-height: 2.35rem;border: 1px solid var(--toolbar-border);border-radius: 0.55rem;background: color-mix(in srgb, var(--panel) 78%, transparent);@@ -2336,7 +2368,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE..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);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 14%, transparent);}.node-finder-input {appearance: none;@@ -2374,6 +2406,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.background: color-mix(in srgb, var(--panel) 54%, transparent);scroll-padding-block: 0.25rem;scrollbar-width: thin;+ scrollbar-color: color-mix(in srgb, var(--panel-border) 90%, transparent) transparent;+ }+ /* Slim overlay-style thumb instead of the chunky platform default. */+ .node-finder-results::-webkit-scrollbar { width: 10px; }+ .node-finder-results::-webkit-scrollbar-track { background: transparent; }+ .node-finder-results::-webkit-scrollbar-thumb {+ background: color-mix(in srgb, var(--panel-border) 85%, transparent);+ border: 3px solid transparent;+ border-radius: 999px;+ background-clip: padding-box;+ }+ .node-finder-results::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--text-muted) 65%, transparent);+ border: 3px solid transparent;+ background-clip: padding-box;}html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }.node-finder-result {@@ -2381,8 +2428,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.grid-template-columns: minmax(0, 1fr) auto;gap: 0.2rem 0.75rem;width: 100%;- min-height: 3.25rem;- padding: 0.58rem 0.65rem;+ min-height: 3rem;+ padding: 0.52rem 0.65rem;border: 0;border-radius: 0;background: transparent;@@ -2423,6 +2470,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.font-size: 0.625rem;font-style: normal;}+ /* A zero count is absence, not information — let it recede. */+ .node-finder-result em[data-zero] { color: var(--text-faint); }.node-finder[data-context^="route-"] .node-finder-result em {padding: 0.1rem 0.3rem;border: 1px solid color-mix(in srgb, currentColor 52%, transparent);@@ -2458,6 +2507,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.border-radius: 0.75rem;border: 1px solid var(--panel-border);padding: 1.125rem 1.25rem;+ /* Card notes are authored prose and may carry an unbreakable run such as a+ slash-joined pipeline or a long identifier. Without this, that run sets the+ card's min-content width, spills past its track in every rail placement,+ and pushes the whole page into horizontal overflow at desktop widths.+ `anywhere` rather than `break-word` because only `anywhere` shrinks the+ intrinsic minimum the layout is sized from. */+ overflow-wrap: anywhere;}html[data-preset="signal-flow"] .card {@@ -3494,6 +3550,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.background: transparent;box-shadow: none;}+ /* The motion button breathes on the same shared cycle as the cascade, so the+ chrome keeps time with the wave it controls. The cycle length lives on the+ diagram SVG, so chrome presets mirror it here. */+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot {+ animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite;+ }+ html[data-preset="signal-flow"] #btn-motion .motion-control-dot { --flow-cycle-chrome: 5.2s; }+ @keyframes archify-motion-dot-breathe {+ 0%, 100% { opacity: 1; transform: scale(1); }+ 46% { opacity: 0.55; transform: scale(0.72); }+ }.toolbar .export-menu {position: absolute;top: calc(100% + 0.125rem);@@ -4030,10 +4097,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {- filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ --ambient-node-base-filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ filter: var(--ambient-node-base-filter);}html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {- filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ --ambient-node-base-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ filter: var(--ambient-node-base-filter);}html[data-preset="classic"] .diagram-container > svg [data-edge-from] {stroke-linecap: round;@@ -4166,41 +4235,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.filter: drop-shadow(0 0 7px var(--frontend-stroke));outline: none;}- /* Verified Source Beacons are installed at runtime only for nodes whose- repository evidence passed the local revision/blob/line checks. They- live inside the owning node so every focus, route, story, and guided- view keeps one coherent opacity state. Export serialization removes- them before producing the canonical SVG or any derived visual. */- .source-evidence-beacon {- pointer-events: none;- opacity: 0.76;- transition: opacity 160ms ease, filter 160ms ease;- }- .source-evidence-beacon rect {- fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));- stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));- stroke-width: 1;- vector-effect: non-scaling-stroke;- }- .source-evidence-beacon text {- fill: var(--backend-stroke);- font-size: 5.5px;- font-weight: 800;- letter-spacing: 0.06em;- text-anchor: middle;- text-transform: uppercase;- }- svg [data-node-id]:hover .source-evidence-beacon,- svg [data-node-id]:focus-visible .source-evidence-beacon,- svg [data-node-id][data-focus-selected] .source-evidence-beacon {- opacity: 1;- filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));- }- svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }- svg[data-preset="blueprint"] .source-evidence-beacon rect {- rx: 0.8px;- filter: none;- }svg [data-legend-kind][role="button"] { cursor: pointer; }svg [data-legend-kind]:focus { outline: none; }svg [data-legend-hit] {@@ -4691,69 +4725,211 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }.c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }- /* Optional trace animation, enabled only by meta.animation = "trace".- The ordinary viewer performs one ambient pass and then restores the- authored solid/security/async line language. WebM samples the same- authored geometry into an explicit canvas timeline. */- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {- animation: archify-edge-flow 2.4s linear 1;- animation-delay: calc(var(--step, 0) * 160ms);+ /* Live turns each edge into a small light show on one shared cycle: a comet+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */+ svg[data-animation="trace"] {+ --flow-cycle: 6.4s;+ --flow-step-delay: 0.2s;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;+ --flow-head-peak: 0.95;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;+ }+ .ambient-edge-flow {+ fill: none;+ stroke: var(--arrow-emphasis);+ stroke-linecap: round;+ pointer-events: none;+ display: none;}- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {- animation: archify-edge-flow 2.4s linear 1;- animation-delay: calc(var(--step, 0) * 160ms);+ .ambient-flow-wake {+ stroke-width: 3.2;+ stroke-dasharray: var(--flow-dasharray, none);+ animation-name: archify-flow-wake;}- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {+ .ambient-flow-halo {+ stroke-width: 6;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ animation-name: archify-cascade-halo;+ }+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }+ .ambient-flow-tail {+ stroke-width: 2.4;+ stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));+ animation-name: archify-cascade-tail;+ }+ .ambient-flow-head {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;+ stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));+ animation-name: archify-cascade-head;+ }+ .ambient-flow-head.echo { --flow-echo-scale: 0.76; }+ .ambient-flow-tail.echo { --flow-echo-scale: 0.53; }+ .ambient-flow-ripple {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, white);+ stroke-width: 2;+ animation-name: archify-flow-ripple;+ }+ .ambient-flow-ripple-echo {+ stroke-width: 1.2;+ animation-name: archify-flow-ripple-echo;+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) .ambient-edge-flow {+ display: inline;+ animation-duration: var(--flow-cycle, 6.4s);+ animation-timing-function: linear;+ animation-iteration-count: infinite;+ animation-delay: var(--flow-delay, 0s);+ /* Without backwards fill a delayed layer would sit at its natural opacity+ (fully lit) until its phase arrives. */+ animation-fill-mode: backwards;+ }+ /* Each decorative flow follows its owning edge through tree visibility. */+ .ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }+ svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }+ svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ /* On light canvases the cascade reads by saturation instead of bloom: the+ head and inner ripple mix toward ink instead of white, and every layer's+ peak rises so the wave survives the bright background. */+ html[data-theme="light"] svg[data-animation="trace"] {+ --flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;+ --flow-tail-peak: 0.5;+ --flow-wake-peak: 0.13;+ --flow-ripple-echo-peak: 0.3;+ }+ html[data-theme="light"] .ambient-flow-head {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);+ stroke-width: 2.8;+ }+ html[data-theme="light"] .ambient-flow-ripple {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);+ }+ html[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {transform-box: fill-box;transform-origin: center;- animation: archify-node-pulse 3.6s ease-in-out 1;- animation-delay: calc(var(--step, 0) * 160ms);+ animation: archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation: archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation: archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ /* Node glow follows each node's authored step on the shared cycle; it does+ not track incoming edge arrivals. During the bounded entrance all three+ animations run; the entrance pulse is listed after the repeating glow and+ wins on filter until it completes. */+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) svg[data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s));+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ @keyframes archify-flow-wake {+ 0% { opacity: 0; }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 82%, 100% { opacity: 0; }+ }+ @keyframes archify-cascade-halo {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-tail {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }+ }+ @keyframes archify-cascade-head {+ 0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }+ 48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: 0; opacity: 0; }+ }+ @keyframes archify-flow-ripple {+ 0%, 60% { r: 2px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }+ }+ @keyframes archify-flow-ripple-echo {+ 0%, 63% { r: 2px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }+ }+ @keyframes archify-node-receive {+ 0%, 100% { filter: var(--ambient-node-base-filter, none); }+ 5%, 12% { filter: var(--ambient-node-base-filter,) drop-shadow(0 0 9px var(--arrow-emphasis)); }+ }+ @keyframes archify-node-enter {+ from { opacity: 0; }+ to { opacity: 1; }}- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {- stroke-linecap: round;- filter: drop-shadow(0 0 3px var(--arrow-emphasis));- animation-duration: 1.75s;- }- svg[data-preset="signal-flow"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 1.75s; }- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {- animation-duration: 3.1s;- }- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {- stroke-linecap: square;- filter: none;- animation-duration: 2.15s;- }- svg[data-preset="blueprint"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.15s; }- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {- animation-name: archify-blueprint-node-pulse;- animation-duration: 3.8s;- }- svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {- filter: none;- animation-duration: 2.2s;- }- svg[data-preset="editorial"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.2s; }- svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {- animation-name: archify-editorial-node-pulse;- animation-duration: 3.5s;- }- /* Embedded proofs stay static so proof grids are calm instead of leaving- ambient trace loops on. */- html[data-embed="true"] svg[data-animation="trace"] [data-animate],- html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {- animation: none !important;- stroke-dashoffset: 0;- }- html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],- html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {- animation: none !important;- stroke-dashoffset: 0;- }- @keyframes archify-edge-flow {- 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }- 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }- 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }- 100% { stroke-dashoffset: 0; opacity: 1; }+ @media print {+ .ambient-edge-flow { display: none !important; animation: none !important; }+ svg[data-animation="trace"] [data-animate="node"] { animation: none !important; }}@keyframes archify-node-pulse {0%, 72%, 100% { filter: none; stroke-width: 1.5; }@@ -4820,10 +4996,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.50% { opacity: 0.48; transform: scale(0.78); }}@media (prefers-reduced-motion: reduce) {+ .ambient-edge-flow { display: none !important; animation: none !important; }html[data-preset="signal-flow"] .diagram-container::before {animation: none !important;}.pulse-dot { animation: none !important; }+ .motion-control-dot { animation: none !important; }svg[data-animation="trace"] [data-animate] {animation: none !important;stroke-dashoffset: 0;@@ -4859,7 +5037,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.filter: none;}.relationship-pulse-overlay { display: none !important; }- .source-evidence-beacon,svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }}</style>@@ -4979,11 +5156,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.</div>- <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"ROUTE","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><!-- Main Diagram --><div class="diagram-container" data-detail-level="read"data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">- <svg viewBox="0 0 1064 356" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">+ <svg viewBox="0 0 1064 356" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14"><title id="archify-diagram-title">Archify Pipeline</title><desc id="archify-diagram-description">Grid placement demo — row/col instead of manual pos</desc><!-- Definitions -->@@ -5014,42 +5191,42 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<!-- Connection paths (before components for correct z-order) --><g data-graph-role="automatic-crossover" style="--step:0"><path data-graph-role="automatic-crossover-underlay" d="M 160 238 L 184 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="user" data-edge-to="agents" data-edge-key="0" data-composition-points="160,238;184,238" data-composition-crossover="halo" data-composition-independent="true" d="M 160 238 L 184 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="user" data-edge-to="agents" data-edge-key="0" data-composition-points="160,238;184,238" data-composition-crossover="halo" data-composition-independent="true" d="M 160 238 L 184 238" class="a-emphasis" data-animate="edge" style="--step:0" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:1"><path data-graph-role="automatic-crossover-underlay" d="M 244 208 L 244 160" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="agents" data-edge-to="skill" data-edge-key="1" data-composition-points="244,208;244,160" data-composition-crossover="halo" data-composition-independent="true" d="M 244 208 L 244 160" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ <path data-edge-from="agents" data-edge-to="skill" data-edge-key="1" data-composition-points="244,208;244,160" data-composition-crossover="halo" data-composition-independent="true" d="M 244 208 L 244 160" class="a-default" data-animate="edge" style="--step:1" stroke-width="1.5" marker-end="url(#arrowhead)"/></g><g data-graph-role="automatic-crossover" style="--step:2"><path data-graph-role="automatic-crossover-underlay" d="M 304 238 L 328 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="agents" data-edge-to="ir" data-edge-key="2" data-composition-points="304,238;328,238" data-composition-crossover="halo" data-composition-independent="true" d="M 304 238 L 328 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="agents" data-edge-to="ir" data-edge-key="2" data-composition-points="304,238;328,238" data-composition-crossover="halo" data-composition-independent="true" d="M 304 238 L 328 238" class="a-emphasis" data-animate="edge" style="--step:2" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:3"><path data-graph-role="automatic-crossover-underlay" d="M 388 208 L 388 160" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="ir" data-edge-to="schemas" data-edge-key="3" data-composition-points="388,208;388,160" data-composition-crossover="halo" data-composition-independent="true" d="M 388 208 L 388 160" class="a-security" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>+ <path data-edge-from="ir" data-edge-to="schemas" data-edge-key="3" data-composition-points="388,208;388,160" data-composition-crossover="halo" data-composition-independent="true" d="M 388 208 L 388 160" class="a-security" data-animate="edge" style="--step:3" stroke-width="1.5" marker-end="url(#arrowhead-security)"/></g><g data-graph-role="automatic-crossover" style="--step:4"><path data-graph-role="automatic-crossover-underlay" d="M 448 238 L 472 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="ir" data-edge-to="renderers" data-edge-key="4" data-composition-points="448,238;472,238" data-composition-crossover="halo" data-composition-independent="true" d="M 448 238 L 472 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="ir" data-edge-to="renderers" data-edge-key="4" data-composition-points="448,238;472,238" data-composition-crossover="halo" data-composition-independent="true" d="M 448 238 L 472 238" class="a-emphasis" data-animate="edge" style="--step:4" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:5"><path data-graph-role="automatic-crossover-underlay" d="M 592 238 L 616 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="renderers" data-edge-to="template" data-edge-key="5" data-composition-points="592,238;616,238" data-composition-crossover="halo" data-composition-independent="true" d="M 592 238 L 616 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="renderers" data-edge-to="template" data-edge-key="5" data-composition-points="592,238;616,238" data-composition-crossover="halo" data-composition-independent="true" d="M 592 238 L 616 238" class="a-emphasis" data-animate="edge" style="--step:5" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:6"><path data-graph-role="automatic-crossover-underlay" d="M 736 238 L 760 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="template" data-edge-to="checker" data-edge-key="6" data-composition-points="736,238;760,238" data-composition-crossover="halo" data-composition-independent="true" d="M 736 238 L 760 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="template" data-edge-to="checker" data-edge-key="6" data-composition-points="736,238;760,238" data-composition-crossover="halo" data-composition-independent="true" d="M 736 238 L 760 238" class="a-emphasis" data-animate="edge" style="--step:6" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:7"><path data-graph-role="automatic-crossover-underlay" d="M 880 238 L 904 238" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="checker" data-edge-to="html" data-edge-key="7" data-composition-points="880,238;904,238" data-composition-crossover="halo" data-composition-independent="true" d="M 880 238 L 904 238" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="checker" data-edge-to="html" data-edge-key="7" data-composition-points="880,238;904,238" data-composition-crossover="halo" data-composition-independent="true" d="M 880 238 L 904 238" class="a-emphasis" data-animate="edge" style="--step:7" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><!-- Components --><g id="node-user" data-node-id="user" data-node-label="You" tabindex="0" role="button" aria-label="Focus You, NL / Mermaid, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="NL / Mermaid" data-node-context="Architecture component"><title>You · NL / Mermaid · Architecture component</title><rect x="40" y="208" width="120" height="60" rx="6" class="c-mask"/>- <rect x="40" y="208" width="120" height="60" rx="6" class="c-external" stroke-width="1.5"/>+ <rect x="40" y="208" width="120" height="60" rx="6" class="c-external" data-animate="node" style="--step:0" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(46 214) scale(0.6875)"><rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/><path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>@@ -5061,7 +5238,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-agents" data-node-id="agents" data-node-label="Agent Hosts" tabindex="0" role="button" aria-label="Focus Agent Hosts, Claude · Codex, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="Claude · Codex" data-node-context="Architecture component"><title>Agent Hosts · Claude · Codex · Architecture component</title><rect x="184" y="208" width="120" height="60" rx="6" class="c-mask"/>- <rect x="184" y="208" width="120" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>+ <rect x="184" y="208" width="120" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:1" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(190 214) scale(0.6875)"><rect x="2" y="3" width="12" height="10" rx="2"/><path d="M2 6.5h12"/>@@ -5075,7 +5252,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-skill" data-node-id="skill" data-node-label="SKILL.md" tabindex="0" role="button" aria-label="Focus SKILL.md, layout rules, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="layout rules" data-node-context="Architecture component"><title>SKILL.md · layout rules · Architecture component</title><rect x="184" y="100" width="120" height="60" rx="6" class="c-mask"/>- <rect x="184" y="100" width="120" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>+ <rect x="184" y="100" width="120" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:2" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(190 106) scale(0.6875)"><rect x="2" y="3" width="12" height="10" rx="2"/><path d="M2 6.5h12"/>@@ -5089,7 +5266,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-ir" data-node-id="ir" data-node-label="JSON IR" tabindex="0" role="button" aria-label="Focus JSON IR, schema v1, archify/ skill package" aria-pressed="false" data-node-kind="messagebus" data-node-sublabel="schema v1" data-node-context="archify/ skill package"><title>JSON IR · schema v1 · archify/ skill package</title><rect x="328" y="208" width="120" height="60" rx="6" class="c-mask"/>- <rect x="328" y="208" width="120" height="60" rx="6" class="c-messagebus" stroke-width="1.5"/>+ <rect x="328" y="208" width="120" height="60" rx="6" class="c-messagebus" data-animate="node" style="--step:3" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="messagebus" class="semantic-sigil s-messagebus" transform="translate(334 214) scale(0.6875)"><path d="M2.5 4.5h11M2.5 8h11M2.5 11.5h11"/><circle cx="5" cy="4.5" r="1" class="sigil-fill"/>@@ -5103,7 +5280,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-schemas" data-node-id="schemas" data-node-label="Schema" tabindex="0" role="button" aria-label="Focus Schema, ajv, archify/ skill package" aria-pressed="false" data-node-kind="security" data-node-sublabel="ajv" data-node-context="archify/ skill package"><title>Schema · ajv · archify/ skill package</title><rect x="328" y="100" width="120" height="60" rx="6" class="c-mask"/>- <rect x="328" y="100" width="120" height="60" rx="6" class="c-security" stroke-width="1.5"/>+ <rect x="328" y="100" width="120" height="60" rx="6" class="c-security" data-animate="node" style="--step:4" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(334 106) scale(0.6875)"><path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/><path d="m5.8 8 1.5 1.5 3-3"/>@@ -5115,7 +5292,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-renderers" data-node-id="renderers" data-node-label="Renderers ×5" tabindex="0" role="button" aria-label="Focus Renderers ×5, archify/ skill package" aria-pressed="false" data-node-kind="backend" data-node-context="archify/ skill package"><title>Renderers ×5 · archify/ skill package</title><rect x="472" y="208" width="120" height="60" rx="6" class="c-mask"/>- <rect x="472" y="208" width="120" height="60" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="472" y="208" width="120" height="60" rx="6" class="c-backend" data-animate="node" style="--step:5" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(478 214) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5125,7 +5302,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-template" data-node-id="template" data-node-label="template.html" tabindex="0" role="button" aria-label="Focus template.html, archify/ skill package" aria-pressed="false" data-node-kind="frontend" data-node-context="archify/ skill package"><title>template.html · archify/ skill package</title><rect x="616" y="208" width="120" height="60" rx="6" class="c-mask"/>- <rect x="616" y="208" width="120" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>+ <rect x="616" y="208" width="120" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:6" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(622 214) scale(0.6875)"><rect x="2" y="3" width="12" height="10" rx="2"/><path d="M2 6.5h12"/>@@ -5138,7 +5315,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-checker" data-node-id="checker" data-node-label="Output Check" tabindex="0" role="button" aria-label="Focus Output Check, archify/ skill package" aria-pressed="false" data-node-kind="security" data-node-context="archify/ skill package"><title>Output Check · archify/ skill package</title><rect x="760" y="208" width="120" height="60" rx="6" class="c-mask"/>- <rect x="760" y="208" width="120" height="60" rx="6" class="c-security" stroke-width="1.5"/>+ <rect x="760" y="208" width="120" height="60" rx="6" class="c-security" data-animate="node" style="--step:7" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(766 214) scale(0.6875)"><path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/><path d="m5.8 8 1.5 1.5 3-3"/>@@ -5149,7 +5326,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-html" data-node-id="html" data-node-label="HTML" tabindex="0" role="button" aria-label="Focus HTML, artifact, Architecture component" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="artifact" data-node-context="Architecture component"><title>HTML · artifact · Architecture component</title><rect x="904" y="208" width="120" height="60" rx="6" class="c-mask"/>- <rect x="904" y="208" width="120" height="60" rx="6" class="c-cloud" stroke-width="1.5"/>+ <rect x="904" y="208" width="120" height="60" rx="6" class="c-cloud" data-animate="node" style="--step:8" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(910 214) scale(0.6875)"><path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/></g>@@ -5176,29 +5353,29 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<!-- Legend --><g data-legend="" data-legend-bridge=""><text x="40" y="320" class="t-primary" font-size="12" font-weight="650">Legend</text>- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="340" data-legend-width="83">+ <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="340" data-legend-width="93"><rect x="40" y="331" width="16" height="10" rx="2.5" class="c-frontend" stroke-width="1"/><text x="62" y="340" class="t-muted" font-size="10" font-weight="500">Frontend</text></g>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="145" data-legend-baseline="340" data-legend-width="78">- <rect x="145" y="331" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>- <text x="167" y="340" class="t-muted" font-size="10" font-weight="500">Backend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="155" data-legend-baseline="340" data-legend-width="87">+ <rect x="155" y="331" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>+ <text x="177" y="340" class="t-muted" font-size="10" font-weight="500">Backend</text></g>- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="340" data-legend-width="68">- <rect x="245" y="331" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>- <text x="267" y="340" class="t-muted" font-size="10" font-weight="500">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="264" data-legend-baseline="340" data-legend-width="74">+ <rect x="264" y="331" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="286" y="340" class="t-muted" font-size="10" font-weight="500">Cloud</text></g>- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="340" data-legend-width="83">- <rect x="335" y="331" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>- <text x="357" y="340" class="t-muted" font-size="10" font-weight="500">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="360" data-legend-baseline="340" data-legend-width="93">+ <rect x="360" y="331" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="382" y="340" class="t-muted" font-size="10" font-weight="500">Security</text></g>- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="440" data-legend-baseline="340" data-legend-width="98">- <rect x="440" y="331" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>- <text x="462" y="340" class="t-muted" font-size="10" font-weight="500">Message bus</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="475" data-legend-baseline="340" data-legend-width="112">+ <rect x="475" y="331" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>+ <text x="497" y="340" class="t-muted" font-size="10" font-weight="500">Message bus</text></g>- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="560" data-legend-baseline="340" data-legend-width="83">- <rect x="560" y="331" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>- <text x="582" y="340" class="t-muted" font-size="10" font-weight="500">External</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="609" data-legend-baseline="340" data-legend-width="93">+ <rect x="609" y="331" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="631" y="340" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg>@@ -5359,11 +5536,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p><button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes & index</span></button><div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">- <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">ROUTE</button><button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -5435,11 +5612,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function hasDrawableGeometry(element) {- if (!element) return false;+ if (!element || element.hasAttribute('data-ambient-flow-overlay')) return false;var geometries = /^(path|line|polyline)$/i.test(element.tagName)? [element]: Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));return geometries.some(function (geometry) {+ if (geometry.hasAttribute('data-ambient-flow-overlay')) return false;var source = geometry.tagName.toLowerCase() === 'path'? geometry.getAttribute('d'): geometry.tagName.toLowerCase() === 'polyline'@@ -5684,6 +5862,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function cleanExportClone(clone) {+ Array.prototype.forEach.call(clone.querySelectorAll('[data-ambient-flow-overlay]'), function (el) {+ el.remove();+ });+ // Route interaction rewrites CSS declarations through CSSOM. Normalize+ // authored motion delays on the clone so exported bytes do not depend+ // on whether the reader traced a route before downloading.+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (el) {+ var step = el.style.getPropertyValue('--step');+ if (step) el.setAttribute('style', el.style.cssText);+ });// View transforms and neighborhood focus are HTML exploration state,// never part of a downloaded full-diagram artifact.clone.style.removeProperty('transform');@@ -5704,6 +5892,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.clone.removeAttribute('data-route-journey');clone.removeAttribute('data-share-route');clone.removeAttribute('data-share-reach');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reader-legend-corner]'), function (el) {+ el.removeAttribute('data-reader-legend-corner');+ el.style.removeProperty('--archify-reader-legend-transform');+ });Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {el.remove();});@@ -5749,7 +5941,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.});Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {var originalLabel = el.getAttribute('data-source-evidence-original-label');- if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');+ if (originalLabel == null) el.removeAttribute('aria-label');else el.setAttribute('aria-label', originalLabel);el.removeAttribute('data-source-evidence-count');el.removeAttribute('data-source-evidence-original-label');@@ -5812,6 +6004,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {el.setAttribute('aria-pressed', 'false');});+ // A downloaded tree is always the complete hierarchy: collapsing is a+ // reading aid, never a silent change to what the artifact contains.+ clone.removeAttribute('data-tree-any-collapsed');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-hidden], [data-tree-collapsed]'), function (el) {+ el.removeAttribute('data-tree-hidden');+ el.removeAttribute('data-tree-collapsed');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-toggle]'), function (el) {+ el.setAttribute('aria-expanded', 'true');+ el.setAttribute('aria-label', el.getAttribute('data-tree-label-collapse') || '');+ });return !clone.hasAttribute('data-view-scale') &&!clone.hasAttribute('data-focus-active') &&!clone.hasAttribute('data-reach-active') &&@@ -5827,9 +6030,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.!clone.hasAttribute('data-route-journey') &&!clone.hasAttribute('data-share-route') &&!clone.hasAttribute('data-share-reach') &&+ !clone.hasAttribute('data-tree-any-collapsed') &&!clone.style.getPropertyValue('transform') &&!clone.style.getPropertyValue('clip-path') &&- clone.querySelectorAll('[data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;+ clone.querySelectorAll('[data-ambient-flow-overlay], [data-reader-legend-corner], [data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor], [data-tree-hidden], [data-tree-collapsed]').length === 0;}@@ -6605,13 +6809,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function samplesFor(element) {if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];+ var geometry = element;+ if (element.getAttribute('data-motion-path')) {+ geometry = element.cloneNode(false);+ geometry.setAttribute('d', element.getAttribute('data-motion-path'));+ }var length;- try { length = element.getTotalLength(); } catch (_) { return []; }+ try { length = geometry.getTotalLength(); } catch (_) { return []; }if (!Number.isFinite(length) || length <= 0) return [];var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));var points = [];for (var i = 0; i <= count; i++) {- points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));+ points.push(pointInRoot(element, geometry.getPointAtLength(length * i / count)));}return points;}@@ -7185,38 +7394,174 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var ownerToken = 0;var ownerCleanup = null;var lastEffectivePaused = null;- var ambientStarted = false;- var ambientPending = new Set();-- function detachAmbientBoundary() {- if (!svg) return;- svg.removeEventListener('animationend', onAmbientBoundary, true);- svg.removeEventListener('animationcancel', onAmbientBoundary, true);- }- function settleAmbient(reason) {- if (!capable) return false;- ambientStarted = true;- ambientPending.clear();- detachAmbientBoundary();- html.setAttribute('data-ambient-motion', 'settled');- html.setAttribute('data-ambient-settle-reason', reason || 'complete');- return true;- }- function onAmbientBoundary(event) {- if (!ambientPending.has(event.target)) return;- ambientPending.delete(event.target);- if (!ambientPending.size) settleAmbient('complete');- }- function startAmbient() {- if (ambientStarted || !capable) return false;- ambientStarted = true;- ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));- if (!ambientPending.size) return settleAmbient('empty');- svg.addEventListener('animationend', onAmbientBoundary, true);- svg.addEventListener('animationcancel', onAmbientBoundary, true);- html.setAttribute('data-ambient-motion', 'running');- html.removeAttribute('data-ambient-settle-reason');- return true;+ var entryStarted = false;+ var entryPending = new Set();+ var flowCount = 0;++ // Runtime decoration carries geometry and tree visibility only. Keep each+ // flow beside its authored edge so transforms, clipping and crossover+ // paint order apply.+ // Each edge carries a small light show: a comet (halo, tail, head)+ // cascading downstream on one shared cycle, a lingering wake, and a+ // ripple where the comet lands. Phases follow the authored step order:+ // source-node rank where known, chronological message order in sequence+ // diagrams.+ function readSecondsVar(name, fallback) {+ var value = '';+ try { value = window.getComputedStyle(svg).getPropertyValue(name); } catch (_) {}+ var seconds = parseFloat(value);+ return Number.isFinite(seconds) && seconds > 0 ? seconds : fallback;+ }+ function nodeStep(from) {+ // Authored IDs follow the schema's conservative identifier pattern, so+ // direct selector interpolation stays safe here. The semantic wrapper+ // groups the animated shape; its authored step ranks the node.+ var node = from ? svg.querySelector('[data-node-id="' + from + '"]') : null;+ var shape = node ? node.querySelector('[data-animate="node"]') : null;+ return shape && shape.style ? shape.style.getPropertyValue('--step') : '';+ }+ function edgePhase(shape, fallbackStep) {+ // Sequence messages have no data-edge-from; their own authored step is+ // already chronological, which is the right phase there.+ var raw = nodeStep(shape.getAttribute('data-edge-from'));+ if (raw === '' && shape.style) raw = shape.style.getPropertyValue('--step');+ var step = parseFloat(raw);+ return Number.isFinite(step) ? step : fallbackStep;+ }+ function createFlows() {+ var stepDelay = readSecondsVar('--flow-step-delay', 0.2);+ var cycle = readSecondsVar('--flow-cycle', 6.4);+ Array.prototype.forEach.call(svg.querySelectorAll('path[data-animate="edge"]'), function (shape, index) {+ var d = shape.getAttribute('data-motion-path') || shape.getAttribute('d');+ if (!d) return;+ var anchor = shape;+ // Tree Branches initializes after these overlays and includes their+ // inherited ancestors in its existing collapse/expand lifecycle.+ function tagOverlay(flow) {+ flow.setAttribute('data-ambient-flow-overlay', 'true');+ flow.setAttribute('aria-hidden', 'true');+ if (shape.hasAttribute('data-tree-ancestors')) {+ flow.setAttribute('data-tree-ancestors', shape.getAttribute('data-tree-ancestors'));+ }+ }+ function addPath(cls) {+ var flow = document.createElementNS('http://www.w3.org/2000/svg', 'path');+ flow.setAttribute('d', d);+ ['transform', 'mask', 'clip-path', 'vector-effect'].forEach(function (name) {+ if (shape.hasAttribute(name)) flow.setAttribute(name, shape.getAttribute(name));+ });+ flow.setAttribute('class', 'ambient-edge-flow ambient-flow-' + cls);+ tagOverlay(flow);+ shape.parentNode.insertBefore(flow, anchor.nextSibling);+ anchor = flow;+ return flow;+ }+ var wake = addPath('wake');+ var len = 0;+ try { len = wake.getTotalLength(); } catch (_) {}+ if (!(len > 0)) {+ wake.remove();+ return;+ }+ var glow = addPath('glow');+ var halo = addPath('halo');+ var tail = addPath('tail');+ var head = addPath('head'); var end = null;+ try { end = head.getPointAtLength(len); } catch (_) {}+ // Dashed authored lines keep their dash language through the show:+ // the wake brightens only the authored segments and never fills the+ // gaps back into a solid line.+ var authoredDash = '';+ try { authoredDash = window.getComputedStyle(shape).strokeDasharray; } catch (_) {}+ if (authoredDash && authoredDash !== 'none') {+ wake.style.setProperty('--flow-dasharray', authoredDash);+ }+ // Absolute caps keep the comet a slim streak on long edges instead+ // of growing into a bright slab; the tail disintegrates into a+ // sparkle of fragments behind the head, and --flow-shift trails+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;+ var trail = len >= 120+ ? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }+ : (len >= 60+ ? { pattern: '3 3 7 ' + (len - 13).toFixed(1), length: 13 }+ : { pattern: '5 ' + Math.max(4, len - 5).toFixed(1), length: 5 });+ var phase = edgePhase(shape, index) * stepDelay;+ var configs = [+ { flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },+ { flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },+ { flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },+ { flow: head, dash: headLen, shift: 0, delay: phase },+ ];+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });+ configs.forEach(function (cfg) {+ cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');+ cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');+ cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');+ cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));+ if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);+ });+ // The sonar pair lands where the comet does; keep it out of the+ // edge's mask so it can bloom over the node boundary.+ if (end) {+ ['ripple', 'ripple-echo'].forEach(function (kind) {+ var ripple = document.createElementNS('http://www.w3.org/2000/svg', 'circle');+ ripple.setAttribute('cx', end.x.toFixed(1));+ ripple.setAttribute('cy', end.y.toFixed(1));+ ripple.setAttribute('r', '2');+ if (shape.hasAttribute('transform')) ripple.setAttribute('transform', shape.getAttribute('transform'));+ ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);+ tagOverlay(ripple);+ ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));+ shape.parentNode.insertBefore(ripple, anchor.nextSibling);+ anchor = ripple;+ });+ }+ flowCount += 1;+ });+ }+ function settleEntry() {+ entryPending.clear();+ svg.removeEventListener('animationend', onEntryBoundary, true);+ svg.removeEventListener('animationcancel', onEntryBoundary, true);+ html.setAttribute('data-ambient-entry', 'settled');+ }+ function onEntryBoundary(event) {+ if (!entryPending.has(event.target)) return;+ // The entrance settles only when each node's pulse finishes; the+ // shorter fade-rise enter animation may end first without ending it.+ if (event.animationName && !/node-pulse/.test(event.animationName)) return;+ entryPending.delete(event.target);+ if (!entryPending.size) settleEntry();+ }+ function renderAmbient(suppressed) {+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');+ if (suppressed) {+ entryStarted = true;+ settleEntry();+ } else if (!entryStarted) {+ entryStarted = true;+ entryPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="node"]')));+ if (!entryPending.size) settleEntry();+ else {+ svg.addEventListener('animationend', onEntryBoundary, true);+ svg.addEventListener('animationcancel', onEntryBoundary, true);+ html.setAttribute('data-ambient-entry', 'running');+ }+ }}function readStored() {@@ -7224,8 +7569,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7251,11 +7596,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var systemPaused = reducedMotion();var paused = effectivePaused();html.setAttribute('data-motion', paused ? 'still' : 'live');- if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {- settleAmbient('suppressed');- } else if (!ambientStarted) {- startAmbient();- }+ renderAmbient(paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden'));btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');@@ -7360,7 +7701,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.html.removeAttribute('data-motion');html.removeAttribute('data-motion-owner');html.removeAttribute('data-ambient-motion');- html.removeAttribute('data-ambient-settle-reason');+ html.removeAttribute('data-ambient-entry');return {capable: false,pause: function () { return false; },@@ -7376,15 +7717,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};}+ createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);}document.addEventListener('visibilitychange', syncVisibility);+ if (typeof MutationObserver !== 'undefined') {+ var contextObserver = new MutationObserver(render);+ contextObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-share-playback'] });+ }if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {var ownerObserver = new MutationObserver(function () { publishOwner(); });ownerObserver.observe(svg, {@@ -7425,69 +7771,172 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Archify.sourceEvidence = (function () {var element = document.getElementById('archify-source-evidence-data');var payload = null;- var svgNamespace = 'http://www.w3.org/2000/svg';if (element) {try {var parsed = JSON.parse(element.textContent || 'null');if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;} catch (_) {}}- function installBeacons() {- if (!payload) return 0;- var svg = document.querySelector('.diagram-container svg');- if (!svg) return 0;- var installed = 0;- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {- var id = node.getAttribute('data-node-id');- var sources = payload.nodes[id];- if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;- var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');- var box;- try { box = (shape || node).getBBox(); } catch (_) { return; }- if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;-- var count = sources.length;- var label = viewerCount('viewer.passport.beacon', count);- var beacon = document.createElementNS(svgNamespace, 'g');- beacon.classList.add('source-evidence-beacon');- beacon.setAttribute('data-source-evidence-beacon', '');- beacon.setAttribute('aria-hidden', 'true');- var brandOffset = node.hasAttribute('data-node-brand') ? 24 : 0;- beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 35 - brandOffset) + ' ' + (box.y + 5) + ')');- var title = document.createElementNS(svgNamespace, 'title');- title.textContent = label;- var plate = document.createElementNS(svgNamespace, 'rect');- plate.setAttribute('width', '30');- plate.setAttribute('height', '12');- plate.setAttribute('rx', '6');- var text = document.createElementNS(svgNamespace, 'text');- text.setAttribute('x', '15');- text.setAttribute('y', '8.25');- text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;- beacon.appendChild(title);- beacon.appendChild(plate);- beacon.appendChild(text);- node.appendChild(beacon);-- var originalLabel = node.getAttribute('aria-label') || '';- node.setAttribute('data-source-evidence-count', String(count));- node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));- installed += 1;- });- return installed;- }+ // Keep verified evidence discoverable to screen readers without adding+ // visual marks. Restore first so repeated initialization never appends+ // another count or retains one after evidence becomes unavailable.+ var svg = document.querySelector('.diagram-container svg');+ if (svg) Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ if (node.hasAttribute('data-source-evidence-count')) {+ var savedLabel = node.getAttribute('data-source-evidence-original-label');+ if (savedLabel == null) node.removeAttribute('aria-label');+ else node.setAttribute('aria-label', savedLabel);+ node.removeAttribute('data-source-evidence-count');+ node.removeAttribute('data-source-evidence-original-label');+ }+ var sources = payload && payload.nodes[node.getAttribute('data-node-id')];+ if (!Array.isArray(sources) || !sources.length) return;+ var originalLabel = node.getAttribute('aria-label');+ node.setAttribute('data-source-evidence-count', String(sources.length));+ if (originalLabel != null) node.setAttribute('data-source-evidence-original-label', originalLabel);+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') ++ viewerCount('viewer.passport.sourceCount', sources.length));+ });return {available: function () { return Boolean(payload); },repository: function () { return payload ? payload.repository : null; },node: function (id) {var sources = payload && payload.nodes ? payload.nodes[id] : null;return Array.isArray(sources) ? sources.slice() : [];- },- installBeacons: installBeacons+ }+ };+ })();++ /* ============================================================+ Tree Branches — expand/collapse for hierarchy diagrams. The renderer+ lays out the complete tree once and tags every node, link, and toggle+ with its ancestors; collapsing only hides descendants, so visible nodes+ never move and the reader keeps their place. Selecting a hidden node+ through Finder, Outline, or a shared link expands its ancestors. Export+ always writes the complete tree (see Export Cleanup).+ ============================================================ */+ Archify.treeBranches = (function () {+ var svg = document.querySelector('.diagram-container > svg[data-tree-ui]');+ if (!svg) return { active: false };+ var collapsed = Object.create(null);+ var toggles = Object.create(null);+ Array.prototype.forEach.call(svg.querySelectorAll('[data-tree-toggle]'), function (toggle) {+ toggles[toggle.getAttribute('data-tree-toggle')] = toggle;+ });+ var tagged = svg.querySelectorAll('[data-tree-ancestors]');+ var expandAll = svg.querySelector('[data-tree-expand-all]');++ function ancestors(el) {+ return (el.getAttribute('data-tree-ancestors') || '').split(' ').filter(Boolean);+ }++ function apply() {+ Array.prototype.forEach.call(tagged, function (el) {+ var hidden = ancestors(el).some(function (id) { return collapsed[id]; });+ if (hidden) el.setAttribute('data-tree-hidden', '');+ else el.removeAttribute('data-tree-hidden');+ });+ var any = false;+ Object.keys(toggles).forEach(function (id) {+ var toggle = toggles[id];+ var isCollapsed = Boolean(collapsed[id]);+ any = any || isCollapsed;+ toggle.setAttribute('aria-expanded', isCollapsed ? 'false' : 'true');+ toggle.setAttribute('aria-label', toggle.getAttribute(isCollapsed ? 'data-tree-label-expand' : 'data-tree-label-collapse') || '');+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (node) {+ if (isCollapsed) node.setAttribute('data-tree-collapsed', '');+ else node.removeAttribute('data-tree-collapsed');+ }+ });+ if (any) svg.setAttribute('data-tree-any-collapsed', '');+ else svg.removeAttribute('data-tree-any-collapsed');+ }++ function setCollapsed(id, value) {+ if (!toggles[id]) return false;+ if (value) collapsed[id] = true;+ else delete collapsed[id];+ apply();+ return true;+ }++ function toggle(id) { return setCollapsed(id, !collapsed[id]); }++ // Reveal a node by expanding every collapsed ancestor; nothing else moves.+ function reveal(id) {+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (!node) return false;+ var changed = false;+ ancestors(node).forEach(function (ancestor) {+ if (collapsed[ancestor]) { delete collapsed[ancestor]; changed = true; }+ });+ if (changed) apply();+ return changed;+ }++ function restoreAll() {+ collapsed = Object.create(null);+ apply();+ }++ function activate(event) {+ var target = event.target.closest('[data-tree-toggle], [data-tree-expand-all]');+ if (!target || !svg.contains(target)) return false;+ event.preventDefault();+ event.stopPropagation();+ if (target.hasAttribute('data-tree-expand-all')) {+ restoreAll();+ var root = svg.querySelector('[data-tree-toggle]:not([data-tree-ancestors])');+ if (root) root.focus();+ } else {+ toggle(target.getAttribute('data-tree-toggle'));+ target.focus();+ }+ return true;+ }++ // Capture phase so the canvas focus handler never treats a toggle press+ // as a background click that clears the current focus.+ svg.addEventListener('click', activate, true);+ svg.addEventListener('keydown', function (event) {+ if (event.key === 'Enter' || event.key === ' ') { activate(event); return; }+ var node = event.target.closest('[data-node-id]');+ if (!node || !svg.contains(node)) return;+ var id = node.getAttribute('data-node-id');+ // Arrow keys follow the tree convention: left collapses, right expands.+ if (event.key === 'ArrowLeft' && toggles[id] && !collapsed[id]) { event.preventDefault(); setCollapsed(id, true); }+ else if (event.key === 'ArrowRight' && collapsed[id]) { event.preventDefault(); setCollapsed(id, false); }+ }, true);++ // Focus reveals ancestors synchronously before positioning its lens.+ // The observer also covers paths that change pressed state directly.+ new MutationObserver(function (records) {+ records.forEach(function (record) {+ var el = record.target;+ if (el.hasAttribute && el.hasAttribute('data-tree-hidden') && el.getAttribute('aria-pressed') === 'true') {+ reveal(el.getAttribute('data-node-id'));+ }+ });+ }).observe(svg, { subtree: true, attributes: true, attributeFilter: ['aria-pressed'] });++ Object.keys(toggles).forEach(function (id) {+ if (toggles[id].hasAttribute('data-tree-initially-collapsed')) collapsed[id] = true;+ });+ apply();++ return {+ active: true,+ toggle: toggle,+ collapse: function (id) { return setCollapsed(id, true); },+ expand: function (id) { return setCollapsed(id, false); },+ reveal: reveal,+ restoreAll: restoreAll,+ collapsedIds: function () { return Object.keys(collapsed); },+ expandAllControl: expandAll};})();- Archify.sourceEvidence.installBeacons();+/* ============================================================Explore — stable-ID neighborhood focus + dependency-free pan/zoom.@@ -7910,7 +8359,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function relationshipEdgeShapes(edge) {if (!edge) return [];if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function relationshipHitRecords() {var recordsByKey = {};@@ -8014,6 +8463,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function relationshipPulseGeometry(shape) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', relationshipTokenPath(shape));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -8058,7 +8509,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function relationshipTokenPath(shape) {if (!shape) return '';var tagName = String(shape.tagName || '').toLowerCase();- if (tagName === 'path') return shape.getAttribute('d') || '';+ if (tagName === 'path') return shape.getAttribute('data-motion-path') || shape.getAttribute('d') || '';if (tagName === 'line') {return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') +' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');@@ -8819,6 +9270,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);});if (!normalized.length) return false;+ // Hash restoration and internal selections use this path too. Reveal+ // tree ancestors before measuring the selected node for its lens.+ if (Archify.treeBranches && Archify.treeBranches.active) {+ normalized.forEach(function (id) { Archify.treeBranches.reveal(id); });+ }if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {clear();return true;@@ -9034,6 +9490,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.window.addEventListener('scroll', requestLensPlacement, { passive: true });window.addEventListener('resize', requestLensPlacement);container.addEventListener('scroll', requestLensPlacement, { passive: true });+ // Reader and Chrome may finish resizing the stage after window resize.+ // The absolute Passport does not resize its container when reclamped.+ if (typeof ResizeObserver === 'function') {+ new ResizeObserver(function () {+ if (!chip.hidden) requestLensPlacement();+ }).observe(container);+ }document.addEventListener('visibilitychange', function () {if (document.hidden) removeRelationshipPulse();});@@ -9145,7 +9608,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function edgeShapes(edge) {if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function removeOverlay() {Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {@@ -9168,6 +9631,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function traceGeometry(shape, direction) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -9315,6 +9780,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Adaptive Reader Shell — one diagram across laptop and monitor.The canonical SVG and viewBox never change. On ordinary desktop pages,@@ -9371,14 +9837,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shell = document.querySelector('.container');var diagram = document.querySelector('.diagram-container');var svg = diagram && diagram.querySelector(':scope > svg');+ var legend = svg && svg.querySelector('[data-legend]');var header = shell && shell.querySelector('.header');var cards = shell && shell.querySelector('.cards');var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;- var measuredHeightFit = svg && svg.getAttribute('data-reader-fit') === 'intrinsic-height';+ var readerFit = svg && svg.getAttribute('data-reader-fit');+ var widthFirstReading = readerFit === 'width-first';+ var automaticSequence = widthFirstReading && svg.hasAttribute('data-sequence-column-fit');+ var readingScroll = widthFirstReading;+ var measuredHeightFit = readerFit === 'intrinsic-height' || widthFirstReading;var frame = 0;var settleFrame = 0;var lastWidth = 0;+ var automaticAreaHeight = 0;// Widest reader the overflow settle has accepted for this viewport (0 =// uncapped). Card copy rewraps as the reader narrows, so recomputing// from fixed heights alone would widen again and oscillate; only a@@ -9388,6 +9860,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var MIN_DESKTOP_WIDTH = 1024;var MIN_READER_WIDTH = 960;var MAX_READER_WIDTH = 1920;+ var MAX_AUTOMATIC_SCALE = 1.5;var MIN_PROJECTED_NODE_TEXT_PX = 6;var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;var requestedMinimumText = Number.isFinite(declaredMinimumText)@@ -9438,24 +9911,34 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var style = window.getComputedStyle(element);return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);}+ // Smallest scale that keeps node text at the requested floor and+ // context relationship labels readable. A declared wide reader holds+ // relationship labels to the requested floor too; every other reader+ // still keeps them at the 6px hard floor the browser gate enforces, so+ // a first-screen fit can never push them below it.function minimumReadableScale() {- var sourceMinimum = null;- var selectors = [- 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'- ];- if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {- selectors.push('g[data-detail="context"][data-edge-from][data-edge-to] > text');- }- Array.from(svg.querySelectorAll(selectors.join(', '))).forEach(function (text) {- if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;+ var nodeMinimum = null;+ var edgeMinimum = null;+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');- if (Number.isFinite(sourceFontPx)) {- sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);+ if (!Number.isFinite(sourceFontPx)) return;+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);+ } else if (primary || text.closest('[data-node-id]')) {+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);}});- return sourceMinimum != null- ? Math.min(1, requestedMinimumText / sourceMinimum)- : 1;+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? requestedMinimumText+ : MIN_PROJECTED_NODE_TEXT_PX;+ var scale = 0;+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);+ return scale > 0 ? Math.min(1, scale) : 1;}var sourcePrimary = null;if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {@@ -9488,11 +9971,66 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function clear() {html.style.removeProperty('--archify-reader-width');+ html.style.removeProperty('--archify-diagram-max-width');+ html.style.removeProperty('--archify-diagram-min-height');+ html.removeAttribute('data-reader-area');+ html.removeAttribute('data-reader-narrow');html.removeAttribute('data-reader-layout');html.removeAttribute('data-reader-overflow');setRail(false);lastWidth = 0;+ automaticAreaHeight = 0;settledCap = 0;+ clearLegend();+ }+ function clearLegend() {+ if (!legend || !legend.hasAttribute('data-reader-legend-corner')) return;+ legend.removeAttribute('data-reader-legend-corner');+ legend.style.removeProperty('--archify-reader-legend-transform');+ }+ // Keep the original legend in its SVG: renderer hover/focus selectors and+ // canonical export still own that same group. Ordinary capped reading+ // and fitted automatic sequences borrow the outer corner at 25–100%.+ function syncLegend() {+ var cameraScale = Number(svg && svg.getAttribute('data-view-scale')) || 1;+ var cornerReading = html.getAttribute('data-reader-area') === 'true' || automaticSequence && !readingScroll;+ if (!legend || !eligible() || !cornerReading || cameraScale > 1.001) {+ clearLegend();+ return;+ }+ var box = legend.getBBox();+ var parentMatrix = legend.parentNode.getScreenCTM();+ if (!parentMatrix || !box.width || !box.height) {+ clearLegend();+ return;+ }+ var rect = diagram.getBoundingClientRect();+ var style = window.getComputedStyle(diagram);+ var scale = Math.min(svg.clientWidth / viewBox.width, svg.clientHeight / viewBox.height);+ if (!Number.isFinite(scale) || scale <= 0) {+ clearLegend();+ return;+ }+ var left = rect.left + number(style.borderLeftWidth) + number(style.paddingLeft);+ var right = rect.right - number(style.borderRightWidth) - number(style.paddingRight);+ var bottom = rect.bottom - number(style.borderBottomWidth) - number(style.paddingBottom);+ var top = bottom - box.height * scale;+ var nav = diagram.querySelector('.diagram-nav');+ var navRect = visible(nav) ? nav.getBoundingClientRect() : null;+ // Long or multi-row legends retain their canonical position if the+ // spare corner cannot hold them clear of the dock and content area.+ if (left + box.width * scale > right || top < rect.top + number(style.paddingTop) + number(style.borderTopWidth) ||+ (navRect && left < navRect.right + 10 && left + box.width * scale > navRect.left - 10 &&+ top < navRect.bottom + 10 && bottom > navRect.top - 10)) {+ clearLegend();+ return;+ }+ var matrix = parentMatrix.inverse().translate(left, top).scale(scale).translate(-box.x, -box.y);+ var value = 'matrix(' + [matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f].join(',') + ')';+ if (legend.style.getPropertyValue('--archify-reader-legend-transform') !== value) {+ legend.style.setProperty('--archify-reader-legend-transform', value);+ }+ if (!legend.hasAttribute('data-reader-legend-corner')) legend.setAttribute('data-reader-legend-corner', '');}// Rail modes: "true" docks beside the diagram, "collapsed" leaves only the// reveal control, "overlay" opens a drawer when docking would break the@@ -9549,13 +10087,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)};}+ // `width` is the diagram's reading width. The page shell never narrows+ // below the desktop reader floor, so a narrow, tall diagram keeps a+ // usable header, toolbar, and controls; its SVG is centred instead.function applyWidth(width, minWidth) {var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));- if (Math.abs(rounded - lastWidth) < 1) return false;+ var changed = Math.abs(rounded - lastWidth) >= 1;lastWidth = rounded;- html.style.setProperty('--archify-reader-width', rounded + 'px');+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ var diagramWidth = Math.max(1, rounded - railShare - chromeMetrics().diagramX);+ // Content fitting and automatic enlargement never reduce the outer+ // reader region. The SVG alone takes the narrower reading width.+ var automaticWidthCap = measuredHeightFit && viewBox && viewBox.width > 0+ ? viewBox.width * MAX_AUTOMATIC_SCALE : 0;+ if (automaticWidthCap && diagramWidth > automaticWidthCap) {+ diagramWidth = automaticWidthCap;+ html.style.setProperty('--archify-diagram-min-height', automaticAreaHeight + 'px');+ html.setAttribute('data-reader-area', 'true');+ } else {+ // Ordinary automatic diagrams retain their existing document flow.+ // Settling can also stop binding the cap without a new measure.+ html.style.removeProperty('--archify-diagram-min-height');+ html.removeAttribute('data-reader-area');+ }+ if (diagramWidth < Math.max(rounded, shellFloor) - railShare - chromeMetrics().diagramX) {+ html.style.setProperty('--archify-diagram-max-width', diagramWidth + 'px');+ html.setAttribute('data-reader-narrow', 'true');+ } else {+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ }html.setAttribute('data-reader-layout', 'adaptive');- return true;+ syncLegend();+ return changed;}function settleOverflow(minWidth) {if (settleFrame) cancelAnimationFrame(settleFrame);@@ -9567,11 +10133,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.document.documentElement.scrollHeight,document.body.scrollHeight) - window.innerHeight - belowFold();- if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {+ // visual-check fails any page whose rounded-up height exceeds the+ // viewport, so even a 1px remainder must be reduced or declared.+ if (overflow > 0 && !readingScroll && lastWidth > Math.ceil(minWidth)) {applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);settledCap = lastWidth;html.setAttribute('data-reader-overflow', 'reduced');- } else if (overflow > 1) {+ } else if (overflow > 0) {html.setAttribute('data-reader-overflow', 'authored');} else {html.removeAttribute('data-reader-overflow');@@ -9586,17 +10154,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}var chrome = chromeMetrics();var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);+ // Sequence first-screen fitting preserves source text sizes instead+ // of shrinking to the shared hard readability floor.var readableWidth = viewBox && viewBox.width > 0- ? viewBox.width * minimumReadableScale() + chrome.diagramX+ ? viewBox.width * (automaticSequence ? 1 : minimumReadableScale()) + chrome.diagramX: MIN_READER_WIDTH;var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);- var readableMinimumWidth = measuredHeightFit && ratio < WIDE_RATIO+ var readableMinimumWidth = automaticSequence || measuredHeightFit && ratio < WIDE_RATIO? readableWidth: measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)? Math.max(MIN_READER_WIDTH, readableWidth): MIN_READER_WIDTH;var minWidth;- if (measuredHeightFit && ratio < WIDE_RATIO) {+ if (automaticSequence) {+ minWidth = Math.min(readableMinimumWidth, maxWidth);+ } else if (measuredHeightFit && ratio < WIDE_RATIO) {minWidth = Math.min(readableMinimumWidth, viewportCap);} else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {minWidth = Math.min(readableMinimumWidth, maxWidth);@@ -9618,10 +10190,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';else mode = fitsReadable ? 'true' : 'overlay';}- // With notes below the fold, the diagram may trade the renderer's- // comfortable primary size down to the rail's 12px floor so it and its- // controls fit the first screen; taller graphs still scroll.- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));+ // Height-fit families with notes below the fold may shrink to their+ // readable floor. Width-first families choose their reading width+ // below and retain page scrolling instead.+ if (mode === 'bottom') primaryWidth = 0;if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));var docked = mode === 'true';setRail(mode);@@ -9632,6 +10204,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.outerHeight(header) + stackedBelow;var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);+ // Compact automatic sequences fit the first screen without shrinking+ // their authored text. Longer sequences retain reading width and page+ // scroll; other width-first families keep their existing strategy.+ var sequenceFits = automaticSequence && Math.min(desiredWidth, maxWidth) >=+ readableWidth + (docked ? railExtra : 0);+ readingScroll = widthFirstReading && !sequenceFits;+ if (readingScroll) desiredWidth = maxWidth;+ // Only a binding enlargement cap needs a separate normal reader area.+ // Uncapped diagrams keep their existing natural height and Chrome fit.+ automaticAreaHeight = availableSvgHeight + chrome.diagramY;var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));applyWidth(width, minWidth);settleOverflow(minWidth);@@ -9660,7 +10242,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Math.round(shellRect.width * 100) / 100,Math.round(shellRect.height * 100) / 100,Math.round(diagramRect.width * 100) / 100,- Math.round(diagramRect.height * 100) / 100+ Math.round(diagramRect.height * 100) / 100,+ legend && legend.hasAttribute('data-reader-legend-corner') ? legend.style.getPropertyValue('--archify-reader-legend-transform') : ''].join('|');}function layoutPending() { return Boolean(frame || settleFrame); }@@ -9679,6 +10262,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.schedule();}, { passive: true });window.addEventListener('load', schedule, { once: true });+ window.addEventListener('beforeprint', clearLegend);+ window.addEventListener('afterprint', schedule);if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});if (typeof ResizeObserver === 'function') {var resizeObserver = new ResizeObserver(schedule);@@ -9721,6 +10306,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.measure: measure,schedule: schedule,whenStable: whenStable,+ syncLegend: syncLegend,active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },receipt: function () { return { ratio: ratio, width: lastWidth }; }};@@ -10013,6 +10599,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };return [reserve,+ lift,Math.round(containerRect.width * 100) / 100,Math.round(containerRect.height * 100) / 100,Math.round(navRect.left * 100) / 100,@@ -10023,7 +10610,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.lastReceipt ? lastReceipt.stageGap : ''].join('|');}- function layoutPending() { return Boolean(frame || settleFrame || probingBaseline); }+ function layoutPending() { return Boolean(frame || settleFrame || liftFrame || probingBaseline); }function whenStable() {return Archify.waitForStableLayout({schedule: schedule,@@ -10043,6 +10630,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (typeof ResizeObserver === 'function') {var resizeObserver = new ResizeObserver(schedule);[nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });+ // Camera zoom changes outer page flow without changing intrinsic SVG+ // size. Follow that box for dock placement, independently of scrolling+ // and the baseline stage-rail measurement.+ new ResizeObserver(scheduleLift).observe(container);}if (typeof MutationObserver === 'function') {var contentObserver = new MutationObserver(function (records) {@@ -10126,6 +10717,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');var inBtn = container.querySelector('[data-view="in"]');var state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ var minimumZoom = 0.25;+ var maximumZoom = 3;var drag = null;var cameraTimer = null;var cameraFrame = null;@@ -10134,12 +10727,25 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var clipFrame = 0;var resizeFrame = 0;var autoScrollUntil = 0;+ var originalFlowHeight = container.style.getPropertyValue('height');+ var originalFlowHeightPriority = container.style.getPropertyPriority('height');+ var compactPageFlow = false;var viewBox = svg.viewBox && svg.viewBox.baseVal;function clamp() {var width = svg.clientWidth || 1;var height = svg.clientHeight || 1;+ if (state.scale < 1) {+ var visibleWidth = Math.min(width, container.clientWidth);+ var availableX = visibleWidth - width * state.scale;+ state.x = availableX >= 0 ? container.scrollLeft + availableX / 2+ : Math.max(container.scrollLeft + availableX, Math.min(container.scrollLeft, state.x));+ // Long sequences keep their first rows in view instead of centering+ // inside a layout box that can be several screens tall.+ state.y = height > window.innerHeight ? 0 : height * (1 - state.scale) / 2;+ return;+ }state.x = Math.min(0, Math.max(width - width * state.scale, state.x));state.y = Math.min(0, Math.max(height - height * state.scale, state.y));}@@ -10166,15 +10772,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var y;var width;var height;- if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && state.scale >= 1) {x = viewBox.x + container.scrollLeft / metrics.scale;y = viewBox.y;width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));height = viewBox.height;} else {- x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;+ x = viewBox.x + (((container.scrollLeft - state.x) / state.scale) - metrics.offsetX) / metrics.scale;y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;- width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);+ width = Math.min(viewBox.width, Math.min(metrics.width, container.clientWidth) / state.scale / metrics.scale);height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);}width = Math.max(1, Math.min(viewBox.width, width));@@ -10239,13 +10845,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Math.abs(rendered.x - state.x) < 0.05 &&Math.abs(rendered.y - state.y) < 0.05;}+ // CSS transforms keep the SVG's intrinsic layout size. Shrink only its+ // outer page-flow box for long ordinary diagrams, never the SVG itself:+ // changing its height would feed the smaller size back into camera math.+ function syncPageFlow(camera) {+ camera = camera || state;+ var html = document.documentElement;+ var height = svg.clientHeight;+ var ordinary = html.getAttribute('data-embed') !== 'true' &&+ html.getAttribute('data-present') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches);+ // Restore ordinary flow as soon as the target reaches 100%. Chrome+ // uses that target to resume baseline rail measurement; retaining a+ // partially shrunk box during the CSS transition would inflate reserve.+ if (ordinary && state.scale < 1 && camera.scale < 1 && height > window.innerHeight) {+ var style = getComputedStyle(container);+ var chrome = ['paddingTop', 'paddingBottom', 'borderTopWidth', 'borderBottomWidth']+ .reduce(function (total, key) { return total + (parseFloat(style[key]) || 0); }, 0);+ var flowHeight = Math.ceil(height * camera.scale + Math.max(0, camera.y) + chrome) + 'px';+ if (container.style.getPropertyValue('height') !== flowHeight) container.style.setProperty('height', flowHeight);+ compactPageFlow = true;+ } else if (compactPageFlow) {+ if (originalFlowHeight) container.style.setProperty('height', originalFlowHeight, originalFlowHeightPriority);+ else container.style.removeProperty('height');+ compactPageFlow = false;+ }+ }function syncViewportClip() {if (clipFrame) cancelAnimationFrame(clipFrame);clipFrame = 0;function sample() {clipFrame = 0;var rendered = sampleRenderedState();+ syncPageFlow(rendered);clipToViewport(rendered);+ if (Archify.readerLayout && typeof Archify.readerLayout.syncLegend === 'function') Archify.readerLayout.syncLegend();if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);}sample();@@ -10253,12 +10887,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function apply() {clamp();svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';+ svg.setAttribute('data-view-scale', String(state.scale));syncViewportClip();renderControls();- outBtn.disabled = state.scale <= 1;- inBtn.disabled = state.scale >= 3;+ outBtn.disabled = state.scale <= minimumZoom;+ inBtn.disabled = state.scale >= maximumZoom;container.classList.toggle('is-pannable', state.scale > 1);- svg.setAttribute('data-view-scale', String(state.scale));if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {Archify.viewerChromeLayout.schedule();@@ -10352,8 +10986,14 @@ OTHER DEALINGS IN THE FONT SOFTWARE.options = options || {};if (options.manual !== false) interruptCamera();var previous = state.scale;- next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));+ next = Math.max(minimumZoom, Math.min(maximumZoom, Math.round(next * 4) / 4));if (next === previous) return;+ var longDiagram = svg.clientHeight > window.innerHeight && Math.min(previous, next) < 1;+ var before = longDiagram ? svg.getBoundingClientRect() : null;+ var anchorY = before ? Math.max(0, Math.min(window.innerHeight, before.bottom) + Math.max(0, before.top)) / 2 : 0;+ if (before && (before.bottom <= 0 || before.top >= window.innerHeight)) anchorY = window.innerHeight / 2;+ var logicalY = before ? Math.max(0, Math.min(svg.clientHeight, (anchorY - before.top) / previous)) : 0;+ var documentTop = before ? window.scrollY + before.top - state.y : 0;var centerX = (svg.clientWidth || 1) / 2;var centerY = (svg.clientHeight || 1) / 2;var contentX = (centerX - state.x) / previous;@@ -10362,6 +11002,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.state.x = centerX - contentX * next;state.y = centerY - contentY * next;apply();+ if (longDiagram) {+ var scaledHeight = svg.clientHeight * next;+ var pageY = scaledHeight <= window.innerHeight ? documentTop + state.y+ : documentTop + state.y + logicalY * next - anchorY;+ window.scrollTo({ left: window.scrollX, top: Math.max(0, pageY), behavior: 'instant' });+ }}function reset(options) {options = options || {};@@ -10618,6 +11264,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.else apply();});});+ // Reader width and Chrome reserve can change without a window resize.+ // Observe their resulting sizes; the SVG remains intrinsically sized, so+ // the outer flow height cannot feed back into its camera base.+ if (typeof ResizeObserver === 'function') {+ var flowObserver = new ResizeObserver(function () { syncPageFlow(sampleRenderedState()); });+ flowObserver.observe(svg);+ flowObserver.observe(container);+ }+ if (typeof MutationObserver === 'function') {+ new MutationObserver(function () { syncPageFlow(sampleRenderedState()); })+ .observe(document.documentElement, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });+ }+ var printMedia = window.matchMedia && window.matchMedia('print');+ if (printMedia && printMedia.addEventListener) printMedia.addEventListener('change', function () { syncPageFlow(sampleRenderedState()); });window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });apply();pinControls();@@ -11498,6 +12158,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var links = document.createElement('em');links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;+ if (item.links === 0) links.setAttribute('data-zero', 'true');var meta = document.createElement('small');meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');@@ -11738,6 +12399,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.})();+/* ============================================================Route Probe — shortest directed path over compiled semantics.The graph is read from renderer-owned stable IDs and relationship@@ -11844,7 +12506,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function edgeShapes(edge) {if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function removeOverlay() {Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {@@ -12074,6 +12736,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function traceGeometry(shape, step) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -12174,6 +12838,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function journeyGeometry(shape) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -12770,6 +13436,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Semantic Lens — a counted, viewer-only legend over data-node-kind.One selected kind reveals every authored relationship touching it.@@ -12833,7 +13500,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function edgeShapes(edge) {if (!edge) return [];if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function legendSourceBounds(entry) {var bounds = null;@@ -13006,6 +13673,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function flowGeometry(shape, direction, step) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -13443,6 +14112,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Diagram Guide — a factual command deck over existing interactions.Counts come from compiled semantics; actions delegate to Finder, Route@@ -13494,7 +14164,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -13594,7 +14266,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -13613,6 +14287,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/archify-repo.html b/examples/archify-repo.htmlindex 313847ce..19bf6f59 100644--- a/examples/archify-repo.html+++ b/examples/archify-repo.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.17.0-dev.1">+ <meta name="generator" content="archify 3.0.2-dev.1"><meta name="archify-reader-contract" content="declared-wide-v1"><title>Archify Diagram</title><script>@@ -218,7 +218,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.[data-theme="light"] {--bg: #f4f5f7;--grid: #e9edf2;- --canvas-dot: #d9dee5;+ --canvas-dot: #e2e7ec;--text: #111827;--text-muted: #5b6474;--text-dim: #9aa3b2;@@ -599,15 +599,35 @@ OTHER DEALINGS IN THE FONT SOFTWARE.color: var(--frontend-stroke);}- /* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored- SVG/viewBox while the runtime chooses a desktop width from the actual- vertical budget. This avoids device-specific files and breakpoint- jumps between a laptop and a tall monitor. */+ /* The reader owns only the outer scale. Compact automatic sequences fit at+ their authored text size or larger. Long sequences and waterfall rows+ favor reading width and page scroll; other diagrams keep height fitting.+ Small automatic canvases retain a modest scale inside a usable shell.+ Every strategy preserves the authored SVG/viewBox and semantic geometry. */.container {width: 100%;max-width: var(--archify-reader-width, 1440px);margin: 0 auto;}+ html[data-reader-area="true"] .diagram-container {+ min-height: var(--archify-diagram-min-height);+ display: flex;+ align-items: center;+ }+ html[data-reader-area="true"] .diagram-container > svg { flex-shrink: 0; }+ /* The original SVG legend can use the outer corner while the capped or fitted+ diagram stays centered. The container still clips all outer paint. */+ .diagram-container:has([data-reader-legend-corner]) > svg { overflow: visible; }+ .diagram-container [data-reader-legend-corner] {+ transform-origin: 0 0;+ transform-box: view-box;+ transform: var(--archify-reader-legend-transform);+ }+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {+ min-width: 0;+ max-width: var(--archify-diagram-max-width);+ margin-inline: auto;+ }@media (min-width: 768px) and (max-height: 920px) {.header { margin-bottom: 1rem; }.diagram-container { padding: 1rem; }@@ -806,7 +826,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.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 {+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-entry="running"] .diagram-container::before {content: "";position: absolute;inset: 0;@@ -988,8 +1008,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}.diagram-nav-icon {display: block;- width: 0.875rem;- height: 0.875rem;+ width: 0.95rem;+ height: 0.95rem;margin: auto;background: currentColor;-webkit-mask-position: center;@@ -1053,8 +1073,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE..diagram-nav #btn-overview-map::before,.diagram-nav #btn-semantic-lens::before {flex: none;- width: 0.875rem;- height: 0.875rem;+ width: 0.95rem;+ height: 0.95rem;background: currentColor;content: "";opacity: 0.85;@@ -1068,21 +1088,33 @@ OTHER DEALINGS IN THE FONT SOFTWARE..diagram-nav [data-view="out"],.diagram-nav [data-view="reset"],.diagram-nav [data-view="in"] {+ position: relative;border-radius: 0;- background: color-mix(in srgb, var(--text) 4.5%, transparent);+ background: color-mix(in srgb, var(--panel-border) 38%, transparent);}.diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }.diagram-nav [data-view="out"]::before { display: none; }.diagram-nav [data-view="reset"],.diagram-nav [data-view="in"] { margin-left: -0.0625rem; }.diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }+ .diagram-nav [data-view="reset"]::after,+ .diagram-nav [data-view="in"]::after {+ position: absolute;+ top: 0.55rem;+ bottom: 0.55rem;+ left: 0;+ width: 1px;+ background: color-mix(in srgb, var(--panel-border) 75%, transparent);+ content: "";+ pointer-events: none;+ }.diagram-nav [data-view="out"]:hover,.diagram-nav [data-view="reset"]:hover,- .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--panel-border) 60%, transparent); }.diagram-nav [data-view="out"]:disabled,.diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }.diagram-nav [data-view="out"]:disabled:hover,- .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--panel-border) 38%, transparent); }.diagram-nav [data-view="reset"] { min-width: 3.25rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav-detail,.diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }@@ -2326,7 +2358,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.gap: 0.55rem;margin: 0 0.55rem 0.55rem;padding: 0 0.7rem;- min-height: 2.6rem;+ min-height: 2.35rem;border: 1px solid var(--toolbar-border);border-radius: 0.55rem;background: color-mix(in srgb, var(--panel) 78%, transparent);@@ -2336,7 +2368,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE..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);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 14%, transparent);}.node-finder-input {appearance: none;@@ -2374,6 +2406,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.background: color-mix(in srgb, var(--panel) 54%, transparent);scroll-padding-block: 0.25rem;scrollbar-width: thin;+ scrollbar-color: color-mix(in srgb, var(--panel-border) 90%, transparent) transparent;+ }+ /* Slim overlay-style thumb instead of the chunky platform default. */+ .node-finder-results::-webkit-scrollbar { width: 10px; }+ .node-finder-results::-webkit-scrollbar-track { background: transparent; }+ .node-finder-results::-webkit-scrollbar-thumb {+ background: color-mix(in srgb, var(--panel-border) 85%, transparent);+ border: 3px solid transparent;+ border-radius: 999px;+ background-clip: padding-box;+ }+ .node-finder-results::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--text-muted) 65%, transparent);+ border: 3px solid transparent;+ background-clip: padding-box;}html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }.node-finder-result {@@ -2381,8 +2428,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.grid-template-columns: minmax(0, 1fr) auto;gap: 0.2rem 0.75rem;width: 100%;- min-height: 3.25rem;- padding: 0.58rem 0.65rem;+ min-height: 3rem;+ padding: 0.52rem 0.65rem;border: 0;border-radius: 0;background: transparent;@@ -2423,6 +2470,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.font-size: 0.625rem;font-style: normal;}+ /* A zero count is absence, not information — let it recede. */+ .node-finder-result em[data-zero] { color: var(--text-faint); }.node-finder[data-context^="route-"] .node-finder-result em {padding: 0.1rem 0.3rem;border: 1px solid color-mix(in srgb, currentColor 52%, transparent);@@ -2458,6 +2507,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.border-radius: 0.75rem;border: 1px solid var(--panel-border);padding: 1.125rem 1.25rem;+ /* Card notes are authored prose and may carry an unbreakable run such as a+ slash-joined pipeline or a long identifier. Without this, that run sets the+ card's min-content width, spills past its track in every rail placement,+ and pushes the whole page into horizontal overflow at desktop widths.+ `anywhere` rather than `break-word` because only `anywhere` shrinks the+ intrinsic minimum the layout is sized from. */+ overflow-wrap: anywhere;}html[data-preset="signal-flow"] .card {@@ -3494,6 +3550,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.background: transparent;box-shadow: none;}+ /* The motion button breathes on the same shared cycle as the cascade, so the+ chrome keeps time with the wave it controls. The cycle length lives on the+ diagram SVG, so chrome presets mirror it here. */+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot {+ animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite;+ }+ html[data-preset="signal-flow"] #btn-motion .motion-control-dot { --flow-cycle-chrome: 5.2s; }+ @keyframes archify-motion-dot-breathe {+ 0%, 100% { opacity: 1; transform: scale(1); }+ 46% { opacity: 0.55; transform: scale(0.72); }+ }.toolbar .export-menu {position: absolute;top: calc(100% + 0.125rem);@@ -4030,10 +4097,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {- filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ --ambient-node-base-filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ filter: var(--ambient-node-base-filter);}html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {- filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ --ambient-node-base-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ filter: var(--ambient-node-base-filter);}html[data-preset="classic"] .diagram-container > svg [data-edge-from] {stroke-linecap: round;@@ -4166,41 +4235,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.filter: drop-shadow(0 0 7px var(--frontend-stroke));outline: none;}- /* Verified Source Beacons are installed at runtime only for nodes whose- repository evidence passed the local revision/blob/line checks. They- live inside the owning node so every focus, route, story, and guided- view keeps one coherent opacity state. Export serialization removes- them before producing the canonical SVG or any derived visual. */- .source-evidence-beacon {- pointer-events: none;- opacity: 0.76;- transition: opacity 160ms ease, filter 160ms ease;- }- .source-evidence-beacon rect {- fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));- stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));- stroke-width: 1;- vector-effect: non-scaling-stroke;- }- .source-evidence-beacon text {- fill: var(--backend-stroke);- font-size: 5.5px;- font-weight: 800;- letter-spacing: 0.06em;- text-anchor: middle;- text-transform: uppercase;- }- svg [data-node-id]:hover .source-evidence-beacon,- svg [data-node-id]:focus-visible .source-evidence-beacon,- svg [data-node-id][data-focus-selected] .source-evidence-beacon {- opacity: 1;- filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));- }- svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }- svg[data-preset="blueprint"] .source-evidence-beacon rect {- rx: 0.8px;- filter: none;- }svg [data-legend-kind][role="button"] { cursor: pointer; }svg [data-legend-kind]:focus { outline: none; }svg [data-legend-hit] {@@ -4691,69 +4725,211 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }.c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }- /* Optional trace animation, enabled only by meta.animation = "trace".- The ordinary viewer performs one ambient pass and then restores the- authored solid/security/async line language. WebM samples the same- authored geometry into an explicit canvas timeline. */- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {- animation: archify-edge-flow 2.4s linear 1;- animation-delay: calc(var(--step, 0) * 160ms);+ /* Live turns each edge into a small light show on one shared cycle: a comet+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */+ svg[data-animation="trace"] {+ --flow-cycle: 6.4s;+ --flow-step-delay: 0.2s;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;+ --flow-head-peak: 0.95;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;+ }+ .ambient-edge-flow {+ fill: none;+ stroke: var(--arrow-emphasis);+ stroke-linecap: round;+ pointer-events: none;+ display: none;}- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {- animation: archify-edge-flow 2.4s linear 1;- animation-delay: calc(var(--step, 0) * 160ms);+ .ambient-flow-wake {+ stroke-width: 3.2;+ stroke-dasharray: var(--flow-dasharray, none);+ animation-name: archify-flow-wake;}- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {+ .ambient-flow-halo {+ stroke-width: 6;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ animation-name: archify-cascade-halo;+ }+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }+ .ambient-flow-tail {+ stroke-width: 2.4;+ stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));+ animation-name: archify-cascade-tail;+ }+ .ambient-flow-head {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;+ stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));+ animation-name: archify-cascade-head;+ }+ .ambient-flow-head.echo { --flow-echo-scale: 0.76; }+ .ambient-flow-tail.echo { --flow-echo-scale: 0.53; }+ .ambient-flow-ripple {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, white);+ stroke-width: 2;+ animation-name: archify-flow-ripple;+ }+ .ambient-flow-ripple-echo {+ stroke-width: 1.2;+ animation-name: archify-flow-ripple-echo;+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) .ambient-edge-flow {+ display: inline;+ animation-duration: var(--flow-cycle, 6.4s);+ animation-timing-function: linear;+ animation-iteration-count: infinite;+ animation-delay: var(--flow-delay, 0s);+ /* Without backwards fill a delayed layer would sit at its natural opacity+ (fully lit) until its phase arrives. */+ animation-fill-mode: backwards;+ }+ /* Each decorative flow follows its owning edge through tree visibility. */+ .ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }+ svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }+ svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ /* On light canvases the cascade reads by saturation instead of bloom: the+ head and inner ripple mix toward ink instead of white, and every layer's+ peak rises so the wave survives the bright background. */+ html[data-theme="light"] svg[data-animation="trace"] {+ --flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;+ --flow-tail-peak: 0.5;+ --flow-wake-peak: 0.13;+ --flow-ripple-echo-peak: 0.3;+ }+ html[data-theme="light"] .ambient-flow-head {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);+ stroke-width: 2.8;+ }+ html[data-theme="light"] .ambient-flow-ripple {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);+ }+ html[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {transform-box: fill-box;transform-origin: center;- animation: archify-node-pulse 3.6s ease-in-out 1;- animation-delay: calc(var(--step, 0) * 160ms);+ animation: archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation: archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation: archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ /* Node glow follows each node's authored step on the shared cycle; it does+ not track incoming edge arrivals. During the bounded entrance all three+ animations run; the entrance pulse is listed after the repeating glow and+ wins on filter until it completes. */+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) svg[data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s));+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ @keyframes archify-flow-wake {+ 0% { opacity: 0; }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 82%, 100% { opacity: 0; }+ }+ @keyframes archify-cascade-halo {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-tail {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }+ }+ @keyframes archify-cascade-head {+ 0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }+ 48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: 0; opacity: 0; }+ }+ @keyframes archify-flow-ripple {+ 0%, 60% { r: 2px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }+ }+ @keyframes archify-flow-ripple-echo {+ 0%, 63% { r: 2px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }+ }+ @keyframes archify-node-receive {+ 0%, 100% { filter: var(--ambient-node-base-filter, none); }+ 5%, 12% { filter: var(--ambient-node-base-filter,) drop-shadow(0 0 9px var(--arrow-emphasis)); }+ }+ @keyframes archify-node-enter {+ from { opacity: 0; }+ to { opacity: 1; }}- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {- stroke-linecap: round;- filter: drop-shadow(0 0 3px var(--arrow-emphasis));- animation-duration: 1.75s;- }- svg[data-preset="signal-flow"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 1.75s; }- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {- animation-duration: 3.1s;- }- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {- stroke-linecap: square;- filter: none;- animation-duration: 2.15s;- }- svg[data-preset="blueprint"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.15s; }- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {- animation-name: archify-blueprint-node-pulse;- animation-duration: 3.8s;- }- svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {- filter: none;- animation-duration: 2.2s;- }- svg[data-preset="editorial"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.2s; }- svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {- animation-name: archify-editorial-node-pulse;- animation-duration: 3.5s;- }- /* Embedded proofs stay static so proof grids are calm instead of leaving- ambient trace loops on. */- html[data-embed="true"] svg[data-animation="trace"] [data-animate],- html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {- animation: none !important;- stroke-dashoffset: 0;- }- html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],- html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {- animation: none !important;- stroke-dashoffset: 0;- }- @keyframes archify-edge-flow {- 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }- 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }- 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }- 100% { stroke-dashoffset: 0; opacity: 1; }+ @media print {+ .ambient-edge-flow { display: none !important; animation: none !important; }+ svg[data-animation="trace"] [data-animate="node"] { animation: none !important; }}@keyframes archify-node-pulse {0%, 72%, 100% { filter: none; stroke-width: 1.5; }@@ -4820,10 +4996,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.50% { opacity: 0.48; transform: scale(0.78); }}@media (prefers-reduced-motion: reduce) {+ .ambient-edge-flow { display: none !important; animation: none !important; }html[data-preset="signal-flow"] .diagram-container::before {animation: none !important;}.pulse-dot { animation: none !important; }+ .motion-control-dot { animation: none !important; }svg[data-animation="trace"] [data-animate] {animation: none !important;stroke-dashoffset: 0;@@ -4859,7 +5037,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.filter: none;}.relationship-pulse-overlay { display: none !important; }- .source-evidence-beacon,svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }}</style>@@ -4979,11 +5156,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.</div>- <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"ROUTE","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><!-- Main Diagram --><div class="diagram-container" data-detail-level="read"data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">- <svg viewBox="0 0 1340 568" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">+ <svg viewBox="0 0 1340 568" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14"><title id="archify-diagram-title">Archify</title><desc id="archify-diagram-description">Agent skill → JSON IR → typed renderers → standalone HTML</desc><!-- Definitions -->@@ -5014,50 +5191,50 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<!-- Connection paths (before components for correct z-order) --><g data-graph-role="automatic-crossover" style="--step:0"><path data-graph-role="automatic-crossover-underlay" d="M 160 330 L 200 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="user" data-edge-to="agents" data-edge-key="0" data-composition-points="160,330;200,330" data-composition-crossover="halo" data-composition-independent="true" d="M 160 330 L 200 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="user" data-edge-to="agents" data-edge-key="0" data-composition-points="160,330;200,330" data-composition-crossover="halo" data-composition-independent="true" d="M 160 330 L 200 330" class="a-emphasis" data-animate="edge" style="--step:0" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:1"><path data-graph-role="automatic-crossover-underlay" d="M 275 300 L 275 200" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="agents" data-edge-to="skill" data-edge-key="1" data-composition-points="275,300;275,200" data-composition-crossover="halo" data-composition-independent="true" d="M 275 300 L 275 200" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ <path data-edge-from="agents" data-edge-to="skill" data-edge-key="1" data-composition-points="275,300;275,200" data-composition-crossover="halo" data-composition-independent="true" d="M 275 300 L 275 200" class="a-default" data-animate="edge" style="--step:1" stroke-width="1.5" marker-end="url(#arrowhead)"/></g><g data-graph-role="automatic-crossover" style="--step:2"><path data-graph-role="automatic-crossover-underlay" d="M 350 330 L 400 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="agents" data-edge-to="ir" data-edge-label="write IR" data-edge-key="2" data-composition-points="350,330;400,330" data-composition-crossover="halo" data-composition-independent="true" d="M 350 330 L 400 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="agents" data-edge-to="ir" data-edge-label="write IR" data-edge-key="2" data-composition-points="350,330;400,330" data-composition-crossover="halo" data-composition-independent="true" d="M 350 330 L 400 330" class="a-emphasis" data-animate="edge" style="--step:2" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:3"><path data-graph-role="automatic-crossover-underlay" d="M 470 300 L 470 200" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="ir" data-edge-to="schemas" data-edge-key="3" data-composition-points="470,300;470,200" data-composition-crossover="halo" data-composition-independent="true" d="M 470 300 L 470 200" class="a-security" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>+ <path data-edge-from="ir" data-edge-to="schemas" data-edge-key="3" data-composition-points="470,300;470,200" data-composition-crossover="halo" data-composition-independent="true" d="M 470 300 L 470 200" class="a-security" data-animate="edge" style="--step:3" stroke-width="1.5" marker-end="url(#arrowhead-security)"/></g><g data-graph-role="automatic-crossover" style="--step:4"><path data-graph-role="automatic-crossover-underlay" d="M 540 330 L 590 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="ir" data-edge-to="renderers" data-edge-key="4" data-composition-points="540,330;590,330" data-composition-crossover="halo" data-composition-independent="true" d="M 540 330 L 590 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="ir" data-edge-to="renderers" data-edge-key="4" data-composition-points="540,330;590,330" data-composition-crossover="halo" data-composition-independent="true" d="M 540 330 L 590 330" class="a-emphasis" data-animate="edge" style="--step:4" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:5"><path data-graph-role="automatic-crossover-underlay" d="M 730 330 L 780 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="renderers" data-edge-to="template" data-edge-key="5" data-composition-points="730,330;780,330" data-composition-crossover="halo" data-composition-independent="true" d="M 730 330 L 780 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="renderers" data-edge-to="template" data-edge-key="5" data-composition-points="730,330;780,330" data-composition-crossover="halo" data-composition-independent="true" d="M 730 330 L 780 330" class="a-emphasis" data-animate="edge" style="--step:5" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:6"><path data-graph-role="automatic-crossover-underlay" d="M 920 330 L 970 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="template" data-edge-to="checker" data-edge-key="6" data-composition-points="920,330;970,330" data-composition-crossover="halo" data-composition-independent="true" d="M 920 330 L 970 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="template" data-edge-to="checker" data-edge-key="6" data-composition-points="920,330;970,330" data-composition-crossover="halo" data-composition-independent="true" d="M 920 330 L 970 330" class="a-emphasis" data-animate="edge" style="--step:6" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:7"><path data-graph-role="automatic-crossover-underlay" d="M 1110 330 L 1160 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="checker" data-edge-to="html" data-edge-label="deliver" data-edge-key="7" data-composition-points="1110,330;1160,330" data-composition-crossover="halo" data-composition-independent="true" d="M 1110 330 L 1160 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="checker" data-edge-to="html" data-edge-label="deliver" data-edge-key="7" data-composition-points="1110,330;1160,330" data-composition-crossover="halo" data-composition-independent="true" d="M 1110 330 L 1160 330" class="a-emphasis" data-animate="edge" style="--step:7" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:8"><path data-graph-role="automatic-crossover-underlay" d="M 660 360 L 660 440" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="renderers" data-edge-to="ci" data-edge-key="8" data-composition-points="660,360;660,440" data-composition-crossover="halo" data-composition-independent="true" d="M 660 360 L 660 440" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>+ <path data-edge-from="renderers" data-edge-to="ci" data-edge-key="8" data-composition-points="660,360;660,440" data-composition-crossover="halo" data-composition-independent="true" d="M 660 360 L 660 440" class="a-dashed" data-animate="edge" style="--step:8" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/></g><g data-graph-role="automatic-crossover" style="--step:9"><path data-graph-role="automatic-crossover-underlay" d="M 1230 300 L 1230 200" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="html" data-edge-to="zip" data-edge-key="9" data-composition-points="1230,300;1230,200" data-composition-crossover="halo" data-composition-independent="true" d="M 1230 300 L 1230 200" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>+ <path data-edge-from="html" data-edge-to="zip" data-edge-key="9" data-composition-points="1230,300;1230,200" data-composition-crossover="halo" data-composition-independent="true" d="M 1230 300 L 1230 200" class="a-dashed" data-animate="edge" style="--step:9" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/></g><!-- Components --><g id="node-user" data-node-id="user" data-node-label="You" tabindex="0" role="button" aria-label="Focus You, NL or Mermaid, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="NL or Mermaid" data-node-context="Architecture component"><title>You · NL or Mermaid · Architecture component</title><rect x="40" y="300" width="120" height="60" rx="6" class="c-mask"/>- <rect x="40" y="300" width="120" height="60" rx="6" class="c-external" stroke-width="1.5"/>+ <rect x="40" y="300" width="120" height="60" rx="6" class="c-external" data-animate="node" style="--step:0" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(46 306) scale(0.6875)"><rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/><path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>@@ -5069,7 +5246,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-agents" data-node-id="agents" data-node-label="Agent Hosts" tabindex="0" role="button" aria-label="Focus Agent Hosts, Claude · Codex · opencode, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="Claude · Codex · opencode" data-node-context="Architecture component"><title>Agent Hosts · Claude · Codex · opencode · Architecture component</title><rect x="200" y="300" width="150" height="60" rx="6" class="c-mask"/>- <rect x="200" y="300" width="150" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>+ <rect x="200" y="300" width="150" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:1" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(206 306) scale(0.6875)"><rect x="2" y="3" width="12" height="10" rx="2"/><path d="M2 6.5h12"/>@@ -5083,7 +5260,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-skill" data-node-id="skill" data-node-label="SKILL.md" tabindex="0" role="button" aria-label="Focus SKILL.md, layout judgment, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="layout judgment" data-node-tag="prompt dialect" data-node-context="Architecture component"><title>SKILL.md · layout judgment · Architecture component · prompt dialect</title><rect x="200" y="140" width="150" height="60" rx="6" class="c-mask"/>- <rect x="200" y="140" width="150" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>+ <rect x="200" y="140" width="150" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:2" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(206 146) scale(0.6875)"><rect x="2" y="3" width="12" height="10" rx="2"/><path d="M2 6.5h12"/>@@ -5098,7 +5275,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-ir" data-node-id="ir" data-node-label="JSON IR" tabindex="0" role="button" aria-label="Focus JSON IR, schema_version: 1, archify/ skill package" aria-pressed="false" data-node-kind="messagebus" data-node-sublabel="schema_version: 1" data-node-context="archify/ skill package"><title>JSON IR · schema_version: 1 · archify/ skill package</title><rect x="400" y="300" width="140" height="60" rx="6" class="c-mask"/>- <rect x="400" y="300" width="140" height="60" rx="6" class="c-messagebus" stroke-width="1.5"/>+ <rect x="400" y="300" width="140" height="60" rx="6" class="c-messagebus" data-animate="node" style="--step:3" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="messagebus" class="semantic-sigil s-messagebus" transform="translate(406 306) scale(0.6875)"><path d="M2.5 4.5h11M2.5 8h11M2.5 11.5h11"/><circle cx="5" cy="4.5" r="1" class="sigil-fill"/>@@ -5112,7 +5289,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-schemas" data-node-id="schemas" data-node-label="JSON Schema" tabindex="0" role="button" aria-label="Focus JSON Schema, ajv strict, archify/ skill package" aria-pressed="false" data-node-kind="security" data-node-sublabel="ajv strict" data-node-tag="fail-closed" data-node-context="archify/ skill package"><title>JSON Schema · ajv strict · archify/ skill package · fail-closed</title><rect x="400" y="140" width="140" height="60" rx="6" class="c-mask"/>- <rect x="400" y="140" width="140" height="60" rx="6" class="c-security" stroke-width="1.5"/>+ <rect x="400" y="140" width="140" height="60" rx="6" class="c-security" data-animate="node" style="--step:4" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(406 146) scale(0.6875)"><path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/><path d="m5.8 8 1.5 1.5 3-3"/>@@ -5125,7 +5302,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-renderers" data-node-id="renderers" data-node-label="Renderers ×5" tabindex="0" role="button" aria-label="Focus Renderers ×5, layout checks, archify/ skill package" aria-pressed="false" data-node-kind="backend" data-node-sublabel="layout checks" data-node-tag="no auto-layout" data-node-context="archify/ skill package"><title>Renderers ×5 · layout checks · archify/ skill package · no auto-layout</title><rect x="590" y="300" width="140" height="60" rx="6" class="c-mask"/>- <rect x="590" y="300" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="590" y="300" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:5" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(596 306) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5137,7 +5314,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-template" data-node-id="template" data-node-label="template.html" tabindex="0" role="button" aria-label="Focus template.html, theme + export, archify/ skill package" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="theme + export" data-node-context="archify/ skill package"><title>template.html · theme + export · archify/ skill package</title><rect x="780" y="300" width="140" height="60" rx="6" class="c-mask"/>- <rect x="780" y="300" width="140" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>+ <rect x="780" y="300" width="140" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:6" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(786 306) scale(0.6875)"><rect x="2" y="3" width="12" height="10" rx="2"/><path d="M2 6.5h12"/>@@ -5151,7 +5328,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-checker" data-node-id="checker" data-node-label="Output Check" tabindex="0" role="button" aria-label="Focus Output Check, SVG gates, archify/ skill package" aria-pressed="false" data-node-kind="security" data-node-sublabel="SVG gates" data-node-context="archify/ skill package"><title>Output Check · SVG gates · archify/ skill package</title><rect x="970" y="300" width="140" height="60" rx="6" class="c-mask"/>- <rect x="970" y="300" width="140" height="60" rx="6" class="c-security" stroke-width="1.5"/>+ <rect x="970" y="300" width="140" height="60" rx="6" class="c-security" data-animate="node" style="--step:7" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(976 306) scale(0.6875)"><path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/><path d="m5.8 8 1.5 1.5 3-3"/>@@ -5163,7 +5340,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-html" data-node-id="html" data-node-label="HTML Artifact" tabindex="0" role="button" aria-label="Focus HTML Artifact, single file, Architecture component" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="single file" data-node-context="Architecture component"><title>HTML Artifact · single file · Architecture component</title><rect x="1160" y="300" width="140" height="60" rx="6" class="c-mask"/>- <rect x="1160" y="300" width="140" height="60" rx="6" class="c-cloud" stroke-width="1.5"/>+ <rect x="1160" y="300" width="140" height="60" rx="6" class="c-cloud" data-animate="node" style="--step:8" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(1166 306) scale(0.6875)"><path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/></g>@@ -5174,7 +5351,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-zip" data-node-id="zip" data-node-label="archify.zip" tabindex="0" role="button" aria-label="Focus archify.zip, skill package, Architecture component" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="skill package" data-node-context="Architecture component"><title>archify.zip · skill package · Architecture component</title><rect x="1160" y="140" width="140" height="60" rx="6" class="c-mask"/>- <rect x="1160" y="140" width="140" height="60" rx="6" class="c-cloud" stroke-width="1.5"/>+ <rect x="1160" y="140" width="140" height="60" rx="6" class="c-cloud" data-animate="node" style="--step:10" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(1166 146) scale(0.6875)"><path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/></g>@@ -5185,7 +5362,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-ci" data-node-id="ci" data-node-label="CI Gates" tabindex="0" role="button" aria-label="Focus CI Gates, golden + zip, Architecture component" aria-pressed="false" data-node-kind="backend" data-node-sublabel="golden + zip" data-node-context="Architecture component"><title>CI Gates · golden + zip · Architecture component</title><rect x="590" y="440" width="140" height="60" rx="6" class="c-mask"/>- <rect x="590" y="440" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="590" y="440" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:9" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(596 446) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5220,29 +5397,29 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<!-- Legend --><g data-legend="" data-legend-bridge=""><text x="40" y="532" class="t-primary" font-size="12" font-weight="650">Legend</text>- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="552" data-legend-width="83">+ <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="552" data-legend-width="93"><rect x="40" y="543" width="16" height="10" rx="2.5" class="c-frontend" stroke-width="1"/><text x="62" y="552" class="t-muted" font-size="10" font-weight="500">Frontend</text></g>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="145" data-legend-baseline="552" data-legend-width="78">- <rect x="145" y="543" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>- <text x="167" y="552" class="t-muted" font-size="10" font-weight="500">Backend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="155" data-legend-baseline="552" data-legend-width="87">+ <rect x="155" y="543" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>+ <text x="177" y="552" class="t-muted" font-size="10" font-weight="500">Backend</text></g>- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="552" data-legend-width="68">- <rect x="245" y="543" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>- <text x="267" y="552" class="t-muted" font-size="10" font-weight="500">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="264" data-legend-baseline="552" data-legend-width="74">+ <rect x="264" y="543" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="286" y="552" class="t-muted" font-size="10" font-weight="500">Cloud</text></g>- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="552" data-legend-width="83">- <rect x="335" y="543" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>- <text x="357" y="552" class="t-muted" font-size="10" font-weight="500">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="360" data-legend-baseline="552" data-legend-width="93">+ <rect x="360" y="543" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="382" y="552" class="t-muted" font-size="10" font-weight="500">Security</text></g>- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="440" data-legend-baseline="552" data-legend-width="98">- <rect x="440" y="543" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>- <text x="462" y="552" class="t-muted" font-size="10" font-weight="500">Message bus</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="475" data-legend-baseline="552" data-legend-width="112">+ <rect x="475" y="543" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>+ <text x="497" y="552" class="t-muted" font-size="10" font-weight="500">Message bus</text></g>- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="560" data-legend-baseline="552" data-legend-width="83">- <rect x="560" y="543" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>- <text x="582" y="552" class="t-muted" font-size="10" font-weight="500">External</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="609" data-legend-baseline="552" data-legend-width="93">+ <rect x="609" y="543" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="631" y="552" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg>@@ -5403,11 +5580,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p><button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes & index</span></button><div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">- <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">ROUTE</button><button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -5503,11 +5680,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function hasDrawableGeometry(element) {- if (!element) return false;+ if (!element || element.hasAttribute('data-ambient-flow-overlay')) return false;var geometries = /^(path|line|polyline)$/i.test(element.tagName)? [element]: Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));return geometries.some(function (geometry) {+ if (geometry.hasAttribute('data-ambient-flow-overlay')) return false;var source = geometry.tagName.toLowerCase() === 'path'? geometry.getAttribute('d'): geometry.tagName.toLowerCase() === 'polyline'@@ -5752,6 +5930,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function cleanExportClone(clone) {+ Array.prototype.forEach.call(clone.querySelectorAll('[data-ambient-flow-overlay]'), function (el) {+ el.remove();+ });+ // Route interaction rewrites CSS declarations through CSSOM. Normalize+ // authored motion delays on the clone so exported bytes do not depend+ // on whether the reader traced a route before downloading.+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (el) {+ var step = el.style.getPropertyValue('--step');+ if (step) el.setAttribute('style', el.style.cssText);+ });// View transforms and neighborhood focus are HTML exploration state,// never part of a downloaded full-diagram artifact.clone.style.removeProperty('transform');@@ -5772,6 +5960,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.clone.removeAttribute('data-route-journey');clone.removeAttribute('data-share-route');clone.removeAttribute('data-share-reach');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reader-legend-corner]'), function (el) {+ el.removeAttribute('data-reader-legend-corner');+ el.style.removeProperty('--archify-reader-legend-transform');+ });Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {el.remove();});@@ -5817,7 +6009,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.});Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {var originalLabel = el.getAttribute('data-source-evidence-original-label');- if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');+ if (originalLabel == null) el.removeAttribute('aria-label');else el.setAttribute('aria-label', originalLabel);el.removeAttribute('data-source-evidence-count');el.removeAttribute('data-source-evidence-original-label');@@ -5880,6 +6072,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {el.setAttribute('aria-pressed', 'false');});+ // A downloaded tree is always the complete hierarchy: collapsing is a+ // reading aid, never a silent change to what the artifact contains.+ clone.removeAttribute('data-tree-any-collapsed');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-hidden], [data-tree-collapsed]'), function (el) {+ el.removeAttribute('data-tree-hidden');+ el.removeAttribute('data-tree-collapsed');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-toggle]'), function (el) {+ el.setAttribute('aria-expanded', 'true');+ el.setAttribute('aria-label', el.getAttribute('data-tree-label-collapse') || '');+ });return !clone.hasAttribute('data-view-scale') &&!clone.hasAttribute('data-focus-active') &&!clone.hasAttribute('data-reach-active') &&@@ -5895,9 +6098,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.!clone.hasAttribute('data-route-journey') &&!clone.hasAttribute('data-share-route') &&!clone.hasAttribute('data-share-reach') &&+ !clone.hasAttribute('data-tree-any-collapsed') &&!clone.style.getPropertyValue('transform') &&!clone.style.getPropertyValue('clip-path') &&- clone.querySelectorAll('[data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;+ clone.querySelectorAll('[data-ambient-flow-overlay], [data-reader-legend-corner], [data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor], [data-tree-hidden], [data-tree-collapsed]').length === 0;}@@ -6673,13 +6877,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function samplesFor(element) {if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];+ var geometry = element;+ if (element.getAttribute('data-motion-path')) {+ geometry = element.cloneNode(false);+ geometry.setAttribute('d', element.getAttribute('data-motion-path'));+ }var length;- try { length = element.getTotalLength(); } catch (_) { return []; }+ try { length = geometry.getTotalLength(); } catch (_) { return []; }if (!Number.isFinite(length) || length <= 0) return [];var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));var points = [];for (var i = 0; i <= count; i++) {- points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));+ points.push(pointInRoot(element, geometry.getPointAtLength(length * i / count)));}return points;}@@ -7253,38 +7462,174 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var ownerToken = 0;var ownerCleanup = null;var lastEffectivePaused = null;- var ambientStarted = false;- var ambientPending = new Set();-- function detachAmbientBoundary() {- if (!svg) return;- svg.removeEventListener('animationend', onAmbientBoundary, true);- svg.removeEventListener('animationcancel', onAmbientBoundary, true);- }- function settleAmbient(reason) {- if (!capable) return false;- ambientStarted = true;- ambientPending.clear();- detachAmbientBoundary();- html.setAttribute('data-ambient-motion', 'settled');- html.setAttribute('data-ambient-settle-reason', reason || 'complete');- return true;- }- function onAmbientBoundary(event) {- if (!ambientPending.has(event.target)) return;- ambientPending.delete(event.target);- if (!ambientPending.size) settleAmbient('complete');- }- function startAmbient() {- if (ambientStarted || !capable) return false;- ambientStarted = true;- ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));- if (!ambientPending.size) return settleAmbient('empty');- svg.addEventListener('animationend', onAmbientBoundary, true);- svg.addEventListener('animationcancel', onAmbientBoundary, true);- html.setAttribute('data-ambient-motion', 'running');- html.removeAttribute('data-ambient-settle-reason');- return true;+ var entryStarted = false;+ var entryPending = new Set();+ var flowCount = 0;++ // Runtime decoration carries geometry and tree visibility only. Keep each+ // flow beside its authored edge so transforms, clipping and crossover+ // paint order apply.+ // Each edge carries a small light show: a comet (halo, tail, head)+ // cascading downstream on one shared cycle, a lingering wake, and a+ // ripple where the comet lands. Phases follow the authored step order:+ // source-node rank where known, chronological message order in sequence+ // diagrams.+ function readSecondsVar(name, fallback) {+ var value = '';+ try { value = window.getComputedStyle(svg).getPropertyValue(name); } catch (_) {}+ var seconds = parseFloat(value);+ return Number.isFinite(seconds) && seconds > 0 ? seconds : fallback;+ }+ function nodeStep(from) {+ // Authored IDs follow the schema's conservative identifier pattern, so+ // direct selector interpolation stays safe here. The semantic wrapper+ // groups the animated shape; its authored step ranks the node.+ var node = from ? svg.querySelector('[data-node-id="' + from + '"]') : null;+ var shape = node ? node.querySelector('[data-animate="node"]') : null;+ return shape && shape.style ? shape.style.getPropertyValue('--step') : '';+ }+ function edgePhase(shape, fallbackStep) {+ // Sequence messages have no data-edge-from; their own authored step is+ // already chronological, which is the right phase there.+ var raw = nodeStep(shape.getAttribute('data-edge-from'));+ if (raw === '' && shape.style) raw = shape.style.getPropertyValue('--step');+ var step = parseFloat(raw);+ return Number.isFinite(step) ? step : fallbackStep;+ }+ function createFlows() {+ var stepDelay = readSecondsVar('--flow-step-delay', 0.2);+ var cycle = readSecondsVar('--flow-cycle', 6.4);+ Array.prototype.forEach.call(svg.querySelectorAll('path[data-animate="edge"]'), function (shape, index) {+ var d = shape.getAttribute('data-motion-path') || shape.getAttribute('d');+ if (!d) return;+ var anchor = shape;+ // Tree Branches initializes after these overlays and includes their+ // inherited ancestors in its existing collapse/expand lifecycle.+ function tagOverlay(flow) {+ flow.setAttribute('data-ambient-flow-overlay', 'true');+ flow.setAttribute('aria-hidden', 'true');+ if (shape.hasAttribute('data-tree-ancestors')) {+ flow.setAttribute('data-tree-ancestors', shape.getAttribute('data-tree-ancestors'));+ }+ }+ function addPath(cls) {+ var flow = document.createElementNS('http://www.w3.org/2000/svg', 'path');+ flow.setAttribute('d', d);+ ['transform', 'mask', 'clip-path', 'vector-effect'].forEach(function (name) {+ if (shape.hasAttribute(name)) flow.setAttribute(name, shape.getAttribute(name));+ });+ flow.setAttribute('class', 'ambient-edge-flow ambient-flow-' + cls);+ tagOverlay(flow);+ shape.parentNode.insertBefore(flow, anchor.nextSibling);+ anchor = flow;+ return flow;+ }+ var wake = addPath('wake');+ var len = 0;+ try { len = wake.getTotalLength(); } catch (_) {}+ if (!(len > 0)) {+ wake.remove();+ return;+ }+ var glow = addPath('glow');+ var halo = addPath('halo');+ var tail = addPath('tail');+ var head = addPath('head'); var end = null;+ try { end = head.getPointAtLength(len); } catch (_) {}+ // Dashed authored lines keep their dash language through the show:+ // the wake brightens only the authored segments and never fills the+ // gaps back into a solid line.+ var authoredDash = '';+ try { authoredDash = window.getComputedStyle(shape).strokeDasharray; } catch (_) {}+ if (authoredDash && authoredDash !== 'none') {+ wake.style.setProperty('--flow-dasharray', authoredDash);+ }+ // Absolute caps keep the comet a slim streak on long edges instead+ // of growing into a bright slab; the tail disintegrates into a+ // sparkle of fragments behind the head, and --flow-shift trails+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;+ var trail = len >= 120+ ? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }+ : (len >= 60+ ? { pattern: '3 3 7 ' + (len - 13).toFixed(1), length: 13 }+ : { pattern: '5 ' + Math.max(4, len - 5).toFixed(1), length: 5 });+ var phase = edgePhase(shape, index) * stepDelay;+ var configs = [+ { flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },+ { flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },+ { flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },+ { flow: head, dash: headLen, shift: 0, delay: phase },+ ];+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });+ configs.forEach(function (cfg) {+ cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');+ cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');+ cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');+ cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));+ if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);+ });+ // The sonar pair lands where the comet does; keep it out of the+ // edge's mask so it can bloom over the node boundary.+ if (end) {+ ['ripple', 'ripple-echo'].forEach(function (kind) {+ var ripple = document.createElementNS('http://www.w3.org/2000/svg', 'circle');+ ripple.setAttribute('cx', end.x.toFixed(1));+ ripple.setAttribute('cy', end.y.toFixed(1));+ ripple.setAttribute('r', '2');+ if (shape.hasAttribute('transform')) ripple.setAttribute('transform', shape.getAttribute('transform'));+ ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);+ tagOverlay(ripple);+ ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));+ shape.parentNode.insertBefore(ripple, anchor.nextSibling);+ anchor = ripple;+ });+ }+ flowCount += 1;+ });+ }+ function settleEntry() {+ entryPending.clear();+ svg.removeEventListener('animationend', onEntryBoundary, true);+ svg.removeEventListener('animationcancel', onEntryBoundary, true);+ html.setAttribute('data-ambient-entry', 'settled');+ }+ function onEntryBoundary(event) {+ if (!entryPending.has(event.target)) return;+ // The entrance settles only when each node's pulse finishes; the+ // shorter fade-rise enter animation may end first without ending it.+ if (event.animationName && !/node-pulse/.test(event.animationName)) return;+ entryPending.delete(event.target);+ if (!entryPending.size) settleEntry();+ }+ function renderAmbient(suppressed) {+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');+ if (suppressed) {+ entryStarted = true;+ settleEntry();+ } else if (!entryStarted) {+ entryStarted = true;+ entryPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="node"]')));+ if (!entryPending.size) settleEntry();+ else {+ svg.addEventListener('animationend', onEntryBoundary, true);+ svg.addEventListener('animationcancel', onEntryBoundary, true);+ html.setAttribute('data-ambient-entry', 'running');+ }+ }}function readStored() {@@ -7292,8 +7637,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7319,11 +7664,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var systemPaused = reducedMotion();var paused = effectivePaused();html.setAttribute('data-motion', paused ? 'still' : 'live');- if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {- settleAmbient('suppressed');- } else if (!ambientStarted) {- startAmbient();- }+ renderAmbient(paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden'));btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');@@ -7428,7 +7769,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.html.removeAttribute('data-motion');html.removeAttribute('data-motion-owner');html.removeAttribute('data-ambient-motion');- html.removeAttribute('data-ambient-settle-reason');+ html.removeAttribute('data-ambient-entry');return {capable: false,pause: function () { return false; },@@ -7444,15 +7785,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};}+ createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);}document.addEventListener('visibilitychange', syncVisibility);+ if (typeof MutationObserver !== 'undefined') {+ var contextObserver = new MutationObserver(render);+ contextObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-share-playback'] });+ }if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {var ownerObserver = new MutationObserver(function () { publishOwner(); });ownerObserver.observe(svg, {@@ -7493,69 +7839,172 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Archify.sourceEvidence = (function () {var element = document.getElementById('archify-source-evidence-data');var payload = null;- var svgNamespace = 'http://www.w3.org/2000/svg';if (element) {try {var parsed = JSON.parse(element.textContent || 'null');if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;} catch (_) {}}- function installBeacons() {- if (!payload) return 0;- var svg = document.querySelector('.diagram-container svg');- if (!svg) return 0;- var installed = 0;- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {- var id = node.getAttribute('data-node-id');- var sources = payload.nodes[id];- if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;- var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');- var box;- try { box = (shape || node).getBBox(); } catch (_) { return; }- if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;-- var count = sources.length;- var label = viewerCount('viewer.passport.beacon', count);- var beacon = document.createElementNS(svgNamespace, 'g');- beacon.classList.add('source-evidence-beacon');- beacon.setAttribute('data-source-evidence-beacon', '');- beacon.setAttribute('aria-hidden', 'true');- var brandOffset = node.hasAttribute('data-node-brand') ? 24 : 0;- beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 35 - brandOffset) + ' ' + (box.y + 5) + ')');- var title = document.createElementNS(svgNamespace, 'title');- title.textContent = label;- var plate = document.createElementNS(svgNamespace, 'rect');- plate.setAttribute('width', '30');- plate.setAttribute('height', '12');- plate.setAttribute('rx', '6');- var text = document.createElementNS(svgNamespace, 'text');- text.setAttribute('x', '15');- text.setAttribute('y', '8.25');- text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;- beacon.appendChild(title);- beacon.appendChild(plate);- beacon.appendChild(text);- node.appendChild(beacon);-- var originalLabel = node.getAttribute('aria-label') || '';- node.setAttribute('data-source-evidence-count', String(count));- node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));- installed += 1;- });- return installed;- }+ // Keep verified evidence discoverable to screen readers without adding+ // visual marks. Restore first so repeated initialization never appends+ // another count or retains one after evidence becomes unavailable.+ var svg = document.querySelector('.diagram-container svg');+ if (svg) Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ if (node.hasAttribute('data-source-evidence-count')) {+ var savedLabel = node.getAttribute('data-source-evidence-original-label');+ if (savedLabel == null) node.removeAttribute('aria-label');+ else node.setAttribute('aria-label', savedLabel);+ node.removeAttribute('data-source-evidence-count');+ node.removeAttribute('data-source-evidence-original-label');+ }+ var sources = payload && payload.nodes[node.getAttribute('data-node-id')];+ if (!Array.isArray(sources) || !sources.length) return;+ var originalLabel = node.getAttribute('aria-label');+ node.setAttribute('data-source-evidence-count', String(sources.length));+ if (originalLabel != null) node.setAttribute('data-source-evidence-original-label', originalLabel);+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') ++ viewerCount('viewer.passport.sourceCount', sources.length));+ });return {available: function () { return Boolean(payload); },repository: function () { return payload ? payload.repository : null; },node: function (id) {var sources = payload && payload.nodes ? payload.nodes[id] : null;return Array.isArray(sources) ? sources.slice() : [];- },- installBeacons: installBeacons+ }+ };+ })();++ /* ============================================================+ Tree Branches — expand/collapse for hierarchy diagrams. The renderer+ lays out the complete tree once and tags every node, link, and toggle+ with its ancestors; collapsing only hides descendants, so visible nodes+ never move and the reader keeps their place. Selecting a hidden node+ through Finder, Outline, or a shared link expands its ancestors. Export+ always writes the complete tree (see Export Cleanup).+ ============================================================ */+ Archify.treeBranches = (function () {+ var svg = document.querySelector('.diagram-container > svg[data-tree-ui]');+ if (!svg) return { active: false };+ var collapsed = Object.create(null);+ var toggles = Object.create(null);+ Array.prototype.forEach.call(svg.querySelectorAll('[data-tree-toggle]'), function (toggle) {+ toggles[toggle.getAttribute('data-tree-toggle')] = toggle;+ });+ var tagged = svg.querySelectorAll('[data-tree-ancestors]');+ var expandAll = svg.querySelector('[data-tree-expand-all]');++ function ancestors(el) {+ return (el.getAttribute('data-tree-ancestors') || '').split(' ').filter(Boolean);+ }++ function apply() {+ Array.prototype.forEach.call(tagged, function (el) {+ var hidden = ancestors(el).some(function (id) { return collapsed[id]; });+ if (hidden) el.setAttribute('data-tree-hidden', '');+ else el.removeAttribute('data-tree-hidden');+ });+ var any = false;+ Object.keys(toggles).forEach(function (id) {+ var toggle = toggles[id];+ var isCollapsed = Boolean(collapsed[id]);+ any = any || isCollapsed;+ toggle.setAttribute('aria-expanded', isCollapsed ? 'false' : 'true');+ toggle.setAttribute('aria-label', toggle.getAttribute(isCollapsed ? 'data-tree-label-expand' : 'data-tree-label-collapse') || '');+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (node) {+ if (isCollapsed) node.setAttribute('data-tree-collapsed', '');+ else node.removeAttribute('data-tree-collapsed');+ }+ });+ if (any) svg.setAttribute('data-tree-any-collapsed', '');+ else svg.removeAttribute('data-tree-any-collapsed');+ }++ function setCollapsed(id, value) {+ if (!toggles[id]) return false;+ if (value) collapsed[id] = true;+ else delete collapsed[id];+ apply();+ return true;+ }++ function toggle(id) { return setCollapsed(id, !collapsed[id]); }++ // Reveal a node by expanding every collapsed ancestor; nothing else moves.+ function reveal(id) {+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (!node) return false;+ var changed = false;+ ancestors(node).forEach(function (ancestor) {+ if (collapsed[ancestor]) { delete collapsed[ancestor]; changed = true; }+ });+ if (changed) apply();+ return changed;+ }++ function restoreAll() {+ collapsed = Object.create(null);+ apply();+ }++ function activate(event) {+ var target = event.target.closest('[data-tree-toggle], [data-tree-expand-all]');+ if (!target || !svg.contains(target)) return false;+ event.preventDefault();+ event.stopPropagation();+ if (target.hasAttribute('data-tree-expand-all')) {+ restoreAll();+ var root = svg.querySelector('[data-tree-toggle]:not([data-tree-ancestors])');+ if (root) root.focus();+ } else {+ toggle(target.getAttribute('data-tree-toggle'));+ target.focus();+ }+ return true;+ }++ // Capture phase so the canvas focus handler never treats a toggle press+ // as a background click that clears the current focus.+ svg.addEventListener('click', activate, true);+ svg.addEventListener('keydown', function (event) {+ if (event.key === 'Enter' || event.key === ' ') { activate(event); return; }+ var node = event.target.closest('[data-node-id]');+ if (!node || !svg.contains(node)) return;+ var id = node.getAttribute('data-node-id');+ // Arrow keys follow the tree convention: left collapses, right expands.+ if (event.key === 'ArrowLeft' && toggles[id] && !collapsed[id]) { event.preventDefault(); setCollapsed(id, true); }+ else if (event.key === 'ArrowRight' && collapsed[id]) { event.preventDefault(); setCollapsed(id, false); }+ }, true);++ // Focus reveals ancestors synchronously before positioning its lens.+ // The observer also covers paths that change pressed state directly.+ new MutationObserver(function (records) {+ records.forEach(function (record) {+ var el = record.target;+ if (el.hasAttribute && el.hasAttribute('data-tree-hidden') && el.getAttribute('aria-pressed') === 'true') {+ reveal(el.getAttribute('data-node-id'));+ }+ });+ }).observe(svg, { subtree: true, attributes: true, attributeFilter: ['aria-pressed'] });++ Object.keys(toggles).forEach(function (id) {+ if (toggles[id].hasAttribute('data-tree-initially-collapsed')) collapsed[id] = true;+ });+ apply();++ return {+ active: true,+ toggle: toggle,+ collapse: function (id) { return setCollapsed(id, true); },+ expand: function (id) { return setCollapsed(id, false); },+ reveal: reveal,+ restoreAll: restoreAll,+ collapsedIds: function () { return Object.keys(collapsed); },+ expandAllControl: expandAll};})();- Archify.sourceEvidence.installBeacons();+/* ============================================================Explore — stable-ID neighborhood focus + dependency-free pan/zoom.@@ -7978,7 +8427,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function relationshipEdgeShapes(edge) {if (!edge) return [];if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function relationshipHitRecords() {var recordsByKey = {};@@ -8082,6 +8531,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function relationshipPulseGeometry(shape) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', relationshipTokenPath(shape));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -8126,7 +8577,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function relationshipTokenPath(shape) {if (!shape) return '';var tagName = String(shape.tagName || '').toLowerCase();- if (tagName === 'path') return shape.getAttribute('d') || '';+ if (tagName === 'path') return shape.getAttribute('data-motion-path') || shape.getAttribute('d') || '';if (tagName === 'line') {return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') +' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');@@ -8887,6 +9338,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);});if (!normalized.length) return false;+ // Hash restoration and internal selections use this path too. Reveal+ // tree ancestors before measuring the selected node for its lens.+ if (Archify.treeBranches && Archify.treeBranches.active) {+ normalized.forEach(function (id) { Archify.treeBranches.reveal(id); });+ }if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {clear();return true;@@ -9102,6 +9558,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.window.addEventListener('scroll', requestLensPlacement, { passive: true });window.addEventListener('resize', requestLensPlacement);container.addEventListener('scroll', requestLensPlacement, { passive: true });+ // Reader and Chrome may finish resizing the stage after window resize.+ // The absolute Passport does not resize its container when reclamped.+ if (typeof ResizeObserver === 'function') {+ new ResizeObserver(function () {+ if (!chip.hidden) requestLensPlacement();+ }).observe(container);+ }document.addEventListener('visibilitychange', function () {if (document.hidden) removeRelationshipPulse();});@@ -9213,7 +9676,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function edgeShapes(edge) {if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function removeOverlay() {Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {@@ -9236,6 +9699,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function traceGeometry(shape, direction) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -9383,6 +9848,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Adaptive Reader Shell — one diagram across laptop and monitor.The canonical SVG and viewBox never change. On ordinary desktop pages,@@ -9439,14 +9905,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shell = document.querySelector('.container');var diagram = document.querySelector('.diagram-container');var svg = diagram && diagram.querySelector(':scope > svg');+ var legend = svg && svg.querySelector('[data-legend]');var header = shell && shell.querySelector('.header');var cards = shell && shell.querySelector('.cards');var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;- var measuredHeightFit = svg && svg.getAttribute('data-reader-fit') === 'intrinsic-height';+ var readerFit = svg && svg.getAttribute('data-reader-fit');+ var widthFirstReading = readerFit === 'width-first';+ var automaticSequence = widthFirstReading && svg.hasAttribute('data-sequence-column-fit');+ var readingScroll = widthFirstReading;+ var measuredHeightFit = readerFit === 'intrinsic-height' || widthFirstReading;var frame = 0;var settleFrame = 0;var lastWidth = 0;+ var automaticAreaHeight = 0;// Widest reader the overflow settle has accepted for this viewport (0 =// uncapped). Card copy rewraps as the reader narrows, so recomputing// from fixed heights alone would widen again and oscillate; only a@@ -9456,6 +9928,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var MIN_DESKTOP_WIDTH = 1024;var MIN_READER_WIDTH = 960;var MAX_READER_WIDTH = 1920;+ var MAX_AUTOMATIC_SCALE = 1.5;var MIN_PROJECTED_NODE_TEXT_PX = 6;var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;var requestedMinimumText = Number.isFinite(declaredMinimumText)@@ -9506,24 +9979,34 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var style = window.getComputedStyle(element);return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);}+ // Smallest scale that keeps node text at the requested floor and+ // context relationship labels readable. A declared wide reader holds+ // relationship labels to the requested floor too; every other reader+ // still keeps them at the 6px hard floor the browser gate enforces, so+ // a first-screen fit can never push them below it.function minimumReadableScale() {- var sourceMinimum = null;- var selectors = [- 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'- ];- if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {- selectors.push('g[data-detail="context"][data-edge-from][data-edge-to] > text');- }- Array.from(svg.querySelectorAll(selectors.join(', '))).forEach(function (text) {- if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;+ var nodeMinimum = null;+ var edgeMinimum = null;+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');- if (Number.isFinite(sourceFontPx)) {- sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);+ if (!Number.isFinite(sourceFontPx)) return;+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);+ } else if (primary || text.closest('[data-node-id]')) {+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);}});- return sourceMinimum != null- ? Math.min(1, requestedMinimumText / sourceMinimum)- : 1;+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? requestedMinimumText+ : MIN_PROJECTED_NODE_TEXT_PX;+ var scale = 0;+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);+ return scale > 0 ? Math.min(1, scale) : 1;}var sourcePrimary = null;if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {@@ -9556,11 +10039,66 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function clear() {html.style.removeProperty('--archify-reader-width');+ html.style.removeProperty('--archify-diagram-max-width');+ html.style.removeProperty('--archify-diagram-min-height');+ html.removeAttribute('data-reader-area');+ html.removeAttribute('data-reader-narrow');html.removeAttribute('data-reader-layout');html.removeAttribute('data-reader-overflow');setRail(false);lastWidth = 0;+ automaticAreaHeight = 0;settledCap = 0;+ clearLegend();+ }+ function clearLegend() {+ if (!legend || !legend.hasAttribute('data-reader-legend-corner')) return;+ legend.removeAttribute('data-reader-legend-corner');+ legend.style.removeProperty('--archify-reader-legend-transform');+ }+ // Keep the original legend in its SVG: renderer hover/focus selectors and+ // canonical export still own that same group. Ordinary capped reading+ // and fitted automatic sequences borrow the outer corner at 25–100%.+ function syncLegend() {+ var cameraScale = Number(svg && svg.getAttribute('data-view-scale')) || 1;+ var cornerReading = html.getAttribute('data-reader-area') === 'true' || automaticSequence && !readingScroll;+ if (!legend || !eligible() || !cornerReading || cameraScale > 1.001) {+ clearLegend();+ return;+ }+ var box = legend.getBBox();+ var parentMatrix = legend.parentNode.getScreenCTM();+ if (!parentMatrix || !box.width || !box.height) {+ clearLegend();+ return;+ }+ var rect = diagram.getBoundingClientRect();+ var style = window.getComputedStyle(diagram);+ var scale = Math.min(svg.clientWidth / viewBox.width, svg.clientHeight / viewBox.height);+ if (!Number.isFinite(scale) || scale <= 0) {+ clearLegend();+ return;+ }+ var left = rect.left + number(style.borderLeftWidth) + number(style.paddingLeft);+ var right = rect.right - number(style.borderRightWidth) - number(style.paddingRight);+ var bottom = rect.bottom - number(style.borderBottomWidth) - number(style.paddingBottom);+ var top = bottom - box.height * scale;+ var nav = diagram.querySelector('.diagram-nav');+ var navRect = visible(nav) ? nav.getBoundingClientRect() : null;+ // Long or multi-row legends retain their canonical position if the+ // spare corner cannot hold them clear of the dock and content area.+ if (left + box.width * scale > right || top < rect.top + number(style.paddingTop) + number(style.borderTopWidth) ||+ (navRect && left < navRect.right + 10 && left + box.width * scale > navRect.left - 10 &&+ top < navRect.bottom + 10 && bottom > navRect.top - 10)) {+ clearLegend();+ return;+ }+ var matrix = parentMatrix.inverse().translate(left, top).scale(scale).translate(-box.x, -box.y);+ var value = 'matrix(' + [matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f].join(',') + ')';+ if (legend.style.getPropertyValue('--archify-reader-legend-transform') !== value) {+ legend.style.setProperty('--archify-reader-legend-transform', value);+ }+ if (!legend.hasAttribute('data-reader-legend-corner')) legend.setAttribute('data-reader-legend-corner', '');}// Rail modes: "true" docks beside the diagram, "collapsed" leaves only the// reveal control, "overlay" opens a drawer when docking would break the@@ -9617,13 +10155,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)};}+ // `width` is the diagram's reading width. The page shell never narrows+ // below the desktop reader floor, so a narrow, tall diagram keeps a+ // usable header, toolbar, and controls; its SVG is centred instead.function applyWidth(width, minWidth) {var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));- if (Math.abs(rounded - lastWidth) < 1) return false;+ var changed = Math.abs(rounded - lastWidth) >= 1;lastWidth = rounded;- html.style.setProperty('--archify-reader-width', rounded + 'px');+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ var diagramWidth = Math.max(1, rounded - railShare - chromeMetrics().diagramX);+ // Content fitting and automatic enlargement never reduce the outer+ // reader region. The SVG alone takes the narrower reading width.+ var automaticWidthCap = measuredHeightFit && viewBox && viewBox.width > 0+ ? viewBox.width * MAX_AUTOMATIC_SCALE : 0;+ if (automaticWidthCap && diagramWidth > automaticWidthCap) {+ diagramWidth = automaticWidthCap;+ html.style.setProperty('--archify-diagram-min-height', automaticAreaHeight + 'px');+ html.setAttribute('data-reader-area', 'true');+ } else {+ // Ordinary automatic diagrams retain their existing document flow.+ // Settling can also stop binding the cap without a new measure.+ html.style.removeProperty('--archify-diagram-min-height');+ html.removeAttribute('data-reader-area');+ }+ if (diagramWidth < Math.max(rounded, shellFloor) - railShare - chromeMetrics().diagramX) {+ html.style.setProperty('--archify-diagram-max-width', diagramWidth + 'px');+ html.setAttribute('data-reader-narrow', 'true');+ } else {+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ }html.setAttribute('data-reader-layout', 'adaptive');- return true;+ syncLegend();+ return changed;}function settleOverflow(minWidth) {if (settleFrame) cancelAnimationFrame(settleFrame);@@ -9635,11 +10201,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.document.documentElement.scrollHeight,document.body.scrollHeight) - window.innerHeight - belowFold();- if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {+ // visual-check fails any page whose rounded-up height exceeds the+ // viewport, so even a 1px remainder must be reduced or declared.+ if (overflow > 0 && !readingScroll && lastWidth > Math.ceil(minWidth)) {applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);settledCap = lastWidth;html.setAttribute('data-reader-overflow', 'reduced');- } else if (overflow > 1) {+ } else if (overflow > 0) {html.setAttribute('data-reader-overflow', 'authored');} else {html.removeAttribute('data-reader-overflow');@@ -9654,17 +10222,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}var chrome = chromeMetrics();var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);+ // Sequence first-screen fitting preserves source text sizes instead+ // of shrinking to the shared hard readability floor.var readableWidth = viewBox && viewBox.width > 0- ? viewBox.width * minimumReadableScale() + chrome.diagramX+ ? viewBox.width * (automaticSequence ? 1 : minimumReadableScale()) + chrome.diagramX: MIN_READER_WIDTH;var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);- var readableMinimumWidth = measuredHeightFit && ratio < WIDE_RATIO+ var readableMinimumWidth = automaticSequence || measuredHeightFit && ratio < WIDE_RATIO? readableWidth: measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)? Math.max(MIN_READER_WIDTH, readableWidth): MIN_READER_WIDTH;var minWidth;- if (measuredHeightFit && ratio < WIDE_RATIO) {+ if (automaticSequence) {+ minWidth = Math.min(readableMinimumWidth, maxWidth);+ } else if (measuredHeightFit && ratio < WIDE_RATIO) {minWidth = Math.min(readableMinimumWidth, viewportCap);} else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {minWidth = Math.min(readableMinimumWidth, maxWidth);@@ -9686,10 +10258,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';else mode = fitsReadable ? 'true' : 'overlay';}- // With notes below the fold, the diagram may trade the renderer's- // comfortable primary size down to the rail's 12px floor so it and its- // controls fit the first screen; taller graphs still scroll.- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));+ // Height-fit families with notes below the fold may shrink to their+ // readable floor. Width-first families choose their reading width+ // below and retain page scrolling instead.+ if (mode === 'bottom') primaryWidth = 0;if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));var docked = mode === 'true';setRail(mode);@@ -9700,6 +10272,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.outerHeight(header) + stackedBelow;var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);+ // Compact automatic sequences fit the first screen without shrinking+ // their authored text. Longer sequences retain reading width and page+ // scroll; other width-first families keep their existing strategy.+ var sequenceFits = automaticSequence && Math.min(desiredWidth, maxWidth) >=+ readableWidth + (docked ? railExtra : 0);+ readingScroll = widthFirstReading && !sequenceFits;+ if (readingScroll) desiredWidth = maxWidth;+ // Only a binding enlargement cap needs a separate normal reader area.+ // Uncapped diagrams keep their existing natural height and Chrome fit.+ automaticAreaHeight = availableSvgHeight + chrome.diagramY;var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));applyWidth(width, minWidth);settleOverflow(minWidth);@@ -9728,7 +10310,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Math.round(shellRect.width * 100) / 100,Math.round(shellRect.height * 100) / 100,Math.round(diagramRect.width * 100) / 100,- Math.round(diagramRect.height * 100) / 100+ Math.round(diagramRect.height * 100) / 100,+ legend && legend.hasAttribute('data-reader-legend-corner') ? legend.style.getPropertyValue('--archify-reader-legend-transform') : ''].join('|');}function layoutPending() { return Boolean(frame || settleFrame); }@@ -9747,6 +10330,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.schedule();}, { passive: true });window.addEventListener('load', schedule, { once: true });+ window.addEventListener('beforeprint', clearLegend);+ window.addEventListener('afterprint', schedule);if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});if (typeof ResizeObserver === 'function') {var resizeObserver = new ResizeObserver(schedule);@@ -9789,6 +10374,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.measure: measure,schedule: schedule,whenStable: whenStable,+ syncLegend: syncLegend,active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },receipt: function () { return { ratio: ratio, width: lastWidth }; }};@@ -10081,6 +10667,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };return [reserve,+ lift,Math.round(containerRect.width * 100) / 100,Math.round(containerRect.height * 100) / 100,Math.round(navRect.left * 100) / 100,@@ -10091,7 +10678,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.lastReceipt ? lastReceipt.stageGap : ''].join('|');}- function layoutPending() { return Boolean(frame || settleFrame || probingBaseline); }+ function layoutPending() { return Boolean(frame || settleFrame || liftFrame || probingBaseline); }function whenStable() {return Archify.waitForStableLayout({schedule: schedule,@@ -10111,6 +10698,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (typeof ResizeObserver === 'function') {var resizeObserver = new ResizeObserver(schedule);[nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });+ // Camera zoom changes outer page flow without changing intrinsic SVG+ // size. Follow that box for dock placement, independently of scrolling+ // and the baseline stage-rail measurement.+ new ResizeObserver(scheduleLift).observe(container);}if (typeof MutationObserver === 'function') {var contentObserver = new MutationObserver(function (records) {@@ -10194,6 +10785,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');var inBtn = container.querySelector('[data-view="in"]');var state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ var minimumZoom = 0.25;+ var maximumZoom = 3;var drag = null;var cameraTimer = null;var cameraFrame = null;@@ -10202,12 +10795,25 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var clipFrame = 0;var resizeFrame = 0;var autoScrollUntil = 0;+ var originalFlowHeight = container.style.getPropertyValue('height');+ var originalFlowHeightPriority = container.style.getPropertyPriority('height');+ var compactPageFlow = false;var viewBox = svg.viewBox && svg.viewBox.baseVal;function clamp() {var width = svg.clientWidth || 1;var height = svg.clientHeight || 1;+ if (state.scale < 1) {+ var visibleWidth = Math.min(width, container.clientWidth);+ var availableX = visibleWidth - width * state.scale;+ state.x = availableX >= 0 ? container.scrollLeft + availableX / 2+ : Math.max(container.scrollLeft + availableX, Math.min(container.scrollLeft, state.x));+ // Long sequences keep their first rows in view instead of centering+ // inside a layout box that can be several screens tall.+ state.y = height > window.innerHeight ? 0 : height * (1 - state.scale) / 2;+ return;+ }state.x = Math.min(0, Math.max(width - width * state.scale, state.x));state.y = Math.min(0, Math.max(height - height * state.scale, state.y));}@@ -10234,15 +10840,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var y;var width;var height;- if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && state.scale >= 1) {x = viewBox.x + container.scrollLeft / metrics.scale;y = viewBox.y;width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));height = viewBox.height;} else {- x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;+ x = viewBox.x + (((container.scrollLeft - state.x) / state.scale) - metrics.offsetX) / metrics.scale;y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;- width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);+ width = Math.min(viewBox.width, Math.min(metrics.width, container.clientWidth) / state.scale / metrics.scale);height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);}width = Math.max(1, Math.min(viewBox.width, width));@@ -10307,13 +10913,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Math.abs(rendered.x - state.x) < 0.05 &&Math.abs(rendered.y - state.y) < 0.05;}+ // CSS transforms keep the SVG's intrinsic layout size. Shrink only its+ // outer page-flow box for long ordinary diagrams, never the SVG itself:+ // changing its height would feed the smaller size back into camera math.+ function syncPageFlow(camera) {+ camera = camera || state;+ var html = document.documentElement;+ var height = svg.clientHeight;+ var ordinary = html.getAttribute('data-embed') !== 'true' &&+ html.getAttribute('data-present') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches);+ // Restore ordinary flow as soon as the target reaches 100%. Chrome+ // uses that target to resume baseline rail measurement; retaining a+ // partially shrunk box during the CSS transition would inflate reserve.+ if (ordinary && state.scale < 1 && camera.scale < 1 && height > window.innerHeight) {+ var style = getComputedStyle(container);+ var chrome = ['paddingTop', 'paddingBottom', 'borderTopWidth', 'borderBottomWidth']+ .reduce(function (total, key) { return total + (parseFloat(style[key]) || 0); }, 0);+ var flowHeight = Math.ceil(height * camera.scale + Math.max(0, camera.y) + chrome) + 'px';+ if (container.style.getPropertyValue('height') !== flowHeight) container.style.setProperty('height', flowHeight);+ compactPageFlow = true;+ } else if (compactPageFlow) {+ if (originalFlowHeight) container.style.setProperty('height', originalFlowHeight, originalFlowHeightPriority);+ else container.style.removeProperty('height');+ compactPageFlow = false;+ }+ }function syncViewportClip() {if (clipFrame) cancelAnimationFrame(clipFrame);clipFrame = 0;function sample() {clipFrame = 0;var rendered = sampleRenderedState();+ syncPageFlow(rendered);clipToViewport(rendered);+ if (Archify.readerLayout && typeof Archify.readerLayout.syncLegend === 'function') Archify.readerLayout.syncLegend();if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);}sample();@@ -10321,12 +10955,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function apply() {clamp();svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';+ svg.setAttribute('data-view-scale', String(state.scale));syncViewportClip();renderControls();- outBtn.disabled = state.scale <= 1;- inBtn.disabled = state.scale >= 3;+ outBtn.disabled = state.scale <= minimumZoom;+ inBtn.disabled = state.scale >= maximumZoom;container.classList.toggle('is-pannable', state.scale > 1);- svg.setAttribute('data-view-scale', String(state.scale));if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {Archify.viewerChromeLayout.schedule();@@ -10420,8 +11054,14 @@ OTHER DEALINGS IN THE FONT SOFTWARE.options = options || {};if (options.manual !== false) interruptCamera();var previous = state.scale;- next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));+ next = Math.max(minimumZoom, Math.min(maximumZoom, Math.round(next * 4) / 4));if (next === previous) return;+ var longDiagram = svg.clientHeight > window.innerHeight && Math.min(previous, next) < 1;+ var before = longDiagram ? svg.getBoundingClientRect() : null;+ var anchorY = before ? Math.max(0, Math.min(window.innerHeight, before.bottom) + Math.max(0, before.top)) / 2 : 0;+ if (before && (before.bottom <= 0 || before.top >= window.innerHeight)) anchorY = window.innerHeight / 2;+ var logicalY = before ? Math.max(0, Math.min(svg.clientHeight, (anchorY - before.top) / previous)) : 0;+ var documentTop = before ? window.scrollY + before.top - state.y : 0;var centerX = (svg.clientWidth || 1) / 2;var centerY = (svg.clientHeight || 1) / 2;var contentX = (centerX - state.x) / previous;@@ -10430,6 +11070,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.state.x = centerX - contentX * next;state.y = centerY - contentY * next;apply();+ if (longDiagram) {+ var scaledHeight = svg.clientHeight * next;+ var pageY = scaledHeight <= window.innerHeight ? documentTop + state.y+ : documentTop + state.y + logicalY * next - anchorY;+ window.scrollTo({ left: window.scrollX, top: Math.max(0, pageY), behavior: 'instant' });+ }}function reset(options) {options = options || {};@@ -10686,6 +11332,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.else apply();});});+ // Reader width and Chrome reserve can change without a window resize.+ // Observe their resulting sizes; the SVG remains intrinsically sized, so+ // the outer flow height cannot feed back into its camera base.+ if (typeof ResizeObserver === 'function') {+ var flowObserver = new ResizeObserver(function () { syncPageFlow(sampleRenderedState()); });+ flowObserver.observe(svg);+ flowObserver.observe(container);+ }+ if (typeof MutationObserver === 'function') {+ new MutationObserver(function () { syncPageFlow(sampleRenderedState()); })+ .observe(document.documentElement, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });+ }+ var printMedia = window.matchMedia && window.matchMedia('print');+ if (printMedia && printMedia.addEventListener) printMedia.addEventListener('change', function () { syncPageFlow(sampleRenderedState()); });window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });apply();pinControls();@@ -11566,6 +12226,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var links = document.createElement('em');links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;+ if (item.links === 0) links.setAttribute('data-zero', 'true');var meta = document.createElement('small');meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');@@ -11806,6 +12467,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.})();+/* ============================================================Route Probe — shortest directed path over compiled semantics.The graph is read from renderer-owned stable IDs and relationship@@ -11912,7 +12574,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function edgeShapes(edge) {if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function removeOverlay() {Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {@@ -12142,6 +12804,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function traceGeometry(shape, step) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -12242,6 +12906,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function journeyGeometry(shape) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -12838,6 +13504,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Semantic Lens — a counted, viewer-only legend over data-node-kind.One selected kind reveals every authored relationship touching it.@@ -12901,7 +13568,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function edgeShapes(edge) {if (!edge) return [];if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function legendSourceBounds(entry) {var bounds = null;@@ -13074,6 +13741,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function flowGeometry(shape, direction, step) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -13511,6 +14180,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Diagram Guide — a factual command deck over existing interactions.Counts come from compiled semantics; actions delegate to Finder, Route@@ -13562,7 +14232,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -13662,7 +14334,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -13681,6 +14355,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.htmlindex 756925e5..7b717bf9 100644--- a/examples/checkout-platform-delta.html+++ b/examples/checkout-platform-delta.html@@ -4562,22 +4562,26 @@.c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4592,18 +4596,26 @@animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4632,19 +4644,20 @@.ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4696,43 +4709,51 @@}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -9598,22 +9619,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -9628,18 +9653,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -9668,19 +9701,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -9732,43 +9766,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -10387,7 +10429,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -12300,10 +12342,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -12316,9 +12358,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -12327,20 +12372,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -12355,6 +12404,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -12377,7 +12427,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -12398,8 +12448,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -12549,7 +12599,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -18993,7 +19043,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -19093,7 +19145,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -19112,6 +19166,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guide@@ -24245,22 +24315,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -24275,18 +24349,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -24315,19 +24397,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -24379,43 +24462,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -25036,7 +25127,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -26949,10 +27040,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -26965,9 +27056,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -26976,20 +27070,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -27004,6 +27102,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -27026,7 +27125,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -27047,8 +27146,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -27198,7 +27297,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -33642,7 +33741,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -33742,7 +33843,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -33761,6 +33864,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guide@@ -34095,7 +34214,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.const status = document.querySelector('#review-status');const receiptNode = document.querySelector('#archify-compare-receipt');const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');- const exportCss = "\n /* ==========================================================\n THEME VARIABLES — switch by toggling [data-theme] on \u003chtml\u003e\n ========================================================== */\n :root,\n [data-theme=\"dark\"] {\n --bg: #020617;\n --grid: #1e293b;\n --canvas-dot: rgba(148, 163, 184, 0.16);\n --text: #ffffff;\n --text-muted: #94a3b8;\n --text-dim: #475569;\n /* UI chrome and menu hints need more contrast than SVG .t-dim accents */\n --text-faint: #7d8da1;\n\n --panel: rgba(15, 23, 42, 0.5);\n --panel-border: #1e293b;\n --lane-fill: rgba(15, 23, 42, 0.22);\n --lane-stroke: #334155;\n\n --arrow: #64748b;\n --arrow-emphasis: #34d399;\n\n /* Opaque mask color used behind semi-transparent component fills\n so the arrows drawn underneath are properly hidden. */\n --mask: #0f172a;\n\n --frontend-fill: rgba(8, 51, 68, 0.4);\n --frontend-stroke: #22d3ee;\n --backend-fill: rgba(6, 78, 59, 0.4);\n --backend-stroke: #34d399;\n --database-fill: rgba(76, 29, 149, 0.4);\n --database-stroke: #a78bfa;\n --cloud-fill: rgba(120, 53, 15, 0.3);\n --cloud-stroke: #fbbf24;\n --security-fill: rgba(136, 19, 55, 0.4);\n --security-stroke: #fb7185;\n --messagebus-fill: rgba(251, 146, 60, 0.3);\n --messagebus-stroke:#fb923c;\n --external-fill: rgba(30, 41, 59, 0.5);\n --external-stroke: #94a3b8;\n\n --toolbar-bg: rgba(15, 23, 42, 0.8);\n --toolbar-border: #334155;\n --toolbar-text: #e2e8f0;\n --toolbar-hover: rgba(15, 23, 42, 0.95);\n --toolbar-menu-bg: #0f172a;\n }\n\n [data-theme=\"light\"] {\n --bg: #f4f5f7;\n --grid: #e9edf2;\n --canvas-dot: #e2e7ec;\n --text: #111827;\n --text-muted: #5b6474;\n --text-dim: #9aa3b2;\n --text-faint: #6b7280;\n\n --panel: #ffffff;\n --panel-border: #e5e7eb;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n\n --mask: #ffffff;\n\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke: #ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n\n --toolbar-bg: rgba(255, 255, 255, 0.92);\n --toolbar-border: #cbd5e1;\n --toolbar-text: #334155;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #ffffff;\n }\n\n /* ==========================================================\n SIGNAL FLOW — an opt-in, motion-forward visual preset.\n The variables also target a standalone exported SVG, whose\n root carries data-preset and data-theme directly.\n ========================================================== */\n [data-preset=\"signal-flow\"][data-theme=\"dark\"] {\n --bg: #030711;\n --grid: #15233a;\n --panel: rgba(6, 14, 28, 0.78);\n --panel-border: #1d3350;\n --lane-fill: rgba(9, 22, 40, 0.5);\n --lane-stroke: #2c4564;\n --text: #f5fbff;\n --text-muted: #9eb0c7;\n --text-dim: #52667f;\n --text-faint: #7890ad;\n --mask: #07101e;\n --frontend-fill: rgba(6, 182, 212, 0.14);\n --frontend-stroke: #67e8f9;\n --backend-fill: rgba(16, 185, 129, 0.14);\n --backend-stroke: #5eead4;\n --database-fill: rgba(139, 92, 246, 0.16);\n --database-stroke: #c4b5fd;\n --cloud-fill: rgba(245, 158, 11, 0.13);\n --cloud-stroke: #fcd34d;\n --security-fill: rgba(244, 63, 94, 0.13);\n --security-stroke: #fda4af;\n --messagebus-fill: rgba(249, 115, 22, 0.13);\n --messagebus-stroke: #fdba74;\n --external-fill: rgba(71, 85, 105, 0.24);\n --external-stroke: #a5b4c7;\n --arrow: #7890ad;\n --arrow-emphasis: #2dd4bf;\n --toolbar-bg: rgba(7, 16, 30, 0.86);\n --toolbar-border: #29415f;\n --toolbar-menu-bg: #07101e;\n }\n\n [data-preset=\"signal-flow\"][data-theme=\"light\"] {\n --bg: #f4f9fc;\n --grid: #d4e5ee;\n --panel: rgba(255, 255, 255, 0.82);\n --panel-border: #bfd5e2;\n --lane-fill: rgba(232, 243, 248, 0.62);\n --lane-stroke: #a9c5d5;\n --text: #102638;\n --text-muted: #587287;\n --text-dim: #8aa2b4;\n --text-faint: #668397;\n --mask: #ffffff;\n --frontend-fill: rgba(6, 182, 212, 0.09);\n --frontend-stroke: #0789a1;\n --backend-fill: rgba(5, 150, 105, 0.09);\n --backend-stroke: #087f69;\n --database-fill: rgba(124, 58, 237, 0.09);\n --database-stroke: #7254c7;\n --cloud-fill: rgba(217, 119, 6, 0.08);\n --cloud-stroke: #b9670b;\n --security-fill: rgba(225, 29, 72, 0.08);\n --security-stroke: #c53a59;\n --messagebus-fill: rgba(234, 88, 12, 0.08);\n --messagebus-stroke: #c65f27;\n --external-fill: rgba(100, 116, 139, 0.1);\n --external-stroke: #607a8c;\n --arrow: #7b97aa;\n --arrow-emphasis: #0d9488;\n }\n\n /* ==========================================================\n BLUEPRINT — a review-first drafting preset for deployment,\n infrastructure, and technical design documentation. It keeps\n the same semantic palette and geometry while trading glow for\n precise grid contrast, squared materials, and drafting marks.\n ========================================================== */\n [data-preset=\"blueprint\"][data-theme=\"dark\"] {\n --bg: #06131f;\n --grid: #17425a;\n --panel: rgba(7, 27, 43, 0.9);\n --panel-border: #27627f;\n --lane-fill: rgba(10, 43, 66, 0.36);\n --lane-stroke: #34799a;\n --text: #e3f6ff;\n --text-muted: #91b8ca;\n --text-dim: #557e92;\n --text-faint: #739caf;\n --mask: #0a2031;\n --frontend-fill: rgba(26, 157, 193, 0.14);\n --frontend-stroke: #66d9ef;\n --backend-fill: rgba(31, 155, 124, 0.13);\n --backend-stroke: #69dfbd;\n --database-fill: rgba(120, 105, 196, 0.14);\n --database-stroke: #b4a8ff;\n --cloud-fill: rgba(197, 145, 43, 0.13);\n --cloud-stroke: #ffd166;\n --security-fill: rgba(199, 76, 104, 0.13);\n --security-stroke: #ff8da1;\n --messagebus-fill: rgba(207, 112, 49, 0.13);\n --messagebus-stroke: #ffad66;\n --external-fill: rgba(84, 119, 139, 0.18);\n --external-stroke: #a7cad9;\n --arrow: #78a3b7;\n --arrow-emphasis: #64dfc1;\n --toolbar-bg: rgba(7, 28, 45, 0.92);\n --toolbar-border: #34799a;\n --toolbar-text: #d8f3ff;\n --toolbar-hover: rgba(18, 58, 83, 0.95);\n --toolbar-menu-bg: #0a2031;\n }\n\n [data-preset=\"blueprint\"][data-theme=\"light\"] {\n --bg: #edf7fa;\n --grid: #b5d5e1;\n --panel: rgba(249, 253, 255, 0.94);\n --panel-border: #78aabd;\n --lane-fill: rgba(210, 232, 240, 0.42);\n --lane-stroke: #83b2c4;\n --text: #123344;\n --text-muted: #4e7486;\n --text-dim: #86a6b4;\n --text-faint: #668c9d;\n --mask: #f9fdff;\n --frontend-fill: rgba(8, 145, 178, 0.08);\n --frontend-stroke: #087f9c;\n --backend-fill: rgba(5, 128, 101, 0.08);\n --backend-stroke: #08755f;\n --database-fill: rgba(100, 75, 180, 0.08);\n --database-stroke: #6757a8;\n --cloud-fill: rgba(181, 120, 15, 0.08);\n --cloud-stroke: #a86609;\n --security-fill: rgba(190, 48, 80, 0.07);\n --security-stroke: #b32f50;\n --messagebus-fill: rgba(196, 81, 22, 0.07);\n --messagebus-stroke: #b65120;\n --external-fill: rgba(79, 112, 128, 0.08);\n --external-stroke: #506f7e;\n --arrow: #6d93a5;\n --arrow-emphasis: #087f69;\n --toolbar-bg: rgba(247, 252, 254, 0.94);\n --toolbar-border: #8ab5c5;\n --toolbar-text: #294f61;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #f9fdff;\n }\n\n /* ==========================================================\n EDITORIAL — a warm, publication-minded preset for design\n reviews, launch notes, and documentation. The diagram keeps\n the same semantic palette and exact geometry, but trades\n software chrome for paper, ink, ruled structure, and one\n restrained vermilion accent.\n ========================================================== */\n [data-preset=\"editorial\"][data-theme=\"dark\"] {\n --bg: #181611;\n --grid: #39342a;\n --panel: rgba(35, 31, 24, 0.96);\n --panel-border: #625a4a;\n --lane-fill: rgba(52, 46, 35, 0.46);\n --lane-stroke: #726957;\n --text: #f4eddf;\n --text-muted: #b9ae9b;\n --text-dim: #776e60;\n --text-faint: #9d917e;\n --mask: #231f18;\n --frontend-fill: rgba(43, 133, 142, 0.16);\n --frontend-stroke: #7fc6c7;\n --backend-fill: rgba(63, 132, 92, 0.16);\n --backend-stroke: #8fc29e;\n --database-fill: rgba(117, 91, 141, 0.17);\n --database-stroke: #c0a4d0;\n --cloud-fill: rgba(170, 119, 49, 0.16);\n --cloud-stroke: #d8ad68;\n --security-fill: rgba(157, 69, 65, 0.17);\n --security-stroke: #df9085;\n --messagebus-fill: rgba(174, 79, 42, 0.16);\n --messagebus-stroke: #df946f;\n --external-fill: rgba(126, 115, 96, 0.18);\n --external-stroke: #b8ad99;\n --arrow: #948978;\n --arrow-emphasis: #dd6b3d;\n --toolbar-bg: rgba(35, 31, 24, 0.92);\n --toolbar-border: #625a4a;\n --toolbar-text: #eee5d5;\n --toolbar-hover: #302a20;\n --toolbar-menu-bg: #231f18;\n }\n\n [data-preset=\"editorial\"][data-theme=\"light\"] {\n --bg: #f2eee5;\n --grid: #d8d0c2;\n --panel: rgba(251, 248, 241, 0.97);\n --panel-border: #c4b9a6;\n --lane-fill: rgba(229, 221, 207, 0.42);\n --lane-stroke: #b8aa94;\n --text: #242018;\n --text-muted: #6f6658;\n --text-dim: #a09788;\n --text-faint: #817767;\n --mask: #fbf8f1;\n --frontend-fill: rgba(31, 117, 126, 0.09);\n --frontend-stroke: #287e84;\n --backend-fill: rgba(42, 119, 75, 0.09);\n --backend-stroke: #397b53;\n --database-fill: rgba(105, 75, 130, 0.09);\n --database-stroke: #765d86;\n --cloud-fill: rgba(157, 103, 31, 0.1);\n --cloud-stroke: #9a671f;\n --security-fill: rgba(153, 58, 52, 0.09);\n --security-stroke: #9e463f;\n --messagebus-fill: rgba(182, 70, 27, 0.09);\n --messagebus-stroke: #ad4b25;\n --external-fill: rgba(101, 91, 75, 0.09);\n --external-stroke: #746b5e;\n --arrow: #8a806f;\n --arrow-emphasis: #bb4c23;\n --toolbar-bg: rgba(251, 248, 241, 0.94);\n --toolbar-border: #c4b9a6;\n --toolbar-text: #40392f;\n --toolbar-hover: #fffdf8;\n --toolbar-menu-bg: #fbf8f1;\n }\n\n * { margin: 0; padding: 0; box-sizing: border-box; }\n\n body {\n --archify-page-top: 2rem;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n background: var(--bg);\n min-height: 100vh;\n padding: var(--archify-page-top) 2rem 2rem;\n color: var(--text);\n /* Theme surfaces change together; animating the page background leaves it\n visibly out of sync with the SVG and panel for the first 200ms. */\n }\n\n html[data-preset=\"signal-flow\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);\n background-attachment: fixed;\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);\n }\n html[data-preset=\"blueprint\"] body {\n background-image:\n linear-gradient(var(--grid) 1px, transparent 1px),\n linear-gradient(90deg, var(--grid) 1px, transparent 1px);\n background-size: 32px 32px;\n background-position: -1px -1px;\n background-attachment: fixed;\n }\n html[data-preset=\"editorial\"] body {\n background-image:\n linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),\n repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);\n background-attachment: fixed;\n }\n\n /* Gallery/embed mode keeps the generated artifact as the source of truth\n while presenting only its diagram surface inside a proof card. */\n html[data-embed=\"true\"] body {\n min-height: 0;\n padding: 0;\n overflow: hidden;\n background: var(--bg);\n background-image: none;\n }\n html[data-embed=\"true\"] .toolbar,\n html[data-embed=\"true\"] .header,\n html[data-embed=\"true\"] .cards,\n html[data-embed=\"true\"] .diagram-nav,\n html[data-embed=\"true\"] .overview-map,\n html[data-embed=\"true\"] .focus-chip,\n html[data-embed=\"true\"] .route-probe,\n html[data-embed=\"true\"] .semantic-lens,\n html[data-embed=\"true\"] .diagram-guide,\n html[data-embed=\"true\"] .node-finder,\n html[data-embed=\"true\"] .node-outline { display: none !important; }\n html[data-embed=\"true\"] .container { max-width: none; }\n html[data-embed=\"true\"] .diagram-container {\n padding: 0.5rem;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n html[data-embed=\"true\"] .diagram-container svg { min-width: 0; }\n\n /* Presentation Stage is a viewer-only layer: it gives the live diagram\n the viewport while keeping guided views, theme, focus, and exports real.\n Embed mode wins when both query parameters are present. */\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body {\n --archify-page-top: 1rem;\n height: 100dvh;\n min-height: 0;\n padding: 1rem;\n overflow: hidden;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n width: 100%;\n max-width: none;\n height: calc(100dvh - 2rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n flex: none;\n min-width: 0;\n margin: 0;\n padding-right: 23rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row { margin-bottom: 0.25rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n justify-content: center;\n min-height: 0;\n padding: 0.75rem;\n padding-bottom: calc(0.75rem + var(--archify-nav-reserve));\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container \u003e svg {\n flex: 1 1 auto;\n height: 100%;\n min-height: 0;\n width: 100%;\n min-width: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .cards { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) #btn-present {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n\n /* The reader owns only the outer scale. Compact automatic sequences fit at\n their authored text size or larger. Long sequences and waterfall rows\n favor reading width and page scroll; other diagrams keep height fitting.\n Small automatic canvases retain a modest scale inside a usable shell.\n Every strategy preserves the authored SVG/viewBox and semantic geometry. */\n .container {\n width: 100%;\n max-width: var(--archify-reader-width, 1440px);\n margin: 0 auto;\n }\n html[data-reader-area=\"true\"] .diagram-container {\n min-height: var(--archify-diagram-min-height);\n display: flex;\n align-items: center;\n }\n html[data-reader-area=\"true\"] .diagram-container \u003e svg { flex-shrink: 0; }\n /* The original SVG legend can use the outer corner while the capped or fitted\n diagram stays centered. The container still clips all outer paint. */\n .diagram-container:has([data-reader-legend-corner]) \u003e svg { overflow: visible; }\n .diagram-container [data-reader-legend-corner] {\n transform-origin: 0 0;\n transform-box: view-box;\n transform: var(--archify-reader-legend-transform);\n }\n html[data-reader-narrow=\"true\"]:not([data-present=\"true\"]) .diagram-container \u003e svg {\n min-width: 0;\n max-width: var(--archify-diagram-max-width);\n margin-inline: auto;\n }\n @media (min-width: 768px) and (max-height: 920px) {\n .header { margin-bottom: 1rem; }\n .diagram-container { padding: 1rem; }\n .cards { margin-top: 1rem; }\n .card { padding: 1rem; }\n }\n\n .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }\n\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 29.5rem; }\n\n .header-row {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n min-height: 2.75rem;\n margin-bottom: 0.25rem;\n }\n\n .pulse-dot {\n flex: none;\n width: 10px;\n height: 10px;\n background: var(--frontend-stroke);\n border-radius: 50%;\n box-shadow: 0 0 0 4px color-mix(in srgb, var(--frontend-stroke) 16%, transparent);\n animation: none;\n }\n\n html[data-motion-capable=\"true\"] .pulse-dot { animation: pulse 2s infinite; }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n h1 {\n font-size: 1.5rem;\n font-weight: 650;\n line-height: 1.25;\n letter-spacing: -0.015em;\n }\n\n .subtitle {\n color: var(--text-muted);\n font-size: 0.875rem;\n line-height: 1.55;\n margin-left: 1.375rem;\n }\n\n html[data-preset=\"signal-flow\"] .header-row::after {\n content: attr(data-preset-badge-signal-flow);\n flex: none;\n margin-left: 0.25rem;\n color: var(--frontend-stroke);\n border: 1px solid var(--frontend-stroke);\n border-radius: 999px;\n padding: 0.28rem 0.6rem;\n font-size: 0.625rem;\n letter-spacing: 0.12em;\n opacity: 0.82;\n box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);\n white-space: nowrap;\n }\n\n html[data-preset=\"blueprint\"] .pulse-dot {\n width: 10px;\n height: 10px;\n border: 1px solid var(--frontend-stroke);\n border-radius: 1px;\n background: transparent;\n box-shadow: inset 0 0 0 2px var(--bg);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n content: attr(data-preset-badge-blueprint);\n flex: none;\n margin-left: 0.25rem;\n padding: 0.28rem 0.55rem;\n border-top: 1px solid var(--frontend-stroke);\n border-bottom: 1px solid var(--frontend-stroke);\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.14em;\n white-space: nowrap;\n }\n\n html[data-preset=\"editorial\"] h1,\n html[data-preset=\"editorial\"] .card h3 {\n font-family: Georgia, 'Times New Roman', 'Songti SC', STSong, serif;\n letter-spacing: -0.02em;\n }\n html[data-preset=\"editorial\"] h1 { font-size: 1.72rem; font-weight: 600; }\n html[data-preset=\"editorial\"] .pulse-dot {\n width: 9px;\n height: 9px;\n border: 1px solid var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n content: attr(data-preset-badge-editorial);\n flex: none;\n margin-left: 0.25rem;\n padding: 0.32rem 0 0.24rem;\n border-bottom: 2px solid var(--arrow-emphasis);\n color: var(--arrow-emphasis);\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.625rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.08em;\n white-space: nowrap;\n }\n\n .diagram-container {\n --archify-nav-reserve: 0px;\n background: var(--panel);\n border-radius: 1rem;\n border: 1px solid var(--panel-border);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -20px rgba(15, 23, 42, 0.18);\n padding: 1.5rem;\n padding-bottom: calc(1.5rem + var(--archify-nav-reserve));\n overflow: hidden;\n position: relative;\n }\n\n html[data-preset=\"signal-flow\"] .diagram-container {\n position: relative;\n overflow: hidden;\n background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .diagram-container {\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);\n }\n html[data-preset=\"blueprint\"] .diagram-container {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background: var(--panel);\n box-shadow:\n inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),\n 0 18px 48px rgba(0, 0, 0, 0.16);\n }\n html[data-preset=\"blueprint\"] .diagram-container::after {\n content: \"\";\n position: absolute;\n z-index: 10;\n inset: 0.7rem;\n pointer-events: none;\n background:\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;\n opacity: 0.58;\n }\n html[data-preset=\"editorial\"] .diagram-container {\n overflow: hidden;\n border-color: var(--panel-border);\n border-radius: 0.38rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),\n var(--panel);\n box-shadow:\n 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),\n 0 18px 48px color-mix(in srgb, #000 19%, transparent);\n }\n html[data-preset=\"editorial\"] .diagram-container::after {\n position: absolute;\n z-index: 10;\n top: 0.72rem;\n right: 1.25rem;\n padding: 0.2rem 0.52rem;\n border: 1px solid var(--panel-border);\n background: var(--panel);\n color: var(--arrow-emphasis);\n content: attr(data-preset-badge-editorial-plate);\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.52rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.09em;\n pointer-events: none;\n }\n html[data-embed=\"true\"][data-preset=\"editorial\"] .diagram-container::after { display: none; }\n html[data-motion-capable=\"true\"][data-preset=\"signal-flow\"][data-ambient-entry=\"running\"] .diagram-container::before {\n content: \"\";\n position: absolute;\n inset: 0;\n pointer-events: none;\n background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);\n transform: translateX(-70%);\n animation: archify-signal-scan 4.8s ease-in-out 1 both;\n }\n\n /* Motion Governor gives the reader a real static state and gives the\n strongest semantic action the only motion budget. Atmosphere resets to\n its authored base instead of freezing mid-cycle. Static artifacts never\n start a decorative pulse or scan. */\n html:not([data-motion-capable=\"true\"]) svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html:not([data-motion-capable=\"true\"]) svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .pulse-dot,\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion=\"still\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-motion-owner] .pulse-dot,\n html[data-motion-owner] .diagram-container::before,\n html[data-motion-owner] svg[data-animation=\"trace\"] [data-animate],\n html[data-embed=\"true\"] .pulse-dot,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .pulse-dot,\n html[data-share-playback=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] .pulse-dot,\n html[data-document-hidden=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-motion=\"still\"] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n html[data-motion-owner] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n html[data-embed=\"true\"] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n html[data-share-playback=\"true\"] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n html[data-document-hidden=\"true\"] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion-owner] .diagram-container::before,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .diagram-container::before {\n opacity: 0;\n }\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow,\n html[data-motion=\"still\"] .route-journey-flow,\n html[data-motion=\"still\"] .semantic-lens-flow,\n html[data-motion=\"still\"] .diagram-guide,\n html[data-motion=\"still\"] .overview-map-live,\n html[data-document-hidden=\"true\"] .intent-trace-flow,\n html[data-document-hidden=\"true\"] .route-probe-flow,\n html[data-document-hidden=\"true\"] .route-journey-flow,\n html[data-document-hidden=\"true\"] .semantic-lens-flow,\n html[data-document-hidden=\"true\"] .diagram-guide,\n html[data-document-hidden=\"true\"] .overview-map-live {\n animation: none !important;\n }\n\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n html[data-motion=\"still\"] .route-journey-overlay,\n html[data-document-hidden=\"true\"] .route-journey-overlay { display: none !important; }\n html[data-motion=\"still\"] .relationship-pulse-overlay { display: none !important; }\n\n html[data-motion=\"still\"] svg [data-node-id],\n html[data-motion=\"still\"] svg [data-edge-from],\n html[data-motion=\"still\"] svg [data-detail],\n html[data-motion=\"still\"] svg [data-detail-anchor],\n html[data-motion=\"still\"] svg [data-legend-hit],\n html[data-motion=\"still\"] svg {\n transition: none !important;\n }\n\n svg {\n font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;\n width: 100%;\n min-width: min(900px, 100%);\n display: block;\n transform-origin: 0 0;\n transition: transform 0.18s ease;\n }\n\n .diagram-container.is-camera-moving svg {\n transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-container.is-camera-transaction svg { transition: none; }\n .diagram-container.is-pannable { cursor: grab; }\n .diagram-container.is-panning { cursor: grabbing; user-select: none; }\n .diagram-container.is-panning svg { transition: none; }\n\n .diagram-nav {\n position: absolute;\n right: 1rem;\n bottom: 1rem;\n z-index: 12;\n translate: 0 calc(-1 * var(--archify-dock-lift, 0px));\n display: inline-flex;\n align-items: center;\n max-width: calc(100% - 2rem);\n padding: 0.25rem;\n gap: 0.0625rem;\n overflow-x: auto;\n border: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);\n border-radius: 0.75rem;\n background: color-mix(in srgb, var(--panel) 84%, transparent);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.28);\n backdrop-filter: blur(14px) saturate(1.2);\n scrollbar-width: none;\n }\n .diagram-nav::-webkit-scrollbar { display: none; }\n .diagram-nav button,\n .focus-chip button {\n border: 0;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .diagram-nav button {\n min-width: 2rem;\n height: 2rem;\n padding: 0 0.4rem;\n border-radius: 0.5rem;\n color: var(--text-muted);\n font-size: 0.75rem;\n font-weight: 500;\n letter-spacing: 0;\n transition: background 0.15s, color 0.15s;\n }\n .diagram-nav button:hover,\n .diagram-nav button:focus-visible {\n color: var(--text);\n background: color-mix(in srgb, var(--text) 6%, transparent);\n }\n .diagram-nav button:hover,\n .diagram-nav button:focus-visible,\n .focus-chip button:hover,\n .focus-chip button:focus-visible { background: var(--toolbar-hover); }\n .diagram-nav button:focus-visible,\n .focus-chip button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .diagram-nav button:disabled { opacity: 0.38; cursor: default; }\n /* The Guide stays on the ? shortcut; Map only earns dock space once the\n reader has zoomed past the full diagram (or opened it from the keyboard). */\n .diagram-nav button[hidden] { display: none; }\n .diagram-container:not(.is-pannable) #btn-overview-map:not([data-radar-requested]):not(:focus) { display: none; }\n .diagram-nav button:disabled:hover { background: transparent; }\n .diagram-nav #btn-route-probe,\n .diagram-nav #btn-overview-map,\n .diagram-nav #btn-semantic-lens {\n min-width: auto;\n padding-inline: 0.6rem;\n color: var(--text-muted);\n font-weight: 500;\n }\n .diagram-nav #btn-node-finder,\n .diagram-nav [data-view=\"out\"] {\n position: relative;\n margin-left: 0.375rem;\n }\n .diagram-nav #btn-node-finder::before,\n .diagram-nav [data-view=\"out\"]::before {\n position: absolute;\n top: 0.55rem;\n bottom: 0.55rem;\n left: -0.19rem;\n width: 1px;\n background: color-mix(in srgb, var(--panel-border) 90%, transparent);\n content: \"\";\n pointer-events: none;\n }\n .diagram-nav-icon {\n display: block;\n width: 0.95rem;\n height: 0.95rem;\n margin: auto;\n background: currentColor;\n -webkit-mask-position: center;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n }\n .diagram-nav-icon.find {\n -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\");\n 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\");\n }\n .diagram-nav-icon.guide {\n -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\");\n 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\");\n }\n .diagram-nav-icon.minus {\n -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\");\n 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\");\n }\n .diagram-nav-icon.plus {\n -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\");\n 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\");\n }\n .diagram-nav [data-view=\"reset\"] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.2rem;\n min-width: 3.1rem;\n padding-inline: 0.35rem;\n }\n .diagram-nav [data-view=\"reset\"][data-detail-visible] {\n min-width: 3.8rem;\n }\n .diagram-nav-detail {\n color: color-mix(in srgb, var(--toolbar-text) 52%, transparent);\n font-size: 0.44rem;\n font-weight: 700;\n line-height: 1;\n letter-spacing: 0.07em;\n }\n .diagram-nav-percent {\n color: var(--text-muted);\n font-size: 0.75rem;\n font-weight: 500;\n font-variant-numeric: tabular-nums;\n line-height: 1;\n }\n /* Mode buttons carry a small glyph so the dock reads as one icon language. */\n .diagram-nav #btn-route-probe,\n .diagram-nav #btn-overview-map,\n .diagram-nav #btn-semantic-lens {\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n padding-inline: 0.55rem 0.65rem;\n }\n .diagram-nav #btn-route-probe::before,\n .diagram-nav #btn-overview-map::before,\n .diagram-nav #btn-semantic-lens::before {\n flex: none;\n width: 0.95rem;\n height: 0.95rem;\n background: currentColor;\n content: \"\";\n opacity: 0.85;\n -webkit-mask: var(--nav-glyph) center / contain no-repeat;\n mask: var(--nav-glyph) center / contain no-repeat;\n }\n .diagram-nav #btn-route-probe { --nav-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='4.8' cy='14.8' r='2.2'/%3E%3Ccircle cx='15.2' cy='5.2' r='2.2'/%3E%3Cpath d='M6.9 13.9c3.8-1.4 2.6-6.3 6.2-7.8'/%3E%3C/g%3E%3C/svg%3E\"); }\n .diagram-nav #btn-overview-map { --nav-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M2.8 5.4 7.4 3.5l5.2 2 4.6-1.9v11l-4.6 1.9-5.2-2-4.6 1.9z'/%3E%3Cpath d='M7.4 3.5v11M12.6 5.5v11'/%3E%3C/g%3E%3C/svg%3E\"); }\n .diagram-nav #btn-semantic-lens { --nav-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='10' cy='10' r='6.8'/%3E%3Ccircle cx='10' cy='10' r='2.6'/%3E%3C/g%3E%3C/svg%3E\"); }\n /* Zoom out / level / zoom in join into one stepper well. */\n .diagram-nav [data-view=\"out\"],\n .diagram-nav [data-view=\"reset\"],\n .diagram-nav [data-view=\"in\"] {\n position: relative;\n border-radius: 0;\n background: color-mix(in srgb, var(--panel-border) 38%, transparent);\n }\n .diagram-nav [data-view=\"out\"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }\n .diagram-nav [data-view=\"out\"]::before { display: none; }\n .diagram-nav [data-view=\"reset\"],\n .diagram-nav [data-view=\"in\"] { margin-left: -0.0625rem; }\n .diagram-nav [data-view=\"in\"] { border-radius: 0 0.5rem 0.5rem 0; }\n .diagram-nav [data-view=\"reset\"]::after,\n .diagram-nav [data-view=\"in\"]::after {\n position: absolute;\n top: 0.55rem;\n bottom: 0.55rem;\n left: 0;\n width: 1px;\n background: color-mix(in srgb, var(--panel-border) 75%, transparent);\n content: \"\";\n pointer-events: none;\n }\n .diagram-nav [data-view=\"out\"]:hover,\n .diagram-nav [data-view=\"reset\"]:hover,\n .diagram-nav [data-view=\"in\"]:hover { background: color-mix(in srgb, var(--panel-border) 60%, transparent); }\n .diagram-nav [data-view=\"out\"]:disabled,\n .diagram-nav [data-view=\"in\"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }\n .diagram-nav [data-view=\"out\"]:disabled:hover,\n .diagram-nav [data-view=\"in\"]:disabled:hover { background: color-mix(in srgb, var(--panel-border) 38%, transparent); }\n .diagram-nav [data-view=\"reset\"] { min-width: 3.25rem; }\n .diagram-container[data-camera-indicator=\"true\"] .diagram-nav-detail,\n .diagram-container[data-camera-indicator=\"true\"] .diagram-nav-percent { color: var(--frontend-stroke); }\n .diagram-nav #btn-diagram-guide[aria-expanded=\"true\"] {\n color: var(--cloud-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Radar is a deliberately simplified, viewer-only overview. It\n uses authored node bounds and the live camera viewport rather than\n cloning the canonical SVG, so IDs, filters, animation, and export state\n stay singular and deterministic. */\n .overview-map {\n position: absolute;\n right: 1rem;\n bottom: calc(4.15rem + var(--archify-nav-reserve));\n z-index: 12;\n width: 11.25rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n border-radius: 0.78rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .overview-map[hidden] { display: none; }\n .overview-map[data-docked=\"true\"] {\n position: fixed;\n right: var(--archify-radar-right, 1rem);\n top: var(--archify-radar-top, 1rem);\n bottom: auto;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: var(--archify-radar-left, 1rem);\n }\n html[data-preset=\"blueprint\"] .overview-map { border-radius: 0.28rem; }\n .overview-map-head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.45rem;\n min-height: 2.25rem;\n padding: 0.42rem 0.48rem 0.38rem 0.55rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);\n cursor: grab;\n touch-action: none;\n user-select: none;\n }\n .overview-map[data-panel-dragging=\"true\"] .overview-map-head { cursor: grabbing; }\n .overview-map[data-placement-invalid=\"true\"] {\n border-color: var(--security-stroke);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--security-stroke) 34%, transparent), 0 16px 42px rgba(0, 0, 0, 0.3);\n }\n .overview-map[data-compact=\"true\"] {\n width: 7.4rem;\n }\n .overview-map[data-compact=\"true\"] .overview-map-head {\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.24rem;\n min-height: 1.5rem;\n padding: 0.05rem 0.16rem 0.05rem 0.32rem;\n border-bottom: 0;\n }\n .overview-map[data-compact=\"true\"] .overview-map-live,\n .overview-map[data-compact=\"true\"] .overview-map-copy,\n .overview-map[data-compact=\"true\"] .overview-map-surface,\n .overview-map[data-compact=\"true\"] .overview-map-hint {\n display: none;\n }\n .overview-map[data-compact=\"true\"] .overview-map-expand { display: inline-flex; }\n .overview-map[data-compact=\"true\"] .overview-map-close {\n width: 1.15rem;\n height: 1.15rem;\n font-size: 0.72rem;\n }\n .overview-map-live {\n width: 0.42rem;\n height: 0.42rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);\n animation: archify-radar-live 2.4s ease-out infinite;\n }\n .overview-map-copy { min-width: 0; line-height: 1.1; }\n .overview-map-copy strong {\n display: block;\n overflow: hidden;\n color: var(--frontend-stroke);\n font-size: 0.59rem;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-copy small {\n display: block;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.52rem;\n letter-spacing: 0.04em;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-expand {\n display: none;\n align-items: center;\n justify-content: center;\n min-width: 0;\n height: 1.2rem;\n padding: 0 0.34rem;\n overflow: hidden;\n border: 0;\n border-radius: 0.3rem;\n background: transparent;\n color: var(--frontend-stroke);\n font: inherit;\n font-size: 0.49rem;\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n white-space: nowrap;\n cursor: pointer;\n }\n .overview-map-close {\n width: 1.55rem;\n height: 1.55rem;\n padding: 0;\n border: 0;\n border-radius: 0.34rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.9rem;\n cursor: pointer;\n }\n .overview-map-expand:hover,\n .overview-map-expand:focus-visible,\n .overview-map-close:hover,\n .overview-map-close:focus-visible { background: var(--toolbar-hover); }\n .overview-map-expand:focus-visible,\n .overview-map-close:focus-visible,\n .overview-map-surface:focus-visible,\n .overview-map-node:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .overview-map-surface {\n position: relative;\n height: 7rem;\n margin: 0.42rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);\n border-radius: 0.42rem;\n background:\n linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n color-mix(in srgb, var(--bg) 86%, transparent);\n background-size: 12px 12px;\n cursor: crosshair;\n touch-action: none;\n }\n html[data-preset=\"blueprint\"] .overview-map-surface { border-radius: 0.1rem; }\n .overview-map-surface \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n transform: none !important;\n transition: none !important;\n display: block;\n overflow: visible;\n }\n .overview-map-node {\n fill: var(--backend-stroke);\n fill-opacity: 0.52;\n stroke: var(--backend-stroke);\n stroke-opacity: 0.86;\n vector-effect: non-scaling-stroke;\n cursor: pointer;\n transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;\n }\n .overview-map-node[data-kind=\"frontend\"],\n .overview-map-node[data-kind=\"start\"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }\n .overview-map-node[data-kind=\"database\"],\n .overview-map-node[data-kind=\"success\"] { fill: var(--database-stroke); stroke: var(--database-stroke); }\n .overview-map-node[data-kind=\"cloud\"],\n .overview-map-node[data-kind=\"waiting\"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }\n .overview-map-node[data-kind=\"messagebus\"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }\n .overview-map-node[data-kind=\"security\"],\n .overview-map-node[data-kind=\"decision\"],\n .overview-map-node[data-kind=\"failure\"] { fill: var(--security-stroke); stroke: var(--security-stroke); }\n .overview-map-node[data-kind=\"external\"],\n .overview-map-node[data-kind=\"neutral\"] { fill: var(--external-stroke); stroke: var(--external-stroke); }\n .overview-map-node[data-radar-active=\"true\"],\n .overview-map-node:hover,\n .overview-map-node:focus-visible {\n fill-opacity: 0.92;\n stroke-width: 2.2;\n filter: drop-shadow(0 0 3px currentColor);\n }\n .overview-map-viewport {\n fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));\n }\n .overview-map-hint {\n display: flex;\n justify-content: space-between;\n gap: 0.5rem;\n padding: 0 0.52rem 0.46rem;\n color: var(--text-faint);\n font-size: 0.49rem;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n }\n .diagram-nav #btn-overview-map[aria-expanded=\"true\"] {\n color: var(--frontend-stroke);\n background: color-mix(in srgb, var(--frontend-stroke) 11%, transparent);\n }\n .overview-map-feedback {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 13;\n max-width: min(16rem, calc(100% - 2rem));\n padding: 0.38rem 0.55rem;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n border-radius: 0.5rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);\n font-size: 0.52rem;\n line-height: 1.35;\n pointer-events: none;\n }\n .overview-map-feedback[hidden] { display: none; }\n .focus-chip[data-radar-yielded=\"true\"] { display: none !important; }\n .diagram-nav #btn-route-probe[aria-pressed=\"true\"] {\n color: var(--backend-stroke);\n background: color-mix(in srgb, var(--backend-stroke) 11%, transparent);\n }\n .diagram-nav #btn-semantic-lens[aria-expanded=\"true\"],\n .diagram-nav #btn-semantic-lens[aria-pressed=\"true\"] {\n color: var(--database-stroke);\n background: color-mix(in srgb, var(--database-stroke) 11%, transparent);\n }\n\n /* Semantic Lens turns the compiled node-kind palette into an analytical\n legend. One kind reveals its real traffic; two kinds compare only their\n direct authored relationships. Geometry and the canonical SVG stay put. */\n .semantic-lens {\n position: absolute;\n right: 1rem;\n bottom: calc(4.15rem + var(--archify-nav-reserve));\n z-index: 24;\n width: min(20rem, calc(100% - 2rem));\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);\n backdrop-filter: blur(18px);\n animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .semantic-lens[hidden] { display: none; }\n .semantic-lens[data-dock-side=\"left\"] { left: 1rem; right: auto; }\n .semantic-lens[data-dock-side=\"right\"] { left: auto; right: 1rem; }\n html[data-preset=\"blueprint\"] .semantic-lens { border-radius: 0.28rem; }\n .semantic-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.72rem 0.78rem 0.62rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .semantic-lens-eyebrow {\n display: block;\n color: var(--database-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .semantic-lens-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.82rem;\n letter-spacing: -0.02em;\n }\n .semantic-lens-close {\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .semantic-lens-close:hover,\n .semantic-lens-close:focus-visible { background: var(--toolbar-hover); }\n .semantic-lens-instruction {\n margin: 0;\n padding: 0.52rem 0.78rem 0.48rem;\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-kinds {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.3rem;\n max-height: min(15rem, 40vh);\n padding: 0 0.5rem 0.5rem;\n overflow-y: auto;\n scrollbar-width: thin;\n }\n .semantic-lens-kind {\n --lens-color: var(--external-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.42rem;\n min-width: 0;\n min-height: 2.15rem;\n padding: 0.35rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));\n border-radius: 0.45rem;\n background: color-mix(in srgb, var(--panel) 76%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;\n }\n html[data-preset=\"blueprint\"] .semantic-lens-kind { border-radius: 0.12rem; }\n .semantic-lens-kind[data-kind=\"frontend\"],\n .semantic-lens-kind[data-kind=\"start\"] { --lens-color: var(--frontend-stroke); }\n .semantic-lens-kind[data-kind=\"backend\"],\n .semantic-lens-kind[data-kind=\"active\"] { --lens-color: var(--backend-stroke); }\n .semantic-lens-kind[data-kind=\"database\"],\n .semantic-lens-kind[data-kind=\"success\"] { --lens-color: var(--database-stroke); }\n .semantic-lens-kind[data-kind=\"cloud\"],\n .semantic-lens-kind[data-kind=\"waiting\"] { --lens-color: var(--cloud-stroke); }\n .semantic-lens-kind[data-kind=\"messagebus\"] { --lens-color: var(--messagebus-stroke); }\n .semantic-lens-kind[data-kind=\"security\"],\n .semantic-lens-kind[data-kind=\"decision\"],\n .semantic-lens-kind[data-kind=\"failure\"] { --lens-color: var(--security-stroke); }\n .semantic-lens-kind:hover,\n .semantic-lens-kind:focus-visible,\n .semantic-lens-kind[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));\n background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));\n }\n .semantic-lens-kind:focus-visible,\n .semantic-lens-close:focus-visible,\n .semantic-lens-actions button:focus-visible {\n outline: 2px solid var(--database-stroke);\n outline-offset: 1px;\n }\n .semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }\n .semantic-lens-swatch {\n width: 0.48rem;\n height: 0.48rem;\n border-radius: 50%;\n background: var(--lens-color);\n box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);\n }\n .semantic-lens-kind strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.61rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-lens-kind em {\n color: var(--lens-color);\n font-size: 0.54rem;\n font-style: normal;\n font-weight: 800;\n }\n .semantic-lens-status {\n min-height: 2.5rem;\n margin: 0;\n padding: 0.55rem 0.78rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }\n .semantic-lens-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.28rem;\n padding: 0 0.62rem 0.62rem;\n }\n .semantic-lens-actions button {\n min-height: 1.8rem;\n padding: 0.28rem 0.48rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.56rem;\n cursor: pointer;\n }\n .semantic-lens-actions button:hover { background: var(--toolbar-hover); }\n .semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }\n @keyframes archify-lens-in {\n from { opacity: 0; transform: translateY(5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n /* Route Probe answers a reader question over the compiled semantic graph:\n choose two stable nodes and reveal the shortest authored directed route.\n The receipt and signal live entirely in the viewer layer. */\n .route-probe {\n position: absolute;\n left: 1rem;\n bottom: calc(1rem + var(--archify-nav-reserve));\n z-index: 12;\n width: min(46rem, calc(100% - 25rem));\n min-width: 18rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.75rem;\n }\n .route-probe[hidden] { display: none; }\n /* Picking needs one line of guidance, not a wide empty card; the panel\n widens only when there is a traced route to show. */\n .route-probe:not([data-state=\"result\"]) { width: min(22rem, calc(100% - 2rem)); min-width: 0; }\n .route-probe-path:has(\u003e .route-probe-placeholder:only-child) { display: none; }\n .route-probe[data-route-dock=\"top\"] {\n top: 1rem;\n bottom: auto;\n }\n html[data-preset=\"blueprint\"] .route-probe { border-radius: 0.25rem; }\n .route-probe-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.65rem;\n padding: 0.625rem 0.75rem 0.5rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);\n }\n .route-probe-copy { min-width: 0; }\n .route-probe-eyebrow {\n display: block;\n color: var(--backend-stroke);\n font-size: 0.6875rem;\n font-weight: 600;\n letter-spacing: 0.02em;\n }\n .route-probe-title {\n display: block;\n margin-top: 0.14rem;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.875rem;\n font-weight: 600;\n line-height: 1.3;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .route-probe-actions { display: flex; gap: 0.2rem; }\n .route-probe button {\n min-height: 1.55rem;\n padding: 0.25rem 0.42rem;\n border: 0;\n border-radius: 0.36rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .route-probe button:hover,\n .route-probe button:focus-visible { background: var(--toolbar-hover); }\n .route-probe button:focus-visible {\n outline: 2px solid var(--backend-stroke);\n outline-offset: 1px;\n }\n .route-probe-copy-link { color: var(--frontend-stroke) !important; }\n .route-probe-find { color: var(--backend-stroke) !important; }\n .route-probe-copy-link[hidden] { display: none; }\n .route-probe-find[hidden] { display: none; }\n .route-probe-path {\n display: flex;\n align-items: center;\n min-height: 2.2rem;\n padding: 0.42rem 0.58rem 0.24rem;\n overflow-x: auto;\n scrollbar-width: thin;\n white-space: nowrap;\n }\n .route-probe-node,\n .route-probe button.route-probe-node {\n flex: none;\n max-width: 9.5rem;\n overflow: hidden;\n min-height: 1.75rem !important;\n padding: 0.22rem 0.38rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));\n border-radius: 999px;\n background: color-mix(in srgb, var(--backend-fill) 52%, transparent);\n color: var(--text);\n font-size: 0.56rem;\n font-weight: 700;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .route-probe-node[data-endpoint=\"start\"] {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n .route-probe-node[data-endpoint=\"end\"] {\n border-color: var(--security-stroke);\n color: var(--security-stroke);\n }\n .route-probe-node[data-route-journey-state=\"past\"] { opacity: 0.66; }\n .route-probe-node[data-route-journey-state=\"future\"] { opacity: 0.48; }\n .route-probe-node[aria-current=\"step\"] {\n border-color: var(--backend-stroke);\n background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));\n color: var(--text);\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--backend-stroke) 42%, transparent), 0 0 14px color-mix(in srgb, var(--backend-stroke) 34%, transparent);\n opacity: 1;\n }\n html[data-preset=\"blueprint\"] .route-probe-node[aria-current=\"step\"] {\n border-style: double;\n border-width: 3px;\n border-radius: 0.2rem;\n box-shadow: none;\n }\n .route-probe-arrow {\n flex: none;\n padding: 0 0.28rem;\n color: var(--text-faint);\n font-size: 0.65rem;\n }\n .route-probe-placeholder {\n color: var(--text-faint);\n font-size: 0.75rem;\n }\n .route-probe-status {\n display: block;\n min-height: 1.45rem;\n padding: 0.5rem 0.75rem 0.625rem;\n color: var(--text-muted, var(--text-faint));\n font-size: 0.75rem;\n line-height: 1.45;\n }\n .route-journey-controls {\n display: grid;\n grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);\n justify-content: start;\n gap: 0.22rem;\n padding: 0.08rem 0.58rem 0.28rem;\n }\n .route-journey-controls[hidden] { display: none; }\n .route-journey-controls button {\n min-height: 1.8rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);\n font-size: 0.54rem;\n font-weight: 700;\n }\n .route-journey-controls button:disabled {\n cursor: default;\n opacity: 0.34;\n }\n .route-journey-play { color: var(--backend-stroke) !important; }\n .route-journey-overview { color: var(--frontend-stroke) !important; }\n .route-journey-controls[data-playing=\"true\"] .route-journey-play {\n border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 62%, transparent);\n }\n .route-probe[data-state=\"error\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));\n }\n .route-probe[data-state=\"error\"] .route-probe-status { color: var(--security-stroke); }\n\n .focus-chip {\n position: absolute;\n left: 1rem;\n top: 1rem;\n z-index: 12;\n display: block;\n width: min(22rem, calc(100% - 13rem));\n max-width: calc(100% - 13rem);\n overflow: hidden;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.6875rem;\n }\n .focus-chip[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .focus-chip { border-radius: 0.3rem; }\n .focus-chip button {\n flex: none;\n padding: 0.3rem 0.45rem;\n border-radius: 0.35rem;\n font-size: 0.625rem;\n }\n .relationship-lens-head {\n position: relative;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.9rem 0.75rem 0.65rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);\n }\n .relationship-lens-drag-handle {\n position: absolute;\n top: 0.12rem;\n left: 50%;\n width: 2.5rem;\n height: 0.78rem;\n padding: 0 !important;\n transform: translateX(-50%);\n color: var(--text-faint) !important;\n cursor: grab;\n touch-action: none;\n user-select: none;\n }\n .relationship-lens-drag-handle::before {\n content: \"\";\n display: block;\n width: 1.25rem;\n margin: auto;\n border-top: 2px dotted currentColor;\n opacity: 0.72;\n }\n .focus-chip[data-panel-dragging=\"true\"] .relationship-lens-drag-handle { cursor: grabbing; }\n @media (hover: none), (pointer: coarse) {\n .relationship-lens-drag-handle { display: none; }\n }\n .relationship-lens-copy { min-width: 0; }\n .relationship-lens-actions {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 0.18rem;\n }\n .relationship-lens-actions button { white-space: nowrap; }\n .relationship-lens-actions #btn-focus-clear {\n display: grid;\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n place-items: center;\n color: var(--text-muted);\n font-size: 1rem;\n line-height: 1;\n }\n .relationship-lens-actions #btn-focus-clear:hover,\n .relationship-lens-actions #btn-focus-clear:focus-visible {\n background: var(--toolbar-hover);\n color: var(--text);\n }\n .relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }\n .relationship-lens-actions #btn-focus-relations { display: none; }\n .relationship-lens-eyebrow {\n display: block;\n margin-bottom: 0.18rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .relationship-lens-title {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.8rem;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail {\n display: block;\n margin-top: 0.12rem;\n overflow: hidden;\n color: var(--text-muted);\n font-size: 0.625rem;\n line-height: 1.4;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail[hidden] { display: none; }\n .semantic-passport-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 0.24rem;\n margin-top: 0.42rem;\n }\n .semantic-passport-meta span,\n .semantic-passport-meta code {\n max-width: 100%;\n overflow: hidden;\n padding: 0.14rem 0.34rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);\n border-radius: 999px;\n background: color-mix(in srgb, var(--panel) 68%, transparent);\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n letter-spacing: 0.04em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-meta [data-passport=\"kind\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-weight: 800;\n text-transform: uppercase;\n }\n .semantic-passport-meta [data-passport=\"tag\"] { color: var(--cloud-stroke); }\n .semantic-passport-meta [data-passport=\"brand\"] {\n border-color: color-mix(in srgb, var(--messagebus-stroke) 52%, var(--toolbar-border));\n color: var(--messagebus-stroke);\n font-weight: 700;\n }\n .semantic-passport-meta [hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-meta span,\n html[data-preset=\"blueprint\"] .semantic-passport-meta code { border-radius: 0.1rem; }\n .semantic-passport-evidence {\n margin-top: 0.52rem;\n padding: 0.5rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));\n }\n .semantic-passport-evidence[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-evidence { border-radius: 0.18rem; }\n .semantic-passport-evidence-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.55rem;\n margin-bottom: 0.35rem;\n }\n .semantic-passport-evidence-status {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n color: var(--backend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .semantic-passport-evidence-status::before {\n content: '';\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);\n }\n .semantic-passport-repository {\n min-width: 0;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-repository:hover,\n .semantic-passport-repository:focus-visible { color: var(--backend-stroke); }\n .semantic-passport-evidence-links { display: grid; gap: 0.22rem; }\n .semantic-passport-source {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.15rem 0.45rem;\n align-items: center;\n padding: 0.34rem 0.4rem;\n border: 1px solid transparent;\n border-radius: 0.38rem;\n color: var(--text-muted);\n text-decoration: none;\n }\n a.semantic-passport-source:hover,\n a.semantic-passport-source:focus-visible {\n border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);\n background: color-mix(in srgb, var(--backend-fill) 32%, transparent);\n color: var(--text);\n }\n .semantic-passport-source strong {\n overflow: hidden;\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-source code {\n color: var(--backend-stroke);\n font: inherit;\n font-size: 0.5rem;\n }\n .semantic-passport-source small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-summary {\n display: block;\n margin-top: 0.12rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n .semantic-passport-reach {\n display: grid;\n gap: 0.28rem;\n margin-top: 0.52rem;\n padding-top: 0.48rem;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);\n }\n .semantic-passport-reach[hidden] { display: none; }\n .semantic-passport-reach-label {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n }\n .semantic-passport-reach-actions {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 0.25rem;\n }\n .semantic-passport-reach-actions button {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n min-width: 0;\n min-height: 2rem;\n padding: 0.32rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--panel) 70%, transparent);\n color: var(--text-muted);\n text-align: left;\n }\n .semantic-passport-reach-actions button:hover:not(:disabled),\n .semantic-passport-reach-actions button:focus-visible {\n border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));\n color: var(--text);\n }\n .semantic-passport-reach-actions button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .semantic-passport-reach-actions button:disabled {\n cursor: default;\n opacity: 0.5;\n }\n .semantic-passport-reach-actions button[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);\n color: var(--text);\n }\n #btn-reach-upstream {\n --reach-color: var(--database-stroke);\n --reach-fill: var(--database-fill);\n }\n #btn-reach-downstream {\n --reach-color: var(--backend-stroke);\n --reach-fill: var(--backend-fill);\n }\n .semantic-passport-reach-actions strong {\n color: var(--reach-color, var(--frontend-stroke));\n font-size: 0.625rem;\n }\n .semantic-passport-reach-status {\n color: var(--text-faint);\n font-size: 0.525rem;\n line-height: 1.4;\n }\n .semantic-passport-reach-status[hidden] { display: none; }\n .relationship-lens-list {\n max-height: min(18rem, 46vh);\n overflow: auto;\n padding: 0.4rem;\n scrollbar-width: thin;\n scrollbar-color: var(--frontend-stroke) transparent;\n }\n .relationship-lens-list::-webkit-scrollbar { width: 4px; }\n .relationship-lens-list::-webkit-scrollbar-thumb {\n border-radius: 999px;\n background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);\n }\n .relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }\n .relationship-lens-group-title {\n display: block;\n padding: 0.24rem 0.38rem 0.16rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .relationship-lens-row {\n display: grid;\n grid-template-columns: 2.1rem minmax(0, 1fr);\n gap: 0.06rem 0.45rem;\n width: 100%;\n padding: 0.45rem 0.5rem !important;\n text-align: left;\n }\n .relationship-lens-row:hover,\n .relationship-lens-row:focus-visible,\n .relationship-lens-row[data-preview-active=\"true\"] {\n background: var(--toolbar-hover);\n box-shadow: inset 2px 0 0 var(--frontend-stroke);\n }\n .relationship-lens-row:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .relationship-lens-direction {\n grid-row: 1 / 3;\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n }\n .relationship-lens-row[data-direction=\"in\"] .relationship-lens-direction { color: var(--database-stroke); }\n .relationship-lens-row[data-direction=\"loop\"] .relationship-lens-direction { color: var(--security-stroke); }\n .relationship-lens-row strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.6875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-row small {\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-empty {\n margin: 0;\n padding: 0.75rem;\n color: var(--text-faint);\n font-size: 0.625rem;\n text-align: center;\n }\n\n /* Diagram Guide keeps the artifact's growing reader vocabulary\n discoverable without widening the permanent control bar. It derives\n honest counts at runtime and delegates every action to an existing\n production interaction instead of creating a second command system. */\n .diagram-guide {\n position: absolute;\n top: 1rem;\n right: 1rem;\n z-index: 26;\n width: min(32rem, calc(100% - 2rem));\n max-height: min(42rem, calc(100% - 2rem));\n overflow: auto;\n border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(18px);\n animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-guide[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .diagram-guide { border-radius: 0.28rem; }\n .diagram-guide-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 1rem;\n padding: 0.82rem 0.9rem 0.68rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .diagram-guide-eyebrow {\n display: block;\n color: var(--cloud-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .diagram-guide-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.86rem;\n letter-spacing: -0.02em;\n }\n .diagram-guide-close {\n width: 1.8rem;\n height: 1.8rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .diagram-guide-close:hover,\n .diagram-guide-close:focus-visible { background: var(--toolbar-hover); }\n .diagram-guide-stats {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n padding: 0.54rem 0.9rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.025em;\n }\n .diagram-guide-stats::before {\n content: '';\n width: 0.42rem;\n height: 0.42rem;\n flex: none;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);\n }\n .diagram-guide-actions {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.38rem;\n padding: 0.62rem;\n }\n .diagram-guide-action {\n --guide-accent: var(--frontend-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n min-height: 4.15rem;\n padding: 0.55rem 0.58rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;\n }\n .diagram-guide-action[data-guide-action=\"route\"] { --guide-accent: var(--backend-stroke); }\n .diagram-guide-action[data-guide-action=\"map\"] { --guide-accent: var(--database-stroke); }\n .diagram-guide-action[data-guide-action=\"lens\"] { --guide-accent: var(--messagebus-stroke); }\n\n .diagram-guide-action[data-guide-action=\"present\"] {\n --guide-accent: var(--cloud-stroke);\n }\n .diagram-guide-action:hover,\n .diagram-guide-action:focus-visible {\n border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));\n background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));\n transform: translateY(-1px);\n }\n .diagram-guide-action:focus-visible,\n .diagram-guide-close:focus-visible {\n outline: 2px solid var(--cloud-stroke);\n outline-offset: 1px;\n }\n .diagram-guide-action:disabled {\n opacity: 0.42;\n cursor: default;\n transform: none;\n }\n .diagram-guide-index {\n display: grid;\n place-items: center;\n width: 1.65rem;\n height: 1.65rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));\n border-radius: 0.35rem;\n color: var(--guide-accent);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.06em;\n }\n .diagram-guide-action-copy { min-width: 0; }\n .diagram-guide-action strong {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.66rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-action small {\n display: -webkit-box;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n line-height: 1.35;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n }\n .diagram-guide kbd {\n align-self: start;\n min-width: 1.45rem;\n padding: 0.12rem 0.3rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n text-align: center;\n }\n .diagram-guide-shortcuts {\n display: flex;\n flex-wrap: wrap;\n gap: 0.34rem 0.62rem;\n padding: 0.58rem 0.9rem 0.68rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.5rem;\n }\n .diagram-guide-shortcuts span {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n white-space: nowrap;\n }\n .diagram-guide-feedback {\n min-height: 1rem;\n margin: -0.18rem 0.9rem 0.62rem;\n color: var(--security-stroke);\n font-size: 0.5rem;\n }\n .diagram-guide-feedback:empty { display: none; }\n @keyframes archify-guide-in {\n from { opacity: 0; transform: translateY(-5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n .node-finder {\n position: absolute;\n top: 1rem;\n left: 1rem;\n z-index: 24;\n display: flex;\n flex-direction: column;\n width: min(22rem, calc(100% - 2rem));\n max-height: calc(100% - 2rem);\n overflow: hidden;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(16px);\n }\n .node-finder[hidden] { display: none; }\n .node-finder[data-context=\"route-source\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));\n }\n .node-finder[data-context=\"route-target\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));\n }\n html[data-preset=\"blueprint\"] .node-finder { border-radius: 0.3rem; }\n .node-finder-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.7rem 0.8rem 0.45rem;\n }\n .node-finder-head strong {\n color: var(--text);\n font-size: 0.6875rem;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-source\"] .node-finder-head strong { color: var(--frontend-stroke); }\n .node-finder[data-context=\"route-target\"] .node-finder-head strong { color: var(--security-stroke); }\n .node-finder-close {\n width: 1.75rem;\n height: 1.75rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .node-finder-close:hover,\n .node-finder-close:focus-visible { background: var(--toolbar-hover); }\n .node-finder-close:focus-visible,\n .node-finder-result:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .node-finder-search {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n margin: 0 0.55rem 0.55rem;\n padding: 0 0.7rem;\n min-height: 2.35rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n transition: border-color 160ms ease-out, box-shadow 160ms ease-out;\n }\n html[data-preset=\"blueprint\"] .node-finder-search { border-radius: 0.18rem; }\n .node-finder-search \u003e span { color: var(--frontend-stroke); font-size: 0.875rem; }\n .node-finder-search:focus-within {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 14%, transparent);\n }\n .node-finder-input {\n appearance: none;\n width: 100%;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n font-size: 0.75rem;\n }\n .node-finder-input:focus-visible { outline: none; }\n .node-finder-input::placeholder { color: var(--text-faint); }\n .node-finder kbd {\n padding: 0.1rem 0.32rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5625rem;\n }\n .node-finder-results {\n display: grid;\n flex: 1 1 auto;\n gap: 0;\n min-height: 0;\n max-height: min(18rem, 48vh);\n margin: 0 0.55rem 0.45rem;\n padding: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 54%, transparent);\n scroll-padding-block: 0.25rem;\n scrollbar-width: thin;\n scrollbar-color: color-mix(in srgb, var(--panel-border) 90%, transparent) transparent;\n }\n /* Slim overlay-style thumb instead of the chunky platform default. */\n .node-finder-results::-webkit-scrollbar { width: 10px; }\n .node-finder-results::-webkit-scrollbar-track { background: transparent; }\n .node-finder-results::-webkit-scrollbar-thumb {\n background: color-mix(in srgb, var(--panel-border) 85%, transparent);\n border: 3px solid transparent;\n border-radius: 999px;\n background-clip: padding-box;\n }\n .node-finder-results::-webkit-scrollbar-thumb:hover {\n background: color-mix(in srgb, var(--text-muted) 65%, transparent);\n border: 3px solid transparent;\n background-clip: padding-box;\n }\n html[data-preset=\"blueprint\"] .node-finder-results { border-radius: 0.18rem; }\n .node-finder-result {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem 0.75rem;\n width: 100%;\n min-height: 3rem;\n padding: 0.52rem 0.65rem;\n border: 0;\n border-radius: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color 160ms ease-out;\n }\n .node-finder-result:not(:last-child) {\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);\n }\n .node-finder-result:hover,\n .node-finder-result:focus-visible {\n position: relative;\n z-index: 1;\n background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));\n }\n .node-finder-result strong {\n overflow: hidden;\n font-size: 0.75rem;\n line-height: 1.25;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n letter-spacing: 0.015em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result em {\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.625rem;\n font-style: normal;\n }\n /* A zero count is absence, not information — let it recede. */\n .node-finder-result em[data-zero] { color: var(--text-faint); }\n .node-finder[data-context^=\"route-\"] .node-finder-result em {\n padding: 0.1rem 0.3rem;\n border: 1px solid color-mix(in srgb, currentColor 52%, transparent);\n border-radius: 999px;\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-target\"] .node-finder-result em { color: var(--security-stroke); }\n .node-finder-empty {\n padding: 1.1rem 0.75rem 1.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n text-align: center;\n }\n .node-finder-status {\n margin: 0;\n padding: 0.1rem 0.8rem 0.65rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n\n .cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));\n gap: 1rem;\n margin-top: 2rem;\n }\n\n .card {\n background: var(--panel);\n border-radius: 0.75rem;\n border: 1px solid var(--panel-border);\n padding: 1.125rem 1.25rem;\n /* Card notes are authored prose and may carry an unbreakable run such as a\n slash-joined pipeline or a long identifier. Without this, that run sets the\n card's min-content width, spills past its track in every rail placement,\n and pushes the whole page into horizontal overflow at desktop widths.\n `anywhere` rather than `break-word` because only `anywhere` shrinks the\n intrinsic minimum the layout is sized from. */\n overflow-wrap: anywhere;\n }\n\n html[data-preset=\"signal-flow\"] .card {\n background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .card {\n background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);\n }\n\n /* Preserve the one-screen guarantee on ordinary laptop displays. The\n high-screen expansion above must not trade a fuller canvas for page\n scrolling at 900–1080px heights. */\n @media (min-width: 768px) and (max-height: 1100px) {\n .header { margin-bottom: 1rem; }\n .diagram-container {\n padding: 0.875rem;\n padding-bottom: calc(0.875rem + var(--archify-nav-reserve));\n }\n .cards { margin-top: 1rem; }\n .card { padding: 1rem; }\n }\n @media (min-width: 768px) and (max-height: 920px) {\n body { padding-block: 1.25rem; }\n body { --archify-page-top: 1.25rem; }\n .header { margin-bottom: 0.875rem; }\n .cards { margin-top: 0.75rem; }\n html[data-nav-stage-rail=\"true\"] body { padding-block: 0.375rem; }\n /* Align the fixed toolbar with the compact title row. Reserve its hit area\n above the guide without taking extra height from a fitted diagram. */\n html[data-nav-stage-rail=\"true\"] .toolbar { top: 0.25rem; }\n html[data-nav-stage-rail=\"true\"] .header { min-height: 2.625rem; margin-bottom: 0.5rem; }\n html[data-nav-stage-rail=\"true\"] .diagram-container[data-nav-stage-rail=\"true\"] { padding-top: 0.5rem; }\n html[data-nav-stage-rail=\"true\"] .cards { margin-top: 0.375rem; }\n }\n\n html[data-preset=\"blueprint\"] .card {\n position: relative;\n border-color: var(--panel-border);\n border-radius: 0.3rem;\n background: var(--panel);\n box-shadow: none;\n }\n html[data-preset=\"blueprint\"] .card::before {\n content: \"\";\n position: absolute;\n top: -1px;\n left: 1rem;\n width: 2.5rem;\n border-top: 2px solid var(--frontend-stroke);\n }\n\n html[data-preset=\"editorial\"] .card {\n position: relative;\n border-radius: 0.28rem;\n background: var(--panel);\n box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);\n }\n html[data-preset=\"editorial\"] .card::before {\n position: absolute;\n top: -1px;\n left: 1.25rem;\n width: 3.25rem;\n border-top: 3px solid var(--arrow-emphasis);\n content: \"\";\n }\n html[data-preset=\"editorial\"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }\n\n /* Summary rail: the reader measures the viewport and enables it only when the\n diagram keeps its readable width beside the notes. */\n .reader-rail { display: contents; }\n html[data-reader-rail=\"true\"] .container {\n display: grid;\n grid-template-columns: minmax(0, 1fr) var(--archify-rail-width);\n grid-auto-flow: row dense;\n column-gap: var(--archify-rail-gap);\n align-items: start;\n }\n html[data-reader-rail=\"true\"] .container \u003e .header { grid-column: 1 / -1; }\n html[data-reader-rail=\"true\"] .container \u003e .diagram-container { grid-column: 1; }\n /* The rail is at least the diagram's height and may run on to the viewport\n floor (--archify-rail-max, set by the reader); past that, notes scroll and\n the index keeps a usable share instead of collapsing to its header. */\n html[data-reader-rail=\"true\"] .reader-rail {\n display: flex;\n flex-direction: column;\n grid-column: 2;\n align-self: stretch;\n min-height: 0;\n max-height: var(--archify-rail-max, none);\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards:empty { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards {\n display: flex;\n flex: 0 1 auto;\n flex-direction: column;\n gap: 0;\n min-height: 0;\n margin-top: 0;\n padding: 0.125rem 0 0;\n overflow-y: auto;\n scrollbar-width: none;\n -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);\n mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards::-webkit-scrollbar { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card { flex: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card {\n padding: 0 0.25rem 1.125rem;\n border: 0;\n border-radius: 0;\n background: transparent;\n box-shadow: none;\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card + .card {\n padding-top: 1.125rem;\n border-top: 1px solid var(--panel-border);\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card::before { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .card-header { gap: 0.55rem; margin-bottom: 0.45rem; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card h3 { font-size: 0.875rem; letter-spacing: -0.005em; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card ul { font-size: 0.8125rem; line-height: 1.6; }\n\n .node-outline { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .node-outline:not([hidden]) {\n display: flex;\n flex: 1 0 min(13rem, 55%);\n flex-direction: column;\n min-height: 0;\n margin-top: 0.25rem;\n overflow: hidden;\n border-top: 1px solid var(--panel-border);\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards:empty + .node-outline:not([hidden]) { margin-top: 0; border-top: 0; }\n /* Collapsed: only the reveal control remains, so the diagram takes the width. */\n html[data-reader-rail=\"collapsed\"] .reader-rail { display: none; }\n /* Overlay: a drawer for diagrams whose readable floor leaves no room to dock. */\n html[data-reader-rail=\"overlay\"] .reader-rail {\n position: fixed;\n z-index: 150;\n top: 1rem;\n right: 1rem;\n bottom: 1rem;\n display: flex;\n flex-direction: column;\n width: var(--archify-rail-width);\n padding: 0.75rem 1rem 0.5rem;\n border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);\n border-radius: 1rem;\n background: var(--toolbar-menu-bg);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 28px 64px -18px rgba(15, 23, 42, 0.38);\n animation: rail-drawer-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);\n }\n @keyframes rail-drawer-in {\n from { opacity: 0; transform: translateX(0.75rem); }\n to { opacity: 1; transform: translateX(0); }\n }\n /* Bottom (default): the notes keep their full-width card row and the index\n follows as one panel whose groups flow into columns, so nothing scrolls\n inside it. The placement toggle sits in the index header. */\n html[data-reader-rail=\"bottom\"] .reader-rail {\n display: grid;\n grid-template-areas: \"cards\" \"index\";\n grid-template-columns: minmax(0, 1fr);\n row-gap: 1rem;\n margin-top: 1rem;\n }\n html[data-reader-rail=\"bottom\"] .cards { grid-area: cards; margin-top: 0; }\n html[data-reader-rail=\"bottom\"] .cards:empty { display: none; }\n html[data-reader-rail=\"bottom\"] .node-outline:not([hidden]) {\n display: block;\n grid-area: index;\n padding: 0 1.25rem 0.75rem;\n border: 1px solid var(--panel-border);\n border-radius: 0.75rem;\n background: var(--panel);\n }\n html[data-reader-rail=\"bottom\"] .reader-rail \u003e .rail-controls {\n z-index: 1;\n grid-area: index;\n align-self: start;\n justify-self: end;\n margin: 0.625rem 0.625rem 0 0;\n }\n html[data-reader-rail=\"bottom\"] .node-outline-head { padding: 1rem 2.5rem 0.375rem 0.25rem; }\n html[data-reader-rail=\"bottom\"] .node-outline-list {\n columns: 15rem;\n column-gap: 1.75rem;\n padding: 0;\n overflow: visible;\n -webkit-mask-image: none;\n mask-image: none;\n }\n /* Named groups stay whole; a single unnamed group may split across columns,\n where a continuous spine would read as a broken line. */\n html[data-reader-rail=\"bottom\"] .node-outline-group + .node-outline-group { margin-top: 0; }\n html[data-reader-rail=\"bottom\"] .node-outline-group:has(\u003e .node-outline-heading) { break-inside: avoid; padding-bottom: 0.25rem; }\n html[data-reader-rail=\"bottom\"] .node-outline-group:not(:has(\u003e .node-outline-heading)) \u003e ul::before { display: none; }\n html[data-reader-rail=\"bottom\"] .node-outline-group li { break-inside: avoid; }\n .rail-controls { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"], [data-reader-rail=\"bottom\"]) .rail-controls {\n display: flex;\n flex: none;\n justify-content: flex-end;\n gap: 0.125rem;\n margin: -0.25rem -0.25rem 0.25rem 0;\n }\n .rail-control {\n display: inline-grid;\n place-items: center;\n width: 1.875rem;\n height: 1.875rem;\n border: 0;\n border-radius: 0.5rem;\n background: transparent;\n color: var(--text-faint);\n cursor: pointer;\n transition: background 0.14s ease, color 0.14s ease;\n }\n .rail-control[hidden] { display: none; }\n .rail-control:hover,\n .rail-control:focus-visible { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }\n .rail-control:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: -1.5px; }\n .rail-control-icon,\n .rail-reveal-icon {\n width: 1rem;\n height: 1rem;\n background: currentColor;\n -webkit-mask: var(--rail-glyph) center / contain no-repeat;\n mask: var(--rail-glyph) center / contain no-repeat;\n }\n /* Panel glyphs: a frame with the panel drawn on the side it moves to. */\n .rail-control-icon.placement,\n #rail-placement[data-placement=\"right\"] .rail-control-icon { --rail-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M2.8 12h14.4'/%3E%3C/g%3E%3C/svg%3E\"); }\n #rail-placement[data-placement=\"bottom\"] .rail-control-icon { --rail-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4'/%3E%3C/g%3E%3C/svg%3E\"); }\n .rail-control-icon.collapse { --rail-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m8 5.5 4.5 4.5L8 14.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\"); }\n .rail-reveal-icon { --rail-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4M14.4 7.2h1M14.4 9.6h1M14.4 12h1'/%3E%3C/g%3E%3C/svg%3E\"); }\n .rail-reveal[hidden] { display: none; }\n /* The collapsed rail leaves one quiet pill in the canvas corner. */\n .rail-reveal {\n position: absolute;\n z-index: 13;\n top: 0.75rem;\n right: 0.75rem;\n display: inline-flex;\n align-items: center;\n gap: 0.45rem;\n min-height: 2rem;\n padding: 0 0.75rem 0 0.625rem;\n border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);\n border-radius: 999px;\n background: color-mix(in srgb, var(--panel) 86%, transparent);\n color: var(--text-muted);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px -12px rgba(15, 23, 42, 0.28);\n backdrop-filter: blur(12px);\n font: inherit;\n font-size: 0.75rem;\n font-weight: 500;\n cursor: pointer;\n transition: color 0.14s ease, background 0.14s ease;\n }\n .rail-reveal:hover,\n .rail-reveal:focus-visible { color: var(--text); background: var(--panel); }\n .rail-reveal:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: 2px; }\n html[data-motion=\"still\"] .reader-rail { animation: none !important; }\n .node-outline-head {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 1.125rem 0.25rem 0.375rem;\n }\n .node-outline-head strong {\n color: var(--text);\n font-size: 0.875rem;\n font-weight: 600;\n letter-spacing: -0.005em;\n }\n .node-outline-count {\n min-width: 1.35rem;\n padding: 0.1rem 0.4rem;\n border-radius: 999px;\n background: color-mix(in srgb, var(--text) 6%, transparent);\n color: var(--text-muted);\n font-size: 0.6875rem;\n font-weight: 600;\n line-height: 1.3;\n text-align: center;\n font-variant-numeric: tabular-nums;\n }\n .node-outline-list {\n flex: 1 1 auto;\n min-height: 0;\n margin: 0 -0.375rem;\n padding: 0 0 1.25rem;\n overflow-y: auto;\n list-style: none;\n scrollbar-width: none;\n -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);\n mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);\n }\n .node-outline-list::-webkit-scrollbar { display: none; }\n .node-outline-group + .node-outline-group { margin-top: 0.25rem; }\n .node-outline-group \u003e ul {\n position: relative;\n list-style: none;\n }\n /* A quiet spine ties each group's swatches together like a lane. */\n .node-outline-group \u003e ul::before {\n position: absolute;\n top: 0.95rem;\n bottom: 0.95rem;\n left: calc(0.625rem + 0.3125rem - 0.5px);\n width: 1px;\n background: var(--panel-border);\n content: \"\";\n }\n .node-outline-heading {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n padding: 0.7rem 0.625rem 0.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 600;\n letter-spacing: 0.02em;\n }\n .node-outline-heading small {\n color: var(--text-dim);\n font-size: 0.6875rem;\n font-weight: 500;\n font-variant-numeric: tabular-nums;\n }\n /* The rail frees the vertical budget, so compact viewports keep the normal\n title spacing instead of the stacked layout's tight stage rail. */\n html[data-reader-rail]:not([data-reader-rail=\"bottom\"]) body { --archify-page-top: 1.5rem; padding-block: 1.5rem; }\n html[data-reader-rail]:not([data-reader-rail=\"bottom\"]) .toolbar { top: calc(var(--archify-page-top) - 0.1875rem); }\n html[data-reader-rail]:not([data-reader-rail=\"bottom\"]) .header { min-height: 0; margin-bottom: 1.125rem; }\n .node-outline-item {\n position: relative;\n display: grid;\n grid-template-columns: 0.625rem minmax(0, auto) minmax(0, 1fr) 0.75rem;\n align-items: center;\n column-gap: 0.625rem;\n width: 100%;\n min-height: 1.95rem;\n padding: 0.28rem 0.5rem 0.28rem 0.625rem;\n border: 0;\n border-radius: 0.5rem;\n background: transparent;\n color: var(--text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background 0.16s ease;\n }\n /* Trailing chevron hints that a click focuses the node. */\n .node-outline-item::after {\n grid-column: 4;\n width: 0.75rem;\n height: 0.75rem;\n background: currentColor;\n color: var(--text-muted);\n content: \"\";\n opacity: 0;\n transform: translateX(-3px);\n transition: opacity 0.16s ease, transform 0.16s ease;\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center / contain no-repeat;\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center / contain no-repeat;\n }\n .node-outline-item:hover,\n .node-outline-item:focus-visible,\n .node-outline-item[data-previewing] { background: color-mix(in srgb, var(--text) 4.5%, transparent); }\n .node-outline-item:hover::after,\n .node-outline-item:focus-visible::after { opacity: 0.7; transform: translateX(0); }\n .node-outline-item:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--outline-tone) 60%, transparent); outline-offset: -1.5px; }\n .node-outline-item[aria-current=\"true\"] { background: color-mix(in srgb, var(--outline-tone) 10%, transparent); }\n .node-outline-item[aria-current=\"true\"]::after { opacity: 0; }\n /* Swatches echo the diagram's node cards: tinted fill, hairline stroke. */\n .node-outline-dot {\n width: 0.625rem;\n height: 0.5rem;\n border: 1.25px solid var(--outline-tone);\n border-radius: 0.15rem;\n background: color-mix(in srgb, var(--outline-tone) 16%, var(--bg));\n transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;\n }\n .node-outline-item:hover .node-outline-dot,\n .node-outline-item:focus-visible .node-outline-dot,\n .node-outline-item[data-previewing] .node-outline-dot,\n .node-outline-item[aria-current=\"true\"] .node-outline-dot {\n background: var(--outline-tone);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--outline-tone) 18%, transparent);\n transform: scale(1.08);\n }\n .node-outline-item strong {\n overflow: hidden;\n font-size: 0.8125rem;\n font-weight: 500;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-outline-item[aria-current=\"true\"] strong { font-weight: 600; }\n .node-outline-item small {\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.6875rem;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n transition: color 0.16s ease;\n }\n .node-outline-item:hover small,\n .node-outline-item[data-previewing] small,\n .node-outline-item[aria-current=\"true\"] small { color: var(--text-muted); }\n\n .card-header {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin-bottom: 0.625rem;\n }\n\n .card-dot {\n flex: none;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n\n .card-dot.cyan { background: var(--frontend-stroke); }\n .card-dot.emerald { background: var(--backend-stroke); }\n .card-dot.violet { background: var(--database-stroke); }\n .card-dot.amber { background: var(--cloud-stroke); }\n .card-dot.rose { background: var(--security-stroke); }\n .card-dot.orange { background: var(--messagebus-stroke); }\n .card-dot.slate { background: var(--external-stroke); }\n\n .card h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--text); }\n\n .card ul {\n list-style: none;\n color: var(--text-muted);\n font-size: 0.8125rem;\n line-height: 1.6;\n }\n\n .card li {\n position: relative;\n margin-bottom: 0.3rem;\n padding-left: 0.9rem;\n }\n .card li:last-child { margin-bottom: 0; }\n /* Hanging markers take the card's tone so wrapped lines align under text. */\n .card li::before {\n position: absolute;\n top: calc(0.8em - 2px);\n left: 0.2rem;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background: color-mix(in srgb, var(--card-tone, var(--text-muted)) 70%, transparent);\n content: \"\";\n }\n .card:has(.card-dot.cyan) { --card-tone: var(--frontend-stroke); }\n .card:has(.card-dot.emerald) { --card-tone: var(--backend-stroke); }\n .card:has(.card-dot.violet) { --card-tone: var(--database-stroke); }\n .card:has(.card-dot.amber) { --card-tone: var(--cloud-stroke); }\n .card:has(.card-dot.rose) { --card-tone: var(--security-stroke); }\n .card:has(.card-dot.orange) { --card-tone: var(--messagebus-stroke); }\n .card:has(.card-dot.slate) { --card-tone: var(--external-stroke); }\n .card-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-tone, transparent) 16%, transparent); }\n\n /* ==========================================================\n Print stylesheet — hide interactive controls, force light,\n drop the grid so the diagram doesn't waste ink, use landscape\n so wide diagrams fit, pack summary cards into 2 columns to\n avoid an orphan card on a trailing page.\n ========================================================== */\n @page { size: landscape; margin: 1.5cm; }\n\n @media print {\n /* Force the FULL light palette — including component fills/strokes and\n lane/arrow colors — so printing from dark theme doesn't put neon\n strokes and translucent dark fills on white paper. */\n :root, [data-theme=\"dark\"], [data-theme=\"light\"] {\n --bg: #ffffff;\n --grid: transparent;\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --text: #0f172a;\n --text-muted: #475569;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n --mask: #ffffff;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n }\n body { background: #ffffff !important; padding: 0; }\n .container { max-width: none; }\n .toolbar, .diagram-nav, .focus-chip, .archify-toast, .no-print { display: none !important; }\n \n .diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }\n .diagram-container { --archify-nav-reserve: 0px !important; }\n html[data-preset=\"signal-flow\"] .diagram-container,\n html[data-preset=\"signal-flow\"] .card { background: #ffffff; }\n .cards { grid-template-columns: 1fr 1fr; }\n /* Ensure elements break sensibly across pages */\n .card { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container svg [data-detail] {\n opacity: 1 !important;\n pointer-events: auto !important;\n }\n .diagram-container svg [data-detail-anchor] { transform: none !important; }\n .diagram-container svg[data-lens-active] [data-node-id],\n .diagram-container svg[data-lens-active] [data-edge-from],\n .diagram-container svg[data-legend-preview-active] [data-node-id],\n .diagram-container svg[data-legend-preview-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n }\n [data-legend-bridge-runtime] { display: none !important; }\n .semantic-lens-overlay { display: none !important; }\n .relationship-hit-overlay { display: none !important; }\n .relationship-pulse-overlay { display: none !important; }\n .route-probe-overlay, .route-journey-overlay { display: none !important; }\n .diagram-container svg[data-focus-active] [data-node-id],\n .diagram-container svg[data-focus-active] [data-edge-from],\n .diagram-container svg[data-focus-active] [data-graph-role=\"automatic-crossover-underlay\"],\n .diagram-container svg[data-reach-active] [data-node-id],\n .diagram-container svg[data-reach-active] [data-edge-from],\n .diagram-container svg[data-reach-active] [data-graph-role=\"automatic-crossover-underlay\"],\n .diagram-container svg[data-route-active] [data-node-id],\n .diagram-container svg[data-route-active] [data-edge-from],\n .diagram-container svg[data-route-active] [data-graph-role=\"automatic-crossover-underlay\"] {\n opacity: 1 !important;\n filter: none !important;\n animation: none !important;\n }\n h1, .subtitle { color: #0f172a; }\n }\n\n /* ==========================================================\n TOOLBAR (theme toggle + export menu)\n ========================================================== */\n /* The toolbar tracks the centered reader column and the title row, so\n an adaptive narrow reader does not leave its controls stranded at the\n viewport edge. */\n .toolbar {\n position: absolute;\n top: var(--archify-page-top);\n right: max(1rem, calc((100vw - min(100vw - 4rem, var(--archify-reader-width, 1440px))) / 2));\n display: flex;\n align-items: center;\n gap: 0.125rem;\n padding: 0;\n border: 0;\n background: transparent;\n box-shadow: none;\n z-index: 100;\n }\n /* Ghost controls keep a 44px hit area while the visible pill stays compact;\n Export is the one primary action. */\n .toolbar button {\n position: relative;\n isolation: isolate;\n background: transparent;\n color: var(--text-muted);\n border: 0;\n padding: 0.5rem 0.75rem;\n border-radius: 0.5625rem;\n font-family: inherit;\n font-size: 0.8125rem;\n font-weight: 500;\n cursor: pointer;\n white-space: nowrap;\n box-shadow: none;\n transition: color 0.15s;\n display: inline-flex;\n align-items: center;\n gap: 0.4rem;\n min-height: 2.75rem;\n }\n .toolbar button::before {\n position: absolute;\n z-index: -1;\n inset: 0.375rem 0;\n border-radius: 0.5rem;\n background: transparent;\n content: \"\";\n transition: background 0.15s, box-shadow 0.15s;\n }\n .toolbar button:hover { color: var(--text); }\n .toolbar button:hover::before { background: color-mix(in srgb, var(--text) 6%, transparent); }\n .toolbar button[aria-expanded=\"true\"],\n .toolbar button[aria-pressed=\"true\"]:not(#btn-theme) { color: var(--text); }\n .toolbar button[aria-expanded=\"true\"]::before,\n .toolbar button[aria-pressed=\"true\"]:not(#btn-theme)::before {\n background: color-mix(in srgb, var(--text) 8%, transparent);\n }\n .toolbar #btn-export {\n margin-left: 0.375rem;\n padding-right: 0.95rem;\n padding-left: 1rem;\n color: var(--bg);\n font-weight: 550;\n }\n .toolbar #btn-export::before {\n background: var(--text);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 6px 16px -8px rgba(15, 23, 42, 0.4);\n }\n .toolbar #btn-export:hover,\n .toolbar #btn-export[aria-expanded=\"true\"] { color: var(--bg); }\n .toolbar #btn-export:hover::before,\n .toolbar #btn-export[aria-expanded=\"true\"]::before { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }\n .toolbar button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -4px;\n }\n .toolbar { gap: 0.5rem; }\n .toolbar #btn-export { margin-left: 0; }\n .toolbar #btn-export::before { inset: 0.25rem 0; border-radius: 0.6875rem; }\n /* Tools share one quiet capsule; the capsule is drawn inside the 44px row\n so the controls keep their hit area without a tall visible box. */\n .toolbar-group {\n position: relative;\n isolation: isolate;\n display: flex;\n align-items: center;\n gap: 0.0625rem;\n padding: 0 0.25rem;\n }\n .toolbar-group::before {\n position: absolute;\n z-index: -1;\n inset: 0.25rem 0;\n border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);\n border-radius: 0.6875rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -14px rgba(15, 23, 42, 0.22);\n backdrop-filter: blur(12px);\n content: \"\";\n }\n .toolbar-group button { padding-inline: 0.625rem; }\n .toolbar-group button::before { inset: 0.5rem 0; border-radius: 0.5rem; }\n /* Theme becomes a sliding switch; its label stays for assistive tech. */\n .toolbar #theme-label,\n .toolbar #present-label {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n }\n .toolbar #btn-theme {\n width: 3.5rem;\n padding: 0;\n justify-content: center;\n }\n .toolbar #btn-theme::before {\n inset: 0.75rem 0.4375rem;\n border-radius: 999px;\n background: color-mix(in srgb, var(--text) 9%, transparent);\n box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);\n }\n .toolbar #btn-theme:hover::before { background: color-mix(in srgb, var(--text) 13%, transparent); }\n .toolbar #btn-theme::after {\n position: absolute;\n z-index: 0;\n top: 50%;\n left: 0.5625rem;\n width: 1.125rem;\n height: 1.125rem;\n border-radius: 50%;\n background: var(--panel);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);\n content: \"\";\n transform: translateY(-50%);\n transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .toolbar #theme-icon {\n position: absolute;\n z-index: 1;\n top: 50%;\n left: calc(0.5625rem + 0.1875rem);\n width: 0.75rem;\n height: 0.75rem;\n color: var(--cloud-stroke);\n transform: translateY(-50%);\n transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);\n }\n [data-theme=\"dark\"] .toolbar #btn-theme::before { background: rgba(148, 163, 184, 0.16); }\n [data-theme=\"dark\"] .toolbar #btn-theme::after { left: calc(100% - 0.5625rem - 1.125rem); background: #3b4a63; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }\n [data-theme=\"dark\"] .toolbar #theme-icon { left: calc(100% - 0.5625rem - 1.125rem + 0.1875rem); color: #c7d2fe; }\n .toolbar #btn-present { width: 2.5rem; padding: 0; justify-content: center; }\n .toolbar #btn-present .toolbar-icon { width: 1rem; height: 1rem; }\n html[data-motion=\"still\"] .toolbar #btn-theme::after,\n html[data-motion=\"still\"] .toolbar #theme-icon { transition: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar { right: 1rem; }\n html[data-preset=\"editorial\"] .toolbar { border-radius: 0.45rem; }\n .toolbar #btn-motion[hidden] { display: none !important; }\n .toolbar #btn-motion { min-width: 4.4rem; }\n .toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }\n .toolbar .preset-wrap,\n .toolbar .export-wrap {\n position: relative;\n }\n .toolbar-icon {\n display: inline-block;\n width: 0.95rem;\n height: 0.95rem;\n flex: 0 0 auto;\n background: currentColor;\n -webkit-mask-position: center;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n }\n .toolbar-chevron {\n width: 0.65rem;\n height: 0.65rem;\n transition: transform 0.15s ease;\n }\n [aria-expanded=\"true\"] \u003e .toolbar-chevron { transform: rotate(180deg); }\n [data-theme=\"light\"] #theme-icon {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E\");\n }\n [data-theme=\"dark\"] #theme-icon {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E\");\n }\n #btn-present[aria-pressed=\"false\"] #present-icon {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E\");\n }\n #btn-present[aria-pressed=\"true\"] #present-icon {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E\");\n }\n .toolbar-chevron {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n }\n .toolbar #btn-preset { min-width: 5.4rem; }\n .preset-control-mark {\n width: 0.58rem;\n height: 0.58rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.2rem;\n background: color-mix(in srgb, var(--frontend-stroke) 28%, transparent);\n transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s;\n }\n #btn-preset[data-preset-option=\"signal-flow\"] .preset-control-mark {\n border-radius: 50%;\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 78%, transparent);\n }\n #btn-preset[data-preset-option=\"blueprint\"] .preset-control-mark {\n border-radius: 0.06rem;\n background: transparent;\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);\n transform: rotate(45deg) scale(0.84);\n }\n #btn-preset[data-preset-option=\"editorial\"] .preset-control-mark {\n border-color: var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg) scale(0.72);\n }\n /* Menus anchor to the tools capsule so they open flush under it. */\n .toolbar-group .preset-wrap { position: static; }\n .toolbar .preset-menu {\n position: absolute;\n top: calc(100% + 0.125rem);\n right: 0;\n display: none;\n width: 17.5rem;\n max-width: calc(100vw - 2rem);\n padding: 0.375rem;\n border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);\n border-radius: 0.875rem;\n background: var(--toolbar-menu-bg);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);\n }\n [data-theme=\"dark\"] .toolbar .preset-menu,\n [data-theme=\"dark\"] .toolbar .export-menu {\n border-color: rgba(148, 163, 184, 0.16);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -12px rgba(0, 0, 0, 0.6);\n }\n /* Menu rows are not toolbar pills: drop the ghost-button pseudo surface. */\n .toolbar .preset-menu button,\n .toolbar .export-menu button { isolation: auto; min-height: 0; }\n .toolbar .preset-menu button::before { display: none; }\n .toolbar .preset-menu.open { display: block; }\n .toolbar .preset-menu.open,\n .toolbar .export-menu.open {\n animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);\n transform-origin: top right;\n }\n @keyframes toolbar-menu-in {\n from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n .preset-menu-heading {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.45rem 0.55rem 0.4rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 600;\n letter-spacing: 0.01em;\n }\n .preset-menu-shortcut {\n display: inline-flex;\n align-items: center;\n gap: 0.35rem;\n font-weight: 500;\n }\n .preset-menu-shortcut kbd {\n min-width: 1.125rem;\n padding: 0.05rem 0.3rem;\n border: 1px solid var(--panel-border);\n border-bottom-width: 2px;\n border-radius: 0.3rem;\n background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));\n color: var(--text-muted);\n font-family: inherit;\n font-size: 0.625rem;\n font-weight: 600;\n line-height: 1.3;\n text-align: center;\n }\n .toolbar .preset-option {\n display: grid;\n grid-template-columns: 2.375rem minmax(0, 1fr) 1rem;\n align-items: center;\n gap: 0.75rem;\n width: 100%;\n min-height: 3.125rem;\n margin-top: 0.125rem;\n padding: 0.45rem 0.6rem 0.45rem 0.5rem;\n border: 0;\n border-radius: 0.625rem;\n background: transparent;\n color: var(--text);\n box-shadow: none;\n backdrop-filter: none;\n text-align: left;\n transition: background 0.14s ease;\n }\n .toolbar .preset-option:hover,\n .toolbar .preset-option:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); }\n .toolbar .preset-option[aria-checked=\"true\"] { background: color-mix(in srgb, var(--frontend-stroke) 8%, transparent); }\n .toolbar .preset-option:focus-visible {\n outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);\n outline-offset: -1.5px;\n }\n .preset-option-swatch {\n position: relative;\n width: 2.375rem;\n height: 1.75rem;\n overflow: hidden;\n border: 0;\n border-radius: 0.4375rem;\n background: #0f172a;\n box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28), 0 1px 2px rgba(15, 23, 42, 0.12);\n transition: box-shadow 0.14s ease, transform 0.14s ease;\n }\n .toolbar .preset-option:hover .preset-option-swatch { transform: translateY(-1px); }\n .toolbar .preset-option[aria-checked=\"true\"] .preset-option-swatch {\n box-shadow: 0 0 0 2px var(--toolbar-menu-bg), 0 0 0 3.5px var(--frontend-stroke);\n }\n .preset-option-swatch::before,\n .preset-option-swatch::after { position: absolute; content: \"\"; }\n .preset-option-swatch.classic::before {\n top: 0.42rem;\n right: 0.35rem;\n bottom: 0.42rem;\n left: 0.35rem;\n border: 1px solid #22d3ee;\n border-radius: 0.16rem;\n background: rgba(34, 211, 238, 0.14);\n }\n /* Classic previews the canvas it will actually produce in this theme. */\n [data-theme=\"light\"] .preset-option-swatch.classic {\n background:\n radial-gradient(circle at 1px 1px, #d9dee5 0.6px, transparent 0.9px) 0 0 / 5px 5px,\n #ffffff;\n }\n [data-theme=\"light\"] .preset-option-swatch.classic::before {\n border-color: #1b87a3;\n background: rgba(14, 116, 144, 0.08);\n box-shadow: 0 2px 4px rgba(17, 24, 39, 0.12);\n }\n .preset-option-swatch.signal-flow {\n border-color: #29415f;\n background: linear-gradient(135deg, #07101e 10%, #10243c 100%);\n }\n .preset-option-swatch.signal-flow::before {\n top: 50%;\n right: 0.2rem;\n left: 0.2rem;\n height: 1px;\n background: linear-gradient(90deg, #67e8f9, #c4b5fd);\n box-shadow: 0 0 8px #67e8f9;\n }\n .preset-option-swatch.signal-flow::after {\n top: calc(50% - 0.13rem);\n right: 0.28rem;\n width: 0.26rem;\n height: 0.26rem;\n border-radius: 50%;\n background: #67e8f9;\n box-shadow: 0 0 7px #67e8f9;\n }\n .preset-option-swatch.blueprint {\n border-color: #34799a;\n border-radius: 0.08rem;\n background-color: #0a2031;\n background-image:\n linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),\n linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);\n background-size: 0.42rem 0.42rem;\n }\n .preset-option-swatch.blueprint::before {\n top: 0.34rem;\n right: 0.38rem;\n bottom: 0.34rem;\n left: 0.38rem;\n border: 1px solid #66d9ef;\n }\n .preset-option-swatch.editorial {\n border-color: #b8aa94;\n border-radius: 0.08rem;\n background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);\n }\n .preset-option-swatch.editorial::before {\n top: 0;\n bottom: 0;\n left: 0.42rem;\n width: 1px;\n background: #c9502d;\n opacity: 0.72;\n }\n .preset-option-swatch.editorial::after {\n top: 0.52rem;\n right: 0.45rem;\n width: 0.38rem;\n height: 0.38rem;\n background: #c9502d;\n transform: rotate(45deg);\n }\n .preset-option-copy { min-width: 0; }\n .preset-option-copy strong,\n .preset-option-copy small { display: block; }\n .preset-option-copy strong {\n color: var(--text);\n font-size: 0.8125rem;\n font-weight: 550;\n letter-spacing: -0.005em;\n }\n .toolbar .preset-option[aria-checked=\"true\"] .preset-option-copy strong { font-weight: 650; }\n .preset-option-copy small {\n margin-top: 0.125rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .preset-option-check {\n display: inline-block;\n width: 0.9rem;\n height: 0.9rem;\n color: var(--frontend-stroke);\n background: currentColor;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n -webkit-mask-position: center;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n opacity: 0;\n }\n .preset-option[aria-checked=\"true\"] .preset-option-check { opacity: 1; }\n html[data-preset=\"editorial\"] .toolbar button,\n html[data-preset=\"editorial\"] .preset-menu,\n html[data-preset=\"editorial\"] .export-menu,\n html[data-preset=\"editorial\"] .overview-map,\n html[data-preset=\"editorial\"] .semantic-lens,\n html[data-preset=\"editorial\"] .route-probe,\n html[data-preset=\"editorial\"] .focus-chip,\n html[data-preset=\"editorial\"] .diagram-guide,\n html[data-preset=\"editorial\"] .node-finder {\n border-radius: 0.3rem;\n }\n .motion-control-dot {\n width: 0.46rem;\n height: 0.46rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 50%;\n background: var(--frontend-stroke);\n box-shadow: 0 0 9px color-mix(in srgb, var(--frontend-stroke) 72%, transparent);\n }\n #btn-motion[aria-pressed=\"false\"] .motion-control-dot {\n background: transparent;\n box-shadow: none;\n }\n /* The motion button breathes on the same shared cycle as the cascade, so the\n chrome keeps time with the wave it controls. The cycle length lives on the\n diagram SVG, so chrome presets mirror it here. */\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot {\n animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite;\n }\n html[data-preset=\"signal-flow\"] #btn-motion .motion-control-dot { --flow-cycle-chrome: 5.2s; }\n @keyframes archify-motion-dot-breathe {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 46% { opacity: 0.55; transform: scale(0.72); }\n }\n .toolbar .export-menu {\n position: absolute;\n top: calc(100% + 0.125rem);\n right: 0;\n background: var(--toolbar-menu-bg);\n border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);\n width: 19rem;\n max-width: calc(100vw - 2rem);\n max-height: calc(100vh - 5.5rem);\n overflow-y: auto;\n border-radius: 0.875rem;\n padding: 0.375rem;\n display: none;\n flex-direction: column;\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);\n scrollbar-width: thin;\n }\n .toolbar .export-menu.open { display: flex; }\n .export-menu-header {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.55rem 0.6rem 0.6rem;\n }\n .export-menu-header strong,\n .export-menu-header span { display: block; }\n .export-menu-header strong {\n color: var(--text);\n font-size: 0.875rem;\n font-weight: 600;\n letter-spacing: -0.005em;\n }\n .export-menu-header span {\n margin-top: 0.15rem;\n color: var(--text-faint);\n font-size: 0.75rem;\n }\n .export-menu-header kbd {\n min-width: 1.125rem;\n padding: 0.05rem 0.3rem;\n border: 1px solid var(--panel-border);\n border-bottom-width: 2px;\n border-radius: 0.3rem;\n background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));\n color: var(--text-muted);\n font-family: inherit;\n font-size: 0.625rem;\n font-weight: 600;\n line-height: 1.3;\n text-align: center;\n }\n .export-menu-section {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.0625rem;\n }\n .export-menu-section + .export-menu-section {\n margin-top: 0.3rem;\n padding-top: 0.3rem;\n border-top: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);\n }\n .export-menu-heading {\n grid-column: 1 / -1;\n display: block;\n padding: 0.4rem 0.6rem 0.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 600;\n letter-spacing: 0.01em;\n }\n .toolbar .export-menu button {\n display: grid;\n grid-template-columns: 1rem minmax(0, 1fr);\n align-items: center;\n column-gap: 0.7rem;\n background: transparent;\n border: 0;\n box-shadow: none;\n backdrop-filter: none;\n width: 100%;\n min-height: 2.5rem;\n text-align: left;\n padding: 0.4rem 0.6rem;\n border-radius: 0.5625rem;\n color: var(--text);\n white-space: nowrap;\n transition: background 0.14s ease;\n }\n .toolbar .export-menu button:hover,\n .toolbar .export-menu button:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }\n .toolbar .export-menu button:focus-visible {\n outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);\n outline-offset: -1.5px;\n }\n /* Name and format hint share one line, so each row stays compact. */\n .export-item-copy {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 0.75rem;\n min-width: 0;\n }\n .export-item-copy strong {\n overflow: hidden;\n color: inherit;\n font-size: 0.8125rem;\n font-weight: 500;\n text-overflow: ellipsis;\n }\n .export-item-copy small {\n flex: none;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 450;\n }\n .toolbar .export-menu button::before {\n position: static;\n z-index: auto;\n inset: auto;\n border-radius: 0;\n display: block;\n width: 1rem;\n height: 1rem;\n background: currentColor;\n color: var(--text-muted);\n content: \"\";\n opacity: 0.8;\n -webkit-mask-position: center;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n }\n .toolbar .export-menu button[data-action=\"route-share-card\"]::before,\n .toolbar .export-menu button[data-action=\"reach-share-card\"]::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E\");\n }\n .toolbar .export-menu button[data-action^=\"copy\"]::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n }\n .toolbar .export-menu button[data-format=\"png\"]::before,\n .toolbar .export-menu button[data-format=\"jpeg\"]::before,\n .toolbar .export-menu button[data-format=\"webp\"]::before {\n -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 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n }\n .toolbar .export-menu button[data-format^=\"svg\"]::before,\n .toolbar .export-menu button[data-format=\"webm\"]::before {\n -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 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n }\n .toolbar .export-menu button[data-action=\"route-share-card\"],\n .toolbar .export-menu button[data-action=\"reach-share-card\"] {\n color: var(--text);\n background: color-mix(in srgb, var(--frontend-stroke) 7%, transparent);\n }\n .toolbar .export-menu button[data-action=\"route-share-card\"]::before,\n .toolbar .export-menu button[data-action=\"reach-share-card\"]::before { color: var(--frontend-stroke); opacity: 1; }\n .toolbar .export-menu button[hidden] { display: none; }\n .toolbar .export-menu button[data-action=\"route-share-card\"]:hover,\n .toolbar .export-menu button[data-action=\"reach-share-card\"]:hover {\n background: color-mix(in srgb, var(--frontend-stroke) 12%, transparent);\n }\n .toolbar .export-menu button:disabled {\n color: var(--text-faint);\n background: transparent;\n opacity: 0.55;\n cursor: not-allowed;\n }\n .toolbar .export-menu .hint {\n color: var(--text-faint);\n font-size: 0.6875rem;\n }\n\n /* Toast — brief feedback for actions like \"copied\" */\n .archify-toast {\n position: fixed;\n top: 1rem;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: var(--toolbar-menu-bg);\n color: var(--text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n opacity: 0;\n transition: opacity 0.2s, transform 0.2s;\n z-index: 200;\n pointer-events: none;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .archify-toast.show {\n opacity: 1;\n transform: translateX(-50%) translateY(0);\n }\n\n @media (max-width: 720px) {\n body { padding: 1rem; }\n .toolbar .preset-menu,\n .toolbar .export-menu {\n position: fixed;\n top: 4.5rem;\n right: 1rem;\n left: 1rem;\n width: auto;\n max-width: none;\n }\n .toolbar {\n position: relative;\n top: auto;\n right: auto;\n justify-content: flex-end;\n width: max-content;\n max-width: 100%;\n margin-left: auto;\n margin-bottom: 1rem;\n }\n .header { margin-bottom: 1.25rem; padding-right: 0; }\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 0; }\n .header-row {\n gap: 0.75rem;\n align-items: flex-start;\n }\n html[data-preset=\"signal-flow\"] .header-row,\n html[data-preset=\"blueprint\"] .header-row,\n html[data-preset=\"editorial\"] .header-row { flex-wrap: wrap; }\n html[data-preset=\"signal-flow\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n h1 {\n font-size: 1.25rem;\n line-height: 1.25;\n }\n .subtitle {\n margin-left: 0;\n font-size: 0.8125rem;\n line-height: 1.55;\n }\n .diagram-container {\n padding: 0.75rem;\n border-radius: 0.75rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container {\n padding: 0.75rem 0.75rem 4.25rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] {\n overflow-x: auto;\n overflow-y: hidden;\n overscroll-behavior-x: contain;\n scrollbar-width: thin;\n scroll-behavior: smooth;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n min-width: 720px;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-nav,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .overview-map,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .focus-chip,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .route-probe,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .semantic-lens,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-guide,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .node-finder {\n transform: translateX(var(--archify-scroll-x, 0px));\n }\n .diagram-nav { right: 0.5rem; bottom: 0.5rem; }\n .diagram-nav button {\n min-width: 2.75rem;\n height: 2.75rem;\n }\n .diagram-nav [data-view=\"reset\"] { min-width: 3.75rem; }\n .diagram-nav [data-view=\"reset\"][data-detail-visible] { min-width: 4.35rem; }\n .overview-map {\n right: 0.5rem;\n bottom: 3.7rem;\n width: min(10.25rem, calc(100% - 1rem));\n }\n .overview-map[data-docked=\"true\"] {\n right: var(--archify-radar-right, 0.5rem);\n top: var(--archify-radar-top, 0.5rem);\n bottom: auto;\n transform: none !important;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: var(--archify-radar-left, 0.5rem);\n }\n .overview-map-surface { height: 4rem; }\n .overview-map-feedback { right: 0.5rem; bottom: 3.7rem; }\n .semantic-lens {\n right: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n max-height: calc(100% - 4.2rem);\n }\n .semantic-lens[data-dock-side] { left: auto; right: 0.5rem; }\n .semantic-lens-kinds { max-height: min(12rem, 34vh); }\n .focus-chip {\n left: 0.5rem;\n top: 0.5rem;\n width: calc(100% - 1rem);\n max-width: none;\n }\n .relationship-lens-head { padding-top: 0.7rem; }\n .relationship-lens-drag-handle { display: none; }\n .relationship-lens-list { max-height: min(12rem, 38vh); }\n .relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-head { border-bottom-color: transparent; }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-list { display: none; }\n /* While a mobile reader previews one relationship, turn the full Lens\n into a compact peek card. This keeps the exact source and target on\n canvas instead of covering them with a long, scrollable list. */\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-list {\n max-height: none;\n padding: 0.35rem;\n overflow: hidden;\n }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group { margin: 0; }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group-title,\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-row:not([data-preview-active=\"true\"]) {\n display: none;\n }\n .node-finder {\n top: 0.5rem;\n left: 0.5rem;\n width: min(22rem, calc(100% - 1rem));\n max-height: calc(100% - 1rem);\n }\n .diagram-guide {\n top: 0.5rem;\n right: 0.5rem;\n left: 0.5rem;\n width: auto;\n max-height: calc(100% - 1rem);\n }\n .diagram-guide-head { padding: 0.62rem 0.7rem 0.52rem; }\n .diagram-guide-stats { padding: 0.42rem 0.7rem; }\n .diagram-guide-actions {\n grid-template-columns: 1fr;\n gap: 0.28rem;\n padding: 0.42rem;\n }\n .diagram-guide-action {\n min-height: 3.1rem;\n padding: 0.42rem 0.48rem;\n }\n .diagram-guide-action small {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-index {\n width: 1.5rem;\n height: 1.5rem;\n }\n .diagram-guide-shortcuts { padding: 0.46rem 0.7rem 0.52rem; }\n .diagram-guide-action[data-guide-action=\"present\"] { grid-column: auto; }\n .route-probe[data-guide-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .node-finder-results { max-height: min(16rem, 38vh); }\n .route-probe {\n left: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n min-width: 0;\n }\n .route-probe[data-route-dock=\"top\"] {\n top: 0.5rem;\n bottom: auto;\n }\n .route-probe[data-finder-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .route-probe-head { padding: 0.45rem 0.48rem 0.38rem; }\n .route-probe-path { padding: 0.35rem 0.48rem 0.2rem; }\n .route-probe-node { min-height: 2.75rem !important; }\n .route-journey-controls {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem minmax(0, 1fr);\n padding: 0.08rem 0.48rem 0.32rem;\n }\n .route-journey-controls button { min-height: 2.75rem; }\n .route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }\n .route-probe-node { max-width: 7.5rem; }\n \n \n \n \n \n \n \n \n \n \n \n html[data-embed=\"true\"][data-share-playback=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n html[data-embed=\"true\"][data-share-moment=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n \n .cards {\n grid-template-columns: 1fr;\n margin-top: 1rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body { padding: 0.5rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n gap: 0.5rem;\n height: calc(100dvh - 1rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar {\n position: fixed;\n top: 0.5rem;\n right: 0.5rem;\n margin: 0;\n gap: 0.25rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar button {\n min-height: 2.75rem;\n padding: 0.42rem 0.58rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n min-height: 2.25rem;\n padding: 3.5rem 0 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row {\n min-height: 2.25rem;\n margin: 0;\n align-items: center;\n flex-wrap: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row::after,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .pulse-dot,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) h1 {\n flex: 1 1 auto;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n font-size: 0.875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n \n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n width: 720px;\n height: auto;\n min-width: 720px;\n }\n }\n\n @media (max-width: 420px) {\n .export-menu-section { grid-template-columns: 1fr; }\n .export-menu-heading,\n .toolbar .export-menu button[data-action=\"route-share-card\"],\n .toolbar .export-menu button[data-action=\"reach-share-card\"] { grid-column: 1; }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .toolbar .preset-menu.open,\n .toolbar .export-menu.open { animation: none; }\n .toolbar-chevron { transition: none; }\n }\n\n @media (max-width: 360px) {\n .toolbar { gap: 0.25rem; }\n .toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }\n .toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }\n #theme-label, #preset-label, #present-label { display: none; }\n }\n\n /* ==========================================================\n SVG SEMANTIC CLASSES — use these instead of inline fill/stroke\n ========================================================== */\n .c-grid { stroke: var(--grid); fill: none; }\n .c-mask { fill: var(--mask); stroke: none; }\n .c-lane-rule { stroke: var(--lane-stroke); fill: none; opacity: 0.7; }\n .c-lane-wash { fill: var(--lane-fill); stroke: none; }\n\n .c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }\n .c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }\n .c-database { fill: var(--database-fill); stroke: var(--database-stroke); }\n .c-cloud { fill: var(--cloud-fill); stroke: var(--cloud-stroke); }\n .c-security { fill: var(--security-fill); stroke: var(--security-stroke); }\n .c-messagebus { fill: var(--messagebus-fill); stroke: var(--messagebus-stroke); }\n .c-external { fill: var(--external-fill); stroke: var(--external-stroke); }\n\n /* Text helpers */\n .t-primary { fill: var(--text); }\n .t-muted { fill: var(--text-muted); }\n .t-dim { fill: var(--text-dim); }\n .t-frontend { fill: var(--frontend-stroke); }\n .t-backend { fill: var(--backend-stroke); }\n .t-database { fill: var(--database-stroke); }\n .t-cloud { fill: var(--cloud-stroke); }\n .t-security { fill: var(--security-stroke); }\n .t-messagebus { fill: var(--messagebus-stroke); }\n .t-external { fill: var(--external-stroke); }\n\n /* Relationship labels share the exact color token used by their path. */\n .t-edge-default { fill: var(--arrow); }\n .t-edge-emphasis { fill: var(--arrow-emphasis); }\n .t-edge-security { fill: var(--security-stroke); }\n .t-edge-dashed { fill: var(--database-stroke); }\n\n /* Classic canvas: a quiet dot field replaces drafting grid lines, and nodes\n read as lifted cards with hairline strokes. Paint only; authored geometry,\n hit areas and exports keep their canonical shapes. */\n html[data-preset=\"classic\"] .diagram-container {\n background:\n radial-gradient(circle at 1px 1px, var(--canvas-dot) 1px, transparent 1.4px) 0 0 / 20px 20px,\n var(--panel);\n }\n html[data-preset=\"classic\"] .diagram-container \u003e svg .c-grid { stroke: transparent; }\n html[data-preset=\"classic\"][data-theme=\"light\"] .diagram-container \u003e svg [data-node-id] \u003e rect:not(.c-mask) {\n --ambient-node-base-filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));\n filter: var(--ambient-node-base-filter);\n }\n html[data-preset=\"classic\"][data-theme=\"dark\"] .diagram-container \u003e svg [data-node-id] \u003e rect:not(.c-mask) {\n --ambient-node-base-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));\n filter: var(--ambient-node-base-filter);\n }\n html[data-preset=\"classic\"] .diagram-container \u003e svg [data-edge-from] {\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n html[data-preset=\"classic\"] .diagram-container \u003e svg .c-lane-wash { fill: color-mix(in srgb, var(--text) 2.6%, transparent); }\n html[data-preset=\"classic\"] .diagram-container \u003e svg .c-lane-rule { stroke: var(--panel-border); opacity: 1; }\n html[data-preset=\"classic\"][data-theme=\"dark\"] .diagram-container \u003e svg .c-lane-rule { stroke: rgba(148, 163, 184, 0.16); }\n html[data-preset=\"classic\"] .diagram-container \u003e svg [data-node-id] {\n transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);\n }\n html[data-preset=\"classic\"]:not([data-motion=\"still\"]) .diagram-container \u003e svg [data-node-id]:hover {\n transform: translateY(-1.5px);\n }\n\n /* Semantic Sigils are small authored role stamps, not icons from a brand\n pack and not viewer controls. Prefix selectors with svg so the canonical\n export's SVG-only stylesheet collector keeps them automatically. */\n svg .semantic-sigil {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n opacity: 0.76;\n pointer-events: none;\n }\n svg .semantic-sigil \u003e * { vector-effect: non-scaling-stroke; }\n svg .semantic-sigil .sigil-fill { fill: currentColor; stroke: none; }\n svg .s-frontend { color: var(--frontend-stroke); }\n svg .s-backend { color: var(--backend-stroke); }\n svg .s-database { color: var(--database-stroke); }\n svg .s-cloud { color: var(--cloud-stroke); }\n svg .s-security { color: var(--security-stroke); }\n svg .s-messagebus { color: var(--messagebus-stroke); }\n svg .s-external { color: var(--external-stroke); }\n\n /* Brand Marks are authored identity badges. Their color is contained\n inside one neutral plate so vendor color never replaces Archify's\n semantic node and relationship vocabulary. */\n svg .brand-mark { pointer-events: none; }\n svg .brand-mark-badge { fill: #fff; stroke: none; }\n svg .brand-mark-frame {\n fill: none;\n stroke: #cbd5e1;\n stroke-width: 0.8;\n vector-effect: non-scaling-stroke;\n }\n svg .brand-mark-fallback {\n fill: none;\n stroke: #475569;\n stroke-width: 1.15;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n svg[data-preset=\"blueprint\"] .brand-mark-badge,\n svg[data-preset=\"blueprint\"] .brand-mark-frame { rx: 1px; }\n\n /* Reading Depth is a viewer-only level-of-detail layer. MAP preserves the\n authored structure and primary labels, READ restores relationship labels\n and node context, and FULL restores tags and fine annotations. Semantic\n intent can reveal the relevant detail without moving any geometry. */\n svg [data-detail] { transition: opacity 160ms ease; }\n svg [data-detail-anchor] {\n transform-box: fill-box;\n transform-origin: center;\n transition: transform 160ms ease;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"context\"],\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"fine\"],\n .diagram-container[data-detail-level=\"read\"] svg [data-detail=\"fine\"] {\n opacity: 0;\n pointer-events: none;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail-anchor] {\n transform: translateY(8px);\n }\n\n /* Focus, lens, preview, route, and story states are stronger reader intent than\n the global zoom level. Reveal only their exact semantic matches. */\n svg[data-focus-active] [data-focus-match][data-detail],\n svg[data-focus-active] [data-focus-match] [data-detail],\n svg[data-reach-active] [data-reach-match][data-detail],\n svg[data-reach-active] [data-reach-match] [data-detail],\n svg[data-lens-active] [data-lens-match][data-detail],\n svg[data-lens-active] [data-lens-match] [data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match][data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match][data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],\n svg[data-route-active] [data-route-match][data-detail],\n svg[data-route-active] [data-route-match] [data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview][data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],\n svg [data-node-id]:hover [data-detail],\n svg [data-node-id]:focus-visible [data-detail] {\n opacity: 1;\n pointer-events: auto;\n }\n svg[data-focus-active] [data-focus-match] [data-detail-anchor],\n svg[data-reach-active] [data-reach-match] [data-detail-anchor],\n svg[data-lens-active] [data-lens-match] [data-detail-anchor],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],\n svg[data-route-active] [data-route-match] [data-detail-anchor],\n svg [data-node-id]:hover [data-detail-anchor],\n svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }\n\n /* Arrows */\n .a-default { stroke: var(--arrow); fill: none; }\n .a-emphasis { stroke: var(--arrow-emphasis); fill: none; }\n .a-security { stroke: var(--security-stroke); fill: none; stroke-dasharray: 5,5; }\n .a-dashed { stroke: var(--database-stroke); fill: none; stroke-dasharray: 4,4; }\n\n /* Arrowhead markers reference these */\n .m-default { fill: var(--arrow); }\n .m-emphasis { fill: var(--arrow-emphasis); }\n .m-security { fill: var(--security-stroke); }\n .m-dashed { fill: var(--database-stroke); }\n\n /* Stable semantic exploration hooks emitted by every renderer. */\n svg [data-node-id] {\n cursor: pointer;\n transition: opacity 0.18s ease, fill-opacity 0.18s ease, stroke-opacity 0.18s ease, filter 0.18s ease;\n }\n svg [data-edge-from],\n svg [data-graph-role=\"automatic-crossover-underlay\"] { transition: opacity 0.18s ease, filter 0.18s ease; }\n svg [data-node-id]:hover,\n svg [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n outline: none;\n }\n svg [data-legend-kind][role=\"button\"] { cursor: pointer; }\n svg [data-legend-kind]:focus { outline: none; }\n svg [data-legend-hit] {\n fill: transparent;\n stroke: transparent;\n stroke-width: 1.4;\n pointer-events: all;\n vector-effect: non-scaling-stroke;\n transition: stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;\n }\n svg [data-legend-count-badge] { pointer-events: none; }\n svg [data-legend-count-badge] rect {\n fill: var(--mask);\n stroke: var(--panel-border);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n svg [data-legend-count-badge] text {\n fill: var(--text-muted);\n font-size: 8px;\n font-weight: 700;\n text-anchor: middle;\n }\n svg [data-legend-kind][role=\"button\"]:hover [data-legend-hit] {\n stroke: color-mix(in srgb, var(--database-stroke) 58%, transparent);\n }\n svg [data-legend-kind][role=\"button\"]:focus-visible [data-legend-hit] {\n stroke: var(--frontend-stroke);\n stroke-width: 1.8;\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-hit] {\n stroke: var(--database-stroke);\n stroke-width: 2.2;\n stroke-dasharray: 3 2;\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-count-badge] rect {\n stroke: var(--database-stroke);\n stroke-width: 1.8;\n }\n svg [data-legend-kind][data-legend-zero] { opacity: 0.44; }\n svg[data-preset=\"signal-flow\"] [data-legend-kind][data-legend-selected] [data-legend-hit] {\n filter: drop-shadow(0 0 4px var(--database-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-legend-hit],\n svg[data-preset=\"blueprint\"] [data-legend-count-badge] rect { rx: 0; filter: none; }\n svg[data-legend-preview-active] [data-node-id],\n svg[data-legend-preview-active] [data-edge-from] { opacity: 0.11; }\n svg[data-legend-preview-active] [data-legend-preview-match] { opacity: 1; }\n svg[data-legend-preview-active] [data-legend-preview-peer] { opacity: 0.62; }\n svg[data-legend-preview-active] [data-legend-preview-selected] {\n filter: drop-shadow(0 0 8px var(--database-stroke));\n }\n svg[data-lens-active] [data-node-id],\n svg[data-lens-active] [data-edge-from] { opacity: 0.11; }\n svg[data-lens-active] [data-lens-match] { opacity: 1; }\n svg[data-lens-active] [data-lens-peer] { opacity: 0.62; }\n svg[data-lens-active] [data-lens-selected] {\n filter: drop-shadow(0 0 10px var(--database-stroke));\n }\n .semantic-lens-overlay { pointer-events: none; }\n .semantic-lens-flow {\n fill: none;\n stroke-width: 3.05;\n stroke-linecap: round;\n stroke-dasharray: 0.075 0.925;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.9;\n animation: archify-semantic-lens-flow 1.35s linear 1 both;\n animation-delay: var(--lens-flow-delay, 0s);\n }\n .semantic-lens-flow[data-direction=\"out\"],\n .semantic-lens-flow[data-direction=\"forward\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n .semantic-lens-flow[data-direction=\"in\"],\n .semantic-lens-flow[data-direction=\"reverse\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 3px var(--database-stroke));\n }\n .semantic-lens-flow[data-direction=\"within\"] {\n stroke: var(--messagebus-stroke);\n filter: drop-shadow(0 0 3px var(--messagebus-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow {\n stroke-width: 3.7;\n opacity: 1;\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"out\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"forward\"] {\n filter: drop-shadow(0 0 6px var(--frontend-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"in\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"reverse\"] {\n filter: drop-shadow(0 0 6px var(--database-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"within\"] {\n filter: drop-shadow(0 0 6px var(--messagebus-stroke));\n }\n svg[data-preset=\"blueprint\"] .semantic-lens-flow {\n stroke-width: 2.45;\n stroke-linecap: square;\n filter: none;\n opacity: 0.78;\n }\n html[data-embed=\"true\"] .semantic-lens-overlay { display: none; }\n /* Automatic crossover masks are visual companions of their one semantic\n edge. Keep the mask free of data-edge-* identity so graph traversal and\n export still observe exactly one edge, then mirror reader emphasis from\n the paired foreground path in this presentation-only wrapper. */\n svg[data-legend-preview-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n svg[data-lens-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.11; }\n svg[data-legend-preview-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-legend-preview-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n svg[data-lens-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-lens-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-legend-preview-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-legend-preview-peer]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n svg[data-lens-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-lens-peer]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.62; }\n svg[data-focus-active] [data-node-id],\n svg[data-focus-active] [data-edge-from] { opacity: 0.13; }\n svg[data-focus-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.13; }\n svg[data-focus-active] [data-lifecycle-rail] { opacity: 0; }\n svg[data-focus-active] [data-focus-match] { opacity: 1; }\n svg[data-focus-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-focus-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n\n /* Authored Reachability is a bounded graph query over the relationships\n already present in the artifact. Upstream walks incoming edges;\n downstream walks outgoing edges. It never claims runtime causality and\n changes only viewer emphasis, not canonical geometry or export bytes. */\n svg[data-reach-active] [data-node-id],\n svg[data-reach-active] [data-edge-from] { opacity: 0.09; }\n svg[data-reach-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.09; }\n svg[data-reach-active] [data-reach-match] { opacity: 1; }\n svg[data-reach-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-reach-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-reach-active=\"upstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--database-stroke));\n }\n svg[data-reach-active=\"downstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--backend-stroke));\n }\n svg[data-reach-active=\"upstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--database-stroke) 72%, transparent));\n }\n svg[data-reach-active=\"downstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"blueprint\"][data-reach-active] [data-reach-origin],\n svg[data-preset=\"blueprint\"][data-reach-active] [data-edge-from][data-reach-match] {\n filter: none;\n }\n\n /* Direct Relationship Explorer makes authored paths a real input surface\n without changing their visible stroke or canonical SVG. A transparent\n runtime rail supplies forgiving pointer geometry; the exact authored\n path and endpoints continue to carry every visible state. */\n .relationship-hit-overlay { pointer-events: none; }\n .relationship-hit-target { outline: none; }\n .relationship-hit-rail {\n fill: none;\n stroke: transparent;\n stroke-width: 24;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: stroke;\n cursor: pointer;\n }\n .relationship-focus-rail {\n fill: none;\n stroke: color-mix(in srgb, var(--frontend-stroke) 34%, transparent);\n stroke-width: 6;\n stroke-dasharray: 2 4;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n opacity: 0;\n }\n .relationship-hit-target:focus-visible .relationship-focus-rail {\n opacity: 1;\n }\n svg[data-preset=\"blueprint\"] .relationship-hit-target:focus-visible .relationship-focus-rail {\n stroke-linecap: square;\n filter: none;\n }\n svg[data-relationship-direct-active] [data-node-id],\n svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }\n svg[data-relationship-direct-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.16; }\n svg[data-relationship-direct-active] [data-relationship-preview],\n svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-relationship-direct-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-relationship-preview]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,\n svg[data-route-picking] .relationship-hit-rail,\n svg[data-route-active] .relationship-hit-rail,\n svg[data-lens-active] .relationship-hit-rail { pointer-events: none; }\n html[data-embed=\"true\"] .relationship-hit-overlay { display: none; }\n @media (hover: none), (pointer: coarse) {\n .relationship-hit-rail { stroke-width: 24; }\n }\n\n /* Relationship Preview is temporary exploration state layered on top of\n neighborhood focus. It changes emphasis only; exported geometry and the\n relationship's original solid/dashed visual language stay untouched. */\n svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }\n svg[data-relationship-preview-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-focus-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.18; }\n svg[data-relationship-preview-active] [data-lifecycle-rail] { opacity: 0; }\n svg[data-relationship-preview-active] [data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-relationship-preview-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-relationship-preview]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-relationship-preview-active] [data-relationship-preview] {\n filter: drop-shadow(0 0 5px var(--arrow-emphasis));\n }\n svg[data-relationship-preview-active] [data-relationship-preview] path,\n svg[data-relationship-preview-active] path[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] line,\n svg[data-relationship-preview-active] line[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] polyline,\n svg[data-relationship-preview-active] polyline[data-relationship-preview] {\n stroke-width: 2.75;\n }\n svg[data-relationship-preview-active] [data-relationship-preview-source] {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 7px var(--database-stroke));\n }\n .relationship-pulse-overlay { pointer-events: none; }\n .relationship-flow-pulse {\n fill: none;\n stroke: var(--arrow-emphasis);\n stroke-width: 3.35;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 4px var(--arrow-emphasis));\n animation: archify-relationship-pulse 1.2s linear 1 both;\n }\n svg[data-preset=\"signal-flow\"] .relationship-flow-pulse {\n stroke: var(--frontend-stroke);\n stroke-width: 3.85;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"] .relationship-flow-pulse {\n stroke-width: 2.5;\n stroke-linecap: square;\n filter: none;\n }\n svg[data-preset=\"editorial\"] .relationship-flow-pulse {\n stroke: var(--arrow-emphasis);\n stroke-width: 2.75;\n filter: none;\n }\n .semantic-flow-token {\n color: var(--frontend-stroke);\n opacity: 0;\n pointer-events: none;\n }\n .relationship-flow-token {\n animation: archify-relationship-token-life 1.2s linear 1 both;\n }\n\n .semantic-flow-token-halo {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.1;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n }\n .relationship-flow-token-shape {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-ink {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.05;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-dot { fill: currentColor; stroke: none; }\n .semantic-flow-token[data-token-kind=\"data\"] { color: var(--database-stroke); }\n .semantic-flow-token[data-token-kind=\"event\"] { color: var(--messagebus-stroke); }\n .semantic-flow-token[data-token-kind=\"security\"] { color: var(--security-stroke); }\n .semantic-flow-token[data-token-kind=\"state\"] { color: var(--cloud-stroke); }\n svg[data-preset=\"signal-flow\"] .semantic-flow-token {\n filter: drop-shadow(0 0 5px currentColor);\n }\n svg[data-preset=\"blueprint\"] .semantic-flow-token { filter: none; }\n svg[data-preset=\"editorial\"] .semantic-flow-token { filter: none; }\n html[data-embed=\"true\"] .relationship-pulse-overlay { display: none; }\n\n /* Intent Trace is a temporary, pre-click exploration layer. Related\n topology stays readable while a short viewer-only signal runs over\n cloned edge geometry; the authored edge remains untouched underneath. */\n /* Keep the node's opaque backing mask intact while its visible ink dims.\n Fading the whole group also fades that mask and briefly exposes arrows\n routed underneath the node when the pointer leaves. */\n svg[data-intent-trace-active] [data-node-id] { fill-opacity: 0.2; stroke-opacity: 0.2; }\n svg [data-node-id] \u003e .c-mask { fill-opacity: 1; }\n svg[data-intent-trace-active] [data-node-id][data-intent-trace-match] { fill-opacity: 1; stroke-opacity: 1; }\n svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }\n svg[data-intent-trace-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.2; }\n svg[data-intent-trace-active] [data-lifecycle-rail] { opacity: 0; }\n svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }\n svg[data-intent-trace-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-intent-trace-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-intent-trace-active] [data-intent-trace-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n .intent-trace-overlay { pointer-events: none; }\n .intent-trace-flow {\n fill: none;\n stroke-width: 3.1;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.94;\n animation: archify-intent-trace-flow 1.15s linear 1 both;\n }\n /* Direction names describe each edge relative to the focused node only.\n The cloned geometry already runs from the authored source to target, so\n incoming and outgoing signals must share the same playback direction. */\n .intent-trace-flow[data-direction=\"out\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 4px var(--frontend-stroke));\n }\n .intent-trace-flow[data-direction=\"in\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 4px var(--database-stroke));\n animation-direction: normal;\n }\n .intent-trace-flow[data-direction=\"loop\"] {\n stroke: var(--security-stroke);\n filter: drop-shadow(0 0 4px var(--security-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-intent-trace-selected],\n svg[data-preset=\"blueprint\"] .intent-trace-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-intent-trace-selected],\n svg[data-preset=\"editorial\"] .intent-trace-flow { filter: none; }\n .intent-trace-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n /* Route Probe separates a durable two-point query from selection and\n one-hop hover. Only the chosen shortest directed path stays prominent;\n the traveling signal is cloned viewer geometry and never authored SVG. */\n svg[data-route-picking=\"target\"] [data-node-id] { opacity: 0.24; }\n svg[data-route-picking=\"target\"] [data-route-candidate],\n svg[data-route-picking=\"target\"] [data-route-start] { opacity: 1; }\n svg[data-route-picking] [data-node-id] { cursor: crosshair; }\n svg[data-route-picking] [data-route-start] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n svg[data-route-active] [data-node-id],\n svg[data-route-active] [data-edge-from] { opacity: 0.11; }\n svg[data-route-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.11; }\n svg[data-route-active] [data-route-match] { opacity: 1; }\n svg[data-route-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-route-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-route-active] [data-route-start] {\n filter: drop-shadow(0 0 11px var(--frontend-stroke));\n }\n svg[data-route-active] [data-route-end] {\n filter: drop-shadow(0 0 11px var(--security-stroke));\n }\n svg[data-route-active] [data-route-step]:not([data-route-start]):not([data-route-end]) {\n filter: drop-shadow(0 0 7px var(--backend-stroke));\n }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"past\"] { opacity: 0.62; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"future\"] { opacity: 0.34; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"current\"] { opacity: 1; }\n svg[data-route-journey] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-route-match][data-route-journey-state=\"past\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.62; }\n svg[data-route-journey] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-route-match][data-route-journey-state=\"future\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.34; }\n svg[data-route-journey] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-route-match][data-route-journey-state=\"current\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-route-journey] [data-node-id][data-route-journey-current] {\n filter: drop-shadow(0 0 10px var(--backend-stroke));\n }\n svg[data-route-journey] [data-edge-from][data-route-journey-current] {\n opacity: 1;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n }\n .route-probe-overlay { pointer-events: none; }\n .route-journey-overlay { pointer-events: none; }\n .route-probe-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.25;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n filter: drop-shadow(0 0 5px var(--backend-stroke));\n animation: archify-route-probe-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n animation-delay: calc(var(--route-step, 0) * 0.16s);\n }\n .route-journey-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.5;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n animation: archify-route-journey-flow 780ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n }\n svg[data-preset=\"blueprint\"] [data-route-start],\n svg[data-preset=\"blueprint\"] [data-route-end],\n svg[data-preset=\"blueprint\"] [data-route-step],\n svg[data-preset=\"blueprint\"] .route-probe-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"blueprint\"] .route-journey-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-route-start],\n svg[data-preset=\"editorial\"] [data-route-end],\n svg[data-preset=\"editorial\"] [data-route-step],\n svg[data-preset=\"editorial\"] .route-probe-flow,\n svg[data-preset=\"editorial\"] .route-journey-flow { filter: none; }\n\n svg[data-preset=\"editorial\"] .c-grid {\n stroke-dasharray: 1 4;\n opacity: 0.48;\n }\n svg[data-preset=\"editorial\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);\n stroke-dasharray: 9 4;\n }\n svg[data-preset=\"editorial\"] [data-node-id]:hover,\n svg[data-preset=\"editorial\"] [data-node-id]:focus-visible,\n svg[data-preset=\"editorial\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));\n }\n\n svg[data-preset=\"blueprint\"] .c-grid {\n stroke-dasharray: 1 3;\n opacity: 0.78;\n }\n svg[data-preset=\"blueprint\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 58%, transparent);\n stroke-dasharray: 12 4 2 4;\n }\n svg[data-preset=\"blueprint\"] .c-security-group,\n svg[data-preset=\"blueprint\"] .c-lane { stroke-dasharray: 7 3; }\n svg[data-preset=\"blueprint\"] [data-node-id]:hover,\n svg[data-preset=\"blueprint\"] [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active][data-reach-active] [data-focus-selected][data-reach-origin] {\n filter: none;\n }\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-source],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n\n /* Dashed boundary variants */\n .c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }\n .c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }\n .c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }\n\n /* Live turns each edge into a small light show on one shared cycle: a comet\n (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,\n leaves a soft wake, and lands as a ripple on the target node. Original line\n language and markers remain static. Each edge's phase follows the authored\n step order — source-node rank, or chronological order in sequence\n diagrams — so the whole diagram ripples downstream instead of marching\n uniformly. Node entry is bounded to one pass per document, then a soft\n node glow follows the authored step order. */\n svg[data-animation=\"trace\"] {\n --flow-cycle: 6.4s;\n --flow-step-delay: 0.2s;\n --flow-halo-peak: 0.13;\n --flow-tail-peak: 0.34;\n --flow-head-peak: 0.95;\n --flow-wake-peak: 0.08;\n --flow-ripple-peak: 0.55;\n --flow-ripple-echo-peak: 0.22;\n }\n .ambient-edge-flow {\n fill: none;\n stroke: var(--arrow-emphasis);\n stroke-linecap: round;\n pointer-events: none;\n display: none;\n }\n .ambient-flow-wake {\n stroke-width: 3.2;\n stroke-dasharray: var(--flow-dasharray, none);\n animation-name: archify-flow-wake;\n }\n .ambient-flow-halo {\n stroke-width: 5;\n stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));\n animation-name: archify-cascade-halo;\n }\n .ambient-flow-tail {\n stroke-width: 2.4;\n stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));\n animation-name: archify-cascade-tail;\n }\n .ambient-flow-head {\n stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);\n stroke-width: 2.2;\n stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));\n animation-name: archify-cascade-head;\n }\n .ambient-flow-head.echo { --flow-echo-scale: 0.76; }\n .ambient-flow-tail.echo { --flow-echo-scale: 0.53; }\n .ambient-flow-ripple {\n stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, white);\n stroke-width: 2;\n animation-name: archify-flow-ripple;\n }\n .ambient-flow-ripple-echo {\n stroke-width: 1.2;\n animation-name: archify-flow-ripple-echo;\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) .ambient-edge-flow {\n display: inline;\n animation-duration: var(--flow-cycle, 6.4s);\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n animation-delay: var(--flow-delay, 0s);\n /* Without backwards fill a delayed layer would sit at its natural opacity\n (fully lit) until its phase arrives. */\n animation-fill-mode: backwards;\n }\n /* Each decorative flow follows its owning edge through tree visibility. */\n .ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }\n svg[data-preset=\"signal-flow\"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }\n svg[data-preset=\"blueprint\"] .ambient-edge-flow { stroke-linecap: square; }\n svg[data-preset=\"editorial\"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }\n /* On light canvases the cascade reads by saturation instead of bloom: the\n head and inner ripple mix toward ink instead of white, and every layer's\n peak rises so the wave survives the bright background. */\n html[data-theme=\"light\"] svg[data-animation=\"trace\"] {\n --flow-halo-peak: 0.22;\n --flow-tail-peak: 0.5;\n --flow-wake-peak: 0.13;\n --flow-ripple-echo-peak: 0.3;\n }\n html[data-theme=\"light\"] .ambient-flow-head {\n stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);\n stroke-width: 2.4;\n }\n html[data-theme=\"light\"] .ambient-flow-ripple {\n stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);\n }\n html[data-ambient-entry=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n transform-box: fill-box;\n transform-origin: center;\n animation: archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-entry=\"running\"] svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-entry=\"running\"] svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-entry=\"running\"] svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n /* Node glow follows each node's authored step on the shared cycle; it does\n not track incoming edge arrivals. During the bounded entrance all three\n animations run; the entrance pulse is listed after the repeating glow and\n wins on filter until it completes. */\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s));\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),\n archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry=\"running\"] svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),\n archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry=\"running\"] svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),\n archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry=\"running\"] svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),\n archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n @keyframes archify-flow-wake {\n 0% { opacity: 0; }\n 24% { opacity: var(--flow-wake-peak, 0.08); }\n 62% { opacity: var(--flow-wake-peak, 0.08); }\n 82%, 100% { opacity: 0; }\n }\n @keyframes archify-cascade-halo {\n 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }\n 4% { opacity: var(--flow-halo-peak, 0.13); }\n 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }\n 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }\n 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }\n 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }\n }\n @keyframes archify-cascade-tail {\n 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }\n 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }\n 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }\n 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }\n 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }\n 68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }\n }\n @keyframes archify-cascade-head {\n 0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }\n 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }\n 15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }\n 48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }\n 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }\n 68%, 100% { stroke-dashoffset: 0; opacity: 0; }\n }\n @keyframes archify-flow-ripple {\n 0%, 60% { r: 2px; opacity: 0; }\n 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }\n 78%, 100% { r: 17px; opacity: 0; }\n }\n @keyframes archify-flow-ripple-echo {\n 0%, 63% { r: 2px; opacity: 0; }\n 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }\n 84%, 100% { r: 26px; opacity: 0; }\n }\n @keyframes archify-node-receive {\n 0%, 100% { filter: var(--ambient-node-base-filter, none); }\n 5%, 12% { filter: var(--ambient-node-base-filter,) drop-shadow(0 0 9px var(--arrow-emphasis)); }\n }\n @keyframes archify-node-enter {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @media print {\n .ambient-edge-flow { display: none !important; animation: none !important; }\n svg[data-animation=\"trace\"] [data-animate=\"node\"] { animation: none !important; }\n }\n @keyframes archify-node-pulse {\n 0%, 72%, 100% { filter: none; stroke-width: 1.5; }\n 18%, 36% {\n filter: drop-shadow(0 0 8px var(--arrow-emphasis));\n stroke-width: 2.4;\n }\n }\n @keyframes archify-blueprint-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }\n }\n @keyframes archify-editorial-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }\n }\n @keyframes archify-signal-scan {\n 0%, 18% { opacity: 1; transform: translateX(-70%); }\n 70% { opacity: 1; transform: translateX(70%); }\n 100% { opacity: 0; transform: translateX(70%); }\n }\n @keyframes archify-radar-live {\n 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }\n 55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }\n }\n\n @keyframes archify-intent-trace-flow {\n 0% { opacity: 0.28; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.94; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-route-probe-flow {\n 0% { stroke-dashoffset: 0; opacity: 0.96; }\n 78% { stroke-dashoffset: -1; opacity: 0.96; }\n 100% { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.58; }\n }\n @keyframes archify-route-journey-flow {\n 0% { opacity: 0.16; stroke-dashoffset: 0; }\n 14%, 76% { opacity: 1; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-semantic-lens-flow {\n 0% { opacity: 0.2; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.9; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-pulse {\n 0% { opacity: 0.18; stroke-dashoffset: 0; }\n 10%, 76% { opacity: 0.98; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-token-life {\n 0%, 7% { opacity: 0; }\n 13%, 82% { opacity: 1; }\n 100% { opacity: 0; }\n }\n\n @keyframes archify-share-cue-enter {\n from { opacity: 0; transform: translate(-50%, -0.45rem); }\n to { opacity: 1; transform: translate(-50%, 0); }\n }\n @keyframes archify-share-cue-pulse {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 50% { opacity: 0.48; transform: scale(0.78); }\n }\n @media (prefers-reduced-motion: reduce) {\n .ambient-edge-flow { display: none !important; animation: none !important; }\n html[data-preset=\"signal-flow\"] .diagram-container::before {\n animation: none !important;\n }\n .pulse-dot { animation: none !important; }\n .motion-control-dot { animation: none !important; }\n svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n .intent-trace-flow,\n .route-probe-flow,\n .semantic-lens,\n .diagram-guide,\n .overview-map-live { animation: none !important; }\n \n .intent-trace-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n .route-probe-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.78;\n }\n .route-journey-overlay { display: none !important; }\n .semantic-lens-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-width: 2.2;\n opacity: 0.34;\n filter: none;\n }\n .relationship-pulse-overlay { display: none !important; }\n svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }\n }\n ";+ const exportCss = "\n /* ==========================================================\n THEME VARIABLES — switch by toggling [data-theme] on \u003chtml\u003e\n ========================================================== */\n :root,\n [data-theme=\"dark\"] {\n --bg: #020617;\n --grid: #1e293b;\n --canvas-dot: rgba(148, 163, 184, 0.16);\n --text: #ffffff;\n --text-muted: #94a3b8;\n --text-dim: #475569;\n /* UI chrome and menu hints need more contrast than SVG .t-dim accents */\n --text-faint: #7d8da1;\n\n --panel: rgba(15, 23, 42, 0.5);\n --panel-border: #1e293b;\n --lane-fill: rgba(15, 23, 42, 0.22);\n --lane-stroke: #334155;\n\n --arrow: #64748b;\n --arrow-emphasis: #34d399;\n\n /* Opaque mask color used behind semi-transparent component fills\n so the arrows drawn underneath are properly hidden. */\n --mask: #0f172a;\n\n --frontend-fill: rgba(8, 51, 68, 0.4);\n --frontend-stroke: #22d3ee;\n --backend-fill: rgba(6, 78, 59, 0.4);\n --backend-stroke: #34d399;\n --database-fill: rgba(76, 29, 149, 0.4);\n --database-stroke: #a78bfa;\n --cloud-fill: rgba(120, 53, 15, 0.3);\n --cloud-stroke: #fbbf24;\n --security-fill: rgba(136, 19, 55, 0.4);\n --security-stroke: #fb7185;\n --messagebus-fill: rgba(251, 146, 60, 0.3);\n --messagebus-stroke:#fb923c;\n --external-fill: rgba(30, 41, 59, 0.5);\n --external-stroke: #94a3b8;\n\n --toolbar-bg: rgba(15, 23, 42, 0.8);\n --toolbar-border: #334155;\n --toolbar-text: #e2e8f0;\n --toolbar-hover: rgba(15, 23, 42, 0.95);\n --toolbar-menu-bg: #0f172a;\n }\n\n [data-theme=\"light\"] {\n --bg: #f4f5f7;\n --grid: #e9edf2;\n --canvas-dot: #e2e7ec;\n --text: #111827;\n --text-muted: #5b6474;\n --text-dim: #9aa3b2;\n --text-faint: #6b7280;\n\n --panel: #ffffff;\n --panel-border: #e5e7eb;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n\n --mask: #ffffff;\n\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke: #ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n\n --toolbar-bg: rgba(255, 255, 255, 0.92);\n --toolbar-border: #cbd5e1;\n --toolbar-text: #334155;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #ffffff;\n }\n\n /* ==========================================================\n SIGNAL FLOW — an opt-in, motion-forward visual preset.\n The variables also target a standalone exported SVG, whose\n root carries data-preset and data-theme directly.\n ========================================================== */\n [data-preset=\"signal-flow\"][data-theme=\"dark\"] {\n --bg: #030711;\n --grid: #15233a;\n --panel: rgba(6, 14, 28, 0.78);\n --panel-border: #1d3350;\n --lane-fill: rgba(9, 22, 40, 0.5);\n --lane-stroke: #2c4564;\n --text: #f5fbff;\n --text-muted: #9eb0c7;\n --text-dim: #52667f;\n --text-faint: #7890ad;\n --mask: #07101e;\n --frontend-fill: rgba(6, 182, 212, 0.14);\n --frontend-stroke: #67e8f9;\n --backend-fill: rgba(16, 185, 129, 0.14);\n --backend-stroke: #5eead4;\n --database-fill: rgba(139, 92, 246, 0.16);\n --database-stroke: #c4b5fd;\n --cloud-fill: rgba(245, 158, 11, 0.13);\n --cloud-stroke: #fcd34d;\n --security-fill: rgba(244, 63, 94, 0.13);\n --security-stroke: #fda4af;\n --messagebus-fill: rgba(249, 115, 22, 0.13);\n --messagebus-stroke: #fdba74;\n --external-fill: rgba(71, 85, 105, 0.24);\n --external-stroke: #a5b4c7;\n --arrow: #7890ad;\n --arrow-emphasis: #2dd4bf;\n --toolbar-bg: rgba(7, 16, 30, 0.86);\n --toolbar-border: #29415f;\n --toolbar-menu-bg: #07101e;\n }\n\n [data-preset=\"signal-flow\"][data-theme=\"light\"] {\n --bg: #f4f9fc;\n --grid: #d4e5ee;\n --panel: rgba(255, 255, 255, 0.82);\n --panel-border: #bfd5e2;\n --lane-fill: rgba(232, 243, 248, 0.62);\n --lane-stroke: #a9c5d5;\n --text: #102638;\n --text-muted: #587287;\n --text-dim: #8aa2b4;\n --text-faint: #668397;\n --mask: #ffffff;\n --frontend-fill: rgba(6, 182, 212, 0.09);\n --frontend-stroke: #0789a1;\n --backend-fill: rgba(5, 150, 105, 0.09);\n --backend-stroke: #087f69;\n --database-fill: rgba(124, 58, 237, 0.09);\n --database-stroke: #7254c7;\n --cloud-fill: rgba(217, 119, 6, 0.08);\n --cloud-stroke: #b9670b;\n --security-fill: rgba(225, 29, 72, 0.08);\n --security-stroke: #c53a59;\n --messagebus-fill: rgba(234, 88, 12, 0.08);\n --messagebus-stroke: #c65f27;\n --external-fill: rgba(100, 116, 139, 0.1);\n --external-stroke: #607a8c;\n --arrow: #7b97aa;\n --arrow-emphasis: #0d9488;\n }\n\n /* ==========================================================\n BLUEPRINT — a review-first drafting preset for deployment,\n infrastructure, and technical design documentation. It keeps\n the same semantic palette and geometry while trading glow for\n precise grid contrast, squared materials, and drafting marks.\n ========================================================== */\n [data-preset=\"blueprint\"][data-theme=\"dark\"] {\n --bg: #06131f;\n --grid: #17425a;\n --panel: rgba(7, 27, 43, 0.9);\n --panel-border: #27627f;\n --lane-fill: rgba(10, 43, 66, 0.36);\n --lane-stroke: #34799a;\n --text: #e3f6ff;\n --text-muted: #91b8ca;\n --text-dim: #557e92;\n --text-faint: #739caf;\n --mask: #0a2031;\n --frontend-fill: rgba(26, 157, 193, 0.14);\n --frontend-stroke: #66d9ef;\n --backend-fill: rgba(31, 155, 124, 0.13);\n --backend-stroke: #69dfbd;\n --database-fill: rgba(120, 105, 196, 0.14);\n --database-stroke: #b4a8ff;\n --cloud-fill: rgba(197, 145, 43, 0.13);\n --cloud-stroke: #ffd166;\n --security-fill: rgba(199, 76, 104, 0.13);\n --security-stroke: #ff8da1;\n --messagebus-fill: rgba(207, 112, 49, 0.13);\n --messagebus-stroke: #ffad66;\n --external-fill: rgba(84, 119, 139, 0.18);\n --external-stroke: #a7cad9;\n --arrow: #78a3b7;\n --arrow-emphasis: #64dfc1;\n --toolbar-bg: rgba(7, 28, 45, 0.92);\n --toolbar-border: #34799a;\n --toolbar-text: #d8f3ff;\n --toolbar-hover: rgba(18, 58, 83, 0.95);\n --toolbar-menu-bg: #0a2031;\n }\n\n [data-preset=\"blueprint\"][data-theme=\"light\"] {\n --bg: #edf7fa;\n --grid: #b5d5e1;\n --panel: rgba(249, 253, 255, 0.94);\n --panel-border: #78aabd;\n --lane-fill: rgba(210, 232, 240, 0.42);\n --lane-stroke: #83b2c4;\n --text: #123344;\n --text-muted: #4e7486;\n --text-dim: #86a6b4;\n --text-faint: #668c9d;\n --mask: #f9fdff;\n --frontend-fill: rgba(8, 145, 178, 0.08);\n --frontend-stroke: #087f9c;\n --backend-fill: rgba(5, 128, 101, 0.08);\n --backend-stroke: #08755f;\n --database-fill: rgba(100, 75, 180, 0.08);\n --database-stroke: #6757a8;\n --cloud-fill: rgba(181, 120, 15, 0.08);\n --cloud-stroke: #a86609;\n --security-fill: rgba(190, 48, 80, 0.07);\n --security-stroke: #b32f50;\n --messagebus-fill: rgba(196, 81, 22, 0.07);\n --messagebus-stroke: #b65120;\n --external-fill: rgba(79, 112, 128, 0.08);\n --external-stroke: #506f7e;\n --arrow: #6d93a5;\n --arrow-emphasis: #087f69;\n --toolbar-bg: rgba(247, 252, 254, 0.94);\n --toolbar-border: #8ab5c5;\n --toolbar-text: #294f61;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #f9fdff;\n }\n\n /* ==========================================================\n EDITORIAL — a warm, publication-minded preset for design\n reviews, launch notes, and documentation. The diagram keeps\n the same semantic palette and exact geometry, but trades\n software chrome for paper, ink, ruled structure, and one\n restrained vermilion accent.\n ========================================================== */\n [data-preset=\"editorial\"][data-theme=\"dark\"] {\n --bg: #181611;\n --grid: #39342a;\n --panel: rgba(35, 31, 24, 0.96);\n --panel-border: #625a4a;\n --lane-fill: rgba(52, 46, 35, 0.46);\n --lane-stroke: #726957;\n --text: #f4eddf;\n --text-muted: #b9ae9b;\n --text-dim: #776e60;\n --text-faint: #9d917e;\n --mask: #231f18;\n --frontend-fill: rgba(43, 133, 142, 0.16);\n --frontend-stroke: #7fc6c7;\n --backend-fill: rgba(63, 132, 92, 0.16);\n --backend-stroke: #8fc29e;\n --database-fill: rgba(117, 91, 141, 0.17);\n --database-stroke: #c0a4d0;\n --cloud-fill: rgba(170, 119, 49, 0.16);\n --cloud-stroke: #d8ad68;\n --security-fill: rgba(157, 69, 65, 0.17);\n --security-stroke: #df9085;\n --messagebus-fill: rgba(174, 79, 42, 0.16);\n --messagebus-stroke: #df946f;\n --external-fill: rgba(126, 115, 96, 0.18);\n --external-stroke: #b8ad99;\n --arrow: #948978;\n --arrow-emphasis: #dd6b3d;\n --toolbar-bg: rgba(35, 31, 24, 0.92);\n --toolbar-border: #625a4a;\n --toolbar-text: #eee5d5;\n --toolbar-hover: #302a20;\n --toolbar-menu-bg: #231f18;\n }\n\n [data-preset=\"editorial\"][data-theme=\"light\"] {\n --bg: #f2eee5;\n --grid: #d8d0c2;\n --panel: rgba(251, 248, 241, 0.97);\n --panel-border: #c4b9a6;\n --lane-fill: rgba(229, 221, 207, 0.42);\n --lane-stroke: #b8aa94;\n --text: #242018;\n --text-muted: #6f6658;\n --text-dim: #a09788;\n --text-faint: #817767;\n --mask: #fbf8f1;\n --frontend-fill: rgba(31, 117, 126, 0.09);\n --frontend-stroke: #287e84;\n --backend-fill: rgba(42, 119, 75, 0.09);\n --backend-stroke: #397b53;\n --database-fill: rgba(105, 75, 130, 0.09);\n --database-stroke: #765d86;\n --cloud-fill: rgba(157, 103, 31, 0.1);\n --cloud-stroke: #9a671f;\n --security-fill: rgba(153, 58, 52, 0.09);\n --security-stroke: #9e463f;\n --messagebus-fill: rgba(182, 70, 27, 0.09);\n --messagebus-stroke: #ad4b25;\n --external-fill: rgba(101, 91, 75, 0.09);\n --external-stroke: #746b5e;\n --arrow: #8a806f;\n --arrow-emphasis: #bb4c23;\n --toolbar-bg: rgba(251, 248, 241, 0.94);\n --toolbar-border: #c4b9a6;\n --toolbar-text: #40392f;\n --toolbar-hover: #fffdf8;\n --toolbar-menu-bg: #fbf8f1;\n }\n\n * { margin: 0; padding: 0; box-sizing: border-box; }\n\n body {\n --archify-page-top: 2rem;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n background: var(--bg);\n min-height: 100vh;\n padding: var(--archify-page-top) 2rem 2rem;\n color: var(--text);\n /* Theme surfaces change together; animating the page background leaves it\n visibly out of sync with the SVG and panel for the first 200ms. */\n }\n\n html[data-preset=\"signal-flow\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);\n background-attachment: fixed;\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);\n }\n html[data-preset=\"blueprint\"] body {\n background-image:\n linear-gradient(var(--grid) 1px, transparent 1px),\n linear-gradient(90deg, var(--grid) 1px, transparent 1px);\n background-size: 32px 32px;\n background-position: -1px -1px;\n background-attachment: fixed;\n }\n html[data-preset=\"editorial\"] body {\n background-image:\n linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),\n repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);\n background-attachment: fixed;\n }\n\n /* Gallery/embed mode keeps the generated artifact as the source of truth\n while presenting only its diagram surface inside a proof card. */\n html[data-embed=\"true\"] body {\n min-height: 0;\n padding: 0;\n overflow: hidden;\n background: var(--bg);\n background-image: none;\n }\n html[data-embed=\"true\"] .toolbar,\n html[data-embed=\"true\"] .header,\n html[data-embed=\"true\"] .cards,\n html[data-embed=\"true\"] .diagram-nav,\n html[data-embed=\"true\"] .overview-map,\n html[data-embed=\"true\"] .focus-chip,\n html[data-embed=\"true\"] .route-probe,\n html[data-embed=\"true\"] .semantic-lens,\n html[data-embed=\"true\"] .diagram-guide,\n html[data-embed=\"true\"] .node-finder,\n html[data-embed=\"true\"] .node-outline { display: none !important; }\n html[data-embed=\"true\"] .container { max-width: none; }\n html[data-embed=\"true\"] .diagram-container {\n padding: 0.5rem;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n html[data-embed=\"true\"] .diagram-container svg { min-width: 0; }\n\n /* Presentation Stage is a viewer-only layer: it gives the live diagram\n the viewport while keeping guided views, theme, focus, and exports real.\n Embed mode wins when both query parameters are present. */\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body {\n --archify-page-top: 1rem;\n height: 100dvh;\n min-height: 0;\n padding: 1rem;\n overflow: hidden;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n width: 100%;\n max-width: none;\n height: calc(100dvh - 2rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n flex: none;\n min-width: 0;\n margin: 0;\n padding-right: 23rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row { margin-bottom: 0.25rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n justify-content: center;\n min-height: 0;\n padding: 0.75rem;\n padding-bottom: calc(0.75rem + var(--archify-nav-reserve));\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container \u003e svg {\n flex: 1 1 auto;\n height: 100%;\n min-height: 0;\n width: 100%;\n min-width: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .cards { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) #btn-present {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n\n /* The reader owns only the outer scale. Compact automatic sequences fit at\n their authored text size or larger. Long sequences and waterfall rows\n favor reading width and page scroll; other diagrams keep height fitting.\n Small automatic canvases retain a modest scale inside a usable shell.\n Every strategy preserves the authored SVG/viewBox and semantic geometry. */\n .container {\n width: 100%;\n max-width: var(--archify-reader-width, 1440px);\n margin: 0 auto;\n }\n html[data-reader-area=\"true\"] .diagram-container {\n min-height: var(--archify-diagram-min-height);\n display: flex;\n align-items: center;\n }\n html[data-reader-area=\"true\"] .diagram-container \u003e svg { flex-shrink: 0; }\n /* The original SVG legend can use the outer corner while the capped or fitted\n diagram stays centered. The container still clips all outer paint. */\n .diagram-container:has([data-reader-legend-corner]) \u003e svg { overflow: visible; }\n .diagram-container [data-reader-legend-corner] {\n transform-origin: 0 0;\n transform-box: view-box;\n transform: var(--archify-reader-legend-transform);\n }\n html[data-reader-narrow=\"true\"]:not([data-present=\"true\"]) .diagram-container \u003e svg {\n min-width: 0;\n max-width: var(--archify-diagram-max-width);\n margin-inline: auto;\n }\n @media (min-width: 768px) and (max-height: 920px) {\n .header { margin-bottom: 1rem; }\n .diagram-container { padding: 1rem; }\n .cards { margin-top: 1rem; }\n .card { padding: 1rem; }\n }\n\n .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }\n\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 29.5rem; }\n\n .header-row {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n min-height: 2.75rem;\n margin-bottom: 0.25rem;\n }\n\n .pulse-dot {\n flex: none;\n width: 10px;\n height: 10px;\n background: var(--frontend-stroke);\n border-radius: 50%;\n box-shadow: 0 0 0 4px color-mix(in srgb, var(--frontend-stroke) 16%, transparent);\n animation: none;\n }\n\n html[data-motion-capable=\"true\"] .pulse-dot { animation: pulse 2s infinite; }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n h1 {\n font-size: 1.5rem;\n font-weight: 650;\n line-height: 1.25;\n letter-spacing: -0.015em;\n }\n\n .subtitle {\n color: var(--text-muted);\n font-size: 0.875rem;\n line-height: 1.55;\n margin-left: 1.375rem;\n }\n\n html[data-preset=\"signal-flow\"] .header-row::after {\n content: attr(data-preset-badge-signal-flow);\n flex: none;\n margin-left: 0.25rem;\n color: var(--frontend-stroke);\n border: 1px solid var(--frontend-stroke);\n border-radius: 999px;\n padding: 0.28rem 0.6rem;\n font-size: 0.625rem;\n letter-spacing: 0.12em;\n opacity: 0.82;\n box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);\n white-space: nowrap;\n }\n\n html[data-preset=\"blueprint\"] .pulse-dot {\n width: 10px;\n height: 10px;\n border: 1px solid var(--frontend-stroke);\n border-radius: 1px;\n background: transparent;\n box-shadow: inset 0 0 0 2px var(--bg);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n content: attr(data-preset-badge-blueprint);\n flex: none;\n margin-left: 0.25rem;\n padding: 0.28rem 0.55rem;\n border-top: 1px solid var(--frontend-stroke);\n border-bottom: 1px solid var(--frontend-stroke);\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.14em;\n white-space: nowrap;\n }\n\n html[data-preset=\"editorial\"] h1,\n html[data-preset=\"editorial\"] .card h3 {\n font-family: Georgia, 'Times New Roman', 'Songti SC', STSong, serif;\n letter-spacing: -0.02em;\n }\n html[data-preset=\"editorial\"] h1 { font-size: 1.72rem; font-weight: 600; }\n html[data-preset=\"editorial\"] .pulse-dot {\n width: 9px;\n height: 9px;\n border: 1px solid var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n content: attr(data-preset-badge-editorial);\n flex: none;\n margin-left: 0.25rem;\n padding: 0.32rem 0 0.24rem;\n border-bottom: 2px solid var(--arrow-emphasis);\n color: var(--arrow-emphasis);\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.625rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.08em;\n white-space: nowrap;\n }\n\n .diagram-container {\n --archify-nav-reserve: 0px;\n background: var(--panel);\n border-radius: 1rem;\n border: 1px solid var(--panel-border);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -20px rgba(15, 23, 42, 0.18);\n padding: 1.5rem;\n padding-bottom: calc(1.5rem + var(--archify-nav-reserve));\n overflow: hidden;\n position: relative;\n }\n\n html[data-preset=\"signal-flow\"] .diagram-container {\n position: relative;\n overflow: hidden;\n background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .diagram-container {\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);\n }\n html[data-preset=\"blueprint\"] .diagram-container {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background: var(--panel);\n box-shadow:\n inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),\n 0 18px 48px rgba(0, 0, 0, 0.16);\n }\n html[data-preset=\"blueprint\"] .diagram-container::after {\n content: \"\";\n position: absolute;\n z-index: 10;\n inset: 0.7rem;\n pointer-events: none;\n background:\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;\n opacity: 0.58;\n }\n html[data-preset=\"editorial\"] .diagram-container {\n overflow: hidden;\n border-color: var(--panel-border);\n border-radius: 0.38rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),\n var(--panel);\n box-shadow:\n 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),\n 0 18px 48px color-mix(in srgb, #000 19%, transparent);\n }\n html[data-preset=\"editorial\"] .diagram-container::after {\n position: absolute;\n z-index: 10;\n top: 0.72rem;\n right: 1.25rem;\n padding: 0.2rem 0.52rem;\n border: 1px solid var(--panel-border);\n background: var(--panel);\n color: var(--arrow-emphasis);\n content: attr(data-preset-badge-editorial-plate);\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.52rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.09em;\n pointer-events: none;\n }\n html[data-embed=\"true\"][data-preset=\"editorial\"] .diagram-container::after { display: none; }\n html[data-motion-capable=\"true\"][data-preset=\"signal-flow\"][data-ambient-entry=\"running\"] .diagram-container::before {\n content: \"\";\n position: absolute;\n inset: 0;\n pointer-events: none;\n background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);\n transform: translateX(-70%);\n animation: archify-signal-scan 4.8s ease-in-out 1 both;\n }\n\n /* Motion Governor gives the reader a real static state and gives the\n strongest semantic action the only motion budget. Atmosphere resets to\n its authored base instead of freezing mid-cycle. Static artifacts never\n start a decorative pulse or scan. */\n html:not([data-motion-capable=\"true\"]) svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html:not([data-motion-capable=\"true\"]) svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .pulse-dot,\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion=\"still\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-motion-owner] .pulse-dot,\n html[data-motion-owner] .diagram-container::before,\n html[data-motion-owner] svg[data-animation=\"trace\"] [data-animate],\n html[data-embed=\"true\"] .pulse-dot,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .pulse-dot,\n html[data-share-playback=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] .pulse-dot,\n html[data-document-hidden=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-motion=\"still\"] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n html[data-motion-owner] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n html[data-embed=\"true\"] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n html[data-share-playback=\"true\"] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n html[data-document-hidden=\"true\"] svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion-owner] .diagram-container::before,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .diagram-container::before {\n opacity: 0;\n }\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow,\n html[data-motion=\"still\"] .route-journey-flow,\n html[data-motion=\"still\"] .semantic-lens-flow,\n html[data-motion=\"still\"] .diagram-guide,\n html[data-motion=\"still\"] .overview-map-live,\n html[data-document-hidden=\"true\"] .intent-trace-flow,\n html[data-document-hidden=\"true\"] .route-probe-flow,\n html[data-document-hidden=\"true\"] .route-journey-flow,\n html[data-document-hidden=\"true\"] .semantic-lens-flow,\n html[data-document-hidden=\"true\"] .diagram-guide,\n html[data-document-hidden=\"true\"] .overview-map-live {\n animation: none !important;\n }\n\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n html[data-motion=\"still\"] .route-journey-overlay,\n html[data-document-hidden=\"true\"] .route-journey-overlay { display: none !important; }\n html[data-motion=\"still\"] .relationship-pulse-overlay { display: none !important; }\n\n html[data-motion=\"still\"] svg [data-node-id],\n html[data-motion=\"still\"] svg [data-edge-from],\n html[data-motion=\"still\"] svg [data-detail],\n html[data-motion=\"still\"] svg [data-detail-anchor],\n html[data-motion=\"still\"] svg [data-legend-hit],\n html[data-motion=\"still\"] svg {\n transition: none !important;\n }\n\n svg {\n font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;\n width: 100%;\n min-width: min(900px, 100%);\n display: block;\n transform-origin: 0 0;\n transition: transform 0.18s ease;\n }\n\n .diagram-container.is-camera-moving svg {\n transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-container.is-camera-transaction svg { transition: none; }\n .diagram-container.is-pannable { cursor: grab; }\n .diagram-container.is-panning { cursor: grabbing; user-select: none; }\n .diagram-container.is-panning svg { transition: none; }\n\n .diagram-nav {\n position: absolute;\n right: 1rem;\n bottom: 1rem;\n z-index: 12;\n translate: 0 calc(-1 * var(--archify-dock-lift, 0px));\n display: inline-flex;\n align-items: center;\n max-width: calc(100% - 2rem);\n padding: 0.25rem;\n gap: 0.0625rem;\n overflow-x: auto;\n border: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);\n border-radius: 0.75rem;\n background: color-mix(in srgb, var(--panel) 84%, transparent);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.28);\n backdrop-filter: blur(14px) saturate(1.2);\n scrollbar-width: none;\n }\n .diagram-nav::-webkit-scrollbar { display: none; }\n .diagram-nav button,\n .focus-chip button {\n border: 0;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .diagram-nav button {\n min-width: 2rem;\n height: 2rem;\n padding: 0 0.4rem;\n border-radius: 0.5rem;\n color: var(--text-muted);\n font-size: 0.75rem;\n font-weight: 500;\n letter-spacing: 0;\n transition: background 0.15s, color 0.15s;\n }\n .diagram-nav button:hover,\n .diagram-nav button:focus-visible {\n color: var(--text);\n background: color-mix(in srgb, var(--text) 6%, transparent);\n }\n .diagram-nav button:hover,\n .diagram-nav button:focus-visible,\n .focus-chip button:hover,\n .focus-chip button:focus-visible { background: var(--toolbar-hover); }\n .diagram-nav button:focus-visible,\n .focus-chip button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .diagram-nav button:disabled { opacity: 0.38; cursor: default; }\n /* The Guide stays on the ? shortcut; Map only earns dock space once the\n reader has zoomed past the full diagram (or opened it from the keyboard). */\n .diagram-nav button[hidden] { display: none; }\n .diagram-container:not(.is-pannable) #btn-overview-map:not([data-radar-requested]):not(:focus) { display: none; }\n .diagram-nav button:disabled:hover { background: transparent; }\n .diagram-nav #btn-route-probe,\n .diagram-nav #btn-overview-map,\n .diagram-nav #btn-semantic-lens {\n min-width: auto;\n padding-inline: 0.6rem;\n color: var(--text-muted);\n font-weight: 500;\n }\n .diagram-nav #btn-node-finder,\n .diagram-nav [data-view=\"out\"] {\n position: relative;\n margin-left: 0.375rem;\n }\n .diagram-nav #btn-node-finder::before,\n .diagram-nav [data-view=\"out\"]::before {\n position: absolute;\n top: 0.55rem;\n bottom: 0.55rem;\n left: -0.19rem;\n width: 1px;\n background: color-mix(in srgb, var(--panel-border) 90%, transparent);\n content: \"\";\n pointer-events: none;\n }\n .diagram-nav-icon {\n display: block;\n width: 0.95rem;\n height: 0.95rem;\n margin: auto;\n background: currentColor;\n -webkit-mask-position: center;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n }\n .diagram-nav-icon.find {\n -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\");\n 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\");\n }\n .diagram-nav-icon.guide {\n -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\");\n 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\");\n }\n .diagram-nav-icon.minus {\n -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\");\n 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\");\n }\n .diagram-nav-icon.plus {\n -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\");\n 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\");\n }\n .diagram-nav [data-view=\"reset\"] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.2rem;\n min-width: 3.1rem;\n padding-inline: 0.35rem;\n }\n .diagram-nav [data-view=\"reset\"][data-detail-visible] {\n min-width: 3.8rem;\n }\n .diagram-nav-detail {\n color: color-mix(in srgb, var(--toolbar-text) 52%, transparent);\n font-size: 0.44rem;\n font-weight: 700;\n line-height: 1;\n letter-spacing: 0.07em;\n }\n .diagram-nav-percent {\n color: var(--text-muted);\n font-size: 0.75rem;\n font-weight: 500;\n font-variant-numeric: tabular-nums;\n line-height: 1;\n }\n /* Mode buttons carry a small glyph so the dock reads as one icon language. */\n .diagram-nav #btn-route-probe,\n .diagram-nav #btn-overview-map,\n .diagram-nav #btn-semantic-lens {\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n padding-inline: 0.55rem 0.65rem;\n }\n .diagram-nav #btn-route-probe::before,\n .diagram-nav #btn-overview-map::before,\n .diagram-nav #btn-semantic-lens::before {\n flex: none;\n width: 0.95rem;\n height: 0.95rem;\n background: currentColor;\n content: \"\";\n opacity: 0.85;\n -webkit-mask: var(--nav-glyph) center / contain no-repeat;\n mask: var(--nav-glyph) center / contain no-repeat;\n }\n .diagram-nav #btn-route-probe { --nav-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='4.8' cy='14.8' r='2.2'/%3E%3Ccircle cx='15.2' cy='5.2' r='2.2'/%3E%3Cpath d='M6.9 13.9c3.8-1.4 2.6-6.3 6.2-7.8'/%3E%3C/g%3E%3C/svg%3E\"); }\n .diagram-nav #btn-overview-map { --nav-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M2.8 5.4 7.4 3.5l5.2 2 4.6-1.9v11l-4.6 1.9-5.2-2-4.6 1.9z'/%3E%3Cpath d='M7.4 3.5v11M12.6 5.5v11'/%3E%3C/g%3E%3C/svg%3E\"); }\n .diagram-nav #btn-semantic-lens { --nav-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='10' cy='10' r='6.8'/%3E%3Ccircle cx='10' cy='10' r='2.6'/%3E%3C/g%3E%3C/svg%3E\"); }\n /* Zoom out / level / zoom in join into one stepper well. */\n .diagram-nav [data-view=\"out\"],\n .diagram-nav [data-view=\"reset\"],\n .diagram-nav [data-view=\"in\"] {\n position: relative;\n border-radius: 0;\n background: color-mix(in srgb, var(--panel-border) 38%, transparent);\n }\n .diagram-nav [data-view=\"out\"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }\n .diagram-nav [data-view=\"out\"]::before { display: none; }\n .diagram-nav [data-view=\"reset\"],\n .diagram-nav [data-view=\"in\"] { margin-left: -0.0625rem; }\n .diagram-nav [data-view=\"in\"] { border-radius: 0 0.5rem 0.5rem 0; }\n .diagram-nav [data-view=\"reset\"]::after,\n .diagram-nav [data-view=\"in\"]::after {\n position: absolute;\n top: 0.55rem;\n bottom: 0.55rem;\n left: 0;\n width: 1px;\n background: color-mix(in srgb, var(--panel-border) 75%, transparent);\n content: \"\";\n pointer-events: none;\n }\n .diagram-nav [data-view=\"out\"]:hover,\n .diagram-nav [data-view=\"reset\"]:hover,\n .diagram-nav [data-view=\"in\"]:hover { background: color-mix(in srgb, var(--panel-border) 60%, transparent); }\n .diagram-nav [data-view=\"out\"]:disabled,\n .diagram-nav [data-view=\"in\"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }\n .diagram-nav [data-view=\"out\"]:disabled:hover,\n .diagram-nav [data-view=\"in\"]:disabled:hover { background: color-mix(in srgb, var(--panel-border) 38%, transparent); }\n .diagram-nav [data-view=\"reset\"] { min-width: 3.25rem; }\n .diagram-container[data-camera-indicator=\"true\"] .diagram-nav-detail,\n .diagram-container[data-camera-indicator=\"true\"] .diagram-nav-percent { color: var(--frontend-stroke); }\n .diagram-nav #btn-diagram-guide[aria-expanded=\"true\"] {\n color: var(--cloud-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Radar is a deliberately simplified, viewer-only overview. It\n uses authored node bounds and the live camera viewport rather than\n cloning the canonical SVG, so IDs, filters, animation, and export state\n stay singular and deterministic. */\n .overview-map {\n position: absolute;\n right: 1rem;\n bottom: calc(4.15rem + var(--archify-nav-reserve));\n z-index: 12;\n width: 11.25rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n border-radius: 0.78rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .overview-map[hidden] { display: none; }\n .overview-map[data-docked=\"true\"] {\n position: fixed;\n right: var(--archify-radar-right, 1rem);\n top: var(--archify-radar-top, 1rem);\n bottom: auto;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: var(--archify-radar-left, 1rem);\n }\n html[data-preset=\"blueprint\"] .overview-map { border-radius: 0.28rem; }\n .overview-map-head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.45rem;\n min-height: 2.25rem;\n padding: 0.42rem 0.48rem 0.38rem 0.55rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);\n cursor: grab;\n touch-action: none;\n user-select: none;\n }\n .overview-map[data-panel-dragging=\"true\"] .overview-map-head { cursor: grabbing; }\n .overview-map[data-placement-invalid=\"true\"] {\n border-color: var(--security-stroke);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--security-stroke) 34%, transparent), 0 16px 42px rgba(0, 0, 0, 0.3);\n }\n .overview-map[data-compact=\"true\"] {\n width: 7.4rem;\n }\n .overview-map[data-compact=\"true\"] .overview-map-head {\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.24rem;\n min-height: 1.5rem;\n padding: 0.05rem 0.16rem 0.05rem 0.32rem;\n border-bottom: 0;\n }\n .overview-map[data-compact=\"true\"] .overview-map-live,\n .overview-map[data-compact=\"true\"] .overview-map-copy,\n .overview-map[data-compact=\"true\"] .overview-map-surface,\n .overview-map[data-compact=\"true\"] .overview-map-hint {\n display: none;\n }\n .overview-map[data-compact=\"true\"] .overview-map-expand { display: inline-flex; }\n .overview-map[data-compact=\"true\"] .overview-map-close {\n width: 1.15rem;\n height: 1.15rem;\n font-size: 0.72rem;\n }\n .overview-map-live {\n width: 0.42rem;\n height: 0.42rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);\n animation: archify-radar-live 2.4s ease-out infinite;\n }\n .overview-map-copy { min-width: 0; line-height: 1.1; }\n .overview-map-copy strong {\n display: block;\n overflow: hidden;\n color: var(--frontend-stroke);\n font-size: 0.59rem;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-copy small {\n display: block;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.52rem;\n letter-spacing: 0.04em;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-expand {\n display: none;\n align-items: center;\n justify-content: center;\n min-width: 0;\n height: 1.2rem;\n padding: 0 0.34rem;\n overflow: hidden;\n border: 0;\n border-radius: 0.3rem;\n background: transparent;\n color: var(--frontend-stroke);\n font: inherit;\n font-size: 0.49rem;\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n white-space: nowrap;\n cursor: pointer;\n }\n .overview-map-close {\n width: 1.55rem;\n height: 1.55rem;\n padding: 0;\n border: 0;\n border-radius: 0.34rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.9rem;\n cursor: pointer;\n }\n .overview-map-expand:hover,\n .overview-map-expand:focus-visible,\n .overview-map-close:hover,\n .overview-map-close:focus-visible { background: var(--toolbar-hover); }\n .overview-map-expand:focus-visible,\n .overview-map-close:focus-visible,\n .overview-map-surface:focus-visible,\n .overview-map-node:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .overview-map-surface {\n position: relative;\n height: 7rem;\n margin: 0.42rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);\n border-radius: 0.42rem;\n background:\n linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n color-mix(in srgb, var(--bg) 86%, transparent);\n background-size: 12px 12px;\n cursor: crosshair;\n touch-action: none;\n }\n html[data-preset=\"blueprint\"] .overview-map-surface { border-radius: 0.1rem; }\n .overview-map-surface \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n transform: none !important;\n transition: none !important;\n display: block;\n overflow: visible;\n }\n .overview-map-node {\n fill: var(--backend-stroke);\n fill-opacity: 0.52;\n stroke: var(--backend-stroke);\n stroke-opacity: 0.86;\n vector-effect: non-scaling-stroke;\n cursor: pointer;\n transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;\n }\n .overview-map-node[data-kind=\"frontend\"],\n .overview-map-node[data-kind=\"start\"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }\n .overview-map-node[data-kind=\"database\"],\n .overview-map-node[data-kind=\"success\"] { fill: var(--database-stroke); stroke: var(--database-stroke); }\n .overview-map-node[data-kind=\"cloud\"],\n .overview-map-node[data-kind=\"waiting\"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }\n .overview-map-node[data-kind=\"messagebus\"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }\n .overview-map-node[data-kind=\"security\"],\n .overview-map-node[data-kind=\"decision\"],\n .overview-map-node[data-kind=\"failure\"] { fill: var(--security-stroke); stroke: var(--security-stroke); }\n .overview-map-node[data-kind=\"external\"],\n .overview-map-node[data-kind=\"neutral\"] { fill: var(--external-stroke); stroke: var(--external-stroke); }\n .overview-map-node[data-radar-active=\"true\"],\n .overview-map-node:hover,\n .overview-map-node:focus-visible {\n fill-opacity: 0.92;\n stroke-width: 2.2;\n filter: drop-shadow(0 0 3px currentColor);\n }\n .overview-map-viewport {\n fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));\n }\n .overview-map-hint {\n display: flex;\n justify-content: space-between;\n gap: 0.5rem;\n padding: 0 0.52rem 0.46rem;\n color: var(--text-faint);\n font-size: 0.49rem;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n }\n .diagram-nav #btn-overview-map[aria-expanded=\"true\"] {\n color: var(--frontend-stroke);\n background: color-mix(in srgb, var(--frontend-stroke) 11%, transparent);\n }\n .overview-map-feedback {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 13;\n max-width: min(16rem, calc(100% - 2rem));\n padding: 0.38rem 0.55rem;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n border-radius: 0.5rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);\n font-size: 0.52rem;\n line-height: 1.35;\n pointer-events: none;\n }\n .overview-map-feedback[hidden] { display: none; }\n .focus-chip[data-radar-yielded=\"true\"] { display: none !important; }\n .diagram-nav #btn-route-probe[aria-pressed=\"true\"] {\n color: var(--backend-stroke);\n background: color-mix(in srgb, var(--backend-stroke) 11%, transparent);\n }\n .diagram-nav #btn-semantic-lens[aria-expanded=\"true\"],\n .diagram-nav #btn-semantic-lens[aria-pressed=\"true\"] {\n color: var(--database-stroke);\n background: color-mix(in srgb, var(--database-stroke) 11%, transparent);\n }\n\n /* Semantic Lens turns the compiled node-kind palette into an analytical\n legend. One kind reveals its real traffic; two kinds compare only their\n direct authored relationships. Geometry and the canonical SVG stay put. */\n .semantic-lens {\n position: absolute;\n right: 1rem;\n bottom: calc(4.15rem + var(--archify-nav-reserve));\n z-index: 24;\n width: min(20rem, calc(100% - 2rem));\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);\n backdrop-filter: blur(18px);\n animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .semantic-lens[hidden] { display: none; }\n .semantic-lens[data-dock-side=\"left\"] { left: 1rem; right: auto; }\n .semantic-lens[data-dock-side=\"right\"] { left: auto; right: 1rem; }\n html[data-preset=\"blueprint\"] .semantic-lens { border-radius: 0.28rem; }\n .semantic-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.72rem 0.78rem 0.62rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .semantic-lens-eyebrow {\n display: block;\n color: var(--database-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .semantic-lens-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.82rem;\n letter-spacing: -0.02em;\n }\n .semantic-lens-close {\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .semantic-lens-close:hover,\n .semantic-lens-close:focus-visible { background: var(--toolbar-hover); }\n .semantic-lens-instruction {\n margin: 0;\n padding: 0.52rem 0.78rem 0.48rem;\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-kinds {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.3rem;\n max-height: min(15rem, 40vh);\n padding: 0 0.5rem 0.5rem;\n overflow-y: auto;\n scrollbar-width: thin;\n }\n .semantic-lens-kind {\n --lens-color: var(--external-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.42rem;\n min-width: 0;\n min-height: 2.15rem;\n padding: 0.35rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));\n border-radius: 0.45rem;\n background: color-mix(in srgb, var(--panel) 76%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;\n }\n html[data-preset=\"blueprint\"] .semantic-lens-kind { border-radius: 0.12rem; }\n .semantic-lens-kind[data-kind=\"frontend\"],\n .semantic-lens-kind[data-kind=\"start\"] { --lens-color: var(--frontend-stroke); }\n .semantic-lens-kind[data-kind=\"backend\"],\n .semantic-lens-kind[data-kind=\"active\"] { --lens-color: var(--backend-stroke); }\n .semantic-lens-kind[data-kind=\"database\"],\n .semantic-lens-kind[data-kind=\"success\"] { --lens-color: var(--database-stroke); }\n .semantic-lens-kind[data-kind=\"cloud\"],\n .semantic-lens-kind[data-kind=\"waiting\"] { --lens-color: var(--cloud-stroke); }\n .semantic-lens-kind[data-kind=\"messagebus\"] { --lens-color: var(--messagebus-stroke); }\n .semantic-lens-kind[data-kind=\"security\"],\n .semantic-lens-kind[data-kind=\"decision\"],\n .semantic-lens-kind[data-kind=\"failure\"] { --lens-color: var(--security-stroke); }\n .semantic-lens-kind:hover,\n .semantic-lens-kind:focus-visible,\n .semantic-lens-kind[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));\n background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));\n }\n .semantic-lens-kind:focus-visible,\n .semantic-lens-close:focus-visible,\n .semantic-lens-actions button:focus-visible {\n outline: 2px solid var(--database-stroke);\n outline-offset: 1px;\n }\n .semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }\n .semantic-lens-swatch {\n width: 0.48rem;\n height: 0.48rem;\n border-radius: 50%;\n background: var(--lens-color);\n box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);\n }\n .semantic-lens-kind strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.61rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-lens-kind em {\n color: var(--lens-color);\n font-size: 0.54rem;\n font-style: normal;\n font-weight: 800;\n }\n .semantic-lens-status {\n min-height: 2.5rem;\n margin: 0;\n padding: 0.55rem 0.78rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }\n .semantic-lens-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.28rem;\n padding: 0 0.62rem 0.62rem;\n }\n .semantic-lens-actions button {\n min-height: 1.8rem;\n padding: 0.28rem 0.48rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.56rem;\n cursor: pointer;\n }\n .semantic-lens-actions button:hover { background: var(--toolbar-hover); }\n .semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }\n @keyframes archify-lens-in {\n from { opacity: 0; transform: translateY(5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n /* Route Probe answers a reader question over the compiled semantic graph:\n choose two stable nodes and reveal the shortest authored directed route.\n The receipt and signal live entirely in the viewer layer. */\n .route-probe {\n position: absolute;\n left: 1rem;\n bottom: calc(1rem + var(--archify-nav-reserve));\n z-index: 12;\n width: min(46rem, calc(100% - 25rem));\n min-width: 18rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.75rem;\n }\n .route-probe[hidden] { display: none; }\n /* Picking needs one line of guidance, not a wide empty card; the panel\n widens only when there is a traced route to show. */\n .route-probe:not([data-state=\"result\"]) { width: min(22rem, calc(100% - 2rem)); min-width: 0; }\n .route-probe-path:has(\u003e .route-probe-placeholder:only-child) { display: none; }\n .route-probe[data-route-dock=\"top\"] {\n top: 1rem;\n bottom: auto;\n }\n html[data-preset=\"blueprint\"] .route-probe { border-radius: 0.25rem; }\n .route-probe-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.65rem;\n padding: 0.625rem 0.75rem 0.5rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);\n }\n .route-probe-copy { min-width: 0; }\n .route-probe-eyebrow {\n display: block;\n color: var(--backend-stroke);\n font-size: 0.6875rem;\n font-weight: 600;\n letter-spacing: 0.02em;\n }\n .route-probe-title {\n display: block;\n margin-top: 0.14rem;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.875rem;\n font-weight: 600;\n line-height: 1.3;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .route-probe-actions { display: flex; gap: 0.2rem; }\n .route-probe button {\n min-height: 1.55rem;\n padding: 0.25rem 0.42rem;\n border: 0;\n border-radius: 0.36rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .route-probe button:hover,\n .route-probe button:focus-visible { background: var(--toolbar-hover); }\n .route-probe button:focus-visible {\n outline: 2px solid var(--backend-stroke);\n outline-offset: 1px;\n }\n .route-probe-copy-link { color: var(--frontend-stroke) !important; }\n .route-probe-find { color: var(--backend-stroke) !important; }\n .route-probe-copy-link[hidden] { display: none; }\n .route-probe-find[hidden] { display: none; }\n .route-probe-path {\n display: flex;\n align-items: center;\n min-height: 2.2rem;\n padding: 0.42rem 0.58rem 0.24rem;\n overflow-x: auto;\n scrollbar-width: thin;\n white-space: nowrap;\n }\n .route-probe-node,\n .route-probe button.route-probe-node {\n flex: none;\n max-width: 9.5rem;\n overflow: hidden;\n min-height: 1.75rem !important;\n padding: 0.22rem 0.38rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));\n border-radius: 999px;\n background: color-mix(in srgb, var(--backend-fill) 52%, transparent);\n color: var(--text);\n font-size: 0.56rem;\n font-weight: 700;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .route-probe-node[data-endpoint=\"start\"] {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n .route-probe-node[data-endpoint=\"end\"] {\n border-color: var(--security-stroke);\n color: var(--security-stroke);\n }\n .route-probe-node[data-route-journey-state=\"past\"] { opacity: 0.66; }\n .route-probe-node[data-route-journey-state=\"future\"] { opacity: 0.48; }\n .route-probe-node[aria-current=\"step\"] {\n border-color: var(--backend-stroke);\n background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));\n color: var(--text);\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--backend-stroke) 42%, transparent), 0 0 14px color-mix(in srgb, var(--backend-stroke) 34%, transparent);\n opacity: 1;\n }\n html[data-preset=\"blueprint\"] .route-probe-node[aria-current=\"step\"] {\n border-style: double;\n border-width: 3px;\n border-radius: 0.2rem;\n box-shadow: none;\n }\n .route-probe-arrow {\n flex: none;\n padding: 0 0.28rem;\n color: var(--text-faint);\n font-size: 0.65rem;\n }\n .route-probe-placeholder {\n color: var(--text-faint);\n font-size: 0.75rem;\n }\n .route-probe-status {\n display: block;\n min-height: 1.45rem;\n padding: 0.5rem 0.75rem 0.625rem;\n color: var(--text-muted, var(--text-faint));\n font-size: 0.75rem;\n line-height: 1.45;\n }\n .route-journey-controls {\n display: grid;\n grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);\n justify-content: start;\n gap: 0.22rem;\n padding: 0.08rem 0.58rem 0.28rem;\n }\n .route-journey-controls[hidden] { display: none; }\n .route-journey-controls button {\n min-height: 1.8rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);\n font-size: 0.54rem;\n font-weight: 700;\n }\n .route-journey-controls button:disabled {\n cursor: default;\n opacity: 0.34;\n }\n .route-journey-play { color: var(--backend-stroke) !important; }\n .route-journey-overview { color: var(--frontend-stroke) !important; }\n .route-journey-controls[data-playing=\"true\"] .route-journey-play {\n border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 62%, transparent);\n }\n .route-probe[data-state=\"error\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));\n }\n .route-probe[data-state=\"error\"] .route-probe-status { color: var(--security-stroke); }\n\n .focus-chip {\n position: absolute;\n left: 1rem;\n top: 1rem;\n z-index: 12;\n display: block;\n width: min(22rem, calc(100% - 13rem));\n max-width: calc(100% - 13rem);\n overflow: hidden;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.6875rem;\n }\n .focus-chip[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .focus-chip { border-radius: 0.3rem; }\n .focus-chip button {\n flex: none;\n padding: 0.3rem 0.45rem;\n border-radius: 0.35rem;\n font-size: 0.625rem;\n }\n .relationship-lens-head {\n position: relative;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.9rem 0.75rem 0.65rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);\n }\n .relationship-lens-drag-handle {\n position: absolute;\n top: 0.12rem;\n left: 50%;\n width: 2.5rem;\n height: 0.78rem;\n padding: 0 !important;\n transform: translateX(-50%);\n color: var(--text-faint) !important;\n cursor: grab;\n touch-action: none;\n user-select: none;\n }\n .relationship-lens-drag-handle::before {\n content: \"\";\n display: block;\n width: 1.25rem;\n margin: auto;\n border-top: 2px dotted currentColor;\n opacity: 0.72;\n }\n .focus-chip[data-panel-dragging=\"true\"] .relationship-lens-drag-handle { cursor: grabbing; }\n @media (hover: none), (pointer: coarse) {\n .relationship-lens-drag-handle { display: none; }\n }\n .relationship-lens-copy { min-width: 0; }\n .relationship-lens-actions {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 0.18rem;\n }\n .relationship-lens-actions button { white-space: nowrap; }\n .relationship-lens-actions #btn-focus-clear {\n display: grid;\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n place-items: center;\n color: var(--text-muted);\n font-size: 1rem;\n line-height: 1;\n }\n .relationship-lens-actions #btn-focus-clear:hover,\n .relationship-lens-actions #btn-focus-clear:focus-visible {\n background: var(--toolbar-hover);\n color: var(--text);\n }\n .relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }\n .relationship-lens-actions #btn-focus-relations { display: none; }\n .relationship-lens-eyebrow {\n display: block;\n margin-bottom: 0.18rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .relationship-lens-title {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.8rem;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail {\n display: block;\n margin-top: 0.12rem;\n overflow: hidden;\n color: var(--text-muted);\n font-size: 0.625rem;\n line-height: 1.4;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail[hidden] { display: none; }\n .semantic-passport-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 0.24rem;\n margin-top: 0.42rem;\n }\n .semantic-passport-meta span,\n .semantic-passport-meta code {\n max-width: 100%;\n overflow: hidden;\n padding: 0.14rem 0.34rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);\n border-radius: 999px;\n background: color-mix(in srgb, var(--panel) 68%, transparent);\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n letter-spacing: 0.04em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-meta [data-passport=\"kind\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-weight: 800;\n text-transform: uppercase;\n }\n .semantic-passport-meta [data-passport=\"tag\"] { color: var(--cloud-stroke); }\n .semantic-passport-meta [data-passport=\"brand\"] {\n border-color: color-mix(in srgb, var(--messagebus-stroke) 52%, var(--toolbar-border));\n color: var(--messagebus-stroke);\n font-weight: 700;\n }\n .semantic-passport-meta [hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-meta span,\n html[data-preset=\"blueprint\"] .semantic-passport-meta code { border-radius: 0.1rem; }\n .semantic-passport-evidence {\n margin-top: 0.52rem;\n padding: 0.5rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));\n }\n .semantic-passport-evidence[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-evidence { border-radius: 0.18rem; }\n .semantic-passport-evidence-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.55rem;\n margin-bottom: 0.35rem;\n }\n .semantic-passport-evidence-status {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n color: var(--backend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .semantic-passport-evidence-status::before {\n content: '';\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);\n }\n .semantic-passport-repository {\n min-width: 0;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-repository:hover,\n .semantic-passport-repository:focus-visible { color: var(--backend-stroke); }\n .semantic-passport-evidence-links { display: grid; gap: 0.22rem; }\n .semantic-passport-source {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.15rem 0.45rem;\n align-items: center;\n padding: 0.34rem 0.4rem;\n border: 1px solid transparent;\n border-radius: 0.38rem;\n color: var(--text-muted);\n text-decoration: none;\n }\n a.semantic-passport-source:hover,\n a.semantic-passport-source:focus-visible {\n border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);\n background: color-mix(in srgb, var(--backend-fill) 32%, transparent);\n color: var(--text);\n }\n .semantic-passport-source strong {\n overflow: hidden;\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-source code {\n color: var(--backend-stroke);\n font: inherit;\n font-size: 0.5rem;\n }\n .semantic-passport-source small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-summary {\n display: block;\n margin-top: 0.12rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n .semantic-passport-reach {\n display: grid;\n gap: 0.28rem;\n margin-top: 0.52rem;\n padding-top: 0.48rem;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);\n }\n .semantic-passport-reach[hidden] { display: none; }\n .semantic-passport-reach-label {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n }\n .semantic-passport-reach-actions {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 0.25rem;\n }\n .semantic-passport-reach-actions button {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n min-width: 0;\n min-height: 2rem;\n padding: 0.32rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--panel) 70%, transparent);\n color: var(--text-muted);\n text-align: left;\n }\n .semantic-passport-reach-actions button:hover:not(:disabled),\n .semantic-passport-reach-actions button:focus-visible {\n border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));\n color: var(--text);\n }\n .semantic-passport-reach-actions button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .semantic-passport-reach-actions button:disabled {\n cursor: default;\n opacity: 0.5;\n }\n .semantic-passport-reach-actions button[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);\n color: var(--text);\n }\n #btn-reach-upstream {\n --reach-color: var(--database-stroke);\n --reach-fill: var(--database-fill);\n }\n #btn-reach-downstream {\n --reach-color: var(--backend-stroke);\n --reach-fill: var(--backend-fill);\n }\n .semantic-passport-reach-actions strong {\n color: var(--reach-color, var(--frontend-stroke));\n font-size: 0.625rem;\n }\n .semantic-passport-reach-status {\n color: var(--text-faint);\n font-size: 0.525rem;\n line-height: 1.4;\n }\n .semantic-passport-reach-status[hidden] { display: none; }\n .relationship-lens-list {\n max-height: min(18rem, 46vh);\n overflow: auto;\n padding: 0.4rem;\n scrollbar-width: thin;\n scrollbar-color: var(--frontend-stroke) transparent;\n }\n .relationship-lens-list::-webkit-scrollbar { width: 4px; }\n .relationship-lens-list::-webkit-scrollbar-thumb {\n border-radius: 999px;\n background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);\n }\n .relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }\n .relationship-lens-group-title {\n display: block;\n padding: 0.24rem 0.38rem 0.16rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .relationship-lens-row {\n display: grid;\n grid-template-columns: 2.1rem minmax(0, 1fr);\n gap: 0.06rem 0.45rem;\n width: 100%;\n padding: 0.45rem 0.5rem !important;\n text-align: left;\n }\n .relationship-lens-row:hover,\n .relationship-lens-row:focus-visible,\n .relationship-lens-row[data-preview-active=\"true\"] {\n background: var(--toolbar-hover);\n box-shadow: inset 2px 0 0 var(--frontend-stroke);\n }\n .relationship-lens-row:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .relationship-lens-direction {\n grid-row: 1 / 3;\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n }\n .relationship-lens-row[data-direction=\"in\"] .relationship-lens-direction { color: var(--database-stroke); }\n .relationship-lens-row[data-direction=\"loop\"] .relationship-lens-direction { color: var(--security-stroke); }\n .relationship-lens-row strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.6875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-row small {\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-empty {\n margin: 0;\n padding: 0.75rem;\n color: var(--text-faint);\n font-size: 0.625rem;\n text-align: center;\n }\n\n /* Diagram Guide keeps the artifact's growing reader vocabulary\n discoverable without widening the permanent control bar. It derives\n honest counts at runtime and delegates every action to an existing\n production interaction instead of creating a second command system. */\n .diagram-guide {\n position: absolute;\n top: 1rem;\n right: 1rem;\n z-index: 26;\n width: min(32rem, calc(100% - 2rem));\n max-height: min(42rem, calc(100% - 2rem));\n overflow: auto;\n border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(18px);\n animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-guide[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .diagram-guide { border-radius: 0.28rem; }\n .diagram-guide-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 1rem;\n padding: 0.82rem 0.9rem 0.68rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .diagram-guide-eyebrow {\n display: block;\n color: var(--cloud-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .diagram-guide-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.86rem;\n letter-spacing: -0.02em;\n }\n .diagram-guide-close {\n width: 1.8rem;\n height: 1.8rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .diagram-guide-close:hover,\n .diagram-guide-close:focus-visible { background: var(--toolbar-hover); }\n .diagram-guide-stats {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n padding: 0.54rem 0.9rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.025em;\n }\n .diagram-guide-stats::before {\n content: '';\n width: 0.42rem;\n height: 0.42rem;\n flex: none;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);\n }\n .diagram-guide-actions {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.38rem;\n padding: 0.62rem;\n }\n .diagram-guide-action {\n --guide-accent: var(--frontend-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n min-height: 4.15rem;\n padding: 0.55rem 0.58rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;\n }\n .diagram-guide-action[data-guide-action=\"route\"] { --guide-accent: var(--backend-stroke); }\n .diagram-guide-action[data-guide-action=\"map\"] { --guide-accent: var(--database-stroke); }\n .diagram-guide-action[data-guide-action=\"lens\"] { --guide-accent: var(--messagebus-stroke); }\n\n .diagram-guide-action[data-guide-action=\"present\"] {\n --guide-accent: var(--cloud-stroke);\n }\n .diagram-guide-action:hover,\n .diagram-guide-action:focus-visible {\n border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));\n background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));\n transform: translateY(-1px);\n }\n .diagram-guide-action:focus-visible,\n .diagram-guide-close:focus-visible {\n outline: 2px solid var(--cloud-stroke);\n outline-offset: 1px;\n }\n .diagram-guide-action:disabled {\n opacity: 0.42;\n cursor: default;\n transform: none;\n }\n .diagram-guide-index {\n display: grid;\n place-items: center;\n width: 1.65rem;\n height: 1.65rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));\n border-radius: 0.35rem;\n color: var(--guide-accent);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.06em;\n }\n .diagram-guide-action-copy { min-width: 0; }\n .diagram-guide-action strong {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.66rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-action small {\n display: -webkit-box;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n line-height: 1.35;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n }\n .diagram-guide kbd {\n align-self: start;\n min-width: 1.45rem;\n padding: 0.12rem 0.3rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n text-align: center;\n }\n .diagram-guide-shortcuts {\n display: flex;\n flex-wrap: wrap;\n gap: 0.34rem 0.62rem;\n padding: 0.58rem 0.9rem 0.68rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.5rem;\n }\n .diagram-guide-shortcuts span {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n white-space: nowrap;\n }\n .diagram-guide-feedback {\n min-height: 1rem;\n margin: -0.18rem 0.9rem 0.62rem;\n color: var(--security-stroke);\n font-size: 0.5rem;\n }\n .diagram-guide-feedback:empty { display: none; }\n @keyframes archify-guide-in {\n from { opacity: 0; transform: translateY(-5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n .node-finder {\n position: absolute;\n top: 1rem;\n left: 1rem;\n z-index: 24;\n display: flex;\n flex-direction: column;\n width: min(22rem, calc(100% - 2rem));\n max-height: calc(100% - 2rem);\n overflow: hidden;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(16px);\n }\n .node-finder[hidden] { display: none; }\n .node-finder[data-context=\"route-source\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));\n }\n .node-finder[data-context=\"route-target\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));\n }\n html[data-preset=\"blueprint\"] .node-finder { border-radius: 0.3rem; }\n .node-finder-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.7rem 0.8rem 0.45rem;\n }\n .node-finder-head strong {\n color: var(--text);\n font-size: 0.6875rem;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-source\"] .node-finder-head strong { color: var(--frontend-stroke); }\n .node-finder[data-context=\"route-target\"] .node-finder-head strong { color: var(--security-stroke); }\n .node-finder-close {\n width: 1.75rem;\n height: 1.75rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .node-finder-close:hover,\n .node-finder-close:focus-visible { background: var(--toolbar-hover); }\n .node-finder-close:focus-visible,\n .node-finder-result:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .node-finder-search {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n margin: 0 0.55rem 0.55rem;\n padding: 0 0.7rem;\n min-height: 2.35rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n transition: border-color 160ms ease-out, box-shadow 160ms ease-out;\n }\n html[data-preset=\"blueprint\"] .node-finder-search { border-radius: 0.18rem; }\n .node-finder-search \u003e span { color: var(--frontend-stroke); font-size: 0.875rem; }\n .node-finder-search:focus-within {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 14%, transparent);\n }\n .node-finder-input {\n appearance: none;\n width: 100%;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n font-size: 0.75rem;\n }\n .node-finder-input:focus-visible { outline: none; }\n .node-finder-input::placeholder { color: var(--text-faint); }\n .node-finder kbd {\n padding: 0.1rem 0.32rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5625rem;\n }\n .node-finder-results {\n display: grid;\n flex: 1 1 auto;\n gap: 0;\n min-height: 0;\n max-height: min(18rem, 48vh);\n margin: 0 0.55rem 0.45rem;\n padding: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 54%, transparent);\n scroll-padding-block: 0.25rem;\n scrollbar-width: thin;\n scrollbar-color: color-mix(in srgb, var(--panel-border) 90%, transparent) transparent;\n }\n /* Slim overlay-style thumb instead of the chunky platform default. */\n .node-finder-results::-webkit-scrollbar { width: 10px; }\n .node-finder-results::-webkit-scrollbar-track { background: transparent; }\n .node-finder-results::-webkit-scrollbar-thumb {\n background: color-mix(in srgb, var(--panel-border) 85%, transparent);\n border: 3px solid transparent;\n border-radius: 999px;\n background-clip: padding-box;\n }\n .node-finder-results::-webkit-scrollbar-thumb:hover {\n background: color-mix(in srgb, var(--text-muted) 65%, transparent);\n border: 3px solid transparent;\n background-clip: padding-box;\n }\n html[data-preset=\"blueprint\"] .node-finder-results { border-radius: 0.18rem; }\n .node-finder-result {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem 0.75rem;\n width: 100%;\n min-height: 3rem;\n padding: 0.52rem 0.65rem;\n border: 0;\n border-radius: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color 160ms ease-out;\n }\n .node-finder-result:not(:last-child) {\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);\n }\n .node-finder-result:hover,\n .node-finder-result:focus-visible {\n position: relative;\n z-index: 1;\n background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));\n }\n .node-finder-result strong {\n overflow: hidden;\n font-size: 0.75rem;\n line-height: 1.25;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n letter-spacing: 0.015em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result em {\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.625rem;\n font-style: normal;\n }\n /* A zero count is absence, not information — let it recede. */\n .node-finder-result em[data-zero] { color: var(--text-faint); }\n .node-finder[data-context^=\"route-\"] .node-finder-result em {\n padding: 0.1rem 0.3rem;\n border: 1px solid color-mix(in srgb, currentColor 52%, transparent);\n border-radius: 999px;\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-target\"] .node-finder-result em { color: var(--security-stroke); }\n .node-finder-empty {\n padding: 1.1rem 0.75rem 1.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n text-align: center;\n }\n .node-finder-status {\n margin: 0;\n padding: 0.1rem 0.8rem 0.65rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n\n .cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));\n gap: 1rem;\n margin-top: 2rem;\n }\n\n .card {\n background: var(--panel);\n border-radius: 0.75rem;\n border: 1px solid var(--panel-border);\n padding: 1.125rem 1.25rem;\n /* Card notes are authored prose and may carry an unbreakable run such as a\n slash-joined pipeline or a long identifier. Without this, that run sets the\n card's min-content width, spills past its track in every rail placement,\n and pushes the whole page into horizontal overflow at desktop widths.\n `anywhere` rather than `break-word` because only `anywhere` shrinks the\n intrinsic minimum the layout is sized from. */\n overflow-wrap: anywhere;\n }\n\n html[data-preset=\"signal-flow\"] .card {\n background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .card {\n background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);\n }\n\n /* Preserve the one-screen guarantee on ordinary laptop displays. The\n high-screen expansion above must not trade a fuller canvas for page\n scrolling at 900–1080px heights. */\n @media (min-width: 768px) and (max-height: 1100px) {\n .header { margin-bottom: 1rem; }\n .diagram-container {\n padding: 0.875rem;\n padding-bottom: calc(0.875rem + var(--archify-nav-reserve));\n }\n .cards { margin-top: 1rem; }\n .card { padding: 1rem; }\n }\n @media (min-width: 768px) and (max-height: 920px) {\n body { padding-block: 1.25rem; }\n body { --archify-page-top: 1.25rem; }\n .header { margin-bottom: 0.875rem; }\n .cards { margin-top: 0.75rem; }\n html[data-nav-stage-rail=\"true\"] body { padding-block: 0.375rem; }\n /* Align the fixed toolbar with the compact title row. Reserve its hit area\n above the guide without taking extra height from a fitted diagram. */\n html[data-nav-stage-rail=\"true\"] .toolbar { top: 0.25rem; }\n html[data-nav-stage-rail=\"true\"] .header { min-height: 2.625rem; margin-bottom: 0.5rem; }\n html[data-nav-stage-rail=\"true\"] .diagram-container[data-nav-stage-rail=\"true\"] { padding-top: 0.5rem; }\n html[data-nav-stage-rail=\"true\"] .cards { margin-top: 0.375rem; }\n }\n\n html[data-preset=\"blueprint\"] .card {\n position: relative;\n border-color: var(--panel-border);\n border-radius: 0.3rem;\n background: var(--panel);\n box-shadow: none;\n }\n html[data-preset=\"blueprint\"] .card::before {\n content: \"\";\n position: absolute;\n top: -1px;\n left: 1rem;\n width: 2.5rem;\n border-top: 2px solid var(--frontend-stroke);\n }\n\n html[data-preset=\"editorial\"] .card {\n position: relative;\n border-radius: 0.28rem;\n background: var(--panel);\n box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);\n }\n html[data-preset=\"editorial\"] .card::before {\n position: absolute;\n top: -1px;\n left: 1.25rem;\n width: 3.25rem;\n border-top: 3px solid var(--arrow-emphasis);\n content: \"\";\n }\n html[data-preset=\"editorial\"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }\n\n /* Summary rail: the reader measures the viewport and enables it only when the\n diagram keeps its readable width beside the notes. */\n .reader-rail { display: contents; }\n html[data-reader-rail=\"true\"] .container {\n display: grid;\n grid-template-columns: minmax(0, 1fr) var(--archify-rail-width);\n grid-auto-flow: row dense;\n column-gap: var(--archify-rail-gap);\n align-items: start;\n }\n html[data-reader-rail=\"true\"] .container \u003e .header { grid-column: 1 / -1; }\n html[data-reader-rail=\"true\"] .container \u003e .diagram-container { grid-column: 1; }\n /* The rail is at least the diagram's height and may run on to the viewport\n floor (--archify-rail-max, set by the reader); past that, notes scroll and\n the index keeps a usable share instead of collapsing to its header. */\n html[data-reader-rail=\"true\"] .reader-rail {\n display: flex;\n flex-direction: column;\n grid-column: 2;\n align-self: stretch;\n min-height: 0;\n max-height: var(--archify-rail-max, none);\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards:empty { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards {\n display: flex;\n flex: 0 1 auto;\n flex-direction: column;\n gap: 0;\n min-height: 0;\n margin-top: 0;\n padding: 0.125rem 0 0;\n overflow-y: auto;\n scrollbar-width: none;\n -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);\n mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards::-webkit-scrollbar { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card { flex: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card {\n padding: 0 0.25rem 1.125rem;\n border: 0;\n border-radius: 0;\n background: transparent;\n box-shadow: none;\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card + .card {\n padding-top: 1.125rem;\n border-top: 1px solid var(--panel-border);\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card::before { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .card-header { gap: 0.55rem; margin-bottom: 0.45rem; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card h3 { font-size: 0.875rem; letter-spacing: -0.005em; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards .card ul { font-size: 0.8125rem; line-height: 1.6; }\n\n .node-outline { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .node-outline:not([hidden]) {\n display: flex;\n flex: 1 0 min(13rem, 55%);\n flex-direction: column;\n min-height: 0;\n margin-top: 0.25rem;\n overflow: hidden;\n border-top: 1px solid var(--panel-border);\n }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"]) .cards:empty + .node-outline:not([hidden]) { margin-top: 0; border-top: 0; }\n /* Collapsed: only the reveal control remains, so the diagram takes the width. */\n html[data-reader-rail=\"collapsed\"] .reader-rail { display: none; }\n /* Overlay: a drawer for diagrams whose readable floor leaves no room to dock. */\n html[data-reader-rail=\"overlay\"] .reader-rail {\n position: fixed;\n z-index: 150;\n top: 1rem;\n right: 1rem;\n bottom: 1rem;\n display: flex;\n flex-direction: column;\n width: var(--archify-rail-width);\n padding: 0.75rem 1rem 0.5rem;\n border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);\n border-radius: 1rem;\n background: var(--toolbar-menu-bg);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 28px 64px -18px rgba(15, 23, 42, 0.38);\n animation: rail-drawer-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);\n }\n @keyframes rail-drawer-in {\n from { opacity: 0; transform: translateX(0.75rem); }\n to { opacity: 1; transform: translateX(0); }\n }\n /* Bottom (default): the notes keep their full-width card row and the index\n follows as one panel whose groups flow into columns, so nothing scrolls\n inside it. The placement toggle sits in the index header. */\n html[data-reader-rail=\"bottom\"] .reader-rail {\n display: grid;\n grid-template-areas: \"cards\" \"index\";\n grid-template-columns: minmax(0, 1fr);\n row-gap: 1rem;\n margin-top: 1rem;\n }\n html[data-reader-rail=\"bottom\"] .cards { grid-area: cards; margin-top: 0; }\n html[data-reader-rail=\"bottom\"] .cards:empty { display: none; }\n html[data-reader-rail=\"bottom\"] .node-outline:not([hidden]) {\n display: block;\n grid-area: index;\n padding: 0 1.25rem 0.75rem;\n border: 1px solid var(--panel-border);\n border-radius: 0.75rem;\n background: var(--panel);\n }\n html[data-reader-rail=\"bottom\"] .reader-rail \u003e .rail-controls {\n z-index: 1;\n grid-area: index;\n align-self: start;\n justify-self: end;\n margin: 0.625rem 0.625rem 0 0;\n }\n html[data-reader-rail=\"bottom\"] .node-outline-head { padding: 1rem 2.5rem 0.375rem 0.25rem; }\n html[data-reader-rail=\"bottom\"] .node-outline-list {\n columns: 15rem;\n column-gap: 1.75rem;\n padding: 0;\n overflow: visible;\n -webkit-mask-image: none;\n mask-image: none;\n }\n /* Named groups stay whole; a single unnamed group may split across columns,\n where a continuous spine would read as a broken line. */\n html[data-reader-rail=\"bottom\"] .node-outline-group + .node-outline-group { margin-top: 0; }\n html[data-reader-rail=\"bottom\"] .node-outline-group:has(\u003e .node-outline-heading) { break-inside: avoid; padding-bottom: 0.25rem; }\n html[data-reader-rail=\"bottom\"] .node-outline-group:not(:has(\u003e .node-outline-heading)) \u003e ul::before { display: none; }\n html[data-reader-rail=\"bottom\"] .node-outline-group li { break-inside: avoid; }\n .rail-controls { display: none; }\n html:is([data-reader-rail=\"true\"], [data-reader-rail=\"overlay\"], [data-reader-rail=\"bottom\"]) .rail-controls {\n display: flex;\n flex: none;\n justify-content: flex-end;\n gap: 0.125rem;\n margin: -0.25rem -0.25rem 0.25rem 0;\n }\n .rail-control {\n display: inline-grid;\n place-items: center;\n width: 1.875rem;\n height: 1.875rem;\n border: 0;\n border-radius: 0.5rem;\n background: transparent;\n color: var(--text-faint);\n cursor: pointer;\n transition: background 0.14s ease, color 0.14s ease;\n }\n .rail-control[hidden] { display: none; }\n .rail-control:hover,\n .rail-control:focus-visible { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }\n .rail-control:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: -1.5px; }\n .rail-control-icon,\n .rail-reveal-icon {\n width: 1rem;\n height: 1rem;\n background: currentColor;\n -webkit-mask: var(--rail-glyph) center / contain no-repeat;\n mask: var(--rail-glyph) center / contain no-repeat;\n }\n /* Panel glyphs: a frame with the panel drawn on the side it moves to. */\n .rail-control-icon.placement,\n #rail-placement[data-placement=\"right\"] .rail-control-icon { --rail-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M2.8 12h14.4'/%3E%3C/g%3E%3C/svg%3E\"); }\n #rail-placement[data-placement=\"bottom\"] .rail-control-icon { --rail-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4'/%3E%3C/g%3E%3C/svg%3E\"); }\n .rail-control-icon.collapse { --rail-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m8 5.5 4.5 4.5L8 14.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\"); }\n .rail-reveal-icon { --rail-glyph: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4M14.4 7.2h1M14.4 9.6h1M14.4 12h1'/%3E%3C/g%3E%3C/svg%3E\"); }\n .rail-reveal[hidden] { display: none; }\n /* The collapsed rail leaves one quiet pill in the canvas corner. */\n .rail-reveal {\n position: absolute;\n z-index: 13;\n top: 0.75rem;\n right: 0.75rem;\n display: inline-flex;\n align-items: center;\n gap: 0.45rem;\n min-height: 2rem;\n padding: 0 0.75rem 0 0.625rem;\n border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);\n border-radius: 999px;\n background: color-mix(in srgb, var(--panel) 86%, transparent);\n color: var(--text-muted);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px -12px rgba(15, 23, 42, 0.28);\n backdrop-filter: blur(12px);\n font: inherit;\n font-size: 0.75rem;\n font-weight: 500;\n cursor: pointer;\n transition: color 0.14s ease, background 0.14s ease;\n }\n .rail-reveal:hover,\n .rail-reveal:focus-visible { color: var(--text); background: var(--panel); }\n .rail-reveal:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: 2px; }\n html[data-motion=\"still\"] .reader-rail { animation: none !important; }\n .node-outline-head {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 1.125rem 0.25rem 0.375rem;\n }\n .node-outline-head strong {\n color: var(--text);\n font-size: 0.875rem;\n font-weight: 600;\n letter-spacing: -0.005em;\n }\n .node-outline-count {\n min-width: 1.35rem;\n padding: 0.1rem 0.4rem;\n border-radius: 999px;\n background: color-mix(in srgb, var(--text) 6%, transparent);\n color: var(--text-muted);\n font-size: 0.6875rem;\n font-weight: 600;\n line-height: 1.3;\n text-align: center;\n font-variant-numeric: tabular-nums;\n }\n .node-outline-list {\n flex: 1 1 auto;\n min-height: 0;\n margin: 0 -0.375rem;\n padding: 0 0 1.25rem;\n overflow-y: auto;\n list-style: none;\n scrollbar-width: none;\n -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);\n mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);\n }\n .node-outline-list::-webkit-scrollbar { display: none; }\n .node-outline-group + .node-outline-group { margin-top: 0.25rem; }\n .node-outline-group \u003e ul {\n position: relative;\n list-style: none;\n }\n /* A quiet spine ties each group's swatches together like a lane. */\n .node-outline-group \u003e ul::before {\n position: absolute;\n top: 0.95rem;\n bottom: 0.95rem;\n left: calc(0.625rem + 0.3125rem - 0.5px);\n width: 1px;\n background: var(--panel-border);\n content: \"\";\n }\n .node-outline-heading {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n padding: 0.7rem 0.625rem 0.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 600;\n letter-spacing: 0.02em;\n }\n .node-outline-heading small {\n color: var(--text-dim);\n font-size: 0.6875rem;\n font-weight: 500;\n font-variant-numeric: tabular-nums;\n }\n /* The rail frees the vertical budget, so compact viewports keep the normal\n title spacing instead of the stacked layout's tight stage rail. */\n html[data-reader-rail]:not([data-reader-rail=\"bottom\"]) body { --archify-page-top: 1.5rem; padding-block: 1.5rem; }\n html[data-reader-rail]:not([data-reader-rail=\"bottom\"]) .toolbar { top: calc(var(--archify-page-top) - 0.1875rem); }\n html[data-reader-rail]:not([data-reader-rail=\"bottom\"]) .header { min-height: 0; margin-bottom: 1.125rem; }\n .node-outline-item {\n position: relative;\n display: grid;\n grid-template-columns: 0.625rem minmax(0, auto) minmax(0, 1fr) 0.75rem;\n align-items: center;\n column-gap: 0.625rem;\n width: 100%;\n min-height: 1.95rem;\n padding: 0.28rem 0.5rem 0.28rem 0.625rem;\n border: 0;\n border-radius: 0.5rem;\n background: transparent;\n color: var(--text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background 0.16s ease;\n }\n /* Trailing chevron hints that a click focuses the node. */\n .node-outline-item::after {\n grid-column: 4;\n width: 0.75rem;\n height: 0.75rem;\n background: currentColor;\n color: var(--text-muted);\n content: \"\";\n opacity: 0;\n transform: translateX(-3px);\n transition: opacity 0.16s ease, transform 0.16s ease;\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center / contain no-repeat;\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center / contain no-repeat;\n }\n .node-outline-item:hover,\n .node-outline-item:focus-visible,\n .node-outline-item[data-previewing] { background: color-mix(in srgb, var(--text) 4.5%, transparent); }\n .node-outline-item:hover::after,\n .node-outline-item:focus-visible::after { opacity: 0.7; transform: translateX(0); }\n .node-outline-item:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--outline-tone) 60%, transparent); outline-offset: -1.5px; }\n .node-outline-item[aria-current=\"true\"] { background: color-mix(in srgb, var(--outline-tone) 10%, transparent); }\n .node-outline-item[aria-current=\"true\"]::after { opacity: 0; }\n /* Swatches echo the diagram's node cards: tinted fill, hairline stroke. */\n .node-outline-dot {\n width: 0.625rem;\n height: 0.5rem;\n border: 1.25px solid var(--outline-tone);\n border-radius: 0.15rem;\n background: color-mix(in srgb, var(--outline-tone) 16%, var(--bg));\n transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;\n }\n .node-outline-item:hover .node-outline-dot,\n .node-outline-item:focus-visible .node-outline-dot,\n .node-outline-item[data-previewing] .node-outline-dot,\n .node-outline-item[aria-current=\"true\"] .node-outline-dot {\n background: var(--outline-tone);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--outline-tone) 18%, transparent);\n transform: scale(1.08);\n }\n .node-outline-item strong {\n overflow: hidden;\n font-size: 0.8125rem;\n font-weight: 500;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-outline-item[aria-current=\"true\"] strong { font-weight: 600; }\n .node-outline-item small {\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.6875rem;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n transition: color 0.16s ease;\n }\n .node-outline-item:hover small,\n .node-outline-item[data-previewing] small,\n .node-outline-item[aria-current=\"true\"] small { color: var(--text-muted); }\n\n .card-header {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin-bottom: 0.625rem;\n }\n\n .card-dot {\n flex: none;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n\n .card-dot.cyan { background: var(--frontend-stroke); }\n .card-dot.emerald { background: var(--backend-stroke); }\n .card-dot.violet { background: var(--database-stroke); }\n .card-dot.amber { background: var(--cloud-stroke); }\n .card-dot.rose { background: var(--security-stroke); }\n .card-dot.orange { background: var(--messagebus-stroke); }\n .card-dot.slate { background: var(--external-stroke); }\n\n .card h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--text); }\n\n .card ul {\n list-style: none;\n color: var(--text-muted);\n font-size: 0.8125rem;\n line-height: 1.6;\n }\n\n .card li {\n position: relative;\n margin-bottom: 0.3rem;\n padding-left: 0.9rem;\n }\n .card li:last-child { margin-bottom: 0; }\n /* Hanging markers take the card's tone so wrapped lines align under text. */\n .card li::before {\n position: absolute;\n top: calc(0.8em - 2px);\n left: 0.2rem;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background: color-mix(in srgb, var(--card-tone, var(--text-muted)) 70%, transparent);\n content: \"\";\n }\n .card:has(.card-dot.cyan) { --card-tone: var(--frontend-stroke); }\n .card:has(.card-dot.emerald) { --card-tone: var(--backend-stroke); }\n .card:has(.card-dot.violet) { --card-tone: var(--database-stroke); }\n .card:has(.card-dot.amber) { --card-tone: var(--cloud-stroke); }\n .card:has(.card-dot.rose) { --card-tone: var(--security-stroke); }\n .card:has(.card-dot.orange) { --card-tone: var(--messagebus-stroke); }\n .card:has(.card-dot.slate) { --card-tone: var(--external-stroke); }\n .card-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-tone, transparent) 16%, transparent); }\n\n /* ==========================================================\n Print stylesheet — hide interactive controls, force light,\n drop the grid so the diagram doesn't waste ink, use landscape\n so wide diagrams fit, pack summary cards into 2 columns to\n avoid an orphan card on a trailing page.\n ========================================================== */\n @page { size: landscape; margin: 1.5cm; }\n\n @media print {\n /* Force the FULL light palette — including component fills/strokes and\n lane/arrow colors — so printing from dark theme doesn't put neon\n strokes and translucent dark fills on white paper. */\n :root, [data-theme=\"dark\"], [data-theme=\"light\"] {\n --bg: #ffffff;\n --grid: transparent;\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --text: #0f172a;\n --text-muted: #475569;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n --mask: #ffffff;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n }\n body { background: #ffffff !important; padding: 0; }\n .container { max-width: none; }\n .toolbar, .diagram-nav, .focus-chip, .archify-toast, .no-print { display: none !important; }\n \n .diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }\n .diagram-container { --archify-nav-reserve: 0px !important; }\n html[data-preset=\"signal-flow\"] .diagram-container,\n html[data-preset=\"signal-flow\"] .card { background: #ffffff; }\n .cards { grid-template-columns: 1fr 1fr; }\n /* Ensure elements break sensibly across pages */\n .card { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container svg [data-detail] {\n opacity: 1 !important;\n pointer-events: auto !important;\n }\n .diagram-container svg [data-detail-anchor] { transform: none !important; }\n .diagram-container svg[data-lens-active] [data-node-id],\n .diagram-container svg[data-lens-active] [data-edge-from],\n .diagram-container svg[data-legend-preview-active] [data-node-id],\n .diagram-container svg[data-legend-preview-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n }\n [data-legend-bridge-runtime] { display: none !important; }\n .semantic-lens-overlay { display: none !important; }\n .relationship-hit-overlay { display: none !important; }\n .relationship-pulse-overlay { display: none !important; }\n .route-probe-overlay, .route-journey-overlay { display: none !important; }\n .diagram-container svg[data-focus-active] [data-node-id],\n .diagram-container svg[data-focus-active] [data-edge-from],\n .diagram-container svg[data-focus-active] [data-graph-role=\"automatic-crossover-underlay\"],\n .diagram-container svg[data-reach-active] [data-node-id],\n .diagram-container svg[data-reach-active] [data-edge-from],\n .diagram-container svg[data-reach-active] [data-graph-role=\"automatic-crossover-underlay\"],\n .diagram-container svg[data-route-active] [data-node-id],\n .diagram-container svg[data-route-active] [data-edge-from],\n .diagram-container svg[data-route-active] [data-graph-role=\"automatic-crossover-underlay\"] {\n opacity: 1 !important;\n filter: none !important;\n animation: none !important;\n }\n h1, .subtitle { color: #0f172a; }\n }\n\n /* ==========================================================\n TOOLBAR (theme toggle + export menu)\n ========================================================== */\n /* The toolbar tracks the centered reader column and the title row, so\n an adaptive narrow reader does not leave its controls stranded at the\n viewport edge. */\n .toolbar {\n position: absolute;\n top: var(--archify-page-top);\n right: max(1rem, calc((100vw - min(100vw - 4rem, var(--archify-reader-width, 1440px))) / 2));\n display: flex;\n align-items: center;\n gap: 0.125rem;\n padding: 0;\n border: 0;\n background: transparent;\n box-shadow: none;\n z-index: 100;\n }\n /* Ghost controls keep a 44px hit area while the visible pill stays compact;\n Export is the one primary action. */\n .toolbar button {\n position: relative;\n isolation: isolate;\n background: transparent;\n color: var(--text-muted);\n border: 0;\n padding: 0.5rem 0.75rem;\n border-radius: 0.5625rem;\n font-family: inherit;\n font-size: 0.8125rem;\n font-weight: 500;\n cursor: pointer;\n white-space: nowrap;\n box-shadow: none;\n transition: color 0.15s;\n display: inline-flex;\n align-items: center;\n gap: 0.4rem;\n min-height: 2.75rem;\n }\n .toolbar button::before {\n position: absolute;\n z-index: -1;\n inset: 0.375rem 0;\n border-radius: 0.5rem;\n background: transparent;\n content: \"\";\n transition: background 0.15s, box-shadow 0.15s;\n }\n .toolbar button:hover { color: var(--text); }\n .toolbar button:hover::before { background: color-mix(in srgb, var(--text) 6%, transparent); }\n .toolbar button[aria-expanded=\"true\"],\n .toolbar button[aria-pressed=\"true\"]:not(#btn-theme) { color: var(--text); }\n .toolbar button[aria-expanded=\"true\"]::before,\n .toolbar button[aria-pressed=\"true\"]:not(#btn-theme)::before {\n background: color-mix(in srgb, var(--text) 8%, transparent);\n }\n .toolbar #btn-export {\n margin-left: 0.375rem;\n padding-right: 0.95rem;\n padding-left: 1rem;\n color: var(--bg);\n font-weight: 550;\n }\n .toolbar #btn-export::before {\n background: var(--text);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 6px 16px -8px rgba(15, 23, 42, 0.4);\n }\n .toolbar #btn-export:hover,\n .toolbar #btn-export[aria-expanded=\"true\"] { color: var(--bg); }\n .toolbar #btn-export:hover::before,\n .toolbar #btn-export[aria-expanded=\"true\"]::before { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }\n .toolbar button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -4px;\n }\n .toolbar { gap: 0.5rem; }\n .toolbar #btn-export { margin-left: 0; }\n .toolbar #btn-export::before { inset: 0.25rem 0; border-radius: 0.6875rem; }\n /* Tools share one quiet capsule; the capsule is drawn inside the 44px row\n so the controls keep their hit area without a tall visible box. */\n .toolbar-group {\n position: relative;\n isolation: isolate;\n display: flex;\n align-items: center;\n gap: 0.0625rem;\n padding: 0 0.25rem;\n }\n .toolbar-group::before {\n position: absolute;\n z-index: -1;\n inset: 0.25rem 0;\n border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);\n border-radius: 0.6875rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -14px rgba(15, 23, 42, 0.22);\n backdrop-filter: blur(12px);\n content: \"\";\n }\n .toolbar-group button { padding-inline: 0.625rem; }\n .toolbar-group button::before { inset: 0.5rem 0; border-radius: 0.5rem; }\n /* Theme becomes a sliding switch; its label stays for assistive tech. */\n .toolbar #theme-label,\n .toolbar #present-label {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n }\n .toolbar #btn-theme {\n width: 3.5rem;\n padding: 0;\n justify-content: center;\n }\n .toolbar #btn-theme::before {\n inset: 0.75rem 0.4375rem;\n border-radius: 999px;\n background: color-mix(in srgb, var(--text) 9%, transparent);\n box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);\n }\n .toolbar #btn-theme:hover::before { background: color-mix(in srgb, var(--text) 13%, transparent); }\n .toolbar #btn-theme::after {\n position: absolute;\n z-index: 0;\n top: 50%;\n left: 0.5625rem;\n width: 1.125rem;\n height: 1.125rem;\n border-radius: 50%;\n background: var(--panel);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);\n content: \"\";\n transform: translateY(-50%);\n transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .toolbar #theme-icon {\n position: absolute;\n z-index: 1;\n top: 50%;\n left: calc(0.5625rem + 0.1875rem);\n width: 0.75rem;\n height: 0.75rem;\n color: var(--cloud-stroke);\n transform: translateY(-50%);\n transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);\n }\n [data-theme=\"dark\"] .toolbar #btn-theme::before { background: rgba(148, 163, 184, 0.16); }\n [data-theme=\"dark\"] .toolbar #btn-theme::after { left: calc(100% - 0.5625rem - 1.125rem); background: #3b4a63; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }\n [data-theme=\"dark\"] .toolbar #theme-icon { left: calc(100% - 0.5625rem - 1.125rem + 0.1875rem); color: #c7d2fe; }\n .toolbar #btn-present { width: 2.5rem; padding: 0; justify-content: center; }\n .toolbar #btn-present .toolbar-icon { width: 1rem; height: 1rem; }\n html[data-motion=\"still\"] .toolbar #btn-theme::after,\n html[data-motion=\"still\"] .toolbar #theme-icon { transition: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar { right: 1rem; }\n html[data-preset=\"editorial\"] .toolbar { border-radius: 0.45rem; }\n .toolbar #btn-motion[hidden] { display: none !important; }\n .toolbar #btn-motion { min-width: 4.4rem; }\n .toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }\n .toolbar .preset-wrap,\n .toolbar .export-wrap {\n position: relative;\n }\n .toolbar-icon {\n display: inline-block;\n width: 0.95rem;\n height: 0.95rem;\n flex: 0 0 auto;\n background: currentColor;\n -webkit-mask-position: center;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n }\n .toolbar-chevron {\n width: 0.65rem;\n height: 0.65rem;\n transition: transform 0.15s ease;\n }\n [aria-expanded=\"true\"] \u003e .toolbar-chevron { transform: rotate(180deg); }\n [data-theme=\"light\"] #theme-icon {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E\");\n }\n [data-theme=\"dark\"] #theme-icon {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E\");\n }\n #btn-present[aria-pressed=\"false\"] #present-icon {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E\");\n }\n #btn-present[aria-pressed=\"true\"] #present-icon {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E\");\n }\n .toolbar-chevron {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n }\n .toolbar #btn-preset { min-width: 5.4rem; }\n .preset-control-mark {\n width: 0.58rem;\n height: 0.58rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.2rem;\n background: color-mix(in srgb, var(--frontend-stroke) 28%, transparent);\n transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s;\n }\n #btn-preset[data-preset-option=\"signal-flow\"] .preset-control-mark {\n border-radius: 50%;\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 78%, transparent);\n }\n #btn-preset[data-preset-option=\"blueprint\"] .preset-control-mark {\n border-radius: 0.06rem;\n background: transparent;\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);\n transform: rotate(45deg) scale(0.84);\n }\n #btn-preset[data-preset-option=\"editorial\"] .preset-control-mark {\n border-color: var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg) scale(0.72);\n }\n /* Menus anchor to the tools capsule so they open flush under it. */\n .toolbar-group .preset-wrap { position: static; }\n .toolbar .preset-menu {\n position: absolute;\n top: calc(100% + 0.125rem);\n right: 0;\n display: none;\n width: 17.5rem;\n max-width: calc(100vw - 2rem);\n padding: 0.375rem;\n border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);\n border-radius: 0.875rem;\n background: var(--toolbar-menu-bg);\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);\n }\n [data-theme=\"dark\"] .toolbar .preset-menu,\n [data-theme=\"dark\"] .toolbar .export-menu {\n border-color: rgba(148, 163, 184, 0.16);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -12px rgba(0, 0, 0, 0.6);\n }\n /* Menu rows are not toolbar pills: drop the ghost-button pseudo surface. */\n .toolbar .preset-menu button,\n .toolbar .export-menu button { isolation: auto; min-height: 0; }\n .toolbar .preset-menu button::before { display: none; }\n .toolbar .preset-menu.open { display: block; }\n .toolbar .preset-menu.open,\n .toolbar .export-menu.open {\n animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);\n transform-origin: top right;\n }\n @keyframes toolbar-menu-in {\n from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n .preset-menu-heading {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.45rem 0.55rem 0.4rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 600;\n letter-spacing: 0.01em;\n }\n .preset-menu-shortcut {\n display: inline-flex;\n align-items: center;\n gap: 0.35rem;\n font-weight: 500;\n }\n .preset-menu-shortcut kbd {\n min-width: 1.125rem;\n padding: 0.05rem 0.3rem;\n border: 1px solid var(--panel-border);\n border-bottom-width: 2px;\n border-radius: 0.3rem;\n background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));\n color: var(--text-muted);\n font-family: inherit;\n font-size: 0.625rem;\n font-weight: 600;\n line-height: 1.3;\n text-align: center;\n }\n .toolbar .preset-option {\n display: grid;\n grid-template-columns: 2.375rem minmax(0, 1fr) 1rem;\n align-items: center;\n gap: 0.75rem;\n width: 100%;\n min-height: 3.125rem;\n margin-top: 0.125rem;\n padding: 0.45rem 0.6rem 0.45rem 0.5rem;\n border: 0;\n border-radius: 0.625rem;\n background: transparent;\n color: var(--text);\n box-shadow: none;\n backdrop-filter: none;\n text-align: left;\n transition: background 0.14s ease;\n }\n .toolbar .preset-option:hover,\n .toolbar .preset-option:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); }\n .toolbar .preset-option[aria-checked=\"true\"] { background: color-mix(in srgb, var(--frontend-stroke) 8%, transparent); }\n .toolbar .preset-option:focus-visible {\n outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);\n outline-offset: -1.5px;\n }\n .preset-option-swatch {\n position: relative;\n width: 2.375rem;\n height: 1.75rem;\n overflow: hidden;\n border: 0;\n border-radius: 0.4375rem;\n background: #0f172a;\n box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28), 0 1px 2px rgba(15, 23, 42, 0.12);\n transition: box-shadow 0.14s ease, transform 0.14s ease;\n }\n .toolbar .preset-option:hover .preset-option-swatch { transform: translateY(-1px); }\n .toolbar .preset-option[aria-checked=\"true\"] .preset-option-swatch {\n box-shadow: 0 0 0 2px var(--toolbar-menu-bg), 0 0 0 3.5px var(--frontend-stroke);\n }\n .preset-option-swatch::before,\n .preset-option-swatch::after { position: absolute; content: \"\"; }\n .preset-option-swatch.classic::before {\n top: 0.42rem;\n right: 0.35rem;\n bottom: 0.42rem;\n left: 0.35rem;\n border: 1px solid #22d3ee;\n border-radius: 0.16rem;\n background: rgba(34, 211, 238, 0.14);\n }\n /* Classic previews the canvas it will actually produce in this theme. */\n [data-theme=\"light\"] .preset-option-swatch.classic {\n background:\n radial-gradient(circle at 1px 1px, #d9dee5 0.6px, transparent 0.9px) 0 0 / 5px 5px,\n #ffffff;\n }\n [data-theme=\"light\"] .preset-option-swatch.classic::before {\n border-color: #1b87a3;\n background: rgba(14, 116, 144, 0.08);\n box-shadow: 0 2px 4px rgba(17, 24, 39, 0.12);\n }\n .preset-option-swatch.signal-flow {\n border-color: #29415f;\n background: linear-gradient(135deg, #07101e 10%, #10243c 100%);\n }\n .preset-option-swatch.signal-flow::before {\n top: 50%;\n right: 0.2rem;\n left: 0.2rem;\n height: 1px;\n background: linear-gradient(90deg, #67e8f9, #c4b5fd);\n box-shadow: 0 0 8px #67e8f9;\n }\n .preset-option-swatch.signal-flow::after {\n top: calc(50% - 0.13rem);\n right: 0.28rem;\n width: 0.26rem;\n height: 0.26rem;\n border-radius: 50%;\n background: #67e8f9;\n box-shadow: 0 0 7px #67e8f9;\n }\n .preset-option-swatch.blueprint {\n border-color: #34799a;\n border-radius: 0.08rem;\n background-color: #0a2031;\n background-image:\n linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),\n linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);\n background-size: 0.42rem 0.42rem;\n }\n .preset-option-swatch.blueprint::before {\n top: 0.34rem;\n right: 0.38rem;\n bottom: 0.34rem;\n left: 0.38rem;\n border: 1px solid #66d9ef;\n }\n .preset-option-swatch.editorial {\n border-color: #b8aa94;\n border-radius: 0.08rem;\n background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);\n }\n .preset-option-swatch.editorial::before {\n top: 0;\n bottom: 0;\n left: 0.42rem;\n width: 1px;\n background: #c9502d;\n opacity: 0.72;\n }\n .preset-option-swatch.editorial::after {\n top: 0.52rem;\n right: 0.45rem;\n width: 0.38rem;\n height: 0.38rem;\n background: #c9502d;\n transform: rotate(45deg);\n }\n .preset-option-copy { min-width: 0; }\n .preset-option-copy strong,\n .preset-option-copy small { display: block; }\n .preset-option-copy strong {\n color: var(--text);\n font-size: 0.8125rem;\n font-weight: 550;\n letter-spacing: -0.005em;\n }\n .toolbar .preset-option[aria-checked=\"true\"] .preset-option-copy strong { font-weight: 650; }\n .preset-option-copy small {\n margin-top: 0.125rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .preset-option-check {\n display: inline-block;\n width: 0.9rem;\n height: 0.9rem;\n color: var(--frontend-stroke);\n background: currentColor;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n -webkit-mask-position: center;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");\n mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n opacity: 0;\n }\n .preset-option[aria-checked=\"true\"] .preset-option-check { opacity: 1; }\n html[data-preset=\"editorial\"] .toolbar button,\n html[data-preset=\"editorial\"] .preset-menu,\n html[data-preset=\"editorial\"] .export-menu,\n html[data-preset=\"editorial\"] .overview-map,\n html[data-preset=\"editorial\"] .semantic-lens,\n html[data-preset=\"editorial\"] .route-probe,\n html[data-preset=\"editorial\"] .focus-chip,\n html[data-preset=\"editorial\"] .diagram-guide,\n html[data-preset=\"editorial\"] .node-finder {\n border-radius: 0.3rem;\n }\n .motion-control-dot {\n width: 0.46rem;\n height: 0.46rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 50%;\n background: var(--frontend-stroke);\n box-shadow: 0 0 9px color-mix(in srgb, var(--frontend-stroke) 72%, transparent);\n }\n #btn-motion[aria-pressed=\"false\"] .motion-control-dot {\n background: transparent;\n box-shadow: none;\n }\n /* The motion button breathes on the same shared cycle as the cascade, so the\n chrome keeps time with the wave it controls. The cycle length lives on the\n diagram SVG, so chrome presets mirror it here. */\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot {\n animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite;\n }\n html[data-preset=\"signal-flow\"] #btn-motion .motion-control-dot { --flow-cycle-chrome: 5.2s; }\n @keyframes archify-motion-dot-breathe {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 46% { opacity: 0.55; transform: scale(0.72); }\n }\n .toolbar .export-menu {\n position: absolute;\n top: calc(100% + 0.125rem);\n right: 0;\n background: var(--toolbar-menu-bg);\n border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);\n width: 19rem;\n max-width: calc(100vw - 2rem);\n max-height: calc(100vh - 5.5rem);\n overflow-y: auto;\n border-radius: 0.875rem;\n padding: 0.375rem;\n display: none;\n flex-direction: column;\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);\n scrollbar-width: thin;\n }\n .toolbar .export-menu.open { display: flex; }\n .export-menu-header {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.55rem 0.6rem 0.6rem;\n }\n .export-menu-header strong,\n .export-menu-header span { display: block; }\n .export-menu-header strong {\n color: var(--text);\n font-size: 0.875rem;\n font-weight: 600;\n letter-spacing: -0.005em;\n }\n .export-menu-header span {\n margin-top: 0.15rem;\n color: var(--text-faint);\n font-size: 0.75rem;\n }\n .export-menu-header kbd {\n min-width: 1.125rem;\n padding: 0.05rem 0.3rem;\n border: 1px solid var(--panel-border);\n border-bottom-width: 2px;\n border-radius: 0.3rem;\n background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));\n color: var(--text-muted);\n font-family: inherit;\n font-size: 0.625rem;\n font-weight: 600;\n line-height: 1.3;\n text-align: center;\n }\n .export-menu-section {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.0625rem;\n }\n .export-menu-section + .export-menu-section {\n margin-top: 0.3rem;\n padding-top: 0.3rem;\n border-top: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);\n }\n .export-menu-heading {\n grid-column: 1 / -1;\n display: block;\n padding: 0.4rem 0.6rem 0.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 600;\n letter-spacing: 0.01em;\n }\n .toolbar .export-menu button {\n display: grid;\n grid-template-columns: 1rem minmax(0, 1fr);\n align-items: center;\n column-gap: 0.7rem;\n background: transparent;\n border: 0;\n box-shadow: none;\n backdrop-filter: none;\n width: 100%;\n min-height: 2.5rem;\n text-align: left;\n padding: 0.4rem 0.6rem;\n border-radius: 0.5625rem;\n color: var(--text);\n white-space: nowrap;\n transition: background 0.14s ease;\n }\n .toolbar .export-menu button:hover,\n .toolbar .export-menu button:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }\n .toolbar .export-menu button:focus-visible {\n outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);\n outline-offset: -1.5px;\n }\n /* Name and format hint share one line, so each row stays compact. */\n .export-item-copy {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 0.75rem;\n min-width: 0;\n }\n .export-item-copy strong {\n overflow: hidden;\n color: inherit;\n font-size: 0.8125rem;\n font-weight: 500;\n text-overflow: ellipsis;\n }\n .export-item-copy small {\n flex: none;\n color: var(--text-faint);\n font-size: 0.6875rem;\n font-weight: 450;\n }\n .toolbar .export-menu button::before {\n position: static;\n z-index: auto;\n inset: auto;\n border-radius: 0;\n display: block;\n width: 1rem;\n height: 1rem;\n background: currentColor;\n color: var(--text-muted);\n content: \"\";\n opacity: 0.8;\n -webkit-mask-position: center;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: contain;\n mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n }\n .toolbar .export-menu button[data-action=\"route-share-card\"]::before,\n .toolbar .export-menu button[data-action=\"reach-share-card\"]::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E\");\n }\n .toolbar .export-menu button[data-action^=\"copy\"]::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n }\n .toolbar .export-menu button[data-format=\"png\"]::before,\n .toolbar .export-menu button[data-format=\"jpeg\"]::before,\n .toolbar .export-menu button[data-format=\"webp\"]::before {\n -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 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n }\n .toolbar .export-menu button[data-format^=\"svg\"]::before,\n .toolbar .export-menu button[data-format=\"webm\"]::before {\n -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 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E\");\n }\n .toolbar .export-menu button[data-action=\"route-share-card\"],\n .toolbar .export-menu button[data-action=\"reach-share-card\"] {\n color: var(--text);\n background: color-mix(in srgb, var(--frontend-stroke) 7%, transparent);\n }\n .toolbar .export-menu button[data-action=\"route-share-card\"]::before,\n .toolbar .export-menu button[data-action=\"reach-share-card\"]::before { color: var(--frontend-stroke); opacity: 1; }\n .toolbar .export-menu button[hidden] { display: none; }\n .toolbar .export-menu button[data-action=\"route-share-card\"]:hover,\n .toolbar .export-menu button[data-action=\"reach-share-card\"]:hover {\n background: color-mix(in srgb, var(--frontend-stroke) 12%, transparent);\n }\n .toolbar .export-menu button:disabled {\n color: var(--text-faint);\n background: transparent;\n opacity: 0.55;\n cursor: not-allowed;\n }\n .toolbar .export-menu .hint {\n color: var(--text-faint);\n font-size: 0.6875rem;\n }\n\n /* Toast — brief feedback for actions like \"copied\" */\n .archify-toast {\n position: fixed;\n top: 1rem;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: var(--toolbar-menu-bg);\n color: var(--text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n opacity: 0;\n transition: opacity 0.2s, transform 0.2s;\n z-index: 200;\n pointer-events: none;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .archify-toast.show {\n opacity: 1;\n transform: translateX(-50%) translateY(0);\n }\n\n @media (max-width: 720px) {\n body { padding: 1rem; }\n .toolbar .preset-menu,\n .toolbar .export-menu {\n position: fixed;\n top: 4.5rem;\n right: 1rem;\n left: 1rem;\n width: auto;\n max-width: none;\n }\n .toolbar {\n position: relative;\n top: auto;\n right: auto;\n justify-content: flex-end;\n width: max-content;\n max-width: 100%;\n margin-left: auto;\n margin-bottom: 1rem;\n }\n .header { margin-bottom: 1.25rem; padding-right: 0; }\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 0; }\n .header-row {\n gap: 0.75rem;\n align-items: flex-start;\n }\n html[data-preset=\"signal-flow\"] .header-row,\n html[data-preset=\"blueprint\"] .header-row,\n html[data-preset=\"editorial\"] .header-row { flex-wrap: wrap; }\n html[data-preset=\"signal-flow\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n h1 {\n font-size: 1.25rem;\n line-height: 1.25;\n }\n .subtitle {\n margin-left: 0;\n font-size: 0.8125rem;\n line-height: 1.55;\n }\n .diagram-container {\n padding: 0.75rem;\n border-radius: 0.75rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container {\n padding: 0.75rem 0.75rem 4.25rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] {\n overflow-x: auto;\n overflow-y: hidden;\n overscroll-behavior-x: contain;\n scrollbar-width: thin;\n scroll-behavior: smooth;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n min-width: 720px;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-nav,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .overview-map,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .focus-chip,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .route-probe,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .semantic-lens,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-guide,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .node-finder {\n transform: translateX(var(--archify-scroll-x, 0px));\n }\n .diagram-nav { right: 0.5rem; bottom: 0.5rem; }\n .diagram-nav button {\n min-width: 2.75rem;\n height: 2.75rem;\n }\n .diagram-nav [data-view=\"reset\"] { min-width: 3.75rem; }\n .diagram-nav [data-view=\"reset\"][data-detail-visible] { min-width: 4.35rem; }\n .overview-map {\n right: 0.5rem;\n bottom: 3.7rem;\n width: min(10.25rem, calc(100% - 1rem));\n }\n .overview-map[data-docked=\"true\"] {\n right: var(--archify-radar-right, 0.5rem);\n top: var(--archify-radar-top, 0.5rem);\n bottom: auto;\n transform: none !important;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: var(--archify-radar-left, 0.5rem);\n }\n .overview-map-surface { height: 4rem; }\n .overview-map-feedback { right: 0.5rem; bottom: 3.7rem; }\n .semantic-lens {\n right: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n max-height: calc(100% - 4.2rem);\n }\n .semantic-lens[data-dock-side] { left: auto; right: 0.5rem; }\n .semantic-lens-kinds { max-height: min(12rem, 34vh); }\n .focus-chip {\n left: 0.5rem;\n top: 0.5rem;\n width: calc(100% - 1rem);\n max-width: none;\n }\n .relationship-lens-head { padding-top: 0.7rem; }\n .relationship-lens-drag-handle { display: none; }\n .relationship-lens-list { max-height: min(12rem, 38vh); }\n .relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-head { border-bottom-color: transparent; }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-list { display: none; }\n /* While a mobile reader previews one relationship, turn the full Lens\n into a compact peek card. This keeps the exact source and target on\n canvas instead of covering them with a long, scrollable list. */\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-list {\n max-height: none;\n padding: 0.35rem;\n overflow: hidden;\n }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group { margin: 0; }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group-title,\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-row:not([data-preview-active=\"true\"]) {\n display: none;\n }\n .node-finder {\n top: 0.5rem;\n left: 0.5rem;\n width: min(22rem, calc(100% - 1rem));\n max-height: calc(100% - 1rem);\n }\n .diagram-guide {\n top: 0.5rem;\n right: 0.5rem;\n left: 0.5rem;\n width: auto;\n max-height: calc(100% - 1rem);\n }\n .diagram-guide-head { padding: 0.62rem 0.7rem 0.52rem; }\n .diagram-guide-stats { padding: 0.42rem 0.7rem; }\n .diagram-guide-actions {\n grid-template-columns: 1fr;\n gap: 0.28rem;\n padding: 0.42rem;\n }\n .diagram-guide-action {\n min-height: 3.1rem;\n padding: 0.42rem 0.48rem;\n }\n .diagram-guide-action small {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-index {\n width: 1.5rem;\n height: 1.5rem;\n }\n .diagram-guide-shortcuts { padding: 0.46rem 0.7rem 0.52rem; }\n .diagram-guide-action[data-guide-action=\"present\"] { grid-column: auto; }\n .route-probe[data-guide-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .node-finder-results { max-height: min(16rem, 38vh); }\n .route-probe {\n left: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n min-width: 0;\n }\n .route-probe[data-route-dock=\"top\"] {\n top: 0.5rem;\n bottom: auto;\n }\n .route-probe[data-finder-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .route-probe-head { padding: 0.45rem 0.48rem 0.38rem; }\n .route-probe-path { padding: 0.35rem 0.48rem 0.2rem; }\n .route-probe-node { min-height: 2.75rem !important; }\n .route-journey-controls {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem minmax(0, 1fr);\n padding: 0.08rem 0.48rem 0.32rem;\n }\n .route-journey-controls button { min-height: 2.75rem; }\n .route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }\n .route-probe-node { max-width: 7.5rem; }\n \n \n \n \n \n \n \n \n \n \n \n html[data-embed=\"true\"][data-share-playback=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n html[data-embed=\"true\"][data-share-moment=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n \n .cards {\n grid-template-columns: 1fr;\n margin-top: 1rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body { padding: 0.5rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n gap: 0.5rem;\n height: calc(100dvh - 1rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar {\n position: fixed;\n top: 0.5rem;\n right: 0.5rem;\n margin: 0;\n gap: 0.25rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar button {\n min-height: 2.75rem;\n padding: 0.42rem 0.58rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n min-height: 2.25rem;\n padding: 3.5rem 0 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row {\n min-height: 2.25rem;\n margin: 0;\n align-items: center;\n flex-wrap: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row::after,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .pulse-dot,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) h1 {\n flex: 1 1 auto;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n font-size: 0.875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n \n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n width: 720px;\n height: auto;\n min-width: 720px;\n }\n }\n\n @media (max-width: 420px) {\n .export-menu-section { grid-template-columns: 1fr; }\n .export-menu-heading,\n .toolbar .export-menu button[data-action=\"route-share-card\"],\n .toolbar .export-menu button[data-action=\"reach-share-card\"] { grid-column: 1; }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .toolbar .preset-menu.open,\n .toolbar .export-menu.open { animation: none; }\n .toolbar-chevron { transition: none; }\n }\n\n @media (max-width: 360px) {\n .toolbar { gap: 0.25rem; }\n .toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }\n .toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }\n #theme-label, #preset-label, #present-label { display: none; }\n }\n\n /* ==========================================================\n SVG SEMANTIC CLASSES — use these instead of inline fill/stroke\n ========================================================== */\n .c-grid { stroke: var(--grid); fill: none; }\n .c-mask { fill: var(--mask); stroke: none; }\n .c-lane-rule { stroke: var(--lane-stroke); fill: none; opacity: 0.7; }\n .c-lane-wash { fill: var(--lane-fill); stroke: none; }\n\n .c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }\n .c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }\n .c-database { fill: var(--database-fill); stroke: var(--database-stroke); }\n .c-cloud { fill: var(--cloud-fill); stroke: var(--cloud-stroke); }\n .c-security { fill: var(--security-fill); stroke: var(--security-stroke); }\n .c-messagebus { fill: var(--messagebus-fill); stroke: var(--messagebus-stroke); }\n .c-external { fill: var(--external-fill); stroke: var(--external-stroke); }\n\n /* Text helpers */\n .t-primary { fill: var(--text); }\n .t-muted { fill: var(--text-muted); }\n .t-dim { fill: var(--text-dim); }\n .t-frontend { fill: var(--frontend-stroke); }\n .t-backend { fill: var(--backend-stroke); }\n .t-database { fill: var(--database-stroke); }\n .t-cloud { fill: var(--cloud-stroke); }\n .t-security { fill: var(--security-stroke); }\n .t-messagebus { fill: var(--messagebus-stroke); }\n .t-external { fill: var(--external-stroke); }\n\n /* Relationship labels share the exact color token used by their path. */\n .t-edge-default { fill: var(--arrow); }\n .t-edge-emphasis { fill: var(--arrow-emphasis); }\n .t-edge-security { fill: var(--security-stroke); }\n .t-edge-dashed { fill: var(--database-stroke); }\n\n /* Classic canvas: a quiet dot field replaces drafting grid lines, and nodes\n read as lifted cards with hairline strokes. Paint only; authored geometry,\n hit areas and exports keep their canonical shapes. */\n html[data-preset=\"classic\"] .diagram-container {\n background:\n radial-gradient(circle at 1px 1px, var(--canvas-dot) 1px, transparent 1.4px) 0 0 / 20px 20px,\n var(--panel);\n }\n html[data-preset=\"classic\"] .diagram-container \u003e svg .c-grid { stroke: transparent; }\n html[data-preset=\"classic\"][data-theme=\"light\"] .diagram-container \u003e svg [data-node-id] \u003e rect:not(.c-mask) {\n --ambient-node-base-filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));\n filter: var(--ambient-node-base-filter);\n }\n html[data-preset=\"classic\"][data-theme=\"dark\"] .diagram-container \u003e svg [data-node-id] \u003e rect:not(.c-mask) {\n --ambient-node-base-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));\n filter: var(--ambient-node-base-filter);\n }\n html[data-preset=\"classic\"] .diagram-container \u003e svg [data-edge-from] {\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n html[data-preset=\"classic\"] .diagram-container \u003e svg .c-lane-wash { fill: color-mix(in srgb, var(--text) 2.6%, transparent); }\n html[data-preset=\"classic\"] .diagram-container \u003e svg .c-lane-rule { stroke: var(--panel-border); opacity: 1; }\n html[data-preset=\"classic\"][data-theme=\"dark\"] .diagram-container \u003e svg .c-lane-rule { stroke: rgba(148, 163, 184, 0.16); }\n html[data-preset=\"classic\"] .diagram-container \u003e svg [data-node-id] {\n transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);\n }\n html[data-preset=\"classic\"]:not([data-motion=\"still\"]) .diagram-container \u003e svg [data-node-id]:hover {\n transform: translateY(-1.5px);\n }\n\n /* Semantic Sigils are small authored role stamps, not icons from a brand\n pack and not viewer controls. Prefix selectors with svg so the canonical\n export's SVG-only stylesheet collector keeps them automatically. */\n svg .semantic-sigil {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n opacity: 0.76;\n pointer-events: none;\n }\n svg .semantic-sigil \u003e * { vector-effect: non-scaling-stroke; }\n svg .semantic-sigil .sigil-fill { fill: currentColor; stroke: none; }\n svg .s-frontend { color: var(--frontend-stroke); }\n svg .s-backend { color: var(--backend-stroke); }\n svg .s-database { color: var(--database-stroke); }\n svg .s-cloud { color: var(--cloud-stroke); }\n svg .s-security { color: var(--security-stroke); }\n svg .s-messagebus { color: var(--messagebus-stroke); }\n svg .s-external { color: var(--external-stroke); }\n\n /* Brand Marks are authored identity badges. Their color is contained\n inside one neutral plate so vendor color never replaces Archify's\n semantic node and relationship vocabulary. */\n svg .brand-mark { pointer-events: none; }\n svg .brand-mark-badge { fill: #fff; stroke: none; }\n svg .brand-mark-frame {\n fill: none;\n stroke: #cbd5e1;\n stroke-width: 0.8;\n vector-effect: non-scaling-stroke;\n }\n svg .brand-mark-fallback {\n fill: none;\n stroke: #475569;\n stroke-width: 1.15;\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n svg[data-preset=\"blueprint\"] .brand-mark-badge,\n svg[data-preset=\"blueprint\"] .brand-mark-frame { rx: 1px; }\n\n /* Reading Depth is a viewer-only level-of-detail layer. MAP preserves the\n authored structure and primary labels, READ restores relationship labels\n and node context, and FULL restores tags and fine annotations. Semantic\n intent can reveal the relevant detail without moving any geometry. */\n svg [data-detail] { transition: opacity 160ms ease; }\n svg [data-detail-anchor] {\n transform-box: fill-box;\n transform-origin: center;\n transition: transform 160ms ease;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"context\"],\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"fine\"],\n .diagram-container[data-detail-level=\"read\"] svg [data-detail=\"fine\"] {\n opacity: 0;\n pointer-events: none;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail-anchor] {\n transform: translateY(8px);\n }\n\n /* Focus, lens, preview, route, and story states are stronger reader intent than\n the global zoom level. Reveal only their exact semantic matches. */\n svg[data-focus-active] [data-focus-match][data-detail],\n svg[data-focus-active] [data-focus-match] [data-detail],\n svg[data-reach-active] [data-reach-match][data-detail],\n svg[data-reach-active] [data-reach-match] [data-detail],\n svg[data-lens-active] [data-lens-match][data-detail],\n svg[data-lens-active] [data-lens-match] [data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match][data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match][data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],\n svg[data-route-active] [data-route-match][data-detail],\n svg[data-route-active] [data-route-match] [data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview][data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],\n svg [data-node-id]:hover [data-detail],\n svg [data-node-id]:focus-visible [data-detail] {\n opacity: 1;\n pointer-events: auto;\n }\n svg[data-focus-active] [data-focus-match] [data-detail-anchor],\n svg[data-reach-active] [data-reach-match] [data-detail-anchor],\n svg[data-lens-active] [data-lens-match] [data-detail-anchor],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],\n svg[data-route-active] [data-route-match] [data-detail-anchor],\n svg [data-node-id]:hover [data-detail-anchor],\n svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }\n\n /* Arrows */\n .a-default { stroke: var(--arrow); fill: none; }\n .a-emphasis { stroke: var(--arrow-emphasis); fill: none; }\n .a-security { stroke: var(--security-stroke); fill: none; stroke-dasharray: 5,5; }\n .a-dashed { stroke: var(--database-stroke); fill: none; stroke-dasharray: 4,4; }\n\n /* Arrowhead markers reference these */\n .m-default { fill: var(--arrow); }\n .m-emphasis { fill: var(--arrow-emphasis); }\n .m-security { fill: var(--security-stroke); }\n .m-dashed { fill: var(--database-stroke); }\n\n /* Stable semantic exploration hooks emitted by every renderer. */\n svg [data-node-id] {\n cursor: pointer;\n transition: opacity 0.18s ease, fill-opacity 0.18s ease, stroke-opacity 0.18s ease, filter 0.18s ease;\n }\n svg [data-edge-from],\n svg [data-graph-role=\"automatic-crossover-underlay\"] { transition: opacity 0.18s ease, filter 0.18s ease; }\n svg [data-node-id]:hover,\n svg [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n outline: none;\n }\n svg [data-legend-kind][role=\"button\"] { cursor: pointer; }\n svg [data-legend-kind]:focus { outline: none; }\n svg [data-legend-hit] {\n fill: transparent;\n stroke: transparent;\n stroke-width: 1.4;\n pointer-events: all;\n vector-effect: non-scaling-stroke;\n transition: stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;\n }\n svg [data-legend-count-badge] { pointer-events: none; }\n svg [data-legend-count-badge] rect {\n fill: var(--mask);\n stroke: var(--panel-border);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n svg [data-legend-count-badge] text {\n fill: var(--text-muted);\n font-size: 8px;\n font-weight: 700;\n text-anchor: middle;\n }\n svg [data-legend-kind][role=\"button\"]:hover [data-legend-hit] {\n stroke: color-mix(in srgb, var(--database-stroke) 58%, transparent);\n }\n svg [data-legend-kind][role=\"button\"]:focus-visible [data-legend-hit] {\n stroke: var(--frontend-stroke);\n stroke-width: 1.8;\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-hit] {\n stroke: var(--database-stroke);\n stroke-width: 2.2;\n stroke-dasharray: 3 2;\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-count-badge] rect {\n stroke: var(--database-stroke);\n stroke-width: 1.8;\n }\n svg [data-legend-kind][data-legend-zero] { opacity: 0.44; }\n svg[data-preset=\"signal-flow\"] [data-legend-kind][data-legend-selected] [data-legend-hit] {\n filter: drop-shadow(0 0 4px var(--database-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-legend-hit],\n svg[data-preset=\"blueprint\"] [data-legend-count-badge] rect { rx: 0; filter: none; }\n svg[data-legend-preview-active] [data-node-id],\n svg[data-legend-preview-active] [data-edge-from] { opacity: 0.11; }\n svg[data-legend-preview-active] [data-legend-preview-match] { opacity: 1; }\n svg[data-legend-preview-active] [data-legend-preview-peer] { opacity: 0.62; }\n svg[data-legend-preview-active] [data-legend-preview-selected] {\n filter: drop-shadow(0 0 8px var(--database-stroke));\n }\n svg[data-lens-active] [data-node-id],\n svg[data-lens-active] [data-edge-from] { opacity: 0.11; }\n svg[data-lens-active] [data-lens-match] { opacity: 1; }\n svg[data-lens-active] [data-lens-peer] { opacity: 0.62; }\n svg[data-lens-active] [data-lens-selected] {\n filter: drop-shadow(0 0 10px var(--database-stroke));\n }\n .semantic-lens-overlay { pointer-events: none; }\n .semantic-lens-flow {\n fill: none;\n stroke-width: 3.05;\n stroke-linecap: round;\n stroke-dasharray: 0.075 0.925;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.9;\n animation: archify-semantic-lens-flow 1.35s linear 1 both;\n animation-delay: var(--lens-flow-delay, 0s);\n }\n .semantic-lens-flow[data-direction=\"out\"],\n .semantic-lens-flow[data-direction=\"forward\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n .semantic-lens-flow[data-direction=\"in\"],\n .semantic-lens-flow[data-direction=\"reverse\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 3px var(--database-stroke));\n }\n .semantic-lens-flow[data-direction=\"within\"] {\n stroke: var(--messagebus-stroke);\n filter: drop-shadow(0 0 3px var(--messagebus-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow {\n stroke-width: 3.7;\n opacity: 1;\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"out\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"forward\"] {\n filter: drop-shadow(0 0 6px var(--frontend-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"in\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"reverse\"] {\n filter: drop-shadow(0 0 6px var(--database-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"within\"] {\n filter: drop-shadow(0 0 6px var(--messagebus-stroke));\n }\n svg[data-preset=\"blueprint\"] .semantic-lens-flow {\n stroke-width: 2.45;\n stroke-linecap: square;\n filter: none;\n opacity: 0.78;\n }\n html[data-embed=\"true\"] .semantic-lens-overlay { display: none; }\n /* Automatic crossover masks are visual companions of their one semantic\n edge. Keep the mask free of data-edge-* identity so graph traversal and\n export still observe exactly one edge, then mirror reader emphasis from\n the paired foreground path in this presentation-only wrapper. */\n svg[data-legend-preview-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n svg[data-lens-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.11; }\n svg[data-legend-preview-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-legend-preview-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n svg[data-lens-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-lens-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-legend-preview-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-legend-preview-peer]) \u003e [data-graph-role=\"automatic-crossover-underlay\"],\n svg[data-lens-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-lens-peer]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.62; }\n svg[data-focus-active] [data-node-id],\n svg[data-focus-active] [data-edge-from] { opacity: 0.13; }\n svg[data-focus-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.13; }\n svg[data-focus-active] [data-lifecycle-rail] { opacity: 0; }\n svg[data-focus-active] [data-focus-match] { opacity: 1; }\n svg[data-focus-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-focus-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n\n /* Authored Reachability is a bounded graph query over the relationships\n already present in the artifact. Upstream walks incoming edges;\n downstream walks outgoing edges. It never claims runtime causality and\n changes only viewer emphasis, not canonical geometry or export bytes. */\n svg[data-reach-active] [data-node-id],\n svg[data-reach-active] [data-edge-from] { opacity: 0.09; }\n svg[data-reach-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.09; }\n svg[data-reach-active] [data-reach-match] { opacity: 1; }\n svg[data-reach-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-reach-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-reach-active=\"upstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--database-stroke));\n }\n svg[data-reach-active=\"downstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--backend-stroke));\n }\n svg[data-reach-active=\"upstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--database-stroke) 72%, transparent));\n }\n svg[data-reach-active=\"downstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"blueprint\"][data-reach-active] [data-reach-origin],\n svg[data-preset=\"blueprint\"][data-reach-active] [data-edge-from][data-reach-match] {\n filter: none;\n }\n\n /* Direct Relationship Explorer makes authored paths a real input surface\n without changing their visible stroke or canonical SVG. A transparent\n runtime rail supplies forgiving pointer geometry; the exact authored\n path and endpoints continue to carry every visible state. */\n .relationship-hit-overlay { pointer-events: none; }\n .relationship-hit-target { outline: none; }\n .relationship-hit-rail {\n fill: none;\n stroke: transparent;\n stroke-width: 24;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: stroke;\n cursor: pointer;\n }\n .relationship-focus-rail {\n fill: none;\n stroke: color-mix(in srgb, var(--frontend-stroke) 34%, transparent);\n stroke-width: 6;\n stroke-dasharray: 2 4;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n opacity: 0;\n }\n .relationship-hit-target:focus-visible .relationship-focus-rail {\n opacity: 1;\n }\n svg[data-preset=\"blueprint\"] .relationship-hit-target:focus-visible .relationship-focus-rail {\n stroke-linecap: square;\n filter: none;\n }\n svg[data-relationship-direct-active] [data-node-id],\n svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }\n svg[data-relationship-direct-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.16; }\n svg[data-relationship-direct-active] [data-relationship-preview],\n svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-relationship-direct-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-relationship-preview]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,\n svg[data-route-picking] .relationship-hit-rail,\n svg[data-route-active] .relationship-hit-rail,\n svg[data-lens-active] .relationship-hit-rail { pointer-events: none; }\n html[data-embed=\"true\"] .relationship-hit-overlay { display: none; }\n @media (hover: none), (pointer: coarse) {\n .relationship-hit-rail { stroke-width: 24; }\n }\n\n /* Relationship Preview is temporary exploration state layered on top of\n neighborhood focus. It changes emphasis only; exported geometry and the\n relationship's original solid/dashed visual language stay untouched. */\n svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }\n svg[data-relationship-preview-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-focus-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.18; }\n svg[data-relationship-preview-active] [data-lifecycle-rail] { opacity: 0; }\n svg[data-relationship-preview-active] [data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-relationship-preview-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-relationship-preview]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-relationship-preview-active] [data-relationship-preview] {\n filter: drop-shadow(0 0 5px var(--arrow-emphasis));\n }\n svg[data-relationship-preview-active] [data-relationship-preview] path,\n svg[data-relationship-preview-active] path[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] line,\n svg[data-relationship-preview-active] line[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] polyline,\n svg[data-relationship-preview-active] polyline[data-relationship-preview] {\n stroke-width: 2.75;\n }\n svg[data-relationship-preview-active] [data-relationship-preview-source] {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 7px var(--database-stroke));\n }\n .relationship-pulse-overlay { pointer-events: none; }\n .relationship-flow-pulse {\n fill: none;\n stroke: var(--arrow-emphasis);\n stroke-width: 3.35;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 4px var(--arrow-emphasis));\n animation: archify-relationship-pulse 1.2s linear 1 both;\n }\n svg[data-preset=\"signal-flow\"] .relationship-flow-pulse {\n stroke: var(--frontend-stroke);\n stroke-width: 3.85;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"] .relationship-flow-pulse {\n stroke-width: 2.5;\n stroke-linecap: square;\n filter: none;\n }\n svg[data-preset=\"editorial\"] .relationship-flow-pulse {\n stroke: var(--arrow-emphasis);\n stroke-width: 2.75;\n filter: none;\n }\n .semantic-flow-token {\n color: var(--frontend-stroke);\n opacity: 0;\n pointer-events: none;\n }\n .relationship-flow-token {\n animation: archify-relationship-token-life 1.2s linear 1 both;\n }\n\n .semantic-flow-token-halo {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.1;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n }\n .relationship-flow-token-shape {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-ink {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.05;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-dot { fill: currentColor; stroke: none; }\n .semantic-flow-token[data-token-kind=\"data\"] { color: var(--database-stroke); }\n .semantic-flow-token[data-token-kind=\"event\"] { color: var(--messagebus-stroke); }\n .semantic-flow-token[data-token-kind=\"security\"] { color: var(--security-stroke); }\n .semantic-flow-token[data-token-kind=\"state\"] { color: var(--cloud-stroke); }\n svg[data-preset=\"signal-flow\"] .semantic-flow-token {\n filter: drop-shadow(0 0 5px currentColor);\n }\n svg[data-preset=\"blueprint\"] .semantic-flow-token { filter: none; }\n svg[data-preset=\"editorial\"] .semantic-flow-token { filter: none; }\n html[data-embed=\"true\"] .relationship-pulse-overlay { display: none; }\n\n /* Intent Trace is a temporary, pre-click exploration layer. Related\n topology stays readable while a short viewer-only signal runs over\n cloned edge geometry; the authored edge remains untouched underneath. */\n /* Keep the node's opaque backing mask intact while its visible ink dims.\n Fading the whole group also fades that mask and briefly exposes arrows\n routed underneath the node when the pointer leaves. */\n svg[data-intent-trace-active] [data-node-id] { fill-opacity: 0.2; stroke-opacity: 0.2; }\n svg [data-node-id] \u003e .c-mask { fill-opacity: 1; }\n svg[data-intent-trace-active] [data-node-id][data-intent-trace-match] { fill-opacity: 1; stroke-opacity: 1; }\n svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }\n svg[data-intent-trace-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.2; }\n svg[data-intent-trace-active] [data-lifecycle-rail] { opacity: 0; }\n svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }\n svg[data-intent-trace-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-intent-trace-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-intent-trace-active] [data-intent-trace-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n .intent-trace-overlay { pointer-events: none; }\n .intent-trace-flow {\n fill: none;\n stroke-width: 3.1;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.94;\n animation: archify-intent-trace-flow 1.15s linear 1 both;\n }\n /* Direction names describe each edge relative to the focused node only.\n The cloned geometry already runs from the authored source to target, so\n incoming and outgoing signals must share the same playback direction. */\n .intent-trace-flow[data-direction=\"out\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 4px var(--frontend-stroke));\n }\n .intent-trace-flow[data-direction=\"in\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 4px var(--database-stroke));\n animation-direction: normal;\n }\n .intent-trace-flow[data-direction=\"loop\"] {\n stroke: var(--security-stroke);\n filter: drop-shadow(0 0 4px var(--security-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-intent-trace-selected],\n svg[data-preset=\"blueprint\"] .intent-trace-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-intent-trace-selected],\n svg[data-preset=\"editorial\"] .intent-trace-flow { filter: none; }\n .intent-trace-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n /* Route Probe separates a durable two-point query from selection and\n one-hop hover. Only the chosen shortest directed path stays prominent;\n the traveling signal is cloned viewer geometry and never authored SVG. */\n svg[data-route-picking=\"target\"] [data-node-id] { opacity: 0.24; }\n svg[data-route-picking=\"target\"] [data-route-candidate],\n svg[data-route-picking=\"target\"] [data-route-start] { opacity: 1; }\n svg[data-route-picking] [data-node-id] { cursor: crosshair; }\n svg[data-route-picking] [data-route-start] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n svg[data-route-active] [data-node-id],\n svg[data-route-active] [data-edge-from] { opacity: 0.11; }\n svg[data-route-active] [data-graph-role=\"automatic-crossover\"] \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.11; }\n svg[data-route-active] [data-route-match] { opacity: 1; }\n svg[data-route-active] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-route-match]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-route-active] [data-route-start] {\n filter: drop-shadow(0 0 11px var(--frontend-stroke));\n }\n svg[data-route-active] [data-route-end] {\n filter: drop-shadow(0 0 11px var(--security-stroke));\n }\n svg[data-route-active] [data-route-step]:not([data-route-start]):not([data-route-end]) {\n filter: drop-shadow(0 0 7px var(--backend-stroke));\n }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"past\"] { opacity: 0.62; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"future\"] { opacity: 0.34; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"current\"] { opacity: 1; }\n svg[data-route-journey] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-route-match][data-route-journey-state=\"past\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.62; }\n svg[data-route-journey] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-route-match][data-route-journey-state=\"future\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.34; }\n svg[data-route-journey] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-route-match][data-route-journey-state=\"current\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n svg[data-route-journey] [data-node-id][data-route-journey-current] {\n filter: drop-shadow(0 0 10px var(--backend-stroke));\n }\n svg[data-route-journey] [data-edge-from][data-route-journey-current] {\n opacity: 1;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n }\n .route-probe-overlay { pointer-events: none; }\n .route-journey-overlay { pointer-events: none; }\n .route-probe-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.25;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n filter: drop-shadow(0 0 5px var(--backend-stroke));\n animation: archify-route-probe-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n animation-delay: calc(var(--route-step, 0) * 0.16s);\n }\n .route-journey-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.5;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n animation: archify-route-journey-flow 780ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n }\n svg[data-preset=\"blueprint\"] [data-route-start],\n svg[data-preset=\"blueprint\"] [data-route-end],\n svg[data-preset=\"blueprint\"] [data-route-step],\n svg[data-preset=\"blueprint\"] .route-probe-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"blueprint\"] .route-journey-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-route-start],\n svg[data-preset=\"editorial\"] [data-route-end],\n svg[data-preset=\"editorial\"] [data-route-step],\n svg[data-preset=\"editorial\"] .route-probe-flow,\n svg[data-preset=\"editorial\"] .route-journey-flow { filter: none; }\n\n svg[data-preset=\"editorial\"] .c-grid {\n stroke-dasharray: 1 4;\n opacity: 0.48;\n }\n svg[data-preset=\"editorial\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);\n stroke-dasharray: 9 4;\n }\n svg[data-preset=\"editorial\"] [data-node-id]:hover,\n svg[data-preset=\"editorial\"] [data-node-id]:focus-visible,\n svg[data-preset=\"editorial\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));\n }\n\n svg[data-preset=\"blueprint\"] .c-grid {\n stroke-dasharray: 1 3;\n opacity: 0.78;\n }\n svg[data-preset=\"blueprint\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 58%, transparent);\n stroke-dasharray: 12 4 2 4;\n }\n svg[data-preset=\"blueprint\"] .c-security-group,\n svg[data-preset=\"blueprint\"] .c-lane { stroke-dasharray: 7 3; }\n svg[data-preset=\"blueprint\"] [data-node-id]:hover,\n svg[data-preset=\"blueprint\"] [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active][data-reach-active] [data-focus-selected][data-reach-origin] {\n filter: none;\n }\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-source],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n\n /* Dashed boundary variants */\n .c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }\n .c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }\n .c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }\n\n /* Live turns each edge into a small light show on one shared cycle: a comet\n (halo, tail, head — plus a dimmer echo, half a travel window behind on long\n edges and half a cycle behind on short ones) cascades downstream, leaves a\n soft wake, and lands as a ripple on the target node. Short edges carry a\n proportionally larger comet with a brightness boost so compact diagrams read\n as alive as sprawling ones. Original line language and markers remain\n static. Each edge's phase follows the authored step order — source-node\n rank, or chronological order in sequence diagrams — so the whole diagram\n ripples downstream instead of marching uniformly. Node entry is bounded to\n one pass per document, then a soft node glow follows the authored step\n order. */\n svg[data-animation=\"trace\"] {\n --flow-cycle: 6.4s;\n --flow-step-delay: 0.2s;\n --flow-halo-peak: 0.17;\n --flow-glow-peak: 0.5;\n --flow-tail-peak: 0.42;\n --flow-head-peak: 0.95;\n --flow-wake-peak: 0.1;\n --flow-ripple-peak: 0.65;\n --flow-ripple-echo-peak: 0.26;\n }\n .ambient-edge-flow {\n fill: none;\n stroke: var(--arrow-emphasis);\n stroke-linecap: round;\n pointer-events: none;\n display: none;\n }\n .ambient-flow-wake {\n stroke-width: 3.2;\n stroke-dasharray: var(--flow-dasharray, none);\n animation-name: archify-flow-wake;\n }\n .ambient-flow-halo {\n stroke-width: 6;\n stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));\n animation-name: archify-cascade-halo;\n }\n /* A wide blurred streak centered on the head: this is the bloom that makes\n the comet read as a traveling orb of light rather than a bright dash. */\n .ambient-flow-glow {\n stroke-width: 9;\n stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));\n filter: blur(2.5px);\n animation-name: archify-cascade-glow;\n }\n .ambient-flow-tail {\n stroke-width: 2.4;\n stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));\n animation-name: archify-cascade-tail;\n }\n .ambient-flow-head {\n stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);\n stroke-width: 2.6;\n stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));\n animation-name: archify-cascade-head;\n }\n .ambient-flow-head.echo { --flow-echo-scale: 0.76; }\n .ambient-flow-tail.echo { --flow-echo-scale: 0.53; }\n .ambient-flow-ripple {\n stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, white);\n stroke-width: 2;\n animation-name: archify-flow-ripple;\n }\n .ambient-flow-ripple-echo {\n stroke-width: 1.2;\n animation-name: archify-flow-ripple-echo;\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) .ambient-edge-flow {\n display: inline;\n animation-duration: var(--flow-cycle, 6.4s);\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n animation-delay: var(--flow-delay, 0s);\n /* Without backwards fill a delayed layer would sit at its natural opacity\n (fully lit) until its phase arrives. */\n animation-fill-mode: backwards;\n }\n /* Each decorative flow follows its owning edge through tree visibility. */\n .ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }\n svg[data-preset=\"signal-flow\"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }\n svg[data-preset=\"blueprint\"] .ambient-edge-flow { stroke-linecap: square; }\n svg[data-preset=\"editorial\"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }\n /* On light canvases the cascade reads by saturation instead of bloom: the\n head and inner ripple mix toward ink instead of white, and every layer's\n peak rises so the wave survives the bright background. */\n html[data-theme=\"light\"] svg[data-animation=\"trace\"] {\n --flow-halo-peak: 0.22;\n --flow-glow-peak: 0.4;\n --flow-tail-peak: 0.5;\n --flow-wake-peak: 0.13;\n --flow-ripple-echo-peak: 0.3;\n }\n html[data-theme=\"light\"] .ambient-flow-head {\n stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);\n stroke-width: 2.8;\n }\n html[data-theme=\"light\"] .ambient-flow-ripple {\n stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);\n }\n html[data-ambient-entry=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n transform-box: fill-box;\n transform-origin: center;\n animation: archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-entry=\"running\"] svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-entry=\"running\"] svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-entry=\"running\"] svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n /* Node glow follows each node's authored step on the shared cycle; it does\n not track incoming edge arrivals. During the bounded entrance all three\n animations run; the entrance pulse is listed after the repeating glow and\n wins on filter until it completes. */\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s));\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),\n archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry=\"running\"] svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),\n archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry=\"running\"] svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),\n archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"][data-motion=\"live\"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry=\"running\"] svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),\n archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),\n archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);\n }\n @keyframes archify-flow-wake {\n 0% { opacity: 0; }\n 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }\n 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }\n 82%, 100% { opacity: 0; }\n }\n @keyframes archify-cascade-halo {\n 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }\n 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }\n 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }\n 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }\n 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }\n 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }\n }\n @keyframes archify-cascade-glow {\n 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }\n 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }\n 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }\n 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }\n 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }\n 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }\n }\n @keyframes archify-cascade-tail {\n 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }\n 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }\n 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }\n 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }\n 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }\n 68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }\n }\n @keyframes archify-cascade-head {\n 0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }\n 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }\n 15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }\n 48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }\n 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }\n 68%, 100% { stroke-dashoffset: 0; opacity: 0; }\n }\n @keyframes archify-flow-ripple {\n 0%, 60% { r: 2px; opacity: 0; }\n 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }\n 78%, 100% { r: 20px; opacity: 0; }\n }\n @keyframes archify-flow-ripple-echo {\n 0%, 63% { r: 2px; opacity: 0; }\n 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }\n 84%, 100% { r: 30px; opacity: 0; }\n }\n @keyframes archify-node-receive {\n 0%, 100% { filter: var(--ambient-node-base-filter, none); }\n 5%, 12% { filter: var(--ambient-node-base-filter,) drop-shadow(0 0 9px var(--arrow-emphasis)); }\n }\n @keyframes archify-node-enter {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @media print {\n .ambient-edge-flow { display: none !important; animation: none !important; }\n svg[data-animation=\"trace\"] [data-animate=\"node\"] { animation: none !important; }\n }\n @keyframes archify-node-pulse {\n 0%, 72%, 100% { filter: none; stroke-width: 1.5; }\n 18%, 36% {\n filter: drop-shadow(0 0 8px var(--arrow-emphasis));\n stroke-width: 2.4;\n }\n }\n @keyframes archify-blueprint-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }\n }\n @keyframes archify-editorial-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }\n }\n @keyframes archify-signal-scan {\n 0%, 18% { opacity: 1; transform: translateX(-70%); }\n 70% { opacity: 1; transform: translateX(70%); }\n 100% { opacity: 0; transform: translateX(70%); }\n }\n @keyframes archify-radar-live {\n 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }\n 55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }\n }\n\n @keyframes archify-intent-trace-flow {\n 0% { opacity: 0.28; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.94; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-route-probe-flow {\n 0% { stroke-dashoffset: 0; opacity: 0.96; }\n 78% { stroke-dashoffset: -1; opacity: 0.96; }\n 100% { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.58; }\n }\n @keyframes archify-route-journey-flow {\n 0% { opacity: 0.16; stroke-dashoffset: 0; }\n 14%, 76% { opacity: 1; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-semantic-lens-flow {\n 0% { opacity: 0.2; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.9; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-pulse {\n 0% { opacity: 0.18; stroke-dashoffset: 0; }\n 10%, 76% { opacity: 0.98; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-token-life {\n 0%, 7% { opacity: 0; }\n 13%, 82% { opacity: 1; }\n 100% { opacity: 0; }\n }\n\n @keyframes archify-share-cue-enter {\n from { opacity: 0; transform: translate(-50%, -0.45rem); }\n to { opacity: 1; transform: translate(-50%, 0); }\n }\n @keyframes archify-share-cue-pulse {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 50% { opacity: 0.48; transform: scale(0.78); }\n }\n @media (prefers-reduced-motion: reduce) {\n .ambient-edge-flow { display: none !important; animation: none !important; }\n html[data-preset=\"signal-flow\"] .diagram-container::before {\n animation: none !important;\n }\n .pulse-dot { animation: none !important; }\n .motion-control-dot { animation: none !important; }\n svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n svg[data-animation=\"trace\"] [data-graph-role=\"automatic-crossover\"]:has(\u003e [data-animate=\"edge\"]) \u003e [data-graph-role=\"automatic-crossover-underlay\"] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n .intent-trace-flow,\n .route-probe-flow,\n .semantic-lens,\n .diagram-guide,\n .overview-map-live { animation: none !important; }\n \n .intent-trace-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n .route-probe-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.78;\n }\n .route-journey-overlay { display: none !important; }\n .semantic-lens-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-width: 2.2;\n opacity: 0.34;\n filter: none;\n }\n .relationship-pulse-overlay { display: none !important; }\n svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }\n }\n ";let activeIndex = -1;let playbackToken = 0;let playbackTimer = 0;diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.jsonindex 53d7cf87..a51301ab 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": "df70a4451ea70f2405972ae433974238edf6b60290aad93793a4ae4c373ff6cd",- "bytes": 2218244+ "sha256": "f82067a1b53fa42ee3134b24e66f3184d074bd9f5ef97241b1bb20e4383a20b8",+ "bytes": 2228235},"validation": {"checksPassed": 28,diff --git a/examples/class-payment-processors-rendered.html b/examples/class-payment-processors-rendered.htmlindex 99f5a260..d675d366 100644--- a/examples/class-payment-processors-rendered.html+++ b/examples/class-payment-processors-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5677,7 +5698,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7590,10 +7611,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7606,9 +7627,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7617,20 +7641,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7645,6 +7673,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7667,7 +7696,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7688,8 +7717,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7839,7 +7868,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14283,7 +14312,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14383,7 +14414,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14402,6 +14435,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/class-payments-rendered.html b/examples/class-payments-rendered.htmlindex c533babd..93df1841 100644--- a/examples/class-payments-rendered.html+++ b/examples/class-payments-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5483,7 +5504,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7396,10 +7417,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7412,9 +7433,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7423,20 +7447,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7451,6 +7479,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7473,7 +7502,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7494,8 +7523,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7645,7 +7674,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14089,7 +14118,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14189,7 +14220,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14208,6 +14241,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.htmlindex bba091cb..8cb4af58 100644--- a/examples/dataflow-product-analytics.html+++ b/examples/dataflow-product-analytics.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5563,7 +5584,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7510,10 +7531,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7526,9 +7547,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7537,20 +7561,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7565,6 +7593,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7587,7 +7616,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7608,8 +7637,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7759,7 +7788,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14203,7 +14232,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14303,7 +14334,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14322,6 +14355,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/erd-orders-rendered.html b/examples/erd-orders-rendered.htmlindex 0e4c938e..b4967214 100644--- a/examples/erd-orders-rendered.html+++ b/examples/erd-orders-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5731,7 +5752,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7678,10 +7699,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7694,9 +7715,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7705,20 +7729,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7733,6 +7761,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7755,7 +7784,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7776,8 +7805,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7927,7 +7956,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14371,7 +14400,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14471,7 +14502,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14490,6 +14523,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.htmlindex ed85d781..23f114cb 100644--- a/examples/lifecycle-agent-run.html+++ b/examples/lifecycle-agent-run.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5589,7 +5610,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7522,10 +7543,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7538,9 +7559,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7549,20 +7573,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7577,6 +7605,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7599,7 +7628,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7620,8 +7649,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7771,7 +7800,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14215,7 +14244,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14315,7 +14346,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14334,6 +14367,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/maka-architecture.html b/examples/maka-architecture.htmlindex e5245efe..3025601a 100644--- a/examples/maka-architecture.html+++ b/examples/maka-architecture.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.17.0-dev.1">+ <meta name="generator" content="archify 3.0.2-dev.1"><meta name="archify-reader-contract" content="declared-wide-v1"><title>Maka Diagram</title><script>@@ -218,7 +218,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.[data-theme="light"] {--bg: #f4f5f7;--grid: #e9edf2;- --canvas-dot: #d9dee5;+ --canvas-dot: #e2e7ec;--text: #111827;--text-muted: #5b6474;--text-dim: #9aa3b2;@@ -599,15 +599,35 @@ OTHER DEALINGS IN THE FONT SOFTWARE.color: var(--frontend-stroke);}- /* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored- SVG/viewBox while the runtime chooses a desktop width from the actual- vertical budget. This avoids device-specific files and breakpoint- jumps between a laptop and a tall monitor. */+ /* The reader owns only the outer scale. Compact automatic sequences fit at+ their authored text size or larger. Long sequences and waterfall rows+ favor reading width and page scroll; other diagrams keep height fitting.+ Small automatic canvases retain a modest scale inside a usable shell.+ Every strategy preserves the authored SVG/viewBox and semantic geometry. */.container {width: 100%;max-width: var(--archify-reader-width, 1440px);margin: 0 auto;}+ html[data-reader-area="true"] .diagram-container {+ min-height: var(--archify-diagram-min-height);+ display: flex;+ align-items: center;+ }+ html[data-reader-area="true"] .diagram-container > svg { flex-shrink: 0; }+ /* The original SVG legend can use the outer corner while the capped or fitted+ diagram stays centered. The container still clips all outer paint. */+ .diagram-container:has([data-reader-legend-corner]) > svg { overflow: visible; }+ .diagram-container [data-reader-legend-corner] {+ transform-origin: 0 0;+ transform-box: view-box;+ transform: var(--archify-reader-legend-transform);+ }+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {+ min-width: 0;+ max-width: var(--archify-diagram-max-width);+ margin-inline: auto;+ }@media (min-width: 768px) and (max-height: 920px) {.header { margin-bottom: 1rem; }.diagram-container { padding: 1rem; }@@ -806,7 +826,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.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 {+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-entry="running"] .diagram-container::before {content: "";position: absolute;inset: 0;@@ -988,8 +1008,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}.diagram-nav-icon {display: block;- width: 0.875rem;- height: 0.875rem;+ width: 0.95rem;+ height: 0.95rem;margin: auto;background: currentColor;-webkit-mask-position: center;@@ -1053,8 +1073,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE..diagram-nav #btn-overview-map::before,.diagram-nav #btn-semantic-lens::before {flex: none;- width: 0.875rem;- height: 0.875rem;+ width: 0.95rem;+ height: 0.95rem;background: currentColor;content: "";opacity: 0.85;@@ -1068,21 +1088,33 @@ OTHER DEALINGS IN THE FONT SOFTWARE..diagram-nav [data-view="out"],.diagram-nav [data-view="reset"],.diagram-nav [data-view="in"] {+ position: relative;border-radius: 0;- background: color-mix(in srgb, var(--text) 4.5%, transparent);+ background: color-mix(in srgb, var(--panel-border) 38%, transparent);}.diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }.diagram-nav [data-view="out"]::before { display: none; }.diagram-nav [data-view="reset"],.diagram-nav [data-view="in"] { margin-left: -0.0625rem; }.diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }+ .diagram-nav [data-view="reset"]::after,+ .diagram-nav [data-view="in"]::after {+ position: absolute;+ top: 0.55rem;+ bottom: 0.55rem;+ left: 0;+ width: 1px;+ background: color-mix(in srgb, var(--panel-border) 75%, transparent);+ content: "";+ pointer-events: none;+ }.diagram-nav [data-view="out"]:hover,.diagram-nav [data-view="reset"]:hover,- .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--panel-border) 60%, transparent); }.diagram-nav [data-view="out"]:disabled,.diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }.diagram-nav [data-view="out"]:disabled:hover,- .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--panel-border) 38%, transparent); }.diagram-nav [data-view="reset"] { min-width: 3.25rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav-detail,.diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }@@ -2326,7 +2358,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.gap: 0.55rem;margin: 0 0.55rem 0.55rem;padding: 0 0.7rem;- min-height: 2.6rem;+ min-height: 2.35rem;border: 1px solid var(--toolbar-border);border-radius: 0.55rem;background: color-mix(in srgb, var(--panel) 78%, transparent);@@ -2336,7 +2368,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE..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);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 14%, transparent);}.node-finder-input {appearance: none;@@ -2374,6 +2406,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.background: color-mix(in srgb, var(--panel) 54%, transparent);scroll-padding-block: 0.25rem;scrollbar-width: thin;+ scrollbar-color: color-mix(in srgb, var(--panel-border) 90%, transparent) transparent;+ }+ /* Slim overlay-style thumb instead of the chunky platform default. */+ .node-finder-results::-webkit-scrollbar { width: 10px; }+ .node-finder-results::-webkit-scrollbar-track { background: transparent; }+ .node-finder-results::-webkit-scrollbar-thumb {+ background: color-mix(in srgb, var(--panel-border) 85%, transparent);+ border: 3px solid transparent;+ border-radius: 999px;+ background-clip: padding-box;+ }+ .node-finder-results::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--text-muted) 65%, transparent);+ border: 3px solid transparent;+ background-clip: padding-box;}html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }.node-finder-result {@@ -2381,8 +2428,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.grid-template-columns: minmax(0, 1fr) auto;gap: 0.2rem 0.75rem;width: 100%;- min-height: 3.25rem;- padding: 0.58rem 0.65rem;+ min-height: 3rem;+ padding: 0.52rem 0.65rem;border: 0;border-radius: 0;background: transparent;@@ -2423,6 +2470,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.font-size: 0.625rem;font-style: normal;}+ /* A zero count is absence, not information — let it recede. */+ .node-finder-result em[data-zero] { color: var(--text-faint); }.node-finder[data-context^="route-"] .node-finder-result em {padding: 0.1rem 0.3rem;border: 1px solid color-mix(in srgb, currentColor 52%, transparent);@@ -2458,6 +2507,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.border-radius: 0.75rem;border: 1px solid var(--panel-border);padding: 1.125rem 1.25rem;+ /* Card notes are authored prose and may carry an unbreakable run such as a+ slash-joined pipeline or a long identifier. Without this, that run sets the+ card's min-content width, spills past its track in every rail placement,+ and pushes the whole page into horizontal overflow at desktop widths.+ `anywhere` rather than `break-word` because only `anywhere` shrinks the+ intrinsic minimum the layout is sized from. */+ overflow-wrap: anywhere;}html[data-preset="signal-flow"] .card {@@ -3494,6 +3550,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.background: transparent;box-shadow: none;}+ /* The motion button breathes on the same shared cycle as the cascade, so the+ chrome keeps time with the wave it controls. The cycle length lives on the+ diagram SVG, so chrome presets mirror it here. */+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot {+ animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite;+ }+ html[data-preset="signal-flow"] #btn-motion .motion-control-dot { --flow-cycle-chrome: 5.2s; }+ @keyframes archify-motion-dot-breathe {+ 0%, 100% { opacity: 1; transform: scale(1); }+ 46% { opacity: 0.55; transform: scale(0.72); }+ }.toolbar .export-menu {position: absolute;top: calc(100% + 0.125rem);@@ -4030,10 +4097,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {- filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ --ambient-node-base-filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ filter: var(--ambient-node-base-filter);}html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {- filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ --ambient-node-base-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ filter: var(--ambient-node-base-filter);}html[data-preset="classic"] .diagram-container > svg [data-edge-from] {stroke-linecap: round;@@ -4166,41 +4235,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.filter: drop-shadow(0 0 7px var(--frontend-stroke));outline: none;}- /* Verified Source Beacons are installed at runtime only for nodes whose- repository evidence passed the local revision/blob/line checks. They- live inside the owning node so every focus, route, story, and guided- view keeps one coherent opacity state. Export serialization removes- them before producing the canonical SVG or any derived visual. */- .source-evidence-beacon {- pointer-events: none;- opacity: 0.76;- transition: opacity 160ms ease, filter 160ms ease;- }- .source-evidence-beacon rect {- fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));- stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));- stroke-width: 1;- vector-effect: non-scaling-stroke;- }- .source-evidence-beacon text {- fill: var(--backend-stroke);- font-size: 5.5px;- font-weight: 800;- letter-spacing: 0.06em;- text-anchor: middle;- text-transform: uppercase;- }- svg [data-node-id]:hover .source-evidence-beacon,- svg [data-node-id]:focus-visible .source-evidence-beacon,- svg [data-node-id][data-focus-selected] .source-evidence-beacon {- opacity: 1;- filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));- }- svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }- svg[data-preset="blueprint"] .source-evidence-beacon rect {- rx: 0.8px;- filter: none;- }svg [data-legend-kind][role="button"] { cursor: pointer; }svg [data-legend-kind]:focus { outline: none; }svg [data-legend-hit] {@@ -4691,69 +4725,211 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }.c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }- /* Optional trace animation, enabled only by meta.animation = "trace".- The ordinary viewer performs one ambient pass and then restores the- authored solid/security/async line language. WebM samples the same- authored geometry into an explicit canvas timeline. */- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {- animation: archify-edge-flow 2.4s linear 1;- animation-delay: calc(var(--step, 0) * 160ms);+ /* Live turns each edge into a small light show on one shared cycle: a comet+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */+ svg[data-animation="trace"] {+ --flow-cycle: 6.4s;+ --flow-step-delay: 0.2s;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;+ --flow-head-peak: 0.95;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;+ }+ .ambient-edge-flow {+ fill: none;+ stroke: var(--arrow-emphasis);+ stroke-linecap: round;+ pointer-events: none;+ display: none;}- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {- animation: archify-edge-flow 2.4s linear 1;- animation-delay: calc(var(--step, 0) * 160ms);+ .ambient-flow-wake {+ stroke-width: 3.2;+ stroke-dasharray: var(--flow-dasharray, none);+ animation-name: archify-flow-wake;}- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {+ .ambient-flow-halo {+ stroke-width: 6;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ animation-name: archify-cascade-halo;+ }+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }+ .ambient-flow-tail {+ stroke-width: 2.4;+ stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));+ animation-name: archify-cascade-tail;+ }+ .ambient-flow-head {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;+ stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));+ animation-name: archify-cascade-head;+ }+ .ambient-flow-head.echo { --flow-echo-scale: 0.76; }+ .ambient-flow-tail.echo { --flow-echo-scale: 0.53; }+ .ambient-flow-ripple {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, white);+ stroke-width: 2;+ animation-name: archify-flow-ripple;+ }+ .ambient-flow-ripple-echo {+ stroke-width: 1.2;+ animation-name: archify-flow-ripple-echo;+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) .ambient-edge-flow {+ display: inline;+ animation-duration: var(--flow-cycle, 6.4s);+ animation-timing-function: linear;+ animation-iteration-count: infinite;+ animation-delay: var(--flow-delay, 0s);+ /* Without backwards fill a delayed layer would sit at its natural opacity+ (fully lit) until its phase arrives. */+ animation-fill-mode: backwards;+ }+ /* Each decorative flow follows its owning edge through tree visibility. */+ .ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }+ svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }+ svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ /* On light canvases the cascade reads by saturation instead of bloom: the+ head and inner ripple mix toward ink instead of white, and every layer's+ peak rises so the wave survives the bright background. */+ html[data-theme="light"] svg[data-animation="trace"] {+ --flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;+ --flow-tail-peak: 0.5;+ --flow-wake-peak: 0.13;+ --flow-ripple-echo-peak: 0.3;+ }+ html[data-theme="light"] .ambient-flow-head {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);+ stroke-width: 2.8;+ }+ html[data-theme="light"] .ambient-flow-ripple {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);+ }+ html[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {transform-box: fill-box;transform-origin: center;- animation: archify-node-pulse 3.6s ease-in-out 1;- animation-delay: calc(var(--step, 0) * 160ms);+ animation: archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation: archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation: archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ /* Node glow follows each node's authored step on the shared cycle; it does+ not track incoming edge arrivals. During the bounded entrance all three+ animations run; the entrance pulse is listed after the repeating glow and+ wins on filter until it completes. */+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) svg[data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s));+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ @keyframes archify-flow-wake {+ 0% { opacity: 0; }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 82%, 100% { opacity: 0; }+ }+ @keyframes archify-cascade-halo {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-tail {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }+ }+ @keyframes archify-cascade-head {+ 0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }+ 48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: 0; opacity: 0; }+ }+ @keyframes archify-flow-ripple {+ 0%, 60% { r: 2px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }+ }+ @keyframes archify-flow-ripple-echo {+ 0%, 63% { r: 2px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }+ }+ @keyframes archify-node-receive {+ 0%, 100% { filter: var(--ambient-node-base-filter, none); }+ 5%, 12% { filter: var(--ambient-node-base-filter,) drop-shadow(0 0 9px var(--arrow-emphasis)); }+ }+ @keyframes archify-node-enter {+ from { opacity: 0; }+ to { opacity: 1; }}- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {- stroke-linecap: round;- filter: drop-shadow(0 0 3px var(--arrow-emphasis));- animation-duration: 1.75s;- }- svg[data-preset="signal-flow"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 1.75s; }- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {- animation-duration: 3.1s;- }- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {- stroke-linecap: square;- filter: none;- animation-duration: 2.15s;- }- svg[data-preset="blueprint"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.15s; }- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {- animation-name: archify-blueprint-node-pulse;- animation-duration: 3.8s;- }- svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {- filter: none;- animation-duration: 2.2s;- }- svg[data-preset="editorial"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.2s; }- svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {- animation-name: archify-editorial-node-pulse;- animation-duration: 3.5s;- }- /* Embedded proofs stay static so proof grids are calm instead of leaving- ambient trace loops on. */- html[data-embed="true"] svg[data-animation="trace"] [data-animate],- html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {- animation: none !important;- stroke-dashoffset: 0;- }- html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],- html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {- animation: none !important;- stroke-dashoffset: 0;- }- @keyframes archify-edge-flow {- 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }- 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }- 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }- 100% { stroke-dashoffset: 0; opacity: 1; }+ @media print {+ .ambient-edge-flow { display: none !important; animation: none !important; }+ svg[data-animation="trace"] [data-animate="node"] { animation: none !important; }}@keyframes archify-node-pulse {0%, 72%, 100% { filter: none; stroke-width: 1.5; }@@ -4820,10 +4996,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.50% { opacity: 0.48; transform: scale(0.78); }}@media (prefers-reduced-motion: reduce) {+ .ambient-edge-flow { display: none !important; animation: none !important; }html[data-preset="signal-flow"] .diagram-container::before {animation: none !important;}.pulse-dot { animation: none !important; }+ .motion-control-dot { animation: none !important; }svg[data-animation="trace"] [data-animate] {animation: none !important;stroke-dashoffset: 0;@@ -4859,7 +5037,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.filter: none;}.relationship-pulse-overlay { display: none !important; }- .source-evidence-beacon,svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }}</style>@@ -4979,11 +5156,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.</div>- <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"ROUTE","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><!-- Main Diagram --><div class="diagram-container" data-detail-level="read"data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">- <svg viewBox="0 0 1200 608" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">+ <svg viewBox="0 0 1200 608" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14"><title id="archify-diagram-title">Maka</title><desc id="archify-diagram-description">Local-first desktop AI workbench — sessions, tools, permissions, recovery</desc><!-- Definitions -->@@ -5016,55 +5193,55 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<!-- Connection paths (before components for correct z-order) --><g data-graph-role="automatic-crossover" style="--step:0"><path data-graph-role="automatic-crossover-underlay" d="M 160 330 L 200 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="user" data-edge-to="ui" data-edge-key="0" data-composition-points="160,330;200,330" data-composition-crossover="halo" data-composition-independent="true" d="M 160 330 L 200 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="user" data-edge-to="ui" data-edge-key="0" data-composition-points="160,330;200,330" data-composition-crossover="halo" data-composition-independent="true" d="M 160 330 L 200 330" class="a-emphasis" data-animate="edge" style="--step:0" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:1"><path data-graph-role="automatic-crossover-underlay" d="M 340 330 L 390 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="ui" data-edge-to="main" data-edge-label="IPC" data-edge-key="1" data-composition-points="340,330;390,330" data-composition-crossover="halo" data-composition-independent="true" d="M 340 330 L 390 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="ui" data-edge-to="main" data-edge-label="IPC" data-edge-key="1" data-composition-points="340,330;390,330" data-composition-crossover="halo" data-composition-independent="true" d="M 340 330 L 390 330" class="a-emphasis" data-animate="edge" style="--step:1" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:2"><path data-graph-role="automatic-crossover-underlay" d="M 530 330 L 580 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="main" data-edge-to="session" data-edge-key="2" data-composition-points="530,330;580,330" data-composition-crossover="halo" data-composition-independent="true" d="M 530 330 L 580 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="main" data-edge-to="session" data-edge-key="2" data-composition-points="530,330;580,330" data-composition-crossover="halo" data-composition-independent="true" d="M 530 330 L 580 330" class="a-emphasis" data-animate="edge" style="--step:2" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:3"><path data-graph-role="automatic-crossover-underlay" d="M 730 330 L 780 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="session" data-edge-to="agentrun" data-edge-label="turn" data-edge-key="3" data-composition-points="730,330;780,330" data-composition-crossover="halo" data-composition-independent="true" d="M 730 330 L 780 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="session" data-edge-to="agentrun" data-edge-label="turn" data-edge-key="3" data-composition-points="730,330;780,330" data-composition-crossover="halo" data-composition-independent="true" d="M 730 330 L 780 330" class="a-emphasis" data-animate="edge" style="--step:3" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:4"><path data-graph-role="automatic-crossover-underlay" d="M 920 330 L 970 330" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="agentrun" data-edge-to="model" data-edge-key="4" data-composition-points="920,330;970,330" data-composition-crossover="halo" data-composition-independent="true" d="M 920 330 L 970 330" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="agentrun" data-edge-to="model" data-edge-key="4" data-composition-points="920,330;970,330" data-composition-crossover="halo" data-composition-independent="true" d="M 920 330 L 970 330" class="a-emphasis" data-animate="edge" style="--step:4" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:5"><path data-graph-role="automatic-crossover-underlay" d="M 1040 300 L 1040 200" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="model" data-edge-to="providers" data-edge-label="stream" data-edge-key="5" data-composition-points="1040,300;1040,200" data-composition-crossover="halo" data-composition-independent="true" d="M 1040 300 L 1040 200" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="model" data-edge-to="providers" data-edge-label="stream" data-edge-key="5" data-composition-points="1040,300;1040,200" data-composition-crossover="halo" data-composition-independent="true" d="M 1040 300 L 1040 200" class="a-emphasis" data-animate="edge" style="--step:5" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g><g data-graph-role="automatic-crossover" style="--step:6"><path data-graph-role="automatic-crossover-underlay" d="M 655 200 L 655 300" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="bots" data-edge-to="session" data-edge-key="6" data-composition-points="655,200;655,300" data-composition-crossover="halo" data-composition-independent="true" d="M 655 200 L 655 300" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>+ <path data-edge-from="bots" data-edge-to="session" data-edge-key="6" data-composition-points="655,200;655,300" data-composition-crossover="halo" data-composition-independent="true" d="M 655 200 L 655 300" class="a-dashed" data-animate="edge" style="--step:6" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/></g><g data-graph-role="automatic-crossover" style="--step:7"><path data-graph-role="automatic-crossover-underlay" d="M 850 300 L 850 200" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="agentrun" data-edge-to="permission" data-edge-key="7" data-composition-points="850,300;850,200" data-composition-crossover="halo" data-composition-independent="true" d="M 850 300 L 850 200" class="a-security" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>+ <path data-edge-from="agentrun" data-edge-to="permission" data-edge-key="7" data-composition-points="850,300;850,200" data-composition-crossover="halo" data-composition-independent="true" d="M 850 300 L 850 200" class="a-security" data-animate="edge" style="--step:7" stroke-width="1.5" marker-end="url(#arrowhead-security)"/></g><g data-graph-role="automatic-crossover" style="--step:8"><path data-graph-role="automatic-crossover-underlay" d="M 655 360 L 655 440" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="session" data-edge-to="storage" data-edge-key="8" data-composition-points="655,360;655,440" data-composition-crossover="halo" data-composition-independent="true" d="M 655 360 L 655 440" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>+ <path data-edge-from="session" data-edge-to="storage" data-edge-key="8" data-composition-points="655,360;655,440" data-composition-crossover="halo" data-composition-independent="true" d="M 655 360 L 655 440" class="a-dashed" data-animate="edge" style="--step:8" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/></g><g data-graph-role="automatic-crossover" style="--step:9"><path data-graph-role="automatic-crossover-underlay" d="M 850 360 L 850 440" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="agentrun" data-edge-to="toolrt" data-edge-key="9" data-composition-points="850,360;850,440" data-composition-crossover="halo" data-composition-independent="true" d="M 850 360 L 850 440" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ <path data-edge-from="agentrun" data-edge-to="toolrt" data-edge-key="9" data-composition-points="850,360;850,440" data-composition-crossover="halo" data-composition-independent="true" d="M 850 360 L 850 440" class="a-default" data-animate="edge" style="--step:9" stroke-width="1.5" marker-end="url(#arrowhead)"/></g><g data-graph-role="automatic-crossover" style="--step:10"><path data-graph-role="automatic-crossover-underlay" d="M 920 470 L 970 470" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>- <path data-edge-from="toolrt" data-edge-to="tools" data-edge-key="10" data-composition-points="920,470;970,470" data-composition-crossover="halo" data-composition-independent="true" d="M 920 470 L 970 470" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <path data-edge-from="toolrt" data-edge-to="tools" data-edge-key="10" data-composition-points="920,470;970,470" data-composition-crossover="halo" data-composition-independent="true" d="M 920 470 L 970 470" class="a-emphasis" data-animate="edge" style="--step:10" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/></g>- <path data-edge-from="toolrt" data-edge-to="permission" data-edge-key="11" data-composition-points="850,500;850,540;1160,540;1160,100;850,100;850,140" d="M 850 500 L 850 532 Q 850 540 858 540 L 1152 540 Q 1160 540 1160 532 L 1160 108 Q 1160 100 1152 100 L 858 100 Q 850 100 850 108 L 850 140" class="a-security" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>+ <path data-edge-from="toolrt" data-edge-to="permission" data-edge-key="11" data-composition-points="850,500;850,540;1160,540;1160,100;850,100;850,140" d="M 850 500 L 850 532 Q 850 540 858 540 L 1152 540 Q 1160 540 1160 532 L 1160 108 Q 1160 100 1152 100 L 858 100 Q 850 100 850 108 L 850 140" class="a-security" data-animate="edge" style="--step:11" stroke-width="1.5" marker-end="url(#arrowhead-security)"/><!-- Components --><g id="node-user" data-node-id="user" data-node-label="You" tabindex="0" role="button" aria-label="Focus You, desktop user, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="desktop user" data-node-context="Architecture component"><title>You · desktop user · Architecture component</title><rect x="40" y="300" width="120" height="60" rx="6" class="c-mask"/>- <rect x="40" y="300" width="120" height="60" rx="6" class="c-external" stroke-width="1.5"/>+ <rect x="40" y="300" width="120" height="60" rx="6" class="c-external" data-animate="node" style="--step:0" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(46 306) scale(0.6875)"><rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/><path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>@@ -5076,7 +5253,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-ui" data-node-id="ui" data-node-label="Desktop UI" tabindex="0" role="button" aria-label="Focus Desktop UI, React renderer, Electron app + packages/runtime" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="React renderer" data-node-context="Electron app + packages/runtime"><title>Desktop UI · React renderer · Electron app + packages/runtime</title><rect x="200" y="300" width="140" height="60" rx="6" class="c-mask"/>- <rect x="200" y="300" width="140" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>+ <rect x="200" y="300" width="140" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:1" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(206 306) scale(0.6875)"><rect x="2" y="3" width="12" height="10" rx="2"/><path d="M2 6.5h12"/>@@ -5090,7 +5267,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-main" data-node-id="main" data-node-label="Main Process" tabindex="0" role="button" aria-label="Focus Main Process, Electron IPC, Electron app + packages/runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="Electron IPC" data-node-context="Electron app + packages/runtime"><title>Main Process · Electron IPC · Electron app + packages/runtime</title><rect x="390" y="300" width="140" height="60" rx="6" class="c-mask"/>- <rect x="390" y="300" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="390" y="300" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:2" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(396 306) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5101,7 +5278,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-session" data-node-id="session" data-node-label="SessionManager" tabindex="0" role="button" aria-label="Focus SessionManager, public runtime API, Electron app + packages/runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="public runtime API" data-node-context="Electron app + packages/runtime"><title>SessionManager · public runtime API · Electron app + packages/runtime</title><rect x="580" y="300" width="150" height="60" rx="6" class="c-mask"/>- <rect x="580" y="300" width="150" height="60" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="580" y="300" width="150" height="60" rx="6" class="c-backend" data-animate="node" style="--step:3" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(586 306) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5112,7 +5289,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-agentrun" data-node-id="agentrun" data-node-label="AgentRun" tabindex="0" role="button" aria-label="Focus AgentRun, turn + recovery, Electron app + packages/runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="turn + recovery" data-node-context="Electron app + packages/runtime"><title>AgentRun · turn + recovery · Electron app + packages/runtime</title><rect x="780" y="300" width="140" height="60" rx="6" class="c-mask"/>- <rect x="780" y="300" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="780" y="300" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:4" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(786 306) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5123,7 +5300,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-model" data-node-id="model" data-node-label="ModelAdapter" tabindex="0" role="button" aria-label="Focus ModelAdapter, stream + usage, Electron app + packages/runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="stream + usage" data-node-context="Electron app + packages/runtime"><title>ModelAdapter · stream + usage · Electron app + packages/runtime</title><rect x="970" y="300" width="140" height="60" rx="6" class="c-mask"/>- <rect x="970" y="300" width="140" height="60" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="970" y="300" width="140" height="60" rx="6" class="c-backend" data-animate="node" style="--step:5" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(976 306) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5134,7 +5311,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-providers" data-node-id="providers" data-node-label="Model Providers" tabindex="0" role="button" aria-label="Focus Model Providers, AI SDK / Ollama, Architecture component" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="AI SDK / Ollama" data-node-tag="API keys local" data-node-context="Architecture component"><title>Model Providers · AI SDK / Ollama · Architecture component · API keys local</title><rect x="970" y="140" width="140" height="60" rx="6" class="c-mask"/>- <rect x="970" y="140" width="140" height="60" rx="6" class="c-cloud" stroke-width="1.5"/>+ <rect x="970" y="140" width="140" height="60" rx="6" class="c-cloud" data-animate="node" style="--step:6" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(976 146) scale(0.6875)"><path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/></g>@@ -5146,7 +5323,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-bots" data-node-id="bots" data-node-label="Bots & Gateway" tabindex="0" role="button" aria-label="Focus Bots & Gateway, Telegram · Feishu · HTTP, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="Telegram · Feishu · HTTP" data-node-context="Architecture component"><title>Bots & Gateway · Telegram · Feishu · HTTP · Architecture component</title><rect x="580" y="140" width="150" height="60" rx="6" class="c-mask"/>- <rect x="580" y="140" width="150" height="60" rx="6" class="c-external" stroke-width="1.5"/>+ <rect x="580" y="140" width="150" height="60" rx="6" class="c-external" data-animate="node" style="--step:6" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(586 146) scale(0.6875)"><rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/><path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>@@ -5158,7 +5335,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-permission" data-node-id="permission" data-node-label="Permission" tabindex="0" role="button" aria-label="Focus Permission, policy engine, Electron app + packages/runtime › trust boundary" aria-pressed="false" data-node-kind="security" data-node-sublabel="policy engine" data-node-tag="fail-closed" data-node-context="Electron app + packages/runtime › trust boundary"><title>Permission · policy engine · Electron app + packages/runtime › trust boundary · fail-closed</title><rect x="780" y="140" width="140" height="60" rx="6" class="c-mask"/>- <rect x="780" y="140" width="140" height="60" rx="6" class="c-security" stroke-width="1.5"/>+ <rect x="780" y="140" width="140" height="60" rx="6" class="c-security" data-animate="node" style="--step:8" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(786 146) scale(0.6875)"><path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/><path d="m5.8 8 1.5 1.5 3-3"/>@@ -5171,7 +5348,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-storage" data-node-id="storage" data-node-label="Local Storage" tabindex="0" role="button" aria-label="Focus Local Storage, userData JSONL, Electron app + packages/runtime › trust boundary" aria-pressed="false" data-node-kind="database" data-node-sublabel="userData JSONL" data-node-context="Electron app + packages/runtime › trust boundary"><title>Local Storage · userData JSONL · Electron app + packages/runtime › trust boundary</title><rect x="580" y="440" width="150" height="60" rx="6" class="c-mask"/>- <rect x="580" y="440" width="150" height="60" rx="6" class="c-database" stroke-width="1.5"/>+ <rect x="580" y="440" width="150" height="60" rx="6" class="c-database" data-animate="node" style="--step:9" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(586 446) scale(0.6875)"><ellipse cx="8" cy="4" rx="5" ry="2"/><path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>@@ -5183,7 +5360,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-toolrt" data-node-id="toolrt" data-node-label="ToolRuntime" tabindex="0" role="button" aria-label="Focus ToolRuntime, validate · abort, Electron app + packages/runtime" aria-pressed="false" data-node-kind="messagebus" data-node-sublabel="validate · abort" data-node-context="Electron app + packages/runtime"><title>ToolRuntime · validate · abort · Electron app + packages/runtime</title><rect x="780" y="440" width="140" height="60" rx="6" class="c-mask"/>- <rect x="780" y="440" width="140" height="60" rx="6" class="c-messagebus" stroke-width="1.5"/>+ <rect x="780" y="440" width="140" height="60" rx="6" class="c-messagebus" data-animate="node" style="--step:10" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="messagebus" class="semantic-sigil s-messagebus" transform="translate(786 446) scale(0.6875)"><path d="M2.5 4.5h11M2.5 8h11M2.5 11.5h11"/><circle cx="5" cy="4.5" r="1" class="sigil-fill"/>@@ -5197,7 +5374,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-tools" data-node-id="tools" data-node-label="Local Tools" tabindex="0" role="button" aria-label="Focus Local Tools, Read · Write · Bash, Architecture component" aria-pressed="false" data-node-kind="frontend" data-node-sublabel="Read · Write · Bash" data-node-context="Architecture component"><title>Local Tools · Read · Write · Bash · Architecture component</title><rect x="970" y="440" width="140" height="60" rx="6" class="c-mask"/>- <rect x="970" y="440" width="140" height="60" rx="6" class="c-frontend" stroke-width="1.5"/>+ <rect x="970" y="440" width="140" height="60" rx="6" class="c-frontend" data-animate="node" style="--step:11" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="frontend" class="semantic-sigil s-frontend" transform="translate(976 446) scale(0.6875)"><rect x="2" y="3" width="12" height="10" rx="2"/><path d="M2 6.5h12"/>@@ -5245,33 +5422,33 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<!-- Legend --><g data-legend="" data-legend-bridge=""><text x="40" y="572" class="t-primary" font-size="12" font-weight="650">Legend</text>- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="592" data-legend-width="83">+ <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="592" data-legend-width="93"><rect x="40" y="583" width="16" height="10" rx="2.5" class="c-frontend" stroke-width="1"/><text x="62" y="592" class="t-muted" font-size="10" font-weight="500">Frontend</text></g>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="145" data-legend-baseline="592" data-legend-width="78">- <rect x="145" y="583" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>- <text x="167" y="592" class="t-muted" font-size="10" font-weight="500">Backend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="155" data-legend-baseline="592" data-legend-width="87">+ <rect x="155" y="583" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>+ <text x="177" y="592" class="t-muted" font-size="10" font-weight="500">Backend</text></g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="245" data-legend-baseline="592" data-legend-width="83">- <rect x="245" y="583" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>- <text x="267" y="592" class="t-muted" font-size="10" font-weight="500">Database</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="264" data-legend-baseline="592" data-legend-width="93">+ <rect x="264" y="583" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>+ <text x="286" y="592" class="t-muted" font-size="10" font-weight="500">Database</text></g>- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="350" data-legend-baseline="592" data-legend-width="68">- <rect x="350" y="583" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>- <text x="372" y="592" class="t-muted" font-size="10" font-weight="500">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="379" data-legend-baseline="592" data-legend-width="74">+ <rect x="379" y="583" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="401" y="592" class="t-muted" font-size="10" font-weight="500">Cloud</text></g>- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="440" data-legend-baseline="592" data-legend-width="83">- <rect x="440" y="583" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>- <text x="462" y="592" class="t-muted" font-size="10" font-weight="500">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="475" data-legend-baseline="592" data-legend-width="93">+ <rect x="475" y="583" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="497" y="592" class="t-muted" font-size="10" font-weight="500">Security</text></g>- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="545" data-legend-baseline="592" data-legend-width="98">- <rect x="545" y="583" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>- <text x="567" y="592" class="t-muted" font-size="10" font-weight="500">Message bus</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="590" data-legend-baseline="592" data-legend-width="112">+ <rect x="590" y="583" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>+ <text x="612" y="592" class="t-muted" font-size="10" font-weight="500">Message bus</text></g>- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="665" data-legend-baseline="592" data-legend-width="83">- <rect x="665" y="583" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>- <text x="687" y="592" class="t-muted" font-size="10" font-weight="500">External</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="724" data-legend-baseline="592" data-legend-width="93">+ <rect x="724" y="583" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="746" y="592" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg>@@ -5432,11 +5609,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p><button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes & index</span></button><div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">- <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">ROUTE</button><button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -5532,11 +5709,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function hasDrawableGeometry(element) {- if (!element) return false;+ if (!element || element.hasAttribute('data-ambient-flow-overlay')) return false;var geometries = /^(path|line|polyline)$/i.test(element.tagName)? [element]: Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));return geometries.some(function (geometry) {+ if (geometry.hasAttribute('data-ambient-flow-overlay')) return false;var source = geometry.tagName.toLowerCase() === 'path'? geometry.getAttribute('d'): geometry.tagName.toLowerCase() === 'polyline'@@ -5781,6 +5959,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function cleanExportClone(clone) {+ Array.prototype.forEach.call(clone.querySelectorAll('[data-ambient-flow-overlay]'), function (el) {+ el.remove();+ });+ // Route interaction rewrites CSS declarations through CSSOM. Normalize+ // authored motion delays on the clone so exported bytes do not depend+ // on whether the reader traced a route before downloading.+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (el) {+ var step = el.style.getPropertyValue('--step');+ if (step) el.setAttribute('style', el.style.cssText);+ });// View transforms and neighborhood focus are HTML exploration state,// never part of a downloaded full-diagram artifact.clone.style.removeProperty('transform');@@ -5801,6 +5989,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.clone.removeAttribute('data-route-journey');clone.removeAttribute('data-share-route');clone.removeAttribute('data-share-reach');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reader-legend-corner]'), function (el) {+ el.removeAttribute('data-reader-legend-corner');+ el.style.removeProperty('--archify-reader-legend-transform');+ });Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {el.remove();});@@ -5846,7 +6038,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.});Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {var originalLabel = el.getAttribute('data-source-evidence-original-label');- if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');+ if (originalLabel == null) el.removeAttribute('aria-label');else el.setAttribute('aria-label', originalLabel);el.removeAttribute('data-source-evidence-count');el.removeAttribute('data-source-evidence-original-label');@@ -5909,6 +6101,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {el.setAttribute('aria-pressed', 'false');});+ // A downloaded tree is always the complete hierarchy: collapsing is a+ // reading aid, never a silent change to what the artifact contains.+ clone.removeAttribute('data-tree-any-collapsed');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-hidden], [data-tree-collapsed]'), function (el) {+ el.removeAttribute('data-tree-hidden');+ el.removeAttribute('data-tree-collapsed');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-toggle]'), function (el) {+ el.setAttribute('aria-expanded', 'true');+ el.setAttribute('aria-label', el.getAttribute('data-tree-label-collapse') || '');+ });return !clone.hasAttribute('data-view-scale') &&!clone.hasAttribute('data-focus-active') &&!clone.hasAttribute('data-reach-active') &&@@ -5924,9 +6127,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.!clone.hasAttribute('data-route-journey') &&!clone.hasAttribute('data-share-route') &&!clone.hasAttribute('data-share-reach') &&+ !clone.hasAttribute('data-tree-any-collapsed') &&!clone.style.getPropertyValue('transform') &&!clone.style.getPropertyValue('clip-path') &&- clone.querySelectorAll('[data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;+ clone.querySelectorAll('[data-ambient-flow-overlay], [data-reader-legend-corner], [data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor], [data-tree-hidden], [data-tree-collapsed]').length === 0;}@@ -6702,13 +6906,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function samplesFor(element) {if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];+ var geometry = element;+ if (element.getAttribute('data-motion-path')) {+ geometry = element.cloneNode(false);+ geometry.setAttribute('d', element.getAttribute('data-motion-path'));+ }var length;- try { length = element.getTotalLength(); } catch (_) { return []; }+ try { length = geometry.getTotalLength(); } catch (_) { return []; }if (!Number.isFinite(length) || length <= 0) return [];var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));var points = [];for (var i = 0; i <= count; i++) {- points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));+ points.push(pointInRoot(element, geometry.getPointAtLength(length * i / count)));}return points;}@@ -7282,38 +7491,174 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var ownerToken = 0;var ownerCleanup = null;var lastEffectivePaused = null;- var ambientStarted = false;- var ambientPending = new Set();-- function detachAmbientBoundary() {- if (!svg) return;- svg.removeEventListener('animationend', onAmbientBoundary, true);- svg.removeEventListener('animationcancel', onAmbientBoundary, true);- }- function settleAmbient(reason) {- if (!capable) return false;- ambientStarted = true;- ambientPending.clear();- detachAmbientBoundary();- html.setAttribute('data-ambient-motion', 'settled');- html.setAttribute('data-ambient-settle-reason', reason || 'complete');- return true;- }- function onAmbientBoundary(event) {- if (!ambientPending.has(event.target)) return;- ambientPending.delete(event.target);- if (!ambientPending.size) settleAmbient('complete');- }- function startAmbient() {- if (ambientStarted || !capable) return false;- ambientStarted = true;- ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));- if (!ambientPending.size) return settleAmbient('empty');- svg.addEventListener('animationend', onAmbientBoundary, true);- svg.addEventListener('animationcancel', onAmbientBoundary, true);- html.setAttribute('data-ambient-motion', 'running');- html.removeAttribute('data-ambient-settle-reason');- return true;+ var entryStarted = false;+ var entryPending = new Set();+ var flowCount = 0;++ // Runtime decoration carries geometry and tree visibility only. Keep each+ // flow beside its authored edge so transforms, clipping and crossover+ // paint order apply.+ // Each edge carries a small light show: a comet (halo, tail, head)+ // cascading downstream on one shared cycle, a lingering wake, and a+ // ripple where the comet lands. Phases follow the authored step order:+ // source-node rank where known, chronological message order in sequence+ // diagrams.+ function readSecondsVar(name, fallback) {+ var value = '';+ try { value = window.getComputedStyle(svg).getPropertyValue(name); } catch (_) {}+ var seconds = parseFloat(value);+ return Number.isFinite(seconds) && seconds > 0 ? seconds : fallback;+ }+ function nodeStep(from) {+ // Authored IDs follow the schema's conservative identifier pattern, so+ // direct selector interpolation stays safe here. The semantic wrapper+ // groups the animated shape; its authored step ranks the node.+ var node = from ? svg.querySelector('[data-node-id="' + from + '"]') : null;+ var shape = node ? node.querySelector('[data-animate="node"]') : null;+ return shape && shape.style ? shape.style.getPropertyValue('--step') : '';+ }+ function edgePhase(shape, fallbackStep) {+ // Sequence messages have no data-edge-from; their own authored step is+ // already chronological, which is the right phase there.+ var raw = nodeStep(shape.getAttribute('data-edge-from'));+ if (raw === '' && shape.style) raw = shape.style.getPropertyValue('--step');+ var step = parseFloat(raw);+ return Number.isFinite(step) ? step : fallbackStep;+ }+ function createFlows() {+ var stepDelay = readSecondsVar('--flow-step-delay', 0.2);+ var cycle = readSecondsVar('--flow-cycle', 6.4);+ Array.prototype.forEach.call(svg.querySelectorAll('path[data-animate="edge"]'), function (shape, index) {+ var d = shape.getAttribute('data-motion-path') || shape.getAttribute('d');+ if (!d) return;+ var anchor = shape;+ // Tree Branches initializes after these overlays and includes their+ // inherited ancestors in its existing collapse/expand lifecycle.+ function tagOverlay(flow) {+ flow.setAttribute('data-ambient-flow-overlay', 'true');+ flow.setAttribute('aria-hidden', 'true');+ if (shape.hasAttribute('data-tree-ancestors')) {+ flow.setAttribute('data-tree-ancestors', shape.getAttribute('data-tree-ancestors'));+ }+ }+ function addPath(cls) {+ var flow = document.createElementNS('http://www.w3.org/2000/svg', 'path');+ flow.setAttribute('d', d);+ ['transform', 'mask', 'clip-path', 'vector-effect'].forEach(function (name) {+ if (shape.hasAttribute(name)) flow.setAttribute(name, shape.getAttribute(name));+ });+ flow.setAttribute('class', 'ambient-edge-flow ambient-flow-' + cls);+ tagOverlay(flow);+ shape.parentNode.insertBefore(flow, anchor.nextSibling);+ anchor = flow;+ return flow;+ }+ var wake = addPath('wake');+ var len = 0;+ try { len = wake.getTotalLength(); } catch (_) {}+ if (!(len > 0)) {+ wake.remove();+ return;+ }+ var glow = addPath('glow');+ var halo = addPath('halo');+ var tail = addPath('tail');+ var head = addPath('head'); var end = null;+ try { end = head.getPointAtLength(len); } catch (_) {}+ // Dashed authored lines keep their dash language through the show:+ // the wake brightens only the authored segments and never fills the+ // gaps back into a solid line.+ var authoredDash = '';+ try { authoredDash = window.getComputedStyle(shape).strokeDasharray; } catch (_) {}+ if (authoredDash && authoredDash !== 'none') {+ wake.style.setProperty('--flow-dasharray', authoredDash);+ }+ // Absolute caps keep the comet a slim streak on long edges instead+ // of growing into a bright slab; the tail disintegrates into a+ // sparkle of fragments behind the head, and --flow-shift trails+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;+ var trail = len >= 120+ ? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }+ : (len >= 60+ ? { pattern: '3 3 7 ' + (len - 13).toFixed(1), length: 13 }+ : { pattern: '5 ' + Math.max(4, len - 5).toFixed(1), length: 5 });+ var phase = edgePhase(shape, index) * stepDelay;+ var configs = [+ { flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },+ { flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },+ { flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },+ { flow: head, dash: headLen, shift: 0, delay: phase },+ ];+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });+ configs.forEach(function (cfg) {+ cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');+ cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');+ cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');+ cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));+ if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);+ });+ // The sonar pair lands where the comet does; keep it out of the+ // edge's mask so it can bloom over the node boundary.+ if (end) {+ ['ripple', 'ripple-echo'].forEach(function (kind) {+ var ripple = document.createElementNS('http://www.w3.org/2000/svg', 'circle');+ ripple.setAttribute('cx', end.x.toFixed(1));+ ripple.setAttribute('cy', end.y.toFixed(1));+ ripple.setAttribute('r', '2');+ if (shape.hasAttribute('transform')) ripple.setAttribute('transform', shape.getAttribute('transform'));+ ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);+ tagOverlay(ripple);+ ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));+ shape.parentNode.insertBefore(ripple, anchor.nextSibling);+ anchor = ripple;+ });+ }+ flowCount += 1;+ });+ }+ function settleEntry() {+ entryPending.clear();+ svg.removeEventListener('animationend', onEntryBoundary, true);+ svg.removeEventListener('animationcancel', onEntryBoundary, true);+ html.setAttribute('data-ambient-entry', 'settled');+ }+ function onEntryBoundary(event) {+ if (!entryPending.has(event.target)) return;+ // The entrance settles only when each node's pulse finishes; the+ // shorter fade-rise enter animation may end first without ending it.+ if (event.animationName && !/node-pulse/.test(event.animationName)) return;+ entryPending.delete(event.target);+ if (!entryPending.size) settleEntry();+ }+ function renderAmbient(suppressed) {+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');+ if (suppressed) {+ entryStarted = true;+ settleEntry();+ } else if (!entryStarted) {+ entryStarted = true;+ entryPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="node"]')));+ if (!entryPending.size) settleEntry();+ else {+ svg.addEventListener('animationend', onEntryBoundary, true);+ svg.addEventListener('animationcancel', onEntryBoundary, true);+ html.setAttribute('data-ambient-entry', 'running');+ }+ }}function readStored() {@@ -7321,8 +7666,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7348,11 +7693,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var systemPaused = reducedMotion();var paused = effectivePaused();html.setAttribute('data-motion', paused ? 'still' : 'live');- if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {- settleAmbient('suppressed');- } else if (!ambientStarted) {- startAmbient();- }+ renderAmbient(paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden'));btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');@@ -7457,7 +7798,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.html.removeAttribute('data-motion');html.removeAttribute('data-motion-owner');html.removeAttribute('data-ambient-motion');- html.removeAttribute('data-ambient-settle-reason');+ html.removeAttribute('data-ambient-entry');return {capable: false,pause: function () { return false; },@@ -7473,15 +7814,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};}+ createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);}document.addEventListener('visibilitychange', syncVisibility);+ if (typeof MutationObserver !== 'undefined') {+ var contextObserver = new MutationObserver(render);+ contextObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-share-playback'] });+ }if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {var ownerObserver = new MutationObserver(function () { publishOwner(); });ownerObserver.observe(svg, {@@ -7522,69 +7868,172 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Archify.sourceEvidence = (function () {var element = document.getElementById('archify-source-evidence-data');var payload = null;- var svgNamespace = 'http://www.w3.org/2000/svg';if (element) {try {var parsed = JSON.parse(element.textContent || 'null');if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;} catch (_) {}}- function installBeacons() {- if (!payload) return 0;- var svg = document.querySelector('.diagram-container svg');- if (!svg) return 0;- var installed = 0;- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {- var id = node.getAttribute('data-node-id');- var sources = payload.nodes[id];- if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;- var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');- var box;- try { box = (shape || node).getBBox(); } catch (_) { return; }- if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;-- var count = sources.length;- var label = viewerCount('viewer.passport.beacon', count);- var beacon = document.createElementNS(svgNamespace, 'g');- beacon.classList.add('source-evidence-beacon');- beacon.setAttribute('data-source-evidence-beacon', '');- beacon.setAttribute('aria-hidden', 'true');- var brandOffset = node.hasAttribute('data-node-brand') ? 24 : 0;- beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 35 - brandOffset) + ' ' + (box.y + 5) + ')');- var title = document.createElementNS(svgNamespace, 'title');- title.textContent = label;- var plate = document.createElementNS(svgNamespace, 'rect');- plate.setAttribute('width', '30');- plate.setAttribute('height', '12');- plate.setAttribute('rx', '6');- var text = document.createElementNS(svgNamespace, 'text');- text.setAttribute('x', '15');- text.setAttribute('y', '8.25');- text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;- beacon.appendChild(title);- beacon.appendChild(plate);- beacon.appendChild(text);- node.appendChild(beacon);-- var originalLabel = node.getAttribute('aria-label') || '';- node.setAttribute('data-source-evidence-count', String(count));- node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));- installed += 1;- });- return installed;- }+ // Keep verified evidence discoverable to screen readers without adding+ // visual marks. Restore first so repeated initialization never appends+ // another count or retains one after evidence becomes unavailable.+ var svg = document.querySelector('.diagram-container svg');+ if (svg) Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ if (node.hasAttribute('data-source-evidence-count')) {+ var savedLabel = node.getAttribute('data-source-evidence-original-label');+ if (savedLabel == null) node.removeAttribute('aria-label');+ else node.setAttribute('aria-label', savedLabel);+ node.removeAttribute('data-source-evidence-count');+ node.removeAttribute('data-source-evidence-original-label');+ }+ var sources = payload && payload.nodes[node.getAttribute('data-node-id')];+ if (!Array.isArray(sources) || !sources.length) return;+ var originalLabel = node.getAttribute('aria-label');+ node.setAttribute('data-source-evidence-count', String(sources.length));+ if (originalLabel != null) node.setAttribute('data-source-evidence-original-label', originalLabel);+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') ++ viewerCount('viewer.passport.sourceCount', sources.length));+ });return {available: function () { return Boolean(payload); },repository: function () { return payload ? payload.repository : null; },node: function (id) {var sources = payload && payload.nodes ? payload.nodes[id] : null;return Array.isArray(sources) ? sources.slice() : [];- },- installBeacons: installBeacons+ }+ };+ })();++ /* ============================================================+ Tree Branches — expand/collapse for hierarchy diagrams. The renderer+ lays out the complete tree once and tags every node, link, and toggle+ with its ancestors; collapsing only hides descendants, so visible nodes+ never move and the reader keeps their place. Selecting a hidden node+ through Finder, Outline, or a shared link expands its ancestors. Export+ always writes the complete tree (see Export Cleanup).+ ============================================================ */+ Archify.treeBranches = (function () {+ var svg = document.querySelector('.diagram-container > svg[data-tree-ui]');+ if (!svg) return { active: false };+ var collapsed = Object.create(null);+ var toggles = Object.create(null);+ Array.prototype.forEach.call(svg.querySelectorAll('[data-tree-toggle]'), function (toggle) {+ toggles[toggle.getAttribute('data-tree-toggle')] = toggle;+ });+ var tagged = svg.querySelectorAll('[data-tree-ancestors]');+ var expandAll = svg.querySelector('[data-tree-expand-all]');++ function ancestors(el) {+ return (el.getAttribute('data-tree-ancestors') || '').split(' ').filter(Boolean);+ }++ function apply() {+ Array.prototype.forEach.call(tagged, function (el) {+ var hidden = ancestors(el).some(function (id) { return collapsed[id]; });+ if (hidden) el.setAttribute('data-tree-hidden', '');+ else el.removeAttribute('data-tree-hidden');+ });+ var any = false;+ Object.keys(toggles).forEach(function (id) {+ var toggle = toggles[id];+ var isCollapsed = Boolean(collapsed[id]);+ any = any || isCollapsed;+ toggle.setAttribute('aria-expanded', isCollapsed ? 'false' : 'true');+ toggle.setAttribute('aria-label', toggle.getAttribute(isCollapsed ? 'data-tree-label-expand' : 'data-tree-label-collapse') || '');+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (node) {+ if (isCollapsed) node.setAttribute('data-tree-collapsed', '');+ else node.removeAttribute('data-tree-collapsed');+ }+ });+ if (any) svg.setAttribute('data-tree-any-collapsed', '');+ else svg.removeAttribute('data-tree-any-collapsed');+ }++ function setCollapsed(id, value) {+ if (!toggles[id]) return false;+ if (value) collapsed[id] = true;+ else delete collapsed[id];+ apply();+ return true;+ }++ function toggle(id) { return setCollapsed(id, !collapsed[id]); }++ // Reveal a node by expanding every collapsed ancestor; nothing else moves.+ function reveal(id) {+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (!node) return false;+ var changed = false;+ ancestors(node).forEach(function (ancestor) {+ if (collapsed[ancestor]) { delete collapsed[ancestor]; changed = true; }+ });+ if (changed) apply();+ return changed;+ }++ function restoreAll() {+ collapsed = Object.create(null);+ apply();+ }++ function activate(event) {+ var target = event.target.closest('[data-tree-toggle], [data-tree-expand-all]');+ if (!target || !svg.contains(target)) return false;+ event.preventDefault();+ event.stopPropagation();+ if (target.hasAttribute('data-tree-expand-all')) {+ restoreAll();+ var root = svg.querySelector('[data-tree-toggle]:not([data-tree-ancestors])');+ if (root) root.focus();+ } else {+ toggle(target.getAttribute('data-tree-toggle'));+ target.focus();+ }+ return true;+ }++ // Capture phase so the canvas focus handler never treats a toggle press+ // as a background click that clears the current focus.+ svg.addEventListener('click', activate, true);+ svg.addEventListener('keydown', function (event) {+ if (event.key === 'Enter' || event.key === ' ') { activate(event); return; }+ var node = event.target.closest('[data-node-id]');+ if (!node || !svg.contains(node)) return;+ var id = node.getAttribute('data-node-id');+ // Arrow keys follow the tree convention: left collapses, right expands.+ if (event.key === 'ArrowLeft' && toggles[id] && !collapsed[id]) { event.preventDefault(); setCollapsed(id, true); }+ else if (event.key === 'ArrowRight' && collapsed[id]) { event.preventDefault(); setCollapsed(id, false); }+ }, true);++ // Focus reveals ancestors synchronously before positioning its lens.+ // The observer also covers paths that change pressed state directly.+ new MutationObserver(function (records) {+ records.forEach(function (record) {+ var el = record.target;+ if (el.hasAttribute && el.hasAttribute('data-tree-hidden') && el.getAttribute('aria-pressed') === 'true') {+ reveal(el.getAttribute('data-node-id'));+ }+ });+ }).observe(svg, { subtree: true, attributes: true, attributeFilter: ['aria-pressed'] });++ Object.keys(toggles).forEach(function (id) {+ if (toggles[id].hasAttribute('data-tree-initially-collapsed')) collapsed[id] = true;+ });+ apply();++ return {+ active: true,+ toggle: toggle,+ collapse: function (id) { return setCollapsed(id, true); },+ expand: function (id) { return setCollapsed(id, false); },+ reveal: reveal,+ restoreAll: restoreAll,+ collapsedIds: function () { return Object.keys(collapsed); },+ expandAllControl: expandAll};})();- Archify.sourceEvidence.installBeacons();+/* ============================================================Explore — stable-ID neighborhood focus + dependency-free pan/zoom.@@ -8007,7 +8456,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function relationshipEdgeShapes(edge) {if (!edge) return [];if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function relationshipHitRecords() {var recordsByKey = {};@@ -8111,6 +8560,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function relationshipPulseGeometry(shape) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', relationshipTokenPath(shape));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -8155,7 +8606,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function relationshipTokenPath(shape) {if (!shape) return '';var tagName = String(shape.tagName || '').toLowerCase();- if (tagName === 'path') return shape.getAttribute('d') || '';+ if (tagName === 'path') return shape.getAttribute('data-motion-path') || shape.getAttribute('d') || '';if (tagName === 'line') {return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') +' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');@@ -8916,6 +9367,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);});if (!normalized.length) return false;+ // Hash restoration and internal selections use this path too. Reveal+ // tree ancestors before measuring the selected node for its lens.+ if (Archify.treeBranches && Archify.treeBranches.active) {+ normalized.forEach(function (id) { Archify.treeBranches.reveal(id); });+ }if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {clear();return true;@@ -9131,6 +9587,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.window.addEventListener('scroll', requestLensPlacement, { passive: true });window.addEventListener('resize', requestLensPlacement);container.addEventListener('scroll', requestLensPlacement, { passive: true });+ // Reader and Chrome may finish resizing the stage after window resize.+ // The absolute Passport does not resize its container when reclamped.+ if (typeof ResizeObserver === 'function') {+ new ResizeObserver(function () {+ if (!chip.hidden) requestLensPlacement();+ }).observe(container);+ }document.addEventListener('visibilitychange', function () {if (document.hidden) removeRelationshipPulse();});@@ -9242,7 +9705,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function edgeShapes(edge) {if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function removeOverlay() {Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {@@ -9265,6 +9728,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function traceGeometry(shape, direction) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -9412,6 +9877,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Adaptive Reader Shell — one diagram across laptop and monitor.The canonical SVG and viewBox never change. On ordinary desktop pages,@@ -9468,14 +9934,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shell = document.querySelector('.container');var diagram = document.querySelector('.diagram-container');var svg = diagram && diagram.querySelector(':scope > svg');+ var legend = svg && svg.querySelector('[data-legend]');var header = shell && shell.querySelector('.header');var cards = shell && shell.querySelector('.cards');var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;- var measuredHeightFit = svg && svg.getAttribute('data-reader-fit') === 'intrinsic-height';+ var readerFit = svg && svg.getAttribute('data-reader-fit');+ var widthFirstReading = readerFit === 'width-first';+ var automaticSequence = widthFirstReading && svg.hasAttribute('data-sequence-column-fit');+ var readingScroll = widthFirstReading;+ var measuredHeightFit = readerFit === 'intrinsic-height' || widthFirstReading;var frame = 0;var settleFrame = 0;var lastWidth = 0;+ var automaticAreaHeight = 0;// Widest reader the overflow settle has accepted for this viewport (0 =// uncapped). Card copy rewraps as the reader narrows, so recomputing// from fixed heights alone would widen again and oscillate; only a@@ -9485,6 +9957,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var MIN_DESKTOP_WIDTH = 1024;var MIN_READER_WIDTH = 960;var MAX_READER_WIDTH = 1920;+ var MAX_AUTOMATIC_SCALE = 1.5;var MIN_PROJECTED_NODE_TEXT_PX = 6;var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;var requestedMinimumText = Number.isFinite(declaredMinimumText)@@ -9535,24 +10008,34 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var style = window.getComputedStyle(element);return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);}+ // Smallest scale that keeps node text at the requested floor and+ // context relationship labels readable. A declared wide reader holds+ // relationship labels to the requested floor too; every other reader+ // still keeps them at the 6px hard floor the browser gate enforces, so+ // a first-screen fit can never push them below it.function minimumReadableScale() {- var sourceMinimum = null;- var selectors = [- 'text[data-node-label], text[data-boundary-label], text[data-detail="context"]'- ];- if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {- selectors.push('g[data-detail="context"][data-edge-from][data-edge-to] > text');- }- Array.from(svg.querySelectorAll(selectors.join(', '))).forEach(function (text) {- if (text.getAttribute('data-detail') === 'context' && !text.closest('[data-node-id]')) return;+ var nodeMinimum = null;+ var edgeMinimum = null;+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');- if (Number.isFinite(sourceFontPx)) {- sourceMinimum = sourceMinimum == null ? sourceFontPx : Math.min(sourceMinimum, sourceFontPx);+ if (!Number.isFinite(sourceFontPx)) return;+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);+ } else if (primary || text.closest('[data-node-id]')) {+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);}});- return sourceMinimum != null- ? Math.min(1, requestedMinimumText / sourceMinimum)- : 1;+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? requestedMinimumText+ : MIN_PROJECTED_NODE_TEXT_PX;+ var scale = 0;+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);+ return scale > 0 ? Math.min(1, scale) : 1;}var sourcePrimary = null;if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {@@ -9585,11 +10068,66 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function clear() {html.style.removeProperty('--archify-reader-width');+ html.style.removeProperty('--archify-diagram-max-width');+ html.style.removeProperty('--archify-diagram-min-height');+ html.removeAttribute('data-reader-area');+ html.removeAttribute('data-reader-narrow');html.removeAttribute('data-reader-layout');html.removeAttribute('data-reader-overflow');setRail(false);lastWidth = 0;+ automaticAreaHeight = 0;settledCap = 0;+ clearLegend();+ }+ function clearLegend() {+ if (!legend || !legend.hasAttribute('data-reader-legend-corner')) return;+ legend.removeAttribute('data-reader-legend-corner');+ legend.style.removeProperty('--archify-reader-legend-transform');+ }+ // Keep the original legend in its SVG: renderer hover/focus selectors and+ // canonical export still own that same group. Ordinary capped reading+ // and fitted automatic sequences borrow the outer corner at 25–100%.+ function syncLegend() {+ var cameraScale = Number(svg && svg.getAttribute('data-view-scale')) || 1;+ var cornerReading = html.getAttribute('data-reader-area') === 'true' || automaticSequence && !readingScroll;+ if (!legend || !eligible() || !cornerReading || cameraScale > 1.001) {+ clearLegend();+ return;+ }+ var box = legend.getBBox();+ var parentMatrix = legend.parentNode.getScreenCTM();+ if (!parentMatrix || !box.width || !box.height) {+ clearLegend();+ return;+ }+ var rect = diagram.getBoundingClientRect();+ var style = window.getComputedStyle(diagram);+ var scale = Math.min(svg.clientWidth / viewBox.width, svg.clientHeight / viewBox.height);+ if (!Number.isFinite(scale) || scale <= 0) {+ clearLegend();+ return;+ }+ var left = rect.left + number(style.borderLeftWidth) + number(style.paddingLeft);+ var right = rect.right - number(style.borderRightWidth) - number(style.paddingRight);+ var bottom = rect.bottom - number(style.borderBottomWidth) - number(style.paddingBottom);+ var top = bottom - box.height * scale;+ var nav = diagram.querySelector('.diagram-nav');+ var navRect = visible(nav) ? nav.getBoundingClientRect() : null;+ // Long or multi-row legends retain their canonical position if the+ // spare corner cannot hold them clear of the dock and content area.+ if (left + box.width * scale > right || top < rect.top + number(style.paddingTop) + number(style.borderTopWidth) ||+ (navRect && left < navRect.right + 10 && left + box.width * scale > navRect.left - 10 &&+ top < navRect.bottom + 10 && bottom > navRect.top - 10)) {+ clearLegend();+ return;+ }+ var matrix = parentMatrix.inverse().translate(left, top).scale(scale).translate(-box.x, -box.y);+ var value = 'matrix(' + [matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f].join(',') + ')';+ if (legend.style.getPropertyValue('--archify-reader-legend-transform') !== value) {+ legend.style.setProperty('--archify-reader-legend-transform', value);+ }+ if (!legend.hasAttribute('data-reader-legend-corner')) legend.setAttribute('data-reader-legend-corner', '');}// Rail modes: "true" docks beside the diagram, "collapsed" leaves only the// reveal control, "overlay" opens a drawer when docking would break the@@ -9646,13 +10184,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)};}+ // `width` is the diagram's reading width. The page shell never narrows+ // below the desktop reader floor, so a narrow, tall diagram keeps a+ // usable header, toolbar, and controls; its SVG is centred instead.function applyWidth(width, minWidth) {var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));- if (Math.abs(rounded - lastWidth) < 1) return false;+ var changed = Math.abs(rounded - lastWidth) >= 1;lastWidth = rounded;- html.style.setProperty('--archify-reader-width', rounded + 'px');+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ var diagramWidth = Math.max(1, rounded - railShare - chromeMetrics().diagramX);+ // Content fitting and automatic enlargement never reduce the outer+ // reader region. The SVG alone takes the narrower reading width.+ var automaticWidthCap = measuredHeightFit && viewBox && viewBox.width > 0+ ? viewBox.width * MAX_AUTOMATIC_SCALE : 0;+ if (automaticWidthCap && diagramWidth > automaticWidthCap) {+ diagramWidth = automaticWidthCap;+ html.style.setProperty('--archify-diagram-min-height', automaticAreaHeight + 'px');+ html.setAttribute('data-reader-area', 'true');+ } else {+ // Ordinary automatic diagrams retain their existing document flow.+ // Settling can also stop binding the cap without a new measure.+ html.style.removeProperty('--archify-diagram-min-height');+ html.removeAttribute('data-reader-area');+ }+ if (diagramWidth < Math.max(rounded, shellFloor) - railShare - chromeMetrics().diagramX) {+ html.style.setProperty('--archify-diagram-max-width', diagramWidth + 'px');+ html.setAttribute('data-reader-narrow', 'true');+ } else {+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ }html.setAttribute('data-reader-layout', 'adaptive');- return true;+ syncLegend();+ return changed;}function settleOverflow(minWidth) {if (settleFrame) cancelAnimationFrame(settleFrame);@@ -9664,11 +10230,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.document.documentElement.scrollHeight,document.body.scrollHeight) - window.innerHeight - belowFold();- if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {+ // visual-check fails any page whose rounded-up height exceeds the+ // viewport, so even a 1px remainder must be reduced or declared.+ if (overflow > 0 && !readingScroll && lastWidth > Math.ceil(minWidth)) {applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);settledCap = lastWidth;html.setAttribute('data-reader-overflow', 'reduced');- } else if (overflow > 1) {+ } else if (overflow > 0) {html.setAttribute('data-reader-overflow', 'authored');} else {html.removeAttribute('data-reader-overflow');@@ -9683,17 +10251,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}var chrome = chromeMetrics();var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);+ // Sequence first-screen fitting preserves source text sizes instead+ // of shrinking to the shared hard readability floor.var readableWidth = viewBox && viewBox.width > 0- ? viewBox.width * minimumReadableScale() + chrome.diagramX+ ? viewBox.width * (automaticSequence ? 1 : minimumReadableScale()) + chrome.diagramX: MIN_READER_WIDTH;var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);- var readableMinimumWidth = measuredHeightFit && ratio < WIDE_RATIO+ var readableMinimumWidth = automaticSequence || measuredHeightFit && ratio < WIDE_RATIO? readableWidth: measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)? Math.max(MIN_READER_WIDTH, readableWidth): MIN_READER_WIDTH;var minWidth;- if (measuredHeightFit && ratio < WIDE_RATIO) {+ if (automaticSequence) {+ minWidth = Math.min(readableMinimumWidth, maxWidth);+ } else if (measuredHeightFit && ratio < WIDE_RATIO) {minWidth = Math.min(readableMinimumWidth, viewportCap);} else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {minWidth = Math.min(readableMinimumWidth, maxWidth);@@ -9715,10 +10287,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';else mode = fitsReadable ? 'true' : 'overlay';}- // With notes below the fold, the diagram may trade the renderer's- // comfortable primary size down to the rail's 12px floor so it and its- // controls fit the first screen; taller graphs still scroll.- if (mode === 'bottom' && primaryWidth > 0) primaryWidth = labelWidth(Math.min(RAIL_COMFORT_PRIMARY_PX, declaredPrimaryText));+ // Height-fit families with notes below the fold may shrink to their+ // readable floor. Width-first families choose their reading width+ // below and retain page scrolling instead.+ if (mode === 'bottom') primaryWidth = 0;if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));var docked = mode === 'true';setRail(mode);@@ -9729,6 +10301,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.outerHeight(header) + stackedBelow;var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);+ // Compact automatic sequences fit the first screen without shrinking+ // their authored text. Longer sequences retain reading width and page+ // scroll; other width-first families keep their existing strategy.+ var sequenceFits = automaticSequence && Math.min(desiredWidth, maxWidth) >=+ readableWidth + (docked ? railExtra : 0);+ readingScroll = widthFirstReading && !sequenceFits;+ if (readingScroll) desiredWidth = maxWidth;+ // Only a binding enlargement cap needs a separate normal reader area.+ // Uncapped diagrams keep their existing natural height and Chrome fit.+ automaticAreaHeight = availableSvgHeight + chrome.diagramY;var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));applyWidth(width, minWidth);settleOverflow(minWidth);@@ -9757,7 +10339,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Math.round(shellRect.width * 100) / 100,Math.round(shellRect.height * 100) / 100,Math.round(diagramRect.width * 100) / 100,- Math.round(diagramRect.height * 100) / 100+ Math.round(diagramRect.height * 100) / 100,+ legend && legend.hasAttribute('data-reader-legend-corner') ? legend.style.getPropertyValue('--archify-reader-legend-transform') : ''].join('|');}function layoutPending() { return Boolean(frame || settleFrame); }@@ -9776,6 +10359,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.schedule();}, { passive: true });window.addEventListener('load', schedule, { once: true });+ window.addEventListener('beforeprint', clearLegend);+ window.addEventListener('afterprint', schedule);if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});if (typeof ResizeObserver === 'function') {var resizeObserver = new ResizeObserver(schedule);@@ -9818,6 +10403,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.measure: measure,schedule: schedule,whenStable: whenStable,+ syncLegend: syncLegend,active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },receipt: function () { return { ratio: ratio, width: lastWidth }; }};@@ -10110,6 +10696,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };return [reserve,+ lift,Math.round(containerRect.width * 100) / 100,Math.round(containerRect.height * 100) / 100,Math.round(navRect.left * 100) / 100,@@ -10120,7 +10707,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.lastReceipt ? lastReceipt.stageGap : ''].join('|');}- function layoutPending() { return Boolean(frame || settleFrame || probingBaseline); }+ function layoutPending() { return Boolean(frame || settleFrame || liftFrame || probingBaseline); }function whenStable() {return Archify.waitForStableLayout({schedule: schedule,@@ -10140,6 +10727,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (typeof ResizeObserver === 'function') {var resizeObserver = new ResizeObserver(schedule);[nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });+ // Camera zoom changes outer page flow without changing intrinsic SVG+ // size. Follow that box for dock placement, independently of scrolling+ // and the baseline stage-rail measurement.+ new ResizeObserver(scheduleLift).observe(container);}if (typeof MutationObserver === 'function') {var contentObserver = new MutationObserver(function (records) {@@ -10223,6 +10814,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');var inBtn = container.querySelector('[data-view="in"]');var state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ var minimumZoom = 0.25;+ var maximumZoom = 3;var drag = null;var cameraTimer = null;var cameraFrame = null;@@ -10231,12 +10824,25 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var clipFrame = 0;var resizeFrame = 0;var autoScrollUntil = 0;+ var originalFlowHeight = container.style.getPropertyValue('height');+ var originalFlowHeightPriority = container.style.getPropertyPriority('height');+ var compactPageFlow = false;var viewBox = svg.viewBox && svg.viewBox.baseVal;function clamp() {var width = svg.clientWidth || 1;var height = svg.clientHeight || 1;+ if (state.scale < 1) {+ var visibleWidth = Math.min(width, container.clientWidth);+ var availableX = visibleWidth - width * state.scale;+ state.x = availableX >= 0 ? container.scrollLeft + availableX / 2+ : Math.max(container.scrollLeft + availableX, Math.min(container.scrollLeft, state.x));+ // Long sequences keep their first rows in view instead of centering+ // inside a layout box that can be several screens tall.+ state.y = height > window.innerHeight ? 0 : height * (1 - state.scale) / 2;+ return;+ }state.x = Math.min(0, Math.max(width - width * state.scale, state.x));state.y = Math.min(0, Math.max(height - height * state.scale, state.y));}@@ -10263,15 +10869,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var y;var width;var height;- if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && state.scale >= 1) {x = viewBox.x + container.scrollLeft / metrics.scale;y = viewBox.y;width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));height = viewBox.height;} else {- x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;+ x = viewBox.x + (((container.scrollLeft - state.x) / state.scale) - metrics.offsetX) / metrics.scale;y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;- width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);+ width = Math.min(viewBox.width, Math.min(metrics.width, container.clientWidth) / state.scale / metrics.scale);height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);}width = Math.max(1, Math.min(viewBox.width, width));@@ -10336,13 +10942,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Math.abs(rendered.x - state.x) < 0.05 &&Math.abs(rendered.y - state.y) < 0.05;}+ // CSS transforms keep the SVG's intrinsic layout size. Shrink only its+ // outer page-flow box for long ordinary diagrams, never the SVG itself:+ // changing its height would feed the smaller size back into camera math.+ function syncPageFlow(camera) {+ camera = camera || state;+ var html = document.documentElement;+ var height = svg.clientHeight;+ var ordinary = html.getAttribute('data-embed') !== 'true' &&+ html.getAttribute('data-present') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches);+ // Restore ordinary flow as soon as the target reaches 100%. Chrome+ // uses that target to resume baseline rail measurement; retaining a+ // partially shrunk box during the CSS transition would inflate reserve.+ if (ordinary && state.scale < 1 && camera.scale < 1 && height > window.innerHeight) {+ var style = getComputedStyle(container);+ var chrome = ['paddingTop', 'paddingBottom', 'borderTopWidth', 'borderBottomWidth']+ .reduce(function (total, key) { return total + (parseFloat(style[key]) || 0); }, 0);+ var flowHeight = Math.ceil(height * camera.scale + Math.max(0, camera.y) + chrome) + 'px';+ if (container.style.getPropertyValue('height') !== flowHeight) container.style.setProperty('height', flowHeight);+ compactPageFlow = true;+ } else if (compactPageFlow) {+ if (originalFlowHeight) container.style.setProperty('height', originalFlowHeight, originalFlowHeightPriority);+ else container.style.removeProperty('height');+ compactPageFlow = false;+ }+ }function syncViewportClip() {if (clipFrame) cancelAnimationFrame(clipFrame);clipFrame = 0;function sample() {clipFrame = 0;var rendered = sampleRenderedState();+ syncPageFlow(rendered);clipToViewport(rendered);+ if (Archify.readerLayout && typeof Archify.readerLayout.syncLegend === 'function') Archify.readerLayout.syncLegend();if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);}sample();@@ -10350,12 +10984,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function apply() {clamp();svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';+ svg.setAttribute('data-view-scale', String(state.scale));syncViewportClip();renderControls();- outBtn.disabled = state.scale <= 1;- inBtn.disabled = state.scale >= 3;+ outBtn.disabled = state.scale <= minimumZoom;+ inBtn.disabled = state.scale >= maximumZoom;container.classList.toggle('is-pannable', state.scale > 1);- svg.setAttribute('data-view-scale', String(state.scale));if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {Archify.viewerChromeLayout.schedule();@@ -10449,8 +11083,14 @@ OTHER DEALINGS IN THE FONT SOFTWARE.options = options || {};if (options.manual !== false) interruptCamera();var previous = state.scale;- next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));+ next = Math.max(minimumZoom, Math.min(maximumZoom, Math.round(next * 4) / 4));if (next === previous) return;+ var longDiagram = svg.clientHeight > window.innerHeight && Math.min(previous, next) < 1;+ var before = longDiagram ? svg.getBoundingClientRect() : null;+ var anchorY = before ? Math.max(0, Math.min(window.innerHeight, before.bottom) + Math.max(0, before.top)) / 2 : 0;+ if (before && (before.bottom <= 0 || before.top >= window.innerHeight)) anchorY = window.innerHeight / 2;+ var logicalY = before ? Math.max(0, Math.min(svg.clientHeight, (anchorY - before.top) / previous)) : 0;+ var documentTop = before ? window.scrollY + before.top - state.y : 0;var centerX = (svg.clientWidth || 1) / 2;var centerY = (svg.clientHeight || 1) / 2;var contentX = (centerX - state.x) / previous;@@ -10459,6 +11099,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.state.x = centerX - contentX * next;state.y = centerY - contentY * next;apply();+ if (longDiagram) {+ var scaledHeight = svg.clientHeight * next;+ var pageY = scaledHeight <= window.innerHeight ? documentTop + state.y+ : documentTop + state.y + logicalY * next - anchorY;+ window.scrollTo({ left: window.scrollX, top: Math.max(0, pageY), behavior: 'instant' });+ }}function reset(options) {options = options || {};@@ -10715,6 +11361,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.else apply();});});+ // Reader width and Chrome reserve can change without a window resize.+ // Observe their resulting sizes; the SVG remains intrinsically sized, so+ // the outer flow height cannot feed back into its camera base.+ if (typeof ResizeObserver === 'function') {+ var flowObserver = new ResizeObserver(function () { syncPageFlow(sampleRenderedState()); });+ flowObserver.observe(svg);+ flowObserver.observe(container);+ }+ if (typeof MutationObserver === 'function') {+ new MutationObserver(function () { syncPageFlow(sampleRenderedState()); })+ .observe(document.documentElement, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });+ }+ var printMedia = window.matchMedia && window.matchMedia('print');+ if (printMedia && printMedia.addEventListener) printMedia.addEventListener('change', function () { syncPageFlow(sampleRenderedState()); });window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });apply();pinControls();@@ -11595,6 +12255,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var links = document.createElement('em');links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;+ if (item.links === 0) links.setAttribute('data-zero', 'true');var meta = document.createElement('small');meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');@@ -11835,6 +12496,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.})();+/* ============================================================Route Probe — shortest directed path over compiled semantics.The graph is read from renderer-owned stable IDs and relationship@@ -11941,7 +12603,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function edgeShapes(edge) {if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function removeOverlay() {Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {@@ -12171,6 +12833,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function traceGeometry(shape, step) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -12271,6 +12935,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function journeyGeometry(shape) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -12867,6 +13533,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Semantic Lens — a counted, viewer-only legend over data-node-kind.One selected kind reveals every authored relationship touching it.@@ -12930,7 +13597,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function edgeShapes(edge) {if (!edge) return [];if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function legendSourceBounds(entry) {var bounds = null;@@ -13103,6 +13770,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function flowGeometry(shape, direction, step) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -13540,6 +14209,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Diagram Guide — a factual command deck over existing interactions.Counts come from compiled semantics; actions delegate to Finder, Route@@ -13591,7 +14261,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -13691,7 +14363,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -13710,6 +14384,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/rag-pipeline.html b/examples/rag-pipeline.htmlindex 1d99727a..e6e46f7f 100644--- a/examples/rag-pipeline.html+++ b/examples/rag-pipeline.html@@ -3,7 +3,8 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.17.0-dev.1">+ <meta name="generator" content="archify 3.0.2-dev.1">+ <meta name="archify-reader-contract" content="declared-wide-v1"><title>RAG Pipeline Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -173,6 +174,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.[data-theme="dark"] {--bg: #020617;--grid: #1e293b;+ --canvas-dot: rgba(148, 163, 184, 0.16);--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;@@ -214,15 +216,16 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}[data-theme="light"] {- --bg: #f8fafc;- --grid: #e2e8f0;- --text: #0f172a;- --text-muted: #64748b;- --text-dim: #94a3b8;- --text-faint: #64748b;+ --bg: #f4f5f7;+ --grid: #e9edf2;+ --canvas-dot: #e2e7ec;+ --text: #111827;+ --text-muted: #5b6474;+ --text-dim: #9aa3b2;+ --text-faint: #6b7280;--panel: #ffffff;- --panel-border: #e2e8f0;+ --panel-border: #e5e7eb;--lane-fill: rgba(248, 250, 252, 0.65);--lane-stroke: #cbd5e1;@@ -231,20 +234,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.--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;+ --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;@@ -477,12 +480,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.* { 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;+ --archify-page-top: 2rem;+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;+ -webkit-font-smoothing: antialiased;background: var(--bg);min-height: 100vh;- padding: 2rem;+ padding: var(--archify-page-top) 2rem 2rem;color: var(--text);- transition: background 0.2s ease, color 0.2s ease;+ /* Theme surfaces change together; animating the page background leaves it+ visibly out of sync with the SVG and panel for the first 200ms. */}html[data-preset="signal-flow"] body {@@ -530,7 +536,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.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"] .node-outline { display: none !important; }html[data-embed="true"] .container { max-width: none; }html[data-embed="true"] .diagram-container {padding: 0.5rem;@@ -540,142 +546,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}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 diagramthe 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 {+ --archify-page-top: 1rem;height: 100dvh;min-height: 0;padding: 1rem;@@ -701,10 +576,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.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;@@ -727,15 +599,35 @@ OTHER DEALINGS IN THE FONT SOFTWARE.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. */+ /* The reader owns only the outer scale. Compact automatic sequences fit at+ their authored text size or larger. Long sequences and waterfall rows+ favor reading width and page scroll; other diagrams keep height fitting.+ Small automatic canvases retain a modest scale inside a usable shell.+ Every strategy preserves the authored SVG/viewBox and semantic geometry. */.container {width: 100%;max-width: var(--archify-reader-width, 1440px);margin: 0 auto;}+ html[data-reader-area="true"] .diagram-container {+ min-height: var(--archify-diagram-min-height);+ display: flex;+ align-items: center;+ }+ html[data-reader-area="true"] .diagram-container > svg { flex-shrink: 0; }+ /* The original SVG legend can use the outer corner while the capped or fitted+ diagram stays centered. The container still clips all outer paint. */+ .diagram-container:has([data-reader-legend-corner]) > svg { overflow: visible; }+ .diagram-container [data-reader-legend-corner] {+ transform-origin: 0 0;+ transform-box: view-box;+ transform: var(--archify-reader-legend-transform);+ }+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {+ min-width: 0;+ max-width: var(--archify-diagram-max-width);+ margin-inline: auto;+ }@media (min-width: 768px) and (max-height: 920px) {.header { margin-bottom: 1rem; }.diagram-container { padding: 1rem; }@@ -752,15 +644,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE..header-row {display: flex;align-items: center;- gap: 1rem;- margin-bottom: 0.5rem;+ gap: 0.75rem;+ min-height: 2.75rem;+ margin-bottom: 0.25rem;}.pulse-dot {- width: 12px;- height: 12px;+ flex: none;+ width: 10px;+ height: 10px;background: var(--frontend-stroke);border-radius: 50%;+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--frontend-stroke) 16%, transparent);animation: none;}@@ -773,19 +668,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.h1 {font-size: 1.5rem;- font-weight: 700;- letter-spacing: -0.025em;+ font-weight: 650;+ line-height: 1.25;+ letter-spacing: -0.015em;}.subtitle {color: var(--text-muted);font-size: 0.875rem;- margin-left: 1.75rem;+ line-height: 1.55;+ margin-left: 1.375rem;}html[data-preset="signal-flow"] .header-row::after {content: attr(data-preset-badge-signal-flow);- margin-left: auto;+ flex: none;+ margin-left: 0.25rem;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);border-radius: 999px;@@ -809,7 +707,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}html[data-preset="blueprint"] .header-row::after {content: attr(data-preset-badge-blueprint);- margin-left: auto;+ flex: none;+ margin-left: 0.25rem;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);border-bottom: 1px solid var(--frontend-stroke);@@ -838,7 +737,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}html[data-preset="editorial"] .header-row::after {content: attr(data-preset-badge-editorial);- margin-left: auto;+ flex: none;+ margin-left: 0.25rem;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);color: var(--arrow-emphasis);@@ -855,6 +755,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.background: var(--panel);border-radius: 1rem;border: 1px solid var(--panel-border);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -20px rgba(15, 23, 42, 0.18);padding: 1.5rem;padding-bottom: calc(1.5rem + var(--archify-nav-reserve));overflow: hidden;@@ -925,7 +826,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.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 {+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-entry="running"] .diagram-container::before {content: "";position: absolute;inset: 0;@@ -942,6 +843,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.html:not([data-motion-capable="true"]) svg[data-animation="trace"] [data-animate] {animation: none !important;}+ html:not([data-motion-capable="true"]) svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ 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],@@ -954,7 +858,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.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] {+ html[data-document-hidden="true"] svg[data-animation="trace"] [data-animate],+ html[data-motion="still"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-motion-owner] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-document-hidden="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {animation: none !important;}html[data-motion="still"] .diagram-container::before,@@ -963,43 +872,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.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 {+ html[data-document-hidden="true"] .overview-map-live {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;@@ -1008,12 +895,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}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"] .relationship-pulse-overlay { display: none !important; }+html[data-motion="still"] svg [data-node-id],html[data-motion="still"] svg [data-edge-from],html[data-motion="still"] svg [data-detail],@@ -1024,6 +907,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}svg {+ 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;width: 100%;min-width: min(900px, 100%);display: block;@@ -1044,23 +928,23 @@ OTHER DEALINGS IN THE FONT SOFTWARE.right: 1rem;bottom: 1rem;z-index: 12;+ translate: 0 calc(-1 * var(--archify-dock-lift, 0px));display: inline-flex;align-items: center;max-width: calc(100% - 2rem);- padding: 0.15rem;- gap: 0;+ padding: 0.25rem;+ gap: 0.0625rem;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);+ border: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);+ border-radius: 0.75rem;+ background: color-mix(in srgb, var(--panel) 84%, transparent);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.28);+ backdrop-filter: blur(14px) saturate(1.2);scrollbar-width: none;}.diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,- .focus-chip button,- .guided-views button {+ .focus-chip button {border: 0;background: transparent;color: var(--toolbar-text);@@ -1070,56 +954,62 @@ OTHER DEALINGS IN THE FONT SOFTWARE..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;+ padding: 0 0.4rem;+ border-radius: 0.5rem;+ color: var(--text-muted);+ font-size: 0.75rem;+ font-weight: 500;+ letter-spacing: 0;transition: background 0.15s, color 0.15s;}.diagram-nav button:hover,+ .diagram-nav button:focus-visible {+ color: var(--text);+ background: color-mix(in srgb, var(--text) 6%, transparent);+ }+ .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); }+ .focus-chip button:focus-visible { background: var(--toolbar-hover); }.diagram-nav button:focus-visible,- .focus-chip button:focus-visible,- .guided-views button:focus-visible {+ .focus-chip button:focus-visible {outline: 2px solid var(--frontend-stroke);outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }+ /* The Guide stays on the ? shortcut; Map only earns dock space once the+ reader has zoomed past the full diagram (or opened it from the keyboard). */+ .diagram-nav button[hidden] { display: none; }+ .diagram-container:not(.is-pannable) #btn-overview-map:not([data-radar-requested]):not(:focus) { display: none; }.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;+ padding-inline: 0.6rem;+ color: var(--text-muted);+ font-weight: 500;}.diagram-nav #btn-node-finder,.diagram-nav [data-view="out"] {position: relative;- margin-left: 0.25rem;+ margin-left: 0.375rem;}.diagram-nav #btn-node-finder::before,.diagram-nav [data-view="out"]::before {position: absolute;- top: 0.4rem;- bottom: 0.4rem;- left: -0.13rem;+ top: 0.55rem;+ bottom: 0.55rem;+ left: -0.19rem;width: 1px;- background: color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ background: color-mix(in srgb, var(--panel-border) 90%, transparent);content: "";pointer-events: none;}.diagram-nav-icon {display: block;- width: 0.72rem;- height: 0.72rem;+ width: 0.95rem;+ height: 0.95rem;margin: auto;background: currentColor;-webkit-mask-position: center;@@ -1164,11 +1054,68 @@ OTHER DEALINGS IN THE FONT SOFTWARE.letter-spacing: 0.07em;}.diagram-nav-percent {- color: color-mix(in srgb, var(--toolbar-text) 84%, transparent);- font-size: 0.55rem;- font-weight: 650;+ color: var(--text-muted);+ font-size: 0.75rem;+ font-weight: 500;+ font-variant-numeric: tabular-nums;line-height: 1;}+ /* Mode buttons carry a small glyph so the dock reads as one icon language. */+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ display: inline-flex;+ align-items: center;+ gap: 0.375rem;+ padding-inline: 0.55rem 0.65rem;+ }+ .diagram-nav #btn-route-probe::before,+ .diagram-nav #btn-overview-map::before,+ .diagram-nav #btn-semantic-lens::before {+ flex: none;+ width: 0.95rem;+ height: 0.95rem;+ background: currentColor;+ content: "";+ opacity: 0.85;+ -webkit-mask: var(--nav-glyph) center / contain no-repeat;+ mask: var(--nav-glyph) center / contain no-repeat;+ }+ .diagram-nav #btn-route-probe { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='4.8' cy='14.8' r='2.2'/%3E%3Ccircle cx='15.2' cy='5.2' r='2.2'/%3E%3Cpath d='M6.9 13.9c3.8-1.4 2.6-6.3 6.2-7.8'/%3E%3C/g%3E%3C/svg%3E"); }+ .diagram-nav #btn-overview-map { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M2.8 5.4 7.4 3.5l5.2 2 4.6-1.9v11l-4.6 1.9-5.2-2-4.6 1.9z'/%3E%3Cpath d='M7.4 3.5v11M12.6 5.5v11'/%3E%3C/g%3E%3C/svg%3E"); }+ .diagram-nav #btn-semantic-lens { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='10' cy='10' r='6.8'/%3E%3Ccircle cx='10' cy='10' r='2.6'/%3E%3C/g%3E%3C/svg%3E"); }+ /* Zoom out / level / zoom in join into one stepper well. */+ .diagram-nav [data-view="out"],+ .diagram-nav [data-view="reset"],+ .diagram-nav [data-view="in"] {+ position: relative;+ border-radius: 0;+ background: color-mix(in srgb, var(--panel-border) 38%, transparent);+ }+ .diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }+ .diagram-nav [data-view="out"]::before { display: none; }+ .diagram-nav [data-view="reset"],+ .diagram-nav [data-view="in"] { margin-left: -0.0625rem; }+ .diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }+ .diagram-nav [data-view="reset"]::after,+ .diagram-nav [data-view="in"]::after {+ position: absolute;+ top: 0.55rem;+ bottom: 0.55rem;+ left: 0;+ width: 1px;+ background: color-mix(in srgb, var(--panel-border) 75%, transparent);+ content: "";+ pointer-events: none;+ }+ .diagram-nav [data-view="out"]:hover,+ .diagram-nav [data-view="reset"]:hover,+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--panel-border) 60%, transparent); }+ .diagram-nav [data-view="out"]:disabled,+ .diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }+ .diagram-nav [data-view="out"]:disabled:hover,+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--panel-border) 38%, transparent); }+ .diagram-nav [data-view="reset"] { min-width: 3.25rem; }.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"] {@@ -1392,7 +1339,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}.diagram-nav #btn-overview-map[aria-expanded="true"] {color: var(--frontend-stroke);- background: var(--toolbar-hover);+ background: color-mix(in srgb, var(--frontend-stroke) 11%, transparent);}.overview-map-feedback {position: absolute;@@ -1414,12 +1361,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE..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);+ background: color-mix(in srgb, var(--backend-stroke) 11%, transparent);}.diagram-nav #btn-semantic-lens[aria-expanded="true"],.diagram-nav #btn-semantic-lens[aria-pressed="true"] {color: var(--database-stroke);- background: var(--toolbar-hover);+ background: color-mix(in srgb, var(--database-stroke) 11%, transparent);}/* Semantic Lens turns the compiled node-kind palette into an analytical@@ -1616,9 +1563,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.color: var(--toolbar-text);box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);backdrop-filter: blur(16px);- font-size: 0.625rem;+ font-size: 0.75rem;}.route-probe[hidden] { display: none; }+ /* Picking needs one line of guidance, not a wide empty card; the panel+ widens only when there is a traced route to show. */+ .route-probe:not([data-state="result"]) { width: min(22rem, calc(100% - 2rem)); min-width: 0; }+ .route-probe-path:has(> .route-probe-placeholder:only-child) { display: none; }.route-probe[data-route-dock="top"] {top: 1rem;bottom: auto;@@ -1629,25 +1580,25 @@ OTHER DEALINGS IN THE FONT SOFTWARE.grid-template-columns: minmax(0, 1fr) auto;align-items: start;gap: 0.65rem;- padding: 0.52rem 0.58rem 0.44rem;+ padding: 0.625rem 0.75rem 0.5rem;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;+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.02em;}.route-probe-title {display: block;margin-top: 0.14rem;overflow: hidden;color: var(--toolbar-text);- font-size: 0.72rem;- line-height: 1.25;+ font-size: 0.875rem;+ font-weight: 600;+ line-height: 1.3;white-space: nowrap;text-overflow: ellipsis;}@@ -1728,16 +1679,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}.route-probe-placeholder {color: var(--text-faint);- font-size: 0.56rem;- letter-spacing: 0.03em;+ font-size: 0.75rem;}.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;+ padding: 0.5rem 0.75rem 0.625rem;+ color: var(--text-muted, var(--text-faint));+ font-size: 0.75rem;+ line-height: 1.45;}.route-journey-controls {display: grid;@@ -1795,14 +1745,40 @@ OTHER DEALINGS IN THE FONT SOFTWARE.font-size: 0.625rem;}.relationship-lens-head {+ position: relative;display: grid;grid-template-columns: minmax(0, 1fr) auto;align-items: start;gap: 0.75rem;- padding: 0.7rem 0.75rem 0.65rem;+ padding: 0.9rem 0.75rem 0.65rem;border-bottom: 1px solid var(--toolbar-border);background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);}+ .relationship-lens-drag-handle {+ position: absolute;+ top: 0.12rem;+ left: 50%;+ width: 2.5rem;+ height: 0.78rem;+ padding: 0 !important;+ transform: translateX(-50%);+ color: var(--text-faint) !important;+ cursor: grab;+ touch-action: none;+ user-select: none;+ }+ .relationship-lens-drag-handle::before {+ content: "";+ display: block;+ width: 1.25rem;+ margin: auto;+ border-top: 2px dotted currentColor;+ opacity: 0.72;+ }+ .focus-chip[data-panel-dragging="true"] .relationship-lens-drag-handle { cursor: grabbing; }+ @media (hover: none), (pointer: coarse) {+ .relationship-lens-drag-handle { display: none; }+ }.relationship-lens-copy { min-width: 0; }.relationship-lens-actions {display: flex;@@ -1950,8 +1926,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.color: var(--text-muted);text-decoration: none;}- .semantic-passport-source:hover,- .semantic-passport-source:focus-visible {+ 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);@@ -2228,7 +2204,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE..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);}@@ -2382,7 +2358,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.gap: 0.55rem;margin: 0 0.55rem 0.55rem;padding: 0 0.7rem;- min-height: 2.6rem;+ min-height: 2.35rem;border: 1px solid var(--toolbar-border);border-radius: 0.55rem;background: color-mix(in srgb, var(--panel) 78%, transparent);@@ -2392,7 +2368,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE..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);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 14%, transparent);}.node-finder-input {appearance: none;@@ -2430,6 +2406,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.background: color-mix(in srgb, var(--panel) 54%, transparent);scroll-padding-block: 0.25rem;scrollbar-width: thin;+ scrollbar-color: color-mix(in srgb, var(--panel-border) 90%, transparent) transparent;+ }+ /* Slim overlay-style thumb instead of the chunky platform default. */+ .node-finder-results::-webkit-scrollbar { width: 10px; }+ .node-finder-results::-webkit-scrollbar-track { background: transparent; }+ .node-finder-results::-webkit-scrollbar-thumb {+ background: color-mix(in srgb, var(--panel-border) 85%, transparent);+ border: 3px solid transparent;+ border-radius: 999px;+ background-clip: padding-box;+ }+ .node-finder-results::-webkit-scrollbar-thumb:hover {+ background: color-mix(in srgb, var(--text-muted) 65%, transparent);+ border: 3px solid transparent;+ background-clip: padding-box;}html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }.node-finder-result {@@ -2437,8 +2428,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.grid-template-columns: minmax(0, 1fr) auto;gap: 0.2rem 0.75rem;width: 100%;- min-height: 3.25rem;- padding: 0.58rem 0.65rem;+ min-height: 3rem;+ padding: 0.52rem 0.65rem;border: 0;border-radius: 0;background: transparent;@@ -2479,6 +2470,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.font-size: 0.625rem;font-style: normal;}+ /* A zero count is absence, not information — let it recede. */+ .node-finder-result em[data-zero] { color: var(--text-faint); }.node-finder[data-context^="route-"] .node-finder-result em {padding: 0.1rem 0.3rem;border: 1px solid color-mix(in srgb, currentColor 52%, transparent);@@ -2502,520 +2495,58 @@ OTHER DEALINGS IN THE FONT SOFTWARE.font-size: 0.5625rem;}- .guided-views {+ .cards {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);+ grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));+ gap: 1rem;+ margin-top: 2rem;}- .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;+ .card {+ background: var(--panel);+ border-radius: 0.75rem;+ border: 1px solid var(--panel-border);+ padding: 1.125rem 1.25rem;+ /* Card notes are authored prose and may carry an unbreakable run such as a+ slash-joined pipeline or a long identifier. Without this, that run sets the+ card's min-content width, spills past its track in every rail placement,+ and pushes the whole page into horizontal overflow at desktop widths.+ `anywhere` rather than `break-word` because only `anywhere` shrinks the+ intrinsic minimum the layout is sized from. */+ overflow-wrap: anywhere;}- .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;++ 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);}- .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;+ 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);}- .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; }++ /* 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; }+ body { --archify-page-top: 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; }+ /* Align the fixed toolbar with the compact title row. Reserve its hit area+ above the guide without taking extra height from a fitted diagram. */+ html[data-nav-stage-rail="true"] .toolbar { top: 0.25rem; }+ html[data-nav-stage-rail="true"] .header { min-height: 2.625rem; margin-bottom: 0.5rem; }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; }}@@ -3052,40 +2583,413 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}html[data-preset="editorial"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }- .card-header {+ /* Summary rail: the reader measures the viewport and enables it only when the+ diagram keeps its readable width beside the notes. */+ .reader-rail { display: contents; }+ html[data-reader-rail="true"] .container {+ display: grid;+ grid-template-columns: minmax(0, 1fr) var(--archify-rail-width);+ grid-auto-flow: row dense;+ column-gap: var(--archify-rail-gap);+ align-items: start;+ }+ html[data-reader-rail="true"] .container > .header { grid-column: 1 / -1; }+ html[data-reader-rail="true"] .container > .diagram-container { grid-column: 1; }+ /* The rail is at least the diagram's height and may run on to the viewport+ floor (--archify-rail-max, set by the reader); past that, notes scroll and+ the index keeps a usable share instead of collapsing to its header. */+ html[data-reader-rail="true"] .reader-rail {display: flex;- align-items: center;- gap: 0.5rem;- margin-bottom: 0.75rem;+ flex-direction: column;+ grid-column: 2;+ align-self: stretch;+ min-height: 0;+ max-height: var(--archify-rail-max, none);}-- .card-dot {- width: 8px;- height: 8px;- border-radius: 50%;+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards:empty { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards {+ display: flex;+ flex: 0 1 auto;+ flex-direction: column;+ gap: 0;+ min-height: 0;+ margin-top: 0;+ padding: 0.125rem 0 0;+ overflow-y: auto;+ scrollbar-width: none;+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);+ mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);}-- .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;+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards::-webkit-scrollbar { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card { flex: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card {+ padding: 0 0.25rem 1.125rem;+ border: 0;+ border-radius: 0;+ background: transparent;+ box-shadow: none;}+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card + .card {+ padding-top: 1.125rem;+ border-top: 1px solid var(--panel-border);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card::before { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .card-header { gap: 0.55rem; margin-bottom: 0.45rem; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card h3 { font-size: 0.875rem; letter-spacing: -0.005em; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card ul { font-size: 0.8125rem; line-height: 1.6; }- .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+ .node-outline { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .node-outline:not([hidden]) {+ display: flex;+ flex: 1 0 min(13rem, 55%);+ flex-direction: column;+ min-height: 0;+ margin-top: 0.25rem;+ overflow: hidden;+ border-top: 1px solid var(--panel-border);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards:empty + .node-outline:not([hidden]) { margin-top: 0; border-top: 0; }+ /* Collapsed: only the reveal control remains, so the diagram takes the width. */+ html[data-reader-rail="collapsed"] .reader-rail { display: none; }+ /* Overlay: a drawer for diagrams whose readable floor leaves no room to dock. */+ html[data-reader-rail="overlay"] .reader-rail {+ position: fixed;+ z-index: 150;+ top: 1rem;+ right: 1rem;+ bottom: 1rem;+ display: flex;+ flex-direction: column;+ width: var(--archify-rail-width);+ padding: 0.75rem 1rem 0.5rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ border-radius: 1rem;+ background: var(--toolbar-menu-bg);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 28px 64px -18px rgba(15, 23, 42, 0.38);+ animation: rail-drawer-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);+ }+ @keyframes rail-drawer-in {+ from { opacity: 0; transform: translateX(0.75rem); }+ to { opacity: 1; transform: translateX(0); }+ }+ /* Bottom (default): the notes keep their full-width card row and the index+ follows as one panel whose groups flow into columns, so nothing scrolls+ inside it. The placement toggle sits in the index header. */+ html[data-reader-rail="bottom"] .reader-rail {+ display: grid;+ grid-template-areas: "cards" "index";+ grid-template-columns: minmax(0, 1fr);+ row-gap: 1rem;+ margin-top: 1rem;+ }+ html[data-reader-rail="bottom"] .cards { grid-area: cards; margin-top: 0; }+ html[data-reader-rail="bottom"] .cards:empty { display: none; }+ html[data-reader-rail="bottom"] .node-outline:not([hidden]) {+ display: block;+ grid-area: index;+ padding: 0 1.25rem 0.75rem;+ border: 1px solid var(--panel-border);+ border-radius: 0.75rem;+ background: var(--panel);+ }+ html[data-reader-rail="bottom"] .reader-rail > .rail-controls {+ z-index: 1;+ grid-area: index;+ align-self: start;+ justify-self: end;+ margin: 0.625rem 0.625rem 0 0;+ }+ html[data-reader-rail="bottom"] .node-outline-head { padding: 1rem 2.5rem 0.375rem 0.25rem; }+ html[data-reader-rail="bottom"] .node-outline-list {+ columns: 15rem;+ column-gap: 1.75rem;+ padding: 0;+ overflow: visible;+ -webkit-mask-image: none;+ mask-image: none;+ }+ /* Named groups stay whole; a single unnamed group may split across columns,+ where a continuous spine would read as a broken line. */+ html[data-reader-rail="bottom"] .node-outline-group + .node-outline-group { margin-top: 0; }+ html[data-reader-rail="bottom"] .node-outline-group:has(> .node-outline-heading) { break-inside: avoid; padding-bottom: 0.25rem; }+ html[data-reader-rail="bottom"] .node-outline-group:not(:has(> .node-outline-heading)) > ul::before { display: none; }+ html[data-reader-rail="bottom"] .node-outline-group li { break-inside: avoid; }+ .rail-controls { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"], [data-reader-rail="bottom"]) .rail-controls {+ display: flex;+ flex: none;+ justify-content: flex-end;+ gap: 0.125rem;+ margin: -0.25rem -0.25rem 0.25rem 0;+ }+ .rail-control {+ display: inline-grid;+ place-items: center;+ width: 1.875rem;+ height: 1.875rem;+ border: 0;+ border-radius: 0.5rem;+ background: transparent;+ color: var(--text-faint);+ cursor: pointer;+ transition: background 0.14s ease, color 0.14s ease;+ }+ .rail-control[hidden] { display: none; }+ .rail-control:hover,+ .rail-control:focus-visible { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }+ .rail-control:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: -1.5px; }+ .rail-control-icon,+ .rail-reveal-icon {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ -webkit-mask: var(--rail-glyph) center / contain no-repeat;+ mask: var(--rail-glyph) center / contain no-repeat;+ }+ /* Panel glyphs: a frame with the panel drawn on the side it moves to. */+ .rail-control-icon.placement,+ #rail-placement[data-placement="right"] .rail-control-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M2.8 12h14.4'/%3E%3C/g%3E%3C/svg%3E"); }+ #rail-placement[data-placement="bottom"] .rail-control-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4'/%3E%3C/g%3E%3C/svg%3E"); }+ .rail-control-icon.collapse { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m8 5.5 4.5 4.5L8 14.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }+ .rail-reveal-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4M14.4 7.2h1M14.4 9.6h1M14.4 12h1'/%3E%3C/g%3E%3C/svg%3E"); }+ .rail-reveal[hidden] { display: none; }+ /* The collapsed rail leaves one quiet pill in the canvas corner. */+ .rail-reveal {+ position: absolute;+ z-index: 13;+ top: 0.75rem;+ right: 0.75rem;+ display: inline-flex;+ align-items: center;+ gap: 0.45rem;+ min-height: 2rem;+ padding: 0 0.75rem 0 0.625rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);+ border-radius: 999px;+ background: color-mix(in srgb, var(--panel) 86%, transparent);+ color: var(--text-muted);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px -12px rgba(15, 23, 42, 0.28);+ backdrop-filter: blur(12px);+ font: inherit;+ font-size: 0.75rem;+ font-weight: 500;+ cursor: pointer;+ transition: color 0.14s ease, background 0.14s ease;+ }+ .rail-reveal:hover,+ .rail-reveal:focus-visible { color: var(--text); background: var(--panel); }+ .rail-reveal:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: 2px; }+ html[data-motion="still"] .reader-rail { animation: none !important; }+ .node-outline-head {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ padding: 1.125rem 0.25rem 0.375rem;+ }+ .node-outline-head strong {+ color: var(--text);+ font-size: 0.875rem;+ font-weight: 600;+ letter-spacing: -0.005em;+ }+ .node-outline-count {+ min-width: 1.35rem;+ padding: 0.1rem 0.4rem;+ border-radius: 999px;+ background: color-mix(in srgb, var(--text) 6%, transparent);+ color: var(--text-muted);+ font-size: 0.6875rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ font-variant-numeric: tabular-nums;+ }+ .node-outline-list {+ flex: 1 1 auto;+ min-height: 0;+ margin: 0 -0.375rem;+ padding: 0 0 1.25rem;+ overflow-y: auto;+ list-style: none;+ scrollbar-width: none;+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);+ mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);+ }+ .node-outline-list::-webkit-scrollbar { display: none; }+ .node-outline-group + .node-outline-group { margin-top: 0.25rem; }+ .node-outline-group > ul {+ position: relative;+ list-style: none;+ }+ /* A quiet spine ties each group's swatches together like a lane. */+ .node-outline-group > ul::before {+ position: absolute;+ top: 0.95rem;+ bottom: 0.95rem;+ left: calc(0.625rem + 0.3125rem - 0.5px);+ width: 1px;+ background: var(--panel-border);+ content: "";+ }+ .node-outline-heading {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ padding: 0.7rem 0.625rem 0.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.02em;+ }+ .node-outline-heading small {+ color: var(--text-dim);+ font-size: 0.6875rem;+ font-weight: 500;+ font-variant-numeric: tabular-nums;+ }+ /* The rail frees the vertical budget, so compact viewports keep the normal+ title spacing instead of the stacked layout's tight stage rail. */+ html[data-reader-rail]:not([data-reader-rail="bottom"]) body { --archify-page-top: 1.5rem; padding-block: 1.5rem; }+ html[data-reader-rail]:not([data-reader-rail="bottom"]) .toolbar { top: calc(var(--archify-page-top) - 0.1875rem); }+ html[data-reader-rail]:not([data-reader-rail="bottom"]) .header { min-height: 0; margin-bottom: 1.125rem; }+ .node-outline-item {+ position: relative;+ display: grid;+ grid-template-columns: 0.625rem minmax(0, auto) minmax(0, 1fr) 0.75rem;+ align-items: center;+ column-gap: 0.625rem;+ width: 100%;+ min-height: 1.95rem;+ padding: 0.28rem 0.5rem 0.28rem 0.625rem;+ border: 0;+ border-radius: 0.5rem;+ background: transparent;+ color: var(--text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: background 0.16s ease;+ }+ /* Trailing chevron hints that a click focuses the node. */+ .node-outline-item::after {+ grid-column: 4;+ width: 0.75rem;+ height: 0.75rem;+ background: currentColor;+ color: var(--text-muted);+ content: "";+ opacity: 0;+ transform: translateX(-3px);+ transition: opacity 0.16s ease, transform 0.16s ease;+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;+ }+ .node-outline-item:hover,+ .node-outline-item:focus-visible,+ .node-outline-item[data-previewing] { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .node-outline-item:hover::after,+ .node-outline-item:focus-visible::after { opacity: 0.7; transform: translateX(0); }+ .node-outline-item:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--outline-tone) 60%, transparent); outline-offset: -1.5px; }+ .node-outline-item[aria-current="true"] { background: color-mix(in srgb, var(--outline-tone) 10%, transparent); }+ .node-outline-item[aria-current="true"]::after { opacity: 0; }+ /* Swatches echo the diagram's node cards: tinted fill, hairline stroke. */+ .node-outline-dot {+ width: 0.625rem;+ height: 0.5rem;+ border: 1.25px solid var(--outline-tone);+ border-radius: 0.15rem;+ background: color-mix(in srgb, var(--outline-tone) 16%, var(--bg));+ transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;+ }+ .node-outline-item:hover .node-outline-dot,+ .node-outline-item:focus-visible .node-outline-dot,+ .node-outline-item[data-previewing] .node-outline-dot,+ .node-outline-item[aria-current="true"] .node-outline-dot {+ background: var(--outline-tone);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--outline-tone) 18%, transparent);+ transform: scale(1.08);+ }+ .node-outline-item strong {+ overflow: hidden;+ font-size: 0.8125rem;+ font-weight: 500;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-outline-item[aria-current="true"] strong { font-weight: 600; }+ .node-outline-item small {+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.6875rem;+ text-align: right;+ text-overflow: ellipsis;+ white-space: nowrap;+ transition: color 0.16s ease;+ }+ .node-outline-item:hover small,+ .node-outline-item[data-previewing] small,+ .node-outline-item[aria-current="true"] small { color: var(--text-muted); }++ .card-header {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ margin-bottom: 0.625rem;+ }++ .card-dot {+ flex: none;+ 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.9375rem; font-weight: 600; line-height: 1.4; color: var(--text); }++ .card ul {+ list-style: none;+ color: var(--text-muted);+ font-size: 0.8125rem;+ line-height: 1.6;+ }++ .card li {+ position: relative;+ margin-bottom: 0.3rem;+ padding-left: 0.9rem;+ }+ .card li:last-child { margin-bottom: 0; }+ /* Hanging markers take the card's tone so wrapped lines align under text. */+ .card li::before {+ position: absolute;+ top: calc(0.8em - 2px);+ left: 0.2rem;+ width: 4px;+ height: 4px;+ border-radius: 50%;+ background: color-mix(in srgb, var(--card-tone, var(--text-muted)) 70%, transparent);+ content: "";+ }+ .card:has(.card-dot.cyan) { --card-tone: var(--frontend-stroke); }+ .card:has(.card-dot.emerald) { --card-tone: var(--backend-stroke); }+ .card:has(.card-dot.violet) { --card-tone: var(--database-stroke); }+ .card:has(.card-dot.amber) { --card-tone: var(--cloud-stroke); }+ .card:has(.card-dot.rose) { --card-tone: var(--security-stroke); }+ .card:has(.card-dot.orange) { --card-tone: var(--messagebus-stroke); }+ .card:has(.card-dot.slate) { --card-tone: var(--external-stroke); }+ .card-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-tone, transparent) 16%, transparent); }++ /* ==========================================================+ Print stylesheet — hide interactive controls, force light,+ drop the grid so the diagram doesn't waste ink, use landscapeso wide diagrams fit, pack summary cards into 2 columns toavoid an orphan card on a trailing page.========================================================== */@@ -3126,11 +3030,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}body { background: #ffffff !important; padding: 0; }.container { max-width: none; }- .toolbar, .diagram-nav, .focus-chip, .guided-views, .archify-toast, .no-print { display: none !important; }- .chapter-handoff-overlay { display: none !important; }- svg [data-node-id][data-chapter-role] { opacity: 1 !important; }- svg[data-chapter-preview] [data-node-id],- svg[data-chapter-preview] [data-edge-from] { opacity: 1 !important; filter: none !important; }+ .toolbar, .diagram-nav, .focus-chip, .archify-toast, .no-print { display: none !important; }+.diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }.diagram-container { --archify-nav-reserve: 0px !important; }html[data-preset="signal-flow"] .diagram-container,@@ -3156,16 +3057,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE..relationship-hit-overlay { display: none !important; }.relationship-pulse-overlay { display: none !important; }.route-probe-overlay, .route-journey-overlay { display: none !important; }- .story-trail-overlay,- .story-carrier-overlay { display: none !important; }.diagram-container svg[data-focus-active] [data-node-id],.diagram-container svg[data-focus-active] [data-edge-from],+ .diagram-container svg[data-focus-active] [data-graph-role="automatic-crossover-underlay"],.diagram-container svg[data-reach-active] [data-node-id],.diagram-container svg[data-reach-active] [data-edge-from],- .diagram-container svg[data-story-beat] [data-story-step],- .diagram-container svg[data-story-beat] [data-edge-from][data-story-beat-step],+ .diagram-container svg[data-reach-active] [data-graph-role="automatic-crossover-underlay"],.diagram-container svg[data-route-active] [data-node-id],- .diagram-container svg[data-route-active] [data-edge-from] {+ .diagram-container svg[data-route-active] [data-edge-from],+ .diagram-container svg[data-route-active] [data-graph-role="automatic-crossover-underlay"] {opacity: 1 !important;filter: none !important;animation: none !important;@@ -3176,61 +3076,162 @@ OTHER DEALINGS IN THE FONT SOFTWARE./* ==========================================================TOOLBAR (theme toggle + export menu)========================================================== */+ /* The toolbar tracks the centered reader column and the title row, so+ an adaptive narrow reader does not leave its controls stranded at the+ viewport edge. */.toolbar {- position: fixed;- top: 1rem;- right: 1rem;+ position: absolute;+ top: var(--archify-page-top);+ right: max(1rem, calc((100vw - min(100vw - 4rem, var(--archify-reader-width, 1440px))) / 2));display: flex;align-items: center;- gap: 0.5rem;+ gap: 0.125rem;padding: 0;border: 0;background: transparent;box-shadow: none;z-index: 100;}+ /* Ghost controls keep a 44px hit area while the visible pill stays compact;+ Export is the one primary action. */.toolbar button {- background: var(--toolbar-bg);- color: var(--toolbar-text);- border: 1px solid var(--toolbar-border);- padding: 0.5rem 0.875rem;- border-radius: 0.625rem;+ position: relative;+ isolation: isolate;+ background: transparent;+ color: var(--text-muted);+ border: 0;+ padding: 0.5rem 0.75rem;+ border-radius: 0.5625rem;font-family: inherit;- font-size: 0.75rem;+ font-size: 0.8125rem;font-weight: 500;cursor: pointer;white-space: nowrap;- backdrop-filter: blur(10px);- box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);- transition: background 0.15s, border-color 0.15s, color 0.15s;+ box-shadow: none;+ transition: color 0.15s;display: inline-flex;align-items: center;- gap: 0.375rem;+ gap: 0.4rem;min-height: 2.75rem;}- .toolbar button:hover {- background: var(--toolbar-hover);- border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ .toolbar button::before {+ position: absolute;+ z-index: -1;+ inset: 0.375rem 0;+ border-radius: 0.5rem;+ background: transparent;+ content: "";+ transition: background 0.15s, box-shadow 0.15s;}+ .toolbar button:hover { color: var(--text); }+ .toolbar button:hover::before { background: color-mix(in srgb, var(--text) 6%, transparent); }.toolbar button[aria-expanded="true"],- .toolbar button[aria-pressed="true"]:not(#btn-theme) {- background: color-mix(in srgb, var(--frontend-stroke) 10%, var(--toolbar-hover));- border-color: color-mix(in srgb, var(--frontend-stroke) 48%, var(--toolbar-border));+ .toolbar button[aria-pressed="true"]:not(#btn-theme) { color: var(--text); }+ .toolbar button[aria-expanded="true"]::before,+ .toolbar button[aria-pressed="true"]:not(#btn-theme)::before {+ background: color-mix(in srgb, var(--text) 8%, transparent);}.toolbar #btn-export {- padding-right: 0.82rem;- padding-left: 0.82rem;+ margin-left: 0.375rem;+ padding-right: 0.95rem;+ padding-left: 1rem;+ color: var(--bg);+ font-weight: 550;}- .toolbar #btn-export:hover,- .toolbar #btn-export[aria-expanded="true"] {- color: var(--toolbar-text);- background: color-mix(in srgb, var(--frontend-stroke) 10%, var(--toolbar-hover));- border-color: color-mix(in srgb, var(--frontend-stroke) 54%, var(--toolbar-border));+ .toolbar #btn-export::before {+ background: var(--text);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 6px 16px -8px rgba(15, 23, 42, 0.4);}+ .toolbar #btn-export:hover,+ .toolbar #btn-export[aria-expanded="true"] { color: var(--bg); }+ .toolbar #btn-export:hover::before,+ .toolbar #btn-export[aria-expanded="true"]::before { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }.toolbar button:focus-visible {outline: 2px solid var(--frontend-stroke);- outline-offset: 2px;+ outline-offset: -4px;+ }+ .toolbar { gap: 0.5rem; }+ .toolbar #btn-export { margin-left: 0; }+ .toolbar #btn-export::before { inset: 0.25rem 0; border-radius: 0.6875rem; }+ /* Tools share one quiet capsule; the capsule is drawn inside the 44px row+ so the controls keep their hit area without a tall visible box. */+ .toolbar-group {+ position: relative;+ isolation: isolate;+ display: flex;+ align-items: center;+ gap: 0.0625rem;+ padding: 0 0.25rem;+ }+ .toolbar-group::before {+ position: absolute;+ z-index: -1;+ inset: 0.25rem 0;+ border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);+ border-radius: 0.6875rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -14px rgba(15, 23, 42, 0.22);+ backdrop-filter: blur(12px);+ content: "";+ }+ .toolbar-group button { padding-inline: 0.625rem; }+ .toolbar-group button::before { inset: 0.5rem 0; border-radius: 0.5rem; }+ /* Theme becomes a sliding switch; its label stays for assistive tech. */+ .toolbar #theme-label,+ .toolbar #present-label {+ position: absolute;+ width: 1px;+ height: 1px;+ overflow: hidden;+ clip: rect(0 0 0 0);+ white-space: nowrap;+ }+ .toolbar #btn-theme {+ width: 3.5rem;+ padding: 0;+ justify-content: center;+ }+ .toolbar #btn-theme::before {+ inset: 0.75rem 0.4375rem;+ border-radius: 999px;+ background: color-mix(in srgb, var(--text) 9%, transparent);+ box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);+ }+ .toolbar #btn-theme:hover::before { background: color-mix(in srgb, var(--text) 13%, transparent); }+ .toolbar #btn-theme::after {+ position: absolute;+ z-index: 0;+ top: 50%;+ left: 0.5625rem;+ width: 1.125rem;+ height: 1.125rem;+ border-radius: 50%;+ background: var(--panel);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);+ content: "";+ transform: translateY(-50%);+ transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);}+ .toolbar #theme-icon {+ position: absolute;+ z-index: 1;+ top: 50%;+ left: calc(0.5625rem + 0.1875rem);+ width: 0.75rem;+ height: 0.75rem;+ color: var(--cloud-stroke);+ transform: translateY(-50%);+ transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);+ }+ [data-theme="dark"] .toolbar #btn-theme::before { background: rgba(148, 163, 184, 0.16); }+ [data-theme="dark"] .toolbar #btn-theme::after { left: calc(100% - 0.5625rem - 1.125rem); background: #3b4a63; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }+ [data-theme="dark"] .toolbar #theme-icon { left: calc(100% - 0.5625rem - 1.125rem + 0.1875rem); color: #c7d2fe; }+ .toolbar #btn-present { width: 2.5rem; padding: 0; justify-content: center; }+ .toolbar #btn-present .toolbar-icon { width: 1rem; height: 1rem; }+ html[data-motion="still"] .toolbar #btn-theme::after,+ html[data-motion="still"] .toolbar #theme-icon { transition: none; }+ html[data-present="true"]:not([data-embed="true"]) .toolbar { right: 1rem; }+ html[data-preset="editorial"] .toolbar { border-radius: 0.45rem; }.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }@@ -3304,19 +3305,30 @@ OTHER DEALINGS IN THE FONT SOFTWARE.box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);transform: rotate(45deg) scale(0.72);}+ /* Menus anchor to the tools capsule so they open flush under it. */+ .toolbar-group .preset-wrap { position: static; }.toolbar .preset-menu {position: absolute;- top: calc(100% + 0.375rem);+ top: calc(100% + 0.125rem);right: 0;display: none;- width: 18.5rem;+ width: 17.5rem;max-width: calc(100vw - 2rem);- padding: 0.45rem;- border: 1px solid var(--toolbar-border);+ padding: 0.375rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);+ }+ [data-theme="dark"] .toolbar .preset-menu,+ [data-theme="dark"] .toolbar .export-menu {+ border-color: rgba(148, 163, 184, 0.16);+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -12px rgba(0, 0, 0, 0.6);}+ /* Menu rows are not toolbar pills: drop the ghost-button pseudo surface. */+ .toolbar .preset-menu button,+ .toolbar .export-menu button { isolation: auto; min-height: 0; }+ .toolbar .preset-menu button::before { display: none; }.toolbar .preset-menu.open { display: block; }.toolbar .preset-menu.open,.toolbar .export-menu.open {@@ -3329,50 +3341,74 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}.preset-menu-heading {display: flex;- align-items: baseline;+ align-items: center;justify-content: space-between;gap: 1rem;- padding: 0.42rem 0.6rem 0.55rem;+ padding: 0.45rem 0.55rem 0.4rem;color: var(--text-faint);- font-size: 0.56rem;- letter-spacing: 0.13em;- text-transform: uppercase;+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.01em;}- .preset-menu-heading span:last-child {- font-size: 0.52rem;- letter-spacing: 0.04em;- text-transform: none;+ .preset-menu-shortcut {+ display: inline-flex;+ align-items: center;+ gap: 0.35rem;+ font-weight: 500;+ }+ .preset-menu-shortcut kbd {+ min-width: 1.125rem;+ padding: 0.05rem 0.3rem;+ border: 1px solid var(--panel-border);+ border-bottom-width: 2px;+ border-radius: 0.3rem;+ background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));+ color: var(--text-muted);+ font-family: inherit;+ font-size: 0.625rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;}.toolbar .preset-option {display: grid;- grid-template-columns: 2rem minmax(0, 1fr) 1rem;+ grid-template-columns: 2.375rem minmax(0, 1fr) 1rem;align-items: center;- gap: 0.68rem;+ gap: 0.75rem;width: 100%;- min-height: 3.35rem;- padding: 0.5rem 0.62rem;+ min-height: 3.125rem;+ margin-top: 0.125rem;+ padding: 0.45rem 0.6rem 0.45rem 0.5rem;border: 0;- border-radius: 0.5rem;+ border-radius: 0.625rem;background: transparent;+ color: var(--text);box-shadow: none;backdrop-filter: none;text-align: left;+ transition: background 0.14s ease;}.toolbar .preset-option:hover,- .toolbar .preset-option:focus-visible { background: var(--toolbar-hover); }- .toolbar .preset-option[aria-checked="true"] {- background: color-mix(in srgb, var(--frontend-stroke) 9%, transparent);- border-color: color-mix(in srgb, var(--frontend-stroke) 36%, transparent);+ .toolbar .preset-option:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); }+ .toolbar .preset-option[aria-checked="true"] { background: color-mix(in srgb, var(--frontend-stroke) 8%, transparent); }+ .toolbar .preset-option:focus-visible {+ outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);+ outline-offset: -1.5px;}.preset-option-swatch {position: relative;- width: 2rem;- height: 1.55rem;+ width: 2.375rem;+ height: 1.75rem;overflow: hidden;- border: 1px solid #64748b;- border-radius: 0.24rem;+ border: 0;+ border-radius: 0.4375rem;background: #0f172a;- box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);+ box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28), 0 1px 2px rgba(15, 23, 42, 0.12);+ transition: box-shadow 0.14s ease, transform 0.14s ease;+ }+ .toolbar .preset-option:hover .preset-option-swatch { transform: translateY(-1px); }+ .toolbar .preset-option[aria-checked="true"] .preset-option-swatch {+ box-shadow: 0 0 0 2px var(--toolbar-menu-bg), 0 0 0 3.5px var(--frontend-stroke);}.preset-option-swatch::before,.preset-option-swatch::after { position: absolute; content: ""; }@@ -3385,6 +3421,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.border-radius: 0.16rem;background: rgba(34, 211, 238, 0.14);}+ /* Classic previews the canvas it will actually produce in this theme. */+ [data-theme="light"] .preset-option-swatch.classic {+ background:+ radial-gradient(circle at 1px 1px, #d9dee5 0.6px, transparent 0.9px) 0 0 / 5px 5px,+ #ffffff;+ }+ [data-theme="light"] .preset-option-swatch.classic::before {+ border-color: #1b87a3;+ background: rgba(14, 116, 144, 0.08);+ box-shadow: 0 2px 4px rgba(17, 24, 39, 0.12);+ }.preset-option-swatch.signal-flow {border-color: #29415f;background: linear-gradient(135deg, #07101e 10%, #10243c 100%);@@ -3447,15 +3494,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE..preset-option-copy strong,.preset-option-copy small { display: block; }.preset-option-copy strong {- color: var(--toolbar-text);- font-size: 0.72rem;- font-weight: 600;+ color: var(--text);+ font-size: 0.8125rem;+ font-weight: 550;+ letter-spacing: -0.005em;}+ .toolbar .preset-option[aria-checked="true"] .preset-option-copy strong { font-weight: 650; }.preset-option-copy small {- margin-top: 0.16rem;+ margin-top: 0.125rem;overflow: hidden;color: var(--text-faint);- font-size: 0.57rem;+ font-size: 0.6875rem;font-weight: 400;white-space: nowrap;text-overflow: ellipsis;@@ -3485,9 +3534,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.html[data-preset="editorial"] .route-probe,html[data-preset="editorial"] .focus-chip,html[data-preset="editorial"] .diagram-guide,- html[data-preset="editorial"] .node-finder,- html[data-preset="editorial"] .guided-views,- html[data-preset="editorial"] .share-chapter-cue {+ html[data-preset="editorial"] .node-finder {border-radius: 0.3rem;}.motion-control-dot {@@ -3503,21 +3550,33 @@ OTHER DEALINGS IN THE FONT SOFTWARE.background: transparent;box-shadow: none;}+ /* The motion button breathes on the same shared cycle as the cascade, so the+ chrome keeps time with the wave it controls. The cycle length lives on the+ diagram SVG, so chrome presets mirror it here. */+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot {+ animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite;+ }+ html[data-preset="signal-flow"] #btn-motion .motion-control-dot { --flow-cycle-chrome: 5.2s; }+ @keyframes archify-motion-dot-breathe {+ 0%, 100% { opacity: 1; transform: scale(1); }+ 46% { opacity: 0.55; transform: scale(0.72); }+ }.toolbar .export-menu {position: absolute;- top: calc(100% + 0.375rem);+ top: calc(100% + 0.125rem);right: 0;background: var(--toolbar-menu-bg);- border: 1px solid var(--toolbar-border);+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);width: 19rem;max-width: calc(100vw - 2rem);max-height: calc(100vh - 5.5rem);overflow-y: auto;border-radius: 0.875rem;- padding: 0.55rem;+ padding: 0.375rem;display: none;flex-direction: column;- box-shadow: 0 18px 48px rgba(0,0,0,0.24);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);+ scrollbar-width: thin;}.toolbar .export-menu.open { display: flex; }.export-menu-header {@@ -3525,94 +3584,111 @@ OTHER DEALINGS IN THE FONT SOFTWARE.align-items: flex-start;justify-content: space-between;gap: 1rem;- padding: 0.5rem 0.55rem 0.72rem;+ padding: 0.55rem 0.6rem 0.6rem;}.export-menu-header strong,.export-menu-header span { display: block; }.export-menu-header strong {- color: var(--toolbar-text);- font-size: 0.78rem;- font-weight: 650;- letter-spacing: -0.015em;+ color: var(--text);+ font-size: 0.875rem;+ font-weight: 600;+ letter-spacing: -0.005em;}.export-menu-header span {- margin-top: 0.16rem;+ margin-top: 0.15rem;color: var(--text-faint);- font-size: 0.56rem;+ font-size: 0.75rem;}.export-menu-header kbd {- padding: 0.16rem 0.36rem;- border: 1px solid var(--toolbar-border);+ min-width: 1.125rem;+ padding: 0.05rem 0.3rem;+ border: 1px solid var(--panel-border);+ border-bottom-width: 2px;border-radius: 0.3rem;- color: var(--text-faint);- background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));+ color: var(--text-muted);font-family: inherit;- font-size: 0.54rem;+ font-size: 0.625rem;font-weight: 600;+ line-height: 1.3;+ text-align: center;}.export-menu-section {display: grid;grid-template-columns: minmax(0, 1fr);- gap: 0.18rem;+ gap: 0.0625rem;}.export-menu-section + .export-menu-section {- margin-top: 0.42rem;- padding-top: 0.42rem;- border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 68%, transparent);+ margin-top: 0.3rem;+ padding-top: 0.3rem;+ border-top: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);}.export-menu-heading {grid-column: 1 / -1;display: block;- padding: 0.24rem 0.55rem 0.2rem;+ padding: 0.4rem 0.6rem 0.25rem;color: var(--text-faint);- font-size: 0.54rem;+ font-size: 0.6875rem;font-weight: 600;- letter-spacing: 0.12em;- text-transform: uppercase;+ letter-spacing: 0.01em;}.toolbar .export-menu button {display: grid;- grid-template-columns: 1.15rem minmax(0, 1fr);+ grid-template-columns: 1rem minmax(0, 1fr);align-items: center;- column-gap: 0.52rem;+ column-gap: 0.7rem;background: transparent;- border: 1px solid transparent;+ border: 0;box-shadow: none;backdrop-filter: none;width: 100%;- min-height: 3rem;+ min-height: 2.5rem;text-align: left;- padding: 0.48rem 0.55rem;- border-radius: 0.5rem;+ padding: 0.4rem 0.6rem;+ border-radius: 0.5625rem;+ color: var(--text);white-space: nowrap;+ transition: background 0.14s ease;+ }+ .toolbar .export-menu button:hover,+ .toolbar .export-menu button:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }+ .toolbar .export-menu button:focus-visible {+ outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);+ outline-offset: -1.5px;}+ /* Name and format hint share one line, so each row stays compact. */.export-item-copy {- display: block;+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: 0.75rem;min-width: 0;}- .export-item-copy strong,- .export-item-copy small { display: block; }.export-item-copy strong {overflow: hidden;color: inherit;- font-size: 0.7rem;- font-weight: 550;+ font-size: 0.8125rem;+ font-weight: 500;text-overflow: ellipsis;}.export-item-copy small {- margin-top: 0.12rem;- overflow: hidden;+ flex: none;color: var(--text-faint);- font-size: 0.55rem;+ font-size: 0.6875rem;font-weight: 450;- text-overflow: ellipsis;}.toolbar .export-menu button::before {+ position: static;+ z-index: auto;+ inset: auto;+ border-radius: 0;+ display: block;width: 1rem;height: 1rem;background: currentColor;+ color: var(--text-muted);content: "";- opacity: 0.72;+ opacity: 0.8;-webkit-mask-position: center;-webkit-mask-repeat: no-repeat;-webkit-mask-size: contain;@@ -3620,7 +3696,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.mask-repeat: no-repeat;mask-size: contain;}- .toolbar .export-menu button[data-format="share-card"]::before,.toolbar .export-menu button[data-action="route-share-card"]::before,.toolbar .export-menu button[data-action="reach-share-card"]::before {-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E");@@ -3636,38 +3711,32 @@ OTHER DEALINGS IN THE FONT SOFTWARE.-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 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%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 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");}- .toolbar .export-menu button[data-format="svg"]::before,+ .toolbar .export-menu button[data-format^="svg"]::before,.toolbar .export-menu button[data-format="webm"]::before {-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 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%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 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");}- .toolbar .export-menu button[data-format="share-card"],.toolbar .export-menu button[data-action="route-share-card"],.toolbar .export-menu button[data-action="reach-share-card"] {- min-height: 3.35rem;- color: var(--toolbar-text);- background: color-mix(in srgb, var(--frontend-stroke) 8%, transparent);- border-color: color-mix(in srgb, var(--frontend-stroke) 24%, var(--toolbar-border));+ color: var(--text);+ background: color-mix(in srgb, var(--frontend-stroke) 7%, transparent);}+ .toolbar .export-menu button[data-action="route-share-card"]::before,+ .toolbar .export-menu button[data-action="reach-share-card"]::before { color: var(--frontend-stroke); opacity: 1; }.toolbar .export-menu button[hidden] { display: none; }- .toolbar .export-menu button:hover {- background: var(--toolbar-hover);- }- .toolbar .export-menu button:focus-visible {- background: var(--toolbar-hover);- outline-offset: -2px;+ .toolbar .export-menu button[data-action="route-share-card"]:hover,+ .toolbar .export-menu button[data-action="reach-share-card"]:hover {+ background: color-mix(in srgb, var(--frontend-stroke) 12%, transparent);}.toolbar .export-menu button:disabled {color: var(--text-faint);- background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ background: transparent;+ opacity: 0.55;cursor: not-allowed;}- .toolbar .export-menu button:disabled:hover {- border-color: transparent;- }.toolbar .export-menu .hint {color: var(--text-faint);- font-size: 0.55rem;+ font-size: 0.6875rem;}/* Toast — brief feedback for actions like "copied" */@@ -3707,6 +3776,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}.toolbar {position: relative;+ top: auto;+ right: auto;justify-content: flex-end;width: max-content;max-width: 100%;@@ -3809,6 +3880,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.width: calc(100% - 1rem);max-width: none;}+ .relationship-lens-head { padding-top: 0.7rem; }+ .relationship-lens-drag-handle { display: none; }.relationship-lens-list { max-height: min(12rem, 38vh); }.relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }.focus-chip:not([data-relations-expanded="true"]) .relationship-lens-head { border-bottom-color: transparent; }@@ -3891,95 +3964,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE..route-journey-controls button { min-height: 2.75rem; }.route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }.route-probe-node { max-width: 7.5rem; }- .guided-views {- grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;- gap: 0.2rem;- padding: 0.25rem;- }- .guided-view-actions {- grid-column: 1 / -1;- display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));- }- .guided-views > #guided-view-prev,- .guided-views > #guided-view-next {- align-self: center;- height: 2.75rem;- }- .guided-view-play,- .guided-view-all,- .guided-view-beat-link { min-height: 2.75rem; }- .guided-view-copy small { white-space: normal; }- .guided-story-caption { padding: 0.32rem 0.45rem; }- .guided-story-caption-index { min-width: 2.9rem; padding-right: 0.42rem; }- .guided-story-caption strong,- .guided-story-caption small { white-space: normal; }- .guided-story-caption-next { display: none; }- .guided-view-trail { min-height: 2rem; }- .guided-view-trail .guided-view-stop {- min-height: 2rem;- padding: 0.22rem 0.42rem 0.22rem 0.28rem;- }- .guided-view-handoff { max-width: min(9rem, 32vw); }- .guided-view-index { padding-top: 0.35rem; }- .guided-view-chapters {- gap: 0.35rem;- scroll-padding-inline: 0.2rem;- }- .guided-view-chapters li {- flex: 0 0 min(14rem, 78vw);- min-width: 0;- }- .guided-view-chapter { min-height: 2.75rem; }- .guided-views[data-active-view="all"] {- grid-template-columns: minmax(0, 1fr) auto;- gap: 0.2rem;- padding: 0.25rem;- }- .guided-views[data-active-view="all"] .guided-view-copy {- grid-column: 1;- grid-row: 1;- }- .guided-views[data-active-view="all"] .guided-view-actions {- grid-column: 2;- grid-row: 1;- }- .guided-views[data-active-view="all"] .guided-view-play {- min-width: 6rem !important;- min-height: 2.75rem;- }- .guided-views[data-active-view="all"] .guided-view-index {- grid-column: 1 / -1;- grid-row: 2;- padding: 0.3rem 0.08rem 0;- border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);- border-left: 0;- }- 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]) {- top: 0.5rem;- grid-template-columns: auto minmax(0, 1fr);- gap: 0.28rem 0.55rem;- width: calc(100% - 1rem);- min-height: 0;- padding: 0.45rem 0.55rem 0.55rem;- }+++++++++++html[data-embed="true"][data-share-playback="true"] .diagram-container {padding-top: 4.25rem;}html[data-embed="true"][data-share-moment="true"] .diagram-container {padding-top: 4.25rem;}- .share-chapter-index {- min-width: 4.4rem;- padding-right: 0.5rem;- }- .share-chapter-copy small { font-size: 0.46rem; }- .share-chapter-route {- grid-column: 1 / -1;- font-size: 0.5rem;- text-align: left;- }+.cards {grid-template-columns: 1fr;margin-top: 1rem;@@ -4022,11 +4024,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.text-overflow: ellipsis;white-space: nowrap;}- html[data-present="true"]:not([data-embed="true"]) .guided-views {- padding: 0.2rem;- }- html[data-present="true"]:not([data-embed="true"]) .guided-view-copy small { display: none; }- html[data-present="true"]:not([data-embed="true"]) .guided-story-caption small { display: block; }+html[data-present="true"]:not([data-embed="true"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }html[data-present="true"]:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] > svg {width: 720px;@@ -4038,13 +4036,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.@media (max-width: 420px) {.export-menu-section { grid-template-columns: 1fr; }.export-menu-heading,- .toolbar .export-menu button[data-format="share-card"],.toolbar .export-menu button[data-action="route-share-card"],.toolbar .export-menu button[data-action="reach-share-card"] { grid-column: 1; }}@media (prefers-reduced-motion: reduce) {- .guided-story-caption { animation: none !important; }.toolbar .preset-menu.open,.toolbar .export-menu.open { animation: none; }.toolbar-chevron { transition: none; }@@ -4055,7 +4051,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE..toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }.toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }#theme-label, #preset-label, #present-label { display: none; }- .guided-view-handoff { max-width: 6.5rem; }}/* ==========================================================@@ -4063,6 +4058,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.========================================================== */.c-grid { stroke: var(--grid); fill: none; }.c-mask { fill: var(--mask); stroke: none; }+ .c-lane-rule { stroke: var(--lane-stroke); fill: none; opacity: 0.7; }+ .c-lane-wash { fill: var(--lane-fill); stroke: none; }.c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }.c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }@@ -4084,6 +4081,43 @@ OTHER DEALINGS IN THE FONT SOFTWARE..t-messagebus { fill: var(--messagebus-stroke); }.t-external { fill: var(--external-stroke); }+ /* Relationship labels share the exact color token used by their path. */+ .t-edge-default { fill: var(--arrow); }+ .t-edge-emphasis { fill: var(--arrow-emphasis); }+ .t-edge-security { fill: var(--security-stroke); }+ .t-edge-dashed { fill: var(--database-stroke); }++ /* Classic canvas: a quiet dot field replaces drafting grid lines, and nodes+ read as lifted cards with hairline strokes. Paint only; authored geometry,+ hit areas and exports keep their canonical shapes. */+ html[data-preset="classic"] .diagram-container {+ background:+ radial-gradient(circle at 1px 1px, var(--canvas-dot) 1px, transparent 1.4px) 0 0 / 20px 20px,+ var(--panel);+ }+ html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }+ html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {+ --ambient-node-base-filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ filter: var(--ambient-node-base-filter);+ }+ html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {+ --ambient-node-base-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ filter: var(--ambient-node-base-filter);+ }+ html[data-preset="classic"] .diagram-container > svg [data-edge-from] {+ stroke-linecap: round;+ stroke-linejoin: round;+ }+ html[data-preset="classic"] .diagram-container > svg .c-lane-wash { fill: color-mix(in srgb, var(--text) 2.6%, transparent); }+ html[data-preset="classic"] .diagram-container > svg .c-lane-rule { stroke: var(--panel-border); opacity: 1; }+ html[data-preset="classic"][data-theme="dark"] .diagram-container > svg .c-lane-rule { stroke: rgba(148, 163, 184, 0.16); }+ html[data-preset="classic"] .diagram-container > svg [data-node-id] {+ transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);+ }+ html[data-preset="classic"]:not([data-motion="still"]) .diagram-container > svg [data-node-id]:hover {+ transform: translateY(-1.5px);+ }+/* Semantic Sigils are small authored role stamps, not icons from a brandpack and not viewer controls. Prefix selectors with svg so the canonicalexport's SVG-only stylesheet collector keeps them automatically. */@@ -4161,8 +4195,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],svg[data-route-active] [data-route-match][data-detail],svg[data-route-active] [data-route-match] [data-detail],- svg[data-story-active] [data-story-step][data-detail],- svg[data-story-active] [data-story-step] [data-detail],svg[data-relationship-preview-active] [data-relationship-preview][data-detail],svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],svg [data-node-id]:hover [data-detail],@@ -4176,7 +4208,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],svg[data-route-active] [data-route-match] [data-detail-anchor],- svg[data-story-active] [data-story-step] [data-detail-anchor],svg [data-node-id]:hover [data-detail-anchor],svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }@@ -4195,49 +4226,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE./* Stable semantic exploration hooks emitted by every renderer. */svg [data-node-id] {cursor: pointer;- transition: opacity 0.18s ease, filter 0.18s ease;+ transition: opacity 0.18s ease, fill-opacity 0.18s ease, stroke-opacity 0.18s ease, filter 0.18s ease;}- svg [data-edge-from] { transition: opacity 0.18s ease, filter 0.18s ease; }+ svg [data-edge-from],+ svg [data-graph-role="automatic-crossover-underlay"] { transition: opacity 0.18s ease, filter 0.18s ease; }svg [data-node-id]:hover,svg [data-node-id]:focus-visible {filter: drop-shadow(0 0 7px var(--frontend-stroke));outline: none;}- /* Verified Source Beacons are installed at runtime only for nodes whose- repository evidence passed the local revision/blob/line checks. They- live inside the owning node so every focus, route, story, and guided- view keeps one coherent opacity state. Export serialization removes- them before producing the canonical SVG or any derived visual. */- .source-evidence-beacon {- pointer-events: none;- opacity: 0.76;- transition: opacity 160ms ease, filter 160ms ease;- }- .source-evidence-beacon rect {- fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));- stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));- stroke-width: 1;- vector-effect: non-scaling-stroke;- }- .source-evidence-beacon text {- fill: var(--backend-stroke);- font-size: 5.5px;- font-weight: 800;- letter-spacing: 0.06em;- text-anchor: middle;- text-transform: uppercase;- }- svg [data-node-id]:hover .source-evidence-beacon,- svg [data-node-id]:focus-visible .source-evidence-beacon,- svg [data-node-id][data-focus-selected] .source-evidence-beacon {- opacity: 1;- filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));- }- svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }- svg[data-preset="blueprint"] .source-evidence-beacon rect {- rx: 0.8px;- filter: none;- }svg [data-legend-kind][role="button"] { cursor: pointer; }svg [data-legend-kind]:focus { outline: none; }svg [data-legend-hit] {@@ -4346,9 +4343,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.opacity: 0.78;}html[data-embed="true"] .semantic-lens-overlay { display: none; }+ /* Automatic crossover masks are visual companions of their one semantic+ edge. Keep the mask free of data-edge-* identity so graph traversal and+ export still observe exactly one edge, then mirror reader emphasis from+ the paired foreground path in this presentation-only wrapper. */+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.11; }+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-legend-preview-match]) > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"]:has(> [data-lens-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-legend-preview-peer]) > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"]:has(> [data-lens-peer]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.62; }svg[data-focus-active] [data-node-id],svg[data-focus-active] [data-edge-from] { opacity: 0.13; }+ svg[data-focus-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.13; }+ svg[data-focus-active] [data-lifecycle-rail] { opacity: 0; }svg[data-focus-active] [data-focus-match] { opacity: 1; }+ svg[data-focus-active] [data-graph-role="automatic-crossover"]:has(> [data-focus-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }svg[data-focus-active] [data-focus-selected] {filter: drop-shadow(0 0 10px var(--frontend-stroke));}@@ -4359,7 +4369,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.changes only viewer emphasis, not canonical geometry or export bytes. */svg[data-reach-active] [data-node-id],svg[data-reach-active] [data-edge-from] { opacity: 0.09; }+ svg[data-reach-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.09; }svg[data-reach-active] [data-reach-match] { opacity: 1; }+ svg[data-reach-active] [data-graph-role="automatic-crossover"]:has(> [data-reach-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }svg[data-reach-active="upstream"] [data-reach-origin] {filter: drop-shadow(0 0 11px var(--database-stroke));}@@ -4413,14 +4425,14 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}svg[data-relationship-direct-active] [data-node-id],svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }+ svg[data-relationship-direct-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.16; }svg[data-relationship-direct-active] [data-relationship-preview],svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }+ svg[data-relationship-direct-active] [data-graph-role="automatic-crossover"]:has(> [data-relationship-preview]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,- svg[data-story-active] .relationship-hit-rail,svg[data-route-picking] .relationship-hit-rail,svg[data-route-active] .relationship-hit-rail,- svg[data-lens-active] .relationship-hit-rail,- svg[data-chapter-preview] .relationship-hit-rail { pointer-events: none; }+ svg[data-lens-active] .relationship-hit-rail { pointer-events: none; }html[data-embed="true"] .relationship-hit-overlay { display: none; }@media (hover: none), (pointer: coarse) {.relationship-hit-rail { stroke-width: 24; }@@ -4430,8 +4442,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.neighborhood focus. It changes emphasis only; exported geometry and therelationship's original solid/dashed visual language stay untouched. */svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }+ svg[data-relationship-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-focus-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.18; }+ svg[data-relationship-preview-active] [data-lifecycle-rail] { opacity: 0; }svg[data-relationship-preview-active] [data-relationship-preview],svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }+ svg[data-relationship-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-relationship-preview]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }svg[data-relationship-preview-active] [data-relationship-preview] {filter: drop-shadow(0 0 5px var(--arrow-emphasis));}@@ -4485,9 +4500,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE..relationship-flow-token {animation: archify-relationship-token-life 1.2s linear 1 both;}- .story-flow-token {- animation: archify-relationship-token-life 0.78s linear 1 both;- }+.semantic-flow-token-halo {fill: var(--mask);stroke: currentColor;@@ -4525,9 +4538,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE./* Intent Trace is a temporary, pre-click exploration layer. Relatedtopology stays readable while a short viewer-only signal runs overcloned edge geometry; the authored edge remains untouched underneath. */- svg[data-intent-trace-active] [data-node-id],+ /* Keep the node's opaque backing mask intact while its visible ink dims.+ Fading the whole group also fades that mask and briefly exposes arrows+ routed underneath the node when the pointer leaves. */+ svg[data-intent-trace-active] [data-node-id] { fill-opacity: 0.2; stroke-opacity: 0.2; }+ svg [data-node-id] > .c-mask { fill-opacity: 1; }+ svg[data-intent-trace-active] [data-node-id][data-intent-trace-match] { fill-opacity: 1; stroke-opacity: 1; }svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }+ svg[data-intent-trace-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.2; }+ svg[data-intent-trace-active] [data-lifecycle-rail] { opacity: 0; }svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }+ svg[data-intent-trace-active] [data-graph-role="automatic-crossover"]:has(> [data-intent-trace-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }svg[data-intent-trace-active] [data-intent-trace-selected] {filter: drop-shadow(0 0 10px var(--frontend-stroke));}@@ -4590,7 +4611,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}svg[data-route-active] [data-node-id],svg[data-route-active] [data-edge-from] { opacity: 0.11; }+ svg[data-route-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.11; }svg[data-route-active] [data-route-match] { opacity: 1; }+ svg[data-route-active] [data-graph-role="automatic-crossover"]:has(> [data-route-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }svg[data-route-active] [data-route-start] {filter: drop-shadow(0 0 11px var(--frontend-stroke));}@@ -4603,6 +4626,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.svg[data-route-journey] [data-route-match][data-route-journey-state="past"] { opacity: 0.62; }svg[data-route-journey] [data-route-match][data-route-journey-state="future"] { opacity: 0.34; }svg[data-route-journey] [data-route-match][data-route-journey-state="current"] { opacity: 1; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="past"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.62; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="future"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.34; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="current"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }svg[data-route-journey] [data-node-id][data-route-journey-current] {filter: drop-shadow(0 0 10px var(--backend-stroke));}@@ -4694,150 +4720,216 @@ OTHER DEALINGS IN THE FONT SOFTWARE.filter: drop-shadow(0 0 3px var(--frontend-stroke));}- /* Story Trail is a viewer-only overlay derived from the ordered focus IDs- of the active guided view. The authored edge stays underneath with its- original color, dash pattern, marker, and geometry intact. */- .story-trail-overlay { pointer-events: none; }- .story-carrier-overlay { pointer-events: none; }- .story-trail-flow {- fill: none;- stroke: var(--frontend-stroke);- stroke-width: 2.8;- stroke-linecap: round;- vector-effect: non-scaling-stroke;- opacity: 0.34;- filter: drop-shadow(0 0 2px var(--frontend-stroke));- }- svg[data-story-beat] [data-story-step] {- opacity: 0.22;- filter: saturate(0.42);- transition: opacity 180ms ease, filter 180ms ease;- }- svg[data-story-beat] [data-story-step][data-story-beat-state="past"] {- opacity: 0.72;- filter: saturate(0.82);- }- svg[data-story-beat] [data-story-step][data-story-beat-state="next"] {- opacity: 0.5;- filter: saturate(0.66);- }- svg[data-story-beat] [data-story-step][data-story-beat-state="active"] {- opacity: 1;- filter: drop-shadow(0 0 7px var(--frontend-stroke));- animation: archify-story-beat-node 360ms cubic-bezier(0.22, 1, 0.36, 1) both;- }- svg[data-story-beat] [data-edge-from][data-story-beat-step] {- opacity: 0.16;- transition: opacity 160ms ease;- }- svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state="past"] { opacity: 0.58; }- svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state="next"] { opacity: 0.34; }- svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state="active"] { opacity: 1; }- svg[data-story-beat] .story-trail-flow { opacity: 0; transition: opacity 160ms ease; }- svg[data-story-beat] .story-trail-flow[data-story-beat-state="past"] { opacity: 0.34; }- svg[data-story-beat] .story-trail-flow[data-story-beat-state="next"] { opacity: 0.2; }- svg[data-story-beat] .story-trail-flow[data-story-beat-state="active"] { opacity: 0.92; }- svg[data-story-beat] .story-trail-flow[data-story-pulse="true"] {- stroke-dasharray: 2 13;- stroke-dashoffset: 30;- opacity: 0.92;- animation: archify-story-flow 0.78s linear 1 both;- }- svg[data-preset="blueprint"] .story-trail-flow {- stroke-linecap: square;- filter: none;- opacity: 0.5;- }- svg[data-preset="blueprint"][data-story-beat] [data-story-step][data-story-beat-state="active"] {- filter: none;- animation: none;- }- svg[data-preset="editorial"] .story-trail-flow { filter: none; }- svg[data-preset="editorial"][data-story-beat] [data-story-step][data-story-beat-state="active"] {- filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 16%, transparent));- }-- /* Chapter Delta Preview is a static, pre-commit comparison between two- chapter focus sets. Symbols in the rail carry the meaning without color;- these SVG rules only make exact stable-ID membership easier to scan. */- svg[data-chapter-preview] [data-node-id],- svg[data-chapter-preview] [data-edge-from] {- opacity: 0.1 !important;- filter: none !important;- transition: none !important;- }- svg[data-chapter-preview] .story-trail-overlay { opacity: 0.08 !important; }- svg[data-chapter-preview] [data-node-id][data-chapter-preview-role="stay"] {- opacity: 0.76 !important;- filter: saturate(0.7) !important;- }- svg[data-chapter-preview] [data-node-id][data-chapter-preview-role="enter"] {- opacity: 1 !important;- filter: saturate(1.2) !important;- }- svg[data-chapter-preview] [data-node-id][data-chapter-preview-role="leave"] {- opacity: 0.28 !important;- filter: grayscale(0.72) !important;- }- svg[data-preset="blueprint"][data-chapter-preview] [data-node-id] { filter: none !important; }-/* Dashed boundary variants */.c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }.c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }.c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }- /* Optional trace animation, enabled only by meta.animation = "trace".- The ordinary viewer performs one ambient pass and then restores the- authored solid/security/async line language. WebM samples the same- authored geometry into an explicit canvas timeline. */- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {- animation: archify-edge-flow 2.4s linear 1;- animation-delay: calc(var(--step, 0) * 160ms);- }- html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {- transform-box: fill-box;- transform-origin: center;- animation: archify-node-pulse 3.6s ease-in-out 1;- animation-delay: calc(var(--step, 0) * 160ms);- }- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {+ /* Live turns each edge into a small light show on one shared cycle: a comet+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */+ svg[data-animation="trace"] {+ --flow-cycle: 6.4s;+ --flow-step-delay: 0.2s;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;+ --flow-head-peak: 0.95;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;+ }+ .ambient-edge-flow {+ fill: none;+ stroke: var(--arrow-emphasis);stroke-linecap: round;- filter: drop-shadow(0 0 3px var(--arrow-emphasis));- animation-duration: 1.75s;- }- svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {- animation-duration: 3.1s;- }- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {- stroke-linecap: square;- filter: none;- animation-duration: 2.15s;+ pointer-events: none;+ display: none;}- svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {- animation-name: archify-blueprint-node-pulse;- animation-duration: 3.8s;+ .ambient-flow-wake {+ stroke-width: 3.2;+ stroke-dasharray: var(--flow-dasharray, none);+ animation-name: archify-flow-wake;}- svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {- filter: none;- animation-duration: 2.2s;+ .ambient-flow-halo {+ stroke-width: 6;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ animation-name: archify-cascade-halo;+ }+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }+ .ambient-flow-tail {+ stroke-width: 2.4;+ stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));+ animation-name: archify-cascade-tail;+ }+ .ambient-flow-head {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;+ stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));+ animation-name: archify-cascade-head;+ }+ .ambient-flow-head.echo { --flow-echo-scale: 0.76; }+ .ambient-flow-tail.echo { --flow-echo-scale: 0.53; }+ .ambient-flow-ripple {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, white);+ stroke-width: 2;+ animation-name: archify-flow-ripple;+ }+ .ambient-flow-ripple-echo {+ stroke-width: 1.2;+ animation-name: archify-flow-ripple-echo;+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) .ambient-edge-flow {+ display: inline;+ animation-duration: var(--flow-cycle, 6.4s);+ animation-timing-function: linear;+ animation-iteration-count: infinite;+ animation-delay: var(--flow-delay, 0s);+ /* Without backwards fill a delayed layer would sit at its natural opacity+ (fully lit) until its phase arrives. */+ animation-fill-mode: backwards;+ }+ /* Each decorative flow follows its owning edge through tree visibility. */+ .ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }+ svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }+ svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ /* On light canvases the cascade reads by saturation instead of bloom: the+ head and inner ripple mix toward ink instead of white, and every layer's+ peak rises so the wave survives the bright background. */+ html[data-theme="light"] svg[data-animation="trace"] {+ --flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;+ --flow-tail-peak: 0.5;+ --flow-wake-peak: 0.13;+ --flow-ripple-echo-peak: 0.3;+ }+ html[data-theme="light"] .ambient-flow-head {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);+ stroke-width: 2.8;}- svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {- animation-name: archify-editorial-node-pulse;- animation-duration: 3.5s;+ html[data-theme="light"] .ambient-flow-ripple {+ stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);}- /* Embedded proofs are static until a named Story Trail chapter is played.- This keeps proof grids calm and ensures ?play=1 stops all viewer motion- after one 3.2 second chapter instead of leaving ambient trace loops on. */- html[data-embed="true"] svg[data-animation="trace"] [data-animate],- html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {- animation: none !important;- stroke-dashoffset: 0;+ html[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {+ transform-box: fill-box;+ transform-origin: center;+ animation: archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation: archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation: archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ /* Node glow follows each node's authored step on the shared cycle; it does+ not track incoming edge arrivals. During the bounded entrance all three+ animations run; the entrance pulse is listed after the repeating glow and+ wins on filter until it completes. */+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) svg[data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s));+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-node-pulse 3.6s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-node-pulse 3.1s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-blueprint-node-pulse 3.8s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden])[data-ambient-entry="running"] svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation: archify-node-receive var(--flow-cycle, 6.4s) ease-in-out infinite calc(var(--step, 0) * var(--flow-step-delay, 0.2s)),+ archify-editorial-node-pulse 3.5s ease-in-out 1 calc(var(--step, 0) * 160ms),+ archify-node-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards calc(var(--step, 0) * 160ms);+ }+ @keyframes archify-flow-wake {+ 0% { opacity: 0; }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 82%, 100% { opacity: 0; }+ }+ @keyframes archify-cascade-halo {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-tail {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }+ }+ @keyframes archify-cascade-head {+ 0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }+ 48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: 0; opacity: 0; }+ }+ @keyframes archify-flow-ripple {+ 0%, 60% { r: 2px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }+ }+ @keyframes archify-flow-ripple-echo {+ 0%, 63% { r: 2px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }+ }+ @keyframes archify-node-receive {+ 0%, 100% { filter: var(--ambient-node-base-filter, none); }+ 5%, 12% { filter: var(--ambient-node-base-filter,) drop-shadow(0 0 9px var(--arrow-emphasis)); }+ }+ @keyframes archify-node-enter {+ from { opacity: 0; }+ to { opacity: 1; }}- @keyframes archify-edge-flow {- 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }- 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }- 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }- 100% { stroke-dashoffset: 0; opacity: 1; }+ @media print {+ .ambient-edge-flow { display: none !important; animation: none !important; }+ svg[data-animation="trace"] [data-animate="node"] { animation: none !important; }}@keyframes archify-node-pulse {0%, 72%, 100% { filter: none; stroke-width: 1.5; }@@ -4863,13 +4955,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }}- @keyframes archify-guided-progress {- from { transform: scaleX(var(--guided-progress-start, 0)); }- to { transform: scaleX(1); }- }- @keyframes archify-story-flow {- to { stroke-dashoffset: 0; }- }+@keyframes archify-intent-trace-flow {0% { opacity: 0.28; stroke-dashoffset: 0; }12%, 78% { opacity: 0.94; }@@ -4900,11 +4986,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.13%, 82% { opacity: 1; }100% { opacity: 0; }}- @keyframes archify-story-beat-node {- from { opacity: 0.48; filter: saturate(0.6); }- 58% { opacity: 1; filter: drop-shadow(0 0 10px var(--frontend-stroke)); }- to { opacity: 1; filter: drop-shadow(0 0 7px var(--frontend-stroke)); }- }+@keyframes archify-share-cue-enter {from { opacity: 0; transform: translate(-50%, -0.45rem); }to { opacity: 1; transform: translate(-50%, 0); }@@ -4914,38 +4996,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.50% { opacity: 0.48; transform: scale(0.78); }}@media (prefers-reduced-motion: reduce) {+ .ambient-edge-flow { display: none !important; animation: none !important; }html[data-preset="signal-flow"] .diagram-container::before {animation: none !important;}.pulse-dot { animation: none !important; }+ .motion-control-dot { animation: none !important; }svg[data-animation="trace"] [data-animate] {animation: none !important;stroke-dashoffset: 0;}- .guided-view-progress span {+ svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {animation: none !important;- transform: scaleX(1) !important;+ stroke-dashoffset: 0;}- .story-trail-flow,.intent-trace-flow,.route-probe-flow,.semantic-lens,.diagram-guide,- [data-story-step],- .overview-map-live,- .guided-view-stop,- .share-chapter-cue,- .chapter-handoff-anchor,- .share-chapter-state::before,- .share-chapter-progress span { animation: none !important; }- .guided-view-chapter,- svg[data-chapter-preview] [data-node-id],- svg[data-chapter-preview] [data-edge-from] { transition: none !important; }- svg[data-story-playing="true"] .story-trail-flow {- stroke-dasharray: none;- stroke-dashoffset: 0;- opacity: 0.55;- }+ .overview-map-live { animation: none !important; }+.intent-trace-flow {animation: none !important;stroke-dasharray: none;@@ -4958,8 +5028,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.stroke-dashoffset: 0;opacity: 0.78;}- .route-journey-overlay,- .story-carrier-overlay { display: none !important; }+ .route-journey-overlay { display: none !important; }.semantic-lens-flow {animation: none !important;stroke-dasharray: none;@@ -4968,8 +5037,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.filter: none;}.relationship-pulse-overlay { display: none !important; }- .guided-view-chapter { transition: none !important; }- .source-evidence-beacon,svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }}</style>@@ -4979,6 +5046,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Motion appears only for trace-enabled artifacts and has no shortcut;Keyboard: T toggles theme, S cycles style, F toggles the stage, E opens export. --><div class="toolbar" role="toolbar" aria-label="Diagram actions">+ <div class="toolbar-group"><button id="btn-theme" type="button"title="Toggle theme (T)"aria-label="Toggle color theme"@@ -4999,7 +5067,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="preset-menu" id="preset-menu" role="menu" aria-label="Visual style">- <div class="preset-menu-heading" role="presentation"><span>Visual identity</span><span>S cycles</span></div>+ <div class="preset-menu-heading" role="presentation"><span>Visual identity</span><span class="preset-menu-shortcut"><kbd>S</kbd>to cycle</span></div><button class="preset-option" data-preset-value="classic" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch classic" aria-hidden="true"></span><span class="preset-option-copy"><strong>Classic</strong><small>Stable technical default</small></span>@@ -5036,6 +5104,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button>+ </div><div class="export-wrap"><button id="btn-export" type="button"title="Export diagram (E)"@@ -5052,10 +5121,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.</div><div class="export-menu-section" role="group" aria-label="Share"><span class="export-menu-heading" aria-hidden="true">Share</span>- <button data-format="share-card" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>Share Card</strong><small class="hint">1200×630 PNG</small></span></button><button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Route Share Card</strong><small class="hint">1200×630 PNG</small></span></button><button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Reach Share Card</strong><small class="hint">1200×630 PNG</small></span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>Copy Share Card</strong><small class="hint">PNG to clipboard</small></span></button><button data-action="copy" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>Copy diagram</strong><small class="hint">PNG to clipboard</small></span></button></div><div class="export-menu-section" role="group" aria-label="Raster images">@@ -5066,7 +5133,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.</div><div class="export-menu-section" role="group" aria-label="Vector and motion"><span class="export-menu-heading" aria-hidden="true">Vector & motion</span>- <button data-format="svg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG</strong><small class="hint">Editable vector</small></span></button>+ <button data-format="svg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Auto</strong><small class="hint">Matches host theme</small></span></button>+ <button data-format="svg-light" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Light</strong><small class="hint">Always light</small></span></button>+ <button data-format="svg-dark" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Dark</strong><small class="hint">Always dark</small></span></button><button data-format="webm" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebM</strong><small class="hint">6s motion</small></span></button></div></div>@@ -5085,52 +5154,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.</div></div>- <script id="archify-guided-views-data" type="application/json">[{"id":"query-path","label":"Query path","focus":["user","guardrail","orchestrator","retriever","vectordb","reranker","llm"],"note":"Follow a user question from input through safety filtering, retrieval, and generation to grounded answer."},{"id":"ingestion","label":"Document ingestion","focus":["sources","loader","chunker","embedder","vectordb"],"note":"How raw documents become searchable vector embeddings."},{"id":"safety-and-cache","label":"Safety and cache","focus":["user","guardrail","orchestrator","cache","llm"],"note":"The guardrail intercepts harmful queries before they reach the orchestrator; the semantic cache avoids redundant LLM calls."}]</script>-- <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>- <div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views">- <button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button>- <div class="guided-view-copy">- <div class="guided-view-meta">- <span>Guided views</span>- <span id="guided-view-count"></span>- <span class="guided-view-progress" aria-hidden="true"><span id="guided-view-progress-bar"></span></span>- <span class="guided-view-handoff" id="guided-view-handoff" hidden aria-hidden="true"></span>- </div>- <strong id="guided-view-label">Explore this system</strong>- <small id="guided-view-note" aria-live="polite" aria-atomic="true">Step through curated paths without changing the source diagram.</small>- <div class="guided-view-trail" id="guided-view-trail" hidden role="group" aria-label="Story trail"></div>- <div class="guided-story-caption" id="guided-story-caption" hidden aria-live="polite" aria-atomic="true">- <span class="guided-story-caption-index" id="guided-story-caption-index">Beat</span>- <strong id="guided-story-caption-route"></strong>- <small id="guided-story-caption-detail"></small>- <span class="guided-story-caption-next" id="guided-story-caption-next" hidden aria-hidden="true">- <small>Next</small>- <strong id="guided-story-caption-next-label"></strong>- </span>- </div>- </div>- <button id="guided-view-next" type="button" aria-label="Next guided view" title="Next guided view (])">→</button>- <div class="guided-view-actions">- <button class="guided-view-play" id="guided-view-play" type="button" aria-label="Play guided story" aria-pressed="false" title="Play guided story (P)">- <span id="guided-view-play-icon" aria-hidden="true">▶</span>- <span id="guided-view-play-label">Play story</span>- </button>- <button class="guided-view-beat-link" id="guided-view-beat-link" type="button" aria-label="Select a Story Beat to copy its exact link" title="Select a Story Beat to copy its exact link" disabled>- <span aria-hidden="true">#</span>- <span id="guided-view-beat-link-label">Copy moment</span>- </button>- <button class="guided-view-all" id="guided-view-all" type="button" aria-label="Show entire diagram">Show all</button>- </div>- <nav class="guided-view-index" id="guided-view-index" aria-label="Story chapters">- <ol class="guided-view-chapters" id="guided-view-chapters"></ol>- </nav>- </div>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"ROUTE","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><!-- Main Diagram --><div class="diagram-container" data-detail-level="read"data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">- <svg viewBox="0 0 980 528" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase">+ <svg viewBox="0 0 980 528" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14"><title id="archify-diagram-title">RAG Pipeline</title><desc id="archify-diagram-description">An architecture diagram generated by Archify.</desc><!-- Definitions -->@@ -5161,25 +5190,55 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<rect data-graph-role="structural-frame" data-composition-frame-kind="security-group" data-composition-frame-id="1" data-composition-frame-label="Ingestion Pipeline" x="330" y="360" width="490" height="100" rx="8" class="c-security-group" stroke-width="1"/><!-- Connection paths (before components for correct z-order) -->- <path data-edge-from="user" data-edge-to="guardrail" data-edge-label="question" data-edge-key="0" data-edge-id="user-to-guardrail" data-composition-points="130,225;160,225" d="M 130 225 L 160 225" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path data-edge-from="guardrail" data-edge-to="orchestrator" data-edge-label="validated query" data-edge-key="1" data-edge-id="guardrail-to-orchestrator" data-composition-points="270,225;310,225" d="M 270 225 L 310 225" class="a-security" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>- <path data-edge-from="orchestrator" data-edge-to="cache" data-edge-label="semantic match" data-edge-key="2" data-edge-id="cache-lookup" data-composition-points="375,200;375,120" d="M 375 200 L 375 120" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>- <path data-edge-from="orchestrator" data-edge-to="retriever" data-edge-label="retrieve" data-edge-key="3" data-edge-id="orchestrator-to-retriever" data-composition-points="440,227;480,227" d="M 440 227 L 480 227" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>- <path data-edge-from="retriever" data-edge-to="vectordb" data-edge-label="ANN search" data-edge-key="4" data-edge-id="retriever-to-vectordb" data-composition-points="540,254;540,285" d="M 540 254 L 540 285" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>- <path data-edge-from="retriever" data-edge-to="reranker" data-edge-label="top-k docs" data-edge-key="5" data-edge-id="retriever-to-reranker" data-composition-points="600,227;640,227" d="M 600 227 L 640 227" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>- <path data-edge-from="reranker" data-edge-to="llm" data-edge-label="context" data-edge-key="6" data-edge-id="reranker-to-llm" data-composition-points="760,227;800,227" d="M 760 227 L 800 227" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>- <path data-edge-from="llm" data-edge-to="orchestrator" data-edge-label="grounded answer" data-edge-key="7" data-edge-id="llm-response" data-composition-points="855,200;855,130;375,130;375,200" d="M 855 200 L 855 138 Q 855 130 847 130 L 383 130 Q 375 130 375 138 L 375 200" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>- <path data-edge-from="orchestrator" data-edge-to="user" data-edge-label="response" data-edge-key="8" data-edge-id="orchestrator-to-user" data-composition-points="375,254;375,285;80,285;80,250" d="M 375 254 L 375 277 Q 375 285 367 285 L 88 285 Q 80 285 80 277 L 80 250" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <path data-edge-from="sources" data-edge-to="loader" data-edge-label="raw docs" data-edge-key="9" data-edge-id="sources-to-loader" data-composition-points="320,415;360,415" d="M 320 415 L 360 415" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>- <path data-edge-from="loader" data-edge-to="chunker" data-edge-label="parsed text" data-edge-key="10" data-edge-id="loader-to-chunker" data-composition-points="470,415;510,415" d="M 470 415 L 510 415" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>- <path data-edge-from="chunker" data-edge-to="embedder" data-edge-label="chunks" data-edge-key="11" data-edge-id="chunker-to-embedder" data-composition-points="620,415;670,415" d="M 620 415 L 670 415" class="a-default" stroke-width="1.5" marker-end="url(#arrowhead)"/>- <path data-edge-from="embedder" data-edge-to="vectordb" data-edge-label="vectors" data-edge-key="12" data-edge-id="embedder-to-vectordb" data-composition-points="730,390;730,275;540,275;540,285" d="M 730 390 L 730 283 Q 730 275 722 275 L 545 275 Q 540 275 540 280 L 540 285" class="a-dashed" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>+ <g data-graph-role="automatic-crossover" style="--step:0">+ <path data-graph-role="automatic-crossover-underlay" d="M 130 225 L 160 225" fill="none" stroke="var(--mask)" stroke-width="5.8" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="user" data-edge-to="guardrail" data-edge-label="question" data-edge-key="0" data-edge-id="user-to-guardrail" data-composition-points="130,225;160,225" data-composition-crossover="halo" data-composition-independent="true" d="M 130 225 L 160 225" class="a-emphasis" data-animate="edge" style="--step:0" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ </g>+ <g data-graph-role="automatic-crossover" style="--step:1">+ <path data-graph-role="automatic-crossover-underlay" d="M 270 225 L 310 225" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="guardrail" data-edge-to="orchestrator" data-edge-label="validated query" data-edge-key="1" data-edge-id="guardrail-to-orchestrator" data-composition-points="270,225;310,225" data-composition-crossover="halo" data-composition-independent="true" d="M 270 225 L 310 225" class="a-security" data-animate="edge" style="--step:1" stroke-width="1.5" marker-end="url(#arrowhead-security)"/>+ </g>+ <g data-graph-role="automatic-crossover" style="--step:2">+ <path data-graph-role="automatic-crossover-underlay" d="M 375 200 L 375 120" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="orchestrator" data-edge-to="cache" data-edge-label="semantic match" data-edge-key="2" data-edge-id="cache-lookup" data-composition-points="375,200;375,120" data-composition-crossover="halo" d="M 375 200 L 375 120" class="a-default" data-animate="edge" style="--step:2" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ </g>+ <g data-graph-role="automatic-crossover" style="--step:3">+ <path data-graph-role="automatic-crossover-underlay" d="M 440 227 L 480 227" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="orchestrator" data-edge-to="retriever" data-edge-label="retrieve" data-edge-key="3" data-edge-id="orchestrator-to-retriever" data-composition-points="440,227;480,227" data-composition-crossover="halo" data-composition-independent="true" d="M 440 227 L 480 227" class="a-default" data-animate="edge" style="--step:3" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ </g>+ <g data-graph-role="automatic-crossover" style="--step:4">+ <path data-graph-role="automatic-crossover-underlay" d="M 540 254 L 540 285" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="retriever" data-edge-to="vectordb" data-edge-label="ANN search" data-edge-key="4" data-edge-id="retriever-to-vectordb" data-composition-points="540,254;540,285" data-composition-crossover="halo" d="M 540 254 L 540 285" class="a-default" data-animate="edge" style="--step:4" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ </g>+ <g data-graph-role="automatic-crossover" style="--step:5">+ <path data-graph-role="automatic-crossover-underlay" d="M 600 227 L 640 227" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="retriever" data-edge-to="reranker" data-edge-label="top-k docs" data-edge-key="5" data-edge-id="retriever-to-reranker" data-composition-points="600,227;640,227" data-composition-crossover="halo" data-composition-independent="true" d="M 600 227 L 640 227" class="a-default" data-animate="edge" style="--step:5" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ </g>+ <g data-graph-role="automatic-crossover" style="--step:6">+ <path data-graph-role="automatic-crossover-underlay" d="M 760 227 L 800 227" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="reranker" data-edge-to="llm" data-edge-label="context" data-edge-key="6" data-edge-id="reranker-to-llm" data-composition-points="760,227;800,227" data-composition-crossover="halo" data-composition-independent="true" d="M 760 227 L 800 227" class="a-default" data-animate="edge" style="--step:6" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ </g>+ <path data-edge-from="llm" data-edge-to="orchestrator" data-edge-label="grounded answer" data-edge-key="7" data-edge-id="llm-response" data-composition-points="855,200;855,130;375,130;375,200" d="M 855 200 L 855 138 Q 855 130 847 130 L 383 130 Q 375 130 375 138 L 375 200" class="a-dashed" data-animate="edge" style="--step:7" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>+ <path data-edge-from="orchestrator" data-edge-to="user" data-edge-label="response" data-edge-key="8" data-edge-id="orchestrator-to-user" data-composition-points="375,254;375,285;80,285;80,250" d="M 375 254 L 375 277 Q 375 285 367 285 L 88 285 Q 80 285 80 277 L 80 250" class="a-emphasis" data-animate="edge" style="--step:8" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>+ <g data-graph-role="automatic-crossover" style="--step:9">+ <path data-graph-role="automatic-crossover-underlay" d="M 320 415 L 360 415" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="sources" data-edge-to="loader" data-edge-label="raw docs" data-edge-key="9" data-edge-id="sources-to-loader" data-composition-points="320,415;360,415" data-composition-crossover="halo" d="M 320 415 L 360 415" class="a-dashed" data-animate="edge" style="--step:9" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/>+ </g>+ <g data-graph-role="automatic-crossover" style="--step:10">+ <path data-graph-role="automatic-crossover-underlay" d="M 470 415 L 510 415" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="loader" data-edge-to="chunker" data-edge-label="parsed text" data-edge-key="10" data-edge-id="loader-to-chunker" data-composition-points="470,415;510,415" data-composition-crossover="halo" data-composition-independent="true" d="M 470 415 L 510 415" class="a-default" data-animate="edge" style="--step:10" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ </g>+ <g data-graph-role="automatic-crossover" style="--step:11">+ <path data-graph-role="automatic-crossover-underlay" d="M 620 415 L 670 415" fill="none" stroke="var(--mask)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round" pointer-events="none"/>+ <path data-edge-from="chunker" data-edge-to="embedder" data-edge-label="chunks" data-edge-key="11" data-edge-id="chunker-to-embedder" data-composition-points="620,415;670,415" data-composition-crossover="halo" data-composition-independent="true" d="M 620 415 L 670 415" class="a-default" data-animate="edge" style="--step:11" stroke-width="1.5" marker-end="url(#arrowhead)"/>+ </g>+ <path data-edge-from="embedder" data-edge-to="vectordb" data-edge-label="vectors" data-edge-key="12" data-edge-id="embedder-to-vectordb" data-composition-points="730,390;730,275;540,275;540,285" d="M 730 390 L 730 283 Q 730 275 722 275 L 545 275 Q 540 275 540 280 L 540 285" class="a-dashed" data-animate="edge" style="--step:12" stroke-width="1.5" marker-end="url(#arrowhead-dashed)"/><!-- Components --><g id="node-user" data-node-id="user" data-node-label="User" tabindex="0" role="button" aria-label="Focus User, Chat / API, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="Chat / API" data-node-context="Architecture component"><title>User · Chat / API · Architecture component</title><rect x="30" y="200" width="100" height="50" rx="6" class="c-mask"/>- <rect x="30" y="200" width="100" height="50" rx="6" class="c-external" stroke-width="1.5"/>+ <rect x="30" y="200" width="100" height="50" rx="6" class="c-external" data-animate="node" style="--step:0" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(36 206) scale(0.6875)"><rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/><path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>@@ -5191,7 +5250,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-guardrail" data-node-id="guardrail" data-node-label="Guardrail" tabindex="0" role="button" aria-label="Focus Guardrail, Input filter, Query Runtime" aria-pressed="false" data-node-kind="security" data-node-sublabel="Input filter" data-node-tag="PII + toxicity" data-node-context="Query Runtime"><title>Guardrail · Input filter · Query Runtime · PII + toxicity</title><rect x="160" y="200" width="110" height="50" rx="6" class="c-mask"/>- <rect x="160" y="200" width="110" height="50" rx="6" class="c-security" stroke-width="1.5"/>+ <rect x="160" y="200" width="110" height="50" rx="6" class="c-security" data-animate="node" style="--step:1" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="security" class="semantic-sigil s-security" transform="translate(166 206) scale(0.6875)"><path d="M8 2.2 13 4v3.5c0 3.1-1.8 5.4-5 6.5-3.2-1.1-5-3.4-5-6.5V4Z"/><path d="m5.8 8 1.5 1.5 3-3"/>@@ -5204,7 +5263,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-orchestrator" data-node-id="orchestrator" data-node-label="Orchestrator" tabindex="0" role="button" aria-label="Focus Orchestrator, LangGraph agent, Query Runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="LangGraph agent" data-node-context="Query Runtime"><title>Orchestrator · LangGraph agent · Query Runtime</title><rect x="310" y="200" width="130" height="54" rx="6" class="c-mask"/>- <rect x="310" y="200" width="130" height="54" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="310" y="200" width="130" height="54" rx="6" class="c-backend" data-animate="node" style="--step:2" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(316 206) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5215,7 +5274,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-cache" data-node-id="cache" data-node-label="Semantic Cache" tabindex="0" role="button" aria-label="Focus Semantic Cache, Redis :6379, Query Runtime" aria-pressed="false" data-node-kind="database" data-node-sublabel="Redis :6379" data-node-context="Query Runtime"><title>Semantic Cache · Redis :6379 · Query Runtime</title><rect x="310" y="70" width="130" height="50" rx="6" class="c-mask"/>- <rect x="310" y="70" width="130" height="50" rx="6" class="c-database" stroke-width="1.5"/>+ <rect x="310" y="70" width="130" height="50" rx="6" class="c-database" data-animate="node" style="--step:3" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(316 76) scale(0.6875)"><ellipse cx="8" cy="4" rx="5" ry="2"/><path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>@@ -5227,7 +5286,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-retriever" data-node-id="retriever" data-node-label="Retriever" tabindex="0" role="button" aria-label="Focus Retriever, Hybrid search, Query Runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="Hybrid search" data-node-context="Query Runtime"><title>Retriever · Hybrid search · Query Runtime</title><rect x="480" y="200" width="120" height="54" rx="6" class="c-mask"/>- <rect x="480" y="200" width="120" height="54" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="480" y="200" width="120" height="54" rx="6" class="c-backend" data-animate="node" style="--step:4" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(486 206) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5238,7 +5297,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-vectordb" data-node-id="vectordb" data-node-label="Vector Store" tabindex="0" role="button" aria-label="Focus Vector Store, Milvus, Architecture component" aria-pressed="false" data-node-kind="database" data-node-sublabel="Milvus" data-node-tag="HNSW index" data-node-context="Architecture component"><title>Vector Store · Milvus · Architecture component · HNSW index</title><rect x="480" y="285" width="120" height="50" rx="6" class="c-mask"/>- <rect x="480" y="285" width="120" height="50" rx="6" class="c-database" stroke-width="1.5"/>+ <rect x="480" y="285" width="120" height="50" rx="6" class="c-database" data-animate="node" style="--step:5" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(486 291) scale(0.6875)"><ellipse cx="8" cy="4" rx="5" ry="2"/><path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>@@ -5251,7 +5310,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-reranker" data-node-id="reranker" data-node-label="Reranker" tabindex="0" role="button" aria-label="Focus Reranker, Cross-encoder, Query Runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="Cross-encoder" data-node-context="Query Runtime"><title>Reranker · Cross-encoder · Query Runtime</title><rect x="640" y="200" width="120" height="54" rx="6" class="c-mask"/>- <rect x="640" y="200" width="120" height="54" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="640" y="200" width="120" height="54" rx="6" class="c-backend" data-animate="node" style="--step:6" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(646 206) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5262,7 +5321,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-llm" data-node-id="llm" data-node-label="LLM" tabindex="0" role="button" aria-label="Focus LLM, Claude API, Query Runtime" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="Claude API" data-node-context="Query Runtime"><title>LLM · Claude API · Query Runtime</title><rect x="800" y="200" width="110" height="54" rx="6" class="c-mask"/>- <rect x="800" y="200" width="110" height="54" rx="6" class="c-cloud" stroke-width="1.5"/>+ <rect x="800" y="200" width="110" height="54" rx="6" class="c-cloud" data-animate="node" style="--step:7" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(806 206) scale(0.6875)"><path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/></g>@@ -5273,7 +5332,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-sources" data-node-id="sources" data-node-label="Documents" tabindex="0" role="button" aria-label="Focus Documents, PDF / Web / DB, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="PDF / Web / DB" data-node-context="Architecture component"><title>Documents · PDF / Web / DB · Architecture component</title><rect x="200" y="390" width="120" height="50" rx="6" class="c-mask"/>- <rect x="200" y="390" width="120" height="50" rx="6" class="c-external" stroke-width="1.5"/>+ <rect x="200" y="390" width="120" height="50" rx="6" class="c-external" data-animate="node" style="--step:9" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="external" class="semantic-sigil s-external" transform="translate(206 396) scale(0.6875)"><rect x="2.5" y="5" width="8.5" height="8" rx="1.5"/><path d="M8 2.5h5.5V8M13.5 2.5 7.5 8.5"/>@@ -5285,7 +5344,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-loader" data-node-id="loader" data-node-label="Loader" tabindex="0" role="button" aria-label="Focus Loader, Parse + extract, Ingestion Pipeline" aria-pressed="false" data-node-kind="backend" data-node-sublabel="Parse + extract" data-node-context="Ingestion Pipeline"><title>Loader · Parse + extract · Ingestion Pipeline</title><rect x="360" y="390" width="110" height="50" rx="6" class="c-mask"/>- <rect x="360" y="390" width="110" height="50" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="360" y="390" width="110" height="50" rx="6" class="c-backend" data-animate="node" style="--step:10" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(366 396) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5296,7 +5355,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-chunker" data-node-id="chunker" data-node-label="Chunker" tabindex="0" role="button" aria-label="Focus Chunker, Semantic split, Ingestion Pipeline" aria-pressed="false" data-node-kind="backend" data-node-sublabel="Semantic split" data-node-context="Ingestion Pipeline"><title>Chunker · Semantic split · Ingestion Pipeline</title><rect x="510" y="390" width="110" height="50" rx="6" class="c-mask"/>- <rect x="510" y="390" width="110" height="50" rx="6" class="c-backend" stroke-width="1.5"/>+ <rect x="510" y="390" width="110" height="50" rx="6" class="c-backend" data-animate="node" style="--step:11" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="backend" class="semantic-sigil s-backend" transform="translate(516 396) scale(0.6875)"><path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g>@@ -5307,7 +5366,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<g id="node-embedder" data-node-id="embedder" data-node-label="Embedding" tabindex="0" role="button" aria-label="Focus Embedding, text-embedding-3, Ingestion Pipeline" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="text-embedding-3" data-node-context="Ingestion Pipeline"><title>Embedding · text-embedding-3 · Ingestion Pipeline</title><rect x="670" y="390" width="120" height="50" rx="6" class="c-mask"/>- <rect x="670" y="390" width="120" height="50" rx="6" class="c-cloud" stroke-width="1.5"/>+ <rect x="670" y="390" width="120" height="50" rx="6" class="c-cloud" data-animate="node" style="--step:12" stroke-width="1.5"/><g aria-hidden="true" data-semantic-sigil="cloud" class="semantic-sigil s-cloud" transform="translate(676 396) scale(0.6875)"><path d="M4.3 12.5h7.3a2.4 2.4 0 0 0 .2-4.8 4 4 0 0 0-7.5-1.3A3.1 3.1 0 0 0 4.3 12.5Z"/></g>@@ -5318,55 +5377,55 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<!-- Connection labels --><g data-detail="context" data-edge-from="user" data-edge-to="guardrail" data-edge-label="question" data-edge-key="0" data-edge-id="user-to-guardrail"><rect x="120.8" y="186" width="48.4" height="14" rx="3" class="c-mask"/>- <text x="145" y="196" class="t-backend" font-size="8" text-anchor="middle">question</text>+ <text x="145" y="196" class="t-edge-emphasis" font-size="8" text-anchor="middle">question</text></g><g data-detail="context" data-edge-from="guardrail" data-edge-to="orchestrator" data-edge-label="validated query" data-edge-key="1" data-edge-id="guardrail-to-orchestrator"><rect x="249" y="186" width="82" height="14" rx="3" class="c-mask"/>- <text x="290" y="196" class="t-security" font-size="8" text-anchor="middle">validated query</text>+ <text x="290" y="196" class="t-edge-security" font-size="8" text-anchor="middle">validated query</text></g><g data-detail="context" data-edge-from="orchestrator" data-edge-to="cache" data-edge-label="semantic match" data-edge-key="2" data-edge-id="cache-lookup"><rect x="411.4" y="145" width="77.2" height="14" rx="3" class="c-mask"/>- <text x="450" y="155" class="t-muted" font-size="8" text-anchor="middle">semantic match</text>+ <text x="450" y="155" class="t-edge-default" font-size="8" text-anchor="middle">semantic match</text></g><g data-detail="context" data-edge-from="orchestrator" data-edge-to="retriever" data-edge-label="retrieve" data-edge-key="3" data-edge-id="orchestrator-to-retriever"><rect x="435.8" y="186" width="48.4" height="14" rx="3" class="c-mask"/>- <text x="460" y="196" class="t-muted" font-size="8" text-anchor="middle">retrieve</text>+ <text x="460" y="196" class="t-edge-default" font-size="8" text-anchor="middle">retrieve</text></g><g data-detail="context" data-edge-from="retriever" data-edge-to="vectordb" data-edge-label="ANN search" data-edge-key="4" data-edge-id="retriever-to-vectordb"><rect x="541" y="255" width="58" height="14" rx="3" class="c-mask"/>- <text x="570" y="265" class="t-muted" font-size="8" text-anchor="middle">ANN search</text>+ <text x="570" y="265" class="t-edge-default" font-size="8" text-anchor="middle">ANN search</text></g><g data-detail="context" data-edge-from="retriever" data-edge-to="reranker" data-edge-label="top-k docs" data-edge-key="5" data-edge-id="retriever-to-reranker"><rect x="591" y="186" width="58" height="14" rx="3" class="c-mask"/>- <text x="620" y="196" class="t-muted" font-size="8" text-anchor="middle">top-k docs</text>+ <text x="620" y="196" class="t-edge-default" font-size="8" text-anchor="middle">top-k docs</text></g><g data-detail="context" data-edge-from="reranker" data-edge-to="llm" data-edge-label="context" data-edge-key="6" data-edge-id="reranker-to-llm"><rect x="758.2" y="186" width="43.6" height="14" rx="3" class="c-mask"/>- <text x="780" y="196" class="t-muted" font-size="8" text-anchor="middle">context</text>+ <text x="780" y="196" class="t-edge-default" font-size="8" text-anchor="middle">context</text></g><g data-detail="context" data-edge-from="llm" data-edge-to="orchestrator" data-edge-label="grounded answer" data-edge-key="7" data-edge-id="llm-response"><rect x="574" y="110" width="82" height="14" rx="3" class="c-mask"/>- <text x="615" y="120" class="t-messagebus" font-size="8" text-anchor="middle">grounded answer</text>+ <text x="615" y="120" class="t-edge-dashed" font-size="8" text-anchor="middle">grounded answer</text></g><g data-detail="context" data-edge-from="orchestrator" data-edge-to="user" data-edge-label="response" data-edge-key="8" data-edge-id="orchestrator-to-user"><rect x="203.3" y="265" width="48.4" height="14" rx="3" class="c-mask"/>- <text x="227.5" y="275" class="t-backend" font-size="8" text-anchor="middle">response</text>+ <text x="227.5" y="275" class="t-edge-emphasis" font-size="8" text-anchor="middle">response</text></g><g data-detail="context" data-edge-from="sources" data-edge-to="loader" data-edge-label="raw docs" data-edge-key="9" data-edge-id="sources-to-loader"><rect x="255.8" y="355" width="48.4" height="14" rx="3" class="c-mask"/>- <text x="280" y="365" class="t-messagebus" font-size="8" text-anchor="middle">raw docs</text>+ <text x="280" y="365" class="t-edge-dashed" font-size="8" text-anchor="middle">raw docs</text></g><g data-detail="context" data-edge-from="loader" data-edge-to="chunker" data-edge-label="parsed text" data-edge-key="10" data-edge-id="loader-to-chunker"><rect x="458.6" y="376" width="62.8" height="14" rx="3" class="c-mask"/>- <text x="490" y="386" class="t-muted" font-size="8" text-anchor="middle">parsed text</text>+ <text x="490" y="386" class="t-edge-default" font-size="8" text-anchor="middle">parsed text</text></g><g data-detail="context" data-edge-from="chunker" data-edge-to="embedder" data-edge-label="chunks" data-edge-key="11" data-edge-id="chunker-to-embedder"><rect x="625.6" y="376" width="38.8" height="14" rx="3" class="c-mask"/>- <text x="645" y="386" class="t-muted" font-size="8" text-anchor="middle">chunks</text>+ <text x="645" y="386" class="t-edge-default" font-size="8" text-anchor="middle">chunks</text></g><g data-detail="context" data-edge-from="embedder" data-edge-to="vectordb" data-edge-label="vectors" data-edge-key="12" data-edge-id="embedder-to-vectordb"><rect x="613.2" y="255" width="43.6" height="14" rx="3" class="c-mask"/>- <text x="635" y="265" class="t-messagebus" font-size="8" text-anchor="middle">vectors</text>+ <text x="635" y="265" class="t-edge-dashed" font-size="8" text-anchor="middle">vectors</text></g><!-- Boundary labels (foreground masks keep routes out of titles) -->@@ -5383,41 +5442,29 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<!-- Legend --><g data-legend="" data-legend-bridge=""><text x="40" y="492" class="t-primary" font-size="12" font-weight="650">Legend</text>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="40" data-legend-baseline="512" data-legend-width="78">+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="40" data-legend-baseline="512" data-legend-width="87"><rect x="40" y="503" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/><text x="62" y="512" class="t-muted" font-size="10" font-weight="500">Backend</text></g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="140" data-legend-baseline="512" data-legend-width="83">- <rect x="140" y="503" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>- <text x="162" y="512" class="t-muted" font-size="10" font-weight="500">Database</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="149" data-legend-baseline="512" data-legend-width="93">+ <rect x="149" y="503" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>+ <text x="171" y="512" class="t-muted" font-size="10" font-weight="500">Database</text></g>- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="512" data-legend-width="68">- <rect x="245" y="503" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>- <text x="267" y="512" class="t-muted" font-size="10" font-weight="500">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="264" data-legend-baseline="512" data-legend-width="74">+ <rect x="264" y="503" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="286" y="512" class="t-muted" font-size="10" font-weight="500">Cloud</text></g>- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="512" data-legend-width="83">- <rect x="335" y="503" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>- <text x="357" y="512" class="t-muted" font-size="10" font-weight="500">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="360" data-legend-baseline="512" data-legend-width="93">+ <rect x="360" y="503" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="382" y="512" class="t-muted" font-size="10" font-weight="500">Security</text></g>- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="440" data-legend-baseline="512" data-legend-width="83">- <rect x="440" y="503" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>- <text x="462" y="512" class="t-muted" font-size="10" font-weight="500">External</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="475" data-legend-baseline="512" data-legend-width="93">+ <rect x="475" y="503" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="497" y="512" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg><p class="intent-trace-status no-print" id="intent-trace-status" role="status" aria-live="polite" aria-atomic="true"></p>- <div class="share-chapter-cue no-print" id="share-chapter-cue" hidden role="status" aria-live="polite">- <div class="share-chapter-index">- <span class="share-chapter-state" id="share-chapter-state">Ready</span>- <span class="share-chapter-count" id="share-chapter-count">Chapter 01 / 01</span>- </div>- <div class="share-chapter-copy">- <strong id="share-chapter-label">Guided chapter</strong>- <small id="share-chapter-note"></small>- </div>- <span class="share-chapter-route" id="share-chapter-route"></span>- <span class="share-chapter-progress" aria-hidden="true"><span id="share-chapter-progress-bar"></span></span>- </div><div class="diagram-guide no-print" id="diagram-guide" hidden role="dialog" aria-modal="false" aria-labelledby="diagram-guide-title"><div class="diagram-guide-head"><span>@@ -5448,13 +5495,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<span class="diagram-guide-action-copy"><strong>Compare semantic kinds</strong><small>Count roles, reveal their traffic, and compare direct authored links.</small></span><kbd aria-hidden="true">L</kbd></button>- <button class="diagram-guide-action" type="button" data-guide-action="story" aria-label="Play the guided story">- <span class="diagram-guide-index" aria-hidden="true">05</span>- <span class="diagram-guide-action-copy"><strong>Play the guided story</strong><small id="diagram-guide-story-copy">Walk the authored chapters and real relationships.</small></span>- <kbd aria-hidden="true">P</kbd>- </button><button class="diagram-guide-action" type="button" data-guide-action="present" aria-label="Enter presentation stage">- <span class="diagram-guide-index" aria-hidden="true">06</span>+ <span class="diagram-guide-index" aria-hidden="true">05</span><span class="diagram-guide-action-copy"><strong>Enter Presentation Stage</strong><small>Give the live diagram the viewport without changing export.</small></span><kbd aria-hidden="true">F</kbd></button>@@ -5480,6 +5522,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.</div><div class="focus-chip relationship-lens no-print" id="focus-chip" hidden role="region" aria-labelledby="relationship-lens-title"><div class="relationship-lens-head">+ <button class="relationship-lens-drag-handle" id="btn-focus-move" type="button" data-focus-drag-handle aria-label="Move semantic passport. Drag, use arrow keys, or press Home to reset." title="Move semantic passport. Drag, use arrow keys, or press Home to reset."></button><div class="relationship-lens-copy"><span class="relationship-lens-eyebrow">Semantic passport</span><strong class="relationship-lens-title" id="relationship-lens-title"><span id="focus-label"></span></strong>@@ -5523,8 +5566,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<div class="route-probe no-print" id="route-probe" hidden role="region" aria-labelledby="route-probe-title" data-state="idle"><div class="route-probe-head"><span class="route-probe-copy">- <span class="route-probe-eyebrow">Route probe</span>- <strong class="route-probe-title" id="route-probe-title">Choose a start node</strong>+ <span class="route-probe-eyebrow">Path</span>+ <strong class="route-probe-title" id="route-probe-title">Click where the path starts</strong></span><span class="route-probe-actions"><button class="route-probe-find" id="route-probe-find" type="button" aria-label="Find a route start" data-node-finder-trigger>Find start</button>@@ -5532,8 +5575,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="route-probe-clear" type="button" aria-label="Clear route probe">Clear</button></span></div>- <div class="route-probe-path" id="route-probe-path" aria-label="Traced route">- <span class="route-probe-placeholder">Pick two semantic nodes on the diagram</span>+ <div class="route-probe-path" id="route-probe-path" aria-label="Path">+ <span class="route-probe-placeholder">Click two nodes on the diagram</span></div><div class="route-journey-controls" id="route-journey-controls" hidden role="group" aria-label="Route journey controls" data-playing="false"><button id="route-journey-prev" type="button" aria-label="Previous route position" title="Previous route position">←</button>@@ -5544,7 +5587,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="route-journey-next" type="button" aria-label="Next route position" title="Next route position">→</button><button class="route-journey-overview" id="route-journey-overview" type="button" aria-label="Show complete route overview" title="Show complete route overview">Overview</button></div>- <small class="route-probe-status" id="route-probe-status" aria-live="polite">Choose the source, then the destination. Direction matters.</small>+ <small class="route-probe-status" id="route-probe-status" aria-live="polite">Click a start, then an end. Paths follow the arrows.</small></div><div class="semantic-lens no-print" id="semantic-lens" hidden role="dialog" aria-modal="false" aria-labelledby="semantic-lens-title"><div class="semantic-lens-head">@@ -5576,8 +5619,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<div class="overview-map-hint" aria-hidden="true"><span>Click node</span><span>Drag to pan</span></div></div><p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p>+ <button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes & index</span></button><div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">- <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">ROUTE</button><button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>@@ -5588,6 +5632,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.</div></div>+ <aside class="reader-rail" id="reader-rail">+ <div class="rail-controls no-print" role="toolbar" aria-label="Side panel">+ <button class="rail-control" id="rail-placement" type="button" hidden aria-label="Move panel below the diagram" title="Move panel below the diagram" data-placement="right"><span class="rail-control-icon placement" aria-hidden="true"></span></button>+ <button class="rail-control" id="rail-collapse" type="button" hidden aria-controls="reader-rail" aria-expanded="true" aria-label="Collapse side panel" title="Collapse side panel"><span class="rail-control-icon collapse" aria-hidden="true"></span></button>+ </div><!-- Info Cards --><div class="cards"><div class="card">@@ -5596,9 +5645,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<h3>Retrieval</h3></div><ul>- <li>• Hybrid search: dense vectors + sparse BM25</li>- <li>• Cross-encoder reranker for precision</li>- <li>• Top-k context window management</li>+ <li>Hybrid search: dense vectors + sparse BM25</li>+ <li>Cross-encoder reranker for precision</li>+ <li>Top-k context window management</li></ul></div>@@ -5608,9 +5657,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<h3>Generation</h3></div><ul>- <li>• Claude API for grounded generation</li>- <li>• Semantic cache reduces repeat LLM calls</li>- <li>• Streaming response with citations</li>+ <li>Claude API for grounded generation</li>+ <li>Semantic cache reduces repeat LLM calls</li>+ <li>Streaming response with citations</li></ul></div>@@ -5620,12 +5669,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<h3>Safety</h3></div><ul>- <li>• Input guardrail filters PII and toxic content</li>- <li>• Output grounding reduces hallucination risk</li>- <li>• Document-level access control in retriever</li>+ <li>Input guardrail filters PII and toxic content</li>+ <li>Output grounding reduces hallucination risk</li>+ <li>Document-level access control in retriever</li></ul></div></div>+ <nav class="node-outline no-print" id="node-outline" hidden aria-labelledby="node-outline-title">+ <div class="node-outline-head">+ <strong id="node-outline-title">Node index</strong>+ <span class="node-outline-count" id="node-outline-count"></span>+ </div>+ <ol class="node-outline-list" id="node-outline-list"></ol>+ </nav>+ </aside></div>@@ -5664,11 +5721,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function hasDrawableGeometry(element) {- if (!element) return false;+ if (!element || element.hasAttribute('data-ambient-flow-overlay')) return false;var geometries = /^(path|line|polyline)$/i.test(element.tagName)? [element]: Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));return geometries.some(function (geometry) {+ if (geometry.hasAttribute('data-ambient-flow-overlay')) return false;var source = geometry.tagName.toLowerCase() === 'path'? geometry.getAttribute('d'): geometry.tagName.toLowerCase() === 'polyline'@@ -5883,8 +5941,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var MOTION_FPS = 30;var SHARE_CARD_WIDTH = 1200;var SHARE_CARD_HEIGHT = 630;- var SHARE_CARD_PADDING = 36;- var SHARE_CARD_HEADER = 112;+ var SHARE_CARD_PADDING = 40;+ var SHARE_CARD_HEADER = 124;function exportError(key, values) {var error = new Error(viewerText(key, values));@@ -5912,191 +5970,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return getComputedStyle(document.body).backgroundColor || '#ffffff';}- /**- * Serialize the main SVG into a standalone document.- *- * Two modes:- * - Default (opts.autoTheme=false) — locks the serialized SVG to the- * viewer's current theme. Used by the raster pipeline- * (PNG/JPEG/WebP/clipboard) because canvas rasterization needs- * deterministic colors; a raster cannot react to- * prefers-color-scheme after encoding.- * - autoTheme=true — emits BOTH dark and light variable sets plus a- * `@media (prefers-color-scheme)` rule so the resulting SVG- * self-themes when embedded in GitHub READMEs or other hosts that- * expose a color scheme. Used for "Download SVG".- */- function applyRouteSnapshot(clone, snapshot) {- if (!snapshot || !Array.isArray(snapshot.nodeIds) || !Array.isArray(snapshot.edges) ||- snapshot.nodeIds.length < 2 || snapshot.edges.length !== snapshot.nodeIds.length - 1 ||- snapshot.hops !== snapshot.edges.length ||- !snapshot.source || !snapshot.target ||- snapshot.source.id !== snapshot.nodeIds[0] ||- snapshot.target.id !== snapshot.nodeIds[snapshot.nodeIds.length - 1]) return false;-- clone.removeAttribute('data-animation');- Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {- element.removeAttribute('data-animate');- element.style.removeProperty('--step');+ function cleanExportClone(clone) {+ Array.prototype.forEach.call(clone.querySelectorAll('[data-ambient-flow-overlay]'), function (el) {+ el.remove();});-- var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));- var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));- var nodeIds = Object.create(null);- var edgeKeys = Object.create(null);- var nodeMatches = [];- var edgeMatches = [];-- for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {- var nodeId = snapshot.nodeIds[nodeIndex];- if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId]) return false;- var matchedNodes = cloneNodes.filter(function (candidate) {- return candidate.getAttribute('data-node-id') === nodeId;- });- if (matchedNodes.length !== 1) return false;- nodeIds[nodeId] = true;- nodeMatches.push(matchedNodes);- }-- for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {- var edge = snapshot.edges[edgeIndex];- var fromId = snapshot.nodeIds[edgeIndex];- var toId = snapshot.nodeIds[edgeIndex + 1];- if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||- edge.from !== fromId || edge.to !== toId) return false;- var matchedEdges = cloneEdges.filter(function (candidate) {- return candidate.getAttribute('data-edge-key') === edge.key;- });- var drawableMatches = matchedEdges.filter(hasDrawableGeometry);- if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {- return candidate.getAttribute('data-edge-from') === edge.from &&- candidate.getAttribute('data-edge-to') === edge.to &&- (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');- })) return false;- edgeKeys[edge.key] = true;- edgeMatches.push(matchedEdges);- }-- clone.setAttribute('data-share-route', '');- nodeMatches.forEach(function (matches, step) {- matches.forEach(function (element) {- element.setAttribute('data-share-route-match', '');- element.setAttribute('data-share-route-step', String(step));- if (step === 0) element.setAttribute('data-share-route-start', '');- else if (step === snapshot.nodeIds.length - 1) element.setAttribute('data-share-route-end', '');- else element.setAttribute('data-share-route-middle', '');- });- });- edgeMatches.forEach(function (matches, step) {- matches.forEach(function (element) {- element.setAttribute('data-share-route-match', '');- element.setAttribute('data-share-route-step', String(step));- });- });-- return clone.hasAttribute('data-share-route') &&- !clone.hasAttribute('data-animation') &&- !clone.hasAttribute('data-route-active') &&- !clone.hasAttribute('data-route-journey') &&- clone.querySelectorAll('[data-animate], [data-route-match], [data-route-step], [data-route-start], [data-route-end], [data-route-journey-state], [data-route-journey-current], [data-route-journey-overlay]').length === 0 &&- clone.querySelectorAll('[data-share-route-match]').length ===- nodeMatches.reduce(function (count, matches) { return count + matches.length; }, 0) +- edgeMatches.reduce(function (count, matches) { return count + matches.length; }, 0);- }-- function applyReachSnapshot(clone, snapshot) {- if (!snapshot || (snapshot.direction !== 'upstream' && snapshot.direction !== 'downstream') ||- !snapshot.origin || typeof snapshot.origin.id !== 'string' || !snapshot.origin.id ||- typeof snapshot.origin.label !== 'string' || !snapshot.origin.label.trim() ||- !Array.isArray(snapshot.nodeIds) || snapshot.nodeIds.length < 2 ||- !Array.isArray(snapshot.edges) || !snapshot.edges.length ||- !snapshot.depths || typeof snapshot.depths !== 'object' ||- !Number.isInteger(snapshot.maxDepth) || snapshot.maxDepth < 1 ||- snapshot.nodeIds[0] !== snapshot.origin.id) return false;-- clone.removeAttribute('data-animation');- Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {- element.removeAttribute('data-animate');- element.style.removeProperty('--step');- });-- var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));- var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));- var nodeIds = Object.create(null);- var edgeKeys = Object.create(null);- var nodeMatches = [];- var edgeMatches = [];- var measuredMaxDepth = 0;-- for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {- var nodeId = snapshot.nodeIds[nodeIndex];- var depth = snapshot.depths[nodeId];- if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId] ||- !Number.isInteger(depth) || depth < 0 || depth > snapshot.maxDepth ||- (nodeId === snapshot.origin.id ? depth !== 0 : depth < 1)) return false;- var matchedNodes = cloneNodes.filter(function (candidate) {- return candidate.getAttribute('data-node-id') === nodeId;- });- if (matchedNodes.length !== 1) return false;- nodeIds[nodeId] = true;- measuredMaxDepth = Math.max(measuredMaxDepth, depth);- nodeMatches.push({ elements: matchedNodes, id: nodeId, depth: depth });- }- if (measuredMaxDepth !== snapshot.maxDepth) return false;-- for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {- var edge = snapshot.edges[edgeIndex];- if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||- !nodeIds[edge.from] || !nodeIds[edge.to] ||- !Number.isInteger(edge.depth) || edge.depth < 1 || edge.depth > snapshot.maxDepth ||- edge.depth !== Math.max(snapshot.depths[edge.from], snapshot.depths[edge.to])) return false;- var matchedEdges = cloneEdges.filter(function (candidate) {- return candidate.getAttribute('data-edge-key') === edge.key;- });- var drawableMatches = matchedEdges.filter(hasDrawableGeometry);- if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {- return candidate.getAttribute('data-edge-from') === edge.from &&- candidate.getAttribute('data-edge-to') === edge.to &&- (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');- })) return false;- edgeKeys[edge.key] = true;- edgeMatches.push({ elements: matchedEdges, depth: edge.depth });- }-- clone.setAttribute('data-share-reach', snapshot.direction);- nodeMatches.forEach(function (match) {- match.elements.forEach(function (element) {- element.setAttribute('data-share-reach-match', '');- element.setAttribute('data-share-reach-depth', String(match.depth));- if (match.id === snapshot.origin.id) element.setAttribute('data-share-reach-origin', '');- });- });- edgeMatches.forEach(function (match) {- match.elements.forEach(function (element) {- element.setAttribute('data-share-reach-match', '');- element.setAttribute('data-share-reach-depth', String(match.depth));- });+ // Route interaction rewrites CSS declarations through CSSOM. Normalize+ // authored motion delays on the clone so exported bytes do not depend+ // on whether the reader traced a route before downloading.+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (el) {+ var step = el.style.getPropertyValue('--step');+ if (step) el.setAttribute('style', el.style.cssText);});-- return clone.getAttribute('data-share-reach') === snapshot.direction &&- !clone.hasAttribute('data-animation') &&- !clone.hasAttribute('data-reach-active') &&- clone.querySelectorAll('[data-animate], [data-reach-match], [data-reach-origin], [data-reach-depth]').length === 0 &&- clone.querySelectorAll('[data-share-reach-origin]').length === 1 &&- clone.querySelectorAll('[data-share-reach-match]').length ===- nodeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0) +- edgeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0);- }-- function serializeSvg(scale, opts) {- // scale: integer multiplier for intrinsic SVG pixel dimensions used by- // the raster path. Defaults to 1 (natural size) for SVG download.- scale = scale || 1;- opts = opts || {};- var autoTheme = opts.autoTheme === true;- var svg = document.querySelector('.diagram-container svg');- var clone = svg.cloneNode(true);-// View transforms and neighborhood focus are HTML exploration state,// never part of a downloaded full-diagram artifact.clone.style.removeProperty('transform');@@ -6117,25 +6001,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.clone.removeAttribute('data-route-journey');clone.removeAttribute('data-share-route');clone.removeAttribute('data-share-reach');- clone.removeAttribute('data-story-active');- clone.removeAttribute('data-story-playing');- clone.removeAttribute('data-story-beat');- clone.removeAttribute('data-story-next');- clone.removeAttribute('data-story-follow');- clone.removeAttribute('data-chapter-handoff');- clone.removeAttribute('data-chapter-anchor');- clone.removeAttribute('data-chapter-preview');- Array.prototype.forEach.call(clone.querySelectorAll('[data-chapter-handoff-overlay]'), function (el) {- el.remove();- });- Array.prototype.forEach.call(clone.querySelectorAll('[data-chapter-role]'), function (el) {- el.removeAttribute('data-chapter-role');- });- Array.prototype.forEach.call(clone.querySelectorAll('[data-chapter-preview-role]'), function (el) {- el.removeAttribute('data-chapter-preview-role');- });- Array.prototype.forEach.call(clone.querySelectorAll('[data-story-overlay], [data-story-carrier-overlay]'), function (el) {- el.remove();+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reader-legend-corner]'), function (el) {+ el.removeAttribute('data-reader-legend-corner');+ el.style.removeProperty('--archify-reader-legend-transform');});Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {el.remove();@@ -6182,17 +6050,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.});Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {var originalLabel = el.getAttribute('data-source-evidence-original-label');- if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');+ if (originalLabel == null) el.removeAttribute('aria-label');else el.setAttribute('aria-label', originalLabel);el.removeAttribute('data-source-evidence-count');el.removeAttribute('data-source-evidence-original-label');});- Array.prototype.forEach.call(clone.querySelectorAll('[data-story-step], [data-story-beat-state], [data-story-beat-step]'), function (el) {- el.removeAttribute('data-story-step');- el.removeAttribute('data-story-beat-state');- el.removeAttribute('data-story-beat-step');- el.style.removeProperty('--story-step');- });Array.prototype.forEach.call(clone.querySelectorAll('[data-focus-match], [data-focus-selected]'), function (el) {el.removeAttribute('data-focus-match');el.removeAttribute('data-focus-selected');@@ -6251,7 +6113,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {el.setAttribute('aria-pressed', 'false');});- var canonicalStateClean = !clone.hasAttribute('data-view-scale') &&+ // A downloaded tree is always the complete hierarchy: collapsing is a+ // reading aid, never a silent change to what the artifact contains.+ clone.removeAttribute('data-tree-any-collapsed');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-hidden], [data-tree-collapsed]'), function (el) {+ el.removeAttribute('data-tree-hidden');+ el.removeAttribute('data-tree-collapsed');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-tree-toggle]'), function (el) {+ el.setAttribute('aria-expanded', 'true');+ el.setAttribute('aria-label', el.getAttribute('data-tree-label-collapse') || '');+ });+ return !clone.hasAttribute('data-view-scale') &&!clone.hasAttribute('data-focus-active') &&!clone.hasAttribute('data-reach-active') &&!clone.hasAttribute('data-lens-active') &&@@ -6266,87 +6139,293 @@ OTHER DEALINGS IN THE FONT SOFTWARE.!clone.hasAttribute('data-route-journey') &&!clone.hasAttribute('data-share-route') &&!clone.hasAttribute('data-share-reach') &&- !clone.hasAttribute('data-story-active') &&- !clone.hasAttribute('data-story-playing') &&- !clone.hasAttribute('data-story-beat') &&- !clone.hasAttribute('data-story-next') &&- !clone.hasAttribute('data-story-follow') &&- !clone.hasAttribute('data-chapter-handoff') &&- !clone.hasAttribute('data-chapter-anchor') &&- !clone.hasAttribute('data-chapter-preview') &&+ !clone.hasAttribute('data-tree-any-collapsed') &&!clone.style.getPropertyValue('transform') &&!clone.style.getPropertyValue('clip-path') &&- clone.querySelectorAll('[data-story-overlay], [data-story-carrier-overlay], [data-story-carrier-token], [data-story-step], [data-story-beat-state], [data-story-beat-step], [data-chapter-handoff-overlay], [data-chapter-role], [data-chapter-preview-role], [data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;+ clone.querySelectorAll('[data-ambient-flow-overlay], [data-reader-legend-corner], [data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor], [data-tree-hidden], [data-tree-collapsed]').length === 0;+ }- var vb = svg.viewBox.baseVal;- var finiteSvgDimensions = Number.isFinite(vb.x) && Number.isFinite(vb.y) &&- Number.isFinite(vb.width) && Number.isFinite(vb.height) && vb.width > 0 && vb.height > 0;- var routeStateClean = opts.routeSnapshot- ? canonicalStateClean && finiteSvgDimensions && applyRouteSnapshot(clone, opts.routeSnapshot)- : null;- var reachStateClean = opts.reachSnapshot- ? canonicalStateClean && finiteSvgDimensions && !opts.routeSnapshot && applyReachSnapshot(clone, opts.reachSnapshot)- : null;- // Scale width/height so the browser rasterizes the vectors at target- // resolution directly. viewBox stays unchanged so coordinates don't- // shift. This is the key to sharp rasters — do NOT scale later via- // canvas upscaling.- clone.setAttribute('width', vb.width * scale);- clone.setAttribute('height', vb.height * scale);- clone.setAttribute('xmlns', 'http://www.w3.org/2000/svg');- // Only the SVG-relevant rules: semantic classes, markers, and the- // theme variable blocks. Toolbar/cards/print CSS can never apply- // inside a standalone SVG and would only bloat the export.- var hostStyle = (function () {- var out = [];- Array.prototype.forEach.call(document.styleSheets, function (sheet) {- var rules;- try { rules = sheet.cssRules; } catch (_) { return; } // cross-origin- if (!rules) return;- Array.prototype.forEach.call(rules, function (rule) {- if (rule.type === 7 && /^archify-/.test(rule.name || '')) {- out.push(rule.cssText);- return;- }- if (rule.type !== 1) return; // plain style rules only- var sel = rule.selectorText || '';- if (/(^|,)\s*(svg|:root|\[data-theme|\[data-preset|\.c-|\.t-|\.a-|\.m-)/.test(sel)) {- out.push(rule.cssText);- }- });- });- return out.join('\n');- })();+ /**+ * Serialize the main SVG into a standalone document.+ *+ * Two modes:+ * - Default (opts.autoTheme=false) — locks the serialized SVG to the+ * viewer's current theme. Used by the raster pipeline+ * (PNG/JPEG/WebP/clipboard) because canvas rasterization needs+ * deterministic colors; a raster cannot react to+ * prefers-color-scheme after encoding.+ * - theme=auto — emits BOTH dark and light variable sets plus a+ * `@media (prefers-color-scheme)` rule so the resulting SVG+ * self-themes when embedded in GitHub READMEs or other hosts that+ * expose a color scheme. Used for the default "Download SVG".+ * - theme=light|dark — locks the standalone SVG to the requested+ * theme, independently of its source Viewer and host OS themes.+ */+ function applyRouteSnapshot(clone, snapshot) {+ if (!snapshot || !Array.isArray(snapshot.nodeIds) || !Array.isArray(snapshot.edges) ||+ snapshot.nodeIds.length < 2 || snapshot.edges.length !== snapshot.nodeIds.length - 1 ||+ snapshot.hops !== snapshot.edges.length ||+ !snapshot.source || !snapshot.target ||+ snapshot.source.id !== snapshot.nodeIds[0] ||+ snapshot.target.id !== snapshot.nodeIds[snapshot.nodeIds.length - 1]) return false;- // Derive the variable list from the stylesheet so newly added theme- // variables can never be missed by the export pipeline again- // (--lane-fill/--lane-stroke once were).- var varNames = (function () {- var seen = {};- var names = [];- (hostStyle.match(/--[a-zA-Z0-9-]+(?=\s*:)/g) || []).forEach(function (n) {- if (!seen[n]) { seen[n] = true; names.push(n); }+ clone.removeAttribute('data-animation');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {+ element.removeAttribute('data-animate');+ element.style.removeProperty('--step');+ });++ var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));+ var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));+ var nodeIds = Object.create(null);+ var edgeKeys = Object.create(null);+ var nodeMatches = [];+ var edgeMatches = [];++ for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {+ var nodeId = snapshot.nodeIds[nodeIndex];+ if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId]) return false;+ var matchedNodes = cloneNodes.filter(function (candidate) {+ return candidate.getAttribute('data-node-id') === nodeId;});- return names;- })();+ if (matchedNodes.length !== 1) return false;+ nodeIds[nodeId] = true;+ nodeMatches.push(matchedNodes);+ }- // Resolve the full variable set for a given data-theme via an- // off-DOM probe, independent of what the viewer is currently set to.- function resolveVars(themeAttr) {- var probe = document.createElement('div');- probe.setAttribute('data-theme', themeAttr);- probe.setAttribute('data-preset', document.documentElement.getAttribute('data-preset') || 'classic');- probe.style.cssText = 'position:absolute;width:0;height:0;visibility:hidden;';- document.body.appendChild(probe);- try {- var c = getComputedStyle(probe);- return varNames.map(function (n) {- return n + ': ' + c.getPropertyValue(n).trim() + ';';- }).join(' ');- } finally {- document.body.removeChild(probe);- }+ for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {+ var edge = snapshot.edges[edgeIndex];+ var fromId = snapshot.nodeIds[edgeIndex];+ var toId = snapshot.nodeIds[edgeIndex + 1];+ if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||+ edge.from !== fromId || edge.to !== toId) return false;+ var matchedEdges = cloneEdges.filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edge.key;+ });+ var drawableMatches = matchedEdges.filter(hasDrawableGeometry);+ if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {+ return candidate.getAttribute('data-edge-from') === edge.from &&+ candidate.getAttribute('data-edge-to') === edge.to &&+ (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');+ })) return false;+ edgeKeys[edge.key] = true;+ edgeMatches.push(matchedEdges);+ }++ clone.setAttribute('data-share-route', '');+ nodeMatches.forEach(function (matches, step) {+ matches.forEach(function (element) {+ element.setAttribute('data-share-route-match', '');+ element.setAttribute('data-share-route-step', String(step));+ if (step === 0) element.setAttribute('data-share-route-start', '');+ else if (step === snapshot.nodeIds.length - 1) element.setAttribute('data-share-route-end', '');+ else element.setAttribute('data-share-route-middle', '');+ });+ });+ edgeMatches.forEach(function (matches, step) {+ matches.forEach(function (element) {+ element.setAttribute('data-share-route-match', '');+ element.setAttribute('data-share-route-step', String(step));+ });+ });++ return clone.hasAttribute('data-share-route') &&+ !clone.hasAttribute('data-animation') &&+ !clone.hasAttribute('data-route-active') &&+ !clone.hasAttribute('data-route-journey') &&+ clone.querySelectorAll('[data-animate], [data-route-match], [data-route-step], [data-route-start], [data-route-end], [data-route-journey-state], [data-route-journey-current], [data-route-journey-overlay]').length === 0 &&+ clone.querySelectorAll('[data-share-route-match]').length ===+ nodeMatches.reduce(function (count, matches) { return count + matches.length; }, 0) ++ edgeMatches.reduce(function (count, matches) { return count + matches.length; }, 0);+ }++ function applyReachSnapshot(clone, snapshot) {+ if (!snapshot || (snapshot.direction !== 'upstream' && snapshot.direction !== 'downstream') ||+ !snapshot.origin || typeof snapshot.origin.id !== 'string' || !snapshot.origin.id ||+ typeof snapshot.origin.label !== 'string' || !snapshot.origin.label.trim() ||+ !Array.isArray(snapshot.nodeIds) || snapshot.nodeIds.length < 2 ||+ !Array.isArray(snapshot.edges) || !snapshot.edges.length ||+ !snapshot.depths || typeof snapshot.depths !== 'object' ||+ !Number.isInteger(snapshot.maxDepth) || snapshot.maxDepth < 1 ||+ snapshot.nodeIds[0] !== snapshot.origin.id) return false;++ clone.removeAttribute('data-animation');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {+ element.removeAttribute('data-animate');+ element.style.removeProperty('--step');+ });++ var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));+ var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));+ var nodeIds = Object.create(null);+ var edgeKeys = Object.create(null);+ var nodeMatches = [];+ var edgeMatches = [];+ var measuredMaxDepth = 0;++ for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {+ var nodeId = snapshot.nodeIds[nodeIndex];+ var depth = snapshot.depths[nodeId];+ if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId] ||+ !Number.isInteger(depth) || depth < 0 || depth > snapshot.maxDepth ||+ (nodeId === snapshot.origin.id ? depth !== 0 : depth < 1)) return false;+ var matchedNodes = cloneNodes.filter(function (candidate) {+ return candidate.getAttribute('data-node-id') === nodeId;+ });+ if (matchedNodes.length !== 1) return false;+ nodeIds[nodeId] = true;+ measuredMaxDepth = Math.max(measuredMaxDepth, depth);+ nodeMatches.push({ elements: matchedNodes, id: nodeId, depth: depth });+ }+ if (measuredMaxDepth !== snapshot.maxDepth) return false;++ for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {+ var edge = snapshot.edges[edgeIndex];+ if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||+ !nodeIds[edge.from] || !nodeIds[edge.to] ||+ !Number.isInteger(edge.depth) || edge.depth < 1 || edge.depth > snapshot.maxDepth ||+ edge.depth !== Math.max(snapshot.depths[edge.from], snapshot.depths[edge.to])) return false;+ var matchedEdges = cloneEdges.filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edge.key;+ });+ var drawableMatches = matchedEdges.filter(hasDrawableGeometry);+ if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {+ return candidate.getAttribute('data-edge-from') === edge.from &&+ candidate.getAttribute('data-edge-to') === edge.to &&+ (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');+ })) return false;+ edgeKeys[edge.key] = true;+ edgeMatches.push({ elements: matchedEdges, depth: edge.depth });+ }++ clone.setAttribute('data-share-reach', snapshot.direction);+ nodeMatches.forEach(function (match) {+ match.elements.forEach(function (element) {+ element.setAttribute('data-share-reach-match', '');+ element.setAttribute('data-share-reach-depth', String(match.depth));+ if (match.id === snapshot.origin.id) element.setAttribute('data-share-reach-origin', '');+ });+ });+ edgeMatches.forEach(function (match) {+ match.elements.forEach(function (element) {+ element.setAttribute('data-share-reach-match', '');+ element.setAttribute('data-share-reach-depth', String(match.depth));+ });+ });++ return clone.getAttribute('data-share-reach') === snapshot.direction &&+ !clone.hasAttribute('data-animation') &&+ !clone.hasAttribute('data-reach-active') &&+ clone.querySelectorAll('[data-animate], [data-reach-match], [data-reach-origin], [data-reach-depth]').length === 0 &&+ clone.querySelectorAll('[data-share-reach-origin]').length === 1 &&+ clone.querySelectorAll('[data-share-reach-match]').length ===+ nodeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0) ++ edgeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0);+ }++ function serializeSvg(scale, opts) {+ // scale: multiplier (integer unless the figure is oversized) for intrinsic SVG pixel dimensions used by+ // the raster path. Defaults to 1 (natural size) for SVG download.+ scale = scale || 1;+ opts = opts || {};+ var requestedTheme = opts.theme || (opts.autoTheme === true ? 'auto' : null);+ if (requestedTheme && requestedTheme !== 'auto' && requestedTheme !== 'light' && requestedTheme !== 'dark') {+ throw new Error('Unsupported SVG theme: ' + requestedTheme);+ }+ var autoTheme = requestedTheme === 'auto';+ var svg = document.querySelector('.diagram-container svg');+ var clone = svg.cloneNode(true);++ var canonicalStateClean = cleanExportClone(clone);++ var vb = svg.viewBox.baseVal;+ var finiteSvgDimensions = Number.isFinite(vb.x) && Number.isFinite(vb.y) &&+ Number.isFinite(vb.width) && Number.isFinite(vb.height) && vb.width > 0 && vb.height > 0;+ var routeStateClean = opts.routeSnapshot+ ? canonicalStateClean && finiteSvgDimensions && applyRouteSnapshot(clone, opts.routeSnapshot)+ : null;+ var reachStateClean = opts.reachSnapshot+ ? canonicalStateClean && finiteSvgDimensions && !opts.routeSnapshot && applyReachSnapshot(clone, opts.reachSnapshot)+ : null;+ // Scale width/height so the browser rasterizes the vectors at target+ // resolution directly. viewBox stays unchanged so coordinates don't+ // shift. This is the key to sharp rasters — do NOT scale later via+ // canvas upscaling.+ clone.setAttribute('width', vb.width * scale);+ clone.setAttribute('height', vb.height * scale);+ // Keep copied Viewer layout rules from overriding the export's size.+ clone.style.width = vb.width * scale + 'px';+ clone.style.height = vb.height * scale + 'px';+ clone.style.minWidth = '0';+ clone.setAttribute('xmlns', 'http://www.w3.org/2000/svg');++ // Only the SVG-relevant rules: semantic classes, markers, and the+ // theme variable blocks. Toolbar/cards/print CSS can never apply+ // inside a standalone SVG and would only bloat the export.+ var hostStyle = (function () {+ var out = [];+ Array.prototype.forEach.call(document.styleSheets, function (sheet) {+ var rules;+ try { rules = sheet.cssRules; } catch (_) { return; } // cross-origin+ if (!rules) return;+ Array.prototype.forEach.call(rules, function (rule) {+ if (rule.type === 7 && /^archify-/.test(rule.name || '')) {+ out.push(rule.cssText);+ return;+ }+ if (rule.type !== 1) return; // plain style rules only+ var sel = rule.selectorText || '';+ if (/(^|,)\s*(svg|:root|\[data-theme|\[data-preset|\.c-|\.t-|\.a-|\.m-)/.test(sel)) {+ out.push(rule.cssText);+ } else if (opts.figure && sel.indexOf('.diagram-container > svg') !== -1) {+ // Figures look like the Viewer canvas: keep its preset/theme paint+ // (quiet grid, lifted nodes) by rescoping matching rules to svg.+ var scoped = sel.split(',').map(function (part) {+ var at = part.indexOf('.diagram-container > svg');+ if (at === -1) return null;+ var prefix = part.slice(0, at).trim();+ try { if (prefix && !document.documentElement.matches(prefix)) return null; } catch (_) { return null; }+ return 'svg' + part.slice(at + '.diagram-container > svg'.length);+ }).filter(Boolean);+ if (scoped.length) out.push(scoped.join(', ') + ' { ' + rule.style.cssText + ' }');+ }+ });+ });+ return out.join('\n');+ })();++ // Derive the variable list from the stylesheet so newly added theme+ // variables can never be missed by the export pipeline again+ // (--lane-fill/--lane-stroke once were).+ var varNames = (function () {+ var seen = {};+ var names = [];+ (hostStyle.match(/--[a-zA-Z0-9-]+(?=\s*:)/g) || []).forEach(function (n) {+ if (!seen[n]) { seen[n] = true; names.push(n); }+ });+ return names;+ })();++ // Resolve the full variable set for a given data-theme via an+ // off-DOM probe, independent of what the viewer is currently set to.+ function resolveVars(themeAttr) {+ var probe = document.createElement('div');+ probe.setAttribute('data-theme', themeAttr);+ probe.setAttribute('data-preset', document.documentElement.getAttribute('data-preset') || 'classic');+ probe.style.cssText = 'position:absolute;width:0;height:0;visibility:hidden;';+ document.body.appendChild(probe);+ try {+ var c = getComputedStyle(probe);+ return {+ background: c.getPropertyValue('--bg').trim(),+ vars: varNames.map(function (n) {+ return n + ': ' + c.getPropertyValue(n).trim() + ';';+ }).join(' ')+ };+ } finally {+ document.body.removeChild(probe);+ }}// Keep the same font bytes, character coverage, and attribution in@@ -6355,25 +6434,29 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var style = document.createElementNS('http://www.w3.org/2000/svg', 'style');var bgRect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');- bgRect.setAttribute('width', '100%');- bgRect.setAttribute('height', '100%');+ // Cover the real viewBox: auto-cropped canvases start below y=0, and a+ // 100% rect anchored at the origin left an unpainted band at the bottom.+ bgRect.setAttribute('x', vb.x);+ bgRect.setAttribute('y', vb.y);+ bgRect.setAttribute('width', vb.width);+ bgRect.setAttribute('height', vb.height);if (autoTheme) {// Dual-theme SVG. Dark is the default (so hosts without// prefers-color-scheme still render), light swaps in via media// query, and svg[data-theme="..."] still lets downstream// consumers force a specific theme.- var darkVars = resolveVars('dark');- var lightVars = resolveVars('light');+ var darkTheme = resolveVars('dark');+ var lightTheme = resolveVars('light');style.textContent =fontCss + "\n" +"svg { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace; }\n" +hostStyle + "\n" +- ":root, svg { " + darkVars + " }\n" +- "@media (prefers-color-scheme: light) { :root, svg { " + lightVars + " } }\n" +- "svg[data-theme=\"light\"] { " + lightVars + " }\n" +- "svg[data-theme=\"dark\"] { " + darkVars + " }\n" ++ ":root, svg { " + darkTheme.vars + " }\n" ++ "@media (prefers-color-scheme: light) { :root, svg { " + lightTheme.vars + " } }\n" ++ "svg[data-theme=\"light\"] { " + lightTheme.vars + " }\n" ++ "svg[data-theme=\"dark\"] { " + darkTheme.vars + " }\n" +"rect.c-bg-rect { fill: var(--bg); }\n";// Don't lock the serialized SVG to the viewer's current theme.@@ -6382,11 +6465,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// swaps with the media query.bgRect.setAttribute('class', 'c-bg-rect');} else {- // Raster path: lock to the viewer's current theme.- var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var themeHost = document.querySelector('[data-theme="' + theme + '"]') || document.documentElement;- var computed = getComputedStyle(themeHost);- var vars = varNames.map(function (n) {+ // Raster exports keep the viewer's current theme. Explicit SVG+ // exports instead select their own stable light/dark source.+ var lockedTheme = requestedTheme || document.documentElement.getAttribute('data-theme') || 'dark';+ var resolvedTheme = requestedTheme && resolveVars(lockedTheme);+ var computed = getComputedStyle(document.documentElement);+ var vars = resolvedTheme ? resolvedTheme.vars : varNames.map(function (n) {return n + ': ' + computed.getPropertyValue(n).trim() + ';';}).join(' ');@@ -6400,30 +6484,37 @@ OTHER DEALINGS IN THE FONT SOFTWARE.hostStyle + "\n" +":root, svg { " + vars + " }\n";- bgRect.setAttribute('fill', computed.getPropertyValue('--bg').trim() || '#ffffff');+ if (requestedTheme) clone.setAttribute('data-theme', lockedTheme);+ bgRect.setAttribute('fill', (resolvedTheme ? resolvedTheme.background : computed.getPropertyValue('--bg').trim()) || '#ffffff');}if (opts.routeSnapshot) {- style.textContent += "\nsvg[data-share-route] [data-node-id], svg[data-share-route] [data-edge-from] { opacity: 0.18; }\n" +- "svg[data-share-route] [data-share-route-match] { opacity: 1; }\n" ++ style.textContent += "\nsvg[data-share-route] [data-node-id], svg[data-share-route] [data-edge-from], svg[data-share-route] [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.18; }\n" ++ "svg[data-share-route] [data-share-route-match], svg[data-share-route] [data-graph-role=\"automatic-crossover\"]:has(> [data-share-route-match]) > [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n" +"svg[data-share-route] [data-share-route-start] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 3; stroke-dasharray: 5 3; }\n" +"svg[data-share-route] [data-share-route-middle] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 2.2; }\n" +"svg[data-share-route] [data-share-route-end] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 3.4; stroke-dasharray: 1 0; }\n";}if (opts.reachSnapshot) {- style.textContent += "\nsvg[data-share-reach] [data-node-id], svg[data-share-reach] [data-edge-from] { opacity: 0.14; }\n" +- "svg[data-share-reach] [data-share-reach-match] { opacity: 1; }\n" ++ style.textContent += "\nsvg[data-share-reach] [data-node-id], svg[data-share-reach] [data-edge-from], svg[data-share-reach] [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.14; }\n" ++ "svg[data-share-reach] [data-share-reach-match], svg[data-share-reach] [data-graph-role=\"automatic-crossover\"]:has(> [data-share-reach-match]) > [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n" +"svg[data-share-reach] [data-edge-from][data-share-reach-match] { stroke-width: 1.55; }\n" +"svg[data-share-reach=\"upstream\"] [data-share-reach-origin] > :is(rect, circle, polygon):not(.c-mask) { stroke: var(--database-stroke); stroke-width: 3.4; stroke-dasharray: 5 3; }\n" +"svg[data-share-reach=\"downstream\"] [data-share-reach-origin] > :is(rect, circle, polygon):not(.c-mask) { stroke: var(--backend-stroke); stroke-width: 3.4; stroke-dasharray: 1 0; }\n" +"svg[data-preset=\"blueprint\"][data-share-reach] [data-share-reach-origin], svg[data-preset=\"blueprint\"][data-share-reach] [data-edge-from][data-share-reach-match] { filter: none; }\n";}+ // Figures draw the diagram on a painted canvas card, like the Viewer.+ if (opts.figure) bgRect.setAttribute('fill', 'none');+clone.insertBefore(style, clone.firstChild);clone.insertBefore(bgRect, style.nextSibling);+ // The XML declaration pins UTF-8: without it, consumers that guess an+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.return {- svgString: new XMLSerializer().serializeToString(clone),+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' ++ new XMLSerializer().serializeToString(clone),width: vb.width * scale,height: vb.height * scale,canonicalStateClean: canonicalStateClean,@@ -6447,14 +6538,114 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// silently produces a blank canvas above ~16 Mpx; Chrome / Firefox /// desktop Safari are far higher but start failing on memory-constrained// devices. We pick the largest integer scale in {4,3,2,1} whose target- // pixel count fits under this cap.+ // pixel count fits under this cap; a figure too large even at 1x is+ // downscaled to fit rather than allocating an oversized canvas.var MAX_CANVAS_PIXELS = 16 * 1024 * 1024;function pickSafeScale(vbW, vbH) {for (var s = RASTER_SCALE; s >= 1; s--) {if (vbW * s * vbH * s <= MAX_CANVAS_PIXELS) return s;}- return 1;+ return Math.sqrt(MAX_CANVAS_PIXELS / (vbW * vbH)) * 0.999;+ }++ // Raster exports reproduce the Viewer page without its controls: the+ // title row with its accent dot, then the diagram on the same rounded+ // canvas card (fill, hairline, shadow, dot field). CSS pixels.+ var FIGURE_MARGIN = 28;+ var FIGURE_CARD_PADDING = 24;+ var FIGURE_TITLE_SIZE = 24;+ var FIGURE_SUBTITLE_SIZE = 14;++ function figureLayout(vb) {+ var titleNode = document.querySelector('.header h1');+ var subtitleNode = document.querySelector('.header .subtitle');+ var container = document.querySelector('.diagram-container');+ var root = getComputedStyle(document.documentElement);+ var card = container ? getComputedStyle(container) : null;+ var title = titleNode ? titleNode.textContent.trim() : '';+ var subtitle = subtitleNode ? subtitleNode.textContent.trim() : '';+ var header = title ? 32 + (subtitle ? 24 : 0) + 18 : 0;+ var cardWidth = vb.width + FIGURE_CARD_PADDING * 2;+ var cardHeight = vb.height + FIGURE_CARD_PADDING * 2;+ var cardFill = card && card.backgroundColor && !/rgba\(0, 0, 0, 0\)|transparent/.test(card.backgroundColor)+ ? card.backgroundColor : (root.getPropertyValue('--panel').trim() || 'transparent');+ return {+ title: title,+ subtitle: subtitle,+ family: titleNode ? getComputedStyle(titleNode).fontFamily : 'sans-serif',+ text: root.getPropertyValue('--text').trim() || '#111827',+ muted: root.getPropertyValue('--text-muted').trim() || '#64748b',+ accent: root.getPropertyValue('--frontend-stroke').trim() || '#0891b2',+ bg: root.getPropertyValue('--bg').trim() || currentBg(),+ cardFill: cardFill,+ cardBorder: root.getPropertyValue('--panel-border').trim() || 'transparent',+ dot: card && /radial-gradient/.test(card.backgroundImage) ? (root.getPropertyValue('--canvas-dot').trim() || '') : '',+ light: (document.documentElement.getAttribute('data-theme') || 'dark') === 'light',+ header: header,+ cardWidth: cardWidth,+ cardHeight: cardHeight,+ width: cardWidth + FIGURE_MARGIN * 2,+ height: cardHeight + FIGURE_MARGIN * 2 + header+ };+ }++ function paintFigure(ctx, layout) {+ var m = FIGURE_MARGIN;+ ctx.fillStyle = layout.bg;+ ctx.fillRect(0, 0, layout.width, layout.height);+ if (layout.title) {+ var titleMid = m + 16;+ ctx.fillStyle = layout.accent;+ ctx.globalAlpha = 0.16;+ ctx.beginPath(); ctx.arc(m + 5, titleMid, 9, 0, Math.PI * 2); ctx.fill();+ ctx.globalAlpha = 1;+ ctx.beginPath(); ctx.arc(m + 5, titleMid, 5, 0, Math.PI * 2); ctx.fill();+ ctx.textBaseline = 'middle';+ ctx.fillStyle = layout.text;+ ctx.fillText(fitCanvasText(ctx, layout.title, layout.width - m * 2 - 22, FIGURE_TITLE_SIZE, 14, '650', layout.family), m + 22, titleMid + 1);+ if (layout.subtitle) {+ ctx.fillStyle = layout.muted;+ ctx.fillText(fitCanvasText(ctx, layout.subtitle, layout.width - m * 2, FIGURE_SUBTITLE_SIZE, 11, '400', layout.family), m, titleMid + 30);+ }+ ctx.textBaseline = 'alphabetic';+ }+ var x = m, y = m + layout.header, w = layout.cardWidth, h = layout.cardHeight, r = 16;+ function cardPath() {+ ctx.beginPath();+ if (typeof ctx.roundRect === 'function') ctx.roundRect(x, y, w, h, r);+ else ctx.rect(x, y, w, h);+ }+ ctx.save();+ if (layout.light) {+ ctx.shadowColor = 'rgba(15, 23, 42, 0.08)';+ ctx.shadowBlur = 28;+ ctx.shadowOffsetY = 10;+ }+ cardPath();+ ctx.fillStyle = layout.bg;+ ctx.fill();+ ctx.restore();+ cardPath();+ ctx.fillStyle = layout.cardFill;+ ctx.fill();+ if (layout.dot) {+ ctx.save();+ cardPath();+ ctx.clip();+ ctx.fillStyle = layout.dot;+ for (var dy = y + 1; dy < y + h; dy += 20) {+ for (var dx = x + 1; dx < x + w; dx += 20) {+ ctx.beginPath(); ctx.arc(dx, dy, 1, 0, Math.PI * 2); ctx.fill();+ }+ }+ ctx.restore();+ }+ cardPath();+ ctx.strokeStyle = layout.cardBorder;+ ctx.lineWidth = 1;+ ctx.stroke();+ return { x: x + FIGURE_CARD_PADDING, y: y + FIGURE_CARD_PADDING };}function rasterize(format) {@@ -6464,8 +6655,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// size — no upsampling blur.var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;- var scale = pickSafeScale(vb.width, vb.height);- var data = serializeSvg(scale);+ var layout = figureLayout(vb);+ var scale = pickSafeScale(layout.width, layout.height);+ var data = serializeSvg(scale, { figure: true });var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6474,15 +6666,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.img.onload = function () {try {var canvas = document.createElement('canvas');- canvas.width = data.width;- canvas.height = data.height;+ canvas.width = Math.round(layout.width * scale);+ canvas.height = Math.round(layout.height * scale);var ctx = canvas2dOrThrow(canvas, format);- if (format === 'jpeg') {- ctx.fillStyle = currentBg();- ctx.fillRect(0, 0, canvas.width, canvas.height);- }- // Draw at natural size — SVG was already rasterized at target res.- ctx.drawImage(img, 0, 0);+ // Paint in CSS pixels; the SVG image is already rendered at scale,+ // so drawing it at CSS size under this transform stays 1:1.+ ctx.setTransform(scale, 0, 0, scale, 0, 0);+ var origin = paintFigure(ctx, layout);+ ctx.drawImage(img, origin.x, origin.y, vb.width, vb.height);+ ctx.setTransform(1, 0, 0, 1, 0, 0);URL.revokeObjectURL(svgUrl);var mime = format === 'jpeg' ? 'image/jpeg' :format === 'webp' ? 'image/webp' : 'image/png';@@ -6504,10 +6696,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.});}- function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight) {+ function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight, fontFamily) {var value = String(text || '').trim();var size = startSize;- var family = "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ var family = fontFamily || "'JetBrains Mono', 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;@@ -6533,14 +6725,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function renderShareCard(options) {- options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));- var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });+ var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot, figure: true });if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));@@ -6565,7 +6756,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.: '--frontend-stroke';var accent = computed.getPropertyValue(accentProperty).trim() || '#22d3ee';var titleNode = document.querySelector('.header h1');- var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;var directionLabel = reachSnapshot? viewerText('viewer.export.direction.' + reachSnapshot.direction)@@ -6575,62 +6765,65 @@ OTHER DEALINGS IN THE FONT SOFTWARE.source: routeSnapshot.source.label,target: routeSnapshot.target.label})- : reachSnapshot- ? viewerText('viewer.export.card.reachSummary', {- direction: directionLabel,- origin: reachSnapshot.origin.label,- nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),- links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),- hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)- })- : subtitleNode ? subtitleNode.textContent : '';- var preset = document.documentElement.getAttribute('data-preset') || 'classic';- var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetKey = preset === 'signal-flow'- ? 'viewer.preset.flow.short'- : 'viewer.preset.' + preset;- var presetLabel = viewerText(presetKey).toUpperCase();- var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();+ : viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ });var cardLabel = routeSnapshot? viewerText('viewer.export.card.routeBadge', {hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()})- : reachSnapshot- ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })- : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });+ : viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() });++ var family = titleNode ? getComputedStyle(titleNode).fontFamily : 'sans-serif';+ var panelFill = bg;ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);+ // Header: a short accent rule and badge over the title and summary.ctx.fillStyle = accent;- ctx.fillRect(SHARE_CARD_PADDING, 27, 42, 3);-+ ctx.fillRect(SHARE_CARD_PADDING, 34, 28, 3);ctx.textBaseline = 'alphabetic';+ ctx.font = '600 12px ' + family;+ ctx.textAlign = 'right';+ ctx.fillStyle = muted;+ ctx.fillText(cardLabel, SHARE_CARD_WIDTH - SHARE_CARD_PADDING, 40);+ ctx.textAlign = 'left';+ctx.fillStyle = text;- var fittedTitle = fitCanvasText(ctx, title, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2 - 330, 29, 18, '700');- ctx.fillText(fittedTitle, SHARE_CARD_PADDING, 62);+ var fittedTitle = fitCanvasText(ctx, title, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2 - 260, 30, 18, '650', family);+ ctx.fillText(fittedTitle, SHARE_CARD_PADDING, 74);ctx.fillStyle = muted;- var fittedSubtitle = fitCanvasText(ctx, subtitle, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2 - 280, 13, 11, '500');- ctx.fillText(fittedSubtitle, SHARE_CARD_PADDING, 87);-- ctx.font = "600 12px 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";- ctx.textAlign = 'right';- ctx.fillStyle = accent;- ctx.fillText(cardLabel, SHARE_CARD_WIDTH - SHARE_CARD_PADDING, 50);- ctx.textAlign = 'left';+ var fittedSubtitle = fitCanvasText(ctx, subtitle, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2, 15, 12, '400', family);+ ctx.fillText(fittedSubtitle, SHARE_CARD_PADDING, 99);++ // The diagram sits on one soft rounded panel with an even inset.+ var panelX = SHARE_CARD_PADDING;+ var panelY = SHARE_CARD_HEADER;+ var panelWidth = SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2;+ var panelHeight = SHARE_CARD_HEIGHT - SHARE_CARD_HEADER - SHARE_CARD_PADDING;+ var inset = 18;+ ctx.beginPath();+ if (typeof ctx.roundRect === 'function') ctx.roundRect(panelX, panelY, panelWidth, panelHeight, 14);+ else ctx.rect(panelX, panelY, panelWidth, panelHeight);+ ctx.fillStyle = panelFill;+ ctx.fill();+ ctx.strokeStyle = border;+ ctx.lineWidth = 1;+ ctx.stroke();- var availableWidth = SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2;- var availableHeight = SHARE_CARD_HEIGHT - SHARE_CARD_HEADER - SHARE_CARD_PADDING;+ var availableWidth = panelWidth - inset * 2;+ var availableHeight = panelHeight - inset * 2;var fit = Math.min(availableWidth / data.width, availableHeight / data.height);var drawWidth = data.width * fit;var drawHeight = data.height * fit;- var drawX = SHARE_CARD_PADDING + (availableWidth - drawWidth) / 2;- var drawY = SHARE_CARD_HEADER + (availableHeight - drawHeight) / 2;-- ctx.strokeStyle = border;- ctx.lineWidth = 1;- ctx.strokeRect(drawX - 0.5, drawY - 0.5, drawWidth + 1, drawHeight + 1);+ var drawX = panelX + inset + (availableWidth - drawWidth) / 2;+ var drawY = panelY + inset + (availableHeight - drawHeight) / 2;ctx.drawImage(img, drawX, drawY, drawWidth, drawHeight);URL.revokeObjectURL(svgUrl);@@ -6653,7 +6846,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function rasterizeShareCard(options) {options = options || {};- if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}@@ -6726,13 +6918,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function samplesFor(element) {if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];+ var geometry = element;+ if (element.getAttribute('data-motion-path')) {+ geometry = element.cloneNode(false);+ geometry.setAttribute('d', element.getAttribute('data-motion-path'));+ }var length;- try { length = element.getTotalLength(); } catch (_) { return []; }+ try { length = geometry.getTotalLength(); } catch (_) { return []; }if (!Number.isFinite(length) || length <= 0) return [];var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));var points = [];for (var i = 0; i <= count; i++) {- points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));+ points.push(pointInRoot(element, geometry.getPointAtLength(length * i / count)));}return points;}@@ -6966,8 +7163,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// canvas.toBlob('image/webp') silently returns a PNG on browsers without// WebP encoding (older Safari), so detect explicitly.function supports(format) {- if (format === 'share-card') return true;- if (format === 'svg' || format === 'png') return true;+ if (format === 'svg' || format === 'svg-light' || format === 'svg-dark' || format === 'png') return true;if (format === 'webm') return canRecordMotion();var mime = format === 'jpeg' ? 'image/jpeg' : 'image/webp';try {@@ -6983,7 +7179,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.it.disabled = true;it.title = viewerText('viewer.export.unsupported');}- if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {+ if (it.dataset.action === 'copy' && !canCopyImage()) {it.disabled = true;it.title = viewerText('viewer.export.clipboardUnsupported');}@@ -7073,21 +7269,21 @@ OTHER DEALINGS IN THE FONT SOFTWARE.});function runExport(format) {+ if (['svg', 'svg-light', 'svg-dark', 'png', 'jpeg', 'webp', 'webm'].indexOf(format) === -1) {+ return Promise.reject(exportError('viewer.export.unsupported'));+ }var base = diagramFilename();+ var svgTheme = format === 'svg' ? 'auto' :+ format === 'svg-light' ? 'light' :+ format === 'svg-dark' ? 'dark' : null;close(true);clearExportReceipt();if (format === 'webm') toast(viewerText('viewer.export.recording'));- return (format === 'share-card'- ? rasterizeShareCard().then(function (blob) {- recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- download(blob, base + '-share-card.png');- toast(viewerText('viewer.export.downloadedShare'));- })- : format === 'svg'- ? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {+ return (svgTheme+ ? Promise.resolve(serializeSvg(1, { theme: svgTheme })).then(function (d) {var blob = new Blob([d.svgString], { type: 'image/svg+xml;charset=utf-8' });recordExportReceipt('svg', blob, d.canonicalStateClean);- download(blob, base + '.svg');+ download(blob, base + (svgTheme === 'auto' ? '' : '-' + svgTheme) + '.svg');}): format === 'webm'? recordWebm().then(function (blob) {@@ -7223,29 +7419,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}}- function runCopyShareCard() {- close(true);- clearExportReceipt();- if (!canCopyImage()) {- alert(viewerText('viewer.export.clipboardUnsupported.period'));- return;- }- var blobPromise = rasterizeShareCard();- return writePngToClipboard(blobPromise).then(function () {- return blobPromise.then(function (blob) {- recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast(viewerText('viewer.export.copiedShare'));- });- }).catch(function (err) {- console.error(err);- var technicalMessage = err && err.message ? err.message : 'share-card';- var message = exportMessage(err);- document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', technicalMessage);- alert(viewerText('viewer.export.copyFailed', { message: message }));- });- }-function runCopy() {close(true);clearExportReceipt();@@ -7271,9 +7444,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var reachShareCardBtn = e.target.closest('button[data-action="reach-share-card"]');if (reachShareCardBtn && !reachShareCardBtn.disabled && !reachShareCardBtn.hidden) { runReachShareCard(); return; }- var copyShareCardBtn = e.target.closest('button[data-action="copy-share-card"]');- if (copyShareCardBtn && !copyShareCardBtn.disabled) { runCopyShareCard(); return; }-var copyBtn = e.target.closest('button[data-action="copy"]');if (copyBtn && !copyBtn.disabled) { runCopy(); return; }@@ -7291,8 +7461,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.downloadRouteShareCard: runRouteShareCard,downloadReachShareCard: runReachShareCard,syncRouteShare: syncRouteShareItem,- syncReachShare: syncReachShareItem,- copyShareCard: runCopyShareCard+ syncReachShare: syncReachShareItem};// Auto-open on page load for demo/screenshot purposes: ?openExport=1@@ -7313,6 +7482,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.} catch (_) {}})();+/* ============================================================Motion Governor — one reader switch and one motion budget. Ambienttrace yields to the strongest semantic owner; Still also parks bounded@@ -7333,50 +7503,186 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var ownerToken = 0;var ownerCleanup = null;var lastEffectivePaused = null;- var ambientStarted = false;- var ambientPending = new Set();-- function detachAmbientBoundary() {- if (!svg) return;- svg.removeEventListener('animationend', onAmbientBoundary, true);- svg.removeEventListener('animationcancel', onAmbientBoundary, true);- }- function settleAmbient(reason) {- if (!capable) return false;- ambientStarted = true;- ambientPending.clear();- detachAmbientBoundary();- html.setAttribute('data-ambient-motion', 'settled');- html.setAttribute('data-ambient-settle-reason', reason || 'complete');- return true;- }- function onAmbientBoundary(event) {- if (!ambientPending.has(event.target)) return;- ambientPending.delete(event.target);- if (!ambientPending.size) settleAmbient('complete');- }- function startAmbient() {- if (ambientStarted || !capable) return false;- ambientStarted = true;- ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));- if (!ambientPending.size) return settleAmbient('empty');- svg.addEventListener('animationend', onAmbientBoundary, true);- svg.addEventListener('animationcancel', onAmbientBoundary, true);- html.setAttribute('data-ambient-motion', 'running');- html.removeAttribute('data-ambient-settle-reason');- return true;- }-- function readStored() {- try { return localStorage.getItem(STORAGE_KEY); } catch (_) { return null; }- }- function writeStored() {- try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);- } catch (_) {}- }- function reducedMotion() {+ var entryStarted = false;+ var entryPending = new Set();+ var flowCount = 0;++ // Runtime decoration carries geometry and tree visibility only. Keep each+ // flow beside its authored edge so transforms, clipping and crossover+ // paint order apply.+ // Each edge carries a small light show: a comet (halo, tail, head)+ // cascading downstream on one shared cycle, a lingering wake, and a+ // ripple where the comet lands. Phases follow the authored step order:+ // source-node rank where known, chronological message order in sequence+ // diagrams.+ function readSecondsVar(name, fallback) {+ var value = '';+ try { value = window.getComputedStyle(svg).getPropertyValue(name); } catch (_) {}+ var seconds = parseFloat(value);+ return Number.isFinite(seconds) && seconds > 0 ? seconds : fallback;+ }+ function nodeStep(from) {+ // Authored IDs follow the schema's conservative identifier pattern, so+ // direct selector interpolation stays safe here. The semantic wrapper+ // groups the animated shape; its authored step ranks the node.+ var node = from ? svg.querySelector('[data-node-id="' + from + '"]') : null;+ var shape = node ? node.querySelector('[data-animate="node"]') : null;+ return shape && shape.style ? shape.style.getPropertyValue('--step') : '';+ }+ function edgePhase(shape, fallbackStep) {+ // Sequence messages have no data-edge-from; their own authored step is+ // already chronological, which is the right phase there.+ var raw = nodeStep(shape.getAttribute('data-edge-from'));+ if (raw === '' && shape.style) raw = shape.style.getPropertyValue('--step');+ var step = parseFloat(raw);+ return Number.isFinite(step) ? step : fallbackStep;+ }+ function createFlows() {+ var stepDelay = readSecondsVar('--flow-step-delay', 0.2);+ var cycle = readSecondsVar('--flow-cycle', 6.4);+ Array.prototype.forEach.call(svg.querySelectorAll('path[data-animate="edge"]'), function (shape, index) {+ var d = shape.getAttribute('data-motion-path') || shape.getAttribute('d');+ if (!d) return;+ var anchor = shape;+ // Tree Branches initializes after these overlays and includes their+ // inherited ancestors in its existing collapse/expand lifecycle.+ function tagOverlay(flow) {+ flow.setAttribute('data-ambient-flow-overlay', 'true');+ flow.setAttribute('aria-hidden', 'true');+ if (shape.hasAttribute('data-tree-ancestors')) {+ flow.setAttribute('data-tree-ancestors', shape.getAttribute('data-tree-ancestors'));+ }+ }+ function addPath(cls) {+ var flow = document.createElementNS('http://www.w3.org/2000/svg', 'path');+ flow.setAttribute('d', d);+ ['transform', 'mask', 'clip-path', 'vector-effect'].forEach(function (name) {+ if (shape.hasAttribute(name)) flow.setAttribute(name, shape.getAttribute(name));+ });+ flow.setAttribute('class', 'ambient-edge-flow ambient-flow-' + cls);+ tagOverlay(flow);+ shape.parentNode.insertBefore(flow, anchor.nextSibling);+ anchor = flow;+ return flow;+ }+ var wake = addPath('wake');+ var len = 0;+ try { len = wake.getTotalLength(); } catch (_) {}+ if (!(len > 0)) {+ wake.remove();+ return;+ }+ var glow = addPath('glow');+ var halo = addPath('halo');+ var tail = addPath('tail');+ var head = addPath('head'); var end = null;+ try { end = head.getPointAtLength(len); } catch (_) {}+ // Dashed authored lines keep their dash language through the show:+ // the wake brightens only the authored segments and never fills the+ // gaps back into a solid line.+ var authoredDash = '';+ try { authoredDash = window.getComputedStyle(shape).strokeDasharray; } catch (_) {}+ if (authoredDash && authoredDash !== 'none') {+ wake.style.setProperty('--flow-dasharray', authoredDash);+ }+ // Absolute caps keep the comet a slim streak on long edges instead+ // of growing into a bright slab; the tail disintegrates into a+ // sparkle of fragments behind the head, and --flow-shift trails+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;+ var trail = len >= 120+ ? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }+ : (len >= 60+ ? { pattern: '3 3 7 ' + (len - 13).toFixed(1), length: 13 }+ : { pattern: '5 ' + Math.max(4, len - 5).toFixed(1), length: 5 });+ var phase = edgePhase(shape, index) * stepDelay;+ var configs = [+ { flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },+ { flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },+ { flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },+ { flow: head, dash: headLen, shift: 0, delay: phase },+ ];+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });+ configs.forEach(function (cfg) {+ cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');+ cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');+ cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');+ cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));+ if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);+ });+ // The sonar pair lands where the comet does; keep it out of the+ // edge's mask so it can bloom over the node boundary.+ if (end) {+ ['ripple', 'ripple-echo'].forEach(function (kind) {+ var ripple = document.createElementNS('http://www.w3.org/2000/svg', 'circle');+ ripple.setAttribute('cx', end.x.toFixed(1));+ ripple.setAttribute('cy', end.y.toFixed(1));+ ripple.setAttribute('r', '2');+ if (shape.hasAttribute('transform')) ripple.setAttribute('transform', shape.getAttribute('transform'));+ ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);+ tagOverlay(ripple);+ ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));+ shape.parentNode.insertBefore(ripple, anchor.nextSibling);+ anchor = ripple;+ });+ }+ flowCount += 1;+ });+ }+ function settleEntry() {+ entryPending.clear();+ svg.removeEventListener('animationend', onEntryBoundary, true);+ svg.removeEventListener('animationcancel', onEntryBoundary, true);+ html.setAttribute('data-ambient-entry', 'settled');+ }+ function onEntryBoundary(event) {+ if (!entryPending.has(event.target)) return;+ // The entrance settles only when each node's pulse finishes; the+ // shorter fade-rise enter animation may end first without ending it.+ if (event.animationName && !/node-pulse/.test(event.animationName)) return;+ entryPending.delete(event.target);+ if (!entryPending.size) settleEntry();+ }+ function renderAmbient(suppressed) {+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');+ if (suppressed) {+ entryStarted = true;+ settleEntry();+ } else if (!entryStarted) {+ entryStarted = true;+ entryPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="node"]')));+ if (!entryPending.size) settleEntry();+ else {+ svg.addEventListener('animationend', onEntryBoundary, true);+ svg.addEventListener('animationcancel', onEntryBoundary, true);+ html.setAttribute('data-ambient-entry', 'running');+ }+ }+ }++ function readStored() {+ try { return localStorage.getItem(STORAGE_KEY); } catch (_) { return null; }+ }+ function writeStored() {+ try {+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');+ } catch (_) {}+ }+ function reducedMotion() {return !!(motionQuery && motionQuery.matches);}function hasSuspension() {@@ -7386,10 +7692,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return viewerText('viewer.owner.story');- if (value === 'chapter') return viewerText('viewer.owner.chapter');- if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');- if (value === 'handoff') return viewerText('viewer.owner.handoff');if (value === 'route') return viewerText('viewer.owner.route');if (value === 'lens') return viewerText('viewer.owner.lens');if (value === 'relationship') return viewerText('viewer.owner.relationship');@@ -7403,20 +7705,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var systemPaused = reducedMotion();var paused = effectivePaused();html.setAttribute('data-motion', paused ? 'still' : 'live');- if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {- settleAmbient('suppressed');- } else if (!ambientStarted) {- startAmbient();- }+ renderAmbient(paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden'));btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');- if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {- Archify.guidedViews.pause();- }- if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.settleHandoff) {- Archify.guidedViews.settleHandoff(systemPaused ? 'reduced-motion' : (hasSuspension() ? 'hidden' : 'still'));- }if (paused && lastEffectivePaused !== true && Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: systemPaused ? 'reduced-motion' : (hasSuspension() ? 'hidden' : 'still') });}@@ -7455,8 +7747,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function deriveOwner() {if (!svg) return '';- if (svg.hasAttribute('data-story-playing') || svg.hasAttribute('data-story-follow')) return 'story';- if (svg.hasAttribute('data-story-active')) return 'chapter';if (svg.hasAttribute('data-route-picking') || svg.hasAttribute('data-route-active')) return 'route';if (svg.hasAttribute('data-lens-active')) return 'lens';if (svg.hasAttribute('data-relationship-preview-active')) return 'relationship';@@ -7520,7 +7810,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.html.removeAttribute('data-motion');html.removeAttribute('data-motion-owner');html.removeAttribute('data-ambient-motion');- html.removeAttribute('data-ambient-settle-reason');+ html.removeAttribute('data-ambient-entry');return {capable: false,pause: function () { return false; },@@ -7536,21 +7826,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};}+ createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);}document.addEventListener('visibilitychange', syncVisibility);+ if (typeof MutationObserver !== 'undefined') {+ var contextObserver = new MutationObserver(render);+ contextObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-share-playback'] });+ }if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {var ownerObserver = new MutationObserver(function () { publishOwner(); });ownerObserver.observe(svg, {attributes: true,attributeFilter: [- 'data-story-playing', 'data-story-follow', 'data-story-active', 'data-route-picking', 'data-route-active',+ 'data-route-picking', 'data-route-active','data-lens-active', 'data-relationship-preview-active', 'data-intent-trace-active','data-focus-active', 'data-legend-preview-active']@@ -7585,69 +7880,172 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Archify.sourceEvidence = (function () {var element = document.getElementById('archify-source-evidence-data');var payload = null;- var svgNamespace = 'http://www.w3.org/2000/svg';if (element) {try {var parsed = JSON.parse(element.textContent || 'null');if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;} catch (_) {}}- function installBeacons() {- if (!payload) return 0;- var svg = document.querySelector('.diagram-container svg');- if (!svg) return 0;- var installed = 0;- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {- var id = node.getAttribute('data-node-id');- var sources = payload.nodes[id];- if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;- var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');- var box;- try { box = (shape || node).getBBox(); } catch (_) { return; }- if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;-- var count = sources.length;- var label = viewerCount('viewer.passport.beacon', count);- var beacon = document.createElementNS(svgNamespace, 'g');- beacon.classList.add('source-evidence-beacon');- beacon.setAttribute('data-source-evidence-beacon', '');- beacon.setAttribute('aria-hidden', 'true');- var brandOffset = node.hasAttribute('data-node-brand') ? 24 : 0;- beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 35 - brandOffset) + ' ' + (box.y + 5) + ')');- var title = document.createElementNS(svgNamespace, 'title');- title.textContent = label;- var plate = document.createElementNS(svgNamespace, 'rect');- plate.setAttribute('width', '30');- plate.setAttribute('height', '12');- plate.setAttribute('rx', '6');- var text = document.createElementNS(svgNamespace, 'text');- text.setAttribute('x', '15');- text.setAttribute('y', '8.25');- text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;- beacon.appendChild(title);- beacon.appendChild(plate);- beacon.appendChild(text);- node.appendChild(beacon);-- var originalLabel = node.getAttribute('aria-label') || '';- node.setAttribute('data-source-evidence-count', String(count));- node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));- installed += 1;- });- return installed;- }+ // Keep verified evidence discoverable to screen readers without adding+ // visual marks. Restore first so repeated initialization never appends+ // another count or retains one after evidence becomes unavailable.+ var svg = document.querySelector('.diagram-container svg');+ if (svg) Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ if (node.hasAttribute('data-source-evidence-count')) {+ var savedLabel = node.getAttribute('data-source-evidence-original-label');+ if (savedLabel == null) node.removeAttribute('aria-label');+ else node.setAttribute('aria-label', savedLabel);+ node.removeAttribute('data-source-evidence-count');+ node.removeAttribute('data-source-evidence-original-label');+ }+ var sources = payload && payload.nodes[node.getAttribute('data-node-id')];+ if (!Array.isArray(sources) || !sources.length) return;+ var originalLabel = node.getAttribute('aria-label');+ node.setAttribute('data-source-evidence-count', String(sources.length));+ if (originalLabel != null) node.setAttribute('data-source-evidence-original-label', originalLabel);+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') ++ viewerCount('viewer.passport.sourceCount', sources.length));+ });return {available: function () { return Boolean(payload); },repository: function () { return payload ? payload.repository : null; },node: function (id) {var sources = payload && payload.nodes ? payload.nodes[id] : null;return Array.isArray(sources) ? sources.slice() : [];- },- installBeacons: installBeacons+ }+ };+ })();++ /* ============================================================+ Tree Branches — expand/collapse for hierarchy diagrams. The renderer+ lays out the complete tree once and tags every node, link, and toggle+ with its ancestors; collapsing only hides descendants, so visible nodes+ never move and the reader keeps their place. Selecting a hidden node+ through Finder, Outline, or a shared link expands its ancestors. Export+ always writes the complete tree (see Export Cleanup).+ ============================================================ */+ Archify.treeBranches = (function () {+ var svg = document.querySelector('.diagram-container > svg[data-tree-ui]');+ if (!svg) return { active: false };+ var collapsed = Object.create(null);+ var toggles = Object.create(null);+ Array.prototype.forEach.call(svg.querySelectorAll('[data-tree-toggle]'), function (toggle) {+ toggles[toggle.getAttribute('data-tree-toggle')] = toggle;+ });+ var tagged = svg.querySelectorAll('[data-tree-ancestors]');+ var expandAll = svg.querySelector('[data-tree-expand-all]');++ function ancestors(el) {+ return (el.getAttribute('data-tree-ancestors') || '').split(' ').filter(Boolean);+ }++ function apply() {+ Array.prototype.forEach.call(tagged, function (el) {+ var hidden = ancestors(el).some(function (id) { return collapsed[id]; });+ if (hidden) el.setAttribute('data-tree-hidden', '');+ else el.removeAttribute('data-tree-hidden');+ });+ var any = false;+ Object.keys(toggles).forEach(function (id) {+ var toggle = toggles[id];+ var isCollapsed = Boolean(collapsed[id]);+ any = any || isCollapsed;+ toggle.setAttribute('aria-expanded', isCollapsed ? 'false' : 'true');+ toggle.setAttribute('aria-label', toggle.getAttribute(isCollapsed ? 'data-tree-label-expand' : 'data-tree-label-collapse') || '');+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (node) {+ if (isCollapsed) node.setAttribute('data-tree-collapsed', '');+ else node.removeAttribute('data-tree-collapsed');+ }+ });+ if (any) svg.setAttribute('data-tree-any-collapsed', '');+ else svg.removeAttribute('data-tree-any-collapsed');+ }++ function setCollapsed(id, value) {+ if (!toggles[id]) return false;+ if (value) collapsed[id] = true;+ else delete collapsed[id];+ apply();+ return true;+ }++ function toggle(id) { return setCollapsed(id, !collapsed[id]); }++ // Reveal a node by expanding every collapsed ancestor; nothing else moves.+ function reveal(id) {+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (!node) return false;+ var changed = false;+ ancestors(node).forEach(function (ancestor) {+ if (collapsed[ancestor]) { delete collapsed[ancestor]; changed = true; }+ });+ if (changed) apply();+ return changed;+ }++ function restoreAll() {+ collapsed = Object.create(null);+ apply();+ }++ function activate(event) {+ var target = event.target.closest('[data-tree-toggle], [data-tree-expand-all]');+ if (!target || !svg.contains(target)) return false;+ event.preventDefault();+ event.stopPropagation();+ if (target.hasAttribute('data-tree-expand-all')) {+ restoreAll();+ var root = svg.querySelector('[data-tree-toggle]:not([data-tree-ancestors])');+ if (root) root.focus();+ } else {+ toggle(target.getAttribute('data-tree-toggle'));+ target.focus();+ }+ return true;+ }++ // Capture phase so the canvas focus handler never treats a toggle press+ // as a background click that clears the current focus.+ svg.addEventListener('click', activate, true);+ svg.addEventListener('keydown', function (event) {+ if (event.key === 'Enter' || event.key === ' ') { activate(event); return; }+ var node = event.target.closest('[data-node-id]');+ if (!node || !svg.contains(node)) return;+ var id = node.getAttribute('data-node-id');+ // Arrow keys follow the tree convention: left collapses, right expands.+ if (event.key === 'ArrowLeft' && toggles[id] && !collapsed[id]) { event.preventDefault(); setCollapsed(id, true); }+ else if (event.key === 'ArrowRight' && collapsed[id]) { event.preventDefault(); setCollapsed(id, false); }+ }, true);++ // Focus reveals ancestors synchronously before positioning its lens.+ // The observer also covers paths that change pressed state directly.+ new MutationObserver(function (records) {+ records.forEach(function (record) {+ var el = record.target;+ if (el.hasAttribute && el.hasAttribute('data-tree-hidden') && el.getAttribute('aria-pressed') === 'true') {+ reveal(el.getAttribute('data-node-id'));+ }+ });+ }).observe(svg, { subtree: true, attributes: true, attributeFilter: ['aria-pressed'] });++ Object.keys(toggles).forEach(function (id) {+ if (toggles[id].hasAttribute('data-tree-initially-collapsed')) collapsed[id] = true;+ });+ apply();++ return {+ active: true,+ toggle: toggle,+ collapse: function (id) { return setCollapsed(id, true); },+ expand: function (id) { return setCollapsed(id, false); },+ reveal: reveal,+ restoreAll: restoreAll,+ collapsedIds: function () { return Object.keys(collapsed); },+ expandAllControl: expandAll};})();- Archify.sourceEvidence.installBeacons();+/* ============================================================Explore — stable-ID neighborhood focus + dependency-free pan/zoom.@@ -7679,6 +8077,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var copyBtn = document.getElementById('btn-focus-copy');var relationsBtn = document.getElementById('btn-focus-relations');var clearBtn = document.getElementById('btn-focus-clear');+ var moveBtn = document.getElementById('btn-focus-move');var activeIds = [];var hoveredRelationship = null;var focusedRelationship = null;@@ -7688,6 +8087,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var relationshipHitOverlay = null;var relationshipHitTargets = [];var directPreviewTimer = null;+ var lensDrag = null;+ var lensDragClickPointer = null;+ var manualLensPosition = null;var reachabilityMode = null;var activeReachability = null;var svgNamespace = 'http://www.w3.org/2000/svg';@@ -7826,9 +8228,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}var result = reachabilityFor(activeIds[0], direction);if (!result || result.nodeIds.length <= 1) return false;- if (Archify.guidedViews && typeof Archify.guidedViews.showAll === 'function') {- Archify.guidedViews.showAll({ clearFocus: false, updateUrl: false, resetView: false });- }clearRelationshipPreview({ clearPin: true });clearReachability({ updateUrl: false });reachabilityMode = direction;@@ -7882,7 +8281,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });}- requestLensPlacement();+ placeRelationshipLens();return true;}function reachabilitySnapshot() {@@ -7985,6 +8384,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function renderSourceEvidence(id) {evidenceLinks.textContent = '';repositoryLink.removeAttribute('href');+ repositoryLink.removeAttribute('aria-label');repositoryLink.textContent = '';var sources = Archify.sourceEvidence.node(id);var repository = Archify.sourceEvidence.repository();@@ -7992,24 +8392,28 @@ OTHER DEALINGS IN THE FONT SOFTWARE.evidence.hidden = true;return;}- var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');- repositoryLink.href = repository.url + '/tree/' + repository.revision;- repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));+ repositoryLink.textContent = repository.label + ' @ ' + repository.shortRevision;+ if (repository.href) {+ repositoryLink.href = repository.href;+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));+ }+ evidence.title = viewerText('viewer.passport.verificationScope');sources.forEach(function (source) {- var link = document.createElement('a');+ var link = document.createElement(source.href ? 'a' : 'div');link.className = 'semantic-passport-source';- link.href = source.href;- link.target = '_blank';- link.rel = 'noopener noreferrer';- link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));+ if (source.href) {+ link.href = source.href;+ link.target = '_blank';+ link.rel = 'noopener noreferrer';+ link.referrerPolicy = 'no-referrer';+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));+ }var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line- ? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : viewerText('viewer.passport.source.openLink');+ ? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + (source.href ? ' ↗' : '')+ : source.href ? viewerText('viewer.passport.source.openLink') : '';var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -8064,12 +8468,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function relationshipEdgeShapes(edge) {if (!edge) return [];if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function relationshipHitRecords() {var recordsByKey = {};- var recordsById = {};- var byId = {};+ var recordsById = Object.create(null);+ var byId = Object.create(null);nodes().forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });var records = [];edges().forEach(function (edge) {@@ -8168,6 +8572,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function relationshipPulseGeometry(shape) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', relationshipTokenPath(shape));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -8212,7 +8618,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function relationshipTokenPath(shape) {if (!shape) return '';var tagName = String(shape.tagName || '').toLowerCase();- if (tagName === 'path') return shape.getAttribute('d') || '';+ if (tagName === 'path') return shape.getAttribute('data-motion-path') || shape.getAttribute('d') || '';if (tagName === 'line') {return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') +' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');@@ -8357,7 +8763,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.target.removeAttribute('data-preview-active');});renderRelationshipCopyAction();- requestLensPlacement();+ placeRelationshipLens();}function previewRelationship(button, options) {options = options || {};@@ -8384,7 +8790,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');activeRelationshipPreview = button;renderRelationshipPulse(key);- requestLensPlacement();+ placeRelationshipLens();}function syncRelationshipPreview() {var next = pinnedRelationship || focusedRelationship || hoveredRelationship;@@ -8396,11 +8802,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.html.getAttribute('data-guide-open') === 'true' ||container.classList.contains('is-panning') ||(activeIds.length > 0 && !pinnedRelationshipKey) ||- svg.hasAttribute('data-story-active') ||svg.hasAttribute('data-route-picking') ||svg.hasAttribute('data-route-active') ||- svg.hasAttribute('data-lens-active') ||- svg.hasAttribute('data-chapter-preview');+ svg.hasAttribute('data-lens-active');}function scheduleDirectRelationshipPreview(target) {if (directPreviewTimer) window.clearTimeout(directPreviewTimer);@@ -8439,9 +8843,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}var record = relationshipRecordForKey(key);if (!record) return false;- if (Archify.guidedViews && typeof Archify.guidedViews.showAll === 'function') {- Archify.guidedViews.showAll({ clearFocus: false, updateUrl: false });- }set(record.from, { toggle: false, updateUrl: false });var row = Array.prototype.slice.call(relationshipList.querySelectorAll('[data-relationship-key]')).find(function (candidate) {return candidate.getAttribute('data-relationship-key') === key;@@ -8663,9 +9064,148 @@ OTHER DEALINGS IN THE FONT SOFTWARE.relationshipList.appendChild(section);});}+ function lensPlacementBounds() {+ var containerRect = container.getBoundingClientRect();+ if (containerRect.width <= 0 || containerRect.height <= 0 || chip.offsetWidth <= 0 || chip.offsetHeight <= 0) return null;+ var padding = window.innerWidth <= 720 ? 8 : 16;+ var visibleLeft = Math.max(padding, -containerRect.left + padding);+ var visibleRight = Math.min(+ container.clientWidth - padding,+ window.innerWidth - containerRect.left - padding+ );+ var visibleTop = Math.max(padding, -containerRect.top + padding);+ var visibleBottom = Math.min(+ container.clientHeight - padding,+ window.innerHeight - containerRect.top - padding+ );+ var minLeft = visibleLeft;+ var minTop = Math.min(visibleTop, Math.max(padding, visibleBottom - chip.offsetHeight));+ return {+ containerRect: containerRect,+ minLeft: minLeft,+ maxLeft: Math.max(minLeft, visibleRight - chip.offsetWidth),+ minTop: minTop,+ maxTop: Math.max(minTop, visibleBottom - chip.offsetHeight)+ };+ }+ function manualLensPlacementAvailable() {+ return window.innerWidth > 720 && (!finePointerQuery || finePointerQuery.matches);+ }+ function clampLensPosition(position, bounds) {+ if (!position || !bounds) return null;+ return {+ left: Math.max(bounds.minLeft, Math.min(bounds.maxLeft, position.left)),+ top: Math.max(bounds.minTop, Math.min(bounds.maxTop, position.top))+ };+ }+ function currentLensPosition() {+ var bounds = lensPlacementBounds();+ if (!bounds) return null;+ var rect = chip.getBoundingClientRect();+ return clampLensPosition({+ left: rect.left - bounds.containerRect.left,+ top: rect.top - bounds.containerRect.top+ }, bounds);+ }+ function applyManualLensPosition(position) {+ if (!manualLensPlacementAvailable()) return false;+ var bounds = lensPlacementBounds();+ var clamped = clampLensPosition(position, bounds);+ if (!clamped) return false;+ manualLensPosition = clamped;+ chip.setAttribute('data-manual-placement', 'true');+ chip.style.left = Math.round(clamped.left) + 'px';+ chip.style.top = Math.round(clamped.top) + 'px';+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ return true;+ }+ function resetLensPlacement(options) {+ options = options || {};+ manualLensPosition = null;+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ chip.style.removeProperty('top');+ if (options.reposition !== false && !chip.hidden) requestLensPlacement();+ }+ function beginLensDrag(event) {+ if (!manualLensPlacementAvailable() || event.button !== 0 || lensDrag) return;+ var start = currentLensPosition();+ if (!start) return;+ event.preventDefault();+ event.stopPropagation();+ lensDrag = {+ pointerId: event.pointerId,+ originX: event.clientX,+ originY: event.clientY,+ start: start,+ previousManual: manualLensPosition ? { left: manualLensPosition.left, top: manualLensPosition.top } : null,+ moved: false+ };+ chip.setAttribute('data-panel-dragging', 'true');+ try { moveBtn.setPointerCapture(event.pointerId); } catch (_) {}+ }+ function moveLensDrag(event) {+ if (!lensDrag || lensDrag.pointerId !== event.pointerId) return;+ var dx = event.clientX - lensDrag.originX;+ var dy = event.clientY - lensDrag.originY;+ if (!lensDrag.moved && Math.hypot(dx, dy) <= 3) return;+ lensDrag.moved = true;+ event.preventDefault();+ event.stopPropagation();+ applyManualLensPosition({ left: lensDrag.start.left + dx, top: lensDrag.start.top + dy });+ }+ function finishLensDrag(event, cancel) {+ if (!lensDrag || lensDrag.pointerId !== event.pointerId) return;+ event.preventDefault();+ event.stopPropagation();+ var activeDrag = lensDrag;+ lensDrag = null;+ if (activeDrag.moved) lensDragClickPointer = activeDrag.pointerId;+ chip.removeAttribute('data-panel-dragging');+ try { moveBtn.releasePointerCapture(event.pointerId); } catch (_) {}+ if (!cancel) return;+ manualLensPosition = activeDrag.previousManual+ ? { left: activeDrag.previousManual.left, top: activeDrag.previousManual.top }+ : null;+ if (manualLensPosition && manualLensPlacementAvailable()) {+ applyManualLensPosition(manualLensPosition);+ } else {+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ chip.style.removeProperty('top');+ if (!chip.hidden) requestLensPlacement();+ }+ }+ function moveLensWithKeyboard(event) {+ if (event.key === 'Home') {+ event.preventDefault();+ resetLensPlacement();+ return;+ }+ if (event.metaKey || event.ctrlKey || event.altKey || !manualLensPlacementAvailable()) return;+ var directions = {+ ArrowLeft: [-1, 0],+ ArrowRight: [1, 0],+ ArrowUp: [0, -1],+ ArrowDown: [0, 1]+ };+ var direction = directions[event.key];+ if (!direction) return;+ event.preventDefault();+ var current = manualLensPosition || currentLensPosition();+ if (!current) return;+ var distance = event.shiftKey ? 4 : 16;+ applyManualLensPosition({+ left: current.left + direction[0] * distance,+ top: current.top + direction[1] * distance+ });+ }var lensFrame = 0;function placeRelationshipLens() {- lensFrame = 0;+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }if (chip.hidden || activeIds.length !== 1) return;var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');if (!node) return;@@ -8677,8 +9217,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var visibleBottom = Math.min(containerRect.height - padding, window.innerHeight - containerRect.top - padding);var maxTop = Math.max(padding, visibleBottom - chip.offsetHeight);var minTop = Math.min(visibleTop, maxTop);- var nodeCenter = nodeRect.top - containerRect.top + nodeRect.height / 2;var mobile = window.innerWidth <= 720;+ if (!manualLensPlacementAvailable()) {+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ } else if (manualLensPosition) {+ applyManualLensPosition(manualLensPosition);+ return;+ }+ var nodeCenter = nodeRect.top - containerRect.top + nodeRect.height / 2;var previewingOnMobile = mobile && chip.getAttribute('data-relationship-previewing') === 'true';var compactOnMobile = mobile && chip.getAttribute('data-relations-expanded') !== 'true';var preferred;@@ -8749,6 +9296,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function clear(options) {options = options || {};+ if (lensDrag) {+ var dragPointerId = lensDrag.pointerId;+ lensDrag = null;+ chip.removeAttribute('data-panel-dragging');+ try { moveBtn.releasePointerCapture(dragPointerId); } catch (_) {}+ }var restoreNode = options.restoreFocus === true && activeIds.length === 1? svg.querySelector('[data-node-id="' + activeIds[0] + '"]'): null;@@ -8796,7 +9349,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');- chip.style.removeProperty('top');+ if (options.preserveLensPlacement !== true) resetLensPlacement({ reposition: false });if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });}@@ -8819,22 +9372,28 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Archify.routeProbe.clear({ updateUrl: false, restoreFocus: false });}var nodeList = nodes();- var byId = {};+ var byId = Object.create(null);nodeList.forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });var normalized = [];(ids || []).forEach(function (id) {if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);});if (!normalized.length) return false;+ // Hash restoration and internal selections use this path too. Reveal+ // tree ancestors before measuring the selected node for its lens.+ if (Archify.treeBranches && Archify.treeBranches.active) {+ normalized.forEach(function (id) { Archify.treeBranches.reveal(id); });+ }if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {clear();return true;}- clear({ updateUrl: false, preserveView: true });+ var preserveLensPlacement = activeIds.length === 1 && normalized.length === 1 && !chip.hidden;+ clear({ updateUrl: false, preserveView: true, preserveLensPlacement: preserveLensPlacement });activeIds = normalized;- var selected = {};- var related = {};+ var selected = Object.create(null);+ var related = Object.create(null);var seenEdges = {};var matchedEdges = 0;normalized.forEach(function (id) { selected[id] = true; related[id] = true; });@@ -8861,12 +9420,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });+ : viewerText('viewer.focus.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {renderRelationshipLens(normalized[0], byId);- requestLensPlacement();+ placeRelationshipLens();}if (options.updateUrl !== false) {var key = options.urlKey || 'focus';@@ -8940,6 +9499,17 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Archify.view.reveal([id], { includeNeighbors: true, reason: 'focus' });}});+ moveBtn.addEventListener('pointerdown', beginLensDrag);+ moveBtn.addEventListener('pointermove', moveLensDrag);+ moveBtn.addEventListener('pointerup', function (event) { finishLensDrag(event, false); });+ moveBtn.addEventListener('pointercancel', function (event) { finishLensDrag(event, true); });+ moveBtn.addEventListener('lostpointercapture', function (event) { finishLensDrag(event, true); });+ moveBtn.addEventListener('dblclick', function (event) {+ event.preventDefault();+ event.stopPropagation();+ resetLensPlacement();+ });+ moveBtn.addEventListener('keydown', moveLensWithKeyboard);clearBtn.addEventListener('click', function () { clear({ restoreFocus: true }); });copyBtn.addEventListener('click', copyFocusLink);upstreamBtn.addEventListener('click', function () { applyReachability('upstream'); });@@ -8952,15 +9522,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.relationsBtn.setAttribute('aria-label', viewerText(expanded? 'viewer.passport.relations.show': 'viewer.passport.relations.hide'));- requestLensPlacement();+ placeRelationshipLens();});relationshipList.addEventListener('click', function (event) {var button = event.target.closest('[data-relationship-target]');if (!button) return;var id = button.getAttribute('data-relationship-target');- if (Archify.guidedViews && typeof Archify.guidedViews.showAll === 'function') {- Archify.guidedViews.showAll({ clearFocus: false, updateUrl: false });- }set(id, { toggle: false });if (Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal([id], { includeNeighbors: true, reason: 'relationship' });@@ -9009,7 +9576,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.event.preventDefault();buttons[index].focus();});+ document.addEventListener('pointerdown', function () {+ lensDragClickPointer = null;+ }, true);document.addEventListener('click', function (event) {+ // Losing capture (for example when a resize hides the handle) can+ // retarget this drag's final click to the page. It is not dismissal.+ // A new pointerdown releases the guard; keyboard clicks remain live.+ if (lensDragClickPointer != null && event.detail > 0 &&+ (event.pointerId == null || event.pointerId === lensDragClickPointer)) {+ lensDragClickPointer = null;+ event.preventDefault();+ event.stopPropagation();+ return;+ }var target = event.target;if (chip.hidden || !target || typeof target.closest !== 'function' || chip.contains(target)) return;if (container.getAttribute('data-just-panned') === 'true') return;@@ -9019,6 +9599,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.window.addEventListener('scroll', requestLensPlacement, { passive: true });window.addEventListener('resize', requestLensPlacement);container.addEventListener('scroll', requestLensPlacement, { passive: true });+ // Reader and Chrome may finish resizing the stage after window resize.+ // The absolute Passport does not resize its container when reclamped.+ if (typeof ResizeObserver === 'function') {+ new ResizeObserver(function () {+ if (!chip.hidden) requestLensPlacement();+ }).observe(container);+ }document.addEventListener('visibilitychange', function () {if (document.hidden) removeRelationshipPulse();});@@ -9051,7 +9638,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.applyReachability(reach, { updateUrl: false, toggle: false, reveal: false });}}- else if (!params.get('view')) clear({ updateUrl: false });+ else clear({ updateUrl: false });} catch (_) {}}@@ -9068,7 +9655,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.reachabilitySnapshot: reachabilitySnapshot,inspectRelationship: inspectRelationship,inspectRelationshipById: inspectRelationshipById,- reposition: requestLensPlacement,+ reposition: placeRelationshipLens,relationship: function () {var record = pinnedRelationshipRecord();return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;@@ -9086,6 +9673,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Intent Trace — temporary one-hop topology before durable focus.Fine-pointer hover and keyboard focus share the same stable-ID preview;@@ -9123,14 +9711,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.html.getAttribute('data-guide-open') === 'true' ||container.classList.contains('is-panning') ||svg.hasAttribute('data-lens-active') ||- svg.hasAttribute('data-story-active') ||svg.hasAttribute('data-relationship-preview-active') ||!!(Archify.routeProbe && typeof Archify.routeProbe.active === 'function' && Archify.routeProbe.active()) ||!!(Archify.focus && typeof Archify.focus.active === 'function' && Archify.focus.active());}function edgeShapes(edge) {if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function removeOverlay() {Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {@@ -9153,6 +9740,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function traceGeometry(shape, direction) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -9185,7 +9774,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.clear({ announce: false });var nodeList = nodes();var edgeList = edges();- var byId = {};+ var byId = Object.create(null);nodeList.forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });var selected = byId[id];if (!selected) return false;@@ -9194,7 +9783,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.overlay.setAttribute('class', 'intent-trace-overlay');overlay.setAttribute('data-intent-trace-overlay', '');overlay.setAttribute('aria-hidden', 'true');- var related = {};+ var related = Object.create(null);var seen = {};var counts = { out: 0, in: 0, loop: 0 };related[id] = true;@@ -9216,1829 +9805,101 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var wrapper = document.createElementNS(namespace, 'g');if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));edgeShapes(edge).forEach(function (shape) {- wrapper.appendChild(traceGeometry(shape, direction));- });- if (wrapper.childNodes.length) overlay.appendChild(wrapper);- });-- nodeList.forEach(function (node) {- var nodeId = node.getAttribute('data-node-id');- if (related[nodeId]) node.setAttribute('data-intent-trace-match', '');- if (nodeId === id) node.setAttribute('data-intent-trace-selected', '');- });- if (overlay.childNodes.length) {- var firstEdge = edgeList[0];- var firstNode = svg.querySelector('[data-node-id]');- if (firstEdge && firstEdge.parentNode) firstEdge.parentNode.insertBefore(overlay, firstEdge);- else if (firstNode) svg.insertBefore(overlay, firstNode);- else svg.appendChild(overlay);- }- activeId = id;- svg.setAttribute('data-intent-trace-active', id);- if (options.announce === true) {- var total = counts.out + counts.in + counts.loop;- status.textContent = viewerText('viewer.intent.summary', {- label: nodeLabel(selected, id),- out: counts.out,- in: counts.in,- loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',- total: total- });- }- return true;- }- function schedule(node) {- if (enterTimer) window.clearTimeout(enterTimer);- enterTimer = window.setTimeout(function () {- enterTimer = null;- if (hoveredNode === node) show(node.getAttribute('data-node-id'), { announce: false });- }, reducedMotion() ? 0 : 90);- }- function sync() {- var candidate = focusedNode || hoveredNode;- if (!candidate) {- clear();- return;- }- show(candidate.getAttribute('data-node-id'), { announce: candidate === focusedNode });- }-- svg.addEventListener('pointerover', function (event) {- var node = event.target.closest('[data-node-id]');- if (!node || !finePointer() || event.pointerType === 'touch') return;- if (event.relatedTarget && node.contains(event.relatedTarget)) return;- hoveredNode = node;- schedule(node);- });- svg.addEventListener('pointerout', function (event) {- var node = event.target.closest('[data-node-id]');- if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;- if (hoveredNode === node) hoveredNode = null;- sync();- });- svg.addEventListener('focusin', function (event) {- var node = event.target.closest('[data-node-id]');- if (!node) return;- focusedNode = node;- show(node.getAttribute('data-node-id'), { announce: true });- });- svg.addEventListener('focusout', function (event) {- var node = event.target.closest('[data-node-id]');- if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;- if (focusedNode === node) focusedNode = null;- sync();- });- container.addEventListener('pointerdown', function (event) {- if (!event.target.closest('[data-node-id]')) clear({ announce: false });- });- window.addEventListener('blur', function () { clear({ announce: false }); });-- return {- show: show,- clear: clear,- active: function () { return activeId; }- };- })();-- Archify.guidedViews = (function () {- var data = document.getElementById('archify-guided-views-data');- var panel = document.getElementById('guided-views');- var prev = document.getElementById('guided-view-prev');- var next = document.getElementById('guided-view-next');- var all = document.getElementById('guided-view-all');- var play = document.getElementById('guided-view-play');- var playIcon = document.getElementById('guided-view-play-icon');- var playLabel = document.getElementById('guided-view-play-label');- var beatLink = document.getElementById('guided-view-beat-link');- var beatLinkLabel = document.getElementById('guided-view-beat-link-label');- var progressBar = document.getElementById('guided-view-progress-bar');- var count = document.getElementById('guided-view-count');- var handoffReceipt = document.getElementById('guided-view-handoff');- var label = document.getElementById('guided-view-label');- var note = document.getElementById('guided-view-note');- var trail = document.getElementById('guided-view-trail');- var storyCaption = document.getElementById('guided-story-caption');- var storyCaptionIndex = document.getElementById('guided-story-caption-index');- var storyCaptionRoute = document.getElementById('guided-story-caption-route');- var storyCaptionDetail = document.getElementById('guided-story-caption-detail');- var storyCaptionNext = document.getElementById('guided-story-caption-next');- var storyCaptionNextLabel = document.getElementById('guided-story-caption-next-label');- var chapterIndex = document.getElementById('guided-view-index');- var chapterList = document.getElementById('guided-view-chapters');- var shareCue = document.getElementById('share-chapter-cue');- var shareCueState = document.getElementById('share-chapter-state');- var shareCueCount = document.getElementById('share-chapter-count');- var shareCueLabel = document.getElementById('share-chapter-label');- var shareCueNote = document.getElementById('share-chapter-note');- var shareCueRoute = document.getElementById('share-chapter-route');- var shareCueProgress = document.getElementById('share-chapter-progress-bar');- var svg = document.querySelector('.diagram-container svg');- var views = [];- var activeIndex = -1;- var playing = false;- var storyBeatTimer = null;- var storyBeatIndex = -1;- var storyBeatStartedAt = 0;- var storyBeatElapsedMs = 0;- var storyBeatDwellMs = 0;- var storyPlaybackGeneration = 0;- var storyFollowGeneration = 0;- var storyPlaybackScope = 'story';- var storyPlaybackComplete = false;- var beatLinkFeedbackTimer = null;- var momentRestoreGeneration = 0;- var storySteps = [];- var storyPulseOwnerToken = 0;- var storyPulseGeneration = 0;- var autoplayPending = false;- var VIEW_INTERVAL_MS = 3200;- var STORY_FOLLOW_MIN_DWELL_MS = 1100;- var STORY_FOLLOW_DURATION_MS = 320;- var chapterButtons = [];- var handoffGeneration = 0;- var currentHandoff = null;- var previewGeneration = 0;- var pointerPreviewIntent = null;- var focusPreviewIntent = null;- var activePreviewIndex = -1;- var previewOwnerToken = 0;-- try { views = JSON.parse(data.textContent || '[]'); } catch (_) { views = []; }- if (!views.length) return { count: 0, active: function () { return null; } };- var canonicalNodeIds = {};- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {- canonicalNodeIds[node.getAttribute('data-node-id')] = true;- });- views.forEach(function (view) {- var seen = {};- view.focus = (view.focus || []).filter(function (id) {- if (!canonicalNodeIds[id] || seen[id]) return false;- seen[id] = true;- return true;- });- });- // Establish the compact cold state before exposing the panel so the- // full Director cannot flash during first paint. Hash restoration runs- // in the same task and replaces this state before paint when valid.- panel.setAttribute('data-active-view', 'all');- panel.hidden = false;- panel.setAttribute('data-view-interval-ms', String(VIEW_INTERVAL_MS));- panel.setAttribute('data-story-follow-min-dwell-ms', String(STORY_FOLLOW_MIN_DWELL_MS));- buildChapterIndex();-- function reducedMotion() {- return !!(window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches);- }-- function findNode(id) {- return Array.prototype.find.call(svg.querySelectorAll('[data-node-id]'), function (node) {- return node.getAttribute('data-node-id') === id;- }) || null;- }-- function chapterDelta(previous, destination) {- var previousFocus = previous ? previous.focus : [];- var destinationFocus = destination ? destination.focus : [];- var previousIds = {};- var destinationIds = {};- previousFocus.forEach(function (id) { previousIds[id] = true; });- destinationFocus.forEach(function (id) { destinationIds[id] = true; });- return {- stay: previousFocus.filter(function (id) { return destinationIds[id]; }),- enter: destinationFocus.filter(function (id) { return !previousIds[id]; }),- leave: previousFocus.filter(function (id) { return !destinationIds[id]; })- };- }-- function chapterAnchor(previous, destination, outgoingBeatIndex, delta) {- if (!previous || !destination) return '';- var stayIds = {};- delta.stay.forEach(function (id) { stayIds[id] = true; });- var activeBeat = outgoingBeatIndex >= 0 ? previous.focus[outgoingBeatIndex] : '';- if (activeBeat && stayIds[activeBeat]) return activeBeat;- for (var index = previous.focus.length - 1; index >= 0; index -= 1) {- if (stayIds[previous.focus[index]]) return previous.focus[index];- }- return '';- }-- function handoffMotionAllowed() {- if (document.hidden || reducedMotion()) return false;- if (document.documentElement.getAttribute('data-embed') === 'true') return false;- if (window.matchMedia && window.matchMedia('print').matches) return false;- return !(Archify.motionGovernor && Archify.motionGovernor.capable && Archify.motionGovernor.isPaused());- }-- function classifyHandoff(delta, anchor) {- var roles = {};- delta.stay.forEach(function (id) { roles[id] = 'stay'; });- delta.enter.forEach(function (id) { roles[id] = 'enter'; });- delta.leave.forEach(function (id) { roles[id] = 'leave'; });- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {- var id = node.getAttribute('data-node-id');- var role = roles[id] || '';- if (role) node.setAttribute('data-chapter-role', role);- else node.removeAttribute('data-chapter-role');- });- svg.setAttribute('data-chapter-handoff', anchor ? 'anchor' : 'no-anchor');- if (anchor) svg.setAttribute('data-chapter-anchor', anchor);- else svg.removeAttribute('data-chapter-anchor');- }-- function drawHandoffAnchor(id) {- var node = findNode(id);- if (!node) return null;- var box;- try { box = node.getBBox(); } catch (_) { return null; }- var overlay = document.createElementNS('http://www.w3.org/2000/svg', 'g');- var ring = document.createElementNS('http://www.w3.org/2000/svg', 'rect');- overlay.setAttribute('class', 'chapter-handoff-overlay');- overlay.setAttribute('data-chapter-handoff-overlay', '');- overlay.setAttribute('aria-hidden', 'true');- ring.setAttribute('class', 'chapter-handoff-anchor');- ring.setAttribute('x', String(box.x - 8));- ring.setAttribute('y', String(box.y - 8));- ring.setAttribute('width', String(box.width + 16));- ring.setAttribute('height', String(box.height + 16));- ring.setAttribute('rx', '10');- overlay.appendChild(ring);- svg.appendChild(overlay);- return overlay;- }-- function clearHandoffPresentation() {- svg.removeAttribute('data-chapter-handoff');- svg.removeAttribute('data-chapter-anchor');- Array.prototype.forEach.call(svg.querySelectorAll('[data-chapter-handoff-overlay]'), function (overlay) { overlay.remove(); });- Array.prototype.forEach.call(svg.querySelectorAll('[data-chapter-role]'), function (node) { node.removeAttribute('data-chapter-role'); });- if (handoffReceipt) {- handoffReceipt.hidden = true;- handoffReceipt.textContent = '';- }- }-- function completeHandoff(handoff, outcome) {- if (!handoff || currentHandoff !== handoff) return false;- if (handoff.holdTimer) clearTimeout(handoff.holdTimer);- handoff.holdTimer = null;- currentHandoff = null;- clearHandoffPresentation();- if (handoff.ownerToken && Archify.motionGovernor) Archify.motionGovernor.release(handoff.ownerToken);- handoff.resolve({ id: handoff.id, state: outcome || 'complete', anchor: handoff.anchor || null });- syncStoryControlsDisabled();- syncChapterPreview();- return true;- }-- function settleHandoff(reason) {- var handoff = currentHandoff;- if (!handoff) return false;- if (handoff.holdTimer) clearTimeout(handoff.holdTimer);- handoff.holdTimer = null;- if (handoff.camera && handoff.camera.cancel) handoff.camera.cancel(reason || 'settled', true);- else if (Archify.view && Archify.view.reveal) Archify.view.reveal(handoff.focus, { instant: true, reason: reason || 'settled' });- completeHandoff(handoff, reason || 'settled');- return true;- }-- function cancelHandoff(reason) {- var handoff = currentHandoff;- if (!handoff) return false;- if (handoff.holdTimer) clearTimeout(handoff.holdTimer);- handoff.holdTimer = null;- if (handoff.camera && handoff.camera.cancel) handoff.camera.cancel(reason || 'manual', false);- completeHandoff(handoff, reason || 'manual');- return true;- }-- function afterHandoff(callback) {- if (!currentHandoff) { callback(); return; }- currentHandoff.finished.then(callback);- }-- function beginHandoff(previousIndex, nextIndex, previous, destination, outgoingBeatIndex, reason) {- if (!Archify.view || !Archify.view.reveal) return null;- if (!previous || previousIndex === nextIndex) {- Archify.view.reveal(destination.focus, { reason: reason });- return null;- }- var delta = chapterDelta(previous, destination);- var anchor = chapterAnchor(previous, destination, outgoingBeatIndex, delta);- if (!handoffMotionAllowed()) {- Archify.view.reveal(destination.focus, { instant: true, reason: reason });- return null;- }- var resolver;- var handoff = {- id: ++handoffGeneration,- mode: anchor ? 'holding' : 'no-anchor',- anchor: anchor,- focus: destination.focus.slice(),- holdTimer: null,- camera: null,- ownerToken: 0,- finished: new Promise(function (resolve) { resolver = resolve; }),- resolve: resolver- };- currentHandoff = handoff;- classifyHandoff(delta, anchor);- if (anchor) {- drawHandoffAnchor(anchor);- var node = findNode(anchor);- var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = viewerText('viewer.guided.handoff', {- from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),- to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),- label: nodeLabel- });- handoffReceipt.hidden = false;- }- if (Archify.motionGovernor) {- handoff.ownerToken = Archify.motionGovernor.claim('handoff', function () {- if (currentHandoff === handoff) settleHandoff('preempted');- });- }- var startCamera = function () {- if (currentHandoff !== handoff) return;- handoff.holdTimer = null;- handoff.mode = 'settling';- svg.setAttribute('data-chapter-handoff', anchor ? 'settling' : 'no-anchor');- handoff.camera = Archify.view.reveal(destination.focus, { reason: reason, duration: 420 });- if (handoff.camera && handoff.camera.finished) {- handoff.camera.finished.then(function (outcome) {- if (currentHandoff === handoff) completeHandoff(handoff, outcome && outcome.state || 'complete');- });- } else {- completeHandoff(handoff, 'complete');- }- };- if (anchor) handoff.holdTimer = setTimeout(startCamera, 110);- else startCamera();- return handoff;- }-- function centerChapterButton(button) {- if (!button || !chapterList) return false;- var target = Math.max(0, button.offsetLeft - (chapterList.clientWidth - button.offsetWidth) / 2);- if (typeof chapterList.scrollTo === 'function') chapterList.scrollTo({ left: target, behavior: 'auto' });- else chapterList.scrollLeft = target;- return true;- }-- function focusChapterButton(index) {- if (!chapterButtons.length) return false;- index = Math.max(0, Math.min(chapterButtons.length - 1, index));- chapterButtons.forEach(function (button, buttonIndex) {- button.setAttribute('tabindex', buttonIndex === index ? '0' : '-1');- });- chapterButtons[index].focus();- centerChapterButton(chapterButtons[index]);- return true;- }-- function buildChapterIndex() {- chapterButtons = [];- chapterList.textContent = '';- views.forEach(function (view, index) {- var item = document.createElement('li');- var button = document.createElement('button');- button.type = 'button';- button.className = 'guided-view-chapter';- button.setAttribute('data-guided-view-id', view.id);- button.setAttribute('aria-pressed', 'false');- button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {- index: index + 1,- total: views.length,- label: view.label,- count: view.focus.length- }));- button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));- var position = document.createElement('span');- position.className = 'guided-view-chapter-index';- position.setAttribute('aria-hidden', 'true');- position.textContent = (index + 1 < 10 ? '0' : '') + (index + 1);- var title = document.createElement('span');- title.className = 'guided-view-chapter-title';- title.textContent = view.label;- var stops = document.createElement('em');- stops.className = 'guided-view-chapter-count';- stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);- var delta = document.createElement('span');- delta.className = 'guided-view-chapter-delta';- delta.hidden = true;- delta.setAttribute('aria-hidden', 'true');- ['stay', 'enter', 'leave'].forEach(function (kind) {- var value = document.createElement('span');- value.setAttribute('data-delta-kind', kind);- delta.appendChild(value);- });- button.appendChild(position);- button.appendChild(title);- button.appendChild(stops);- button.appendChild(delta);- item.appendChild(button);- chapterList.appendChild(item);- chapterButtons.push(button);- });- }-- function syncChapterIndex() {- chapterButtons.forEach(function (button, index) {- var current = index === activeIndex;- var stops = button.querySelector('.guided-view-chapter-count');- var deltaLabel = button.querySelector('.guided-view-chapter-delta');- var position = activeIndex < 0 ? 'available' : (current ? 'current' : (index < activeIndex ? 'before' : 'after'));- button.setAttribute('data-chapter-position', position);- button.setAttribute('aria-pressed', current ? 'true' : 'false');- button.setAttribute('tabindex', current || (activeIndex < 0 && index === 0) ? '0' : '-1');- if (current) {- stops.hidden = false;- deltaLabel.hidden = true;- button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {- index: index + 1,- total: views.length,- label: views[index].label,- count: views[index].focus.length- }));- button.title = viewerText('viewer.guided.chapter.current.title', {- label: views[index].label,- count: views[index].focus.length- });- } else {- var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);- var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = viewerText('viewer.guided.chapter.delta.expanded', {- stay: delta.stay.length,- enter: delta.enter.length,- leave: delta.leave.length- });- stops.hidden = true;- deltaLabel.hidden = false;- deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;- deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;- deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;- button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {- index: index + 1,- total: views.length,- label: views[index].label,- delta: expanded- }));- button.title = viewerText('viewer.guided.chapter.delta.title', {- label: views[index].label,- delta: compact- });- }- if (current) button.setAttribute('aria-current', 'step');- else button.removeAttribute('aria-current');- if (button.parentElement) button.parentElement.setAttribute('data-chapter-position', position);- });- if (activeIndex >= 0) centerChapterButton(chapterButtons[activeIndex]);- }-- function chapterPreviewBlocked() {- if (document.hidden || playing || currentHandoff) return true;- if (document.documentElement.getAttribute('data-embed') === 'true') return true;- if (window.matchMedia && window.matchMedia('print').matches) return true;- if (svg.hasAttribute('data-route-picking') || svg.hasAttribute('data-route-active')) return true;- if (svg.hasAttribute('data-lens-active') || svg.hasAttribute('data-legend-preview-active')) return true;- if (svg.hasAttribute('data-relationship-preview-active') || svg.hasAttribute('data-intent-trace-active')) return true;- return activeIndex < 0 && svg.hasAttribute('data-focus-active');- }-- function clearChapterPreviewPresentation() {- svg.removeAttribute('data-chapter-preview');- Array.prototype.forEach.call(svg.querySelectorAll('[data-chapter-preview-role]'), function (node) {- node.removeAttribute('data-chapter-preview-role');- });- chapterButtons.forEach(function (button) { button.removeAttribute('data-preview-active'); });- activePreviewIndex = -1;- if (previewOwnerToken && Archify.motionGovernor) {- var token = previewOwnerToken;- previewOwnerToken = 0;- Archify.motionGovernor.release(token);- }- }-- function clearChapterPreview(options) {- options = options || {};- previewGeneration += 1;- if (options.clearIntents !== false) {- pointerPreviewIntent = null;- focusPreviewIntent = null;- }- clearChapterPreviewPresentation();- return true;- }-- function winningChapterPreviewIntent() {- return [pointerPreviewIntent, focusPreviewIntent].filter(function (intent) {- return intent && intent.index >= 0 && intent.index < views.length && intent.index !== activeIndex;- }).sort(function (left, right) { return right.generation - left.generation; })[0] || null;- }-- function showChapterPreview(index) {- if (index < 0 || index >= views.length || index === activeIndex || chapterPreviewBlocked()) {- clearChapterPreviewPresentation();- return false;- }- if (activePreviewIndex === index && svg.getAttribute('data-chapter-preview') === views[index].id) return true;- clearChapterPreviewPresentation();- var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);- var roles = {};- delta.stay.forEach(function (id) { roles[id] = 'stay'; });- delta.enter.forEach(function (id) { roles[id] = 'enter'; });- delta.leave.forEach(function (id) { roles[id] = 'leave'; });- Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {- var role = roles[node.getAttribute('data-node-id')];- if (role) node.setAttribute('data-chapter-preview-role', role);- });- svg.setAttribute('data-chapter-preview', views[index].id);- chapterButtons[index].setAttribute('data-preview-active', 'true');- activePreviewIndex = index;- if (Archify.motionGovernor && Archify.motionGovernor.capable) {- previewOwnerToken = Archify.motionGovernor.claim('chapter-preview', function () {- previewOwnerToken = 0;- clearChapterPreviewPresentation();- });- }- return true;- }-- function syncChapterPreview() {- var intent = winningChapterPreviewIntent();- if (!intent || chapterPreviewBlocked()) {- clearChapterPreviewPresentation();- return false;- }- return showChapterPreview(intent.index);- }-- function setChapterPreviewIntent(source, index) {- var intent = { index: index, generation: ++previewGeneration };- if (source === 'pointer') pointerPreviewIntent = intent;- else focusPreviewIntent = intent;- if (playing) pausePlayback();- return syncChapterPreview();- }-- function clearChapterPreviewIntent(source, index) {- var intent = source === 'pointer' ? pointerPreviewIntent : focusPreviewIntent;- if (intent && (typeof index !== 'number' || intent.index === index)) {- if (source === 'pointer') pointerPreviewIntent = null;- else focusPreviewIntent = null;- previewGeneration += 1;- }- return syncChapterPreview();- }-- function hoverCapable() {- return !!(window.matchMedia && window.matchMedia('(hover: hover)').matches);- }-- function sharePlaybackRequested() {- try { return new URLSearchParams(location.search).get('play') === '1'; }- catch (_) { return false; }- }-- autoplayPending = sharePlaybackRequested();- if (autoplayPending) {- document.documentElement.setAttribute('data-share-playback', 'true');- setAutoplayState('pending');- }-- function setAutoplayState(state) {- if (state) panel.setAttribute('data-autoplay', state);- else panel.removeAttribute('data-autoplay');- renderShareCue();- }-- function shareCueStatus(state) {- return {- pending: viewerText('viewer.guided.state.ready'),- playing: viewerText('viewer.guided.state.playing'),- complete: viewerText('viewer.guided.state.settled'),- interrupted: viewerText('viewer.guided.state.paused'),- pinned: viewerText('viewer.guided.state.pinned'),- 'reduced-motion': viewerText('viewer.guided.state.still')- }[state] || viewerText('viewer.guided.state.ready');- }-- function shareCueBeatCopy(state, view, stops) {- var total = stops.length;- var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;- if ((state === 'playing' || state === 'interrupted') && activeStop) {- return viewerText('viewer.guided.share.step', {- index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),- total: (total < 10 ? '0' : '') + total,- label: activeStop.textContent- });- }- if (state === 'pinned' && activeStop) {- return storyBeatCopy(storySteps[storyBeatIndex], total);- }- if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return viewerText('viewer.guided.share.staticMoment', {- step: viewerText('viewer.guided.share.step', {- index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),- total: (total < 10 ? '0' : '') + total,- label: activeStop.textContent- })- });- }- if (state === 'complete') return viewerText('viewer.guided.share.complete', {- count: total,- note: view.note || viewerText('viewer.guided.share.settled')- });- if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });- if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });- return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });- }-- function renderShareCue() {- if (!shareCue) return;- var view = activeIndex >= 0 ? views[activeIndex] : null;- var shareMode = document.documentElement.getAttribute('data-share-playback') === 'true';- var embedMode = document.documentElement.getAttribute('data-embed') === 'true';- var pinnedMode = !shareMode && embedMode && hashBeatMatchesCurrent();- if (pinnedMode) document.documentElement.setAttribute('data-share-moment', 'true');- else document.documentElement.removeAttribute('data-share-moment');- shareCue.hidden = !(embedMode && view && (shareMode || pinnedMode));- if (shareCue.hidden) return;- var state = pinnedMode ? 'pinned' : (panel.getAttribute('data-autoplay') || 'pending');- var stops = Array.prototype.slice.call(trail.querySelectorAll('[data-story-node]'));- var route = stops.map(function (stop, index) {- if (index === 0) return stop.textContent;- var kind = stop.getAttribute('data-story-link');- var separator = kind === 'forward' ? '\u2192' : (kind === 'reverse' ? '\u2190' : (kind === 'multiple' ? '\u21c4' : '\u00b7'));- return separator + ' ' + stop.textContent;- }).join(' ');- var beatCopy = shareCueBeatCopy(state, view, stops);- shareCue.setAttribute('data-state', state);- shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');- shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {- index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),- total: (views.length < 10 ? '0' : '') + views.length- });- shareCueLabel.textContent = view.label;- shareCueNote.textContent = beatCopy;- shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {- state: shareCueStatus(state),- index: activeIndex + 1,- total: views.length,- label: view.label,- beat: beatCopy,- route: route- }));- }-- function setShareCueProgress(fraction) {- if (!shareCueProgress) return;- shareCueProgress.style.animation = 'none';- shareCueProgress.style.setProperty('--guided-progress-start', String(Math.max(0, Math.min(1, fraction))));- shareCueProgress.style.transform = 'scaleX(' + Math.max(0, Math.min(1, fraction)) + ')';- }-- function startShareCueProgress(fraction, duration) {- if (!shareCueProgress) return;- setShareCueProgress(fraction || 0);- void shareCueProgress.offsetWidth;- shareCueProgress.style.animation = 'archify-guided-progress ' + Math.max(1, duration || VIEW_INTERVAL_MS) + 'ms linear forwards';- }-- function storyNodeLabel(node, fallback) {- if (!node) return fallback;- return node.getAttribute('data-node-label') ||- (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '');- }-- function storyEdgeKey(edge) {- return edge.getAttribute('data-edge-key') || (- edge.getAttribute('data-edge-from') + '\u0000' +- edge.getAttribute('data-edge-to') + '\u0000' +- (edge.getAttribute('data-edge-label') || '')- );- }-- function uniqueStoryEdges(edgeList) {- var positions = {};- var unique = [];- edgeList.forEach(function (edge) {- var key = storyEdgeKey(edge);- if (!Object.prototype.hasOwnProperty.call(positions, key)) {- positions[key] = unique.length;- unique.push(edge);- return;- }- var index = positions[key];- if (!storyGeometry(unique[index]).length && storyGeometry(edge).length) unique[index] = edge;- });- return unique;- }-- function storyStep(view, index, edgeList, byId) {- var id = view.focus[index];- var node = byId[id];- var previousId = index > 0 ? view.focus[index - 1] : '';- var forward = [];- var reverse = [];- if (previousId) {- edgeList.forEach(function (edge) {- var from = edge.getAttribute('data-edge-from');- var to = edge.getAttribute('data-edge-to');- if (from === previousId && to === id) forward.push(edge);- else if (from === id && to === previousId) reverse.push(edge);- });- }- forward = uniqueStoryEdges(forward);- reverse = uniqueStoryEdges(reverse);- var edges = forward.concat(reverse).sort(function (left, right) {- return edgeList.indexOf(left) - edgeList.indexOf(right);- });- var relation = index === 0 ? 'start' : (!edges.length ? 'group' : (- edges.length === 1 && forward.length === 1 ? 'forward' :- (edges.length === 1 && reverse.length === 1 ? 'reverse' : 'multiple')- ));- return {- index: index,- nodeId: id,- nodeLabel: storyNodeLabel(byId[id], id),- previousId: previousId,- previousLabel: previousId ? storyNodeLabel(byId[previousId], previousId) : '',- relation: relation,- edges: edges,- edgeKeys: edges.map(storyEdgeKey),- edgeLabels: edges.map(function (edge) { return edge.getAttribute('data-edge-label') || ''; }).filter(function (value, edgeIndex, values) {- return value && values.indexOf(value) === edgeIndex;- }),- responsibility: node ? (node.getAttribute('data-node-sublabel') || '') : '',- context: node ? (node.getAttribute('data-node-context') || '') : ''- };- }-- function storyBeatCopy(step, total) {- if (!step) return '';- var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);- var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });- if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });- if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });- if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });- return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });- }-- function storyBeatAria(step, total) {- var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });- if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');- if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });- if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });- if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });- return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });- }-- function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');- if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;- if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;- if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;- return step.previousLabel + ' → ' + step.nodeLabel;- }-- function storyCaptionDetailCopy(step) {- var facts = [];- if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));- else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));- else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));- else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));- if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));- if (step.responsibility) facts.push(step.responsibility);- if (step.context) facts.push(step.context);- if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));- return facts.join(' · ');- }-- function renderStoryCaption(step, total, nextStep) {- if (!storyCaption) return;- if (!step) {- storyCaption.hidden = true;- storyCaption.removeAttribute('data-story-caption');- storyCaptionNext.hidden = true;- storyCaptionNextLabel.textContent = '';- return;- }- storyCaption.hidden = false;- storyCaption.setAttribute('data-story-caption', step.relation);- storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');- storyCaptionIndex.textContent = (step.index + 1 < 10 ? '0' : '') + (step.index + 1) + ' / ' + (total < 10 ? '0' : '') + total;- storyCaptionRoute.textContent = storyCaptionRouteCopy(step);- storyCaptionDetail.textContent = storyCaptionDetailCopy(step);- storyCaptionNext.hidden = !nextStep;- storyCaptionNextLabel.textContent = nextStep- ? ((nextStep.index + 1 < 10 ? '0' : '') + (nextStep.index + 1) + ' · ' + nextStep.nodeLabel)- : '';- storyCaption.style.animation = 'none';- void storyCaption.offsetWidth;- storyCaption.style.removeProperty('animation');- }-- function storyMomentLink() {- var view = activeIndex >= 0 ? views[activeIndex] : null;- var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;- if (!view || !step) return '';- var url = new URL(location.href);- url.searchParams.delete('play');- url.hash = 'view=' + encodeURIComponent(view.id) + '&beat=' + encodeURIComponent(step.nodeId);- return url.href;- }-- function fallbackCopyStoryMoment(value) {- var field = document.createElement('textarea');- field.value = value;- field.setAttribute('readonly', '');- field.style.position = 'fixed';- field.style.opacity = '0';- document.body.appendChild(field);- field.select();- var copied = false;- try { copied = document.execCommand('copy'); } catch (_) {}- field.remove();- return copied;- }-- function resetBeatLinkFeedback() {- if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);- beatLinkFeedbackTimer = null;- beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');- }-- function syncBeatLink() {- var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;- var available = !!(activeIndex >= 0 && step && !currentHandoff);- beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');- var description = available- ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })- : viewerText('viewer.guided.selectBeatLink');- beatLink.setAttribute('aria-label', description);- beatLink.title = description;- }-- function setBeatLinkFeedback(copied) {- resetBeatLinkFeedback();- beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');- beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));- beatLinkFeedbackTimer = setTimeout(function () {- resetBeatLinkFeedback();- syncBeatLink();- }, 1600);- }-- function copyStoryMomentLink() {- if (playing) pausePlayback();- var value = storyMomentLink();- if (!value) return Promise.resolve(false);- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopyStoryMoment(value); })- : Promise.resolve(fallbackCopyStoryMoment(value));- return copy.then(function (copied) {- setBeatLinkFeedback(copied);- return copied;- });- }-- function hashBeatMatchesCurrent() {- var view = activeIndex >= 0 ? views[activeIndex] : null;- var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;- if (!view || !step) return false;- try {- var params = new URLSearchParams(location.hash.replace(/^#/, ''));- return params.get('view') === view.id && params.get('beat') === step.nodeId;- } catch (_) { return false; }- }-- function storyMotionAllowed() {- if (document.hidden || reducedMotion()) return false;- if (document.documentElement.getAttribute('data-motion') !== 'live') return false;- if (document.documentElement.getAttribute('data-embed') === 'true' &&- document.documentElement.getAttribute('data-share-playback') !== 'true') return false;- if (window.matchMedia && window.matchMedia('print').matches) return false;- return !(Archify.motionGovernor && Archify.motionGovernor.isPaused());- }-- function storyAutomaticPlaybackAllowed() {- if (document.hidden || reducedMotion()) return false;- if (window.matchMedia && window.matchMedia('print').matches) return false;- if (Archify.motionGovernor && Archify.motionGovernor.capable) return !Archify.motionGovernor.isPaused();- return true;- }-- function clearStoryPulse(options) {- options = options || {};- storyPulseGeneration += 1;- Array.prototype.forEach.call(svg.querySelectorAll('.story-trail-flow[data-story-pulse]'), function (flow) {- flow.removeAttribute('data-story-pulse');- });- Array.prototype.forEach.call(svg.querySelectorAll('[data-story-carrier-overlay]'), function (overlay) {- overlay.remove();- });- if (storyPulseOwnerToken && options.release !== false && Archify.motionGovernor) {- var token = storyPulseOwnerToken;- storyPulseOwnerToken = 0;- Archify.motionGovernor.release(token);- } else if (options.release === false) storyPulseOwnerToken = 0;- }-- function pulseStoryStep(step) {- clearStoryPulse();- if (!step || (step.relation !== 'forward' && step.relation !== 'reverse') || step.edges.length !== 1 || !storyMotionAllowed()) return false;- var flows = Array.prototype.slice.call(svg.querySelectorAll('.story-trail-flow[data-story-beat-step="' + step.index + '"]'));- if (!flows.length) return false;- var pulseGeneration = storyPulseGeneration;- if (Archify.motionGovernor && Archify.motionGovernor.capable) {- storyPulseOwnerToken = Archify.motionGovernor.claim('story', function () {- clearStoryPulse({ release: false });- });- }- flows.forEach(function (flow) { flow.setAttribute('data-story-pulse', 'true'); });- if (Archify.flowTokens && typeof Archify.flowTokens.create === 'function') {- var edge = step.edges[0];- var shapes = storyGeometry(edge);- var carrier = shapes.length ? Archify.flowTokens.create(edge, shapes[0], {- className: 'story-flow-token',- duration: '0.78s'- }) : null;- if (carrier) {- var carrierOverlay = document.createElementNS('http://www.w3.org/2000/svg', 'g');- var carrierWrapper = document.createElementNS('http://www.w3.org/2000/svg', 'g');- carrierOverlay.setAttribute('class', 'story-carrier-overlay');- carrierOverlay.setAttribute('data-story-carrier-overlay', '');- carrierOverlay.setAttribute('aria-hidden', 'true');- if (edge.hasAttribute('transform')) carrierWrapper.setAttribute('transform', edge.getAttribute('transform'));- carrier.setAttribute('data-story-carrier-token', '');- carrier.setAttribute('data-story-beat-step', String(step.index));- carrierWrapper.appendChild(carrier);- carrierOverlay.appendChild(carrierWrapper);- var firstNode = svg.querySelector('[data-node-id]');- while (firstNode && firstNode.parentNode !== svg) firstNode = firstNode.parentNode;- if (firstNode) svg.insertBefore(carrierOverlay, firstNode);- else svg.appendChild(carrierOverlay);- }- }- void flows[0].getBoundingClientRect();- flows[0].addEventListener('animationend', function () {- if (pulseGeneration === storyPulseGeneration) clearStoryPulse();- }, { once: true });- return true;- }-- function stopStoryBeatTimer(options) {- options = options || {};- storyPlaybackGeneration += 1;- if (storyBeatTimer && options.preserveElapsed === true && storyBeatStartedAt) {- storyBeatElapsedMs = Math.min(storyBeatDwellMs, storyBeatElapsedMs + Math.max(0, Date.now() - storyBeatStartedAt));- }- if (storyBeatTimer) clearTimeout(storyBeatTimer);- storyBeatTimer = null;- storyBeatStartedAt = 0;- }-- function centerStoryStop(stop) {- if (!stop || !trail) return false;- var bounds = stop.getBoundingClientRect();- var viewportLeft = trail.getBoundingClientRect().left + trail.clientLeft;- var target = Math.max(0, trail.scrollLeft + bounds.left - viewportLeft - (trail.clientWidth - bounds.width) / 2);- trail.scrollLeft = target;- return true;- }-- function storyBeatDwell(total) {- return Math.max(STORY_FOLLOW_MIN_DWELL_MS, VIEW_INTERVAL_MS / Math.max(1, total));- }-- function clearStoryFollow() {- storyFollowGeneration += 1;- svg.removeAttribute('data-story-follow');- panel.removeAttribute('data-story-follow');- panel.removeAttribute('data-story-follow-node');- }-- function storyFrameIds(step) {- if (!step) return [];- var ids = [];- if (step.index > 0 && storySteps[step.index - 1]) ids.push(storySteps[step.index - 1].nodeId);- ids.push(step.nodeId);- if (step.index + 1 < storySteps.length) ids.push(storySteps[step.index + 1].nodeId);- return ids;- }-- function followStoryStep(step, options) {- options = options || {};- if (!step || document.hidden) return false;- if (!Archify.view || typeof Archify.view.reveal !== 'function') {- var deferredIndex = step.index;- var deferredGeneration = ++storyFollowGeneration;- requestAnimationFrame(function () {- if (deferredGeneration !== storyFollowGeneration || storyBeatIndex !== deferredIndex) return;- if (Archify.view && typeof Archify.view.reveal === 'function') followStoryStep(step, options);- });- return true;- }- if (window.matchMedia && window.matchMedia('print').matches) return false;- var embed = document.documentElement.getAttribute('data-embed') === 'true';- var explicitEmbedPlayback = document.documentElement.getAttribute('data-share-playback') === 'true';- if (embed && !explicitEmbedPlayback && options.linked !== true) return false;- var ids = storyFrameIds(step);- var generation = ++storyFollowGeneration;- svg.setAttribute('data-story-follow', step.nodeId);- panel.setAttribute('data-story-follow', 'moving');- panel.setAttribute('data-story-follow-node', step.nodeId);- var receipt = Archify.view.reveal(ids, {- reason: options.manual === true ? 'story-beat' : 'story-follow',- padding: 64,- maxScale: 1.65,- duration: STORY_FOLLOW_DURATION_MS,- instant: options.instant === true || reducedMotion() || document.documentElement.getAttribute('data-motion') !== 'live'- });- if (receipt && receipt.finished && typeof receipt.finished.then === 'function') {- receipt.finished.then(function (result) {- if (generation !== storyFollowGeneration || storyBeatIndex !== step.index) return;- svg.removeAttribute('data-story-follow');- panel.setAttribute('data-story-follow', result && result.state === 'complete' ? 'settled' : 'interrupted');- });- } else if (generation === storyFollowGeneration) {- panel.setAttribute('data-story-follow', 'settled');- }- return receipt;- }-- function setStoryBeat(index, options) {- options = options || {};- var stops = Array.prototype.slice.call(trail.querySelectorAll('[data-story-node]'));- if (!stops.length) return false;- resetBeatLinkFeedback();- storyBeatIndex = Math.max(0, Math.min(stops.length - 1, index));- var nextStep = storyBeatIndex + 1 < storySteps.length ? storySteps[storyBeatIndex + 1] : null;- svg.setAttribute('data-story-beat', (storyBeatIndex + 1) + '/' + stops.length);- panel.setAttribute('data-story-beat', (storyBeatIndex + 1) + '/' + stops.length);- if (nextStep) {- svg.setAttribute('data-story-next', nextStep.nodeId);- panel.setAttribute('data-story-next', nextStep.nodeId);- } else {- svg.removeAttribute('data-story-next');- panel.removeAttribute('data-story-next');- }- function storyBeatState(step) {- if (step < storyBeatIndex) return 'past';- if (step === storyBeatIndex) return 'active';- if (step === storyBeatIndex + 1) return 'next';- return 'pending';- }- Array.prototype.forEach.call(svg.querySelectorAll('[data-story-step]'), function (node) {- var step = Number(node.getAttribute('data-story-step'));- node.setAttribute('data-story-beat-state', storyBeatState(step));- });- Array.prototype.forEach.call(svg.querySelectorAll('[data-story-beat-step]'), function (edge) {- var step = Number(edge.getAttribute('data-story-beat-step'));- edge.setAttribute('data-story-beat-state', storyBeatState(step));- });- stops.forEach(function (stop, step) {- stop.setAttribute('data-story-beat-state', storyBeatState(step));- if (step === storyBeatIndex) stop.setAttribute('aria-current', 'step');- else stop.removeAttribute('aria-current');- });- note.setAttribute('aria-live', 'off');- note.textContent = storyBeatCopy(storySteps[storyBeatIndex], stops.length);- renderStoryCaption(storySteps[storyBeatIndex], stops.length, nextStep);- if (options.center === true) centerStoryStop(stops[storyBeatIndex]);- if (options.pulse === true) pulseStoryStep(storySteps[storyBeatIndex]);- else clearStoryPulse();- if (options.follow === true) followStoryStep(storySteps[storyBeatIndex], {- manual: options.manual === true,- linked: options.linked === true,- instant: options.followInstant === true- });- renderShareCue();- syncBeatLink();- return true;- }-- function settleStoryBeats() {- stopStoryBeatTimer();- clearStoryPulse();- clearStoryFollow();- resetBeatLinkFeedback();- storyBeatIndex = -1;- storyBeatElapsedMs = 0;- storyBeatDwellMs = 0;- svg.removeAttribute('data-story-beat');- svg.removeAttribute('data-story-next');- panel.removeAttribute('data-story-beat');- panel.removeAttribute('data-story-next');- Array.prototype.forEach.call(svg.querySelectorAll('[data-story-beat-state]'), function (el) {- el.removeAttribute('data-story-beat-state');- });- Array.prototype.forEach.call(trail.querySelectorAll('[data-story-beat-state]'), function (stop) {- stop.removeAttribute('data-story-beat-state');- stop.removeAttribute('aria-current');- });- note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });- renderStoryCaption(null, 0);- renderShareCue();- syncBeatLink();- }-- function clearStoryTrail() {- stopStoryBeatTimer();- clearStoryPulse();- clearStoryFollow();- resetBeatLinkFeedback();- storyBeatIndex = -1;- storyBeatElapsedMs = 0;- storyBeatDwellMs = 0;- storySteps = [];- svg.removeAttribute('data-story-active');- svg.removeAttribute('data-story-playing');- svg.removeAttribute('data-story-beat');- svg.removeAttribute('data-story-next');- panel.removeAttribute('data-story-beat');- panel.removeAttribute('data-story-next');- Array.prototype.forEach.call(svg.querySelectorAll('[data-story-overlay]'), function (overlay) {- overlay.remove();- });- Array.prototype.forEach.call(svg.querySelectorAll('[data-story-step], [data-story-beat-state]'), function (node) {- node.removeAttribute('data-story-step');- node.removeAttribute('data-story-beat-state');- node.style.removeProperty('--story-step');- });- Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-story-beat-step]'), function (edge) {- edge.removeAttribute('data-story-beat-step');- edge.removeAttribute('data-story-beat-state');- });- trail.textContent = '';- trail.hidden = true;- trail.removeAttribute('aria-label');- renderStoryCaption(null, 0);- syncBeatLink();- }-- function storyGeometry(edge) {- if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));- }-- function renderStoryTrail(view) {- if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();- clearStoryTrail();- if (!view) return;-- var nodeList = Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));- var edgeList = Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));- var byId = {};- nodeList.forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });- storySteps = view.focus.map(function (_, index) { return storyStep(view, index, edgeList, byId); });- var labels = [];- storySteps.forEach(function (step, index) {- var id = step.nodeId;- var node = byId[id];- if (!node) return;- node.setAttribute('data-story-step', String(index));- node.style.setProperty('--story-step', String(index));- var nodeLabel = step.nodeLabel;- labels.push(nodeLabel);- var stop = document.createElement('button');- stop.type = 'button';- stop.className = 'guided-view-stop';- stop.setAttribute('data-story-node', id);- stop.setAttribute('data-story-index', String(index));- stop.setAttribute('data-story-relation', step.relation);- stop.setAttribute('data-story-number', (index + 1 < 10 ? '0' : '') + (index + 1));- if (index > 0) stop.setAttribute('data-story-link', step.relation);- stop.style.setProperty('--story-step', String(index));- stop.setAttribute('aria-label', storyBeatAria(step, storySteps.length));- stop.title = storyBeatCopy(step, storySteps.length);- stop.textContent = nodeLabel;- trail.appendChild(stop);- });- trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));- trail.scrollLeft = 0;- svg.setAttribute('data-story-active', view.id);-- var overlay = document.createElementNS('http://www.w3.org/2000/svg', 'g');- overlay.setAttribute('class', 'story-trail-overlay');- overlay.setAttribute('data-story-overlay', '');- overlay.setAttribute('aria-hidden', 'true');- var copied = 0;- storySteps.forEach(function (step) {- step.edges.forEach(function (edge) {- var edgeBeat = step.index;- edge.setAttribute('data-story-beat-step', String(edgeBeat));- var wrapper = document.createElementNS('http://www.w3.org/2000/svg', 'g');- if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));- storyGeometry(edge).forEach(function (shape) {- var clone = shape.cloneNode(false);- clone.removeAttribute('id');- clone.removeAttribute('marker-start');- clone.removeAttribute('marker-mid');- clone.removeAttribute('marker-end');- clone.removeAttribute('aria-label');- clone.removeAttribute('role');- clone.removeAttribute('data-animate');- clone.removeAttribute('data-edge-from');- clone.removeAttribute('data-edge-to');- clone.removeAttribute('data-edge-key');- clone.removeAttribute('data-edge-id');- clone.removeAttribute('data-edge-label');- clone.setAttribute('class', 'story-trail-flow');- clone.setAttribute('data-story-beat-step', String(edgeBeat));- clone.style.setProperty('--story-step', String(edgeBeat));- wrapper.appendChild(clone);- copied += 1;- });- if (wrapper.childNodes.length) overlay.appendChild(wrapper);- });- });- if (copied) {- var firstEdge = edgeList[0];- if (firstEdge && firstEdge.parentNode) firstEdge.parentNode.insertBefore(overlay, firstEdge);- else svg.insertBefore(overlay, svg.firstChild);- }- }-- function syncStoryPlayback() {- var shouldPlay = playing && activeIndex >= 0;- if (shouldPlay && svg.getAttribute('data-story-playing') !== 'true') svg.setAttribute('data-story-playing', 'true');- else if (!shouldPlay && svg.hasAttribute('data-story-playing')) svg.removeAttribute('data-story-playing');- }-- function resetProgress(fraction) {- fraction = Math.max(0, Math.min(1, Number(fraction) || 0));- progressBar.style.animation = 'none';- progressBar.style.setProperty('--guided-progress-start', String(fraction));- progressBar.style.transform = 'scaleX(' + fraction + ')';- }-- function startProgress(fraction, duration) {- resetProgress(fraction);- void progressBar.offsetWidth;- progressBar.style.animation = 'archify-guided-progress ' + Math.max(1, duration || VIEW_INTERVAL_MS) + 'ms linear forwards';- }-- function currentStoryProgress() {- var total = storySteps.length;- if (!total || storyBeatIndex < 0) return 0;- var elapsed = storyBeatElapsedMs;- if (playing && storyBeatTimer && storyBeatStartedAt) elapsed += Math.max(0, Date.now() - storyBeatStartedAt);- var dwell = storyBeatDwellMs || storyBeatDwell(total);- return Math.max(0, Math.min(1, (storyBeatIndex + Math.min(1, elapsed / dwell)) / total));- }-- function renderPlayback() {- var automaticPlaybackAllowed = storyAutomaticPlaybackAllowed();- panel.setAttribute('data-playing', playing ? 'true' : 'false');- syncStoryPlayback();- play.disabled = !playing && !automaticPlaybackAllowed;- play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', viewerText(playing- ? 'viewer.guided.pause'- : !automaticPlaybackAllowed- ? 'viewer.guided.motionUnavailable'- : storyPlaybackComplete- ? 'viewer.guided.replay'- : 'viewer.guided.play'));- play.title = viewerText(playing- ? 'viewer.guided.pause.title'- : !automaticPlaybackAllowed- ? 'viewer.guided.enableMotion'- : storyPlaybackComplete- ? 'viewer.guided.replay.title'- : 'viewer.guided.play.title');- playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = viewerText(playing- ? 'viewer.guided.pauseStory'- : storyPlaybackComplete- ? 'viewer.guided.replayStory'- : 'viewer.guided.playStory');- if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');- }-- function render() {- var view = views[activeIndex];- count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : viewerText('viewer.guided.explore');- note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');- note.textContent = storyBeatIndex >= 0- ? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view- ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))- : viewerText('viewer.guided.intro'));- prev.disabled = activeIndex < 0;- next.disabled = activeIndex >= views.length - 1;- all.disabled = activeIndex < 0;- panel.setAttribute('data-active-view', view ? view.id : 'all');- syncChapterIndex();- renderShareCue();- renderPlayback();- syncBeatLink();- }-- function pausePlayback(options) {- options = options || {};- var progress = options.complete === true ? 1 : currentStoryProgress();- if (panel.getAttribute('data-autoplay') === 'playing') {- setShareCueProgress(progress);- setAutoplayState(options.complete === true ? 'complete' : 'interrupted');- }- stopStoryBeatTimer({ preserveElapsed: options.complete !== true });- clearStoryPulse();- clearStoryFollow();- playing = false;- storyPlaybackComplete = options.complete === true;- resetProgress(progress);- renderPlayback();- renderShareCue();- }-- function finishStoryChapter() {- if (!playing) return false;- if (storyPlaybackScope === 'chapter') {- pausePlayback({ complete: true });- return true;- }- if (activeIndex < views.length - 1) {- var destinationIndex = activeIndex + 1;- activate(destinationIndex, { playback: true });- afterHandoff(function () {- if (!playing || activeIndex !== destinationIndex) return;- storyBeatElapsedMs = 0;- setStoryBeat(0, { pulse: true, follow: true });- scheduleStoryPlayback();- });- return true;- }- pausePlayback({ complete: true });- return true;- }-- function scheduleStoryPlayback() {- var total = storySteps.length;- if (!playing || !total || reducedMotion()) {- if (playing) pausePlayback();- return false;- }- storyBeatDwellMs = storyBeatDwell(total);- if (storyBeatIndex < 0) {- storyBeatElapsedMs = 0;- setStoryBeat(0, { pulse: true, follow: true });- }- storyBeatElapsedMs = Math.max(0, Math.min(storyBeatDwellMs, storyBeatElapsedMs));- var remainingDwell = Math.max(1, storyBeatDwellMs - storyBeatElapsedMs);- var progress = (storyBeatIndex + storyBeatElapsedMs / storyBeatDwellMs) / total;- var remainingChapter = remainingDwell + Math.max(0, total - storyBeatIndex - 1) * storyBeatDwellMs;- startProgress(progress, remainingChapter);- if (panel.getAttribute('data-autoplay') === 'playing') startShareCueProgress(progress, remainingChapter);- var generation = ++storyPlaybackGeneration;- storyBeatStartedAt = Date.now();- storyBeatTimer = setTimeout(function () {- if (!playing || generation !== storyPlaybackGeneration) return;- storyBeatTimer = null;- storyBeatStartedAt = 0;- storyBeatElapsedMs = 0;- if (storyBeatIndex < total - 1) {- setStoryBeat(storyBeatIndex + 1, { pulse: true, follow: true });- scheduleStoryPlayback();- } else finishStoryChapter();- }, remainingDwell);- return true;- }-- function startPlayback() {- if (!storyAutomaticPlaybackAllowed()) {- renderPlayback();- return false;- }- autoplayPending = false;- setAutoplayState(null);- setShareCueProgress(0);- document.documentElement.removeAttribute('data-share-playback');- storyPlaybackScope = 'story';- if (storyPlaybackComplete) showAll({ updateUrl: false });- storyPlaybackComplete = false;- if (activeIndex < 0) activate(0, { playback: true });- playing = true;- renderPlayback();- afterHandoff(function () {- if (!playing) return;- if (storyBeatIndex >= 0) followStoryStep(storySteps[storyBeatIndex]);- scheduleStoryPlayback();- });- return true;- }-- function startCurrentViewPlayback() {- if (document.hidden) return false;- autoplayPending = false;- document.documentElement.setAttribute('data-share-playback', 'true');- storyPlaybackScope = 'chapter';- storyPlaybackComplete = false;- if (activeIndex < 0) activate(0, { playback: true, updateUrl: false });- if (!storyAutomaticPlaybackAllowed()) {- var preserveMoment = hashBeatMatchesCurrent();- setShareCueProgress(preserveMoment && storySteps.length ? (storyBeatIndex + 1) / storySteps.length : 1);- setAutoplayState('reduced-motion');- playing = false;- if (preserveMoment) {- clearStoryPulse();- renderShareCue();- } else settleStoryBeats();- renderPlayback();- return false;- }- playing = true;- setAutoplayState('playing');- renderPlayback();- afterHandoff(function () {- if (!playing) return;- if (storyBeatIndex >= 0) followStoryStep(storySteps[storyBeatIndex]);- scheduleStoryPlayback();- });- return true;- }-- function maybeStartSharePlayback() {- if (!autoplayPending || document.hidden) return false;- return startCurrentViewPlayback();- }-- function togglePlayback() {- return playing ? (pausePlayback(), false) : startPlayback();- }-- function syncStoryControlsDisabled() {- Array.prototype.forEach.call(trail.querySelectorAll('[data-story-node]'), function (stop) {- stop.disabled = !!currentHandoff;+ wrapper.appendChild(traceGeometry(shape, direction));+ });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);});- syncBeatLink();- }-- function selectStoryBeat(index) {- if (currentHandoff || activeIndex < 0 || index < 0 || index >= storySteps.length) return false;- momentRestoreGeneration += 1;- clearChapterPreview({ clearIntents: true });- if (playing) pausePlayback();- else {- stopStoryBeatTimer();- clearStoryPulse();- }- storyPlaybackComplete = false;- storyPlaybackScope = 'story';- storyBeatElapsedMs = 0;- storyBeatDwellMs = storyBeatDwell(storySteps.length);- var view = views[activeIndex];- Archify.focus.setMany(view.focus, {- toggle: false,- updateUrl: false,- mode: 'selection',- label: view.label,- hideChip: true- });- setStoryBeat(index, { manual: true, center: true, pulse: true, follow: true });- resetProgress(index / storySteps.length);- renderPlayback();- return true;- }- function selectStoryBeatById(id, options) {- options = options || {};- var index = storySteps.findIndex(function (step) { return step.nodeId === id; });- if (index < 0) return false;- if (playing) pausePlayback();- else {- stopStoryBeatTimer();- clearStoryPulse();- }- storyPlaybackComplete = false;- storyPlaybackScope = 'story';- storyBeatElapsedMs = 0;- storyBeatDwellMs = storyBeatDwell(storySteps.length);- setStoryBeat(index, {- manual: false,- center: true,- pulse: false,- follow: options.follow === true,- linked: options.linked === true,- followInstant: options.followInstant === true- });- resetProgress(index / storySteps.length);- renderPlayback();+ nodeList.forEach(function (node) {+ var nodeId = node.getAttribute('data-node-id');+ if (related[nodeId]) node.setAttribute('data-intent-trace-match', '');+ if (nodeId === id) node.setAttribute('data-intent-trace-selected', '');+ });+ if (overlay.childNodes.length) {+ var firstEdge = edgeList[0];+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstEdge && firstEdge.parentNode) firstEdge.parentNode.insertBefore(overlay, firstEdge);+ else if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ }+ activeId = id;+ svg.setAttribute('data-intent-trace-active', id);+ if (options.announce === true) {+ var total = counts.out + counts.in + counts.loop;+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });+ }return true;}-- function updateUrl(view) {- try {- history.replaceState(null, '', location.pathname + location.search + (view ? '#view=' + encodeURIComponent(view.id) : ''));- } catch (_) {}+ function schedule(node) {+ if (enterTimer) window.clearTimeout(enterTimer);+ enterTimer = window.setTimeout(function () {+ enterTimer = null;+ if (hoveredNode === node) show(node.getAttribute('data-node-id'), { announce: false });+ }, reducedMotion() ? 0 : 90);}-- function showAll(options) {- options = options || {};- if (options.restore !== true) momentRestoreGeneration += 1;- clearChapterPreview({ clearIntents: true });- if (playing && options.playback !== true) pausePlayback();- if (options.playback !== true) storyPlaybackComplete = false;- cancelHandoff('overview');- activeIndex = -1;- renderStoryTrail(null);- if (options.clearFocus !== false) Archify.focus.clear({ updateUrl: false });- if (options.resetView !== false && Archify.view && typeof Archify.view.reset === 'function') {- Archify.view.reset({ automatic: true });+ function sync() {+ var candidate = focusedNode || hoveredNode;+ if (!candidate) {+ clear();+ return;}- render();- if (options.updateUrl !== false) updateUrl(null);- }-- function activate(index, options) {- options = options || {};- if (options.restore !== true) momentRestoreGeneration += 1;- if (playing && options.playback !== true) pausePlayback();- if (options.playback !== true) storyPlaybackComplete = false;- if (index < 0) { showAll(options); return true; }- if (index >= views.length) return false;- clearChapterPreview({ clearIntents: true });- var previousIndex = activeIndex;- var previous = previousIndex >= 0 ? views[previousIndex] : null;- var outgoingBeatIndex = storyBeatIndex;- cancelHandoff('replaced');- activeIndex = index;- var view = views[index];- Archify.focus.setMany(view.focus, {- toggle: false,- updateUrl: false,- mode: 'selection',- label: view.label,- hideChip: true- });- renderStoryTrail(view);- beginHandoff(previousIndex, index, previous, view, outgoingBeatIndex, options.playback === true ? 'playback' : 'guided');- syncStoryControlsDisabled();- render();- if (options.updateUrl !== false) updateUrl(view);- return true;- }-- function activateById(id, options) {- var index = views.findIndex(function (view) { return view.id === id; });- return index >= 0 && activate(index, options);+ show(candidate.getAttribute('data-node-id'), { announce: candidate === focusedNode });}- prev.addEventListener('click', function () { activate(activeIndex - 1); });- next.addEventListener('click', function () { activate(activeIndex + 1); });- all.addEventListener('click', function () { showAll(); });- play.addEventListener('click', togglePlayback);- beatLink.addEventListener('click', copyStoryMomentLink);- trail.addEventListener('focusin', function (event) {- if (!event.target.closest('[data-story-node]')) return;- if (playing) pausePlayback();- });- trail.addEventListener('click', function (event) {- var stop = event.target.closest('[data-story-node]');- if (!stop || stop.disabled) return;- selectStoryBeat(Number(stop.getAttribute('data-story-index')));- });- trail.addEventListener('keydown', function (event) {- if (event.key !== 'Enter' && event.key !== ' ') return;- var stop = event.target.closest('[data-story-node]');- if (!stop || stop.disabled) return;- event.preventDefault();- selectStoryBeat(Number(stop.getAttribute('data-story-index')));- });- chapterList.addEventListener('click', function (event) {- var button = event.target.closest('[data-guided-view-id]');- if (!button) return;- activateById(button.getAttribute('data-guided-view-id'));- });- chapterList.addEventListener('pointerover', function (event) {- var button = event.target.closest('[data-guided-view-id]');- if (!button || !hoverCapable() || event.pointerType === 'touch') return;- if (event.relatedTarget && button.contains(event.relatedTarget)) return;- setChapterPreviewIntent('pointer', chapterButtons.indexOf(button));- });- chapterList.addEventListener('pointerout', function (event) {- var button = event.target.closest('[data-guided-view-id]');- if (!button || (event.relatedTarget && button.contains(event.relatedTarget))) return;- clearChapterPreviewIntent('pointer', chapterButtons.indexOf(button));- });- chapterIndex.addEventListener('focusin', function (event) {- var button = event.target.closest('[data-guided-view-id]');- if (!button) return;- setChapterPreviewIntent('focus', chapterButtons.indexOf(button));+ svg.addEventListener('pointerover', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || !finePointer() || event.pointerType === 'touch') return;+ if (event.relatedTarget && node.contains(event.relatedTarget)) return;+ hoveredNode = node;+ schedule(node);});- chapterIndex.addEventListener('focusout', function (event) {- var button = event.target.closest('[data-guided-view-id]');- if (!button || (event.relatedTarget && button.contains(event.relatedTarget))) return;- clearChapterPreviewIntent('focus', chapterButtons.indexOf(button));+ svg.addEventListener('pointerout', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;+ if (hoveredNode === node) hoveredNode = null;+ sync();});- chapterList.addEventListener('keydown', function (event) {- var button = event.target.closest('[data-guided-view-id]');- var index = chapterButtons.indexOf(button);- if (index < 0) return;- var target = null;- if (event.key === 'ArrowRight') target = Math.min(chapterButtons.length - 1, index + 1);- else if (event.key === 'ArrowLeft') target = Math.max(0, index - 1);- else if (event.key === 'Home') target = 0;- else if (event.key === 'End') target = chapterButtons.length - 1;- if (target === null) return;- event.preventDefault();- focusChapterButton(target);+ svg.addEventListener('focusin', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node) return;+ focusedNode = node;+ show(node.getAttribute('data-node-id'), { announce: true });});-- // A direct node exploration supersedes the curated view. Capture phase- // releases the view before the focus explorer writes its own deep link.- function releaseForNode(event) {- if (activeIndex >= 0 && event.target.closest('[data-node-id]')) {- pausePlayback();- showAll({ clearFocus: false, updateUrl: false });- }- }- svg.addEventListener('click', releaseForNode, true);- svg.addEventListener('keydown', function (event) {- if (event.key === 'Enter' || event.key === ' ') releaseForNode(event);- }, true);-- document.addEventListener('keydown', function (event) {- if (event.metaKey || event.ctrlKey || event.altKey) return;- if (document.documentElement.getAttribute('data-guide-open') === 'true') return;- var target = event.target;- if (target && (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable)) return;- if (event.key === ']') {- event.preventDefault();- if (activeIndex < views.length - 1) activate(activeIndex + 1);- } else if (event.key === '[') {- event.preventDefault();- if (activeIndex >= 0) activate(activeIndex - 1);- } else if (event.key.toLowerCase() === 'p') {- event.preventDefault();- togglePlayback();- } else if (event.key === 'Escape' && activePreviewIndex >= 0) {- event.preventDefault();- event.stopImmediatePropagation();- clearChapterPreview({ clearIntents: true });- } else if (event.key === 'Escape' && activeIndex >= 0) {- event.preventDefault();- showAll();- }- }, true);-- function syncViewFromHash() {- try {- var params = new URLSearchParams(location.hash.replace(/^#/, ''));- var initial = params.get('view');- var requestedBeat = params.get('beat');- var restoreGeneration = ++momentRestoreGeneration;- if (initial) {- var activated = activateById(initial, { updateUrl: false, restore: true });- if (!activated) {- showAll({ updateUrl: false, restore: true });- return;- }- if (requestedBeat) afterHandoff(function () {- if (restoreGeneration !== momentRestoreGeneration) return;- var latest = new URLSearchParams(location.hash.replace(/^#/, ''));- if (latest.get('view') !== initial || latest.get('beat') !== requestedBeat) return;- if (activeIndex < 0 || views[activeIndex].id !== initial) return;- selectStoryBeatById(requestedBeat, { linked: true, follow: true, followInstant: true });- });- } else if (params.get('focus') || params.get('relation')) {- activeIndex = -1;- render();- } else {- showAll({ updateUrl: false, restore: true });- }- } catch (_) { showAll({ updateUrl: false, restore: true }); }- }-- window.addEventListener('hashchange', syncViewFromHash);- document.addEventListener('visibilitychange', function () {- if (document.hidden) {- clearChapterPreview({ clearIntents: true });- if (playing) pausePlayback();- else clearStoryPulse();- settleHandoff('hidden');- }- else if (!document.hidden) maybeStartSharePlayback();+ svg.addEventListener('focusout', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;+ if (focusedNode === node) focusedNode = null;+ sync();});- if (window.matchMedia) {- var guidedMotionQuery = window.matchMedia('(prefers-reduced-motion: reduce)');- var onGuidedMotionChange = function () {- if (guidedMotionQuery.matches) {- if (playing) pausePlayback();- else clearStoryPulse();- settleHandoff('reduced-motion');- }- };- if (typeof guidedMotionQuery.addEventListener === 'function') guidedMotionQuery.addEventListener('change', onGuidedMotionChange);- else if (typeof guidedMotionQuery.addListener === 'function') guidedMotionQuery.addListener(onGuidedMotionChange);- }- if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node && document.documentElement instanceof Node) {- var chapterPreviewOwnerObserver = new MutationObserver(syncChapterPreview);- chapterPreviewOwnerObserver.observe(svg, {- attributes: true,- attributeFilter: [- 'data-route-picking', 'data-route-active', 'data-lens-active',- 'data-legend-preview-active', 'data-relationship-preview-active',- 'data-intent-trace-active', 'data-focus-active'- ]- });- var storyMotionObserver = new MutationObserver(function () {- if (document.documentElement.getAttribute('data-motion') !== 'live') clearStoryPulse();- renderPlayback();- });- storyMotionObserver.observe(document.documentElement, { attributes: true, attributeFilter: ['data-motion'] });- }- if (typeof ResizeObserver === 'function') {- var chapterViewportWidth = chapterList.clientWidth;- var trailViewportWidth = trail.clientWidth;- var storyScrollObserver = new ResizeObserver(function () {- var chapterWidth = chapterList.clientWidth;- var trailWidth = trail.clientWidth;- if (chapterWidth !== chapterViewportWidth && activeIndex >= 0) centerChapterButton(chapterButtons[activeIndex]);- if (trailWidth !== trailViewportWidth && storyBeatIndex >= 0) {- centerStoryStop(trail.querySelectorAll('[data-story-node]')[storyBeatIndex]);- }- chapterViewportWidth = chapterWidth;- trailViewportWidth = trailWidth;- });- storyScrollObserver.observe(chapterList);- storyScrollObserver.observe(trail);- }- window.addEventListener('beforeprint', function () {- clearChapterPreview({ clearIntents: true });- if (playing) pausePlayback();- else clearStoryPulse();- settleHandoff('print');+ container.addEventListener('pointerdown', function (event) {+ if (!event.target.closest('[data-node-id]')) clear({ announce: false });});- syncViewFromHash();- if (autoplayPending) {- requestAnimationFrame(function () {- requestAnimationFrame(maybeStartSharePlayback);- });- }+ window.addEventListener('blur', function () { clear({ announce: false }); });return {- count: views.length,- activate: activateById,- showAll: showAll,- play: startPlayback,- playCurrent: startCurrentViewPlayback,- pause: pausePlayback,- beatLink: storyMomentLink,- copyBeatLink: copyStoryMomentLink,- cancelHandoff: cancelHandoff,- settleHandoff: settleHandoff,- clearPreview: function () { return clearChapterPreview({ clearIntents: true }); },- isPlaying: function () { return playing; },- handoff: function () {- return currentHandoff ? { id: currentHandoff.id, mode: currentHandoff.mode, anchor: currentHandoff.anchor || null } : null;- },- active: function () { return activeIndex < 0 ? null : views[activeIndex].id; },- preview: function () { return activePreviewIndex < 0 ? null : views[activePreviewIndex].id; },- delta: function (id) {- var index = views.findIndex(function (view) { return view.id === id; });- if (index < 0) return null;- var value = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);- return { stay: value.stay.slice(), enter: value.enter.slice(), leave: value.leave.slice() };- },- beat: function () {- var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;- return step ? {- index: step.index,- position: step.index + 1,- total: storySteps.length,- nodeId: step.nodeId,- relation: step.relation,- edgeKeys: step.edgeKeys.slice()- } : null;- },- focus: function () { return activeIndex < 0 ? [] : views[activeIndex].focus.slice(); }+ show: show,+ clear: clear,+ active: function () { return activeId; }};})();+/* ============================================================Adaptive Reader Shell — one diagram across laptop and monitor.The canonical SVG and viewBox never change. On ordinary desktop pages,- wide diagrams receive only enough outer width to use the available+ wide diagrams and measured intrinsic tall workflows receive enough outer width to use the availableheight without pushing summary cards below the viewport. Mobile,- embed, presentation, print, and non-wide diagrams retain their own+ embed, presentation, print, and unmarked non-wide diagrams retain their ownestablished layout contracts.============================================================ */+ // Fixed script-private participants; the CLI sees only the joint wait below.+ const archifyLayoutOwners = { reader: null, viewerChrome: null };Archify.waitForStableLayout = function (options) {options = options || {};var maximumFrames = Math.max(1, Number(options.maximumFrames) || 240);@@ -11085,19 +9946,62 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var shell = document.querySelector('.container');var diagram = document.querySelector('.diagram-container');var svg = diagram && diagram.querySelector(':scope > svg');+ var legend = svg && svg.querySelector('[data-legend]');var header = shell && shell.querySelector('.header');- var guided = shell && shell.querySelector('.guided-views');var cards = shell && shell.querySelector('.cards');var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;+ var readerFit = svg && svg.getAttribute('data-reader-fit');+ var widthFirstReading = readerFit === 'width-first';+ var automaticSequence = widthFirstReading && svg.hasAttribute('data-sequence-column-fit');+ var readingScroll = widthFirstReading;+ var measuredHeightFit = readerFit === 'intrinsic-height' || widthFirstReading;var frame = 0;var settleFrame = 0;var lastWidth = 0;+ var automaticAreaHeight = 0;+ // Widest reader the overflow settle has accepted for this viewport (0 =+ // uncapped). Card copy rewraps as the reader narrows, so recomputing+ // from fixed heights alone would widen again and oscillate; only a+ // resize lifts the cap.+ var settledCap = 0;var WIDE_RATIO = 1.55;var MIN_DESKTOP_WIDTH = 1024;var MIN_READER_WIDTH = 960;var MAX_READER_WIDTH = 1920;+ var MAX_AUTOMATIC_SCALE = 1.5;+ var MIN_PROJECTED_NODE_TEXT_PX = 6;+ var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;+ var requestedMinimumText = Number.isFinite(declaredMinimumText)+ ? Math.max(MIN_PROJECTED_NODE_TEXT_PX, declaredMinimumText)+ : MIN_PROJECTED_NODE_TEXT_PX;+ var declaredPrimaryText = svg ? parseFloat(svg.getAttribute('data-reader-primary-text') || '') : null;var SAFE_BOTTOM_GAP = 12;+ // Wide viewports move summary cards beside the diagram, so the height+ // budget belongs to the diagram and spare width holds the notes.+ var RAIL_MIN_VIEWPORT = 1280;+ var RAIL_WIDTH = 288;+ var RAIL_GAP = 20;+ // A default rail must leave primary node labels comfortably readable;+ // otherwise it starts collapsed and the reader can still open it.+ var RAIL_COMFORT_PRIMARY_PX = 12;+ var railPanel = shell && shell.querySelector('.reader-rail');+ var railReveal = document.getElementById('rail-reveal');+ var railCollapse = document.getElementById('rail-collapse');+ var railPlacement = document.getElementById('rail-placement');+ var RAIL_COLLAPSED_KEY = 'archify-rail-collapsed';+ var RAIL_PLACEMENT_KEY = 'archify-rail-placement';+ // Memory is the page's source of truth; storage only carries the choice+ // to later artifacts, so a blocked or full localStorage cannot freeze it.+ var preferences = Object.create(null);+ function readPreference(key) {+ if (key in preferences) return preferences[key];+ try { return localStorage.getItem(key); } catch (_) { return null; }+ }+ function writePreference(key, value) {+ preferences[key] = value;+ try { localStorage.setItem(key, value); } catch (_) {}+ }if (diagram && ratio >= WIDE_RATIO) {diagram.setAttribute('data-wide-diagram', 'true');@@ -11116,9 +10020,58 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var style = window.getComputedStyle(element);return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);}+ // Smallest scale that keeps node text at the requested floor and+ // context relationship labels readable. A declared wide reader holds+ // relationship labels to the requested floor too; every other reader+ // still keeps them at the 6px hard floor the browser gate enforces, so+ // a first-screen fit can never push them below it.+ function minimumReadableScale() {+ var nodeMinimum = null;+ var edgeMinimum = null;+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');+ if (!Number.isFinite(sourceFontPx)) return;+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);+ } else if (primary || text.closest('[data-node-id]')) {+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);+ }+ });+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? requestedMinimumText+ : MIN_PROJECTED_NODE_TEXT_PX;+ var scale = 0;+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);+ return scale > 0 ? Math.min(1, scale) : 1;+ }+ var sourcePrimary = null;+ if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {+ var size = parseFloat(text.getAttribute('font-size') || '');+ if (Number.isFinite(size) && size > 0) sourcePrimary = sourcePrimary == null ? size : Math.max(sourcePrimary, size);+ });+ // SVG width at which the largest node label renders at targetPx. Every+ // renderer writes label font sizes, so the rail comfort check works for+ // all diagram types; only the renderer-declared floor needs metadata.+ function labelWidth(targetPx) {+ return sourcePrimary == null || !viewBox ? 0 : viewBox.width * targetPx / sourcePrimary;+ }+ function primaryReadingWidth() {+ if (!measuredHeightFit || !Number.isFinite(declaredPrimaryText) || declaredPrimaryText <= 0) return 0;+ // Primary labels should remain comfortable to read when cards or+ // auxiliary rows make a one-screen fit too small. Ordinary page+ // scroll preserves that reading size; viewport width still caps it.+ // A long title may already use a smaller fitted font. Preserve that+ // hierarchy rather than enlarging every other node to compensate.+ return labelWidth(declaredPrimaryText);+ }function eligible() {return Boolean(- shell && diagram && svg && ratio >= WIDE_RATIO &&+ shell && diagram && svg && (ratio >= WIDE_RATIO || measuredHeightFit) &&window.innerWidth >= MIN_DESKTOP_WIDTH &&html.getAttribute('data-embed') !== 'true' &&html.getAttribute('data-present') !== 'true' &&@@ -11127,9 +10080,109 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function clear() {html.style.removeProperty('--archify-reader-width');+ html.style.removeProperty('--archify-diagram-max-width');+ html.style.removeProperty('--archify-diagram-min-height');+ html.removeAttribute('data-reader-area');+ html.removeAttribute('data-reader-narrow');html.removeAttribute('data-reader-layout');html.removeAttribute('data-reader-overflow');+ setRail(false);lastWidth = 0;+ automaticAreaHeight = 0;+ settledCap = 0;+ clearLegend();+ }+ function clearLegend() {+ if (!legend || !legend.hasAttribute('data-reader-legend-corner')) return;+ legend.removeAttribute('data-reader-legend-corner');+ legend.style.removeProperty('--archify-reader-legend-transform');+ }+ // Keep the original legend in its SVG: renderer hover/focus selectors and+ // canonical export still own that same group. Ordinary capped reading+ // and fitted automatic sequences borrow the outer corner at 25–100%.+ function syncLegend() {+ var cameraScale = Number(svg && svg.getAttribute('data-view-scale')) || 1;+ var cornerReading = html.getAttribute('data-reader-area') === 'true' || automaticSequence && !readingScroll;+ if (!legend || !eligible() || !cornerReading || cameraScale > 1.001) {+ clearLegend();+ return;+ }+ var box = legend.getBBox();+ var parentMatrix = legend.parentNode.getScreenCTM();+ if (!parentMatrix || !box.width || !box.height) {+ clearLegend();+ return;+ }+ var rect = diagram.getBoundingClientRect();+ var style = window.getComputedStyle(diagram);+ var scale = Math.min(svg.clientWidth / viewBox.width, svg.clientHeight / viewBox.height);+ if (!Number.isFinite(scale) || scale <= 0) {+ clearLegend();+ return;+ }+ var left = rect.left + number(style.borderLeftWidth) + number(style.paddingLeft);+ var right = rect.right - number(style.borderRightWidth) - number(style.paddingRight);+ var bottom = rect.bottom - number(style.borderBottomWidth) - number(style.paddingBottom);+ var top = bottom - box.height * scale;+ var nav = diagram.querySelector('.diagram-nav');+ var navRect = visible(nav) ? nav.getBoundingClientRect() : null;+ // Long or multi-row legends retain their canonical position if the+ // spare corner cannot hold them clear of the dock and content area.+ if (left + box.width * scale > right || top < rect.top + number(style.paddingTop) + number(style.borderTopWidth) ||+ (navRect && left < navRect.right + 10 && left + box.width * scale > navRect.left - 10 &&+ top < navRect.bottom + 10 && bottom > navRect.top - 10)) {+ clearLegend();+ return;+ }+ var matrix = parentMatrix.inverse().translate(left, top).scale(scale).translate(-box.x, -box.y);+ var value = 'matrix(' + [matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f].join(',') + ')';+ if (legend.style.getPropertyValue('--archify-reader-legend-transform') !== value) {+ legend.style.setProperty('--archify-reader-legend-transform', value);+ }+ if (!legend.hasAttribute('data-reader-legend-corner')) legend.setAttribute('data-reader-legend-corner', '');+ }+ // Rail modes: "true" docks beside the diagram, "collapsed" leaves only the+ // reveal control, "overlay" opens a drawer when docking would break the+ // readable floor, and "bottom" stacks notes and index below the diagram.+ function setRail(mode) {+ if (mode) {+ html.setAttribute('data-reader-rail', mode);+ html.style.setProperty('--archify-rail-width', RAIL_WIDTH + 'px');+ html.style.setProperty('--archify-rail-gap', RAIL_GAP + 'px');+ } else {+ html.removeAttribute('data-reader-rail');+ html.style.removeProperty('--archify-rail-width');+ html.style.removeProperty('--archify-rail-gap');+ }+ if (railReveal) railReveal.hidden = mode !== 'collapsed';+ if (railCollapse) {+ railCollapse.hidden = mode !== 'true' && mode !== 'overlay';+ railCollapse.setAttribute('aria-expanded', String(mode === 'true' || mode === 'overlay'));+ }+ if (railPlacement) {+ railPlacement.hidden = !mode || mode === 'collapsed' || (mode === 'bottom' && window.innerWidth < RAIL_MIN_VIEWPORT);+ railPlacement.setAttribute('data-placement', mode === 'bottom' ? 'bottom' : 'right');+ railPlacement.setAttribute('aria-label', viewerText(mode === 'bottom' ? 'viewer.rail.right' : 'viewer.rail.bottom'));+ railPlacement.title = railPlacement.getAttribute('aria-label');+ }+ }+ var outline = document.getElementById('node-outline');+ function hasCards() {+ return Boolean((cards && cards.children.length && !cards.hidden) || (outline && !outline.hidden));+ }+ // Bottom notes and index are reading material below the fold: the first+ // screen belongs to the interactive diagram and its controls.+ function belowFold() {+ return html.getAttribute('data-reader-rail') === 'bottom' ? outerHeight(railPanel) : 0;+ }+ // A docked rail may run past a short diagram down to the viewport floor,+ // so the index uses that space instead of scrolling inside the diagram's+ // height; it never pushes the page into overflow.+ function fitDockedRail() {+ if (html.getAttribute('data-reader-rail') !== 'true' || !railPanel) return;+ var top = railPanel.getBoundingClientRect().top + window.scrollY;+ var floor = window.innerHeight - number(window.getComputedStyle(body).paddingBottom) - top;+ html.style.setProperty('--archify-rail-max', Math.max(diagram.getBoundingClientRect().height, floor) + 'px');}function chromeMetrics() {var bodyStyle = window.getComputedStyle(body);@@ -11143,27 +10196,59 @@ OTHER DEALINGS IN THE FONT SOFTWARE.number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)};}- function applyWidth(width) {- var rounded = Math.round(width);- if (Math.abs(rounded - lastWidth) < 1) return false;+ // `width` is the diagram's reading width. The page shell never narrows+ // below the desktop reader floor, so a narrow, tall diagram keeps a+ // usable header, toolbar, and controls; its SVG is centred instead.+ function applyWidth(width, minWidth) {+ var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));+ var changed = Math.abs(rounded - lastWidth) >= 1;lastWidth = rounded;- html.style.setProperty('--archify-reader-width', rounded + 'px');+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ var diagramWidth = Math.max(1, rounded - railShare - chromeMetrics().diagramX);+ // Content fitting and automatic enlargement never reduce the outer+ // reader region. The SVG alone takes the narrower reading width.+ var automaticWidthCap = measuredHeightFit && viewBox && viewBox.width > 0+ ? viewBox.width * MAX_AUTOMATIC_SCALE : 0;+ if (automaticWidthCap && diagramWidth > automaticWidthCap) {+ diagramWidth = automaticWidthCap;+ html.style.setProperty('--archify-diagram-min-height', automaticAreaHeight + 'px');+ html.setAttribute('data-reader-area', 'true');+ } else {+ // Ordinary automatic diagrams retain their existing document flow.+ // Settling can also stop binding the cap without a new measure.+ html.style.removeProperty('--archify-diagram-min-height');+ html.removeAttribute('data-reader-area');+ }+ if (diagramWidth < Math.max(rounded, shellFloor) - railShare - chromeMetrics().diagramX) {+ html.style.setProperty('--archify-diagram-max-width', diagramWidth + 'px');+ html.setAttribute('data-reader-narrow', 'true');+ } else {+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ }html.setAttribute('data-reader-layout', 'adaptive');- return true;+ syncLegend();+ return changed;}function settleOverflow(minWidth) {if (settleFrame) cancelAnimationFrame(settleFrame);settleFrame = requestAnimationFrame(function () {settleFrame = 0;if (!eligible() || !lastWidth) return;+ fitDockedRail();var overflow = Math.max(document.documentElement.scrollHeight,document.body.scrollHeight- ) - window.innerHeight;- if (overflow > 1 && lastWidth > minWidth) {- applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4));+ ) - window.innerHeight - belowFold();+ // visual-check fails any page whose rounded-up height exceeds the+ // viewport, so even a 1px remainder must be reduced or declared.+ if (overflow > 0 && !readingScroll && lastWidth > Math.ceil(minWidth)) {+ applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);+ settledCap = lastWidth;html.setAttribute('data-reader-overflow', 'reduced');- } else if (overflow > 1) {+ } else if (overflow > 0) {html.setAttribute('data-reader-overflow', 'authored');} else {html.removeAttribute('data-reader-overflow');@@ -11178,18 +10263,72 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}var chrome = chromeMetrics();var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);- var minWidth = Math.min(MIN_READER_WIDTH, viewportCap);+ // Sequence first-screen fitting preserves source text sizes instead+ // of shrinking to the shared hard readability floor.+ var readableWidth = viewBox && viewBox.width > 0+ ? viewBox.width * (automaticSequence ? 1 : minimumReadableScale()) + chrome.diagramX+ : MIN_READER_WIDTH;var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);+ var readableMinimumWidth = automaticSequence || measuredHeightFit && ratio < WIDE_RATIO+ ? readableWidth+ : measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? Math.max(MIN_READER_WIDTH, readableWidth)+ : MIN_READER_WIDTH;+ var minWidth;+ if (automaticSequence) {+ minWidth = Math.min(readableMinimumWidth, maxWidth);+ } else if (measuredHeightFit && ratio < WIDE_RATIO) {+ minWidth = Math.min(readableMinimumWidth, viewportCap);+ } else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {+ minWidth = Math.min(readableMinimumWidth, maxWidth);+ } else {+ minWidth = Math.min(readableMinimumWidth, viewportCap);+ }+ var primaryWidth = primaryReadingWidth();+ var railExtra = RAIL_WIDTH + RAIL_GAP;+ var mode = null;+ // Notes default below the diagram; the right rail is the reader's+ // opt-in and needs a wide viewport.+ if (hasCards() && (readPreference(RAIL_PLACEMENT_KEY) !== 'right' || window.innerWidth < RAIL_MIN_VIEWPORT)) {+ mode = 'bottom';+ } else if (hasCards()) {+ var fitsReadable = readableMinimumWidth + railExtra <= maxWidth;+ var comfortWidth = labelWidth(RAIL_COMFORT_PRIMARY_PX);+ var comfortable = fitsReadable && (!comfortWidth || comfortWidth + chrome.diagramX + railExtra <= maxWidth);+ var collapsedPreference = readPreference(RAIL_COLLAPSED_KEY);+ if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';+ else mode = fitsReadable ? 'true' : 'overlay';+ }+ // Height-fit families with notes below the fold may shrink to their+ // readable floor. Width-first families choose their reading width+ // below and retain page scrolling instead.+ if (mode === 'bottom') primaryWidth = 0;+ if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));+ var docked = mode === 'true';+ setRail(mode);+ chrome = chromeMetrics();+ if (docked) minWidth = Math.min(maxWidth, minWidth + railExtra);+ var stackedBelow = mode === 'bottom' ? 0 : docked ? 0 : outerHeight(cards);var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP +- outerHeight(header) + outerHeight(guided) + outerHeight(cards);+ outerHeight(header) + stackedBelow;var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);- var desiredWidth = availableSvgHeight * ratio + chrome.diagramX;- var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth));- applyWidth(width);+ var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);+ // Compact automatic sequences fit the first screen without shrinking+ // their authored text. Longer sequences retain reading width and page+ // scroll; other width-first families keep their existing strategy.+ var sequenceFits = automaticSequence && Math.min(desiredWidth, maxWidth) >=+ readableWidth + (docked ? railExtra : 0);+ readingScroll = widthFirstReading && !sequenceFits;+ if (readingScroll) desiredWidth = maxWidth;+ // Only a binding enlargement cap needs a separate normal reader area.+ // Uncapped diagrams keep their existing natural height and Chrome fit.+ automaticAreaHeight = availableSvgHeight + chrome.diagramY;+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));+ applyWidth(width, minWidth);settleOverflow(minWidth);return {ratio: ratio,- width: Math.round(width),+ width: lastWidth,availableSvgHeight: Math.round(availableSvgHeight),fixedHeight: Math.round(fixedHeight)};@@ -11212,37 +10351,71 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Math.round(shellRect.width * 100) / 100,Math.round(shellRect.height * 100) / 100,Math.round(diagramRect.width * 100) / 100,- Math.round(diagramRect.height * 100) / 100+ Math.round(diagramRect.height * 100) / 100,+ legend && legend.hasAttribute('data-reader-legend-corner') ? legend.style.getPropertyValue('--archify-reader-legend-transform') : ''].join('|');}+ function layoutPending() { return Boolean(frame || settleFrame); }function whenStable() {return Archify.waitForStableLayout({schedule: schedule,- pending: function () { return Boolean(frame || settleFrame); },+ pending: layoutPending,snapshot: stableSnapshot,timeoutMessage: 'Adaptive reader layout did not reach stable dimensions.'});}+ archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };- window.addEventListener('resize', schedule, { passive: true });+ window.addEventListener('resize', function () {+ settledCap = 0;+ schedule();+ }, { passive: true });window.addEventListener('load', schedule, { once: true });+ window.addEventListener('beforeprint', clearLegend);+ window.addEventListener('afterprint', schedule);if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});if (typeof ResizeObserver === 'function') {var resizeObserver = new ResizeObserver(schedule);- [header, guided, cards].forEach(function (element) { if (element) resizeObserver.observe(element); });+ [header, cards].forEach(function (element) { if (element) resizeObserver.observe(element); });}if (typeof MutationObserver === 'function') {var contentObserver = new MutationObserver(schedule);- if (guided) contentObserver.observe(guided, { attributes: true, childList: true, subtree: true });if (cards) contentObserver.observe(cards, { attributes: true, childList: true, subtree: true });contentObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });}+ // Reader choices persist across artifacts; a resize-style remeasure+ // applies them without reloading.+ function chooseRail(key, value) {+ writePreference(key, value);+ settledCap = 0;+ schedule();+ }+ function collapseRail() {+ chooseRail(RAIL_COLLAPSED_KEY, '1');+ if (railReveal) requestAnimationFrame(function () { try { railReveal.focus({ preventScroll: true }); } catch (_) {} });+ }+ if (railReveal) railReveal.addEventListener('click', function () { chooseRail(RAIL_COLLAPSED_KEY, '0'); });+ if (railCollapse) railCollapse.addEventListener('click', collapseRail);+ if (railPlacement) railPlacement.addEventListener('click', function () {+ var toBottom = html.getAttribute('data-reader-rail') !== 'bottom';+ if (!toBottom) writePreference(RAIL_COLLAPSED_KEY, '0');+ chooseRail(RAIL_PLACEMENT_KEY, toBottom ? 'bottom' : 'right');+ });+ document.addEventListener('keydown', function (event) {+ if (event.key === 'Escape' && html.getAttribute('data-reader-rail') === 'overlay') collapseRail();+ });+ document.addEventListener('pointerdown', function (event) {+ if (html.getAttribute('data-reader-rail') !== 'overlay' || !railPanel) return;+ if (!railPanel.contains(event.target) && !(railReveal && railReveal.contains(event.target))) chooseRail(RAIL_COLLAPSED_KEY, '1');+ });+ if (typeof ResizeObserver === 'function' && railPanel) new ResizeObserver(schedule).observe(railPanel);schedule();return {measure: measure,schedule: schedule,whenStable: whenStable,+ syncLegend: syncLegend,active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },receipt: function () { return { ratio: ratio, width: lastWidth }; }};@@ -11391,8 +10564,36 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};return lastReceipt;}+ /* When the stage runs below the viewport, the dock lifts to the viewport+ floor so its controls stay reachable while reading. Stage-rail+ decisions and receipts use its resting position, so the lift never+ feeds back into layout. */+ var lift = 0;+ var liftFrame = 0;+ function restingNavRect() {+ var rect = nav.getBoundingClientRect();+ if (!lift) return rect;+ return { x: rect.x, y: rect.y + lift, left: rect.left, right: rect.right, top: rect.top + lift, bottom: rect.bottom + lift, width: rect.width, height: rect.height };+ }+ function updateLift() {+ liftFrame = 0;+ var next = 0;+ if (eligible()) {+ var rest = restingNavRect();+ var box = container.getBoundingClientRect();+ next = Math.round(Math.max(0, Math.min(rest.bottom - (window.innerHeight - 16), rest.top - box.top - 16)));+ }+ if (next === lift) return;+ lift = next;+ if (lift) container.style.setProperty('--archify-dock-lift', lift + 'px');+ else container.style.removeProperty('--archify-dock-lift');+ }+ function scheduleLift() {+ if (!liftFrame) liftFrame = requestAnimationFrame(updateLift);+ }function measure() {frame = 0;+ scheduleLift();if (probingBaseline) return null;if (!eligible()) return clear({ preserveBaseline: !cameraAtBaseline() });@@ -11406,7 +10607,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (reserve === 0 && restorableReserve > 0) {if (writeReserve(restorableReserve)) return null;}- var cameraNavRect = nav.getBoundingClientRect();+ var cameraNavRect = restingNavRect();var cameraLegendRect = visible(legend) ? legend.getBoundingClientRect() : null;var cameraStageRect = protectedStageRect();var cameraIntersectionArea = usable(cameraLegendRect) && intersectionArea(cameraNavRect, cameraStageRect) > 0@@ -11426,7 +10627,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return lastReceipt;}- var navRect = nav.getBoundingClientRect();+ var navRect = restingNavRect();var legendRect = visible(legend) ? legend.getBoundingClientRect() : null;var stageRect = protectedStageRect();if (!usable(navRect) || !usable(stageRect)) return clear();@@ -11448,7 +10649,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (writeReserve(reserve + remaining)) return null;}- navRect = nav.getBoundingClientRect();+ navRect = restingNavRect();legendRect = visible(legend) ? legend.getBoundingClientRect() : null;stageRect = protectedStageRect();stageGap = navRect.top - stageRect.bottom;@@ -11503,10 +10704,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function stableSnapshot() {var containerRect = container ? container.getBoundingClientRect() : { width: 0, height: 0 };- var navRect = nav ? nav.getBoundingClientRect() : { top: 0, left: 0 };+ var navRect = nav ? restingNavRect() : { top: 0, left: 0 };var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };return [reserve,+ lift,Math.round(containerRect.width * 100) / 100,Math.round(containerRect.height * 100) / 100,Math.round(navRect.left * 100) / 100,@@ -11517,16 +10719,19 @@ OTHER DEALINGS IN THE FONT SOFTWARE.lastReceipt ? lastReceipt.stageGap : ''].join('|');}+ function layoutPending() { return Boolean(frame || settleFrame || liftFrame || probingBaseline); }function whenStable() {return Archify.waitForStableLayout({schedule: schedule,- pending: function () { return Boolean(frame || settleFrame || probingBaseline); },+ pending: layoutPending,snapshot: stableSnapshot,timeoutMessage: 'Viewer chrome layout did not reach stable dimensions.'});}+ archifyLayoutOwners.viewerChrome = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };window.addEventListener('resize', reprobe, { passive: true });+ window.addEventListener('scroll', scheduleLift, { passive: true });window.addEventListener('load', schedule, { once: true });window.addEventListener('beforeprint', schedule);window.addEventListener('afterprint', reprobe);@@ -11534,10 +10739,18 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (typeof ResizeObserver === 'function') {var resizeObserver = new ResizeObserver(schedule);[nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });+ // Camera zoom changes outer page flow without changing intrinsic SVG+ // size. Follow that box for dock placement, independently of scrolling+ // and the baseline stage-rail measurement.+ new ResizeObserver(scheduleLift).observe(container);}if (typeof MutationObserver === 'function') {var contentObserver = new MutationObserver(function (records) {- var viewerModeChanged = records.some(function (record) { return record.target === html; });+ // A theme switch changes paint, not the stage geometry. Reprobing+ // drops the bottom rail for several frames and makes the diagram jump.+ var viewerModeChanged = records.some(function (record) {+ return record.target === html && record.attributeName !== 'data-theme';+ });if (viewerModeChanged) reprobe();else schedule();});@@ -11555,11 +10768,55 @@ OTHER DEALINGS IN THE FONT SOFTWARE.reprobe: reprobe,whenStable: whenStable,stageRect: protectedStageRect,+ dockRect: function () { return nav ? restingNavRect() : null; },active: function () { return reserve > 0; },receipt: function () { return lastReceipt || measure(); }};})();+ Archify.layoutStability = {+ whenStable: function () {+ var reader = archifyLayoutOwners.reader;+ var chrome = archifyLayoutOwners.viewerChrome;+ if (!reader || !chrome) {+ return Promise.reject(new Error('Joint layout owners are unavailable.'));+ }+ var observedFontsReady = document.fonts && document.fonts.ready;+ var fontCyclePending = false;+ var fontGeneration = 0;+ function scheduleOwners() { reader.schedule(); chrome.schedule(); }+ function fontsPending() {+ var fonts = document.fonts;+ var ready = fonts && fonts.ready;+ if (ready && (ready !== observedFontsReady || (fonts.status === 'loading' && !fontCyclePending))) {+ observedFontsReady = ready;+ fontCyclePending = true;+ var generation = ++fontGeneration;+ ready.catch(function () {}).then(function () {+ if (generation !== fontGeneration) return;+ fontCyclePending = false;+ scheduleOwners();+ });+ }+ return fontCyclePending || Boolean(fonts && fonts.status === 'loading');+ }+ return Archify.waitForStableLayout({+ maximumFrames: 960,+ schedule: scheduleOwners,+ pending: function () {+ // Recapture readiness for font cycles that begin during sampling.+ return fontsPending() || reader.pending() || chrome.pending();+ },+ snapshot: function () {+ return JSON.stringify([+ ['reader', reader.snapshot()],+ ['viewerChrome', chrome.snapshot()]+ ]);+ },+ timeoutMessage: 'Joint reader and viewer chrome layout did not reach stable dimensions.'+ });+ }+ };Archify.view = (function () {var container = document.querySelector('.diagram-container');var svg = container.querySelector('svg');@@ -11569,6 +10826,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');var inBtn = container.querySelector('[data-view="in"]');var state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ var minimumZoom = 0.25;+ var maximumZoom = 3;var drag = null;var cameraTimer = null;var cameraFrame = null;@@ -11577,12 +10836,25 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var clipFrame = 0;var resizeFrame = 0;var autoScrollUntil = 0;+ var originalFlowHeight = container.style.getPropertyValue('height');+ var originalFlowHeightPriority = container.style.getPropertyPriority('height');+ var compactPageFlow = false;var viewBox = svg.viewBox && svg.viewBox.baseVal;function clamp() {var width = svg.clientWidth || 1;var height = svg.clientHeight || 1;+ if (state.scale < 1) {+ var visibleWidth = Math.min(width, container.clientWidth);+ var availableX = visibleWidth - width * state.scale;+ state.x = availableX >= 0 ? container.scrollLeft + availableX / 2+ : Math.max(container.scrollLeft + availableX, Math.min(container.scrollLeft, state.x));+ // Long sequences keep their first rows in view instead of centering+ // inside a layout box that can be several screens tall.+ state.y = height > window.innerHeight ? 0 : height * (1 - state.scale) / 2;+ return;+ }state.x = Math.min(0, Math.max(width - width * state.scale, state.x));state.y = Math.min(0, Math.max(height - height * state.scale, state.y));}@@ -11609,15 +10881,15 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var y;var width;var height;- if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && state.scale >= 1) {x = viewBox.x + container.scrollLeft / metrics.scale;y = viewBox.y;width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));height = viewBox.height;} else {- x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;+ x = viewBox.x + (((container.scrollLeft - state.x) / state.scale) - metrics.offsetX) / metrics.scale;y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;- width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);+ width = Math.min(viewBox.width, Math.min(metrics.width, container.clientWidth) / state.scale / metrics.scale);height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);}width = Math.max(1, Math.min(viewBox.width, width));@@ -11682,13 +10954,41 @@ OTHER DEALINGS IN THE FONT SOFTWARE.Math.abs(rendered.x - state.x) < 0.05 &&Math.abs(rendered.y - state.y) < 0.05;}+ // CSS transforms keep the SVG's intrinsic layout size. Shrink only its+ // outer page-flow box for long ordinary diagrams, never the SVG itself:+ // changing its height would feed the smaller size back into camera math.+ function syncPageFlow(camera) {+ camera = camera || state;+ var html = document.documentElement;+ var height = svg.clientHeight;+ var ordinary = html.getAttribute('data-embed') !== 'true' &&+ html.getAttribute('data-present') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches);+ // Restore ordinary flow as soon as the target reaches 100%. Chrome+ // uses that target to resume baseline rail measurement; retaining a+ // partially shrunk box during the CSS transition would inflate reserve.+ if (ordinary && state.scale < 1 && camera.scale < 1 && height > window.innerHeight) {+ var style = getComputedStyle(container);+ var chrome = ['paddingTop', 'paddingBottom', 'borderTopWidth', 'borderBottomWidth']+ .reduce(function (total, key) { return total + (parseFloat(style[key]) || 0); }, 0);+ var flowHeight = Math.ceil(height * camera.scale + Math.max(0, camera.y) + chrome) + 'px';+ if (container.style.getPropertyValue('height') !== flowHeight) container.style.setProperty('height', flowHeight);+ compactPageFlow = true;+ } else if (compactPageFlow) {+ if (originalFlowHeight) container.style.setProperty('height', originalFlowHeight, originalFlowHeightPriority);+ else container.style.removeProperty('height');+ compactPageFlow = false;+ }+ }function syncViewportClip() {if (clipFrame) cancelAnimationFrame(clipFrame);clipFrame = 0;function sample() {clipFrame = 0;var rendered = sampleRenderedState();+ syncPageFlow(rendered);clipToViewport(rendered);+ if (Archify.readerLayout && typeof Archify.readerLayout.syncLegend === 'function') Archify.readerLayout.syncLegend();if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);}sample();@@ -11696,12 +10996,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function apply() {clamp();svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';+ svg.setAttribute('data-view-scale', String(state.scale));syncViewportClip();renderControls();- outBtn.disabled = state.scale <= 1;- inBtn.disabled = state.scale >= 3;+ outBtn.disabled = state.scale <= minimumZoom;+ inBtn.disabled = state.scale >= maximumZoom;container.classList.toggle('is-pannable', state.scale > 1);- svg.setAttribute('data-view-scale', String(state.scale));if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {Archify.viewerChromeLayout.schedule();@@ -11781,18 +11081,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.container.removeAttribute('data-camera-transaction');}function interruptCamera(reason) {- if (Archify.guidedViews && Archify.guidedViews.cancelHandoff) {- Archify.guidedViews.cancelHandoff(reason || 'manual');- }var rendered = sampleRenderedState();stopCameraMotion(reason || 'manual', false);state = rendered;state.mode = 'manual';apply();renderControls();- if (Archify.guidedViews && Archify.guidedViews.isPlaying && Archify.guidedViews.isPlaying()) {- Archify.guidedViews.pause();- }if (Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: reason || 'manual' });}@@ -11801,8 +11095,14 @@ OTHER DEALINGS IN THE FONT SOFTWARE.options = options || {};if (options.manual !== false) interruptCamera();var previous = state.scale;- next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));+ next = Math.max(minimumZoom, Math.min(maximumZoom, Math.round(next * 4) / 4));if (next === previous) return;+ var longDiagram = svg.clientHeight > window.innerHeight && Math.min(previous, next) < 1;+ var before = longDiagram ? svg.getBoundingClientRect() : null;+ var anchorY = before ? Math.max(0, Math.min(window.innerHeight, before.bottom) + Math.max(0, before.top)) / 2 : 0;+ if (before && (before.bottom <= 0 || before.top >= window.innerHeight)) anchorY = window.innerHeight / 2;+ var logicalY = before ? Math.max(0, Math.min(svg.clientHeight, (anchorY - before.top) / previous)) : 0;+ var documentTop = before ? window.scrollY + before.top - state.y : 0;var centerX = (svg.clientWidth || 1) / 2;var centerY = (svg.clientHeight || 1) / 2;var contentX = (centerX - state.x) / previous;@@ -11811,6 +11111,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.state.x = centerX - contentX * next;state.y = centerY - contentY * next;apply();+ if (longDiagram) {+ var scaledHeight = svg.clientHeight * next;+ var pageY = scaledHeight <= window.innerHeight ? documentTop + state.y+ : documentTop + state.y + logicalY * next - anchorY;+ window.scrollTo({ left: window.scrollX, top: Math.max(0, pageY), behavior: 'instant' });+ }}function reset(options) {options = options || {};@@ -11852,8 +11158,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return true;}function semanticIds(ids, includeNeighbors) {- var seeds = {};- var wanted = {};+ var seeds = Object.create(null);+ var wanted = Object.create(null);(ids || []).forEach(function (id) { seeds[id] = true; wanted[id] = true; });if (includeNeighbors) {Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {@@ -11887,8 +11193,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var maxX = Math.max.apply(Math, boxes.map(function (box) { return box.x + box.width; }));var maxY = Math.max.apply(Math, boxes.map(function (box) { return box.y + box.height; }));var bounds = {- x: contentOffsetX + minX * contentScale,- y: contentOffsetY + minY * contentScale,+ x: contentOffsetX + (minX - viewBox.x) * contentScale,+ y: contentOffsetY + (minY - viewBox.y) * contentScale,width: Math.max(1, (maxX - minX) * contentScale),height: Math.max(1, (maxY - minY) * contentScale)};@@ -11992,7 +11298,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!boxes.length || !viewBox || viewBox.width <= 0) return false;var minX = Math.min.apply(Math, boxes.map(function (box) { return box.x; }));var maxX = Math.max.apply(Math, boxes.map(function (box) { return box.x + box.width; }));- var center = ((minX + maxX) / 2 / viewBox.width) * (svg.clientWidth || 1);+ var center = (((minX + maxX) / 2 - viewBox.x) / viewBox.width) * (svg.clientWidth || 1);var target = Math.max(0, Math.min(svg.clientWidth - container.clientWidth, center - container.clientWidth / 2));var transaction = cameraReceipt({ scrollLeft: target }, options);cameraTransaction = transaction;@@ -12010,9 +11316,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return transaction;}function syncSemantic() {- var guided = Archify.guidedViews && typeof Archify.guidedViews.focus === 'function'- ? Archify.guidedViews.focus() : [];- if (guided && guided.length) return reveal(guided, { reason: 'guided-sync' });var active = Archify.focus && typeof Archify.focus.active === 'function' ? Archify.focus.active() : null;if (typeof active === 'string') return reveal([active], { includeNeighbors: true, reason: 'focus-sync' });if (Array.isArray(active) && active.length) return reveal(active, { reason: 'selection-sync' });@@ -12070,6 +11373,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE.else apply();});});+ // Reader width and Chrome reserve can change without a window resize.+ // Observe their resulting sizes; the SVG remains intrinsically sized, so+ // the outer flow height cannot feed back into its camera base.+ if (typeof ResizeObserver === 'function') {+ var flowObserver = new ResizeObserver(function () { syncPageFlow(sampleRenderedState()); });+ flowObserver.observe(svg);+ flowObserver.observe(container);+ }+ if (typeof MutationObserver === 'function') {+ new MutationObserver(function () { syncPageFlow(sampleRenderedState()); })+ .observe(document.documentElement, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });+ }+ var printMedia = window.matchMedia && window.matchMedia('print');+ if (printMedia && printMedia.addEventListener) printMedia.addEventListener('change', function () { syncPageFlow(sampleRenderedState()); });window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });apply();pinControls();@@ -12469,8 +11786,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.: viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {- var active = item.node.hasAttribute('data-focus-selected') ||- item.node.getAttribute('data-story-beat-state') === 'active';+ var active = item.node.hasAttribute('data-focus-selected');if (active) item.rect.setAttribute('data-radar-active', 'true');else item.rect.removeAttribute('data-radar-active');});@@ -12494,6 +11810,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (next) {clearSpaceRetry();spaceRetryCount = 0;+ trigger.setAttribute('data-radar-requested', 'true');build();attemptRequestedOpen(options);} else {@@ -12506,11 +11823,13 @@ OTHER DEALINGS IN THE FONT SOFTWARE.resetDockingStyles();restorePassport();feedback.hidden = true;+ // Focus before collapsing: the dock hides this trigger at 100% unless it holds focus.+ if (options.restoreFocus === true) trigger.focus();trigger.setAttribute('aria-expanded', 'false');+ trigger.removeAttribute('data-radar-requested');trigger.removeAttribute('data-radar-space-limited');trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));trigger.title = viewerText('viewer.nav.radar.title');- if (options.restoreFocus === true) trigger.focus();}return next;}@@ -12531,9 +11850,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function focusNode(id) {var main = diagram.querySelector('[data-node-id="' + id + '"]');if (!main) return false;- if (Archify.guidedViews && typeof Archify.guidedViews.showAll === 'function') {- Archify.guidedViews.showAll({ clearFocus: false, updateUrl: false });- }if (Archify.focus && typeof Archify.focus.set === 'function') {Archify.focus.set(id, { toggle: false });}@@ -12718,8 +12034,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE./* ============================================================Presentation Stage — a shareable, viewport-filling live view.It changes only HTML layout and URL state; SVG semantics and export- serialization remain untouched. Escape first clears an active guided- view/focus, then exits the stage.+ serialization remain untouched. Escape first clears an active+ focus, then exits the stage.============================================================ */Archify.presentation = (function () {var html = document.documentElement;@@ -12792,7 +12108,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE./* ============================================================Node Finder — stable-ID search over the existing semantic SVG.Search never changes the IR or SVG geometry: selecting a result resets- the viewport, releases a guided view, and delegates to semantic focus.+ the viewport and delegates to semantic focus.============================================================ */Archify.finder = (function () {var html = document.documentElement;@@ -12914,9 +12230,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.try { item.node.focus({ preventScroll: true }); } catch (_) { try { item.node.focus(); } catch (_) {} }return true;}- if (Archify.guidedViews && typeof Archify.guidedViews.showAll === 'function') {- Archify.guidedViews.showAll({ clearFocus: false, updateUrl: false });- }if (Archify.view && typeof Archify.view.reset === 'function') Archify.view.reset({ automatic: true });Archify.focus.set(id, { toggle: false });if (Archify.view && typeof Archify.view.reveal === 'function') {@@ -12954,6 +12267,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var links = document.createElement('em');links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;+ if (item.links === 0) links.setAttribute('data-zero', 'true');var meta = document.createElement('small');meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');@@ -13055,6 +12369,146 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* ============================================================+ Node Outline — a rail index of the semantic nodes, grouped by their+ authored context. Hover previews neighbors through Intent Trace;+ selection delegates to the Finder's focus-and-reveal path. It reads+ the canonical SVG and never changes geometry or export state.+ ============================================================ */+ Archify.outline = (function () {+ var panel = document.getElementById('node-outline');+ var list = document.getElementById('node-outline-list');+ var count = document.getElementById('node-outline-count');+ var svg = document.querySelector('.diagram-container > svg');+ if (!panel || !list || !svg) return { count: 0 };+ var TONES = ['frontend', 'backend', 'database', 'cloud', 'security', 'messagebus', 'external'];+ var nodes = Array.from(svg.querySelectorAll('[data-node-id]')).filter(function (node) {+ return !node.closest('[data-legend-hit], .legend') && node.getAttribute('data-node-label');+ });+ var buttons = Object.create(null);++ function tone(node) {+ var shape = node.querySelector('[class*="c-"]:not(.c-mask)');+ var match = shape && /(?:^|\s)c-([a-z]+)/.exec(shape.getAttribute('class') || '');+ return match && TONES.indexOf(match[1]) !== -1 ? match[1] : 'external';+ }+ function preview(id) {+ if (Archify.intentTrace && typeof Archify.intentTrace.show === 'function') Archify.intentTrace.show(id);+ }+ function clearPreview() {+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') Archify.intentTrace.clear({ announce: false });+ }+ function select(id) {+ clearPreview();+ var finder = Archify.finder;+ if (finder && typeof finder.select === 'function') {+ if (finder.select(id)) return;+ var routeMode = Archify.routeProbe && typeof Archify.routeProbe.active === 'function' ? Archify.routeProbe.active() : 'idle';+ // Only an active endpoint picker owns a refused selection.+ if (routeMode === 'source' || routeMode === 'target') return;+ }+ if (Archify.focus && typeof Archify.focus.set === 'function') Archify.focus.set(id, { toggle: false });+ }++ var groups = [];+ var byContext = Object.create(null);+ nodes.forEach(function (node) {+ // Group by the outermost context (lane or stage); deeper segments+ // such as workflow groups and columns would split the index into+ // one-node sections.+ var context = (node.getAttribute('data-node-context') || '').split(' \u203a ')[0];+ if (!byContext[context]) {+ byContext[context] = { label: context, nodes: [] };+ groups.push(byContext[context]);+ }+ byContext[context].nodes.push(node);+ });++ groups.forEach(function (group) {+ var section = document.createElement('li');+ section.className = 'node-outline-group';+ if (groups.length > 1 && group.label) {+ var heading = document.createElement('span');+ heading.className = 'node-outline-heading';+ var headingLabel = document.createElement('span');+ headingLabel.textContent = group.label;+ var headingCount = document.createElement('small');+ headingCount.textContent = String(group.nodes.length);+ heading.appendChild(headingLabel);+ heading.appendChild(headingCount);+ section.appendChild(heading);+ }+ var items = document.createElement('ul');+ group.nodes.forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ var item = document.createElement('li');+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'node-outline-item';+ button.setAttribute('data-outline-node', id);+ button.style.setProperty('--outline-tone', 'var(--' + tone(node) + '-stroke)');+ var dot = document.createElement('span');+ dot.className = 'node-outline-dot';+ dot.setAttribute('aria-hidden', 'true');+ var label = document.createElement('strong');+ label.textContent = node.getAttribute('data-node-label');+ button.appendChild(dot);+ button.appendChild(label);+ var sublabel = node.getAttribute('data-node-sublabel');+ if (sublabel) {+ var detail = document.createElement('small');+ detail.textContent = sublabel;+ button.appendChild(detail);+ }+ button.addEventListener('pointerenter', function () { preview(id); });+ button.addEventListener('focus', function () { preview(id); });+ button.addEventListener('pointerleave', clearPreview);+ button.addEventListener('blur', clearPreview);+ button.addEventListener('click', function () { select(id); });+ buttons[id] = button;+ item.appendChild(button);+ items.appendChild(item);+ });+ section.appendChild(items);+ list.appendChild(section);+ });++ var previewing = null;+ function syncCurrent() {+ nodes.forEach(function (node) {+ var button = buttons[node.getAttribute('data-node-id')];+ if (!button) return;+ if (node.getAttribute('aria-pressed') === 'true') button.setAttribute('aria-current', 'true');+ else button.removeAttribute('aria-current');+ });+ // Mirror a diagram-side hover so the index answers "where is this?".+ var active = buttons[svg.getAttribute('data-intent-trace-active') || ''] || null;+ if (active === previewing) return;+ if (previewing) previewing.removeAttribute('data-previewing');+ previewing = active;+ if (!active) return;+ active.setAttribute('data-previewing', '');+ if (!active.matches(':hover') && panel.offsetParent) {+ var box = list.getBoundingClientRect();+ var item = active.getBoundingClientRect();+ if (item.top < box.top || item.bottom > box.bottom - 24) {+ list.scrollTop += item.top - box.top - box.height / 2 + item.height / 2;+ }+ }+ }+ if (typeof MutationObserver === 'function') {+ new MutationObserver(syncCurrent).observe(svg, { attributes: true, subtree: true, attributeFilter: ['aria-pressed', 'data-intent-trace-active'] });+ }+ if (count) count.textContent = String(nodes.length);+ panel.hidden = nodes.length < 2;+ syncCurrent();+ if (Archify.readerLayout && typeof Archify.readerLayout.schedule === 'function') Archify.readerLayout.schedule();++ return { count: nodes.length, select: select };+ })();+++/* ============================================================Route Probe — shortest directed path over compiled semantics.The graph is read from renderer-owned stable IDs and relationship@@ -13161,7 +12615,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function edgeShapes(edge) {if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function removeOverlay() {Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {@@ -13321,7 +12775,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function outgoingByNode() {var byId = nodesById();- var outgoing = {};+ var outgoing = Object.create(null);edges().forEach(function (edge) {var from = edge.getAttribute('data-edge-from');var to = edge.getAttribute('data-edge-to');@@ -13333,7 +12787,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function reachableFrom(source) {var outgoing = outgoingByNode();- var reached = {};+ var reached = Object.create(null);var queue = [source];reached[source] = true;for (var cursor = 0; cursor < queue.length; cursor += 1) {@@ -13348,7 +12802,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function hopDistancesFrom(source) {var outgoing = outgoingByNode();- var distances = {};+ var distances = Object.create(null);var queue = [source];distances[source] = 0;for (var cursor = 0; cursor < queue.length; cursor += 1) {@@ -13364,7 +12818,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function shortestDirectedPath(source, target) {if (source === target) return null;var outgoing = outgoingByNode();- var previous = {};+ var previous = Object.create(null);var queue = [source];previous[source] = null;for (var cursor = 0; cursor < queue.length && !Object.prototype.hasOwnProperty.call(previous, target); cursor += 1) {@@ -13391,6 +12845,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function traceGeometry(shape, step) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -13491,6 +12947,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function journeyGeometry(shape) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -13851,9 +13309,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (Array.isArray(focused)) focused = null;clear({ updateUrl: false, preserveView: true, restoreFocus: false });if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') Archify.intentTrace.clear({ announce: false });- if (Archify.guidedViews && typeof Archify.guidedViews.showAll === 'function') {- Archify.guidedViews.showAll({ clearFocus: false, updateUrl: false });- }if (Archify.focus && typeof Archify.focus.clear === 'function') {Archify.focus.clear({ updateUrl: false, preserveView: true });}@@ -13894,7 +13349,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var sourceIds = nodes().map(function (node) { return node.getAttribute('data-node-id'); }).filter(function (id) {return outgoing[id] && outgoing[id].length;});- var sourceBadges = {};+ var sourceBadges = Object.create(null);sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',@@ -13910,7 +13365,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (mode === 'target' && startId && byId[startId]) {var distances = hopDistancesFrom(startId);var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });- var targetBadges = {};+ var targetBadges = Object.create(null);targetIds.forEach(function (id) {targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});@@ -14090,6 +13545,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Semantic Lens — a counted, viewer-only legend over data-node-kind.One selected kind reveals every authored relationship touching it.@@ -14119,7 +13575,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var MAX_LENS_FLOW_EDGES = 24;function nodesById() {- var byId = {};+ var byId = Object.create(null);Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {var id = node.getAttribute('data-node-id');if (id && !byId[id]) byId[id] = node;@@ -14153,7 +13609,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function edgeShapes(edge) {if (!edge) return [];if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];- return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ return Array.prototype.slice.call(edge.querySelectorAll('path:not([data-ambient-flow-overlay]), line, polyline'));}function legendSourceBounds(entry) {var bounds = null;@@ -14275,7 +13731,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return selectedKinds.length > 0 || !panel.hidden || html.getAttribute('data-present') === 'true' ||svg.hasAttribute('data-focus-active') || svg.hasAttribute('data-intent-trace-active') ||svg.hasAttribute('data-route-picking') || svg.hasAttribute('data-route-active') ||- svg.hasAttribute('data-story-active') || svg.hasAttribute('data-relationship-preview-active');+ svg.hasAttribute('data-relationship-preview-active');}function previewLegendKind(entry) {clearLegendPreview();@@ -14286,7 +13742,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.return (byId[id].getAttribute('data-node-kind') || 'neutral') === kind;});if (!matches.length) return false;- var chosen = {};+ var chosen = Object.create(null);matches.forEach(function (id) {chosen[id] = true;byId[id].setAttribute('data-legend-preview-match', '');@@ -14326,6 +13782,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function flowGeometry(shape, direction, step) {var clone = shape.cloneNode(false);+ if (shape.getAttribute('data-motion-path')) clone.setAttribute('d', shape.getAttribute('data-motion-path'));+ clone.removeAttribute('data-motion-path');clone.removeAttribute('id');clone.removeAttribute('class');clone.removeAttribute('style');@@ -14462,7 +13920,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.options = options || {};cleanSvgState();var byId = nodesById();- var nodeKind = {};+ var nodeKind = Object.create(null);Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {status.textContent = viewerText('viewer.lens.choose');@@ -14547,9 +14005,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (Archify.routeProbe && typeof Archify.routeProbe.clear === 'function') {Archify.routeProbe.clear({ updateUrl: false, restoreFocus: false });}- if (Archify.guidedViews && typeof Archify.guidedViews.showAll === 'function') {- Archify.guidedViews.showAll({ clearFocus: false, updateUrl: false });- }if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') {Archify.intentTrace.clear({ announce: false });}@@ -14766,10 +14221,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+/* ============================================================Diagram Guide — a factual command deck over existing interactions.Counts come from compiled semantics; actions delegate to Finder, Route- Probe, Semantic Radar, Semantic Lens, Story Trail, Presentation, theme, export, and+ Probe, Semantic Radar, Semantic Lens, Presentation, theme, export, andcamera without adding a second command implementation or SVG state.============================================================ */Archify.guide = (function () {@@ -14782,13 +14238,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var stats = document.getElementById('diagram-guide-stats');var actions = document.getElementById('diagram-guide-actions');var feedback = document.getElementById('diagram-guide-feedback');- var storyBtn = actions.querySelector('[data-guide-action="story"]');- var storyCopy = document.getElementById('diagram-guide-story-copy');var routePanel = document.getElementById('route-probe');+ var returnFocus = null;- function viewCount() {- return Archify.guidedViews && Number(Archify.guidedViews.count) || 0;- }function relationshipCount() {var seen = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {@@ -14804,17 +14256,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function renderFacts() {var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();- var views = viewCount();stats.textContent = viewerText('viewer.guide.facts', {nodes: viewerCount('viewer.guide.fact.node', nodes),- relationships: viewerCount('viewer.guide.fact.relationship', relationships),- views: viewerCount('viewer.guide.fact.view', views)+ relationships: viewerCount('viewer.guide.fact.relationship', relationships)});- storyBtn.disabled = views === 0;- storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');- storyCopy.textContent = views- ? viewerCount('viewer.guide.story.available', views)- : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14827,7 +14272,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-expanded', 'false');trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';- if (options.restoreFocus !== false) trigger.focus();+ if (options.restoreFocus !== false) {+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;+ if (target && typeof target.focus === 'function') target.focus();+ }return false;}function open() {@@ -14837,12 +14287,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });- if (Archify.guidedViews && Archify.guidedViews.isPlaying && Archify.guidedViews.isPlaying()) {- Archify.guidedViews.pause();- }if (Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: 'guide' });}+ returnFocus = document.activeElement;renderFacts();panel.hidden = false;html.setAttribute('data-guide-open', 'true');@@ -14859,16 +14307,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.function toggle() { return panel.hidden ? open() : close(); }function execute(action) {feedback.textContent = '';- if (action === 'story' && !viewCount()) {- feedback.textContent = viewerText('viewer.guide.noStory');- return false;- }close({ restoreFocus: false });if (action === 'find') return Archify.finder.open();if (action === 'route') return Archify.routeProbe.begin({ focusNode: true });if (action === 'map') return Archify.radar.open();if (action === 'lens') return Archify.semanticLens.open();- if (action === 'story') return Archify.guidedViews.play();if (action === 'present') return Archify.presentation.enter();if (action === 'export') return Archify.exportMenu.open();if (action === 'theme') return Archify.theme.toggle();@@ -14884,7 +14327,6 @@ OTHER DEALINGS IN THE FONT SOFTWARE.r: 'route',m: 'map',l: 'lens',- p: 'story',f: 'present',e: 'export',t: 'theme',@@ -14933,7 +14375,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14946,13 +14390,28 @@ OTHER DEALINGS IN THE FONT SOFTWARE.facts: function () {return {nodes: svg.querySelectorAll('[data-node-id]').length,- relationships: relationshipCount(),- views: viewCount()+ relationships: relationshipCount()};}};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.htmlindex a2bbff81..6e99b1e8 100644--- a/examples/sequence-cache-miss-request.html+++ b/examples/sequence-cache-miss-request.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5578,7 +5599,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7525,10 +7546,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7541,9 +7562,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7552,20 +7576,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7580,6 +7608,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7602,7 +7631,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7623,8 +7652,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7774,7 +7803,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14218,7 +14247,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14318,7 +14349,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14337,6 +14370,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/subscription-billing-rendered.html b/examples/subscription-billing-rendered.htmlindex dd559a59..bc6800bd 100644--- a/examples/subscription-billing-rendered.html+++ b/examples/subscription-billing-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5967,7 +5988,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7902,10 +7923,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7918,9 +7939,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7929,20 +7953,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7957,6 +7985,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7979,7 +8008,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -8000,8 +8029,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -8151,7 +8180,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14595,7 +14624,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14695,7 +14726,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14714,6 +14747,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/timeline-archify-dev-activity-rendered.html b/examples/timeline-archify-dev-activity-rendered.htmlindex fa857618..552449c9 100644--- a/examples/timeline-archify-dev-activity-rendered.html+++ b/examples/timeline-archify-dev-activity-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5689,7 +5710,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7602,10 +7623,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7618,9 +7639,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7629,20 +7653,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7657,6 +7685,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7679,7 +7708,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7700,8 +7729,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7851,7 +7880,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14295,7 +14324,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14395,7 +14426,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14414,6 +14447,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/timeline-payment-incident-rendered.html b/examples/timeline-payment-incident-rendered.htmlindex e500e070..84206dee 100644--- a/examples/timeline-payment-incident-rendered.html+++ b/examples/timeline-payment-incident-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5474,7 +5495,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7387,10 +7408,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7403,9 +7424,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7414,20 +7438,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7442,6 +7470,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7464,7 +7493,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7485,8 +7514,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7636,7 +7665,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14080,7 +14109,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14180,7 +14211,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14199,6 +14232,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/tree-archify-repository-rendered.html b/examples/tree-archify-repository-rendered.htmlindex 98546636..bd22573f 100644--- a/examples/tree-archify-repository-rendered.html+++ b/examples/tree-archify-repository-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5708,7 +5729,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7621,10 +7642,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7637,9 +7658,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7648,20 +7672,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7676,6 +7704,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7698,7 +7727,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7719,8 +7748,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7870,7 +7899,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14314,7 +14343,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14414,7 +14445,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14433,6 +14466,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/tree-payment-platform-rendered.html b/examples/tree-payment-platform-rendered.htmlindex ba380f50..726eace8 100644--- a/examples/tree-payment-platform-rendered.html+++ b/examples/tree-payment-platform-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5489,7 +5510,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7402,10 +7423,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7418,9 +7439,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7429,20 +7453,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7457,6 +7485,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7479,7 +7508,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7500,8 +7529,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7651,7 +7680,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14095,7 +14124,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14195,7 +14226,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14214,6 +14247,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/waterfall-checkout-request-rendered.html b/examples/waterfall-checkout-request-rendered.htmlindex c9975b50..f0cd21ce 100644--- a/examples/waterfall-checkout-request-rendered.html+++ b/examples/waterfall-checkout-request-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5471,7 +5492,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7384,10 +7405,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7400,9 +7421,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7411,20 +7435,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7439,6 +7467,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7461,7 +7490,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7482,8 +7511,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7633,7 +7662,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14077,7 +14106,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14177,7 +14208,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14196,6 +14229,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/waterfall-example-rebuild-rendered.html b/examples/waterfall-example-rebuild-rendered.htmlindex c659705a..a4e74ca2 100644--- a/examples/waterfall-example-rebuild-rendered.html+++ b/examples/waterfall-example-rebuild-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5657,7 +5678,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7570,10 +7591,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7586,9 +7607,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7597,20 +7621,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7625,6 +7653,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7647,7 +7676,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7668,8 +7697,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7819,7 +7848,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14263,7 +14292,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14363,7 +14394,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14382,6 +14415,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.htmlindex 2d2f5c73..f1ec2f0d 100644--- a/examples/web-app-rendered.html+++ b/examples/web-app-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5553,7 +5574,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7498,10 +7519,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7514,9 +7535,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7525,20 +7549,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7553,6 +7581,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7575,7 +7604,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7596,8 +7625,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7747,7 +7776,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14191,7 +14220,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14291,7 +14322,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14310,6 +14343,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/web-app.html b/examples/web-app.htmlindex 2d2f5c73..f1ec2f0d 100644--- a/examples/web-app.html+++ b/examples/web-app.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5553,7 +5574,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7498,10 +7519,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7514,9 +7535,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7525,20 +7549,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7553,6 +7581,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7575,7 +7604,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7596,8 +7625,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7747,7 +7776,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14191,7 +14220,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14291,7 +14322,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14310,6 +14343,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.htmlindex 03a112de..fa06f3f1 100644--- a/examples/workflow-agent-tool-call-rendered.html+++ b/examples/workflow-agent-tool-call-rendered.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5583,7 +5604,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7516,10 +7537,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7532,9 +7553,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7543,20 +7567,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7571,6 +7599,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7593,7 +7622,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7614,8 +7643,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7765,7 +7794,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14209,7 +14238,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14309,7 +14340,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14328,6 +14361,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/experiments/mco-showcase/mco-runtime.html b/experiments/mco-showcase/mco-runtime.htmlindex 75d4cce4..e47c1418 100644--- a/experiments/mco-showcase/mco-runtime.html+++ b/experiments/mco-showcase/mco-runtime.html@@ -4726,22 +4726,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE..c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4756,18 +4760,26 @@ OTHER DEALINGS IN THE FONT SOFTWARE.animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+ /* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+ .ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+ }.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4796,19 +4808,20 @@ OTHER DEALINGS IN THE FONT SOFTWARE..ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }- svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+ svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4860,43 +4873,51 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+ }+ @keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }@@ -5576,7 +5597,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button><button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button><button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -7523,10 +7544,10 @@ OTHER DEALINGS IN THE FONT SOFTWARE.wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -7539,9 +7560,12 @@ OTHER DEALINGS IN THE FONT SOFTWARE.// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -7550,20 +7574,24 @@ OTHER DEALINGS IN THE FONT SOFTWARE.var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -7578,6 +7606,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -7600,7 +7629,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -7621,8 +7650,8 @@ OTHER DEALINGS IN THE FONT SOFTWARE.}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -7772,7 +7801,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);@@ -14216,7 +14245,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -14316,7 +14347,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -14335,6 +14368,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/test/animation.test.mjs b/test/animation.test.mjsindex d1eef5b5..c71d731c 100644--- a/test/animation.test.mjs+++ b/test/animation.test.mjs@@ -188,6 +188,7 @@ test('Live cascade ships layered comet choreography instead of marching dashes',const html = render('architecture', CASES.architecture);assert.match(html, /@keyframes archify-flow-wake/);assert.match(html, /@keyframes archify-cascade-halo/);+ assert.match(html, /@keyframes archify-cascade-glow/);assert.match(html, /@keyframes archify-cascade-tail/);assert.match(html, /@keyframes archify-cascade-head/);assert.match(html, /@keyframes archify-flow-ripple/);@@ -196,15 +197,17 @@ test('Live cascade ships layered comet choreography instead of marching dashes',assert.match(html, /@keyframes archify-node-enter/);assert.match(html, /\.ambient-flow-wake \{/);assert.match(html, /\.ambient-flow-halo \{/);+ assert.match(html, /\.ambient-flow-glow \{/);assert.match(html, /\.ambient-flow-tail \{/);assert.match(html, /\.ambient-flow-head \{/);assert.match(html, /\.ambient-flow-ripple \{/);assert.match(html, /\.ambient-flow-ripple-echo \{/);assert.match(html, /--flow-cycle: 6\.4s/);assert.match(html, /--flow-step-delay: 0\.2s/);- assert.match(html, /--flow-wake-peak: 0\.08/);- assert.match(html, /--flow-ripple-peak: 0\.55/);- assert.match(html, /--flow-ripple-echo-peak: 0\.22/);+ assert.match(html, /--flow-glow-peak: 0\.5/);+ assert.match(html, /--flow-wake-peak: 0\.1/);+ assert.match(html, /--flow-ripple-peak: 0\.65/);+ assert.match(html, /--flow-ripple-echo-peak: 0\.26/);// On light canvases the cascade reads by saturation: ink-mixed head and// ripple with raised peaks.assert.match(html, /html\[data-theme="light"\] svg\[data-animation="trace"\] \{/);@@ -213,10 +216,12 @@ test('Live cascade ships layered comet choreography instead of marching dashes',assert.match(html, /html\[data-theme="light"\] \.ambient-flow-ripple \{/);// The Governor derives each edge's phase from the authored step order, eases// the comet's velocity, disintegrates its tail into sparkle fragments with- // absolute caps, gives long edges an echo comet, and lands a sonar pair- // where the comet arrives. The cascade starts playing immediately — no- // load-time trace layer doubles the authored edge.+ // absolute caps, wraps the head in a blurred glow orb, boosts compact edges,+ // gives every edge an echo comet, and lands a sonar pair where the comet+ // arrives. The cascade starts playing immediately — no load-time trace+ // layer doubles the authored edge.assert.match(html, /addPath\('wake'\)/);+ assert.match(html, /addPath\('glow'\)/);assert.match(html, /addPath\('tail echo'\)/);assert.match(html, /getPointAtLength/);assert.match(html, /'ripple', 'ripple-echo'/);diff --git a/test/class-motion-browser.test.mjs b/test/class-motion-browser.test.mjsindex fb603beb..c5e6b8ad 100644--- a/test/class-motion-browser.test.mjs+++ b/test/class-motion-browser.test.mjs@@ -39,6 +39,7 @@ test('class: hierarchy bus motion follows from-to while retaining aligned visualawait loaded;await run('document.fonts.ready');await run('Archify.viewerChromeLayout.whenStable()');+ await run('Archify.motionGovernor.resume()');const result = await run(`(() => {const edge = document.querySelector('path[data-edge-id="card_implements"]');const visual = edge.getAttribute('d'), semantic = edge.getAttribute('data-motion-path');diff --git a/test/crossover-state-browser.test.mjs b/test/crossover-state-browser.test.mjsindex 49d4975a..f1ebc5b2 100644--- a/test/crossover-state-browser.test.mjs+++ b/test/crossover-state-browser.test.mjs@@ -113,6 +113,7 @@ test('automatic crossover masks follow live relationship state without becoming}await load();+ await run(`Archify.motionGovernor.resume()`);assert.equal(await run(`CSS.supports('selector(g:has(> path))')`), true);const trace = await samplePairs(8);assertTimedPairs(trace);diff --git a/test/focus-browser.test.mjs b/test/focus-browser.test.mjsindex 22cb2646..2ff5dec3 100644--- a/test/focus-browser.test.mjs+++ b/test/focus-browser.test.mjs@@ -227,16 +227,16 @@ test('Focus preserves semantic selection, relationships, reachability and shared});await t.test('real pulse completion and motion transitions preserve static relationship state',async()=>{- await load('graph',{reduced:false});await run(`Archify.focus.inspectRelationshipById('edge-d')`);assert.equal(await run(`document.querySelectorAll('[data-relationship-pulse-overlay]').length`),1);+ await load('graph',{reduced:false});await run(`Archify.motionGovernor.resume();Archify.focus.inspectRelationshipById('edge-d')`);assert.equal(await run(`document.querySelectorAll('[data-relationship-pulse-overlay]').length`),1);await run(`focusWait(()=>pulseEvents.some(e=>e.type==='animationend'&&e.trusted))`);assert.equal((await snapshot('pulse-ended')).pulse,0);await run(`Archify.focus.clear();Archify.focus.inspectRelationshipById('edge-d')`);await send('Emulation.setEmulatedMedia',{features:[{name:'prefers-reduced-motion',value:'reduce'}]});await run(`focusWait(()=>!document.querySelector('[data-relationship-pulse-overlay]'))`);assert.equal((await snapshot('reduced-preserves-pin')).relationship.id,'edge-d');- await load('graph',{reduced:false});await run(`Archify.focus.inspectRelationshipById('edge-d');focusWait(()=>document.querySelector('.relationship-flow-pulse').getAnimations().some(a=>a.currentTime>0))`);await run(`document.querySelector('.relationship-flow-pulse').style.animation='none'`);await run(`focusWait(()=>pulseEvents.some(e=>e.type==='animationcancel'&&e.trusted))`);assert.equal(await run(`document.querySelectorAll('[data-relationship-pulse-overlay]').length`),0);+ await load('graph',{reduced:false});await run(`Archify.motionGovernor.resume();Archify.focus.inspectRelationshipById('edge-d');focusWait(()=>document.querySelector('.relationship-flow-pulse').getAnimations().some(a=>a.currentTime>0))`);await run(`document.querySelector('.relationship-flow-pulse').style.animation='none'`);await run(`focusWait(()=>pulseEvents.some(e=>e.type==='animationcancel'&&e.trusted))`);assert.equal(await run(`document.querySelectorAll('[data-relationship-pulse-overlay]').length`),0);await run(`Archify.focus.clear();Object.defineProperty(document,'hidden',{configurable:true,value:true});Archify.focus.inspectRelationshipById('edge-d');document.dispatchEvent(new Event('visibilitychange'))`);assert.equal((await snapshot('hidden-fixture')).pulse,0);await load('graph',{reduced:false});await run(`Archify.motionGovernor.pause();Archify.focus.inspectRelationshipById('edge-d')`);assert.equal((await snapshot('still-preserves-pin')).pulse,0);});await t.test('real SVG export strips temporary Focus, Reach and relationship state from clones',async()=>{for(const [name,setup] of [['focus',`Archify.focus.set('cdn')`],['reach',`Archify.focus.set('cdn');Archify.focus.reach('downstream',{reveal:false})`],['pin',`Archify.focus.inspectRelationshipById('edge-d')`],['preview',`Archify.focus.set('cdn');document.getElementById('btn-focus-relations').click();document.querySelector('#relationship-lens-list [data-relationship-key="b"]').focus()`]]) {- await load('graph',{reduced:false});await run(setup);+ await load('graph',{reduced:false});await run(`Archify.motionGovernor.resume()`);await run(setup);const present=await run(`(()=>{const svg=document.querySelector('.diagram-container > svg');return {focus:svg.hasAttribute('data-focus-active'),reach:svg.hasAttribute('data-reach-active'),pin:svg.hasAttribute('data-relationship-pin-active'),preview:svg.hasAttribute('data-relationship-preview-active'),pulse:!!svg.querySelector('[data-relationship-pulse-overlay]'),hits:!!svg.querySelector('[data-relationship-hit-overlay]')};})()`);assert.deepEqual(present,{focus:true,reach:name==='reach',pin:name==='pin',preview:['pin','preview'].includes(name),pulse:['pin','preview'].includes(name),hits:true});const r=await run(`(async()=>{const svg=document.querySelector('.diagram-container > svg'),before=svg.outerHTML,create=URL.createObjectURL;let blob,after;diff --git a/test/intent-trace-browser.test.mjs b/test/intent-trace-browser.test.mjsindex 2004caab..a68b479c 100644--- a/test/intent-trace-browser.test.mjs+++ b/test/intent-trace-browser.test.mjs@@ -288,6 +288,7 @@ test('Intent Trace preserves input handoffs, transient geometry and cleanup', {await t.test('real CSS completion, Motion ownership, reduced motion and themes preserve previews', async () => {await load('trace');+ await run(`Archify.motionGovernor.resume()`);assert.equal(await run(`document.documentElement.getAttribute('data-ambient-motion')`), 'running');await move('api'); await run(`intentWait(()=>Archify.motionGovernor.owner()==='intent')`);assert.equal(await run(`Array.from(document.querySelectorAll('.ambient-edge-flow')).every(e=>e.getAnimations().length===0)`), true);diff --git a/test/motion-governor-browser.test.mjs b/test/motion-governor-browser.test.mjsindex f2a60058..4b2c9cea 100644--- a/test/motion-governor-browser.test.mjs+++ b/test/motion-governor-browser.test.mjs@@ -161,14 +161,13 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cfor (const mode of Object.keys(cases)) {await load(mode);const initial = await snapshot(mode + '-initial');- assert.equal(initial.capable, true); assert.equal(initial.mode, 'live'); assert.equal(initial.hidden, false);+ assert.equal(initial.capable, true); assert.equal(initial.mode, 'still', 'Motion defaults to Still until the reader resumes'); assert.equal(initial.hidden, false);const contract = await run(`(() => {const svg=document.querySelector('.diagram-container > svg'), edges=Array.from(svg.querySelectorAll('path[data-animate="edge"]'));const flows=Array.from(svg.querySelectorAll('[data-ambient-flow-overlay]'));window.authoredEdges=edges.map(e=>e.outerHTML);- const longEdges=edges.filter(e=>e.getTotalLength()>340).length;const circles=flows.filter(e=>e.localName==='circle'), paths=flows.filter(e=>e.localName==='path');- return {edges:edges.length, flows:flows.length, paths:paths.length, circles:circles.length, longEdges,+ return {edges:edges.length, flows:flows.length, paths:paths.length, circles:circles.length,valid:paths.every(e=>e.getAttribute('d')===(e.previousElementSibling.getAttribute('data-motion-path')||e.previousElementSibling.getAttribute('d')))&&circles.every(e=>e.getAttribute('cx')!==null&&e.getAttribute('cy')!==null)&&flows.every(e=>Array.from(e.attributes).every(a=>!a.name.startsWith('data-')||['data-ambient-flow-overlay','data-tree-ancestors'].includes(a.name))&&@@ -178,13 +177,15 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real csecurity:Array.from(svg.querySelectorAll('.a-security'), e=>getComputedStyle(e).strokeDasharray)};})()`);if(mode==='class') assert.ok(contract.reverse>0, 'Class bus exercises reversed visual paths.');- assert.equal(contract.paths, contract.edges * 4 + contract.longEdges * 2,- 'Each edge carries wake, halo, tail and head, plus an echo pair on long edges.');+ assert.equal(contract.paths, contract.edges * 7,+ 'Each edge carries wake, glow, halo, tail and head, plus an echo pair.');assert.equal(contract.circles, contract.edges * 2, 'Each edge carries a sonar ripple pair.');assert.equal(contract.valid, true);assert.ok(contract.originalAnimations.every(name=>name==='none'));assert.ok(contract.security.every(dash=>dash==='5px, 5px'));- assert.equal(initial.ambient, contract.edges ? 'running' : 'empty');+ assert.equal(initial.ambient, contract.edges ? 'paused' : 'empty');+ await run(`Archify.motionGovernor.resume()`);+ assert.equal((await snapshot(mode + '-live')).ambient, contract.edges ? 'running' : 'empty');// One actual multi-cycle observation covers shared CSS timing. Every type// above separately protects its renderer-to-runtime geometry contract.if (mode === 'architecture') {@@ -196,9 +197,9 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real clayers:Array.from(document.querySelectorAll('path[data-animate="edge"]')).every(e=>{const overlays=[];for(let s=e.nextElementSibling;s&&s.hasAttribute('data-ambient-flow-overlay');s=s.nextElementSibling) overlays.push(s);- const kinds=overlays.map(o=>o.localName==='circle'?(o.classList.contains('ambient-flow-ripple-echo')?'ripple-echo':'ripple'):(o.classList.contains('echo')?'echo':['wake','halo','tail','head'].find(c=>o.classList.contains('ambient-flow-'+c))));- const core=kinds.slice(0,4).join(','), rest=kinds.slice(4).join(',');- return core==='wake,halo,tail,head'&&(rest==='ripple,ripple-echo'||rest==='echo,echo,ripple,ripple-echo')&&+ const kinds=overlays.map(o=>o.localName==='circle'?(o.classList.contains('ambient-flow-ripple-echo')?'ripple-echo':'ripple'):(o.classList.contains('echo')?'echo':['wake','glow','halo','tail','head'].find(c=>o.classList.contains('ambient-flow-'+c))));+ const core=kinds.slice(0,5).join(','), rest=kinds.slice(5).join(',');+ return core==='wake,glow,halo,tail,head'&&rest==='echo,echo,ripple,ripple-echo'&&overlays.every(o=>o.style.getPropertyValue('--flow-delay')!=='');}),nodeAnims:Array.from(document.querySelectorAll('[data-animate="node"]'), e=>e.getAnimations().map(a=>a.animationName))})`);@@ -241,9 +242,10 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cassert.equal(await run(`document.querySelectorAll('[data-ambient-flow-overlay]').length`), 0);});- await t.test('long-edge echoes stay dimmer than their main comets across presets and themes', async () => {+ await t.test('echo comets stay dimmer than their main comets across presets and themes', async () => {for (const theme of ['dark', 'light']) {await load('architecture', { theme });+ await run(`Archify.motionGovernor.resume()`);for (const preset of ['classic', 'editorial']) {const peaks = await run(`(() => {const svg=document.querySelector('.diagram-container > svg');@@ -264,7 +266,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real creturn {kind,main:peak(main),echo:peak(echo)};});})()`);- assert.ok(peaks.length > 0, 'Architecture fixture must exercise long-edge echoes.');+ assert.ok(peaks.length > 0, 'Architecture fixture must exercise echo comets.');for (const peak of peaks) {assert.ok(peak.echo > 0 && peak.echo < peak.main,`${preset}/${theme} ${peak.kind} echo must remain visible and dimmer: ${JSON.stringify(peak)}`);@@ -317,6 +319,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('collapsing Orders hides only its descendant flow overlays', async () => {for (const mode of ['tree', 'treeCollapsed']) {await load(mode);+ await run(`Archify.motionGovernor.resume()`);const branch = await run(`(() => {const overlaysOf=e=>{const out=[];for(let s=e.nextElementSibling;s&&s.hasAttribute('data-ambient-flow-overlay');s=s.nextElementSibling)out.push(s);return out;};const edges=Array.from(document.querySelectorAll('path[data-animate="edge"]'));@@ -340,7 +343,9 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('printing settled Live nodes preserves static styling then restores screen Live', async () => {for (const mode of ['architecture', 'tree']) {await load(mode);+ await run(`Archify.motionGovernor.resume()`);await run(`motionWait(()=>document.documentElement.getAttribute('data-ambient-entry')==='settled')`);+ await run(`motionWait(()=>Array.from(document.querySelectorAll('[data-animate="node"]')).every(e=>e.getAnimations().some(a=>a.animationName==='archify-node-receive')))`);const nodeState=()=>run(`Array.from(document.querySelectorAll('[data-animate="node"]'),e=>({animations:e.getAnimations().map(a=>a.animationName),filter:getComputedStyle(e).filter,opacity:getComputedStyle(e).opacity}))`);assert.ok((await nodeState()).every(n=>n.animations.includes('archify-node-receive')));await send('Emulation.setEmulatedMedia', {media:'print'});@@ -378,6 +383,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real c};` });const copies = await run(`(async () => {+ Archify.motionGovernor.resume();const svg=document.querySelector('.diagram-container > svg'), edge=svg.querySelector('[data-motion-test-group]'),from=edge.getAttribute('data-edge-from'), to=edge.getAttribute('data-edge-to'), initial=svg.querySelectorAll('[data-ambient-flow-overlay]').length;const rows=[];@@ -413,8 +419,9 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('stored user intent remains distinct from reduced motion and suspension', async () => {await load();- assert.equal(await run('Archify.motionGovernor.pause()'), true);- assert.equal(await run(`localStorage.getItem('archify-motion')`), 'still');+ assert.equal((await snapshot('fresh-default-still')).mode, 'still', 'Nothing stored means Still by default.');+ assert.equal(await run('Archify.motionGovernor.resume()'), false);+ assert.equal(await run(`localStorage.getItem('archify-motion')`), 'live');const storedUrl = await run('location.href');// Observe after normal startup. A CDP new-document localStorage read can// change Chrome's file-backed storage behavior, even in script-free HTML.@@ -423,12 +430,12 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait load('architecture', { preserveStorage: true });const stored = await run(`({current:localStorage.getItem('archify-motion'),navigation:motionNavigation,url:location.href})`);assert.equal(stored.url, storedUrl, 'Preference persistence must reload the same file URL.');- assert.equal(stored.current, 'still', 'Preference must survive reloading the standalone file.');- assert.equal((await snapshot('stored-still-' + reload)).mode, 'still', JSON.stringify(stored));+ assert.equal(stored.current, 'live', 'Preference must survive reloading the standalone file.');+ assert.equal((await snapshot('stored-live-' + reload)).mode, 'live', JSON.stringify(stored));}- assert.equal(await run(`Archify.motionGovernor.setMode('live', {persist:false})`), 'live');- assert.equal(await run(`localStorage.getItem('archify-motion')`), 'still');- assert.equal(await run('Archify.motionGovernor.resume()'), false);+ assert.equal(await run(`Archify.motionGovernor.setMode('still', {persist:false})`), 'still');+ assert.equal(await run(`localStorage.getItem('archify-motion')`), 'live');+ assert.equal(await run('Archify.motionGovernor.pause()'), true);assert.equal(await run(`localStorage.getItem('archify-motion')`), null);await media(true);await run('motionWait(() => document.getElementById("btn-motion").disabled)');@@ -446,7 +453,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait run('Archify.motionGovernor.pause()');await load();assert.equal(await run(`localStorage.getItem('archify-motion')`), null, 'Fresh fixtures reset prior stored intent.');- assert.equal((await snapshot('fresh-after-stored-intent')).mode, 'live');+ assert.equal((await snapshot('fresh-after-stored-intent')).mode, 'still');await load('architecture', { fixture: `Storage.prototype.getItem = Storage.prototype.setItem = Storage.prototype.removeItem = function () { throw new Error('storage fixture'); };` });assert.equal(await run('Archify.motionGovernor.pause()'), true);assert.equal(await run('Archify.motionGovernor.resume()'), false);@@ -455,6 +462,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('claims preempt cleanup, normal release does not, and SVG owners fall back automatically', async () => {await load();+ await run(`Archify.motionGovernor.resume()`);await run(`window.main = document.querySelector('.diagram-container > svg'); main.setAttribute('data-focus-active','true'); main.setAttribute('data-route-active','true');`);await run(`motionWait(() => Archify.motionGovernor.owner() === 'route')`);assert.equal((await snapshot('derived-route')).rootOwner, 'route');@@ -478,6 +486,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('counted suspensions and the existing visibility-key interaction remain distinct', async () => {await load();+ await run(`Archify.motionGovernor.resume()`);const values = await run(`(() => {const m=Archify.motionGovernor, a=m.suspend('a'), b=m.suspend('a'), c=m.suspend('c');const first=[c(),m.isPaused(),b(),m.isPaused(),b(),a(),m.isPaused()];@@ -494,6 +503,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('node entry cancellation and optional platform interfaces keep their fallback', async () => {await load();+ await run(`Archify.motionGovernor.resume()`);const cancelled = await run(`(() => {const root=document.documentElement, svg=document.querySelector('.diagram-container > svg');svg.querySelectorAll('[data-animate="node"]').forEach(e=>e.dispatchEvent(new Event('animationcancel',{bubbles:true})));@@ -525,6 +535,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('guards hide Live immediately and automatically restore it without growing the SVG', async () => {await load();+ await run(`Archify.motionGovernor.resume()`);const guards = await run(`(async () => {const m=Archify.motionGovernor, root=document.documentElement, count=document.querySelectorAll('.ambient-edge-flow').length;const frame=()=>new Promise(resolve=>requestAnimationFrame(()=>requestAnimationFrame(resolve)));@@ -555,6 +566,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('printing keeps Governor Live and preserves the existing Route print policy', async () => {await load();+ await run(`Archify.motionGovernor.resume()`);assert.equal(await run(`(() => {Archify.routeProbe.begin({source:'users'}); Archify.routeProbe.choose('db');window.printPauses=[]; window.printPauseOriginal=Archify.routeProbe.pauseJourney;@@ -613,6 +625,7 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('Motion pauses actual Route without discarding elapsed dwell', async () => {await load();+ await run(`Archify.motionGovernor.resume()`);const route = await run(`(async () => {Archify.routeProbe.begin({source:'users'}); Archify.routeProbe.choose('db');const schedule=window.setTimeout, delays=[];@@ -640,14 +653,16 @@ test('Motion Governor preserves mode, ownership, continuous Live flow and real cawait t.test('dark and light modes expose the same controls and computed Still state', async () => {for (const theme of ['dark', 'light']) {await load('architecture', { theme });- assert.equal((await snapshot('running-' + theme)).ambient, 'running');- const live = await snapshot('live-' + theme); assert.equal(live.pressed, 'true');- await screenshot('live-' + theme);- await run(`document.getElementById('btn-motion').click()`);- const still = await snapshot('still-' + theme); assert.equal(still.mode, 'still'); assert.equal(still.pressed, 'false');+ const still = await snapshot('still-' + theme);+ assert.equal(still.ambient, 'paused', 'Fresh load defaults to Still');+ assert.equal(still.mode, 'still'); assert.equal(still.pressed, 'false');assert.match(still.aria, /resume/i);assert.equal(await run(`getComputedStyle(document.querySelector('.pulse-dot')).animationName`), 'none');await screenshot('still-' + theme);+ await run(`document.getElementById('btn-motion').click()`);+ const live = await snapshot('live-' + theme);+ assert.equal(live.ambient, 'running'); assert.equal(live.pressed, 'true');+ await screenshot('live-' + theme);await run(`Archify.focus.set('api', {toggle:false}); motionWait(() => Archify.motionGovernor.owner() === 'focus')`);const exported = await run(`(async () => {const svg=document.querySelector('.diagram-container > svg'), m=Archify.motionGovernor;diff --git a/test/route-probe-browser.test.mjs b/test/route-probe-browser.test.mjsindex 59001f06..ae906ff4 100644--- a/test/route-probe-browser.test.mjs+++ b/test/route-probe-browser.test.mjs@@ -185,7 +185,7 @@ test('Route Probe preserves directed paths, Journey and export contracts', {});await t.test('native Journey controls, finite playback, pause and layered Escape preserve path state', async () => {- await load('trace'); await route();+ await load('trace'); await run(`Archify.motionGovernor.resume()`); await route();await run(`document.querySelector('[data-route-journey-index="0"]').focus()`); await key('ArrowLeft', 'ArrowLeft', 37);assert.equal(await run('document.activeElement.dataset.routeJourneyIndex'), '0');await key('End', 'End', 35); await key('ArrowRight', 'ArrowRight', 39); assert.equal(await run('document.activeElement.dataset.routeJourneyIndex'), '4');@@ -212,7 +212,7 @@ test('Route Probe preserves directed paths, Journey and export contracts', {});await t.test('controlled clocks preserve elapsed dwell, fresh steps, stale generations and pulse cleanup', async () => {- await load('trace'); await route();+ await load('trace'); await run(`Archify.motionGovernor.resume()`); await route();const timing = await run(`routeClock(({jobs,last,advance,fire})=>{const p=Archify.routeProbe;const started=p.playJourney(),first=last(1100);advance(400);p.pauseJourney();const paused=p.result();p.playJourney();const resumed=jobs.at(-1).delay;fire(jobs.at(-1));const advanced=p.result();const fresh=jobs.at(-1).delay;p.clear({preserveView:true});const afterClear=p.result();fire(first);const stale=p.result();@@ -267,7 +267,7 @@ test('Route Probe preserves directed paths, Journey and export contracts', {for (const [name, action] of [['focus', `Archify.focus.set('api',{toggle:false})`], ['lens', `Archify.semanticLens.select('backend')`],]) {- await load('trace'); await route(); await run('Archify.routeProbe.playJourney()'); await run(action);+ await load('trace'); await run(`Archify.motionGovernor.resume()`); await route(); await run('Archify.routeProbe.playJourney()'); await run(action);const s = await snapshot(name + '-takeover'); assert.equal(s.active, null); assert.equal(s.overlays, 0); assert.equal(s.pulses, 0);}for (const [name, action] of [@@ -275,12 +275,12 @@ test('Route Probe preserves directed paths, Journey and export contracts', {['print-fixture', `dispatchEvent(new Event('beforeprint'))`],['hidden-fixture', `Object.defineProperty(document,'hidden',{configurable:true,value:true});document.dispatchEvent(new Event('visibilitychange'))`],]) {- await load('trace'); await route(); await run('Archify.routeProbe.playJourney()'); await run(action);+ await load('trace'); await run(`Archify.motionGovernor.resume()`); await route(); await run('Archify.routeProbe.playJourney()'); await run(action);const s = await snapshot(name + '-pause'); assert.equal(s.active, 'result'); assert.equal(s.result.playing, false); assert.equal(s.result.journey, 0);if (name === 'hidden-fixture') { await run(`delete document.hidden;document.dispatchEvent(new Event('visibilitychange'))`); assert.equal(await run('Archify.routeProbe.isJourneyPlaying()'), false); }if (name === 'still') { await run('Archify.motionGovernor.resume()'); assert.equal(await run('Archify.routeProbe.isJourneyPlaying()'), false); }}- await load(); await route(); assert.equal(await run('Archify.routeProbe.playJourney()'), true);+ await load(); await run(`Archify.motionGovernor.resume()`); await route(); assert.equal(await run('Archify.routeProbe.playJourney()'), true);await run('Archify.routeProbe.pauseJourney()');await run('Archify.view.zoomIn()'); const view = await run('Archify.view.state()');assert.equal(await run('Archify.routeProbe.clear({preserveView:true,updateUrl:false})===undefined'), true);diff --git a/test/semantic-lens-browser.test.mjs b/test/semantic-lens-browser.test.mjsindex ceacfacf..b67a9a8a 100644--- a/test/semantic-lens-browser.test.mjs+++ b/test/semantic-lens-browser.test.mjs@@ -362,7 +362,7 @@ test('Semantic Lens preserves selection, legend preview and panel contracts', {assert.deepEqual(exported, { clean: true, viewBox: true });}}- await load('trace'); await run(`Archify.semanticLens.select('backend')`);+ await load('trace'); await run(`Archify.motionGovernor.resume()`); await run(`Archify.semanticLens.select('backend')`);const animation = await run(`getComputedStyle(document.querySelector('.semantic-lens-flow')).animationName`);assert.equal(animation, 'archify-semantic-lens-flow');await run(`lensWait(()=>lensEnds.some(e=>e.trusted&&e.name==='archify-semantic-lens-flow'))`);diff --git a/test/webm-artifact.smoke.mjs b/test/webm-artifact.smoke.mjsindex 11212684..0ee84355 100644--- a/test/webm-artifact.smoke.mjs+++ b/test/webm-artifact.smoke.mjs@@ -1004,6 +1004,7 @@ try {await captureJourneySource(function () { Archify.routeProbe.selectJourneyIndex(Math.floor(snapshot.nodeIds.length / 2)); });await captureJourneySource(function () { Archify.routeProbe.selectJourneyIndex(snapshot.nodeIds.length - 1); });Archify.routeProbe.showOverview({ reveal: false });+ Archify.motionGovernor.resume();var started = Archify.routeProbe.playJourney();if (!started) throw new Error('Route Journey could not enter playing state for invariance check');await captureJourneySource(function () {});diff --git a/viewer/README.md b/viewer/README.mdindex 5feadaa8..b7b4c4da 100644--- a/viewer/README.md+++ b/viewer/README.md@@ -834,11 +834,12 @@ For trace pages, pause/resume/toggle return the reader's pause intent, whilemode/isPaused report effective pause: reader intent OR reduced motion OR anonempty suspension table. Thus resume can return false while mode remains still.setMode treats only `still` as a pause request, returns effective mode and honors-`persist:false`. The storage key remains `archify-motion`; user pause writes-`still`, resume removes it, and storage errors are ignored. System suspension-does not become a persisted user preference. Becoming live resumes continuous-connection flow when no semantic owner is active; it does not restart Route-playback or replay an already completed node entrance.+`persist:false`. The storage key remains `archify-motion` but the default is+now still: a trace page starts paused, resume writes `live`, pausing removes+it, and storage errors are ignored. System suspension does not become a+persisted user preference. Becoming live resumes continuous connection flow+when no semantic owner is active; it does not restart Route playback or+replay an already completed node entrance.Explicit claims override derived owners. Without a claim, SVG attributes selectroute, lens, relationship, intent, focus, legend,diff --git a/viewer/motion-governor.js b/viewer/motion-governor.jsindex 4e9961ac..ee4ad0ef 100644--- a/viewer/motion-governor.js+++ b/viewer/motion-governor.js@@ -87,10 +87,10 @@wake.remove();return;}+ var glow = addPath('glow');var halo = addPath('halo');var tail = addPath('tail');- var head = addPath('head');- var end = null;+ var head = addPath('head'); var end = null;try { end = head.getPointAtLength(len); } catch (_) {}// Dashed authored lines keep their dash language through the show:// the wake brightens only the authored segments and never fills the@@ -103,9 +103,12 @@// Absolute caps keep the comet a slim streak on long edges instead// of growing into a bright slab; the tail disintegrates into a// sparkle of fragments behind the head, and --flow-shift trails- // each layer behind the head tip by its own length.- var headLen = Math.min(10, Math.max(4, len * 0.016));- var haloLen = Math.min(14, Math.max(8, len * 0.045));+ // each layer behind the head tip by its own length. Short edges get+ // a proportionally larger comet and a brightness boost so a compact+ // diagram reads as alive as a sprawling one.+ var headLen = Math.min(12, Math.max(5, len * 0.02));+ var haloLen = Math.min(18, Math.max(10, len * 0.06));+ var boost = len < 260 ? Math.min(1.7, 260 / Math.max(len, 90)) : 1;var trail = len >= 120? { pattern: '2.5 2 4 3 5.5 4.5 8 ' + (len - 30).toFixed(1), length: 30 }: (len >= 60@@ -114,20 +117,24 @@var phase = edgePhase(shape, index) * stepDelay;var configs = [{ flow: wake, dash: len, shift: 0, delay: phase },+ { flow: glow, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: halo, dash: haloLen, shift: (haloLen - headLen) / 2, delay: phase },{ flow: tail, dash: trail.length, shift: trail.length - headLen, delay: phase, dasharray: trail.pattern },{ flow: head, dash: headLen, shift: 0, delay: phase },];- // Long edges earn a dimmer echo comet half a travel window behind.- if (len > 340) {- configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + cycle * 0.31, dasharray: trail.pattern });- configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + cycle * 0.31 });- }+ // Every edge earns a dimmer echo comet: half a travel window behind+ // on long edges, half a cycle behind on short ones so compact+ // diagrams never sit in a silent gap between passes.+ var echoShift = len > 340 ? cycle * 0.31 : cycle * 0.5;+ configs.push({ flow: addPath('tail echo'), dash: trail.length, shift: trail.length - headLen, delay: phase + echoShift, dasharray: trail.pattern, echo: true });+ configs.push({ flow: addPath('head echo'), dash: headLen, shift: 0, delay: phase + echoShift, echo: true });configs.forEach(function (cfg) {cfg.flow.style.setProperty('--flow-len', len.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-delay', cfg.delay.toFixed(3) + 's');cfg.flow.style.setProperty('--flow-dash', cfg.dash.toFixed(1) + 'px');cfg.flow.style.setProperty('--flow-shift', cfg.shift.toFixed(1) + 'px');+ // Echoes stay background texture: they never inherit the boost.+ if (!cfg.echo) cfg.flow.style.setProperty('--flow-boost', boost.toFixed(2));if (cfg.dasharray) cfg.flow.style.setProperty('--flow-dasharray', cfg.dasharray);});// The sonar pair lands where the comet does; keep it out of the@@ -142,6 +149,7 @@ripple.setAttribute('class', 'ambient-edge-flow ambient-flow-' + kind);tagOverlay(ripple);ripple.style.setProperty('--flow-delay', phase.toFixed(3) + 's');+ ripple.style.setProperty('--flow-boost', boost.toFixed(2));shape.parentNode.insertBefore(ripple, anchor.nextSibling);anchor = ripple;});@@ -164,7 +172,7 @@if (!entryPending.size) settleEntry();}function renderAmbient(suppressed) {- html.setAttribute('data-ambient-motion', suppressed ? 'paused' : (flowCount ? 'running' : 'empty'));+ html.setAttribute('data-ambient-motion', flowCount ? (suppressed ? 'paused' : 'running') : 'empty');if (suppressed) {entryStarted = true;settleEntry();@@ -185,8 +193,8 @@}function writeStored() {try {- if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');- else localStorage.removeItem(STORAGE_KEY);+ if (readerPaused) localStorage.removeItem(STORAGE_KEY);+ else localStorage.setItem(STORAGE_KEY, 'live');} catch (_) {}}function reducedMotion() {@@ -336,7 +344,7 @@createFlows();html.setAttribute('data-motion-capable', 'true');btn.hidden = false;- readerPaused = readStored() === 'still';+ readerPaused = readStored() !== 'live';btn.addEventListener('click', function () { setPaused(!readerPaused); });if (motionQuery) {if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);diff --git a/viewer/template.source.html b/viewer/template.source.htmlindex 07780879..8f52cd43 100644--- a/viewer/template.source.html+++ b/viewer/template.source.html@@ -598,7 +598,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.<button id="btn-overview-map" type="button" aria-label="{{i18n:viewer.nav.radar}}" aria-expanded="false" aria-controls="overview-map" title="{{i18n:viewer.nav.radar.title}}">{{i18n:viewer.nav.radar.short}}</button><button id="btn-semantic-lens" type="button" aria-label="{{i18n:viewer.nav.lens}}" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="{{i18n:viewer.nav.lens.title}}">{{i18n:viewer.nav.lens.short}}</button><button id="btn-node-finder" type="button" aria-label="{{i18n:viewer.nav.find}}" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="{{i18n:viewer.nav.find.title}}" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" hidden aria-label="{{i18n:viewer.nav.guide}}" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="{{i18n:viewer.nav.guide.title}}"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="{{i18n:viewer.nav.guide}}" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="{{i18n:viewer.nav.guide.title}}"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button><button data-view="out" type="button" aria-label="{{i18n:viewer.nav.zoomOut}}" title="{{i18n:viewer.nav.zoomOut.title}}"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button><button data-view="reset" type="button" aria-label="{{i18n:viewer.nav.reset}}" title="{{i18n:viewer.nav.reset.title}}"><span class="diagram-nav-detail" data-view-detail hidden>{{i18n:viewer.nav.read}}</span><span class="diagram-nav-percent" data-view-percent>100%</span></button><button data-view="in" type="button" aria-label="{{i18n:viewer.nav.zoomIn}}" title="{{i18n:viewer.nav.zoomIn.title}}"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>@@ -1185,7 +1185,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) {- var target = trigger.hidden ? returnFocus : trigger;+ // Return focus where the reader was when the guide opened; the+ // trigger itself is only the fallback when that element is gone.+ var target = returnFocus && returnFocus.isConnected ? returnFocus : trigger;if (target && typeof target.focus === 'function') target.focus();}return false;@@ -1285,7 +1287,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.execute(action);});document.addEventListener('click', function (event) {- if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ // Clicks anywhere on the trigger (including its icon span) are the+ // toggle itself, never an outside dismissal.+ if (!panel.hidden && !panel.contains(event.target) && !trigger.contains(event.target)) close({ restoreFocus: false });});renderFacts();@@ -1304,6 +1308,22 @@ OTHER DEALINGS IN THE FONT SOFTWARE.};})();+ /* First-visit onboarding: open the Diagram Guide once per browser so a+ new reader meets the controls up front instead of discovering them by+ accident. Automated checks, embeds, share playback and presentations+ never see it. */+ (function () {+ var WELCOME_KEY = 'archify-guide-welcomed';+ try {+ if (navigator.webdriver) return;+ var root = document.documentElement;+ if (root.hasAttribute('data-embed') || root.hasAttribute('data-present') || root.hasAttribute('data-share-playback')) return;+ if (window.localStorage.getItem(WELCOME_KEY)) return;+ window.localStorage.setItem(WELCOME_KEY, '1');+ Archify.guide.open();+ } catch (_) {}+ })();+/* ============================================================Global keyboard shortcuts? -> open Diagram Guidediff --git a/viewer/viewer.css b/viewer/viewer.cssindex 9588d0fe..ddb860d9 100644--- a/viewer/viewer.css+++ b/viewer/viewer.css@@ -4557,22 +4557,26 @@ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationshi.c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }/* Live turns each edge into a small light show on one shared cycle: a comet- (halo, tail, head — plus a dimmer echo on long edges) cascades downstream,- leaves a soft wake, and lands as a ripple on the target node. Original line- language and markers remain static. Each edge's phase follows the authored- step order — source-node rank, or chronological order in sequence- diagrams — so the whole diagram ripples downstream instead of marching- uniformly. Node entry is bounded to one pass per document, then a soft- node glow follows the authored step order. */+ (halo, tail, head — plus a dimmer echo, half a travel window behind on long+ edges and half a cycle behind on short ones) cascades downstream, leaves a+ soft wake, and lands as a ripple on the target node. Short edges carry a+ proportionally larger comet with a brightness boost so compact diagrams read+ as alive as sprawling ones. Original line language and markers remain+ static. Each edge's phase follows the authored step order — source-node+ rank, or chronological order in sequence diagrams — so the whole diagram+ ripples downstream instead of marching uniformly. Node entry is bounded to+ one pass per document, then a soft node glow follows the authored step+ order. */svg[data-animation="trace"] {--flow-cycle: 6.4s;--flow-step-delay: 0.2s;- --flow-halo-peak: 0.13;- --flow-tail-peak: 0.34;+ --flow-halo-peak: 0.17;+ --flow-glow-peak: 0.5;+ --flow-tail-peak: 0.42;--flow-head-peak: 0.95;- --flow-wake-peak: 0.08;- --flow-ripple-peak: 0.55;- --flow-ripple-echo-peak: 0.22;+ --flow-wake-peak: 0.1;+ --flow-ripple-peak: 0.65;+ --flow-ripple-echo-peak: 0.26;}.ambient-edge-flow {fill: none;@@ -4587,18 +4591,26 @@ svg[data-animation="trace"] {animation-name: archify-flow-wake;}.ambient-flow-halo {- stroke-width: 5;+ stroke-width: 6;stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));animation-name: archify-cascade-halo;}+/* A wide blurred streak centered on the head: this is the bloom that makes+ the comet read as a traveling orb of light rather than a bright dash. */+.ambient-flow-glow {+ stroke-width: 9;+ stroke-dasharray: var(--flow-dash, 12px) calc(var(--flow-len, 0px) - var(--flow-dash, 12px));+ filter: blur(2.5px);+ animation-name: archify-cascade-glow;+}.ambient-flow-tail {stroke-width: 2.4;stroke-dasharray: var(--flow-dasharray, var(--flow-dash, 20px) calc(var(--flow-len, 0px) - var(--flow-dash, 20px)));animation-name: archify-cascade-tail;}.ambient-flow-head {- stroke: color-mix(in srgb, var(--arrow-emphasis) 45%, white);- stroke-width: 2.2;+ stroke: color-mix(in srgb, var(--arrow-emphasis) 40%, white);+ stroke-width: 2.6;stroke-dasharray: var(--flow-dash, 6px) calc(var(--flow-len, 0px) - var(--flow-dash, 6px));animation-name: archify-cascade-head;}@@ -4627,19 +4639,20 @@ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]).ambient-edge-flow[data-tree-hidden] { display: none !important; animation: none !important; }svg[data-preset="signal-flow"] { --flow-cycle: 5.2s; --flow-step-delay: 0.18s; }svg[data-preset="blueprint"] .ambient-edge-flow { stroke-linecap: square; }-svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }+svg[data-preset="editorial"] { --flow-halo-peak: 0.07; --flow-glow-peak: 0.28; --flow-tail-peak: 0.2; --flow-head-peak: 0.7; --flow-wake-peak: 0.05; --flow-ripple-peak: 0.3; --flow-ripple-echo-peak: 0.12; }/* On light canvases the cascade reads by saturation instead of bloom: thehead and inner ripple mix toward ink instead of white, and every layer'speak rises so the wave survives the bright background. */html[data-theme="light"] svg[data-animation="trace"] {--flow-halo-peak: 0.22;+ --flow-glow-peak: 0.4;--flow-tail-peak: 0.5;--flow-wake-peak: 0.13;--flow-ripple-echo-peak: 0.3;}html[data-theme="light"] .ambient-flow-head {stroke: color-mix(in srgb, var(--arrow-emphasis) 55%, black);- stroke-width: 2.4;+ stroke-width: 2.8;}html[data-theme="light"] .ambient-flow-ripple {stroke: color-mix(in srgb, var(--arrow-emphasis) 65%, black);@@ -4691,43 +4704,51 @@ html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner])}@keyframes archify-flow-wake {0% { opacity: 0; }- 24% { opacity: var(--flow-wake-peak, 0.08); }- 62% { opacity: var(--flow-wake-peak, 0.08); }+ 24% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }+ 62% { opacity: calc(var(--flow-wake-peak, 0.1) * var(--flow-boost, 1)); }82%, 100% { opacity: 0; }}@keyframes archify-cascade-halo {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }- 4% { opacity: var(--flow-halo-peak, 0.13); }+ 4% { opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }+ 48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-halo-peak, 0.17) * var(--flow-boost, 1)); }+ 68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }+}+@keyframes archify-cascade-glow {+ 0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 3px)); opacity: 0; }+ 4% { opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 3px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: var(--flow-halo-peak, 0.13); }+ 62% { stroke-dashoffset: var(--flow-shift, 3px); opacity: calc(var(--flow-glow-peak, 0.5) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 3px); opacity: 0; }}@keyframes archify-cascade-tail {0% { stroke-dashoffset: calc(var(--flow-len, 0px) + var(--flow-shift, 20px)); opacity: 0; }- 4% { opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.88); }48% { stroke-dashoffset: calc((var(--flow-len, 0px) + var(--flow-shift, 20px)) * 0.22); }- 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.34) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: var(--flow-shift, 20px); opacity: calc(var(--flow-tail-peak, 0.42) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: var(--flow-shift, 20px); opacity: 0; }}@keyframes archify-cascade-head {0% { stroke-dashoffset: var(--flow-len, 0px); opacity: 0; }- 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 4% { opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }15% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.88); }48% { stroke-dashoffset: calc(var(--flow-len, 0px) * 0.22); }- 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1)); }+ 62% { stroke-dashoffset: 0; opacity: calc(var(--flow-head-peak, 0.95) * var(--flow-echo-scale, 1) * var(--flow-boost, 1)); }68%, 100% { stroke-dashoffset: 0; opacity: 0; }}@keyframes archify-flow-ripple {0%, 60% { r: 2px; opacity: 0; }- 63% { r: 2px; opacity: var(--flow-ripple-peak, 0.55); }- 78%, 100% { r: 17px; opacity: 0; }+ 63% { r: 2px; opacity: calc(var(--flow-ripple-peak, 0.65) * var(--flow-boost, 1)); }+ 78%, 100% { r: 20px; opacity: 0; }}@keyframes archify-flow-ripple-echo {0%, 63% { r: 2px; opacity: 0; }- 66% { r: 2px; opacity: var(--flow-ripple-echo-peak, 0.22); }- 84%, 100% { r: 26px; opacity: 0; }+ 66% { r: 2px; opacity: calc(var(--flow-ripple-echo-peak, 0.26) * var(--flow-boost, 1)); }+ 84%, 100% { r: 30px; opacity: 0; }}@keyframes archify-node-receive {0%, 100% { filter: var(--ambient-node-base-filter, none); }