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: polish diagram authoring and viewer
tt-a1i5df5b8e32463
diff --git a/README_EN.md b/README_EN.mdindex 8a3eba46..e738184e 100644--- a/README_EN.md+++ b/README_EN.md@@ -273,10 +273,6 @@ Archify 2.13 includes typed IR across all five modes, real-repository proof, detAutomatic Mermaid parsing, general-purpose auto-layout, hosted sharing, and WYSIWYG editing are intentionally outside the current scope.-## Attribution--Archify is a fork and rewrite of [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) v1.0. The original visual language remains credited to Cocoon AI; Archify 2.x adds themes, exports, typed renderers, validation, accessibility, interaction, and a unified CLI. Both projects use the MIT License.-## License[MIT](LICENSE) — free to use, modify, and distribute.diff --git a/archify.zip b/archify.zipindex f69f05bb..41c8512d 100644Binary files a/archify.zip and b/archify.zip differdiff --git a/archify/SKILL.md b/archify/SKILL.mdindex 2a5f24ef..8b280955 100644--- a/archify/SKILL.md+++ b/archify/SKILL.md@@ -61,11 +61,16 @@ Read Mermaid for topology and meaning, then author fresh Archify JSON; do not me## Authoring invariants- One obvious main path; side branches leave the nearest main-path node. Remove low-value edges before adding routing controls.+- Omit `meta.visual_preset` by default so every diagram opens in `classic`, regardless of whether its resolved color mode is light or dark. Color mode and visual preset are independent: switching Light / Dark must preserve the current preset. Set `signal-flow`, `blueprint`, or `editorial` only when the user explicitly requests that visual style.+- Omit `meta.subtitle` by default. Never invent a subtitle that restates the title, nodes, or cards; include one short supporting line only when the user explicitly asks for it.+- Treat the standalone desktop viewer as a first-screen artifact by default, not a shallow strip. On a wide or tall desktop, use enough vertical rhythm that the diagram panel and its necessary conclusion cards occupy the screen as a balanced whole; do not create a conspicuous empty lower band by over-compressing authored Y positions or choosing an undersized explicit `meta.viewBox`. Before handoff, open the real HTML at 1440×900, 1600×1000, and 1920×1080; additionally check 2048×1320 whenever the composition is intended for a large desktop display. Require `document.documentElement.scrollWidth <= window.innerWidth` and `scrollHeight <= window.innerHeight` at every checked size, while visually checking that the diagram remains comfortably readable and vertically balanced at the largest checked viewport. Repair overflow by removing only genuinely redundant content or compacting spacing before shrinking nodes, labels, or the main panel. Never counterfeit a pass with `overflow: hidden`, clipped content, an internal diagram scroller, or smaller typography. Narrow/mobile layouts may scroll vertically when containment requires it.- Omit `meta.legend` for the truthful `auto` default. When needed, use only `mode: auto|all|hidden` and renderer-supported `entries.<kind>.label|visible`; labels never change semantics.+- Match every reader-facing authored string to the language of the user's request, or the conversation's dominant language when the request is language-neutral. Apply it consistently to titles/subtitles, node/edge/boundary/lane/group text, guided-view labels/notes, legend label overrides, and card titles/items; use another language or bilingual copy only when the user asks.+- Preserve exact product names, code identifiers, commands, protocols, API paths, and environment names. They may remain English inside localized copy, but never justify leaving the surrounding explanatory prose in another language.- Component types are `frontend`, `backend`, `database`, `cloud`, `security`, `messagebus`, and `external`; variants are `default`, `emphasis`, `security`, and `dashed`.- Spacing means clear gap, not center distance. For a relationship label, clear gap must exceed its measured mask width; otherwise omit the label or move it deliberately.- Automatic routes own their endpoint sides. A side is a direction contract: the first and final segment must leave/enter perpendicular to that side.-- Automatic Port Spread is a default renderer behavior for architecture, workflow, data-flow, and lifecycle. It skips single relationships and explicit `via`, `channelX`, `channelY`, `labelAt`, or non-`auto` routes. Near parallel ports use an outside bridge so automatic routing cannot create a sub-8px segment or sub-16px interior turn.+- Automatic Port Spread is a default renderer behavior for architecture, workflow, data-flow, and lifecycle. It skips single relationships and explicit `via`, `channelX`, `channelY`, `labelAt`, or non-`auto` routes. Near parallel ports use an outside bridge so automatic routing cannot create a sub-8px segment or sub-16px interior turn. Architecture separately keeps a lone, unobstructed pair of automatic left/right ports on one horizontal axis when their midpoint offset is under 16px and both ports retain corner clearance.- Never accept an edge crossing an unrelated opaque node, an ambiguous shared corridor, or a relationship label masking another route.Read `references/authoring-contract.md` only when you need field enums, spacing math, geometry repair rules, repository evidence, or mode-specific placement.diff --git a/archify/assets/template.html b/archify/assets/template.htmlindex 75d6091f..3619aa9d 100644--- a/archify/assets/template.html+++ b/archify/assets/template.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4915,10 +5186,6 @@</div><!-- ARCHIFY:CARDS_SLOT_END -->- <!-- Footer -->- <p class="footer">- [Project Name] • [Additional metadata]- </p></div><script>@@ -5064,7 +5331,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5094,7 +5360,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6217,12 +6482,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10867,7 +11130,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10886,7 +11148,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/archify/examples/agent-run.lifecycle.json b/archify/examples/agent-run.lifecycle.jsonindex 18ab9e19..329208b4 100644--- a/archify/examples/agent-run.lifecycle.json+++ b/archify/examples/agent-run.lifecycle.json@@ -3,7 +3,6 @@"diagram_type": "lifecycle","meta": {"title": "Agent Run Lifecycle",- "subtitle": "State machine for planning, tool execution, human approval, retries, and terminal outcomes","output": "examples/lifecycle-agent-run.html","viewBox": [980, 660],"animation": "trace",diff --git a/archify/examples/agent-tool-call.workflow.json b/archify/examples/agent-tool-call.workflow.jsonindex f5da8941..1144e1d5 100644--- a/archify/examples/agent-tool-call.workflow.json+++ b/archify/examples/agent-tool-call.workflow.json@@ -3,7 +3,6 @@"diagram_type": "workflow","meta": {"title": "Agent Tool Call Workflow",- "subtitle": "Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges","animation": "trace","visual_preset": "signal-flow","quality_profile": "showcase",diff --git a/archify/examples/async-job-roundtrip.sequence.json b/archify/examples/async-job-roundtrip.sequence.jsonindex 1d178c05..35110496 100644--- a/archify/examples/async-job-roundtrip.sequence.json+++ b/archify/examples/async-job-roundtrip.sequence.json@@ -3,7 +3,6 @@"diagram_type": "sequence","meta": {"title": "Async Job Roundtrip",- "subtitle": "Acknowledgement, queueing, background work, retries, callback, polling, and final consistency","output": "examples/async-job-roundtrip.html","viewBox": [820, 920],"animation": "trace",diff --git a/archify/examples/cache-miss-request.sequence.json b/archify/examples/cache-miss-request.sequence.jsonindex 4d98e6bc..3a5d502f 100644--- a/archify/examples/cache-miss-request.sequence.json+++ b/archify/examples/cache-miss-request.sequence.json@@ -3,7 +3,6 @@"diagram_type": "sequence","meta": {"title": "Cache Miss Request Sequence",- "subtitle": "Frontend request path with auth, cache fallback, persistence, and async trace","output": "examples/sequence-cache-miss-request.html","viewBox": [820, 760],"animation": "trace",diff --git a/archify/examples/checkout-platform.base.architecture.json b/archify/examples/checkout-platform.base.architecture.jsonindex 3fe73c2d..6a0697c1 100644--- a/archify/examples/checkout-platform.base.architecture.json+++ b/archify/examples/checkout-platform.base.architecture.json@@ -3,7 +3,6 @@"diagram_type": "architecture","meta": {"title": "Checkout Platform — Baseline",- "subtitle": "Before fraud screening moved into the payment path","visual_preset": "signal-flow"},"components": [diff --git a/archify/examples/checkout-platform.head.architecture.json b/archify/examples/checkout-platform.head.architecture.jsonindex b7dd858d..224d62b4 100644--- a/archify/examples/checkout-platform.head.architecture.json+++ b/archify/examples/checkout-platform.head.architecture.json@@ -3,7 +3,6 @@"diagram_type": "architecture","meta": {"title": "Checkout Platform — Fraud Gate",- "subtitle": "Fraud screening now owns payment authorization","visual_preset": "signal-flow"},"components": [diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.htmlindex 6c5e728c..debdeadd 100644--- a/archify/examples/dataflow-product-analytics.html+++ b/archify/examples/dataflow-product-analytics.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Product Analytics Data Flow</h1></div>- <p class="subtitle">Events, consent, PII isolation, warehouse sync, and downstream analytics</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"collection-path","label":"Collection path","focus":["web","mobile","edge","stream"],"note":"Follow product events from clients into the ordered event stream."},{"id":"consent-boundary","label":"Consent and PII","focus":["edge","consent","pii"],"note":"Isolate the policy gate and restricted identity store."},{"id":"analytics-consumers","label":"Curated consumers","focus":["stream","warehouse","dashboard","features","model"],"note":"See curated facts, dashboards, and the derived feature path."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 1080 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Product Analytics Data Flow</title>- <desc id="archify-diagram-description">Events, consent, PII isolation, warehouse sync, and downstream analytics</desc>+ <desc id="archify-diagram-description">A data-flow diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4785,26 +5055,26 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="704" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <text x="40" y="704" class="t-primary" font-size="12" font-weight="650">Legend</text><g data-legend-semantic-kind="emphasis" data-legend-x="40" data-legend-baseline="724" data-legend-width="103"><path d="M 40 721 L 74 721" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <text x="83" y="724" class="t-muted" font-size="8">primary data</text>+ <text x="83" y="724" class="t-muted" font-size="10" font-weight="500">primary data</text></g><g data-legend-semantic-kind="security" data-legend-x="165" data-legend-baseline="724" data-legend-width="103"><path d="M 165 721 L 199 721" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <text x="208" y="724" class="t-muted" font-size="8">policy / PII</text>+ <text x="208" y="724" class="t-muted" font-size="10" font-weight="500">policy / PII</text></g><g data-legend-semantic-kind="dashed" data-legend-x="290" data-legend-baseline="724" data-legend-width="98"><path d="M 290 721 L 324 721" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="333" y="724" class="t-muted" font-size="8">async batch</text>+ <text x="333" y="724" class="t-muted" font-size="10" font-weight="500">async batch</text></g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="data store" data-legend-x="410" data-legend-baseline="724" data-legend-width="92">+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="data store" data-legend-x="410" data-legend-baseline="724" data-legend-width="93"><rect x="410" y="716" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="431" y="724" class="t-muted" font-size="8">data store</text>+ <text x="432" y="724" class="t-muted" font-size="10" font-weight="500">data store</text></g>- <g data-legend-semantic-kind="default" data-legend-x="524" data-legend-baseline="724" data-legend-width="88">- <path d="M 524 721 L 558 721" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <text x="567" y="724" class="t-muted" font-size="8">data flow</text>+ <g data-legend-semantic-kind="default" data-legend-x="525" data-legend-baseline="724" data-legend-width="88">+ <path d="M 525 721 L 559 721" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>+ <text x="568" y="724" class="t-muted" font-size="10" font-weight="500">data flow</text></g></g></svg>@@ -5027,10 +5297,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Data-flow diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=dataflow&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5176,7 +5442,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5206,7 +5471,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6329,12 +6593,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10979,7 +11241,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10998,7 +11259,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/archify/examples/deployment-release.lifecycle.json b/archify/examples/deployment-release.lifecycle.jsonindex b82bb81f..ba87dc22 100644--- a/archify/examples/deployment-release.lifecycle.json+++ b/archify/examples/deployment-release.lifecycle.json@@ -3,7 +3,6 @@"diagram_type": "lifecycle","meta": {"title": "Deployment Release Lifecycle",- "subtitle": "Queued, building, verifying, approval, promotion, health regression, rollback, and terminal outcomes","output": "examples/deployment-release.html","viewBox": [980, 680],"animation": "trace",diff --git a/archify/examples/event-stream.dataflow.json b/archify/examples/event-stream.dataflow.jsonindex 9145f1e4..e7cc5002 100644--- a/archify/examples/event-stream.dataflow.json+++ b/archify/examples/event-stream.dataflow.json@@ -3,7 +3,6 @@"diagram_type": "dataflow","meta": {"title": "Order Event-stream Topology",- "subtitle": "Named events, ordered topics, processors, consumer groups, state, replay, and dead letters","output": "examples/event-stream.html","viewBox": [1080, 780],"animation": "trace",diff --git a/archify/examples/incident-response.workflow.json b/archify/examples/incident-response.workflow.jsonindex fca59b35..7446e55f 100644--- a/archify/examples/incident-response.workflow.json+++ b/archify/examples/incident-response.workflow.json@@ -3,7 +3,6 @@"diagram_type": "workflow","meta": {"title": "Incident Response Runbook",- "subtitle": "Detection, triage, mitigation, communication, escalation, and recovery proof","output": "examples/incident-response.html","animation": "trace","visual_preset": "signal-flow",diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.htmlindex 0d8e7fb8..92eb1c8c 100644--- a/archify/examples/lifecycle-agent-run.html+++ b/archify/examples/lifecycle-agent-run.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Agent Run Lifecycle</h1></div>- <p class="subtitle">State machine for planning, tool execution, human approval, retries, and terminal outcomes</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"main-lifecycle","label":"Main lifecycle","focus":["queued","planning","executing","reviewing","completed"],"note":"Follow the ordered phases from accepted request to completed response."},{"id":"human-waits","label":"Human and input waits","focus":["executing","approval","reviewing","blocked"],"note":"See where the run pauses without becoming terminal."},{"id":"recovery-and-exits","label":"Recovery and terminal exits","focus":["executing","failed","blocked","cancelled","expired"],"note":"Separate retryable failure from cancellation and expiry."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 980 660" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Run Lifecycle</title>- <desc id="archify-diagram-description">State machine for planning, tool execution, human approval, retries, and terminal outcomes</desc>+ <desc id="archify-diagram-description">A lifecycle diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4730,30 +5000,30 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="604" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="start" data-legend-kind="start" data-legend-label="start" data-legend-x="40" data-legend-baseline="624" data-legend-width="67">+ <text x="40" y="604" class="t-primary" font-size="12" font-weight="650">Legend</text>+ <g data-legend-semantic-kind="start" data-legend-kind="start" data-legend-label="start" data-legend-x="40" data-legend-baseline="624" data-legend-width="68"><rect x="40" y="616" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="61" y="624" class="t-muted" font-size="8">start</text>+ <text x="62" y="624" class="t-muted" font-size="10" font-weight="500">start</text></g>- <g data-legend-semantic-kind="active" data-legend-kind="active" data-legend-label="active state" data-legend-x="129" data-legend-baseline="624" data-legend-width="102">- <rect x="129" y="616" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="150" y="624" class="t-muted" font-size="8">active state</text>+ <g data-legend-semantic-kind="active" data-legend-kind="active" data-legend-label="active state" data-legend-x="130" data-legend-baseline="624" data-legend-width="103">+ <rect x="130" y="616" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="152" y="624" class="t-muted" font-size="10" font-weight="500">active state</text></g>- <g data-legend-semantic-kind="waiting" data-legend-kind="waiting" data-legend-label="waiting" data-legend-x="253" data-legend-baseline="624" data-legend-width="77">- <rect x="253" y="616" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="274" y="624" class="t-muted" font-size="8">waiting</text>+ <g data-legend-semantic-kind="waiting" data-legend-kind="waiting" data-legend-label="waiting" data-legend-x="255" data-legend-baseline="624" data-legend-width="78">+ <rect x="255" y="616" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="277" y="624" class="t-muted" font-size="10" font-weight="500">waiting</text></g>- <g data-legend-semantic-kind="decision" data-legend-kind="decision" data-legend-label="decision" data-legend-x="352" data-legend-baseline="624" data-legend-width="82">- <rect x="352" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="373" y="624" class="t-muted" font-size="8">decision</text>+ <g data-legend-semantic-kind="decision" data-legend-kind="decision" data-legend-label="decision" data-legend-x="355" data-legend-baseline="624" data-legend-width="83">+ <rect x="355" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="377" y="624" class="t-muted" font-size="10" font-weight="500">decision</text></g>- <g data-legend-semantic-kind="success" data-legend-kind="success" data-legend-label="terminal success" data-legend-x="456" data-legend-baseline="624" data-legend-width="122">- <rect x="456" y="616" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="477" y="624" class="t-muted" font-size="8">terminal success</text>+ <g data-legend-semantic-kind="success" data-legend-kind="success" data-legend-label="terminal success" data-legend-x="460" data-legend-baseline="624" data-legend-width="123">+ <rect x="460" y="616" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="482" y="624" class="t-muted" font-size="10" font-weight="500">terminal success</text></g>- <g data-legend-semantic-kind="failure" data-legend-kind="failure" data-legend-label="failure / exit" data-legend-x="600" data-legend-baseline="624" data-legend-width="112">- <rect x="600" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="621" y="624" class="t-muted" font-size="8">failure / exit</text>+ <g data-legend-semantic-kind="failure" data-legend-kind="failure" data-legend-label="failure / exit" data-legend-x="605" data-legend-baseline="624" data-legend-width="113">+ <rect x="605" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="627" y="624" class="t-muted" font-size="10" font-weight="500">failure / exit</text></g></g></svg>@@ -4976,10 +5246,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Lifecycle diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=lifecycle&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5125,7 +5391,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5155,7 +5420,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6278,12 +6542,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10928,7 +11190,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10947,7 +11208,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/archify/examples/product-analytics.dataflow.json b/archify/examples/product-analytics.dataflow.jsonindex bf0a9f33..57270cf1 100644--- a/archify/examples/product-analytics.dataflow.json+++ b/archify/examples/product-analytics.dataflow.json@@ -3,7 +3,6 @@"diagram_type": "dataflow","meta": {"title": "Product Analytics Data Flow",- "subtitle": "Events, consent, PII isolation, warehouse sync, and downstream analytics","output": "examples/dataflow-product-analytics.html","viewBox": [1080, 760],"animation": "trace",diff --git a/archify/examples/production-deployment.architecture.json b/archify/examples/production-deployment.architecture.jsonindex b57fe07e..91507689 100644--- a/archify/examples/production-deployment.architecture.json+++ b/archify/examples/production-deployment.architecture.json@@ -3,7 +3,6 @@"diagram_type": "architecture","meta": {"title": "Production Deployment Ownership",- "subtitle": "Regions, network boundaries, workload owners, state, and named crossings","output": "examples/production-deployment.html","visual_preset": "blueprint","animation": "trace",diff --git a/archify/examples/release-delivery.workflow.json b/archify/examples/release-delivery.workflow.jsonindex c58acacd..915e39c4 100644--- a/archify/examples/release-delivery.workflow.json+++ b/archify/examples/release-delivery.workflow.json@@ -3,7 +3,6 @@"diagram_type": "workflow","meta": {"title": "Release Delivery Workflow",- "subtitle": "Commit, blocking checks, approval, production verification, and rollback","output": "examples/release-delivery.html","animation": "trace","quality_profile": "showcase",diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.htmlindex f9208662..4f0bfa5b 100644--- a/archify/examples/sequence-cache-miss-request.html+++ b/archify/examples/sequence-cache-miss-request.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Cache Miss Request Sequence</h1></div>- <p class="subtitle">Frontend request path with auth, cache fallback, persistence, and async trace</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"request-and-auth","label":"Request and identity","focus":["user","web","api","auth"],"note":"Follow the user request through the authentication check."},{"id":"cache-fallback","label":"Cache fallback","focus":["api","redis","db"],"note":"See the cache miss and the source-of-truth query it triggers."},{"id":"return-and-trace","label":"Return and trace","focus":["db","api","redis","trace","web","user"],"note":"Separate response latency from the non-blocking observability write."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 820 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Cache Miss Request Sequence</title>- <desc id="archify-diagram-description">Frontend request path with auth, cache fallback, persistence, and async trace</desc>+ <desc id="archify-diagram-description">A sequence diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4800,26 +5070,26 @@<!-- Legend --><g data-legend>- <text x="40" y="686" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <text x="40" y="686" class="t-primary" font-size="12" font-weight="650">Legend</text><g data-legend-semantic-kind="emphasis" data-legend-x="40" data-legend-baseline="706" data-legend-width="78"><path d="M 40 703 L 74 703" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <text x="83" y="706" class="t-muted" font-size="8">request</text>+ <text x="83" y="706" class="t-muted" font-size="10" font-weight="500">request</text></g><g data-legend-semantic-kind="return" data-legend-x="140" data-legend-baseline="706" data-legend-width="73"><path d="M 140 703 L 174 703" class="a-default" stroke-width="1.4" stroke-dasharray="3,5" marker-end="url(#arrowhead)"/>- <text x="183" y="706" class="t-muted" font-size="8">return</text>+ <text x="183" y="706" class="t-muted" font-size="10" font-weight="500">return</text></g><g data-legend-semantic-kind="security" data-legend-x="235" data-legend-baseline="706" data-legend-width="83"><path d="M 235 703 L 269 703" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <text x="278" y="706" class="t-muted" font-size="8">security</text>+ <text x="278" y="706" class="t-muted" font-size="10" font-weight="500">security</text></g><g data-legend-semantic-kind="dashed" data-legend-x="340" data-legend-baseline="706" data-legend-width="98"><path d="M 340 703 L 374 703" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="383" y="706" class="t-muted" font-size="8">async trace</text>+ <text x="383" y="706" class="t-muted" font-size="10" font-weight="500">async trace</text></g><g data-legend-semantic-kind="default" data-legend-x="460" data-legend-baseline="706" data-legend-width="118"><path d="M 460 703 L 494 703" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <text x="503" y="706" class="t-muted" font-size="8">default message</text>+ <text x="503" y="706" class="t-muted" font-size="10" font-weight="500">default message</text></g></g></svg>@@ -5042,10 +5312,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Sequence diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=sequence&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5191,7 +5457,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5221,7 +5486,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6344,12 +6608,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10994,7 +11256,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11013,7 +11274,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.htmlindex 99b44cd6..6ce3815b 100644--- a/archify/examples/web-app-rendered.html+++ b/archify/examples/web-app-rendered.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Sample Web App</h1></div>- <p class="subtitle">Classic 3-tier SaaS on AWS — rendered by Archify</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"request-path","label":"Primary request path","focus":["users","cdn","lb","api","db"],"note":"Follow the primary customer request from the edge to durable state."},{"id":"identity-and-cache","label":"Identity and cache","focus":["auth","api","cache"],"note":"Isolate authentication and the read-through cache beside the request path."},{"id":"async-work","label":"Static and async work","focus":["cdn","s3","api","queue","worker"],"note":"See the two secondary paths without adding noise to the main request."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 1080 588" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Sample Web App</title>- <desc id="archify-diagram-description">Classic 3-tier SaaS on AWS — rendered by Archify</desc>+ <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4738,30 +5008,30 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="552" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="40" data-legend-baseline="572" data-legend-width="77">- <rect x="40" y="564" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="61" y="572" class="t-muted" font-size="8">Backend</text>+ <text x="40" y="552" 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="572" data-legend-width="78">+ <rect x="40" y="563" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>+ <text x="62" y="572" 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="139" data-legend-baseline="572" data-legend-width="82">- <rect x="139" y="564" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="160" y="572" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="140" data-legend-baseline="572" data-legend-width="83">+ <rect x="140" y="563" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>+ <text x="162" y="572" 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="243" data-legend-baseline="572" data-legend-width="67">- <rect x="243" y="564" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="264" y="572" class="t-muted" font-size="8">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="572" data-legend-width="68">+ <rect x="245" y="563" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="267" y="572" 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="332" data-legend-baseline="572" data-legend-width="82">- <rect x="332" y="564" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="353" y="572" class="t-muted" font-size="8">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="572" data-legend-width="83">+ <rect x="335" y="563" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="357" y="572" 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="436" data-legend-baseline="572" data-legend-width="97">- <rect x="436" y="564" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="457" y="572" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="440" data-legend-baseline="572" data-legend-width="98">+ <rect x="440" y="563" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>+ <text x="462" y="572" 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="555" data-legend-baseline="572" data-legend-width="82">- <rect x="555" y="564" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="576" y="572" class="t-muted" font-size="8">External</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="560" data-legend-baseline="572" data-legend-width="83">+ <rect x="560" y="563" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="582" y="572" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg>@@ -4982,10 +5252,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Architecture diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5131,7 +5397,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5161,7 +5426,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6284,12 +6548,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10934,7 +11196,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10953,7 +11214,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/archify/examples/web-app.architecture.json b/archify/examples/web-app.architecture.jsonindex a260185f..9f6cb140 100644--- a/archify/examples/web-app.architecture.json+++ b/archify/examples/web-app.architecture.json@@ -3,7 +3,6 @@"diagram_type": "architecture","meta": {"title": "Sample Web App",- "subtitle": "Classic 3-tier SaaS on AWS — rendered by Archify","output": "web-app-rendered.html","quality_profile": "showcase","views": [diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.htmlindex d77b11ed..2f6e1663 100644--- a/archify/examples/workflow-agent-tool-call-rendered.html+++ b/archify/examples/workflow-agent-tool-call-rendered.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Agent Tool Call Workflow</h1></div>- <p class="subtitle">Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"happy-path","label":"Request to result","focus":["user","chat","planner","router","approval","tool","external","final"],"note":"Follow the successful request from user intent to the final reply."},{"id":"safety-gate","label":"Policy and recovery","focus":["router","approval","blocked","retry"],"note":"See where risky work stops, waits for consent, or returns for revision."},{"id":"evidence-loop","label":"Evidence and memory","focus":["external","store","trace"],"note":"Isolate the durable trace and context path behind the visible answer."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Tool Call Workflow</title>- <desc id="archify-diagram-description">Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges</desc>+ <desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4800,37 +5070,7 @@</g><!-- Legend -->- <g data-legend data-legend-bridge>- <text x="20" y="800" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="User UI" data-legend-x="20" data-legend-baseline="820" data-legend-width="73">- <rect x="20" y="812" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="41" y="820" class="t-muted" font-size="7">User UI</text>- </g>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Agent logic" data-legend-x="100" data-legend-baseline="820" data-legend-width="90">- <rect x="100" y="812" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="121" y="820" class="t-muted" font-size="7">Agent logic</text>- </g>- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Policy" data-legend-x="197" data-legend-baseline="820" data-legend-width="69">- <rect x="197" y="812" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="218" y="820" class="t-muted" font-size="7">Policy</text>- </g>- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Tool action" data-legend-x="273" data-legend-baseline="820" data-legend-width="90">- <rect x="273" y="812" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="294" y="820" class="t-muted" font-size="7">Tool action</text>- </g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Context / trace" data-legend-x="370" data-legend-baseline="820" data-legend-width="108">- <rect x="370" y="812" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="391" y="820" class="t-muted" font-size="7">Context / trace</text>- </g>- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud service" data-legend-x="485" data-legend-baseline="820" data-legend-width="99">- <rect x="485" y="812" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="506" y="820" class="t-muted" font-size="7">Cloud service</text>- </g>- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External system" data-legend-x="591" data-legend-baseline="820" data-legend-width="108">- <rect x="591" y="812" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="612" y="820" class="t-muted" font-size="7">External system</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">@@ -5054,10 +5294,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Workflow diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=workflow&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5203,7 +5439,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5233,7 +5468,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6356,12 +6590,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -11006,7 +11238,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11025,7 +11256,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/archify/references/authoring-contract.md b/archify/references/authoring-contract.mdindex 9d80294d..3c32e95b 100644--- a/archify/references/authoring-contract.md+++ b/archify/references/authoring-contract.md@@ -31,9 +31,40 @@ its typed topology. Adding `meta.legend` makes the presentation intentional andstrict: if its resolved labels cannot fit the authored viewBox, shorten or hidethem, or widen the viewBox using the emitted diagnostic.+## Language consistency++Default all reader-facing authored copy to the language of the user's request,+or to the conversation's dominant language when the request itself is+language-neutral. Apply that choice to titles, subtitles, node and relationship+copy, boundaries, lanes, groups, guided views, legend labels, and cards. Use+another language or bilingual copy only when the user asks for it.++Keep exact product names, code identifiers, commands, protocols, API paths, and+environment names intact. Those terms may remain English inside localized copy,+but surrounding explanatory prose must still use the selected language. For a+non-English diagram, localize visible semantic legend labels through+`meta.legend.entries`; renderer-owned viewer controls remain separate from+authored copy and are not a reason to mix languages in the specification.++## Visual preset default++Omit `meta.visual_preset` by default. The renderer then opens the diagram in+`classic` for both light and dark color modes. Color mode and visual preset are+independent viewer state: switching Light / Dark must preserve the current+preset. Author `signal-flow`, `blueprint`, or `editorial` only when the user+explicitly requests that visual style.++## Title hierarchy++Use one concise title and let the diagram carry the explanation. Omit+`meta.subtitle` by default, and never use it to restate the title, nodes, edges,+or cards. Include one short supporting line only when the user explicitly asks+for a subtitle; an omitted or blank subtitle must not leave an empty visual row+in the generated viewer.+## Executable geometry rules-- Node anchors are side midpoints. `left`/`right` change the horizontal endpoint; `top`/`bottom` change the vertical endpoint.+- Node anchors start at side midpoints. `left`/`right` change the horizontal endpoint; `top`/`bottom` change the vertical endpoint. For one fully automatic Architecture relationship, unobstructed left/right ports whose midpoint offset is under 16px may share one horizontal axis when both endpoints retain the 16px corner gutter.- A side is a direction contract. The first and final route segment must be perpendicular and outward/inward in the named direction.- Automatic Port Spread is a default renderer behavior for architecture, workflow, data-flow, and lifecycle diagrams. Shared automatic endpoints spread deterministically and symmetrically with a 16px corner gutter. It does not apply to sequence messages, single relationships, or explicit `via`, `channelX`, `channelY`, `labelAt`, or non-`auto` routes.- Showcase route rhythm: every nonzero segment must be at least 8px; every interior segment must be at least 16px. When spread ports are nearly parallel, the router uses a 24px endpoint stub and a 16px outside bridge instead of manufacturing a tiny dogleg.diff --git a/archify/references/delivery-contract.md b/archify/references/delivery-contract.mdindex 6eb0c213..cf4874c5 100644--- a/archify/references/delivery-contract.md+++ b/archify/references/delivery-contract.md@@ -32,6 +32,8 @@ Never start it by default. Do not use it for CI, unattended agents, remote shariAutomated validation cannot prove visual polish. After deterministic delivery, inspect the actual HTML in a capable browser or render a screenshot with an image reader. Check both themes when changed, the default READ view, line crossings/corridors, label masks, node/card fit, focus/search/passport closure, and export cleanliness.+For the default standalone desktop viewer, measure 1440×900, 1600×1000, and 1920×1080. When the artifact is intended for a large desktop display, also measure 2048×1320. A first-screen pass requires `document.documentElement.scrollWidth <= window.innerWidth` and `scrollHeight <= window.innerHeight` at every checked size. At the largest checked viewport, inspect the rendered composition for a conspicuous empty lower band: the main panel and necessary conclusion cards should use the available height as a balanced whole, not collapse into a shallow strip. If a desktop viewport overflows, repair the authored composition by removing only genuinely redundant content or compacting spacing before shrinking nodes, labels, or the main panel. Do not hide overflow, clip content, introduce an internal diagram scroller, or reduce node/label typography to make the measurement pass. Narrow/mobile containment may retain vertical page scrolling.+Report exactly one truthful status:- `visual_review: passed` — only after inspecting the rendered artifact.diff --git a/archify/renderers/architecture/render-architecture.mjs b/archify/renderers/architecture/render-architecture.mjsindex 2e484b97..759dd1b6 100644--- a/archify/renderers/architecture/render-architecture.mjs+++ b/archify/renderers/architecture/render-architecture.mjs@@ -5,6 +5,7 @@ import { animateAttr, focusEdgeAttrs, focusNodeAttrs, focusNodeTitle, loadDiagraimport { componentBox, boundaryBox, connectionPath } from '../shared/layout-report.mjs';import { throwDiagnosticProblems } from '../shared/diagnostics.mjs';import { legendFootprint, relationshipLegendObstacles, resolveLegend, renderLegend as renderResolvedLegend } from '../shared/legend.mjs';+import { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';import { gridLayout, resolveComponentPos, validateGridPlacement } from './grid.mjs';import {asArray,@@ -38,6 +39,13 @@ import {variantAccent,} from '../shared/geometry.mjs';+const componentTextFit = {+ sublabelPreferred: 9,+ sublabelMinimum: 6,+ tagPreferred: 7,+ tagMinimum: 6,+};+const __dirname = path.dirname(fileURLToPath(import.meta.url));const layoutJsonMode = process.argv.includes('--layout-json');const cliArgs = process.argv.filter((arg) => arg !== '--layout-json');@@ -197,7 +205,21 @@ function validateArchitecture() {}const estLabelW = textUnits(c.label) * 6.6;if (estLabelW > c.width + 8) {- problems.push(`Label "${c.label}" (~${Math.round(estLabelW)}px) is wider than component "${c.id}" (${c.width}px) — shorten the label, move detail to sublabel, or widen size.`);+ problems.push(`Label "${c.label}" (~${Math.round(estLabelW)}px) is wider than component "${c.id}" (${c.width}px) — shorten the label or widen size.`);+ }+ if (c.sublabel) {+ const minimumW = minimumNodeTextWidth(c.sublabel, componentTextFit.sublabelMinimum);+ const availableW = availableNodeTextWidth(c.width);+ if (minimumW > availableW) {+ problems.push(`Sublabel "${c.sublabel}" needs ~${Math.ceil(minimumW)}px at the ${componentTextFit.sublabelMinimum}px legible minimum, but component "${c.id}" provides ${availableW}px — shorten the sublabel or widen size.`);+ }+ }+ if (c.tag) {+ const minimumW = minimumNodeTextWidth(c.tag, componentTextFit.tagMinimum);+ const availableW = availableNodeTextWidth(c.width);+ if (minimumW > availableW) {+ problems.push(`Tag "${c.tag}" needs ~${Math.ceil(minimumW)}px at the ${componentTextFit.tagMinimum}px legible minimum, but component "${c.id}" provides ${availableW}px — shorten the tag or widen size.`);+ }}}@@ -454,6 +476,52 @@ function sideAwareBridgeCandidates(start, end, fromSide, toSide) {.map((points) => points.slice(1, -1));}+const AUTOMATIC_PORT_CORNER_GUTTER = 16;+const AUTOMATIC_PORT_ALIGNMENT_DELTA = 16;++function portHasCornerClearance(rect, side, point) {+ if (side !== 'left' && side !== 'right') return false;+ const inset = Math.min(AUTOMATIC_PORT_CORNER_GUTTER, rect.height / 2);+ return point[1] >= rect.y + inset && point[1] <= rect.y + rect.height - inset;+}++function alignUnspreadFacingPorts(conn, from, to, start, end, fromSide, toSide) {+ const hasExplicitGeometry = (+ conn.via+ || (conn.route && conn.route !== 'auto')+ || conn.channelX !== undefined+ || conn.channelY !== undefined+ || conn.labelAt+ || (conn.fromSide && conn.fromSide !== 'auto')+ || (conn.toSide && conn.toSide !== 'auto')+ );+ const horizontallyFacing = (+ (fromSide === 'right' && toSide === 'left')+ || (fromSide === 'left' && toSide === 'right')+ );+ if (hasExplicitGeometry || !horizontallyFacing) return { start, end };+ if (Math.abs(start[1] - end[1]) >= AUTOMATIC_PORT_ALIGNMENT_DELTA) return { start, end };++ // A lone near-aligned edge does not need the outside bridge reserved for+ // genuinely spread ports. Keep one shared flow axis when the opposite+ // side can accept that port with the same 16px corner clearance.+ const candidates = [+ { start, end: [end[0], start[1]] },+ { start: [start[0], end[1]], end },+ ];+ for (const candidate of candidates) {+ const points = [candidate.start, candidate.end];+ if (portHasCornerClearance(from, fromSide, candidate.start)+ && portHasCornerClearance(to, toSide, candidate.end)+ && routeHonorsEndpointSides(points, fromSide, toSide)+ && routeClearsEndpointComponents(points, from, to)+ && routeClearsComponents(conn, points)) {+ return candidate;+ }+ }+ return { start, end };+}+function routeVia(conn, from, to, start, end, fromSide, toSide) {if (conn.via) return conn.via;switch (conn.route || 'auto') {@@ -575,8 +643,11 @@ function pathFor(conn) {const to = components.get(conn.to);const ports = automaticPorts.get(conn);const { fromSide, toSide } = connectionSides(conn);- const start = ports?.from || anchor(from, fromSide);- const end = ports?.to || anchor(to, toSide);+ const baseStart = ports?.from || anchor(from, fromSide);+ const baseEnd = ports?.to || anchor(to, toSide);+ const { start, end } = ports+ ? { start: baseStart, end: baseEnd }+ : alignUnspreadFacingPorts(conn, from, to, baseStart, baseEnd, fromSide, toSide);const points = [start, ...routeVia(conn, from, to, start, end, fromSide, toSide), end];const routed = { d: roundedPath(points, 8), points };pathCache.set(conn, routed);@@ -616,10 +687,10 @@ function renderComponent(c) {const hasSub = c.sublabel != null && c.sublabel !== '';const labelY = hasSub ? c.y + c.height / 2 - 2 : c.y + c.height / 2 + 4;const sub = hasSub- ? `\n <text data-detail="context" x="${cx}" y="${c.y + c.height / 2 + 14}" class="t-muted" font-size="9" text-anchor="middle">${esc(c.sublabel)}</text>`+ ? `\n <text data-detail="context" x="${cx}" y="${c.y + c.height / 2 + 14}" class="t-muted" font-size="${fittedNodeFontSize(c.sublabel, c.width, componentTextFit.sublabelPreferred, componentTextFit.sublabelMinimum)}" text-anchor="middle">${esc(c.sublabel)}</text>`: '';const tag = c.tag- ? `\n <text data-detail="fine" x="${cx}" y="${c.y + c.height - 8}" class="${accent}" font-size="7" text-anchor="middle">${esc(c.tag)}</text>`+ ? `\n <text data-detail="fine" x="${cx}" y="${c.y + c.height - 8}" class="${accent}" font-size="${fittedNodeFontSize(c.tag, c.width, componentTextFit.tagPreferred, componentTextFit.tagMinimum)}" text-anchor="middle">${esc(c.tag)}</text>`: '';const passport = { kind: c.type, sublabel: c.sublabel, tag: c.tag, context: componentContext(c) };return ` <g ${focusNodeAttrs(c.id, c.label, passport)}>@@ -658,7 +729,7 @@ function renderLegend() {unfit: arch.meta?.legend === undefined ? 'hide' : 'error',diagramType: 'architecture',},- renderSwatch: (entry) => `<rect x="${entry.x}" y="${entry.baseline - 8}" width="14" height="9" rx="2" class="${componentFill[entry.kind] || 'c-external'}" stroke-width="1"/>`,+ renderSwatch: (entry) => `<rect x="${entry.x}" y="${entry.baseline - 9}" width="16" height="10" rx="2.5" class="${componentFill[entry.kind] || 'c-external'}" stroke-width="1"/>`,});}@@ -697,7 +768,6 @@ writeDiagram({template,diagramType: 'architecture',meta: arch.meta,- footerLabel: 'Architecture diagram',svg: renderSvg(),cards: arch.cards,sourceEvidence,diff --git a/archify/renderers/dataflow/README.md b/archify/renderers/dataflow/README.mdindex 41186472..d5c43fcb 100644--- a/archify/renderers/dataflow/README.md+++ b/archify/renderers/dataflow/README.md@@ -23,7 +23,6 @@ Data-flow JSON files must set:"diagram_type": "dataflow","meta": {"title": "Product Analytics Data Flow",- "subtitle": "Events, consent, PII isolation, warehouse sync, and consumers","viewBox": [940, 720]},"stages": [],diff --git a/archify/renderers/dataflow/render-dataflow.mjs b/archify/renderers/dataflow/render-dataflow.mjsindex 743d308f..6b8fdc21 100644--- a/archify/renderers/dataflow/render-dataflow.mjs+++ b/archify/renderers/dataflow/render-dataflow.mjs@@ -4,6 +4,7 @@ import { esc, renderDefinitions, renderSemanticSigil, textUnits } from '../shareimport { animateAttr, focusEdgeAttrs, focusNodeAttrs, focusNodeTitle, loadDiagram, writeDiagram, svgAccessibleText, svgRootAttrs } from '../shared/cli.mjs';import { throwDiagnosticProblems } from '../shared/diagnostics.mjs';import { resolveLegend, renderLegend as renderResolvedLegend } from '../shared/legend.mjs';+import { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';import {asArray,isFinitePoint,@@ -30,6 +31,13 @@ import {variantAccent} from '../shared/geometry.mjs';+const nodeTextFit = {+ sublabelPreferred: 7,+ sublabelMinimum: 6,+ tagPreferred: 7,+ tagMinimum: 6,+};+const __dirname = path.dirname(fileURLToPath(import.meta.url));const { diagram: dataflow, template, outPath } = loadDiagram({rendererDir: __dirname,@@ -139,7 +147,21 @@ function validateDataflow() {}const estLabelW = textUnits(node.label) * 6.2;if (estLabelW > node.width + 6) {- problems.push(`Label "${node.label}" (~${Math.round(estLabelW)}px) is wider than node "${node.id}" (${node.width}px) — shorten the label, move detail to sublabel, or increase node.width.`);+ problems.push(`Label "${node.label}" (~${Math.round(estLabelW)}px) is wider than node "${node.id}" (${node.width}px) — shorten the label or increase node.width.`);+ }+ if (node.sublabel) {+ const minimumW = minimumNodeTextWidth(node.sublabel, nodeTextFit.sublabelMinimum);+ const availableW = availableNodeTextWidth(node.width);+ if (minimumW > availableW) {+ problems.push(`Sublabel "${node.sublabel}" needs ~${Math.ceil(minimumW)}px at the ${nodeTextFit.sublabelMinimum}px legible minimum, but node "${node.id}" provides ${availableW}px — shorten the sublabel or increase node.width.`);+ }+ }+ if (node.tag) {+ const minimumW = minimumNodeTextWidth(node.tag, nodeTextFit.tagMinimum);+ const availableW = availableNodeTextWidth(node.width);+ if (minimumW > availableW) {+ problems.push(`Tag "${node.tag}" needs ~${Math.ceil(minimumW)}px at the ${nodeTextFit.tagMinimum}px legible minimum, but node "${node.id}" provides ${availableW}px — shorten the tag or increase node.width.`);+ }}}@@ -324,10 +346,10 @@ function renderNode(node) {const accent = componentText[node.type] || 't-muted';const hasSub = node.sublabel != null && node.sublabel !== '';const sub = hasSub- ? `\n <text data-detail="context" x="${node.cx}" y="${node.y + 37}" class="t-muted" font-size="7" text-anchor="middle">${esc(node.sublabel)}</text>`+ ? `\n <text data-detail="context" x="${node.cx}" y="${node.y + 37}" class="t-muted" font-size="${fittedNodeFontSize(node.sublabel, node.width, nodeTextFit.sublabelPreferred, nodeTextFit.sublabelMinimum)}" text-anchor="middle">${esc(node.sublabel)}</text>`: '';const tag = node.tag- ? `\n <text data-detail="fine" x="${node.cx}" y="${node.y + node.height - 11}" class="${accent}" font-size="7" text-anchor="middle">${esc(node.tag)}</text>`+ ? `\n <text data-detail="fine" x="${node.cx}" y="${node.y + node.height - 11}" class="${accent}" font-size="${fittedNodeFontSize(node.tag, node.width, nodeTextFit.tagPreferred, nodeTextFit.tagMinimum)}" text-anchor="middle">${esc(node.tag)}</text>`: '';const stage = asArray(dataflow.stages)[node.stage];const context = stage ? `${String(node.stage + 1).padStart(2, '0')} / ${stage.label}` : 'Data-flow node';@@ -420,7 +442,6 @@ writeDiagram({template,diagramType: 'dataflow',meta: dataflow.meta,- footerLabel: 'Data-flow diagram',svg: renderSvg(),cards: dataflow.cards,});diff --git a/archify/renderers/lifecycle/README.md b/archify/renderers/lifecycle/README.mdindex bbbe07fc..ad39bb0e 100644--- a/archify/renderers/lifecycle/README.md+++ b/archify/renderers/lifecycle/README.md@@ -23,7 +23,6 @@ Lifecycle JSON files must set:"diagram_type": "lifecycle","meta": {"title": "Agent Run Lifecycle",- "subtitle": "Lifecycle phases, interruptions, recovery, and terminal exits","viewBox": [980, 660]},"lanes": [],diff --git a/archify/renderers/lifecycle/render-lifecycle.mjs b/archify/renderers/lifecycle/render-lifecycle.mjsindex 1c73934e..a8e5d2a0 100644--- a/archify/renderers/lifecycle/render-lifecycle.mjs+++ b/archify/renderers/lifecycle/render-lifecycle.mjs@@ -4,6 +4,7 @@ import { esc, renderDefinitions, renderSemanticSigil, textUnits } from '../shareimport { animateAttr, focusEdgeAttrs, focusNodeAttrs, focusNodeTitle, loadDiagram, writeDiagram, svgAccessibleText, svgRootAttrs } from '../shared/cli.mjs';import { throwDiagnosticProblems } from '../shared/diagnostics.mjs';import { resolveLegend, renderLegend as renderResolvedLegend } from '../shared/legend.mjs';+import { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';import {asArray,isFinitePoint,@@ -28,6 +29,13 @@ import {variantAccent} from '../shared/geometry.mjs';+const stateTextFit = {+ sublabelPreferred: 7,+ sublabelMinimum: 6,+ tagPreferred: 7,+ tagMinimum: 6,+};+const __dirname = path.dirname(fileURLToPath(import.meta.url));const { diagram: lifecycle, template, outPath } = loadDiagram({rendererDir: __dirname,@@ -177,7 +185,21 @@ function validateLifecycle() {}const estLabelW = textUnits(state.label) * 6.2;if (estLabelW > state.width + 6) {- problems.push(`Label "${state.label}" (~${Math.round(estLabelW)}px) is wider than state "${state.id}" (${state.width}px) — shorten the label, move detail to sublabel, or increase state.width.`);+ problems.push(`Label "${state.label}" (~${Math.round(estLabelW)}px) is wider than state "${state.id}" (${state.width}px) — shorten the label or increase state.width.`);+ }+ if (state.sublabel) {+ const minimumW = minimumNodeTextWidth(state.sublabel, stateTextFit.sublabelMinimum);+ const availableW = availableNodeTextWidth(state.width);+ if (minimumW > availableW) {+ problems.push(`Sublabel "${state.sublabel}" needs ~${Math.ceil(minimumW)}px at the ${stateTextFit.sublabelMinimum}px legible minimum, but state "${state.id}" provides ${availableW}px — shorten the sublabel or increase state.width.`);+ }+ }+ if (state.tag) {+ const minimumW = minimumNodeTextWidth(state.tag, stateTextFit.tagMinimum);+ const availableW = availableNodeTextWidth(state.width);+ if (minimumW > availableW) {+ problems.push(`Tag "${state.tag}" needs ~${Math.ceil(minimumW)}px at the ${stateTextFit.tagMinimum}px legible minimum, but state "${state.id}" provides ${availableW}px — shorten the tag or increase state.width.`);+ }}}@@ -380,10 +402,10 @@ function renderState(state) {const accent = textClass[state.type] || 't-muted';const hasSub = state.sublabel != null && state.sublabel !== '';const sub = hasSub- ? `\n <text data-detail="context" x="${state.cx}" y="${state.y + 37}" class="t-muted" font-size="7" text-anchor="middle">${esc(state.sublabel)}</text>`+ ? `\n <text data-detail="context" x="${state.cx}" y="${state.y + 37}" class="t-muted" font-size="${fittedNodeFontSize(state.sublabel, state.width, stateTextFit.sublabelPreferred, stateTextFit.sublabelMinimum)}" text-anchor="middle">${esc(state.sublabel)}</text>`: '';const tag = state.tag- ? `\n <text data-detail="fine" x="${state.cx}" y="${state.y + state.height - 11}" class="${accent}" font-size="7" text-anchor="middle">${esc(state.tag)}</text>`+ ? `\n <text data-detail="fine" x="${state.cx}" y="${state.y + state.height - 11}" class="${accent}" font-size="${fittedNodeFontSize(state.tag, state.width, stateTextFit.tagPreferred, stateTextFit.tagMinimum)}" text-anchor="middle">${esc(state.tag)}</text>`: '';const step = state.step? `\n <text data-detail="fine" x="${state.x + 10}" y="${state.y + 14}" class="${accent}" font-size="7" font-weight="700">${esc(state.step)}</text>`@@ -492,7 +514,6 @@ writeDiagram({template,diagramType: 'lifecycle',meta: lifecycle.meta,- footerLabel: 'Lifecycle diagram',svg: renderSvg(),cards: lifecycle.cards,});diff --git a/archify/renderers/sequence/README.md b/archify/renderers/sequence/README.mdindex 09746832..bea28979 100644--- a/archify/renderers/sequence/README.md+++ b/archify/renderers/sequence/README.md@@ -23,7 +23,6 @@ Sequence JSON files must set:"diagram_type": "sequence","meta": {"title": "Cache Miss Request Sequence",- "subtitle": "Frontend request path with auth and cache fallback","viewBox": [920, 760]},"participants": [],diff --git a/archify/renderers/sequence/render-sequence.mjs b/archify/renderers/sequence/render-sequence.mjsindex 3f68b542..ac7f6fca 100644--- a/archify/renderers/sequence/render-sequence.mjs+++ b/archify/renderers/sequence/render-sequence.mjs@@ -5,6 +5,12 @@ import { animateAttr, focusEdgeAttrs, focusNodeAttrs, focusNodeTitle, loadDiagraimport { throwDiagnosticProblems } from '../shared/diagnostics.mjs';import { resolveLegend, renderLegend as renderResolvedLegend } from '../shared/legend.mjs';import { componentFill, arrowClassMap, rectsOverlap, cleanFlowProblems, cleanCrossingProblems, cleanAmbiguousCorridorProblems, cleanBorderRunProblems, cleanRouteRhythmProblems, cleanLabelRouteClearanceProblems, routePointsValue, asArray, isFinitePoint } from '../shared/geometry.mjs';+import { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';++const participantTextFit = {+ sublabelPreferred: 7,+ sublabelMinimum: 6,+};const __dirname = path.dirname(fileURLToPath(import.meta.url));const { diagram: sequence, template, outPath } = loadDiagram({@@ -130,7 +136,14 @@ function validateSequence() {for (const participant of participants.values()) {const estLabelW = textUnits(participant.label) * 6.8;if (estLabelW > layout.participantW + 6) {- problems.push(`Label "${participant.label}" (~${Math.round(estLabelW)}px) is wider than the ${layout.participantW}px participant box — shorten it or move detail to sublabel.`);+ problems.push(`Label "${participant.label}" (~${Math.round(estLabelW)}px) is wider than the ${layout.participantW}px participant box — shorten it.`);+ }+ if (participant.sublabel) {+ const minimumW = minimumNodeTextWidth(participant.sublabel, participantTextFit.sublabelMinimum);+ const availableW = availableNodeTextWidth(layout.participantW);+ if (minimumW > availableW) {+ problems.push(`Sublabel "${participant.sublabel}" needs ~${Math.ceil(minimumW)}px at the ${participantTextFit.sublabelMinimum}px legible minimum, but participant "${participant.id}" provides ${availableW}px — shorten the sublabel (participant boxes are a fixed ${layout.participantW}px).`);+ }}}@@ -272,7 +285,7 @@ function renderParticipant(participant) {const fill = componentFill[participant.type] || 'c-external';const hasSub = participant.sublabel != null && participant.sublabel !== '';const sub = hasSub- ? `\n <text data-detail="context" x="${participant.cx}" y="${layout.topY + 39}" class="t-muted" font-size="7" text-anchor="middle">${esc(participant.sublabel)}</text>`+ ? `\n <text data-detail="context" x="${participant.cx}" y="${layout.topY + 39}" class="t-muted" font-size="${fittedNodeFontSize(participant.sublabel, layout.participantW, participantTextFit.sublabelPreferred, participantTextFit.sublabelMinimum)}" text-anchor="middle">${esc(participant.sublabel)}</text>`: '';const passport = { kind: participant.type, sublabel: participant.sublabel, context: 'Sequence participant' };return ` <g ${focusNodeAttrs(participant.id, participant.label, passport)}>@@ -412,7 +425,6 @@ writeDiagram({template,diagramType: 'sequence',meta: sequence.meta,- footerLabel: 'Sequence diagram',svg: renderSvg(),cards: sequence.cards,});diff --git a/archify/renderers/shared/cli.mjs b/archify/renderers/shared/cli.mjsindex 1a348615..2198a83a 100644--- a/archify/renderers/shared/cli.mjs+++ b/archify/renderers/shared/cli.mjs@@ -39,21 +39,14 @@ export function loadDiagram({ rendererDir, diagramType, defaultExample, argv = pconst START_TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']);// Common CLI tail: fill the template and write the standalone HTML file.-// The keyboard hint and the restrained start link are viewer-only — neither-// belongs in canonical SVG exports or on paper.-export function writeDiagram({ outPath, template, diagramType, meta, footerLabel, svg, cards, sourceEvidence = null }) {+export function writeDiagram({ outPath, template, diagramType, meta, svg, cards, sourceEvidence = null }) {if (!START_TYPES.has(diagramType)) throw new Error(`writeDiagram: unknown diagram type ${JSON.stringify(diagramType)}`);const outputGuard = outputPathGuards.get(outPath);if (outputGuard) resolveOutputPath(outputGuard);fs.mkdirSync(path.dirname(outPath), { recursive: true });- const guidedHint = Array.isArray(meta.views) && meta.views.length- ? ' • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story'- : '';- const startUrl = `https://tt-a1i.github.io/archify/start.html?type=${esc(diagramType)}&source=artifact`;fs.writeFileSync(outPath, applyTemplate(template, {title: meta.title,subtitle: meta.subtitle,- footer: `${footerLabel} • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="${startUrl}" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar${guidedHint} • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>`,svg,cards: renderCards(cards),visualPreset: meta.visual_preset || 'classic',diff --git a/archify/renderers/shared/legend.mjs b/archify/renderers/shared/legend.mjsindex 53496da0..83b5568a 100644--- a/archify/renderers/shared/legend.mjs+++ b/archify/renderers/shared/legend.mjs@@ -5,7 +5,7 @@ import { esc, textUnits } from './utils.mjs';const DEFAULT_FONT_SIZE = 8;const DEFAULT_ITEM_GAP = 22;const DEFAULT_LINE_GAP = 22;-const DEFAULT_SWATCH_GAP = 7;+const DEFAULT_SWATCH_GAP = 8;const TEXT_ADVANCE_EM = 0.62;const INTERACTIVE_BADGE_ALLOWANCE = 21;@@ -155,13 +155,13 @@ export function measureLegend(entries, {});const legendRects = [- { kind: 'title', x, y: legendTopY, width: 42, height: 13 },+ { kind: 'title', x, y: legendTopY, width: 48, height: 14 },...positioned.map((entry) => ({kind: entry.kind,x: entry.x,- y: entry.baseline - 9,+ y: entry.baseline - 10,width: entry.width,- height: 12,+ height: 14,})),];const collision = legendRects.find((legendRect) => obstacles.some((obstacle) => (@@ -195,10 +195,11 @@ export function renderLegend({ entries, layout, renderSwatch }) {const measured = measureLegend(entries, layout);if (!measured) return '';const hasInteractiveEntries = measured.entries.some((entry) => entry.interactive);+ const renderedFontSize = measured.fontSize < 8 ? measured.fontSize + 0.5 : measured.fontSize + 2;const rootAttributes = hasInteractiveEntries ? ' data-legend data-legend-bridge' : ' data-legend';const parts = [` <g${rootAttributes}>`,- ` <text x="${layout.x}" y="${measured.titleY}" class="t-primary" font-size="10" font-weight="600">Legend</text>`,+ ` <text x="${layout.x}" y="${measured.titleY}" class="t-primary" font-size="12" font-weight="650">Legend</text>`,];for (const entry of measured.entries) {@@ -207,7 +208,7 @@ export function renderLegend({ entries, layout, renderSwatch }) {: '';parts.push(` <g data-legend-semantic-kind="${esc(entry.kind)}"${interactive} data-legend-x="${entry.x}" data-legend-baseline="${entry.baseline}" data-legend-width="${entry.width}">`);parts.push(` ${renderSwatch(entry)}`);- parts.push(` <text x="${entry.x + (entry.swatchWidth ?? 14) + (entry.swatchGap ?? DEFAULT_SWATCH_GAP)}" y="${entry.baseline}" class="t-muted" font-size="${measured.fontSize}">${esc(entry.label)}</text>`);+ parts.push(` <text x="${entry.x + (entry.swatchWidth ?? 14) + (entry.swatchGap ?? DEFAULT_SWATCH_GAP)}" y="${entry.baseline}" class="t-muted" font-size="${renderedFontSize}" font-weight="500">${esc(entry.label)}</text>`);parts.push(' </g>');}parts.push(' </g>');diff --git a/archify/renderers/shared/text-fit.mjs b/archify/renderers/shared/text-fit.mjsnew file mode 100644index 00000000..f4101266--- /dev/null+++ b/archify/renderers/shared/text-fit.mjs@@ -0,0 +1,25 @@+import { textUnits } from './utils.mjs';++// Node labels are single-line, centered SVG text. These shared constants match+// the existing workflow renderer's fitting geometry: estimate monospace glyph+// advance, reserve a small inset, shrink only to a legible per-field floor.+const WIDTH_FACTOR = 0.6;+const HORIZONTAL_PADDING = 8;++export function availableNodeTextWidth(width) {+ return width - HORIZONTAL_PADDING;+}++export function fittedNodeFontSize(text, width, preferred, minimum) {+ const units = Math.max(1, textUnits(text));+ const available = Math.max(1, availableNodeTextWidth(width));+ const fitted = Math.min(preferred, available / (units * WIDTH_FACTOR));+ return Math.max(minimum, Math.floor(fitted * 10) / 10);+}++// Validation uses the same geometry as rendering so a green result guarantees+// that the fitted text can stay inside the node without dropping below the+// renderer's legibility floor.+export function minimumNodeTextWidth(text, minimum) {+ return textUnits(text) * minimum * WIDTH_FACTOR;+}diff --git a/archify/renderers/shared/utils.mjs b/archify/renderers/shared/utils.mjsindex a79196d9..739a8e6f 100644--- a/archify/renderers/shared/utils.mjs+++ b/archify/renderers/shared/utils.mjs@@ -100,6 +100,7 @@ ${card.items.map((item) => ` <li>• ${esc(item)}</li>`).join('\n')}const SVG_SLOT_RE = / <!-- ARCHIFY:SVG_SLOT_START -->[\s\S]*? <!-- ARCHIFY:SVG_SLOT_END -->/;const CARDS_SLOT_RE = / <!-- ARCHIFY:CARDS_SLOT_START -->[\s\S]*? <!-- ARCHIFY:CARDS_SLOT_END -->/;+const SUBTITLE_SLOT_RE = /^([ \t]*)<p class="subtitle">\[Subtitle description\]<\/p>[ \t]*(\r?\n)?/m;const GUIDED_VIEWS_PLACEHOLDER = '<!-- ARCHIFY:GUIDED_VIEWS_DATA -->';const SOURCE_EVIDENCE_PLACEHOLDER = ' <!-- ARCHIFY:SOURCE_EVIDENCE_DATA -->';@@ -107,20 +108,19 @@ const TEMPLATE_PLACEHOLDERS = ['<html lang="en" data-theme="dark" data-preset="[VISUAL PRESET]">','<title>[PROJECT NAME] Architecture Diagram</title>','<h1>[PROJECT NAME] Architecture</h1>',- '<p class="subtitle">[Subtitle description]</p>',- '[Project Name] • [Additional metadata]',GUIDED_VIEWS_PLACEHOLDER,];-// `footer` is injected as raw HTML so callers can embed <kbd> hints;-// pass only trusted strings here, never user input.-export function applyTemplate(template, { title, subtitle, footer, svg, cards, visualPreset = 'classic', guidedViews = [], sourceEvidence = null }) {+export function applyTemplate(template, { title, subtitle, svg, cards, visualPreset = 'classic', guidedViews = [], sourceEvidence = null }) {if (!SVG_SLOT_RE.test(template)) {throw new Error('applyTemplate: template missing ARCHIFY:SVG_SLOT sentinel');}if (!CARDS_SLOT_RE.test(template)) {throw new Error('applyTemplate: template missing ARCHIFY:CARDS_SLOT sentinel');}+ if (!SUBTITLE_SLOT_RE.test(template)) {+ throw new Error('applyTemplate: template missing subtitle placeholder');+ }for (const ph of TEMPLATE_PLACEHOLDERS) {if (!template.includes(ph)) {throw new Error(`applyTemplate: template missing placeholder ${JSON.stringify(ph)}`);@@ -142,14 +142,18 @@ export function applyTemplate(template, { title, subtitle, footer, svg, cards, v.replaceAll('<', '\\u003c').replaceAll('>', '\\u003e').replaceAll('&', '\\u0026');+ const renderedSubtitle = typeof subtitle === 'string' && subtitle.trim()+ ? `<p class="subtitle">${esc(subtitle)}</p>`+ : '';return template.replace(TEMPLATE_PLACEHOLDERS[0], () => `<html lang="en" data-theme="dark" data-preset="${esc(visualPreset)}">`).replace(TEMPLATE_PLACEHOLDERS[1], () => `<title>${esc(title)} Diagram</title>`).replace(TEMPLATE_PLACEHOLDERS[2], () => `<h1>${esc(title)}</h1>`)- .replace(TEMPLATE_PLACEHOLDERS[3], () => `<p class="subtitle">${esc(subtitle ?? '')}</p>`)+ .replace(SUBTITLE_SLOT_RE, (_match, indent, newline = '') => renderedSubtitle+ ? `${indent}${renderedSubtitle}${newline}`+ : '').replace(SVG_SLOT_RE, () => svg).replace(CARDS_SLOT_RE, () => cards)- .replace(TEMPLATE_PLACEHOLDERS[4], () => footer).replace(GUIDED_VIEWS_PLACEHOLDER, () => `<script id="archify-guided-views-data" type="application/json">${guidedViewsJson}</script>`).replace(SOURCE_EVIDENCE_PLACEHOLDER, () => sourceEvidence? ` <script id="archify-source-evidence-data" type="application/json">${sourceEvidenceJson}</script>`diff --git a/archify/renderers/workflow/README.md b/archify/renderers/workflow/README.mdindex 3635da77..a2a1f10e 100644--- a/archify/renderers/workflow/README.md+++ b/archify/renderers/workflow/README.md@@ -32,8 +32,7 @@ Workflow JSON files must set:"schema_version": 1,"diagram_type": "workflow","meta": {- "title": "Agent Tool Call Workflow",- "subtitle": "Renderer-driven workflow prototype"+ "title": "Agent Tool Call Workflow"},"lanes": [],"phases": [],diff --git a/archify/renderers/workflow/render-workflow.mjs b/archify/renderers/workflow/render-workflow.mjsindex 14a1ab7b..c73a8e82 100644--- a/archify/renderers/workflow/render-workflow.mjs+++ b/archify/renderers/workflow/render-workflow.mjs@@ -4,6 +4,7 @@ import { esc, renderDefinitions, renderSemanticSigil, textUnits } from '../shareimport { animateAttr, focusEdgeAttrs, focusNodeAttrs, focusNodeTitle, loadDiagram, writeDiagram, svgAccessibleText, svgRootAttrs } from '../shared/cli.mjs';import { throwDiagnosticProblems } from '../shared/diagnostics.mjs';import { resolveLegend, renderLegend as renderResolvedLegend } from '../shared/legend.mjs';+import { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';import {asArray,isFinitePoint,@@ -99,25 +100,14 @@ function measureNode(node) {}const nodeTextFit = {- widthFactor: 0.6,- horizontalPadding: 8,labelPreferred: 11,labelMinimum: 9,sublabelPreferred: 8,sublabelMinimum: 6,+ tagPreferred: 7,+ tagMinimum: 6,};-function fittedNodeFontSize(text, width, preferred, minimum) {- const units = Math.max(1, textUnits(text));- const available = Math.max(1, width - nodeTextFit.horizontalPadding);- const fitted = Math.min(preferred, available / (units * nodeTextFit.widthFactor));- return Math.max(minimum, Math.floor(fitted * 10) / 10);-}--function minimumNodeTextWidth(text, minimum) {- return textUnits(text) * minimum * nodeTextFit.widthFactor;-}-const nodes = new Map(asArray(workflow.nodes).map((node) => [node.id, measureNode(node)]));function workflowCompositionFrames() {@@ -226,15 +216,22 @@ function validateWorkflow() {}const estLabelW = textUnits(node.label) * 6.8;if (estLabelW > node.width + 6) {- problems.push(`Label "${node.label}" (~${Math.round(estLabelW)}px) is wider than node "${node.id}" (${node.width}px) — shorten the label, move detail to sublabel, or increase node.width.`);+ problems.push(`Label "${node.label}" (~${Math.round(estLabelW)}px) is wider than node "${node.id}" (${node.width}px) — shorten the label or increase node.width.`);}if (node.sublabel) {const minimumSublabelW = minimumNodeTextWidth(node.sublabel, nodeTextFit.sublabelMinimum);- const availableSublabelW = node.width - nodeTextFit.horizontalPadding;+ const availableSublabelW = availableNodeTextWidth(node.width);if (minimumSublabelW > availableSublabelW) {problems.push(`Sublabel "${node.sublabel}" needs ~${Math.ceil(minimumSublabelW)}px at the ${nodeTextFit.sublabelMinimum}px legible minimum, but node "${node.id}" provides ${availableSublabelW}px — shorten the sublabel or increase node.width.`);}}+ if (node.tag) {+ const minimumTagW = minimumNodeTextWidth(node.tag, nodeTextFit.tagMinimum);+ const availableTagW = availableNodeTextWidth(node.width);+ if (minimumTagW > availableTagW) {+ problems.push(`Tag "${node.tag}" needs ~${Math.ceil(minimumTagW)}px at the ${nodeTextFit.tagMinimum}px legible minimum, but node "${node.id}" provides ${availableTagW}px — shorten the tag or increase node.width.`);+ }+ }const top = laneTop(node.lane);const contentTop = top + layout.laneTitleH;@@ -547,7 +544,7 @@ function renderNode(node) {? `\n <text data-detail="context" x="${node.cx}" y="${node.y + 38}" class="t-muted" font-size="${sublabelFontSize}" text-anchor="middle">${esc(node.sublabel)}</text>`: '';const tag = node.tag- ? `\n <text data-detail="fine" x="${node.cx}" y="${node.y + node.height - 12}" class="${accent}" font-size="7" text-anchor="middle">${esc(node.tag)}</text>`+ ? `\n <text data-detail="fine" x="${node.cx}" y="${node.y + node.height - 12}" class="${accent}" font-size="${fittedNodeFontSize(node.tag, node.width, nodeTextFit.tagPreferred, nodeTextFit.tagMinimum)}" text-anchor="middle">${esc(node.tag)}</text>`: '';const passport = { kind: node.type, sublabel: node.sublabel, tag: node.tag, context: nodeContext(node) };return ` <g ${focusNodeAttrs(node.id, node.label, passport)}>@@ -643,7 +640,6 @@ writeDiagram({template,diagramType: 'workflow',meta: workflow.meta,- footerLabel: 'Workflow diagram',svg: renderSvg(),cards: workflow.cards,});diff --git a/archify/test/automatic-port-spread.test.mjs b/archify/test/automatic-port-spread.test.mjsindex 60d567da..d4127adb 100644--- a/archify/test/automatic-port-spread.test.mjs+++ b/archify/test/automatic-port-spread.test.mjs@@ -119,6 +119,23 @@ test('architecture: single and explicitly positioned relationships keep legacy aassert.deepEqual(connectionPoints(html, 'fixed-label'), [[220, 310], [360, 310], [360, 130], [500, 130]]);});+test('architecture: an unspread near-aligned connection shares one horizontal axis', () => {+ const html = render('architecture', {+ schema_version: 1,+ diagram_type: 'architecture',+ meta: { title: 'Near-aligned single connection' },+ components: [+ { id: 'console', type: 'frontend', label: 'Console', pos: [260, 300], size: [170, 64] },+ { id: 'controlplane', type: 'backend', label: 'Control plane', pos: [500, 300], size: [190, 72] },+ ],+ connections: [+ { id: 'console-controlplane', from: 'console', to: 'controlplane', label: 'REST /api', variant: 'emphasis', labelDy: -36 },+ ],+ });++ assert.deepEqual(connectionPoints(html, 'console-controlplane'), [[430, 332], [500, 332]]);+});+test('workflow: automatic cross-lane fan-out spreads the shared source port', () => {const html = render('workflow', {schema_version: 1,@@ -229,6 +246,10 @@ test('skill and READMEs describe automatic port spread as bounded default behaviassert.match(skill, /Automatic Port Spread is a default renderer behavior/);assert.match(skill, /single relationship|single relationships/);assert.match(skill, /explicit `via`.*`channelX`.*`channelY`.*`labelAt`/);+ assert.match(skill, /lone, unobstructed pair of automatic left\/right ports on one horizontal axis/);++ const authoringContract = fs.readFileSync(path.join(skillRoot, 'references/authoring-contract.md'), 'utf8');+ assert.match(authoringContract, /unobstructed left\/right ports.*may share one horizontal axis/);const repoRoot = path.resolve(skillRoot, '..');for (const file of ['README.md', 'README_EN.md']) {diff --git a/archify/test/geometry.test.mjs b/archify/test/geometry.test.mjsindex d6d99e30..960e9863 100644--- a/archify/test/geometry.test.mjs+++ b/archify/test/geometry.test.mjs@@ -631,16 +631,33 @@ test('applyTemplate preserves dollar sequences in titles', () => {<p class="subtitle">[Subtitle description]</p><!-- ARCHIFY:GUIDED_VIEWS_DATA --><!-- ARCHIFY:SVG_SLOT_START --><svg></svg> <!-- ARCHIFY:SVG_SLOT_END -->- <!-- ARCHIFY:CARDS_SLOT_START --><div></div> <!-- ARCHIFY:CARDS_SLOT_END -->-[Project Name] • [Additional metadata]`;+ <!-- ARCHIFY:CARDS_SLOT_START --><div></div> <!-- ARCHIFY:CARDS_SLOT_END -->`;const html = applyTemplate(template, {title: 'Plan $$50 tier',subtitle: 'test',- footer: 'f',svg: '<svg/>',cards: '',});assert.match(html, /Plan \$\$50 tier/);+ assert.match(html, /<p class="subtitle">test<\/p>/);+});++test('applyTemplate omits the subtitle row when no subtitle is authored', () => {+ const template = `<html lang="en" data-theme="dark" data-preset="[VISUAL PRESET]">+<title>[PROJECT NAME] Architecture Diagram</title>+<h1>[PROJECT NAME] Architecture</h1>+<p class="subtitle">[Subtitle description]</p>+<!-- ARCHIFY:GUIDED_VIEWS_DATA -->+ <!-- ARCHIFY:SVG_SLOT_START --><svg></svg> <!-- ARCHIFY:SVG_SLOT_END -->+ <!-- ARCHIFY:CARDS_SLOT_START --><div></div> <!-- ARCHIFY:CARDS_SLOT_END -->`;+ const html = applyTemplate(template, {+ title: 'Focused title',+ subtitle: ' ',+ svg: '<svg/>',+ cards: '',+ });+ assert.doesNotMatch(html, /class="subtitle"/);+ assert.doesNotMatch(html, /Subtitle description/);});test('applyTemplate requires the new evidence slot only when evidence is present', () => {@@ -650,13 +667,12 @@ test('applyTemplate requires the new evidence slot only when evidence is present<p class="subtitle">[Subtitle description]</p><!-- ARCHIFY:GUIDED_VIEWS_DATA --><!-- ARCHIFY:SVG_SLOT_START --><svg></svg> <!-- ARCHIFY:SVG_SLOT_END -->- <!-- ARCHIFY:CARDS_SLOT_START --><div></div> <!-- ARCHIFY:CARDS_SLOT_END -->-[Project Name] • [Additional metadata]`;+ <!-- ARCHIFY:CARDS_SLOT_START --><div></div> <!-- ARCHIFY:CARDS_SLOT_END -->`;assert.doesNotThrow(() => applyTemplate(legacyTemplate, {- title: 'Legacy', subtitle: '', footer: '', svg: '<svg/>', cards: '',+ title: 'Legacy', subtitle: '', svg: '<svg/>', cards: '',}));assert.throws(() => applyTemplate(legacyTemplate, {- title: 'Evidence', subtitle: '', footer: '', svg: '<svg/>', cards: '',+ title: 'Evidence', subtitle: '', svg: '<svg/>', cards: '',sourceEvidence: { verified: true },}), /repository evidence requires placeholder/);});diff --git a/archify/test/guided-views.test.mjs b/archify/test/guided-views.test.mjsindex 1ea242d3..39c6c138 100644--- a/archify/test/guided-views.test.mjs+++ b/archify/test/guided-views.test.mjs@@ -96,7 +96,8 @@ for (const [mode, config] of Object.entries(CASES)) {assert.match(guided.html, /container\.addEventListener\('scroll', onScroll, \{ passive: true \}\)/);assert.match(guided.html, /--archify-scroll-x/);assert.match(guided.html, /focus: function \(\) \{ return activeIndex < 0 \? \[\] : views\[activeIndex\]\.focus\.slice\(\); \}/);- assert.match(guided.html, /<kbd>P<\/kbd> play story/);+ assert.doesNotMatch(guided.html, /<p class="footer">/);+ assert.doesNotMatch(guided.html, /<kbd>P<\/kbd> play story/);assert.doesNotMatch(plain.html, /<kbd>P<\/kbd> play story/);assert.match(guided.html, /\\u003c\/script\\u003e\\u003cscript\\u003e/);assert.doesNotMatch(guided.html, /A safe note with <\/script><script>/);diff --git a/archify/test/layout-rules.test.mjs b/archify/test/layout-rules.test.mjsindex c1c5d815..8a12c2f7 100644--- a/archify/test/layout-rules.test.mjs+++ b/archify/test/layout-rules.test.mjs@@ -57,6 +57,13 @@ function hash(s) {return h;}+function fontSizeForText(html, text) {+ const escaped = text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');+ const match = html.match(new RegExp(`<text[^>]*font-size="([\\d.]+)"[^>]*>${escaped}</text>`));+ assert.ok(match, `expected rendered text "${text}" with an explicit font-size`);+ return Number(match[1]);+}+// [name, mode, mutate(doc), expectedSubstrings[]] — every mutation introduces// exactly one layout violation. Each expected substring must appear in stderr.const CASES = [@@ -66,6 +73,9 @@ const CASES = [(d) => { d.nodes[0].label = 'An Extremely Long Node Label That Overflows'; }, ['wider than node', 'shorten the label']],['workflow: node sublabel wider than its legible minimum', 'workflow',(d) => { d.nodes[0].sublabel = 'This supporting sentence is much too long for one workflow node'; }, ['Sublabel', 'legible', 'increase node.width']],+ ['workflow: node tag wider than its legible minimum', 'workflow',+ (d) => { d.nodes[0].tag = 'This tag is far too long to sit inside one workflow node box'; },+ ['Tag', 'legible', 'increase node.width']],['workflow: viewBox width below schema min', 'workflow',(d) => { d.meta.viewBox = [699, 900]; }, ['700']],['workflow: nodes too close in a lane', 'workflow',@@ -86,6 +96,9 @@ const CASES = [(d) => { d.messages[0].y = 9000; }, ['outside the readable timeline', 'keep y between']],['sequence: segment to <= from', 'sequence',(d) => { d.segments = [{ from: 400, to: 300, label: 'bad' }]; }, ['invalid y range', 'greater than']],+ ['sequence: participant sublabel wider than its legible minimum', 'sequence',+ (d) => { d.participants[0].sublabel = 'This supporting sentence is far too long for one sequence participant'; },+ ['Sublabel', 'legible', 'shorten the sublabel']],// ---- dataflow layout rules ----['dataflow: flow missing label', 'dataflow',@@ -96,6 +109,12 @@ const CASES = [(d) => {d.flows[0].via = [[195, 140], [195, 260]];}, ['diagonal segment', 'align via[0]']],+ ['dataflow: node sublabel wider than its legible minimum', 'dataflow',+ (d) => { d.nodes[0].sublabel = 'This supporting sentence is far too long for one data-flow node box'; },+ ['Sublabel', 'legible', 'increase node.width']],+ ['dataflow: node tag wider than its legible minimum', 'dataflow',+ (d) => { d.nodes[0].tag = 'This tag is far too long to sit inside one data-flow node box'; },+ ['Tag', 'legible', 'increase node.width']],// ---- lifecycle layout rules ----['lifecycle: missing reserved main lane', 'lifecycle',@@ -112,6 +131,12 @@ const CASES = [}, ['less than 10px apart']],['lifecycle: viewBox height below schema min', 'lifecycle',(d) => { d.meta.viewBox = [980, 565]; }, ['566']],+ ['lifecycle: state sublabel wider than its legible minimum', 'lifecycle',+ (d) => { d.states[0].sublabel = 'This supporting sentence is far too long for one lifecycle state box'; },+ ['Sublabel', 'legible', 'increase state.width']],+ ['lifecycle: state tag wider than its legible minimum', 'lifecycle',+ (d) => { d.states[0].tag = 'This tag is far too long to sit inside one lifecycle state box'; },+ ['Tag', 'legible', 'increase state.width']],// ---- architecture layout rules ----['architecture: components overlap', 'architecture',@@ -122,6 +147,12 @@ const CASES = [(d) => { d.boundaries[0].wraps.push('ghost'); }, ['wraps unknown component "ghost"']],['architecture: label wider than component', 'architecture',(d) => { d.components[0].label = 'An Extremely Long Component Label Overflow'; }, ['wider than component', 'shorten the label']],+ ['architecture: component sublabel wider than its legible minimum', 'architecture',+ (d) => { d.components[0].sublabel = 'This supporting sentence is far too long for one architecture component'; },+ ['Sublabel', 'legible', 'widen size']],+ ['architecture: component tag wider than its legible minimum', 'architecture',+ (d) => { d.components[0].tag = 'This tag is far too long to sit inside one architecture component box'; },+ ['Tag', 'legible', 'widen size']],['architecture: component overlap suggests fix', 'architecture',(d) => { d.components[1].pos = [...d.components[0].pos]; }, ['Suggested fix', 'move "']],];@@ -139,6 +170,103 @@ for (const [name, mode, mutate, expected] of CASES) {});}+test('contract: a too-wide label is never redirected into sublabel', () => {+ const labels = {+ workflow: 'An Extremely Long Node Label That Overflows',+ sequence: 'An Extremely Long Participant Label That Overflows',+ dataflow: 'An Extremely Long Node Label That Overflows',+ lifecycle: 'An Extremely Long State Label That Overflows',+ architecture: 'An Extremely Long Component Label Overflow',+ };+ const fields = {+ workflow: 'nodes',+ sequence: 'participants',+ dataflow: 'nodes',+ lifecycle: 'states',+ architecture: 'components',+ };++ for (const [mode, label] of Object.entries(labels)) {+ const doc = load(mode);+ doc[fields[mode]][0].label = label;+ const { code, stderr } = render(mode, doc);+ assert.notEqual(code, 0, `${mode}: expected non-zero exit; stderr:\n${stderr}`);+ assert.ok(stderr.includes('wider than'), `${mode}: expected a width message:\n${stderr}`);+ assert.doesNotMatch(+ stderr,+ /move detail to sublabel/,+ `${mode}: label advice still points at the measured sublabel field:\n${stderr}`,+ );+ }+});++for (const [field, text, preferred] of [+ ['sublabel', 'Browser and mobile apps', 9],+ ['tag', 'owner on call rotation alpha', 7],+]) {+ test(`architecture: an over-long ${field} shrinks to fit`, () => {+ const doc = load('architecture');+ doc.components[0][field] = text;+ const { code, stderr, outPath } = render('architecture', doc);+ assert.equal(code, 0, stderr);+ const fontSize = fontSizeForText(fs.readFileSync(outPath, 'utf8'), text);+ assert.ok(fontSize < preferred, `expected ${field} below ${preferred}px, got ${fontSize}px`);+ assert.ok(fontSize >= 6, `expected ${field} to remain legible, got ${fontSize}px`);+ });+}++test('sequence: an over-long participant sublabel shrinks to fit', () => {+ const doc = load('sequence');+ const text = 'long browser session';+ doc.participants[0].sublabel = text;+ const { code, stderr, outPath } = render('sequence', doc);+ assert.equal(code, 0, stderr);+ const fontSize = fontSizeForText(fs.readFileSync(outPath, 'utf8'), text);+ assert.ok(fontSize < 7, `expected sublabel below 7px, got ${fontSize}px`);+ assert.ok(fontSize >= 6, `expected sublabel to remain legible, got ${fontSize}px`);+});++for (const [field, text] of [+ ['sublabel', 'browser SDK and mobile SDK'],+ ['tag', 'owner on call rotation alpha'],+]) {+ test(`dataflow: an over-long ${field} shrinks to fit`, () => {+ const doc = load('dataflow');+ doc.nodes[0][field] = text;+ const { code, stderr, outPath } = render('dataflow', doc);+ assert.equal(code, 0, stderr);+ const fontSize = fontSizeForText(fs.readFileSync(outPath, 'utf8'), text);+ assert.ok(fontSize < 7, `expected ${field} below 7px, got ${fontSize}px`);+ assert.ok(fontSize >= 6, `expected ${field} to remain legible, got ${fontSize}px`);+ });+}++for (const [field, text] of [+ ['sublabel', 'request accepted and queued'],+ ['tag', 'owner on call rotation alpha'],+]) {+ test(`lifecycle: an over-long ${field} shrinks to fit`, () => {+ const doc = load('lifecycle');+ doc.states[0][field] = text;+ const { code, stderr, outPath } = render('lifecycle', doc);+ assert.equal(code, 0, stderr);+ const fontSize = fontSizeForText(fs.readFileSync(outPath, 'utf8'), text);+ assert.ok(fontSize < 7, `expected ${field} below 7px, got ${fontSize}px`);+ assert.ok(fontSize >= 6, `expected ${field} to remain legible, got ${fontSize}px`);+ });+}++test('workflow: an over-long tag shrinks to fit', () => {+ const doc = load('workflow');+ const text = 'owner on call primary';+ doc.nodes[0].tag = text;+ const { code, stderr, outPath } = render('workflow', doc);+ assert.equal(code, 0, stderr);+ const fontSize = fontSizeForText(fs.readFileSync(outPath, 'utf8'), text);+ assert.ok(fontSize < 7, `expected tag below 7px, got ${fontSize}px`);+ assert.ok(fontSize >= 6, `expected tag to remain legible, got ${fontSize}px`);+});+// ---- error-message contract: threshold + remediation, not just a path ----test('contract: short-edge message carries both the px minimum and a fix verb', () => {const d = load('workflow');diff --git a/archify/test/output-path.test.mjs b/archify/test/output-path.test.mjsindex c3f3991a..296be60f 100644--- a/archify/test/output-path.test.mjs+++ b/archify/test/output-path.test.mjs@@ -454,7 +454,6 @@ test('the shared renderer rechecks its guarded output immediately before writingtemplate: loaded.template,diagramType: 'workflow',meta: loaded.diagram.meta,- footerLabel: 'Workflow',svg: '<svg role="img"></svg>',cards: [],}),diff --git a/archify/test/presentation.test.mjs b/archify/test/presentation.test.mjsindex 6d58c822..57fd6a72 100644--- a/archify/test/presentation.test.mjs+++ b/archify/test/presentation.test.mjs@@ -41,7 +41,7 @@ test('all typed renderers ship the same presentation stage contract', () => {assert.match(html, /exit: function \(\) \{ return setActive\(false\); \}/, mode);assert.match(html, /html\[data-present="true"\]:not\(\[data-embed="true"\]\) \.diagram-container/, mode);assert.match(html, /height: 100dvh/, mode);- assert.match(html, /\.cards,[\s\S]+\.footer \{ display: none; \}/, mode);+ assert.match(html, /\.cards \{ display: none; \}/, mode);assert.doesNotMatch(html.match(/<html[^>]*>/)?.[0] || '', /data-present=/, mode);assert.doesNotMatch(svg(html), /data-present|btn-present|Presentation Stage/, mode);}diff --git a/archify/test/preset-tryon.test.mjs b/archify/test/preset-tryon.test.mjsindex 1a39c7ab..37c55dd4 100644--- a/archify/test/preset-tryon.test.mjs+++ b/archify/test/preset-tryon.test.mjs@@ -18,12 +18,14 @@ const CASES = {lifecycle: 'agent-run.lifecycle.json',};-function render(mode, preset = 'classic') {+function render(mode, preset) {const source = JSON.parse(fs.readFileSync(path.join(skillRoot, 'examples', CASES[mode]), 'utf8'));- source.meta.visual_preset = preset;+ if (preset === undefined) delete source.meta.visual_preset;+ else source.meta.visual_preset = preset;source.meta.animation = 'none';- const input = path.join(tmp, `${mode}-${preset}.json`);- const output = path.join(tmp, `${mode}-${preset}.html`);+ const fixtureName = preset || 'default';+ const input = path.join(tmp, `${mode}-${fixtureName}.json`);+ const output = path.join(tmp, `${mode}-${fixtureName}.html`);fs.writeFileSync(input, JSON.stringify(source));execFileSync(process.execPath, [path.join(skillRoot, `renderers/${mode}/render-${mode}.mjs`), input, output]);return fs.readFileSync(output, 'utf8');@@ -63,6 +65,15 @@ test('style selection synchronizes page, picker, and canonical SVG without touchassert.match(runtime, /return \{ cycle: cycle, apply: apply, current: current, authored: authored, open: open, close: close, isOpen: isOpen \}/);});+test('omitted visual preset opens as Classic and theme switching cannot change it', () => {+ const html = render('architecture');+ const themeRuntime = html.match(/Archify\.theme = \(function \(\) \{[\s\S]*?\n \}\)\(\);/)?.[0] || '';+ assert.match(html, /<html lang="en" data-theme="dark" data-preset="classic">/);+ assert.match(svgBlock(html), /<svg\b[^>]* data-preset="classic"/);+ assert.match(themeRuntime, /html\.setAttribute\('data-theme', theme\)/);+ assert.doesNotMatch(themeRuntime, /data-preset|Archify\.preset/);+});+test('style picker follows the accessible menu-button interaction contract', () => {const html = render('architecture');const runtime = presetRuntime(html);diff --git a/archify/test/reach-share-card.test.mjs b/archify/test/reach-share-card.test.mjsindex 822ab474..d5133bee 100644--- a/archify/test/reach-share-card.test.mjs+++ b/archify/test/reach-share-card.test.mjs@@ -36,7 +36,7 @@ function canonicalSvg(html) {test('all five renderers inherit one active-reach-only Reach Share Card item', () => {for (const [mode, example] of Object.entries(CASES)) {const html = render(mode, example);- assert.match(html, /data-action="reach-share-card"[^>]*hidden disabled[^>]*>Reach Share Card[\s\S]*?1200(?:×|×)630 PNG/, mode);+ assert.match(html, /data-action="reach-share-card"[^>]*hidden disabled[^>]*>[\s\S]*?Reach Share Card[\s\S]*?1200(?:×|×)630 PNG/, mode);assert.match(html, /function syncReachShareItem\(\)/, mode);assert.match(html, /reachShareItem\.hidden = !snapshot;/, mode);assert.match(html, /reachShareItem\.disabled = !snapshot;/, mode);diff --git a/archify/test/route-share-card.test.mjs b/archify/test/route-share-card.test.mjsindex e919db07..15b260af 100644--- a/archify/test/route-share-card.test.mjs+++ b/archify/test/route-share-card.test.mjs@@ -36,7 +36,7 @@ function canonicalSvg(html) {test('all five renderers inherit one resolved-only Route Share Card Export item', () => {for (const [mode, example] of Object.entries(CASES)) {const html = render(mode, example);- assert.match(html, /data-action="route-share-card"[^>]*hidden disabled[^>]*>Route Share Card[\s\S]*?1200(?:×|×)630 PNG/, mode);+ assert.match(html, /data-action="route-share-card"[^>]*hidden disabled[^>]*>[\s\S]*?Route Share Card[\s\S]*?1200(?:×|×)630 PNG/, mode);assert.match(html, /function syncRouteShareItem\(\)/, mode);assert.match(html, /routeShareItem\.hidden = !snapshot;/, mode);assert.match(html, /routeShareItem\.disabled = !snapshot;/, mode);diff --git a/archify/test/share-card-export.test.mjs b/archify/test/share-card-export.test.mjsindex f23024ac..22dc7f8a 100644--- a/archify/test/share-card-export.test.mjs+++ b/archify/test/share-card-export.test.mjs@@ -75,7 +75,7 @@ test('Share Card is a canonical PNG with exact receipt dimensions and filename',test('Copy Share Card reuses one canonical card blob and writes only PNG to the clipboard', () => {const html = render('architecture');assert.match(html, /data-action="copy-share-card"/);- assert.match(html, /Copy Share Card[\s\S]*?<span class="hint">PNG<\/span>/);+ assert.match(html, /Copy Share Card[\s\S]*?<small class="hint">PNG to clipboard<\/small>/);assert.match(html, /function runCopyShareCard\(\)[\s\S]*?var blobPromise = rasterizeShareCard\(\);/);const copyBlock = html.match(/function runCopyShareCard\(\) \{[\s\S]*?\n \}/)?.[0] || '';assert.equal((copyBlock.match(/rasterizeShareCard\(\)/g) || []).length, 1);diff --git a/archify/test/skill-metadata.test.mjs b/archify/test/skill-metadata.test.mjsindex 553e7239..8c1aad46 100644--- a/archify/test/skill-metadata.test.mjs+++ b/archify/test/skill-metadata.test.mjs@@ -7,6 +7,7 @@ import assert from 'node:assert/strict';const here = path.dirname(fileURLToPath(import.meta.url));const skillRoot = path.join(here, '..');const skill = readFileSync(path.join(skillRoot, 'SKILL.md'), 'utf8');+const authoringContract = readFileSync(path.join(skillRoot, 'references', 'authoring-contract.md'), 'utf8');const frontmatter = skill.match(/^---\n([\s\S]*?)\n---/);test('skill description is portable across 1024-character runtimes and remains searchable', () => {@@ -46,3 +47,17 @@ test('main skill stays a bounded authoring router with progressive references',assert.equal(existsSync(path.join(skillRoot, reference)), true, `${reference} must ship with the skill`);}});++test('authored diagram copy follows the user language without translating technical identity', () => {+ assert.match(skill, /language of the user's request/);+ assert.match(skill, /guided-view labels\/notes.*legend label overrides.*card titles\/items/);+ assert.match(skill, /product names.*code identifiers.*protocols.*API paths.*environment names/);+ assert.match(authoringContract, /non-English diagram[\s\S]*`meta\.legend\.entries`/);+ assert.match(authoringContract, /renderer-owned viewer controls remain separate/);+});++test('skill keeps the title hierarchy compact by default', () => {+ assert.match(skill, /Omit `meta\.subtitle` by default/);+ assert.match(skill, /Never invent a subtitle that restates the title, nodes, or cards/);+ assert.match(authoringContract, /omitted or blank subtitle must not leave an empty visual row/);+});diff --git a/archify/test/start-page.test.mjs b/archify/test/start-page.test.mjsindex 78100458..041ea3f2 100644--- a/archify/test/start-page.test.mjs+++ b/archify/test/start-page.test.mjs@@ -68,7 +68,7 @@ test('start page: offers five bounded bilingual starts without ingesting sourceassert.doesNotMatch(scriptMatch[1], /innerHTML/);});-test('generated artifacts: viewer-only Create yours link carries the exact diagram type', () => {+test('generated artifacts omit the promotional footer and shortcut manual', () => {const examples = {architecture: 'web-app.architecture.json',workflow: 'agent-tool-call.workflow.json',@@ -86,21 +86,46 @@ test('generated artifacts: viewer-only Create yours link carries the exact diagrout,]);const html = fs.readFileSync(out, 'utf8');- const expected = `https://tt-a1i.github.io/archify/start.html?type=${type}&source=artifact`;- assert.match(html, new RegExp(`class="artifact-start-link"[^>]+href="${expected.replace(/[.?]/g, '\\$&')}"`), type);- assert.match(html, /class="artifact-start-link"[^>]+rel="noopener noreferrer"/, `${type}: referrer boundary`);- assert.equal((html.match(new RegExp(expected.replace(/[.?]/g, '\\$&'), 'g')) || []).length, 1, type);+ assert.doesNotMatch(html, /<p class="footer">/, `${type}: footer element`);+ assert.doesNotMatch(html, /Built with Archify/, `${type}: product signature`);+ assert.doesNotMatch(html, /Create yours/, `${type}: promotional CTA`);+ assert.doesNotMatch(html, /Hover to trace/, `${type}: shortcut manual`);+ assert.doesNotMatch(html, /source=artifact/, `${type}: removed artifact CTA URL`);+ assert.match(html, /id="btn-diagram-guide"/, `${type}: diagram guide remains available`);const svg = html.match(/<svg[\s\S]*?<\/svg>/)?.[0];assert.ok(svg, `${type}: SVG missing`);- assert.ok(!svg.includes('Create yours'), `${type}: CTA leaked into canonical SVG`);- assert.ok(!svg.includes('/start.html'), `${type}: start URL leaked into canonical SVG`);}} finally {fs.rmSync(tmp, { recursive: true, force: true });}});+test('viewer gives wide screens a larger canvas without forcing a subtitle row', () => {+ const template = fs.readFileSync(path.join(skillRoot, 'assets', 'template.html'), 'utf8');+ assert.match(template, /\.container \{ width: 100%; max-width: 1440px; margin: 0 auto; \}/);++ const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-title-hierarchy-'));+ try {+ const input = JSON.parse(fs.readFileSync(+ path.join(skillRoot, 'examples', 'web-app.architecture.json'),+ 'utf8',+ ));+ delete input.meta.subtitle;+ const source = path.join(tmp, 'without-subtitle.architecture.json');+ const output = path.join(tmp, 'without-subtitle.html');+ fs.writeFileSync(source, `${JSON.stringify(input, null, 2)}\n`);+ execFileSync(process.execPath, [+ path.join(skillRoot, 'renderers', 'architecture', 'render-architecture.mjs'),+ source,+ output,+ ]);+ assert.doesNotMatch(fs.readFileSync(output, 'utf8'), /class="subtitle"/);+ } finally {+ fs.rmSync(tmp, { recursive: true, force: true });+ }+});+test('artifact-to-install measurement plan separates observable funnel steps from first-diagram success', () => {const plan = fs.readFileSync(path.join(repoRoot, 'docs/artifact-install-v2-measurement.md'),diff --git a/archify/test/toolbar-polish.test.mjs b/archify/test/toolbar-polish.test.mjsnew file mode 100644index 00000000..bfe8a603--- /dev/null+++ b/archify/test/toolbar-polish.test.mjs@@ -0,0 +1,38 @@+import { test } from 'node:test';+import assert from 'node:assert/strict';+import fs from 'node:fs';+import path from 'node:path';+import { fileURLToPath } from 'node:url';++const __dirname = path.dirname(fileURLToPath(import.meta.url));+const template = fs.readFileSync(path.resolve(__dirname, '../assets/template.html'), 'utf8');++test('toolbar keeps four independent controls with explicit open states', () => {+ assert.match(template, /\.toolbar \{[\s\S]*?gap: 0\.5rem;[\s\S]*?padding: 0;[\s\S]*?background: transparent;[\s\S]*?box-shadow: none;/);+ assert.match(template, /\.toolbar button \{[\s\S]*?background: var\(--toolbar-bg\);[\s\S]*?border: 1px solid var\(--toolbar-border\);/);+ assert.match(template, /button\[aria-expanded="true"\]/);+ assert.doesNotMatch(template, /\.preset-wrap::before,[\s\S]*?\.export-wrap::before/);+ assert.match(template, /<span id="theme-icon" class="toolbar-icon"/);+ assert.match(template, /<span id="present-icon" class="toolbar-icon"/);+ assert.doesNotMatch(template.match(/<div class="toolbar"[\s\S]*?<div class="container">/)?.[0] || '', /<svg\b/);+ assert.doesNotMatch(template, /icon\.textContent =/);+});++test('export menu has grouped, single-column rows and a zoom-safe width', () => {+ const sectionCss = template.match(/\.export-menu-section \{[\s\S]*?\}/)?.[0] || '';+ assert.match(template, /class="export-menu-section" role="group" aria-label="Share"/);+ assert.match(template, /class="export-menu-section" role="group" aria-label="Raster images"/);+ assert.match(template, /class="export-menu-section" role="group" aria-label="Vector and motion"/);+ assert.match(template, /class="export-menu-header" role="presentation"/);+ assert.match(template, /\.toolbar \.export-menu \{[\s\S]*?width: 19rem;[\s\S]*?max-width: calc\(100vw - 2rem\);/);+ assert.match(template, /\.export-menu-section \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\);/);+ assert.doesNotMatch(sectionCss, /repeat\(2/);+ assert.match(template, /\.toolbar \.export-menu button \{[\s\S]*?grid-template-columns: 1\.15rem minmax\(0, 1fr\);[\s\S]*?white-space: nowrap;/);+ assert.match(template, /\.export-item-copy strong,[\s\S]*?\.export-item-copy small \{ display: block; \}/);+});++test('mobile menus share one viewport-safe placement and disabled exports remain explicit', () => {+ assert.match(template, /@media \(max-width: 720px\)[\s\S]*?\.toolbar \.preset-menu,[\s\S]*?\.toolbar \.export-menu \{[\s\S]*?position: fixed;/);+ assert.match(template, /\.toolbar \.export-menu button:disabled \{[\s\S]*?cursor: not-allowed;/);+ assert.doesNotMatch(template, /it\.style\.opacity = '0\.5'/);+});diff --git a/docs/artifact-install-v2-measurement.md b/docs/artifact-install-v2-measurement.mdindex e2d062d0..4d219bfa 100644--- a/docs/artifact-install-v2-measurement.md+++ b/docs/artifact-install-v2-measurement.md@@ -1,6 +1,6 @@# Artifact → Install v2 measurement contract-Artifact → Install v2 is a bounded change to the existing journey. A generated artifact links to `start.html?type=<type>&source=artifact`, while each Proof Lab card links to `start.html?type=<type>&source=gallery`. The Start page selects the matching typed recipe and can copy the selected agent's install command plus the bounded prompt in one action.+Artifact → Install v2 is a bounded change to the existing journey. Proof Lab cards link to `start.html?type=<type>&source=gallery`, and the Start page selects the matching typed recipe and can copy the selected agent's install command plus the bounded prompt in one action. Generated artifacts no longer emit the former footer link; `source=artifact` remains accepted only for compatibility with already-shared artifact URLs.The page records only coarse interaction steps:@@ -23,7 +23,7 @@ Events are capped at the latest 24 entries in `sessionStorage` under `archify.stWithin a controlled browser test or an explicitly instrumented host, compute:-- Artifact arrival share: `source=artifact` `start_view` / all `start_view`+- Legacy artifact arrival share: `source=artifact` `start_view` / all `start_view`- Gallery arrival share: `source=gallery` `start_view` / all `start_view`- Combined starter copy rate: `starter_copy / start_view`- Any install copy rate: (`starter_copy` + `global_install_copy` + `project_install_copy`) / `start_view`diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gifindex baf3d491..8e7d2bbf 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 6fedd03e..ebf49d48 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": 1627008,- "sha256": "6dec7ace7e2c6baea744d26bb45ea6aa53c017f136e16bfd51126ca6f55832fc",+ "bytes": 1625468,+ "sha256": "382e84d048904394f785dfd057426eded0de6d51d6c9fb41671d7b7e09f1fe0e","scenes": [{"id": "signal-flow","artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",- "artifactSha256": "fef035cb0d7c2681266d416e7ff27005002c22d1cf6c97349653c23cd2678be6",+ "artifactSha256": "9af05e8a42ee8e83a707d91b1483fd87c1e38f82dc3786f9ae0e7873664bc3b4","view": "happy-path","eyebrow": "WORKFLOW · SIGNAL FLOW","title": "Agent Tool Call",@@ -22,7 +22,7 @@{"id": "blueprint","artifact": "docs/gallery/artifacts/production-deployment.architecture.html",- "artifactSha256": "80040a034574d553c4af0c7eb7367098cf3e7d8066f3f0a52073002a8f5b0002",+ "artifactSha256": "f457336c6a92866db7dc83629e734bf07dda97b30ed129a2fd20c755c6c7d607","view": "request-boundary","eyebrow": "ARCHITECTURE · BLUEPRINT","title": "Production Deployment",@@ -31,7 +31,7 @@{"id": "classic","artifact": "docs/gallery/artifacts/cache-miss.sequence.html",- "artifactSha256": "ec485045370cc80930fb468db3c9e8c4ed2ebea39e99cb4e370e82e60ba40de0",+ "artifactSha256": "923e8a6a94f9f6bed7d55b8dcd03edb209b58b15d5697a99a3d32bd7bf7723d5","view": "cache-fallback","eyebrow": "SEQUENCE · CLASSIC","title": "Cache Miss Request",diff --git a/docs/cases/mco-runtime.architecture.html b/docs/cases/mco-runtime.architecture.htmlindex 42eba30b..4c8426da 100644--- a/docs/cases/mco-runtime.architecture.html+++ b/docs/cases/mco-runtime.architecture.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4614,7 +4855,7 @@<circle cx="6.3" cy="4.8" r=".7" class="sigil-fill"/></g><text data-detail-anchor x="265" y="328" class="t-primary" font-size="11" font-weight="600" text-anchor="middle">Entry Surfaces</text>- <text data-detail="context" x="265" y="344" class="t-muted" font-size="9" text-anchor="middle">npm shim · Python CLI · MCP</text>+ <text data-detail="context" x="265" y="344" class="t-muted" font-size="8.7" text-anchor="middle">npm shim · Python CLI · MCP</text></g><g id="node-router" data-node-id="router" data-node-label="Command Router" tabindex="0" role="button" aria-label="Focus Command Router, run · review · doctor · session, mco local package / Python runtime" aria-pressed="false" data-node-kind="backend" data-node-sublabel="run · review · doctor · session" data-node-context="mco local package / Python runtime">@@ -4625,7 +4866,7 @@<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g><text data-detail-anchor x="465" y="328" class="t-primary" font-size="11" font-weight="600" text-anchor="middle">Command Router</text>- <text data-detail="context" x="465" y="344" class="t-muted" font-size="9" text-anchor="middle">run · review · doctor · session</text>+ <text data-detail="context" x="465" y="344" class="t-muted" font-size="7.6" text-anchor="middle">run · review · doctor · session</text></g><g id="node-config" data-node-id="config" data-node-label="Config + Selection" tabindex="0" role="button" aria-label="Focus Config + Selection, files · explicit provider team, mco local package / Python runtime" aria-pressed="false" data-node-kind="database" data-node-sublabel="files · explicit provider team" data-node-tag="no silent team" data-node-context="mco local package / Python runtime">@@ -4637,7 +4878,7 @@<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"/></g><text data-detail-anchor x="680" y="158" class="t-primary" font-size="11" font-weight="600" text-anchor="middle">Config + Selection</text>- <text data-detail="context" x="680" y="174" class="t-muted" font-size="9" text-anchor="middle">files · explicit provider team</text>+ <text data-detail="context" x="680" y="174" class="t-muted" font-size="8.4" text-anchor="middle">files · explicit provider team</text><text data-detail="fine" x="680" y="182" class="t-database" font-size="7" text-anchor="middle">no silent team</text></g>@@ -4662,7 +4903,7 @@<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g><text data-detail-anchor x="905" y="328" class="t-primary" font-size="11" font-weight="600" text-anchor="middle">Invocation Workflow</text>- <text data-detail="context" x="905" y="344" class="t-muted" font-size="9" text-anchor="middle">parallel · chain · debate · synthesize</text>+ <text data-detail="context" x="905" y="344" class="t-muted" font-size="7.1" text-anchor="middle">parallel · chain · debate · synthesize</text></g><g id="node-adapters" data-node-id="adapters" data-node-label="Provider Adapters" tabindex="0" role="button" aria-label="Focus Provider Adapters, shim / ACP · detect · run · poll · cancel, mco local package / Python runtime › explicit execution-policy boundary" aria-pressed="false" data-node-kind="messagebus" data-node-sublabel="shim / ACP · detect · run · poll · cancel" data-node-context="mco local package / Python runtime › explicit execution-policy boundary">@@ -4676,7 +4917,7 @@<circle cx="7" cy="11.5" r="1" class="sigil-fill"/></g><text data-detail-anchor x="1135" y="328" class="t-primary" font-size="11" font-weight="600" text-anchor="middle">Provider Adapters</text>- <text data-detail="context" x="1135" y="344" class="t-muted" font-size="9" text-anchor="middle">shim / ACP · detect · run · poll · cancel</text>+ <text data-detail="context" x="1135" y="344" class="t-muted" font-size="6.5" text-anchor="middle">shim / ACP · detect · run · poll · cancel</text></g><g id="node-provider_clis" data-node-id="provider_clis" data-node-label="Provider CLIs" tabindex="0" role="button" aria-label="Focus Provider CLIs, Claude · Codex · Pi · 7 more, Architecture component" aria-pressed="false" data-node-kind="external" data-node-sublabel="Claude · Codex · Pi · 7 more" data-node-context="Architecture component">@@ -4702,7 +4943,7 @@<circle cx="7" cy="11.5" r="1" class="sigil-fill"/></g><text data-detail-anchor x="1135" y="528" class="t-primary" font-size="11" font-weight="600" text-anchor="middle">Answer Transport</text>- <text data-detail="context" x="1135" y="544" class="t-muted" font-size="9" text-anchor="middle">plain · JSON · JSONL · ACP events</text>+ <text data-detail="context" x="1135" y="544" class="t-muted" font-size="8.1" text-anchor="middle">plain · JSON · JSONL · ACP events</text></g><g id="node-artifacts" data-node-id="artifacts" data-node-label="Invocation Artifacts" tabindex="0" role="button" aria-label="Focus Invocation Artifacts, answers · result.md · run.json, mco local package / Python runtime" aria-pressed="false" data-node-kind="cloud" data-node-sublabel="answers · result.md · run.json" data-node-tag="raw evidence" data-node-context="mco local package / Python runtime">@@ -4737,7 +4978,7 @@<path d="M6 3 3 8l3 5M10 3l3 5-3 5"/></g><text data-detail-anchor x="465" y="528" class="t-primary" font-size="11" font-weight="600" text-anchor="middle">Session Daemon</text>- <text data-detail="context" x="465" y="544" class="t-muted" font-size="9" text-anchor="middle">detached worker · Unix socket</text>+ <text data-detail="context" x="465" y="544" class="t-muted" font-size="8.7" text-anchor="middle">detached worker · Unix socket</text></g><g id="node-session_state" data-node-id="session_state" data-node-label="Session State" tabindex="0" role="button" aria-label="Focus Session State, state.json · history.jsonl, mco local package / Python runtime" aria-pressed="false" data-node-kind="database" data-node-sublabel="state.json · history.jsonl" data-node-tag=".mco/sessions" data-node-context="mco local package / Python runtime">@@ -4784,34 +5025,34 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="612" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="632" data-legend-width="82">- <rect x="40" y="624" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="61" y="632" class="t-muted" font-size="8">Frontend</text>+ <text x="40" y="612" 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="632" data-legend-width="83">+ <rect x="40" y="623" width="16" height="10" rx="2.5" class="c-frontend" stroke-width="1"/>+ <text x="62" y="632" 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="144" data-legend-baseline="632" data-legend-width="77">- <rect x="144" y="624" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="165" y="632" class="t-muted" font-size="8">Backend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="145" data-legend-baseline="632" data-legend-width="78">+ <rect x="145" y="623" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>+ <text x="167" y="632" 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="243" data-legend-baseline="632" data-legend-width="82">- <rect x="243" y="624" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="264" y="632" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="245" data-legend-baseline="632" data-legend-width="83">+ <rect x="245" y="623" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>+ <text x="267" y="632" 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="347" data-legend-baseline="632" data-legend-width="67">- <rect x="347" y="624" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="368" y="632" class="t-muted" font-size="8">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="350" data-legend-baseline="632" data-legend-width="68">+ <rect x="350" y="623" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="372" y="632" 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="436" data-legend-baseline="632" data-legend-width="82">- <rect x="436" y="624" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="457" y="632" class="t-muted" font-size="8">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="440" data-legend-baseline="632" data-legend-width="83">+ <rect x="440" y="623" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="462" y="632" 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="540" data-legend-baseline="632" data-legend-width="97">- <rect x="540" y="624" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="561" y="632" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="545" data-legend-baseline="632" data-legend-width="98">+ <rect x="545" y="623" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>+ <text x="567" y="632" 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="659" data-legend-baseline="632" data-legend-width="82">- <rect x="659" y="624" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="680" y="632" class="t-muted" font-size="8">External</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="665" data-legend-baseline="632" data-legend-width="83">+ <rect x="665" y="623" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="687" y="632" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg>@@ -5034,10 +5275,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Architecture diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5183,7 +5420,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5213,7 +5449,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6336,12 +6571,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10986,7 +11219,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11005,7 +11237,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery.html b/docs/gallery.htmlindex 795e6572..1b1852a3 100644--- a/docs/gallery.html+++ b/docs/gallery.html@@ -339,7 +339,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 11E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="fef035cb0d7c2681266d416e7ff27005002c22d1cf6c97349653c23cd2678be6">fef035cb0d7c</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9af05e8a42ee8e83a707d91b1483fd87c1e38f82dc3786f9ae0e7873664bc3b4">9af05e8a42ee</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html?present=1&play=1#view=happy-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -369,7 +369,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="80040a034574d553c4af0c7eb7367098cf3e7d8066f3f0a52073002a8f5b0002">80040a034574</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="f457336c6a92866db7dc83629e734bf07dda97b30ed129a2fd20c755c6c7d607">f457336c6a92</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html?present=1&play=1#view=request-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -398,7 +398,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ec485045370cc80930fb468db3c9e8c4ed2ebea39e99cb4e370e82e60ba40de0">ec485045370c</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="923e8a6a94f9f6bed7d55b8dcd03edb209b58b15d5697a99a3d32bd7bf7723d5">923e8a6a94f9</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html?present=1&play=1#view=cache-fallback" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -427,7 +427,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="16a2c7ca3bab20569b7e4be3893356f2e441d936f8d156b9895c5811d5b4ef7b">16a2c7ca3bab</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2b7f898d7e512e100bb6c04821b1d8782131b25a95c57f2a2171f21b960ef43a">2b7f898d7e51</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html?present=1&play=1#view=approval-to-production" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -456,7 +456,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9e90ed455298cf4c5f20eede7f69719ed23981e63d82a9cf684a6cc0a8493461">9e90ed455298</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="8a28d76d12533a3a9f5f9587ce698d4c2ef49ea04e37d58e5817a36fb7381920">8a28d76d1253</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html?present=1&play=1#view=mitigate-and-verify" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -485,7 +485,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1fe57b42b5707eec1f289b63ea6744d5290dce52fb5b40144683f6625f2ab9b4">1fe57b42b570</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6ca03cf6424537fded9a29279252b49f8972f9d7fef481038460018eb149497c">6ca03cf64245</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html?present=1&play=1#view=consent-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -514,7 +514,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="5b7bc0f6339ff0f27bf6364552a2d399d151f57b5d90b12d980309ca69bfd2f4">5b7bc0f6339f</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d9485dcfedf00ab0277c45fad3563d318cece676947a60d513c493dd1a11a179">d9485dcfedf0</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html?present=1&play=1#view=work-and-retry" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -543,7 +543,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e35695c40acffc636b7feb0498259d6f36bbff3f8b75154b7933d8b81d751403">e35695c40acf</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="86a99192a4a1162ab4006cd6534b4d096d4730a6092ac4fd4d9973c05c63cb09">86a99192a4a1</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html?present=1&play=1#view=order-transit" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -572,7 +572,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 6E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="5648bea78a6d8d573a964a78c2088441b2e573b571c4a7b580988d7bc71b0a4e">5648bea78a6d</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="32671fcc28d60f6321c719203b544f0df8f0614ba35d7dabc6c82068075d34bf">32671fcc28d6</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html?present=1&play=1#view=main-lifecycle" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -601,7 +601,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 6E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="cb7d00aa852e4bf17051a50370ebfab1b7affa23c24fb249fbe46618e897a9ee">cb7d00aa852e</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="31c6789ecf0e5ab63b723fd322979332c7a4d4cb921cf135b54b9fb4a8e8ef01">31c6789ecf0e</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html?present=1&play=1#view=rollback-outcomes" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -630,7 +630,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 9E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="4de8669a9fd93f4df66e2ca16cc10517a290710b831adf03446256b8d544f137">4de8669a9fd9</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1e965f57b00f32cf19324691cf57ebfcd38b660af8e3458a48aeb6d6e8ef3c7d">1e965f57b00f</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/web-app.architecture.html?present=1&play=1#view=request-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -698,7 +698,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "agent-tool-call","type": "workflow","title": "Agent Tool Call Workflow",- "subtitle": "Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges",+ "subtitle": "","input": "gallery/sources/agent-tool-call.workflow.json","artifact": "gallery/artifacts/agent-tool-call.workflow.html","focus": "planner",@@ -716,10 +716,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 620972,- "artifactSha256": "fef035cb0d7c2681266d416e7ff27005002c22d1cf6c97349653c23cd2678be6",- "sourceBytes": 6470,- "sourceSha256": "a3afc6b30044eb256aa15c6195ddfbbcd1a14880d99967ed5605bc621ffb7e5f",+ "artifactBytes": 631366,+ "artifactSha256": "9af05e8a42ee8e83a707d91b1483fd87c1e38f82dc3786f9ae0e7873664bc3b4",+ "sourceBytes": 6367,+ "sourceSha256": "9c94c8c0b2104478b77befb4cc5e343d381acba6e66645ab17616fde20b60e05","checks": [{"name": "single_svg",@@ -796,7 +796,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "deployment-ownership","type": "architecture","title": "Production Deployment Ownership",- "subtitle": "Regions, network boundaries, workload owners, state, and named crossings",+ "subtitle": "","input": "gallery/sources/production-deployment.architecture.json","artifact": "gallery/artifacts/production-deployment.architecture.html","focus": "gateway",@@ -814,10 +814,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 620609,- "artifactSha256": "80040a034574d553c4af0c7eb7367098cf3e7d8066f3f0a52073002a8f5b0002",- "sourceBytes": 5546,- "sourceSha256": "03e647d057eb20d99f7fb4ba4ddfdd5d58a7a813865338680e968038e6a90e0f",+ "artifactBytes": 633959,+ "artifactSha256": "f457336c6a92866db7dc83629e734bf07dda97b30ed129a2fd20c755c6c7d607",+ "sourceBytes": 5454,+ "sourceSha256": "738e9c7f22e4e6e88f5aafc087dc58409105927daa9a79aaf240c8393654494f","checks": [{"name": "single_svg",@@ -894,7 +894,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "cache-miss","type": "sequence","title": "Cache Miss Request Sequence",- "subtitle": "Frontend request path with auth, cache fallback, persistence, and async trace",+ "subtitle": "","input": "gallery/sources/cache-miss-request.sequence.json","artifact": "gallery/artifacts/cache-miss.sequence.html","focus": "redis",@@ -912,10 +912,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 614556,- "artifactSha256": "ec485045370cc80930fb468db3c9e8c4ed2ebea39e99cb4e370e82e60ba40de0",- "sourceBytes": 4442,- "sourceSha256": "30098d81006a18813bab447da698edf74604a1463770f01dc056b0af8cb314ef",+ "artifactBytes": 627863,+ "artifactSha256": "923e8a6a94f9f6bed7d55b8dcd03edb209b58b15d5697a99a3d32bd7bf7723d5",+ "sourceBytes": 4345,+ "sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389","checks": [{"name": "single_svg",@@ -992,7 +992,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "delivery-workflow","type": "workflow","title": "Release Delivery Workflow",- "subtitle": "Commit, blocking checks, approval, production verification, and rollback",+ "subtitle": "","input": "gallery/sources/release-delivery.workflow.json","artifact": "gallery/artifacts/release-delivery.workflow.html","focus": "approval",@@ -1010,10 +1010,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 616845,- "artifactSha256": "16a2c7ca3bab20569b7e4be3893356f2e441d936f8d156b9895c5811d5b4ef7b",- "sourceBytes": 5256,- "sourceSha256": "44aa56ac6ca807937dfe84a6404e8b07d6394a38ae2ac53248a1985337dfd671",+ "artifactBytes": 630190,+ "artifactSha256": "2b7f898d7e512e100bb6c04821b1d8782131b25a95c57f2a2171f21b960ef43a",+ "sourceBytes": 5164,+ "sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91","checks": [{"name": "single_svg",@@ -1090,7 +1090,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "incident-runbook","type": "workflow","title": "Incident Response Runbook",- "subtitle": "Detection, triage, mitigation, communication, escalation, and recovery proof",+ "subtitle": "","input": "gallery/sources/incident-response.workflow.json","artifact": "gallery/artifacts/incident-response.workflow.html","focus": "triage",@@ -1108,10 +1108,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 617095,- "artifactSha256": "9e90ed455298cf4c5f20eede7f69719ed23981e63d82a9cf684a6cc0a8493461",- "sourceBytes": 5471,- "sourceSha256": "9beb8698b275679a2fc92d4b51288cd5b5fc2115696d06b9168f3d7fef253a72",+ "artifactBytes": 627503,+ "artifactSha256": "8a28d76d12533a3a9f5f9587ce698d4c2ef49ea04e37d58e5817a36fb7381920",+ "sourceBytes": 5375,+ "sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b","checks": [{"name": "single_svg",@@ -1188,7 +1188,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "product-analytics","type": "dataflow","title": "Product Analytics Data Flow",- "subtitle": "Events, consent, PII isolation, warehouse sync, and downstream analytics",+ "subtitle": "","input": "gallery/sources/product-analytics.dataflow.json","artifact": "gallery/artifacts/product-analytics.dataflow.html","focus": "consent",@@ -1206,10 +1206,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 618131,- "artifactSha256": "1fe57b42b5707eec1f289b63ea6744d5290dce52fb5b40144683f6625f2ab9b4",- "sourceBytes": 5719,- "sourceSha256": "f71c89288f80255bdedcdc0057bcbc155d1d8b1b7476d024b35f4e27c730c974",+ "artifactBytes": 631448,+ "artifactSha256": "6ca03cf6424537fded9a29279252b49f8972f9d7fef481038460018eb149497c",+ "sourceBytes": 5627,+ "sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110","checks": [{"name": "single_svg",@@ -1286,7 +1286,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "async-roundtrip","type": "sequence","title": "Async Job Roundtrip",- "subtitle": "Acknowledgement, queueing, background work, retries, callback, polling, and final consistency",+ "subtitle": "","input": "gallery/sources/async-job-roundtrip.sequence.json","artifact": "gallery/artifacts/async-job-roundtrip.sequence.html","focus": "queue",@@ -1304,10 +1304,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 615017,- "artifactSha256": "5b7bc0f6339ff0f27bf6364552a2d399d151f57b5d90b12d980309ca69bfd2f4",- "sourceBytes": 4483,- "sourceSha256": "1b53d7c4ce7b2d8f6f40b8f33a394abe1d37fc991272b534c1ccd0255920ab52",+ "artifactBytes": 628273,+ "artifactSha256": "d9485dcfedf00ab0277c45fad3563d318cece676947a60d513c493dd1a11a179",+ "sourceBytes": 4370,+ "sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9","checks": [{"name": "single_svg",@@ -1384,7 +1384,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "event-stream","type": "dataflow","title": "Order Event-stream Topology",- "subtitle": "Named events, ordered topics, processors, consumer groups, state, replay, and dead letters",+ "subtitle": "","input": "gallery/sources/event-stream.dataflow.json","artifact": "gallery/artifacts/event-stream.dataflow.html","focus": "orders",@@ -1402,10 +1402,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 622086,- "artifactSha256": "e35695c40acffc636b7feb0498259d6f36bbff3f8b75154b7933d8b81d751403",- "sourceBytes": 5543,- "sourceSha256": "bbfedc2f1b73bf50932490f7f56d45d5f853e970d2fab26660a04947a783969c",+ "artifactBytes": 635367,+ "artifactSha256": "86a99192a4a1162ab4006cd6534b4d096d4730a6092ac4fd4d9973c05c63cb09",+ "sourceBytes": 5433,+ "sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e","checks": [{"name": "single_svg",@@ -1482,7 +1482,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "agent-run","type": "lifecycle","title": "Agent Run Lifecycle",- "subtitle": "State machine for planning, tool execution, human approval, retries, and terminal outcomes",+ "subtitle": "","input": "gallery/sources/agent-run.lifecycle.json","artifact": "gallery/artifacts/agent-run.lifecycle.html","focus": "approval",@@ -1500,10 +1500,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 611784,- "artifactSha256": "5648bea78a6d8d573a964a78c2088441b2e573b571c4a7b580988d7bc71b0a4e",- "sourceBytes": 4527,- "sourceSha256": "2e756b3d1ebc2f6c3f62f46c0fbb5584ed7bd6213627259ab43153b18c831cdf",+ "artifactBytes": 625083,+ "artifactSha256": "32671fcc28d60f6321c719203b544f0df8f0614ba35d7dabc6c82068075d34bf",+ "sourceBytes": 4417,+ "sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42","checks": [{"name": "single_svg",@@ -1580,7 +1580,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "deployment-lifecycle","type": "lifecycle","title": "Deployment Release Lifecycle",- "subtitle": "Queued, building, verifying, approval, promotion, health regression, rollback, and terminal outcomes",+ "subtitle": "","input": "gallery/sources/deployment-release.lifecycle.json","artifact": "gallery/artifacts/deployment-release.lifecycle.html","focus": "live",@@ -1598,10 +1598,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 6,- "artifactBytes": 612774,- "artifactSha256": "cb7d00aa852e4bf17051a50370ebfab1b7affa23c24fb249fbe46618e897a9ee",- "sourceBytes": 4394,- "sourceSha256": "aa614f0c9a82f210e301e382f362dfbd7f290bda4d5501de3c99a6cd81b4c0a4",+ "artifactBytes": 626053,+ "artifactSha256": "31c6789ecf0e5ab63b723fd322979332c7a4d4cb921cf135b54b9fb4a8e8ef01",+ "sourceBytes": 4274,+ "sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71","checks": [{"name": "single_svg",@@ -1678,7 +1678,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"id": "web-app","type": "architecture","title": "Sample Web App",- "subtitle": "Classic 3-tier SaaS on AWS — rendered by Archify",+ "subtitle": "","input": "gallery/sources/web-app.architecture.json","artifact": "gallery/artifacts/web-app.architecture.html","focus": "api",@@ -1696,10 +1696,10 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 611896,- "artifactSha256": "4de8669a9fd93f4df66e2ca16cc10517a290710b831adf03446256b8d544f137",- "sourceBytes": 3863,- "sourceSha256": "01567b5e49cad5139baa071533a028d22f0e80fedfb49095e0d9330aee7f87db",+ "artifactBytes": 625290,+ "artifactSha256": "1e965f57b00f32cf19324691cf57ebfcd38b660af8e3458a48aeb6d6e8ef3c7d",+ "sourceBytes": 3793,+ "sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf","checks": [{"name": "single_svg",diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.htmlindex 0d8e7fb8..9721a3a3 100644--- a/docs/gallery/artifacts/agent-run.lifecycle.html+++ b/docs/gallery/artifacts/agent-run.lifecycle.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Agent Run Lifecycle</h1></div>- <p class="subtitle">State machine for planning, tool execution, human approval, retries, and terminal outcomes</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"main-lifecycle","label":"Main lifecycle","focus":["queued","planning","executing","reviewing","completed"],"note":"Follow the ordered phases from accepted request to completed response."},{"id":"human-waits","label":"Human and input waits","focus":["executing","approval","reviewing","blocked"],"note":"See where the run pauses without becoming terminal."},{"id":"recovery-and-exits","label":"Recovery and terminal exits","focus":["executing","failed","blocked","cancelled","expired"],"note":"Separate retryable failure from cancellation and expiry."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 980 660" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Run Lifecycle</title>- <desc id="archify-diagram-description">State machine for planning, tool execution, human approval, retries, and terminal outcomes</desc>+ <desc id="archify-diagram-description">A lifecycle diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4730,30 +4970,30 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="604" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="start" data-legend-kind="start" data-legend-label="start" data-legend-x="40" data-legend-baseline="624" data-legend-width="67">+ <text x="40" y="604" class="t-primary" font-size="12" font-weight="650">Legend</text>+ <g data-legend-semantic-kind="start" data-legend-kind="start" data-legend-label="start" data-legend-x="40" data-legend-baseline="624" data-legend-width="68"><rect x="40" y="616" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="61" y="624" class="t-muted" font-size="8">start</text>+ <text x="62" y="624" class="t-muted" font-size="10" font-weight="500">start</text></g>- <g data-legend-semantic-kind="active" data-legend-kind="active" data-legend-label="active state" data-legend-x="129" data-legend-baseline="624" data-legend-width="102">- <rect x="129" y="616" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="150" y="624" class="t-muted" font-size="8">active state</text>+ <g data-legend-semantic-kind="active" data-legend-kind="active" data-legend-label="active state" data-legend-x="130" data-legend-baseline="624" data-legend-width="103">+ <rect x="130" y="616" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="152" y="624" class="t-muted" font-size="10" font-weight="500">active state</text></g>- <g data-legend-semantic-kind="waiting" data-legend-kind="waiting" data-legend-label="waiting" data-legend-x="253" data-legend-baseline="624" data-legend-width="77">- <rect x="253" y="616" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="274" y="624" class="t-muted" font-size="8">waiting</text>+ <g data-legend-semantic-kind="waiting" data-legend-kind="waiting" data-legend-label="waiting" data-legend-x="255" data-legend-baseline="624" data-legend-width="78">+ <rect x="255" y="616" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="277" y="624" class="t-muted" font-size="10" font-weight="500">waiting</text></g>- <g data-legend-semantic-kind="decision" data-legend-kind="decision" data-legend-label="decision" data-legend-x="352" data-legend-baseline="624" data-legend-width="82">- <rect x="352" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="373" y="624" class="t-muted" font-size="8">decision</text>+ <g data-legend-semantic-kind="decision" data-legend-kind="decision" data-legend-label="decision" data-legend-x="355" data-legend-baseline="624" data-legend-width="83">+ <rect x="355" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="377" y="624" class="t-muted" font-size="10" font-weight="500">decision</text></g>- <g data-legend-semantic-kind="success" data-legend-kind="success" data-legend-label="terminal success" data-legend-x="456" data-legend-baseline="624" data-legend-width="122">- <rect x="456" y="616" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="477" y="624" class="t-muted" font-size="8">terminal success</text>+ <g data-legend-semantic-kind="success" data-legend-kind="success" data-legend-label="terminal success" data-legend-x="460" data-legend-baseline="624" data-legend-width="123">+ <rect x="460" y="616" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="482" y="624" class="t-muted" font-size="10" font-weight="500">terminal success</text></g>- <g data-legend-semantic-kind="failure" data-legend-kind="failure" data-legend-label="failure / exit" data-legend-x="600" data-legend-baseline="624" data-legend-width="112">- <rect x="600" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="621" y="624" class="t-muted" font-size="8">failure / exit</text>+ <g data-legend-semantic-kind="failure" data-legend-kind="failure" data-legend-label="failure / exit" data-legend-x="605" data-legend-baseline="624" data-legend-width="113">+ <rect x="605" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="627" y="624" class="t-muted" font-size="10" font-weight="500">failure / exit</text></g></g></svg>@@ -4976,10 +5216,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Lifecycle diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=lifecycle&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5125,7 +5361,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5155,7 +5390,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6278,12 +6512,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10928,7 +11160,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10947,7 +11178,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.htmlindex d77b11ed..7a188948 100644--- a/docs/gallery/artifacts/agent-tool-call.workflow.html+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Agent Tool Call Workflow</h1></div>- <p class="subtitle">Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"happy-path","label":"Request to result","focus":["user","chat","planner","router","approval","tool","external","final"],"note":"Follow the successful request from user intent to the final reply."},{"id":"safety-gate","label":"Policy and recovery","focus":["router","approval","blocked","retry"],"note":"See where risky work stops, waits for consent, or returns for revision."},{"id":"evidence-loop","label":"Evidence and memory","focus":["external","store","trace"],"note":"Isolate the durable trace and context path behind the visible answer."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Tool Call Workflow</title>- <desc id="archify-diagram-description">Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges</desc>+ <desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4800,37 +5040,7 @@</g><!-- Legend -->- <g data-legend data-legend-bridge>- <text x="20" y="800" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="User UI" data-legend-x="20" data-legend-baseline="820" data-legend-width="73">- <rect x="20" y="812" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="41" y="820" class="t-muted" font-size="7">User UI</text>- </g>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Agent logic" data-legend-x="100" data-legend-baseline="820" data-legend-width="90">- <rect x="100" y="812" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="121" y="820" class="t-muted" font-size="7">Agent logic</text>- </g>- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Policy" data-legend-x="197" data-legend-baseline="820" data-legend-width="69">- <rect x="197" y="812" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="218" y="820" class="t-muted" font-size="7">Policy</text>- </g>- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Tool action" data-legend-x="273" data-legend-baseline="820" data-legend-width="90">- <rect x="273" y="812" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="294" y="820" class="t-muted" font-size="7">Tool action</text>- </g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Context / trace" data-legend-x="370" data-legend-baseline="820" data-legend-width="108">- <rect x="370" y="812" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="391" y="820" class="t-muted" font-size="7">Context / trace</text>- </g>- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud service" data-legend-x="485" data-legend-baseline="820" data-legend-width="99">- <rect x="485" y="812" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="506" y="820" class="t-muted" font-size="7">Cloud service</text>- </g>- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External system" data-legend-x="591" data-legend-baseline="820" data-legend-width="108">- <rect x="591" y="812" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="612" y="820" class="t-muted" font-size="7">External system</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">@@ -5054,10 +5264,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Workflow diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=workflow&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5203,7 +5409,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5233,7 +5438,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6356,12 +6560,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -11006,7 +11208,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11025,7 +11226,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.htmlindex 8c496af7..e0f4dc23 100644--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Async Job Roundtrip</h1></div>- <p class="subtitle">Acknowledgement, queueing, background work, retries, callback, polling, and final consistency</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"accept-and-enqueue","label":"Accept without blocking","focus":["client","api","queue"],"note":"The API acknowledges quickly after durable enqueue."},{"id":"work-and-retry","label":"Background work and retry","focus":["queue","worker","provider"],"note":"Timeouts re-enter the queue instead of holding the original request open."},{"id":"observe-final-state","label":"Observe final consistency","focus":["worker","store","notify","client","api"],"note":"Webhook delivery is primary; polling remains a bounded fallback."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 820 920" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Async Job Roundtrip</title>- <desc id="archify-diagram-description">Acknowledgement, queueing, background work, retries, callback, polling, and final consistency</desc>+ <desc id="archify-diagram-description">A sequence diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4816,22 +5056,22 @@<!-- Legend --><g data-legend>- <text x="40" y="846" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <text x="40" y="846" class="t-primary" font-size="12" font-weight="650">Legend</text><g data-legend-semantic-kind="emphasis" data-legend-x="40" data-legend-baseline="866" data-legend-width="78"><path d="M 40 863 L 74 863" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <text x="83" y="866" class="t-muted" font-size="8">request</text>+ <text x="83" y="866" class="t-muted" font-size="10" font-weight="500">request</text></g><g data-legend-semantic-kind="return" data-legend-x="140" data-legend-baseline="866" data-legend-width="73"><path d="M 140 863 L 174 863" class="a-default" stroke-width="1.4" stroke-dasharray="3,5" marker-end="url(#arrowhead)"/>- <text x="183" y="866" class="t-muted" font-size="8">return</text>+ <text x="183" y="866" class="t-muted" font-size="10" font-weight="500">return</text></g><g data-legend-semantic-kind="dashed" data-legend-x="235" data-legend-baseline="866" data-legend-width="98"><path d="M 235 863 L 269 863" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="278" y="866" class="t-muted" font-size="8">async trace</text>+ <text x="278" y="866" class="t-muted" font-size="10" font-weight="500">async trace</text></g><g data-legend-semantic-kind="default" data-legend-x="355" data-legend-baseline="866" data-legend-width="118"><path d="M 355 863 L 389 863" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <text x="398" y="866" class="t-muted" font-size="8">default message</text>+ <text x="398" y="866" class="t-muted" font-size="10" font-weight="500">default message</text></g></g></svg>@@ -5054,10 +5294,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Sequence diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=sequence&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5203,7 +5439,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5233,7 +5468,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6356,12 +6590,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -11006,7 +11238,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11025,7 +11256,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.htmlindex f9208662..3523817e 100644--- a/docs/gallery/artifacts/cache-miss.sequence.html+++ b/docs/gallery/artifacts/cache-miss.sequence.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Cache Miss Request Sequence</h1></div>- <p class="subtitle">Frontend request path with auth, cache fallback, persistence, and async trace</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"request-and-auth","label":"Request and identity","focus":["user","web","api","auth"],"note":"Follow the user request through the authentication check."},{"id":"cache-fallback","label":"Cache fallback","focus":["api","redis","db"],"note":"See the cache miss and the source-of-truth query it triggers."},{"id":"return-and-trace","label":"Return and trace","focus":["db","api","redis","trace","web","user"],"note":"Separate response latency from the non-blocking observability write."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 820 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Cache Miss Request Sequence</title>- <desc id="archify-diagram-description">Frontend request path with auth, cache fallback, persistence, and async trace</desc>+ <desc id="archify-diagram-description">A sequence diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4800,26 +5040,26 @@<!-- Legend --><g data-legend>- <text x="40" y="686" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <text x="40" y="686" class="t-primary" font-size="12" font-weight="650">Legend</text><g data-legend-semantic-kind="emphasis" data-legend-x="40" data-legend-baseline="706" data-legend-width="78"><path d="M 40 703 L 74 703" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <text x="83" y="706" class="t-muted" font-size="8">request</text>+ <text x="83" y="706" class="t-muted" font-size="10" font-weight="500">request</text></g><g data-legend-semantic-kind="return" data-legend-x="140" data-legend-baseline="706" data-legend-width="73"><path d="M 140 703 L 174 703" class="a-default" stroke-width="1.4" stroke-dasharray="3,5" marker-end="url(#arrowhead)"/>- <text x="183" y="706" class="t-muted" font-size="8">return</text>+ <text x="183" y="706" class="t-muted" font-size="10" font-weight="500">return</text></g><g data-legend-semantic-kind="security" data-legend-x="235" data-legend-baseline="706" data-legend-width="83"><path d="M 235 703 L 269 703" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <text x="278" y="706" class="t-muted" font-size="8">security</text>+ <text x="278" y="706" class="t-muted" font-size="10" font-weight="500">security</text></g><g data-legend-semantic-kind="dashed" data-legend-x="340" data-legend-baseline="706" data-legend-width="98"><path d="M 340 703 L 374 703" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="383" y="706" class="t-muted" font-size="8">async trace</text>+ <text x="383" y="706" class="t-muted" font-size="10" font-weight="500">async trace</text></g><g data-legend-semantic-kind="default" data-legend-x="460" data-legend-baseline="706" data-legend-width="118"><path d="M 460 703 L 494 703" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <text x="503" y="706" class="t-muted" font-size="8">default message</text>+ <text x="503" y="706" class="t-muted" font-size="10" font-weight="500">default message</text></g></g></svg>@@ -5042,10 +5282,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Sequence diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=sequence&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5191,7 +5427,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5221,7 +5456,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6344,12 +6578,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10994,7 +11226,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11013,7 +11244,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.htmlindex 5657af8d..26339e32 100644--- a/docs/gallery/artifacts/deployment-release.lifecycle.html+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Deployment Release Lifecycle</h1></div>- <p class="subtitle">Queued, building, verifying, approval, promotion, health regression, rollback, and terminal outcomes</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"promotion-rail","label":"Promotion rail","focus":["queued","building","verifying","ready","live"],"note":"Follow the deployment object from accepted change to healthy production."},{"id":"approval-gate","label":"Approval gate","focus":["verifying","approval","cancelled","ready"],"note":"Approval pauses promotion and can terminate the release cleanly."},{"id":"rollback-outcomes","label":"Rollback outcomes","focus":["ready","rollback","failed","live","paused","rolled_back"],"note":"Separate pre-promotion failure from post-promotion health regression."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 980 680" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Deployment Release Lifecycle</title>- <desc id="archify-diagram-description">Queued, building, verifying, approval, promotion, health regression, rollback, and terminal outcomes</desc>+ <desc id="archify-diagram-description">A lifecycle diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4742,30 +4982,30 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="624" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="start" data-legend-kind="start" data-legend-label="start" data-legend-x="40" data-legend-baseline="644" data-legend-width="67">+ <text x="40" y="624" class="t-primary" font-size="12" font-weight="650">Legend</text>+ <g data-legend-semantic-kind="start" data-legend-kind="start" data-legend-label="start" data-legend-x="40" data-legend-baseline="644" data-legend-width="68"><rect x="40" y="636" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="61" y="644" class="t-muted" font-size="8">start</text>+ <text x="62" y="644" class="t-muted" font-size="10" font-weight="500">start</text></g>- <g data-legend-semantic-kind="active" data-legend-kind="active" data-legend-label="active state" data-legend-x="129" data-legend-baseline="644" data-legend-width="102">- <rect x="129" y="636" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="150" y="644" class="t-muted" font-size="8">active state</text>+ <g data-legend-semantic-kind="active" data-legend-kind="active" data-legend-label="active state" data-legend-x="130" data-legend-baseline="644" data-legend-width="103">+ <rect x="130" y="636" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="152" y="644" class="t-muted" font-size="10" font-weight="500">active state</text></g>- <g data-legend-semantic-kind="waiting" data-legend-kind="waiting" data-legend-label="waiting" data-legend-x="253" data-legend-baseline="644" data-legend-width="77">- <rect x="253" y="636" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="274" y="644" class="t-muted" font-size="8">waiting</text>+ <g data-legend-semantic-kind="waiting" data-legend-kind="waiting" data-legend-label="waiting" data-legend-x="255" data-legend-baseline="644" data-legend-width="78">+ <rect x="255" y="636" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="277" y="644" class="t-muted" font-size="10" font-weight="500">waiting</text></g>- <g data-legend-semantic-kind="decision" data-legend-kind="decision" data-legend-label="decision" data-legend-x="352" data-legend-baseline="644" data-legend-width="82">- <rect x="352" y="636" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="373" y="644" class="t-muted" font-size="8">decision</text>+ <g data-legend-semantic-kind="decision" data-legend-kind="decision" data-legend-label="decision" data-legend-x="355" data-legend-baseline="644" data-legend-width="83">+ <rect x="355" y="636" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="377" y="644" class="t-muted" font-size="10" font-weight="500">decision</text></g>- <g data-legend-semantic-kind="success" data-legend-kind="success" data-legend-label="terminal success" data-legend-x="456" data-legend-baseline="644" data-legend-width="122">- <rect x="456" y="636" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="477" y="644" class="t-muted" font-size="8">terminal success</text>+ <g data-legend-semantic-kind="success" data-legend-kind="success" data-legend-label="terminal success" data-legend-x="460" data-legend-baseline="644" data-legend-width="123">+ <rect x="460" y="636" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="482" y="644" class="t-muted" font-size="10" font-weight="500">terminal success</text></g>- <g data-legend-semantic-kind="failure" data-legend-kind="failure" data-legend-label="failure / exit" data-legend-x="600" data-legend-baseline="644" data-legend-width="112">- <rect x="600" y="636" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="621" y="644" class="t-muted" font-size="8">failure / exit</text>+ <g data-legend-semantic-kind="failure" data-legend-kind="failure" data-legend-label="failure / exit" data-legend-x="605" data-legend-baseline="644" data-legend-width="113">+ <rect x="605" y="636" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="627" y="644" class="t-muted" font-size="10" font-weight="500">failure / exit</text></g></g></svg>@@ -4988,10 +5228,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Lifecycle diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=lifecycle&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5137,7 +5373,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5167,7 +5402,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6290,12 +6524,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10940,7 +11172,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10959,7 +11190,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.htmlindex 89601d68..a9fe52bc 100644--- a/docs/gallery/artifacts/event-stream.dataflow.html+++ b/docs/gallery/artifacts/event-stream.dataflow.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Order Event-stream Topology</h1></div>- <p class="subtitle">Named events, ordered topics, processors, consumer groups, state, replay, and dead letters</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"order-transit","label":"Order event transit","focus":["checkout","orders","validate","state","fulfillment"],"note":"Follow an order from producer through ordered processing to fulfillment."},{"id":"payment-transit","label":"Payment event transit","focus":["billing","payments","enrich","state","analytics"],"note":"Track payment facts into the shared materialized state and analytics."},{"id":"failure-and-replay","label":"Failure and replay","focus":["validate","enrich","dlq","replay","ops"],"note":"Isolate dead letters, operator review, and controlled replay ownership."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 1080 780" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Order Event-stream Topology</title>- <desc id="archify-diagram-description">Named events, ordered topics, processors, consumer groups, state, replay, and dead letters</desc>+ <desc id="archify-diagram-description">A data-flow diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4824,26 +5064,26 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="724" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <text x="40" y="724" class="t-primary" font-size="12" font-weight="650">Legend</text><g data-legend-semantic-kind="emphasis" data-legend-x="40" data-legend-baseline="744" data-legend-width="103"><path d="M 40 741 L 74 741" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <text x="83" y="744" class="t-muted" font-size="8">primary data</text>+ <text x="83" y="744" class="t-muted" font-size="10" font-weight="500">primary data</text></g><g data-legend-semantic-kind="security" data-legend-x="165" data-legend-baseline="744" data-legend-width="103"><path d="M 165 741 L 199 741" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <text x="208" y="744" class="t-muted" font-size="8">policy / PII</text>+ <text x="208" y="744" class="t-muted" font-size="10" font-weight="500">policy / PII</text></g><g data-legend-semantic-kind="dashed" data-legend-x="290" data-legend-baseline="744" data-legend-width="98"><path d="M 290 741 L 324 741" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="333" y="744" class="t-muted" font-size="8">async batch</text>+ <text x="333" y="744" class="t-muted" font-size="10" font-weight="500">async batch</text></g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="data store" data-legend-x="410" data-legend-baseline="744" data-legend-width="92">+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="data store" data-legend-x="410" data-legend-baseline="744" data-legend-width="93"><rect x="410" y="736" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="431" y="744" class="t-muted" font-size="8">data store</text>+ <text x="432" y="744" class="t-muted" font-size="10" font-weight="500">data store</text></g>- <g data-legend-semantic-kind="default" data-legend-x="524" data-legend-baseline="744" data-legend-width="88">- <path d="M 524 741 L 558 741" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <text x="567" y="744" class="t-muted" font-size="8">data flow</text>+ <g data-legend-semantic-kind="default" data-legend-x="525" data-legend-baseline="744" data-legend-width="88">+ <path d="M 525 741 L 559 741" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>+ <text x="568" y="744" class="t-muted" font-size="10" font-weight="500">data flow</text></g></g></svg>@@ -5066,10 +5306,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Data-flow diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=dataflow&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5215,7 +5451,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5245,7 +5480,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6368,12 +6602,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -11018,7 +11250,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11037,7 +11268,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.htmlindex 050cda0c..189b5227 100644--- a/docs/gallery/artifacts/incident-response.workflow.html+++ b/docs/gallery/artifacts/incident-response.workflow.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Incident Response Runbook</h1></div>- <p class="subtitle">Detection, triage, mitigation, communication, escalation, and recovery proof</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"detect-and-triage","label":"Detect and establish command","focus":["alert","page","triage","declare"],"note":"Follow the first minutes from signal to an owned incident."},{"id":"mitigate-and-verify","label":"Mitigate and prove recovery","focus":["triage","contain","recover","verify","close"],"note":"Keep mitigation separate from the evidence required to close."},{"id":"escalate-and-communicate","label":"Escalation and communication","focus":["declare","escalate","update","rollback"],"note":"See who is paged, what stakeholders hear, and when rollback begins."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Incident Response Runbook</title>- <desc id="archify-diagram-description">Detection, triage, mitigation, communication, escalation, and recovery proof</desc>+ <desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4772,37 +5012,7 @@<!-- Legend -->- <g data-legend data-legend-bridge>- <text x="20" y="800" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="User UI" data-legend-x="20" data-legend-baseline="820" data-legend-width="73">- <rect x="20" y="812" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="41" y="820" class="t-muted" font-size="7">User UI</text>- </g>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Agent logic" data-legend-x="100" data-legend-baseline="820" data-legend-width="90">- <rect x="100" y="812" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="121" y="820" class="t-muted" font-size="7">Agent logic</text>- </g>- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Policy" data-legend-x="197" data-legend-baseline="820" data-legend-width="69">- <rect x="197" y="812" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="218" y="820" class="t-muted" font-size="7">Policy</text>- </g>- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Tool action" data-legend-x="273" data-legend-baseline="820" data-legend-width="90">- <rect x="273" y="812" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="294" y="820" class="t-muted" font-size="7">Tool action</text>- </g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Context / trace" data-legend-x="370" data-legend-baseline="820" data-legend-width="108">- <rect x="370" y="812" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="391" y="820" class="t-muted" font-size="7">Context / trace</text>- </g>- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud service" data-legend-x="485" data-legend-baseline="820" data-legend-width="99">- <rect x="485" y="812" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="506" y="820" class="t-muted" font-size="7">Cloud service</text>- </g>- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External system" data-legend-x="591" data-legend-baseline="820" data-legend-width="108">- <rect x="591" y="812" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="612" y="820" class="t-muted" font-size="7">External system</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">@@ -5023,10 +5233,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Workflow diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=workflow&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5172,7 +5378,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5202,7 +5407,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6325,12 +6529,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10975,7 +11177,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10994,7 +11195,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.htmlindex 6c5e728c..d50a0b55 100644--- a/docs/gallery/artifacts/product-analytics.dataflow.html+++ b/docs/gallery/artifacts/product-analytics.dataflow.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Product Analytics Data Flow</h1></div>- <p class="subtitle">Events, consent, PII isolation, warehouse sync, and downstream analytics</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"collection-path","label":"Collection path","focus":["web","mobile","edge","stream"],"note":"Follow product events from clients into the ordered event stream."},{"id":"consent-boundary","label":"Consent and PII","focus":["edge","consent","pii"],"note":"Isolate the policy gate and restricted identity store."},{"id":"analytics-consumers","label":"Curated consumers","focus":["stream","warehouse","dashboard","features","model"],"note":"See curated facts, dashboards, and the derived feature path."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 1080 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Product Analytics Data Flow</title>- <desc id="archify-diagram-description">Events, consent, PII isolation, warehouse sync, and downstream analytics</desc>+ <desc id="archify-diagram-description">A data-flow diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4785,26 +5025,26 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="704" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <text x="40" y="704" class="t-primary" font-size="12" font-weight="650">Legend</text><g data-legend-semantic-kind="emphasis" data-legend-x="40" data-legend-baseline="724" data-legend-width="103"><path d="M 40 721 L 74 721" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <text x="83" y="724" class="t-muted" font-size="8">primary data</text>+ <text x="83" y="724" class="t-muted" font-size="10" font-weight="500">primary data</text></g><g data-legend-semantic-kind="security" data-legend-x="165" data-legend-baseline="724" data-legend-width="103"><path d="M 165 721 L 199 721" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <text x="208" y="724" class="t-muted" font-size="8">policy / PII</text>+ <text x="208" y="724" class="t-muted" font-size="10" font-weight="500">policy / PII</text></g><g data-legend-semantic-kind="dashed" data-legend-x="290" data-legend-baseline="724" data-legend-width="98"><path d="M 290 721 L 324 721" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="333" y="724" class="t-muted" font-size="8">async batch</text>+ <text x="333" y="724" class="t-muted" font-size="10" font-weight="500">async batch</text></g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="data store" data-legend-x="410" data-legend-baseline="724" data-legend-width="92">+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="data store" data-legend-x="410" data-legend-baseline="724" data-legend-width="93"><rect x="410" y="716" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="431" y="724" class="t-muted" font-size="8">data store</text>+ <text x="432" y="724" class="t-muted" font-size="10" font-weight="500">data store</text></g>- <g data-legend-semantic-kind="default" data-legend-x="524" data-legend-baseline="724" data-legend-width="88">- <path d="M 524 721 L 558 721" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <text x="567" y="724" class="t-muted" font-size="8">data flow</text>+ <g data-legend-semantic-kind="default" data-legend-x="525" data-legend-baseline="724" data-legend-width="88">+ <path d="M 525 721 L 559 721" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>+ <text x="568" y="724" class="t-muted" font-size="10" font-weight="500">data flow</text></g></g></svg>@@ -5027,10 +5267,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Data-flow diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=dataflow&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5176,7 +5412,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5206,7 +5441,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6329,12 +6563,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10979,7 +11211,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10998,7 +11229,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.htmlindex 2ce387d3..e540b667 100644--- a/docs/gallery/artifacts/production-deployment.architecture.html+++ b/docs/gallery/artifacts/production-deployment.architecture.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Production Deployment Ownership</h1></div>- <p class="subtitle">Regions, network boundaries, workload owners, state, and named crossings</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"request-boundary","label":"Request crosses the edge","focus":["clients","edge","gateway","api_a","api_b"],"note":"Follow public traffic into the private application network."},{"id":"state-ownership","label":"State and ownership","focus":["api_a","api_b","redis","postgres","replica"],"note":"Separate stateless platform workloads from data-team-owned state."},{"id":"async-operations","label":"Async and operations","focus":["api_b","events","worker","audit","observability"],"note":"See the asynchronous work and the evidence it emits."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 1436 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="blueprint" data-engineering-profile="deployment-ownership" data-quality-profile="showcase"><title id="archify-diagram-title">Production Deployment Ownership</title>- <desc id="archify-diagram-description">Regions, network boundaries, workload owners, state, and named crossings</desc>+ <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4795,30 +5035,30 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="724" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="40" data-legend-baseline="744" data-legend-width="77">- <rect x="40" y="736" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="61" y="744" class="t-muted" font-size="8">Backend</text>+ <text x="40" y="724" 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="744" data-legend-width="78">+ <rect x="40" y="735" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>+ <text x="62" y="744" 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="139" data-legend-baseline="744" data-legend-width="82">- <rect x="139" y="736" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="160" y="744" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="140" data-legend-baseline="744" data-legend-width="83">+ <rect x="140" y="735" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>+ <text x="162" y="744" 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="243" data-legend-baseline="744" data-legend-width="67">- <rect x="243" y="736" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="264" y="744" class="t-muted" font-size="8">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="744" data-legend-width="68">+ <rect x="245" y="735" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="267" y="744" 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="332" data-legend-baseline="744" data-legend-width="82">- <rect x="332" y="736" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="353" y="744" class="t-muted" font-size="8">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="744" data-legend-width="83">+ <rect x="335" y="735" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="357" y="744" 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="436" data-legend-baseline="744" data-legend-width="97">- <rect x="436" y="736" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="457" y="744" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="440" data-legend-baseline="744" data-legend-width="98">+ <rect x="440" y="735" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>+ <text x="462" y="744" 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="555" data-legend-baseline="744" data-legend-width="82">- <rect x="555" y="736" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="576" y="744" class="t-muted" font-size="8">External</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="560" data-legend-baseline="744" data-legend-width="83">+ <rect x="560" y="735" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="582" y="744" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg>@@ -5041,10 +5281,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Architecture diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5190,7 +5426,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5220,7 +5455,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6343,12 +6577,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10993,7 +11225,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11012,7 +11243,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.htmlindex eda0a20a..316ca294 100644--- a/docs/gallery/artifacts/release-delivery.workflow.html+++ b/docs/gallery/artifacts/release-delivery.workflow.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Release Delivery Workflow</h1></div>- <p class="subtitle">Commit, blocking checks, approval, production verification, and rollback</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"commit-to-checks","label":"Commit to green build","focus":["commit","pull_request","build","checks"],"note":"Follow the change through reproducible build and blocking quality gates."},{"id":"approval-to-production","label":"Approve and promote","focus":["checks","approval","deploy","verify_prod","announce"],"note":"See who authorizes production and how success is verified."},{"id":"rollback-path","label":"Failure and rollback","focus":["checks","failed","verify_prod","rollback","deploy"],"note":"Isolate the two places where delivery stops or reverses safely."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Release Delivery Workflow</title>- <desc id="archify-diagram-description">Commit, blocking checks, approval, production verification, and rollback</desc>+ <desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4744,7 +4984,7 @@</g><text data-detail-anchor x="500" y="726" class="t-primary" font-size="11" font-weight="600" text-anchor="middle">Rollback</text><text data-detail="context" x="500" y="743" class="t-muted" font-size="6.2" text-anchor="middle">last good image</text>- <text data-detail="fine" x="500" y="761" class="t-messagebus" font-size="7" text-anchor="middle">owner: on-call</text>+ <text data-detail="fine" x="500" y="761" class="t-messagebus" font-size="6.6" text-anchor="middle">owner: on-call</text></g><!-- Edge labels -->@@ -4773,30 +5013,30 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="20" y="800" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="User UI" data-legend-x="20" data-legend-baseline="820" data-legend-width="73">+ <text x="20" y="800" class="t-primary" font-size="12" font-weight="650">Legend</text>+ <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="User UI" data-legend-x="20" data-legend-baseline="820" data-legend-width="74"><rect x="20" y="812" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="41" y="820" class="t-muted" font-size="7">User UI</text>+ <text x="42" y="820" class="t-muted" font-size="7.5" font-weight="500">User UI</text></g>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Agent logic" data-legend-x="100" data-legend-baseline="820" data-legend-width="90">- <rect x="100" y="812" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="121" y="820" class="t-muted" font-size="7">Agent logic</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Agent logic" data-legend-x="101" data-legend-baseline="820" data-legend-width="91">+ <rect x="101" y="812" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="123" y="820" class="t-muted" font-size="7.5" font-weight="500">Agent logic</text></g>- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Policy" data-legend-x="197" data-legend-baseline="820" data-legend-width="69">- <rect x="197" y="812" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="218" y="820" class="t-muted" font-size="7">Policy</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Policy" data-legend-x="199" data-legend-baseline="820" data-legend-width="70">+ <rect x="199" y="812" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="221" y="820" class="t-muted" font-size="7.5" font-weight="500">Policy</text></g>- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Tool action" data-legend-x="273" data-legend-baseline="820" data-legend-width="90">- <rect x="273" y="812" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="294" y="820" class="t-muted" font-size="7">Tool action</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Tool action" data-legend-x="276" data-legend-baseline="820" data-legend-width="91">+ <rect x="276" y="812" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>+ <text x="298" y="820" class="t-muted" font-size="7.5" font-weight="500">Tool action</text></g>- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud service" data-legend-x="370" data-legend-baseline="820" data-legend-width="99">- <rect x="370" y="812" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="391" y="820" class="t-muted" font-size="7">Cloud service</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud service" data-legend-x="374" data-legend-baseline="820" data-legend-width="100">+ <rect x="374" y="812" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="396" y="820" class="t-muted" font-size="7.5" font-weight="500">Cloud service</text></g>- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External system" data-legend-x="476" data-legend-baseline="820" data-legend-width="108">- <rect x="476" y="812" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="497" y="820" class="t-muted" font-size="7">External system</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External system" data-legend-x="481" data-legend-baseline="820" data-legend-width="109">+ <rect x="481" y="812" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>+ <text x="503" y="820" class="t-muted" font-size="7.5" font-weight="500">External system</text></g></g></svg>@@ -5019,10 +5259,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Workflow diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=workflow&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5168,7 +5404,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5198,7 +5433,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6321,12 +6555,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10971,7 +11203,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10990,7 +11221,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.htmlindex 99b44cd6..6ea40e3b 100644--- a/docs/gallery/artifacts/web-app.architecture.html+++ b/docs/gallery/artifacts/web-app.architecture.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,15 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +901,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +923,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +945,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2759,26 +2774,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2871,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2884,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2900,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2924,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +2999,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3042,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3151,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3193,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3386,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3718,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3919,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4642,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4655,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4692,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4702,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4739,6 @@<div class="pulse-dot"></div><h1>Sample Web App</h1></div>- <p class="subtitle">Classic 3-tier SaaS on AWS — rendered by Archify</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"request-path","label":"Primary request path","focus":["users","cdn","lb","api","db"],"note":"Follow the primary customer request from the edge to durable state."},{"id":"identity-and-cache","label":"Identity and cache","focus":["auth","api","cache"],"note":"Isolate authentication and the read-through cache beside the request path."},{"id":"async-work","label":"Static and async work","focus":["cdn","s3","api","queue","worker"],"note":"See the two secondary paths without adding noise to the main request."}]</script>@@ -4546,7 +4786,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 1080 588" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Sample Web App</title>- <desc id="archify-diagram-description">Classic 3-tier SaaS on AWS — rendered by Archify</desc>+ <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4738,30 +4978,30 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="552" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="40" data-legend-baseline="572" data-legend-width="77">- <rect x="40" y="564" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="61" y="572" class="t-muted" font-size="8">Backend</text>+ <text x="40" y="552" 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="572" data-legend-width="78">+ <rect x="40" y="563" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>+ <text x="62" y="572" 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="139" data-legend-baseline="572" data-legend-width="82">- <rect x="139" y="564" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="160" y="572" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="140" data-legend-baseline="572" data-legend-width="83">+ <rect x="140" y="563" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>+ <text x="162" y="572" 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="243" data-legend-baseline="572" data-legend-width="67">- <rect x="243" y="564" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="264" y="572" class="t-muted" font-size="8">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="572" data-legend-width="68">+ <rect x="245" y="563" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="267" y="572" 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="332" data-legend-baseline="572" data-legend-width="82">- <rect x="332" y="564" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="353" y="572" class="t-muted" font-size="8">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="572" data-legend-width="83">+ <rect x="335" y="563" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="357" y="572" 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="436" data-legend-baseline="572" data-legend-width="97">- <rect x="436" y="564" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="457" y="572" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="440" data-legend-baseline="572" data-legend-width="98">+ <rect x="440" y="563" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>+ <text x="462" y="572" 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="555" data-legend-baseline="572" data-legend-width="82">- <rect x="555" y="564" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="576" y="572" class="t-muted" font-size="8">External</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="560" data-legend-baseline="572" data-legend-width="83">+ <rect x="560" y="563" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="582" y="572" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg>@@ -4982,10 +5222,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Architecture diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5131,7 +5367,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5161,7 +5396,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6284,12 +6518,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10934,7 +11166,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10953,7 +11184,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.jsonindex 78e65908..bad7b326 100644--- a/docs/gallery/manifest.json+++ b/docs/gallery/manifest.json@@ -9,7 +9,7 @@"id": "agent-tool-call","type": "workflow","title": "Agent Tool Call Workflow",- "subtitle": "Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges",+ "subtitle": "","input": "gallery/sources/agent-tool-call.workflow.json","artifact": "gallery/artifacts/agent-tool-call.workflow.html","focus": "planner",@@ -27,10 +27,10 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 620972,- "artifactSha256": "fef035cb0d7c2681266d416e7ff27005002c22d1cf6c97349653c23cd2678be6",- "sourceBytes": 6470,- "sourceSha256": "a3afc6b30044eb256aa15c6195ddfbbcd1a14880d99967ed5605bc621ffb7e5f",+ "artifactBytes": 631366,+ "artifactSha256": "9af05e8a42ee8e83a707d91b1483fd87c1e38f82dc3786f9ae0e7873664bc3b4",+ "sourceBytes": 6367,+ "sourceSha256": "9c94c8c0b2104478b77befb4cc5e343d381acba6e66645ab17616fde20b60e05","checks": [{"name": "single_svg",@@ -107,7 +107,7 @@"id": "deployment-ownership","type": "architecture","title": "Production Deployment Ownership",- "subtitle": "Regions, network boundaries, workload owners, state, and named crossings",+ "subtitle": "","input": "gallery/sources/production-deployment.architecture.json","artifact": "gallery/artifacts/production-deployment.architecture.html","focus": "gateway",@@ -125,10 +125,10 @@"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 620609,- "artifactSha256": "80040a034574d553c4af0c7eb7367098cf3e7d8066f3f0a52073002a8f5b0002",- "sourceBytes": 5546,- "sourceSha256": "03e647d057eb20d99f7fb4ba4ddfdd5d58a7a813865338680e968038e6a90e0f",+ "artifactBytes": 633959,+ "artifactSha256": "f457336c6a92866db7dc83629e734bf07dda97b30ed129a2fd20c755c6c7d607",+ "sourceBytes": 5454,+ "sourceSha256": "738e9c7f22e4e6e88f5aafc087dc58409105927daa9a79aaf240c8393654494f","checks": [{"name": "single_svg",@@ -205,7 +205,7 @@"id": "cache-miss","type": "sequence","title": "Cache Miss Request Sequence",- "subtitle": "Frontend request path with auth, cache fallback, persistence, and async trace",+ "subtitle": "","input": "gallery/sources/cache-miss-request.sequence.json","artifact": "gallery/artifacts/cache-miss.sequence.html","focus": "redis",@@ -223,10 +223,10 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 614556,- "artifactSha256": "ec485045370cc80930fb468db3c9e8c4ed2ebea39e99cb4e370e82e60ba40de0",- "sourceBytes": 4442,- "sourceSha256": "30098d81006a18813bab447da698edf74604a1463770f01dc056b0af8cb314ef",+ "artifactBytes": 627863,+ "artifactSha256": "923e8a6a94f9f6bed7d55b8dcd03edb209b58b15d5697a99a3d32bd7bf7723d5",+ "sourceBytes": 4345,+ "sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389","checks": [{"name": "single_svg",@@ -303,7 +303,7 @@"id": "delivery-workflow","type": "workflow","title": "Release Delivery Workflow",- "subtitle": "Commit, blocking checks, approval, production verification, and rollback",+ "subtitle": "","input": "gallery/sources/release-delivery.workflow.json","artifact": "gallery/artifacts/release-delivery.workflow.html","focus": "approval",@@ -321,10 +321,10 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 616845,- "artifactSha256": "16a2c7ca3bab20569b7e4be3893356f2e441d936f8d156b9895c5811d5b4ef7b",- "sourceBytes": 5256,- "sourceSha256": "44aa56ac6ca807937dfe84a6404e8b07d6394a38ae2ac53248a1985337dfd671",+ "artifactBytes": 630190,+ "artifactSha256": "2b7f898d7e512e100bb6c04821b1d8782131b25a95c57f2a2171f21b960ef43a",+ "sourceBytes": 5164,+ "sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91","checks": [{"name": "single_svg",@@ -401,7 +401,7 @@"id": "incident-runbook","type": "workflow","title": "Incident Response Runbook",- "subtitle": "Detection, triage, mitigation, communication, escalation, and recovery proof",+ "subtitle": "","input": "gallery/sources/incident-response.workflow.json","artifact": "gallery/artifacts/incident-response.workflow.html","focus": "triage",@@ -419,10 +419,10 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 617095,- "artifactSha256": "9e90ed455298cf4c5f20eede7f69719ed23981e63d82a9cf684a6cc0a8493461",- "sourceBytes": 5471,- "sourceSha256": "9beb8698b275679a2fc92d4b51288cd5b5fc2115696d06b9168f3d7fef253a72",+ "artifactBytes": 627503,+ "artifactSha256": "8a28d76d12533a3a9f5f9587ce698d4c2ef49ea04e37d58e5817a36fb7381920",+ "sourceBytes": 5375,+ "sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b","checks": [{"name": "single_svg",@@ -499,7 +499,7 @@"id": "product-analytics","type": "dataflow","title": "Product Analytics Data Flow",- "subtitle": "Events, consent, PII isolation, warehouse sync, and downstream analytics",+ "subtitle": "","input": "gallery/sources/product-analytics.dataflow.json","artifact": "gallery/artifacts/product-analytics.dataflow.html","focus": "consent",@@ -517,10 +517,10 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 618131,- "artifactSha256": "1fe57b42b5707eec1f289b63ea6744d5290dce52fb5b40144683f6625f2ab9b4",- "sourceBytes": 5719,- "sourceSha256": "f71c89288f80255bdedcdc0057bcbc155d1d8b1b7476d024b35f4e27c730c974",+ "artifactBytes": 631448,+ "artifactSha256": "6ca03cf6424537fded9a29279252b49f8972f9d7fef481038460018eb149497c",+ "sourceBytes": 5627,+ "sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110","checks": [{"name": "single_svg",@@ -597,7 +597,7 @@"id": "async-roundtrip","type": "sequence","title": "Async Job Roundtrip",- "subtitle": "Acknowledgement, queueing, background work, retries, callback, polling, and final consistency",+ "subtitle": "","input": "gallery/sources/async-job-roundtrip.sequence.json","artifact": "gallery/artifacts/async-job-roundtrip.sequence.html","focus": "queue",@@ -615,10 +615,10 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 615017,- "artifactSha256": "5b7bc0f6339ff0f27bf6364552a2d399d151f57b5d90b12d980309ca69bfd2f4",- "sourceBytes": 4483,- "sourceSha256": "1b53d7c4ce7b2d8f6f40b8f33a394abe1d37fc991272b534c1ccd0255920ab52",+ "artifactBytes": 628273,+ "artifactSha256": "d9485dcfedf00ab0277c45fad3563d318cece676947a60d513c493dd1a11a179",+ "sourceBytes": 4370,+ "sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9","checks": [{"name": "single_svg",@@ -695,7 +695,7 @@"id": "event-stream","type": "dataflow","title": "Order Event-stream Topology",- "subtitle": "Named events, ordered topics, processors, consumer groups, state, replay, and dead letters",+ "subtitle": "","input": "gallery/sources/event-stream.dataflow.json","artifact": "gallery/artifacts/event-stream.dataflow.html","focus": "orders",@@ -713,10 +713,10 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 622086,- "artifactSha256": "e35695c40acffc636b7feb0498259d6f36bbff3f8b75154b7933d8b81d751403",- "sourceBytes": 5543,- "sourceSha256": "bbfedc2f1b73bf50932490f7f56d45d5f853e970d2fab26660a04947a783969c",+ "artifactBytes": 635367,+ "artifactSha256": "86a99192a4a1162ab4006cd6534b4d096d4730a6092ac4fd4d9973c05c63cb09",+ "sourceBytes": 5433,+ "sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e","checks": [{"name": "single_svg",@@ -793,7 +793,7 @@"id": "agent-run","type": "lifecycle","title": "Agent Run Lifecycle",- "subtitle": "State machine for planning, tool execution, human approval, retries, and terminal outcomes",+ "subtitle": "","input": "gallery/sources/agent-run.lifecycle.json","artifact": "gallery/artifacts/agent-run.lifecycle.html","focus": "approval",@@ -811,10 +811,10 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 611784,- "artifactSha256": "5648bea78a6d8d573a964a78c2088441b2e573b571c4a7b580988d7bc71b0a4e",- "sourceBytes": 4527,- "sourceSha256": "2e756b3d1ebc2f6c3f62f46c0fbb5584ed7bd6213627259ab43153b18c831cdf",+ "artifactBytes": 625083,+ "artifactSha256": "32671fcc28d60f6321c719203b544f0df8f0614ba35d7dabc6c82068075d34bf",+ "sourceBytes": 4417,+ "sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42","checks": [{"name": "single_svg",@@ -891,7 +891,7 @@"id": "deployment-lifecycle","type": "lifecycle","title": "Deployment Release Lifecycle",- "subtitle": "Queued, building, verifying, approval, promotion, health regression, rollback, and terminal outcomes",+ "subtitle": "","input": "gallery/sources/deployment-release.lifecycle.json","artifact": "gallery/artifacts/deployment-release.lifecycle.html","focus": "live",@@ -909,10 +909,10 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 6,- "artifactBytes": 612774,- "artifactSha256": "cb7d00aa852e4bf17051a50370ebfab1b7affa23c24fb249fbe46618e897a9ee",- "sourceBytes": 4394,- "sourceSha256": "aa614f0c9a82f210e301e382f362dfbd7f290bda4d5501de3c99a6cd81b4c0a4",+ "artifactBytes": 626053,+ "artifactSha256": "31c6789ecf0e5ab63b723fd322979332c7a4d4cb921cf135b54b9fb4a8e8ef01",+ "sourceBytes": 4274,+ "sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71","checks": [{"name": "single_svg",@@ -989,7 +989,7 @@"id": "web-app","type": "architecture","title": "Sample Web App",- "subtitle": "Classic 3-tier SaaS on AWS — rendered by Archify",+ "subtitle": "","input": "gallery/sources/web-app.architecture.json","artifact": "gallery/artifacts/web-app.architecture.html","focus": "api",@@ -1007,10 +1007,10 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 611896,- "artifactSha256": "4de8669a9fd93f4df66e2ca16cc10517a290710b831adf03446256b8d544f137",- "sourceBytes": 3863,- "sourceSha256": "01567b5e49cad5139baa071533a028d22f0e80fedfb49095e0d9330aee7f87db",+ "artifactBytes": 625290,+ "artifactSha256": "1e965f57b00f32cf19324691cf57ebfcd38b660af8e3458a48aeb6d6e8ef3c7d",+ "sourceBytes": 3793,+ "sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf","checks": [{"name": "single_svg",diff --git a/docs/gallery/sources/agent-run.lifecycle.json b/docs/gallery/sources/agent-run.lifecycle.jsonindex 18ab9e19..329208b4 100644--- a/docs/gallery/sources/agent-run.lifecycle.json+++ b/docs/gallery/sources/agent-run.lifecycle.json@@ -3,7 +3,6 @@"diagram_type": "lifecycle","meta": {"title": "Agent Run Lifecycle",- "subtitle": "State machine for planning, tool execution, human approval, retries, and terminal outcomes","output": "examples/lifecycle-agent-run.html","viewBox": [980, 660],"animation": "trace",diff --git a/docs/gallery/sources/agent-tool-call.workflow.json b/docs/gallery/sources/agent-tool-call.workflow.jsonindex f5da8941..1144e1d5 100644--- a/docs/gallery/sources/agent-tool-call.workflow.json+++ b/docs/gallery/sources/agent-tool-call.workflow.json@@ -3,7 +3,6 @@"diagram_type": "workflow","meta": {"title": "Agent Tool Call Workflow",- "subtitle": "Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges","animation": "trace","visual_preset": "signal-flow","quality_profile": "showcase",diff --git a/docs/gallery/sources/async-job-roundtrip.sequence.json b/docs/gallery/sources/async-job-roundtrip.sequence.jsonindex 1d178c05..35110496 100644--- a/docs/gallery/sources/async-job-roundtrip.sequence.json+++ b/docs/gallery/sources/async-job-roundtrip.sequence.json@@ -3,7 +3,6 @@"diagram_type": "sequence","meta": {"title": "Async Job Roundtrip",- "subtitle": "Acknowledgement, queueing, background work, retries, callback, polling, and final consistency","output": "examples/async-job-roundtrip.html","viewBox": [820, 920],"animation": "trace",diff --git a/docs/gallery/sources/cache-miss-request.sequence.json b/docs/gallery/sources/cache-miss-request.sequence.jsonindex 4d98e6bc..3a5d502f 100644--- a/docs/gallery/sources/cache-miss-request.sequence.json+++ b/docs/gallery/sources/cache-miss-request.sequence.json@@ -3,7 +3,6 @@"diagram_type": "sequence","meta": {"title": "Cache Miss Request Sequence",- "subtitle": "Frontend request path with auth, cache fallback, persistence, and async trace","output": "examples/sequence-cache-miss-request.html","viewBox": [820, 760],"animation": "trace",diff --git a/docs/gallery/sources/deployment-release.lifecycle.json b/docs/gallery/sources/deployment-release.lifecycle.jsonindex b82bb81f..ba87dc22 100644--- a/docs/gallery/sources/deployment-release.lifecycle.json+++ b/docs/gallery/sources/deployment-release.lifecycle.json@@ -3,7 +3,6 @@"diagram_type": "lifecycle","meta": {"title": "Deployment Release Lifecycle",- "subtitle": "Queued, building, verifying, approval, promotion, health regression, rollback, and terminal outcomes","output": "examples/deployment-release.html","viewBox": [980, 680],"animation": "trace",diff --git a/docs/gallery/sources/event-stream.dataflow.json b/docs/gallery/sources/event-stream.dataflow.jsonindex 9145f1e4..e7cc5002 100644--- a/docs/gallery/sources/event-stream.dataflow.json+++ b/docs/gallery/sources/event-stream.dataflow.json@@ -3,7 +3,6 @@"diagram_type": "dataflow","meta": {"title": "Order Event-stream Topology",- "subtitle": "Named events, ordered topics, processors, consumer groups, state, replay, and dead letters","output": "examples/event-stream.html","viewBox": [1080, 780],"animation": "trace",diff --git a/docs/gallery/sources/incident-response.workflow.json b/docs/gallery/sources/incident-response.workflow.jsonindex fca59b35..7446e55f 100644--- a/docs/gallery/sources/incident-response.workflow.json+++ b/docs/gallery/sources/incident-response.workflow.json@@ -3,7 +3,6 @@"diagram_type": "workflow","meta": {"title": "Incident Response Runbook",- "subtitle": "Detection, triage, mitigation, communication, escalation, and recovery proof","output": "examples/incident-response.html","animation": "trace","visual_preset": "signal-flow",diff --git a/docs/gallery/sources/product-analytics.dataflow.json b/docs/gallery/sources/product-analytics.dataflow.jsonindex bf0a9f33..57270cf1 100644--- a/docs/gallery/sources/product-analytics.dataflow.json+++ b/docs/gallery/sources/product-analytics.dataflow.json@@ -3,7 +3,6 @@"diagram_type": "dataflow","meta": {"title": "Product Analytics Data Flow",- "subtitle": "Events, consent, PII isolation, warehouse sync, and downstream analytics","output": "examples/dataflow-product-analytics.html","viewBox": [1080, 760],"animation": "trace",diff --git a/docs/gallery/sources/production-deployment.architecture.json b/docs/gallery/sources/production-deployment.architecture.jsonindex b57fe07e..91507689 100644--- a/docs/gallery/sources/production-deployment.architecture.json+++ b/docs/gallery/sources/production-deployment.architecture.json@@ -3,7 +3,6 @@"diagram_type": "architecture","meta": {"title": "Production Deployment Ownership",- "subtitle": "Regions, network boundaries, workload owners, state, and named crossings","output": "examples/production-deployment.html","visual_preset": "blueprint","animation": "trace",diff --git a/docs/gallery/sources/release-delivery.workflow.json b/docs/gallery/sources/release-delivery.workflow.jsonindex c58acacd..915e39c4 100644--- a/docs/gallery/sources/release-delivery.workflow.json+++ b/docs/gallery/sources/release-delivery.workflow.json@@ -3,7 +3,6 @@"diagram_type": "workflow","meta": {"title": "Release Delivery Workflow",- "subtitle": "Commit, blocking checks, approval, production verification, and rollback","output": "examples/release-delivery.html","animation": "trace","quality_profile": "showcase",diff --git a/docs/gallery/sources/web-app.architecture.json b/docs/gallery/sources/web-app.architecture.jsonindex a260185f..9f6cb140 100644--- a/docs/gallery/sources/web-app.architecture.json+++ b/docs/gallery/sources/web-app.architecture.json@@ -3,7 +3,6 @@"diagram_type": "architecture","meta": {"title": "Sample Web App",- "subtitle": "Classic 3-tier SaaS on AWS — rendered by Archify","output": "web-app-rendered.html","quality_profile": "showcase","views": [diff --git a/examples/archify-repo-grid.html b/examples/archify-repo-grid.htmlindex 4c73b4e2..0931a385 100644--- a/examples/archify-repo-grid.html+++ b/examples/archify-repo-grid.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,8 +592,7 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);@@ -2759,26 +2757,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -4706,31 +4684,31 @@<!-- Legend -->- <g data-legend-bridge>- <text x="40" y="327" class="t-primary" font-size="9" font-weight="600">Legend</text>- <g data-legend-kind="external">- <rect x="40" y="332" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="60" y="340" class="t-muted" font-size="8">External</text>+ <g data-legend data-legend-bridge>+ <text x="40" y="320" class="t-primary" font-size="10" font-weight="600">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="82">+ <rect x="40" y="332" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>+ <text x="61" y="340" class="t-muted" font-size="8">Frontend</text></g>- <g data-legend-kind="frontend">- <rect x="144" y="332" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="164" y="340" class="t-muted" font-size="8">Frontend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="144" data-legend-baseline="340" data-legend-width="77">+ <rect x="144" y="332" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="165" y="340" class="t-muted" font-size="8">Backend</text></g>- <g data-legend-kind="messagebus">- <rect x="248" y="332" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="268" y="340" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="243" data-legend-baseline="340" data-legend-width="67">+ <rect x="243" y="332" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="264" y="340" class="t-muted" font-size="8">Cloud</text></g>- <g data-legend-kind="security">- <rect x="367" y="332" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="387" y="340" class="t-muted" font-size="8">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="332" data-legend-baseline="340" data-legend-width="82">+ <rect x="332" y="332" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="353" y="340" class="t-muted" font-size="8">Security</text></g>- <g data-legend-kind="backend">- <rect x="471" y="332" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="491" y="340" class="t-muted" font-size="8">Backend</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="436" data-legend-baseline="340" data-legend-width="97">+ <rect x="436" y="332" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>+ <text x="457" y="340" class="t-muted" font-size="8">Message bus</text></g>- <g data-legend-kind="cloud">- <rect x="570" y="332" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="590" y="340" class="t-muted" font-size="8">Cloud</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="555" data-legend-baseline="340" data-legend-width="82">+ <rect x="555" y="332" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>+ <text x="576" y="340" class="t-muted" font-size="8">External</text></g></g></svg>@@ -4929,10 +4907,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Architecture diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5413,6 +5387,7 @@});Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-kind]'), function (el) {el.removeAttribute('data-legend-kind');+ el.removeAttribute('data-legend-label');el.removeAttribute('data-legend-count');el.removeAttribute('data-legend-zero');el.removeAttribute('data-legend-selected');@@ -12371,7 +12346,8 @@}entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');- entry.setAttribute('aria-label', 'Inspect ' + fact.label + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;+ entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');diff --git a/examples/archify-repo.html b/examples/archify-repo.htmlindex 959b8b46..e42b0240 100644--- a/examples/archify-repo.html+++ b/examples/archify-repo.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,8 +592,7 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);@@ -2759,26 +2757,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -4744,31 +4722,31 @@<!-- Legend -->- <g data-legend-bridge>- <text x="40" y="539" class="t-primary" font-size="9" font-weight="600">Legend</text>- <g data-legend-kind="external">- <rect x="40" y="544" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="60" y="552" class="t-muted" font-size="8">External</text>+ <g data-legend data-legend-bridge>+ <text x="40" y="532" class="t-primary" font-size="10" font-weight="600">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="82">+ <rect x="40" y="544" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>+ <text x="61" y="552" class="t-muted" font-size="8">Frontend</text></g>- <g data-legend-kind="frontend">- <rect x="144" y="544" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="164" y="552" class="t-muted" font-size="8">Frontend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="144" data-legend-baseline="552" data-legend-width="77">+ <rect x="144" y="544" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="165" y="552" class="t-muted" font-size="8">Backend</text></g>- <g data-legend-kind="messagebus">- <rect x="248" y="544" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="268" y="552" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="243" data-legend-baseline="552" data-legend-width="67">+ <rect x="243" y="544" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="264" y="552" class="t-muted" font-size="8">Cloud</text></g>- <g data-legend-kind="security">- <rect x="367" y="544" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="387" y="552" class="t-muted" font-size="8">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="332" data-legend-baseline="552" data-legend-width="82">+ <rect x="332" y="544" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="353" y="552" class="t-muted" font-size="8">Security</text></g>- <g data-legend-kind="backend">- <rect x="471" y="544" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="491" y="552" class="t-muted" font-size="8">Backend</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="436" data-legend-baseline="552" data-legend-width="97">+ <rect x="436" y="544" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>+ <text x="457" y="552" class="t-muted" font-size="8">Message bus</text></g>- <g data-legend-kind="cloud">- <rect x="570" y="544" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="590" y="552" class="t-muted" font-size="8">Cloud</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="555" data-legend-baseline="552" data-legend-width="82">+ <rect x="555" y="544" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>+ <text x="576" y="552" class="t-muted" font-size="8">External</text></g></g></svg>@@ -4991,10 +4969,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Architecture diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5475,6 +5449,7 @@});Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-kind]'), function (el) {el.removeAttribute('data-legend-kind');+ el.removeAttribute('data-legend-label');el.removeAttribute('data-legend-count');el.removeAttribute('data-legend-zero');el.removeAttribute('data-legend-selected');@@ -12433,7 +12408,8 @@}entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');- entry.setAttribute('aria-label', 'Inspect ' + fact.label + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;+ entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.htmlindex fbae7bdb..83a4ff4b 100644--- a/examples/checkout-platform-delta.html+++ b/examples/checkout-platform-delta.html@@ -13,7 +13,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -360,7 +360,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -556,8 +555,7 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);@@ -2722,26 +2720,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -4430,7 +4408,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -4777,7 +4755,6 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -4973,8 +4950,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);@@ -7139,26 +7115,6 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -9086,27 +9042,27 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!</g><!-- Legend -->- <g data-legend-bridge>- <text x="40" y="519" class="t-primary" font-size="9" font-weight="600">Legend</text>- <g data-legend-kind="external">- <rect x="40" y="524" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="60" y="532" class="t-muted" font-size="8">External</text>+ <g data-legend data-legend-bridge>+ <text x="40" y="512" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="40" data-legend-baseline="532" data-legend-width="77">+ <rect x="40" y="524" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="61" y="532" class="t-muted" font-size="8">Backend</text></g>- <g data-legend-kind="database">- <rect x="144" y="524" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="164" y="532" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="139" data-legend-baseline="532" data-legend-width="82">+ <rect x="139" y="524" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="160" y="532" class="t-muted" font-size="8">Database</text></g>- <g data-legend-kind="backend">- <rect x="248" y="524" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="268" y="532" class="t-muted" font-size="8">Backend</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="243" data-legend-baseline="532" data-legend-width="67">+ <rect x="243" y="524" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="264" y="532" class="t-muted" font-size="8">Cloud</text></g>- <g data-legend-kind="cloud">- <rect x="347" y="524" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="367" y="532" class="t-muted" font-size="8">Cloud</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="332" data-legend-baseline="532" data-legend-width="97">+ <rect x="332" y="524" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>+ <text x="353" y="532" class="t-muted" font-size="8">Message bus</text></g>- <g data-legend-kind="messagebus">- <rect x="436" y="524" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="456" y="532" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="451" data-legend-baseline="532" data-legend-width="82">+ <rect x="451" y="524" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>+ <text x="472" y="532" class="t-muted" font-size="8">External</text></g></g></svg>@@ -9295,10 +9251,6 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!</div>- <!-- Footer -->- <p class="footer">- Architecture diagram &bull; Built with Archify<span class="no-print"> &bull; <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&amp;source=artifact" target="_blank" rel="noopener noreferrer">Create yours &nearr;</a> &bull; Hover to trace &bull; <kbd>R</kbd> route &bull; Click to focus &bull; <kbd>+</kbd>/<kbd>&minus;</kbd> zoom &bull; <kbd>M</kbd> radar &bull; <kbd>T</kbd> theme &bull; <kbd>E</kbd> export</span>- </p></div><script>@@ -9779,6 +9731,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!});Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-kind]'), function (el) {el.removeAttribute('data-legend-kind');+ el.removeAttribute('data-legend-label');el.removeAttribute('data-legend-count');el.removeAttribute('data-legend-zero');el.removeAttribute('data-legend-selected');@@ -16737,7 +16690,8 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!}entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');- entry.setAttribute('aria-label', 'Inspect ' + fact.label + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;+ entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -17763,31 +17717,31 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!<text class="delta-boundary-marker" data-delta-state="changed" x="788" y="236" text-anchor="middle" aria-hidden="true">~</text><!-- Legend -->- <g data-legend-bridge>- <text x="40" y="539" class="t-primary" font-size="9" font-weight="600">Legend</text>- <g data-legend-kind="external">- <rect x="40" y="544" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="60" y="552" class="t-muted" font-size="8">External</text>+ <g data-legend data-legend-bridge>+ <text x="40" y="532" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="40" data-legend-baseline="552" data-legend-width="77">+ <rect x="40" y="544" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="61" y="552" class="t-muted" font-size="8">Backend</text></g>- <g data-legend-kind="backend">- <rect x="144" y="544" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="164" y="552" class="t-muted" font-size="8">Backend</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="139" data-legend-baseline="552" data-legend-width="82">+ <rect x="139" y="544" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="160" y="552" class="t-muted" font-size="8">Database</text></g>- <g data-legend-kind="cloud">+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="243" data-legend-baseline="552" data-legend-width="67"><rect x="243" y="544" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="263" y="552" class="t-muted" font-size="8">Cloud</text>+ <text x="264" y="552" class="t-muted" font-size="8">Cloud</text></g>- <g data-legend-kind="security">+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="332" data-legend-baseline="552" data-legend-width="82"><rect x="332" y="544" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="352" y="552" class="t-muted" font-size="8">Security</text>+ <text x="353" y="552" class="t-muted" font-size="8">Security</text></g>- <g data-legend-kind="database">- <rect x="436" y="544" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="456" y="552" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="436" data-legend-baseline="552" data-legend-width="97">+ <rect x="436" y="544" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>+ <text x="457" y="552" class="t-muted" font-size="8">Message bus</text></g>- <g data-legend-kind="messagebus">- <rect x="540" y="544" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="560" y="552" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="555" data-legend-baseline="552" data-legend-width="82">+ <rect x="555" y="544" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>+ <text x="576" y="552" class="t-muted" font-size="8">External</text></g></g></svg></section><section class="canvas" data-view="head" hidden><iframe class="snapshot-frame" title="After architecture explorer" srcdoc="<!DOCTYPE html>@@ -17842,7 +17796,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -18189,7 +18143,6 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -18385,8 +18338,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);@@ -20551,26 +20503,6 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -22499,31 +22431,31 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!</g><!-- Legend -->- <g data-legend-bridge>- <text x="40" y="539" class="t-primary" font-size="9" font-weight="600">Legend</text>- <g data-legend-kind="external">- <rect x="40" y="544" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="60" y="552" class="t-muted" font-size="8">External</text>+ <g data-legend data-legend-bridge>+ <text x="40" y="532" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="40" data-legend-baseline="552" data-legend-width="77">+ <rect x="40" y="544" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="61" y="552" class="t-muted" font-size="8">Backend</text></g>- <g data-legend-kind="backend">- <rect x="144" y="544" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="164" y="552" class="t-muted" font-size="8">Backend</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="139" data-legend-baseline="552" data-legend-width="82">+ <rect x="139" y="544" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="160" y="552" class="t-muted" font-size="8">Database</text></g>- <g data-legend-kind="cloud">+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="243" data-legend-baseline="552" data-legend-width="67"><rect x="243" y="544" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="263" y="552" class="t-muted" font-size="8">Cloud</text>+ <text x="264" y="552" class="t-muted" font-size="8">Cloud</text></g>- <g data-legend-kind="security">+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="332" data-legend-baseline="552" data-legend-width="82"><rect x="332" y="544" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="352" y="552" class="t-muted" font-size="8">Security</text>+ <text x="353" y="552" class="t-muted" font-size="8">Security</text></g>- <g data-legend-kind="database">- <rect x="436" y="544" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="456" y="552" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="436" data-legend-baseline="552" data-legend-width="97">+ <rect x="436" y="544" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>+ <text x="457" y="552" class="t-muted" font-size="8">Message bus</text></g>- <g data-legend-kind="messagebus">- <rect x="540" y="544" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="560" y="552" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="555" data-legend-baseline="552" data-legend-width="82">+ <rect x="555" y="544" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>+ <text x="576" y="552" class="t-muted" font-size="8">External</text></g></g></svg>@@ -22712,10 +22644,6 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!</div>- <!-- Footer -->- <p class="footer">- Architecture diagram &bull; Built with Archify<span class="no-print"> &bull; <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&amp;source=artifact" target="_blank" rel="noopener noreferrer">Create yours &nearr;</a> &bull; Hover to trace &bull; <kbd>R</kbd> route &bull; Click to focus &bull; <kbd>+</kbd>/<kbd>&minus;</kbd> zoom &bull; <kbd>M</kbd> radar &bull; <kbd>T</kbd> theme &bull; <kbd>E</kbd> export</span>- </p></div><script>@@ -23196,6 +23124,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!});Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-kind]'), function (el) {el.removeAttribute('data-legend-kind');+ el.removeAttribute('data-legend-label');el.removeAttribute('data-legend-count');el.removeAttribute('data-legend-zero');el.removeAttribute('data-legend-selected');@@ -30154,7 +30083,8 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!}entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');- entry.setAttribute('aria-label', 'Inspect ' + fact.label + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;+ entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -31187,7 +31117,7 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!const status = document.querySelector('#review-status');const receiptNode = document.querySelector('#archify-compare-receipt');const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');- const exportCss = "\n /* ==========================================================\n THEME VARIABLES — switch by toggling [data-theme] on \u003chtml\u003e\n ========================================================== */\n :root,\n [data-theme=\"dark\"] {\n --bg: #020617;\n --grid: #1e293b;\n --text: #ffffff;\n --text-muted: #94a3b8;\n --text-dim: #475569;\n /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */\n --text-faint: #7d8da1;\n\n --panel: rgba(15, 23, 42, 0.5);\n --panel-border: #1e293b;\n --lane-fill: rgba(15, 23, 42, 0.22);\n --lane-stroke: #334155;\n\n --arrow: #64748b;\n --arrow-emphasis: #34d399;\n\n /* Opaque mask color used behind semi-transparent component fills\n so the arrows drawn underneath are properly hidden. */\n --mask: #0f172a;\n\n --frontend-fill: rgba(8, 51, 68, 0.4);\n --frontend-stroke: #22d3ee;\n --backend-fill: rgba(6, 78, 59, 0.4);\n --backend-stroke: #34d399;\n --database-fill: rgba(76, 29, 149, 0.4);\n --database-stroke: #a78bfa;\n --cloud-fill: rgba(120, 53, 15, 0.3);\n --cloud-stroke: #fbbf24;\n --security-fill: rgba(136, 19, 55, 0.4);\n --security-stroke: #fb7185;\n --messagebus-fill: rgba(251, 146, 60, 0.3);\n --messagebus-stroke:#fb923c;\n --external-fill: rgba(30, 41, 59, 0.5);\n --external-stroke: #94a3b8;\n\n --toolbar-bg: rgba(15, 23, 42, 0.8);\n --toolbar-border: #334155;\n --toolbar-text: #e2e8f0;\n --toolbar-hover: rgba(15, 23, 42, 0.95);\n --toolbar-menu-bg: #0f172a;\n }\n\n [data-theme=\"light\"] {\n --bg: #f8fafc;\n --grid: #e2e8f0;\n --text: #0f172a;\n --text-muted: #64748b;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n\n --mask: #ffffff;\n\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n\n --toolbar-bg: rgba(255, 255, 255, 0.92);\n --toolbar-border: #cbd5e1;\n --toolbar-text: #334155;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #ffffff;\n }\n\n /* ==========================================================\n SIGNAL FLOW — an opt-in, motion-forward visual preset.\n The variables also target a standalone exported SVG, whose\n root carries data-preset and data-theme directly.\n ========================================================== */\n [data-preset=\"signal-flow\"][data-theme=\"dark\"] {\n --bg: #030711;\n --grid: #15233a;\n --panel: rgba(6, 14, 28, 0.78);\n --panel-border: #1d3350;\n --lane-fill: rgba(9, 22, 40, 0.5);\n --lane-stroke: #2c4564;\n --text: #f5fbff;\n --text-muted: #9eb0c7;\n --text-dim: #52667f;\n --text-faint: #7890ad;\n --mask: #07101e;\n --frontend-fill: rgba(6, 182, 212, 0.14);\n --frontend-stroke: #67e8f9;\n --backend-fill: rgba(16, 185, 129, 0.14);\n --backend-stroke: #5eead4;\n --database-fill: rgba(139, 92, 246, 0.16);\n --database-stroke: #c4b5fd;\n --cloud-fill: rgba(245, 158, 11, 0.13);\n --cloud-stroke: #fcd34d;\n --security-fill: rgba(244, 63, 94, 0.13);\n --security-stroke: #fda4af;\n --messagebus-fill: rgba(249, 115, 22, 0.13);\n --messagebus-stroke: #fdba74;\n --external-fill: rgba(71, 85, 105, 0.24);\n --external-stroke: #a5b4c7;\n --arrow: #7890ad;\n --arrow-emphasis: #2dd4bf;\n --toolbar-bg: rgba(7, 16, 30, 0.86);\n --toolbar-border: #29415f;\n --toolbar-menu-bg: #07101e;\n }\n\n [data-preset=\"signal-flow\"][data-theme=\"light\"] {\n --bg: #f4f9fc;\n --grid: #d4e5ee;\n --panel: rgba(255, 255, 255, 0.82);\n --panel-border: #bfd5e2;\n --lane-fill: rgba(232, 243, 248, 0.62);\n --lane-stroke: #a9c5d5;\n --text: #102638;\n --text-muted: #587287;\n --text-dim: #8aa2b4;\n --text-faint: #668397;\n --mask: #ffffff;\n --frontend-fill: rgba(6, 182, 212, 0.09);\n --frontend-stroke: #0789a1;\n --backend-fill: rgba(5, 150, 105, 0.09);\n --backend-stroke: #087f69;\n --database-fill: rgba(124, 58, 237, 0.09);\n --database-stroke: #7254c7;\n --cloud-fill: rgba(217, 119, 6, 0.08);\n --cloud-stroke: #b9670b;\n --security-fill: rgba(225, 29, 72, 0.08);\n --security-stroke: #c53a59;\n --messagebus-fill: rgba(234, 88, 12, 0.08);\n --messagebus-stroke: #c65f27;\n --external-fill: rgba(100, 116, 139, 0.1);\n --external-stroke: #607a8c;\n --arrow: #7b97aa;\n --arrow-emphasis: #0d9488;\n }\n\n /* ==========================================================\n BLUEPRINT — a review-first drafting preset for deployment,\n infrastructure, and technical design documentation. It keeps\n the same semantic palette and geometry while trading glow for\n precise grid contrast, squared materials, and drafting marks.\n ========================================================== */\n [data-preset=\"blueprint\"][data-theme=\"dark\"] {\n --bg: #06131f;\n --grid: #17425a;\n --panel: rgba(7, 27, 43, 0.9);\n --panel-border: #27627f;\n --lane-fill: rgba(10, 43, 66, 0.36);\n --lane-stroke: #34799a;\n --text: #e3f6ff;\n --text-muted: #91b8ca;\n --text-dim: #557e92;\n --text-faint: #739caf;\n --mask: #0a2031;\n --frontend-fill: rgba(26, 157, 193, 0.14);\n --frontend-stroke: #66d9ef;\n --backend-fill: rgba(31, 155, 124, 0.13);\n --backend-stroke: #69dfbd;\n --database-fill: rgba(120, 105, 196, 0.14);\n --database-stroke: #b4a8ff;\n --cloud-fill: rgba(197, 145, 43, 0.13);\n --cloud-stroke: #ffd166;\n --security-fill: rgba(199, 76, 104, 0.13);\n --security-stroke: #ff8da1;\n --messagebus-fill: rgba(207, 112, 49, 0.13);\n --messagebus-stroke: #ffad66;\n --external-fill: rgba(84, 119, 139, 0.18);\n --external-stroke: #a7cad9;\n --arrow: #78a3b7;\n --arrow-emphasis: #64dfc1;\n --toolbar-bg: rgba(7, 28, 45, 0.92);\n --toolbar-border: #34799a;\n --toolbar-text: #d8f3ff;\n --toolbar-hover: rgba(18, 58, 83, 0.95);\n --toolbar-menu-bg: #0a2031;\n }\n\n [data-preset=\"blueprint\"][data-theme=\"light\"] {\n --bg: #edf7fa;\n --grid: #b5d5e1;\n --panel: rgba(249, 253, 255, 0.94);\n --panel-border: #78aabd;\n --lane-fill: rgba(210, 232, 240, 0.42);\n --lane-stroke: #83b2c4;\n --text: #123344;\n --text-muted: #4e7486;\n --text-dim: #86a6b4;\n --text-faint: #668c9d;\n --mask: #f9fdff;\n --frontend-fill: rgba(8, 145, 178, 0.08);\n --frontend-stroke: #087f9c;\n --backend-fill: rgba(5, 128, 101, 0.08);\n --backend-stroke: #08755f;\n --database-fill: rgba(100, 75, 180, 0.08);\n --database-stroke: #6757a8;\n --cloud-fill: rgba(181, 120, 15, 0.08);\n --cloud-stroke: #a86609;\n --security-fill: rgba(190, 48, 80, 0.07);\n --security-stroke: #b32f50;\n --messagebus-fill: rgba(196, 81, 22, 0.07);\n --messagebus-stroke: #b65120;\n --external-fill: rgba(79, 112, 128, 0.08);\n --external-stroke: #506f7e;\n --arrow: #6d93a5;\n --arrow-emphasis: #087f69;\n --toolbar-bg: rgba(247, 252, 254, 0.94);\n --toolbar-border: #8ab5c5;\n --toolbar-text: #294f61;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #f9fdff;\n }\n\n /* ==========================================================\n EDITORIAL — a warm, publication-minded preset for design\n reviews, launch notes, and documentation. The diagram keeps\n the same semantic palette and exact geometry, but trades\n software chrome for paper, ink, ruled structure, and one\n restrained vermilion accent.\n ========================================================== */\n [data-preset=\"editorial\"][data-theme=\"dark\"] {\n --bg: #181611;\n --grid: #39342a;\n --panel: rgba(35, 31, 24, 0.96);\n --panel-border: #625a4a;\n --lane-fill: rgba(52, 46, 35, 0.46);\n --lane-stroke: #726957;\n --text: #f4eddf;\n --text-muted: #b9ae9b;\n --text-dim: #776e60;\n --text-faint: #9d917e;\n --mask: #231f18;\n --frontend-fill: rgba(43, 133, 142, 0.16);\n --frontend-stroke: #7fc6c7;\n --backend-fill: rgba(63, 132, 92, 0.16);\n --backend-stroke: #8fc29e;\n --database-fill: rgba(117, 91, 141, 0.17);\n --database-stroke: #c0a4d0;\n --cloud-fill: rgba(170, 119, 49, 0.16);\n --cloud-stroke: #d8ad68;\n --security-fill: rgba(157, 69, 65, 0.17);\n --security-stroke: #df9085;\n --messagebus-fill: rgba(174, 79, 42, 0.16);\n --messagebus-stroke: #df946f;\n --external-fill: rgba(126, 115, 96, 0.18);\n --external-stroke: #b8ad99;\n --arrow: #948978;\n --arrow-emphasis: #dd6b3d;\n --toolbar-bg: rgba(35, 31, 24, 0.92);\n --toolbar-border: #625a4a;\n --toolbar-text: #eee5d5;\n --toolbar-hover: #302a20;\n --toolbar-menu-bg: #231f18;\n }\n\n [data-preset=\"editorial\"][data-theme=\"light\"] {\n --bg: #f2eee5;\n --grid: #d8d0c2;\n --panel: rgba(251, 248, 241, 0.97);\n --panel-border: #c4b9a6;\n --lane-fill: rgba(229, 221, 207, 0.42);\n --lane-stroke: #b8aa94;\n --text: #242018;\n --text-muted: #6f6658;\n --text-dim: #a09788;\n --text-faint: #817767;\n --mask: #fbf8f1;\n --frontend-fill: rgba(31, 117, 126, 0.09);\n --frontend-stroke: #287e84;\n --backend-fill: rgba(42, 119, 75, 0.09);\n --backend-stroke: #397b53;\n --database-fill: rgba(105, 75, 130, 0.09);\n --database-stroke: #765d86;\n --cloud-fill: rgba(157, 103, 31, 0.1);\n --cloud-stroke: #9a671f;\n --security-fill: rgba(153, 58, 52, 0.09);\n --security-stroke: #9e463f;\n --messagebus-fill: rgba(182, 70, 27, 0.09);\n --messagebus-stroke: #ad4b25;\n --external-fill: rgba(101, 91, 75, 0.09);\n --external-stroke: #746b5e;\n --arrow: #8a806f;\n --arrow-emphasis: #bb4c23;\n --toolbar-bg: rgba(251, 248, 241, 0.94);\n --toolbar-border: #c4b9a6;\n --toolbar-text: #40392f;\n --toolbar-hover: #fffdf8;\n --toolbar-menu-bg: #fbf8f1;\n }\n\n * { margin: 0; padding: 0; box-sizing: border-box; }\n\n body {\n font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;\n background: var(--bg);\n min-height: 100vh;\n padding: 2rem;\n color: var(--text);\n transition: background 0.2s ease, color 0.2s ease;\n }\n\n html[data-preset=\"signal-flow\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);\n background-attachment: fixed;\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);\n }\n html[data-preset=\"blueprint\"] body {\n background-image:\n linear-gradient(var(--grid) 1px, transparent 1px),\n linear-gradient(90deg, var(--grid) 1px, transparent 1px);\n background-size: 32px 32px;\n background-position: -1px -1px;\n background-attachment: fixed;\n }\n html[data-preset=\"editorial\"] body {\n background-image:\n linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),\n repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);\n background-attachment: fixed;\n }\n\n /* Gallery/embed mode keeps the generated artifact as the source of truth\n while presenting only its diagram surface inside a proof card. */\n html[data-embed=\"true\"] body {\n min-height: 0;\n padding: 0;\n overflow: hidden;\n background: var(--bg);\n background-image: none;\n }\n html[data-embed=\"true\"] .toolbar,\n html[data-embed=\"true\"] .header,\n html[data-embed=\"true\"] .cards,\n html[data-embed=\"true\"] .footer,\n html[data-embed=\"true\"] .diagram-nav,\n html[data-embed=\"true\"] .overview-map,\n html[data-embed=\"true\"] .focus-chip,\n html[data-embed=\"true\"] .route-probe,\n html[data-embed=\"true\"] .semantic-lens,\n html[data-embed=\"true\"] .diagram-guide,\n html[data-embed=\"true\"] .node-finder,\n html[data-embed=\"true\"] .guided-views { display: none !important; }\n html[data-embed=\"true\"] .container { max-width: none; }\n html[data-embed=\"true\"] .diagram-container {\n padding: 0.5rem;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n html[data-embed=\"true\"] .diagram-container svg { min-width: 0; }\n\n /* Share Chapter Cue lives in the HTML viewer layer, not inside the SVG.\n It gives one-shot embeds a title, authored note, truthful stop order,\n and lifecycle state while canonical diagram geometry stays untouched. */\n .share-chapter-cue { display: none; }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .share-chapter-cue:not([hidden]),\n html[data-embed=\"true\"][data-share-moment=\"true\"] .share-chapter-cue:not([hidden]) {\n position: absolute;\n z-index: 18;\n top: 0.85rem;\n left: 50%;\n display: grid;\n grid-template-columns: auto minmax(9rem, 13.5rem) minmax(0, 1fr);\n align-items: center;\n gap: 0.45rem 0.85rem;\n width: min(52rem, calc(100% - 1.5rem));\n min-height: 3.35rem;\n padding: 0.55rem 0.75rem 0.65rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));\n border-radius: 0.75rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--frontend-fill) 52%, transparent), transparent 45%),\n color-mix(in srgb, var(--toolbar-menu-bg) 92%, transparent);\n color: var(--toolbar-text);\n box-shadow: 0 14px 42px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.045);\n backdrop-filter: blur(16px);\n pointer-events: none;\n animation: archify-share-cue-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n html[data-preset=\"blueprint\"] .share-chapter-cue {\n border-radius: 0.2rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 46%, transparent), transparent 36%),\n var(--toolbar-menu-bg);\n box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);\n backdrop-filter: none;\n }\n html[data-preset=\"editorial\"] .share-chapter-cue {\n border-color: var(--panel-border);\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 42%),\n var(--toolbar-menu-bg);\n box-shadow: 0 10px 30px color-mix(in srgb, #000 18%, transparent);\n backdrop-filter: none;\n }\n html[data-preset=\"editorial\"] .share-chapter-state { color: var(--arrow-emphasis); }\n html[data-preset=\"editorial\"] .share-chapter-state::before {\n border-radius: 0;\n box-shadow: none;\n transform: rotate(45deg) scale(0.8);\n }\n .share-chapter-index {\n display: grid;\n gap: 0.12rem;\n min-width: 5rem;\n padding-right: 0.75rem;\n border-right: 1px solid var(--toolbar-border);\n }\n .share-chapter-state {\n display: inline-flex;\n align-items: center;\n gap: 0.36rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .share-chapter-state::before {\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: currentColor;\n box-shadow: 0 0 10px currentColor;\n content: '';\n }\n .share-chapter-cue[data-state=\"playing\"] .share-chapter-state::before {\n animation: archify-share-cue-pulse 1.15s ease-in-out infinite;\n }\n .share-chapter-count {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .share-chapter-copy { min-width: 0; }\n .share-chapter-copy strong,\n .share-chapter-copy small,\n .share-chapter-route {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .share-chapter-copy strong {\n color: var(--toolbar-text);\n font-size: 0.6875rem;\n line-height: 1.35;\n }\n .share-chapter-copy small {\n margin-top: 0.08rem;\n color: var(--text-muted);\n font-size: 0.5rem;\n line-height: 1.35;\n }\n .share-chapter-route {\n color: color-mix(in srgb, var(--frontend-stroke) 76%, var(--text-muted));\n font-size: 0.5625rem;\n font-weight: 650;\n letter-spacing: 0.015em;\n text-align: right;\n }\n .share-chapter-progress {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n height: 2px;\n overflow: hidden;\n background: color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n .share-chapter-progress span {\n display: block;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, var(--frontend-stroke), var(--database-stroke));\n box-shadow: 0 0 12px var(--frontend-stroke);\n transform: scaleX(0);\n transform-origin: left center;\n }\n\n /* Presentation Stage is a viewer-only layer: it gives the live diagram\n the viewport while keeping guided views, theme, focus, and exports real.\n Embed mode wins when both query parameters are present. */\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body {\n height: 100dvh;\n min-height: 0;\n padding: 1rem;\n overflow: hidden;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n width: 100%;\n max-width: none;\n height: calc(100dvh - 2rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n flex: none;\n min-width: 0;\n margin: 0;\n padding-right: 23rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row { margin-bottom: 0.25rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views {\n flex: none;\n margin-bottom: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n justify-content: center;\n min-height: 0;\n padding: 0.75rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .cards,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .footer { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) #btn-present {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n\n .container { max-width: 1200px; margin: 0 auto; }\n\n .header { margin-bottom: 2rem; padding-right: 29.5rem; }\n\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 29.5rem; }\n\n .header-row {\n display: flex;\n align-items: center;\n gap: 1rem;\n margin-bottom: 0.5rem;\n }\n\n .pulse-dot {\n width: 12px;\n height: 12px;\n background: var(--frontend-stroke);\n border-radius: 50%;\n animation: none;\n }\n\n html[data-motion-capable=\"true\"] .pulse-dot { animation: pulse 2s infinite; }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n h1 {\n font-size: 1.5rem;\n font-weight: 700;\n letter-spacing: -0.025em;\n }\n\n .subtitle {\n color: var(--text-muted);\n font-size: 0.875rem;\n margin-left: 1.75rem;\n }\n\n html[data-preset=\"signal-flow\"] .header-row::after {\n content: \"SIGNAL FLOW\";\n margin-left: auto;\n color: var(--frontend-stroke);\n border: 1px solid var(--frontend-stroke);\n border-radius: 999px;\n padding: 0.28rem 0.6rem;\n font-size: 0.625rem;\n letter-spacing: 0.12em;\n opacity: 0.82;\n box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);\n white-space: nowrap;\n }\n\n html[data-preset=\"blueprint\"] .pulse-dot {\n width: 10px;\n height: 10px;\n border: 1px solid var(--frontend-stroke);\n border-radius: 1px;\n background: transparent;\n box-shadow: inset 0 0 0 2px var(--bg);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n content: \"BLUEPRINT / REV 01\";\n margin-left: auto;\n padding: 0.28rem 0.55rem;\n border-top: 1px solid var(--frontend-stroke);\n border-bottom: 1px solid var(--frontend-stroke);\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.14em;\n white-space: nowrap;\n }\n\n html[data-preset=\"editorial\"] h1,\n html[data-preset=\"editorial\"] .card h3 {\n font-family: Georgia, 'Times New Roman', 'Songti SC', STSong, serif;\n letter-spacing: -0.02em;\n }\n html[data-preset=\"editorial\"] h1 { font-size: 1.72rem; font-weight: 600; }\n html[data-preset=\"editorial\"] .pulse-dot {\n width: 9px;\n height: 9px;\n border: 1px solid var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n content: \"EDITORIAL / FIELD NOTE\";\n margin-left: auto;\n padding: 0.32rem 0 0.24rem;\n border-bottom: 2px solid var(--arrow-emphasis);\n color: var(--arrow-emphasis);\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.625rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.08em;\n white-space: nowrap;\n }\n\n .diagram-container {\n background: var(--panel);\n border-radius: 1rem;\n border: 1px solid var(--panel-border);\n padding: 1.5rem;\n overflow: hidden;\n position: relative;\n }\n\n html[data-preset=\"signal-flow\"] .diagram-container {\n position: relative;\n overflow: hidden;\n background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .diagram-container {\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);\n }\n html[data-preset=\"blueprint\"] .diagram-container {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background: var(--panel);\n box-shadow:\n inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),\n 0 18px 48px rgba(0, 0, 0, 0.16);\n }\n html[data-preset=\"blueprint\"] .diagram-container::after {\n content: \"\";\n position: absolute;\n z-index: 10;\n inset: 0.7rem;\n pointer-events: none;\n background:\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;\n opacity: 0.58;\n }\n html[data-preset=\"editorial\"] .diagram-container {\n overflow: hidden;\n border-color: var(--panel-border);\n border-radius: 0.38rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),\n var(--panel);\n box-shadow:\n 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),\n 0 18px 48px color-mix(in srgb, #000 19%, transparent);\n }\n html[data-preset=\"editorial\"] .diagram-container::after {\n position: absolute;\n z-index: 10;\n top: 0.72rem;\n right: 1.25rem;\n padding: 0.2rem 0.52rem;\n border: 1px solid var(--panel-border);\n background: var(--panel);\n color: var(--arrow-emphasis);\n content: \"ARCHIFY / PLATE 04\";\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.52rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.09em;\n pointer-events: none;\n }\n html[data-embed=\"true\"][data-preset=\"editorial\"] .diagram-container::after { display: none; }\n html[data-motion-capable=\"true\"][data-preset=\"signal-flow\"][data-ambient-motion=\"running\"] .diagram-container::before {\n content: \"\";\n position: absolute;\n inset: 0;\n pointer-events: none;\n background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);\n transform: translateX(-70%);\n animation: archify-signal-scan 4.8s ease-in-out 1 both;\n }\n\n /* Motion Governor gives the reader a real static state and gives the\n strongest semantic action the only motion budget. Atmosphere resets to\n its authored base instead of freezing mid-cycle. Static artifacts never\n start a decorative pulse or scan. */\n html:not([data-motion-capable=\"true\"]) svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .pulse-dot,\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion=\"still\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-motion-owner] .pulse-dot,\n html[data-motion-owner] .diagram-container::before,\n html[data-motion-owner] svg[data-animation=\"trace\"] [data-animate],\n html[data-embed=\"true\"] .pulse-dot,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .pulse-dot,\n html[data-share-playback=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] .pulse-dot,\n html[data-document-hidden=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion-owner] .diagram-container::before,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .diagram-container::before {\n opacity: 0;\n }\n html[data-motion=\"still\"] .guided-view-progress span,\n html[data-motion=\"still\"] .guided-story-caption,\n html[data-motion=\"still\"] .story-trail-flow,\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow,\n html[data-motion=\"still\"] .route-journey-flow,\n html[data-motion=\"still\"] .semantic-lens-flow,\n html[data-motion=\"still\"] .diagram-guide,\n html[data-motion=\"still\"] [data-story-step],\n html[data-motion=\"still\"] .overview-map-live,\n html[data-motion=\"still\"] .guided-view-stop,\n html[data-motion=\"still\"] .share-chapter-cue,\n html[data-motion=\"still\"] .share-chapter-state::before,\n html[data-motion=\"still\"] .share-chapter-progress span,\n html[data-document-hidden=\"true\"] .guided-view-progress span,\n html[data-document-hidden=\"true\"] .story-trail-flow,\n html[data-document-hidden=\"true\"] .intent-trace-flow,\n html[data-document-hidden=\"true\"] .route-probe-flow,\n html[data-document-hidden=\"true\"] .route-journey-flow,\n html[data-document-hidden=\"true\"] .semantic-lens-flow,\n html[data-document-hidden=\"true\"] .diagram-guide,\n html[data-document-hidden=\"true\"] [data-story-step],\n html[data-document-hidden=\"true\"] .overview-map-live,\n html[data-document-hidden=\"true\"] .guided-view-stop,\n html[data-document-hidden=\"true\"] .share-chapter-cue,\n html[data-document-hidden=\"true\"] .share-chapter-state::before,\n html[data-document-hidden=\"true\"] .share-chapter-progress span {\n animation: none !important;\n }\n html[data-motion=\"still\"] .guided-view-progress span {\n transform: scaleX(1) !important;\n }\n html[data-motion=\"still\"] svg[data-story-playing=\"true\"] .story-trail-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.55;\n }\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n html[data-motion=\"still\"] .route-journey-overlay,\n html[data-document-hidden=\"true\"] .route-journey-overlay { display: none !important; }\n html[data-motion=\"still\"] .relationship-pulse-overlay,\n html[data-motion=\"still\"] .story-carrier-overlay,\n html[data-document-hidden=\"true\"] .story-carrier-overlay { display: none !important; }\n html[data-motion=\"still\"] .chapter-handoff-overlay { display: none !important; }\n html[data-motion=\"still\"] .chapter-handoff-anchor { animation: none !important; }\n html[data-motion=\"still\"] .guided-view-chapter,\n html[data-motion=\"still\"] svg [data-node-id],\n html[data-motion=\"still\"] svg [data-edge-from],\n html[data-motion=\"still\"] svg [data-detail],\n html[data-motion=\"still\"] svg [data-detail-anchor],\n html[data-motion=\"still\"] svg [data-legend-hit],\n html[data-motion=\"still\"] svg {\n transition: none !important;\n }\n\n svg {\n width: 100%;\n min-width: min(900px, 100%);\n display: block;\n transform-origin: 0 0;\n transition: transform 0.18s ease;\n }\n\n .diagram-container.is-camera-moving svg {\n transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-container.is-camera-transaction svg { transition: none; }\n .diagram-container.is-pannable { cursor: grab; }\n .diagram-container.is-panning { cursor: grabbing; user-select: none; }\n .diagram-container.is-panning svg { transition: none; }\n\n .diagram-nav {\n position: absolute;\n right: 1rem;\n bottom: 1rem;\n z-index: 12;\n display: inline-flex;\n align-items: center;\n padding: 0.25rem;\n gap: 0.2rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.65rem;\n background: var(--toolbar-bg);\n box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(10px);\n }\n .diagram-nav button,\n .focus-chip button,\n .guided-views button {\n border: 0;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .diagram-nav button {\n min-width: 2rem;\n height: 2rem;\n padding: 0 0.45rem;\n border-radius: 0.4rem;\n font-size: 0.75rem;\n font-weight: 600;\n }\n .diagram-nav button:hover,\n .diagram-nav button:focus-visible,\n .focus-chip button:hover,\n .focus-chip button:focus-visible,\n .guided-views button:hover,\n .guided-views button:focus-visible { background: var(--toolbar-hover); }\n .diagram-nav button:focus-visible,\n .focus-chip button:focus-visible,\n .guided-views button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .diagram-nav button:disabled { opacity: 0.38; cursor: default; }\n .diagram-nav [data-view=\"reset\"] { min-width: 3.35rem; font-size: 0.625rem; }\n .diagram-container[data-camera-indicator=\"true\"] .diagram-nav [data-view=\"reset\"] {\n min-width: 5.2rem;\n color: var(--frontend-stroke);\n }\n .diagram-nav #btn-diagram-guide[aria-expanded=\"true\"] {\n color: var(--cloud-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Radar is a deliberately simplified, viewer-only overview. It\n uses authored node bounds and the live camera viewport rather than\n cloning the canonical SVG, so IDs, filters, animation, and export state\n stay singular and deterministic. */\n .overview-map {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 12;\n width: 11.25rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n border-radius: 0.78rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .overview-map[hidden] { display: none; }\n .overview-map[data-docked=\"true\"] {\n position: fixed;\n right: var(--archify-radar-right, 1rem);\n top: var(--archify-radar-top, 1rem);\n bottom: auto;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: var(--archify-radar-left, 1rem);\n }\n html[data-preset=\"blueprint\"] .overview-map { border-radius: 0.28rem; }\n .overview-map-head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.45rem;\n min-height: 2.25rem;\n padding: 0.42rem 0.48rem 0.38rem 0.55rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);\n }\n .overview-map-live {\n width: 0.42rem;\n height: 0.42rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);\n animation: archify-radar-live 2.4s ease-out infinite;\n }\n .overview-map-copy { min-width: 0; line-height: 1.1; }\n .overview-map-copy strong {\n display: block;\n overflow: hidden;\n color: var(--frontend-stroke);\n font-size: 0.59rem;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-copy small {\n display: block;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.52rem;\n letter-spacing: 0.04em;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-close {\n width: 1.55rem;\n height: 1.55rem;\n padding: 0;\n border: 0;\n border-radius: 0.34rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.9rem;\n cursor: pointer;\n }\n .overview-map-close:hover,\n .overview-map-close:focus-visible { background: var(--toolbar-hover); }\n .overview-map-close:focus-visible,\n .overview-map-surface:focus-visible,\n .overview-map-node:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .overview-map-surface {\n position: relative;\n height: 7rem;\n margin: 0.42rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);\n border-radius: 0.42rem;\n background:\n linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n color-mix(in srgb, var(--bg) 86%, transparent);\n background-size: 12px 12px;\n cursor: crosshair;\n touch-action: none;\n }\n html[data-preset=\"blueprint\"] .overview-map-surface { border-radius: 0.1rem; }\n .overview-map-surface \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n transform: none !important;\n transition: none !important;\n display: block;\n overflow: visible;\n }\n .overview-map-node {\n fill: var(--backend-stroke);\n fill-opacity: 0.52;\n stroke: var(--backend-stroke);\n stroke-opacity: 0.86;\n vector-effect: non-scaling-stroke;\n cursor: pointer;\n transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;\n }\n .overview-map-node[data-kind=\"frontend\"],\n .overview-map-node[data-kind=\"start\"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }\n .overview-map-node[data-kind=\"database\"],\n .overview-map-node[data-kind=\"success\"] { fill: var(--database-stroke); stroke: var(--database-stroke); }\n .overview-map-node[data-kind=\"cloud\"],\n .overview-map-node[data-kind=\"waiting\"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }\n .overview-map-node[data-kind=\"messagebus\"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }\n .overview-map-node[data-kind=\"security\"],\n .overview-map-node[data-kind=\"decision\"],\n .overview-map-node[data-kind=\"failure\"] { fill: var(--security-stroke); stroke: var(--security-stroke); }\n .overview-map-node[data-kind=\"external\"],\n .overview-map-node[data-kind=\"neutral\"] { fill: var(--external-stroke); stroke: var(--external-stroke); }\n .overview-map-node[data-radar-active=\"true\"],\n .overview-map-node:hover,\n .overview-map-node:focus-visible {\n fill-opacity: 0.92;\n stroke-width: 2.2;\n filter: drop-shadow(0 0 3px currentColor);\n }\n .overview-map-viewport {\n fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));\n }\n .overview-map-hint {\n display: flex;\n justify-content: space-between;\n gap: 0.5rem;\n padding: 0 0.52rem 0.46rem;\n color: var(--text-faint);\n font-size: 0.49rem;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n }\n .diagram-nav #btn-overview-map[aria-expanded=\"true\"] {\n color: var(--frontend-stroke);\n background: var(--toolbar-hover);\n }\n .diagram-nav #btn-route-probe[aria-pressed=\"true\"] {\n color: var(--backend-stroke);\n background: var(--toolbar-hover);\n }\n .diagram-nav #btn-semantic-lens[aria-expanded=\"true\"],\n .diagram-nav #btn-semantic-lens[aria-pressed=\"true\"] {\n color: var(--database-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Lens turns the compiled node-kind palette into an analytical\n legend. One kind reveals its real traffic; two kinds compare only their\n direct authored relationships. Geometry and the canonical SVG stay put. */\n .semantic-lens {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 24;\n width: min(20rem, calc(100% - 2rem));\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);\n backdrop-filter: blur(18px);\n animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .semantic-lens[hidden] { display: none; }\n .semantic-lens[data-dock-side=\"left\"] { left: 1rem; right: auto; }\n .semantic-lens[data-dock-side=\"right\"] { left: auto; right: 1rem; }\n html[data-preset=\"blueprint\"] .semantic-lens { border-radius: 0.28rem; }\n .semantic-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.72rem 0.78rem 0.62rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .semantic-lens-eyebrow {\n display: block;\n color: var(--database-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .semantic-lens-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.82rem;\n letter-spacing: -0.02em;\n }\n .semantic-lens-close {\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .semantic-lens-close:hover,\n .semantic-lens-close:focus-visible { background: var(--toolbar-hover); }\n .semantic-lens-instruction {\n margin: 0;\n padding: 0.52rem 0.78rem 0.48rem;\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-kinds {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.3rem;\n max-height: min(15rem, 40vh);\n padding: 0 0.5rem 0.5rem;\n overflow-y: auto;\n scrollbar-width: thin;\n }\n .semantic-lens-kind {\n --lens-color: var(--external-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.42rem;\n min-width: 0;\n min-height: 2.15rem;\n padding: 0.35rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));\n border-radius: 0.45rem;\n background: color-mix(in srgb, var(--panel) 76%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;\n }\n html[data-preset=\"blueprint\"] .semantic-lens-kind { border-radius: 0.12rem; }\n .semantic-lens-kind[data-kind=\"frontend\"],\n .semantic-lens-kind[data-kind=\"start\"] { --lens-color: var(--frontend-stroke); }\n .semantic-lens-kind[data-kind=\"backend\"],\n .semantic-lens-kind[data-kind=\"active\"] { --lens-color: var(--backend-stroke); }\n .semantic-lens-kind[data-kind=\"database\"],\n .semantic-lens-kind[data-kind=\"success\"] { --lens-color: var(--database-stroke); }\n .semantic-lens-kind[data-kind=\"cloud\"],\n .semantic-lens-kind[data-kind=\"waiting\"] { --lens-color: var(--cloud-stroke); }\n .semantic-lens-kind[data-kind=\"messagebus\"] { --lens-color: var(--messagebus-stroke); }\n .semantic-lens-kind[data-kind=\"security\"],\n .semantic-lens-kind[data-kind=\"decision\"],\n .semantic-lens-kind[data-kind=\"failure\"] { --lens-color: var(--security-stroke); }\n .semantic-lens-kind:hover,\n .semantic-lens-kind:focus-visible,\n .semantic-lens-kind[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));\n background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));\n }\n .semantic-lens-kind:focus-visible,\n .semantic-lens-close:focus-visible,\n .semantic-lens-actions button:focus-visible {\n outline: 2px solid var(--database-stroke);\n outline-offset: 1px;\n }\n .semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }\n .semantic-lens-swatch {\n width: 0.48rem;\n height: 0.48rem;\n border-radius: 50%;\n background: var(--lens-color);\n box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);\n }\n .semantic-lens-kind strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.61rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-lens-kind em {\n color: var(--lens-color);\n font-size: 0.54rem;\n font-style: normal;\n font-weight: 800;\n }\n .semantic-lens-status {\n min-height: 2.5rem;\n margin: 0;\n padding: 0.55rem 0.78rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }\n .semantic-lens-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.28rem;\n padding: 0 0.62rem 0.62rem;\n }\n .semantic-lens-actions button {\n min-height: 1.8rem;\n padding: 0.28rem 0.48rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.56rem;\n cursor: pointer;\n }\n .semantic-lens-actions button:hover { background: var(--toolbar-hover); }\n .semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }\n @keyframes archify-lens-in {\n from { opacity: 0; transform: translateY(5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n /* Route Probe answers a reader question over the compiled semantic graph:\n choose two stable nodes and reveal the shortest authored directed route.\n The receipt and signal live entirely in the viewer layer. */\n .route-probe {\n position: absolute;\n left: 1rem;\n bottom: 1rem;\n z-index: 12;\n width: min(46rem, calc(100% - 25rem));\n min-width: 18rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .route-probe[hidden] { display: none; }\n .route-probe[data-route-dock=\"top\"] {\n top: 1rem;\n bottom: auto;\n }\n html[data-preset=\"blueprint\"] .route-probe { border-radius: 0.25rem; }\n .route-probe-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.65rem;\n padding: 0.52rem 0.58rem 0.44rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);\n }\n .route-probe-copy { min-width: 0; }\n .route-probe-eyebrow {\n display: block;\n color: var(--backend-stroke);\n font-size: 0.48rem;\n font-weight: 800;\n letter-spacing: 0.15em;\n text-transform: uppercase;\n }\n .route-probe-title {\n display: block;\n margin-top: 0.14rem;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.72rem;\n line-height: 1.25;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .route-probe-actions { display: flex; gap: 0.2rem; }\n .route-probe button {\n min-height: 1.55rem;\n padding: 0.25rem 0.42rem;\n border: 0;\n border-radius: 0.36rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .route-probe button:hover,\n .route-probe button:focus-visible { background: var(--toolbar-hover); }\n .route-probe button:focus-visible {\n outline: 2px solid var(--backend-stroke);\n outline-offset: 1px;\n }\n .route-probe-copy-link { color: var(--frontend-stroke) !important; }\n .route-probe-find { color: var(--backend-stroke) !important; }\n .route-probe-copy-link[hidden] { display: none; }\n .route-probe-find[hidden] { display: none; }\n .route-probe-path {\n display: flex;\n align-items: center;\n min-height: 2.2rem;\n padding: 0.42rem 0.58rem 0.24rem;\n overflow-x: auto;\n scrollbar-width: thin;\n white-space: nowrap;\n }\n .route-probe-node,\n .route-probe button.route-probe-node {\n flex: none;\n max-width: 9.5rem;\n overflow: hidden;\n min-height: 1.75rem !important;\n padding: 0.22rem 0.38rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));\n border-radius: 999px;\n background: color-mix(in srgb, var(--backend-fill) 52%, transparent);\n color: var(--text);\n font-size: 0.56rem;\n font-weight: 700;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .route-probe-node[data-endpoint=\"start\"] {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n .route-probe-node[data-endpoint=\"end\"] {\n border-color: var(--security-stroke);\n color: var(--security-stroke);\n }\n .route-probe-node[data-route-journey-state=\"past\"] { opacity: 0.66; }\n .route-probe-node[data-route-journey-state=\"future\"] { opacity: 0.48; }\n .route-probe-node[aria-current=\"step\"] {\n border-color: var(--backend-stroke);\n background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));\n color: var(--text);\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--backend-stroke) 42%, transparent), 0 0 14px color-mix(in srgb, var(--backend-stroke) 34%, transparent);\n opacity: 1;\n }\n html[data-preset=\"blueprint\"] .route-probe-node[aria-current=\"step\"] {\n border-style: double;\n border-width: 3px;\n border-radius: 0.2rem;\n box-shadow: none;\n }\n .route-probe-arrow {\n flex: none;\n padding: 0 0.28rem;\n color: var(--text-faint);\n font-size: 0.65rem;\n }\n .route-probe-placeholder {\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.03em;\n }\n .route-probe-status {\n display: block;\n min-height: 1.45rem;\n padding: 0.08rem 0.58rem 0.44rem;\n color: var(--text-faint);\n font-size: 0.52rem;\n line-height: 1.35;\n }\n .route-journey-controls {\n display: grid;\n grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);\n justify-content: start;\n gap: 0.22rem;\n padding: 0.08rem 0.58rem 0.28rem;\n }\n .route-journey-controls[hidden] { display: none; }\n .route-journey-controls button {\n min-height: 1.8rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);\n font-size: 0.54rem;\n font-weight: 700;\n }\n .route-journey-controls button:disabled {\n cursor: default;\n opacity: 0.34;\n }\n .route-journey-play { color: var(--backend-stroke) !important; }\n .route-journey-overview { color: var(--frontend-stroke) !important; }\n .route-journey-controls[data-playing=\"true\"] .route-journey-play {\n border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 62%, transparent);\n }\n .route-probe[data-state=\"error\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));\n }\n .route-probe[data-state=\"error\"] .route-probe-status { color: var(--security-stroke); }\n\n .focus-chip {\n position: absolute;\n left: 1rem;\n top: 1rem;\n z-index: 12;\n display: block;\n width: min(22rem, calc(100% - 13rem));\n max-width: calc(100% - 13rem);\n overflow: hidden;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.6875rem;\n }\n .focus-chip[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .focus-chip { border-radius: 0.3rem; }\n .focus-chip button {\n flex: none;\n padding: 0.3rem 0.45rem;\n border-radius: 0.35rem;\n font-size: 0.625rem;\n }\n .relationship-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.7rem 0.75rem 0.65rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);\n }\n .relationship-lens-copy { min-width: 0; }\n .relationship-lens-actions {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 0.18rem;\n }\n .relationship-lens-actions button { white-space: nowrap; }\n .relationship-lens-actions #btn-focus-clear {\n display: grid;\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n place-items: center;\n color: var(--text-muted);\n font-size: 1rem;\n line-height: 1;\n }\n .relationship-lens-actions #btn-focus-clear:hover,\n .relationship-lens-actions #btn-focus-clear:focus-visible {\n background: var(--toolbar-hover);\n color: var(--text);\n }\n .relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }\n .relationship-lens-actions #btn-focus-relations { display: none; }\n .relationship-lens-eyebrow {\n display: block;\n margin-bottom: 0.18rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .relationship-lens-title {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.8rem;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail {\n display: block;\n margin-top: 0.12rem;\n overflow: hidden;\n color: var(--text-muted);\n font-size: 0.625rem;\n line-height: 1.4;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail[hidden] { display: none; }\n .semantic-passport-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 0.24rem;\n margin-top: 0.42rem;\n }\n .semantic-passport-meta span,\n .semantic-passport-meta code {\n max-width: 100%;\n overflow: hidden;\n padding: 0.14rem 0.34rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);\n border-radius: 999px;\n background: color-mix(in srgb, var(--panel) 68%, transparent);\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n letter-spacing: 0.04em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-meta [data-passport=\"kind\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-weight: 800;\n text-transform: uppercase;\n }\n .semantic-passport-meta [data-passport=\"tag\"] { color: var(--cloud-stroke); }\n .semantic-passport-meta [hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-meta span,\n html[data-preset=\"blueprint\"] .semantic-passport-meta code { border-radius: 0.1rem; }\n .semantic-passport-evidence {\n margin-top: 0.52rem;\n padding: 0.5rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));\n }\n .semantic-passport-evidence[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-evidence { border-radius: 0.18rem; }\n .semantic-passport-evidence-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.55rem;\n margin-bottom: 0.35rem;\n }\n .semantic-passport-evidence-status {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n color: var(--backend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .semantic-passport-evidence-status::before {\n content: '';\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);\n }\n .semantic-passport-repository {\n min-width: 0;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-repository:hover,\n .semantic-passport-repository:focus-visible { color: var(--backend-stroke); }\n .semantic-passport-evidence-links { display: grid; gap: 0.22rem; }\n .semantic-passport-source {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.15rem 0.45rem;\n align-items: center;\n padding: 0.34rem 0.4rem;\n border: 1px solid transparent;\n border-radius: 0.38rem;\n color: var(--text-muted);\n text-decoration: none;\n }\n .semantic-passport-source:hover,\n .semantic-passport-source:focus-visible {\n border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);\n background: color-mix(in srgb, var(--backend-fill) 32%, transparent);\n color: var(--text);\n }\n .semantic-passport-source strong {\n overflow: hidden;\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-source code {\n color: var(--backend-stroke);\n font: inherit;\n font-size: 0.5rem;\n }\n .semantic-passport-source small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-summary {\n display: block;\n margin-top: 0.12rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n .semantic-passport-reach {\n display: grid;\n gap: 0.28rem;\n margin-top: 0.52rem;\n padding-top: 0.48rem;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);\n }\n .semantic-passport-reach[hidden] { display: none; }\n .semantic-passport-reach-label {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n }\n .semantic-passport-reach-actions {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 0.25rem;\n }\n .semantic-passport-reach-actions button {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n min-width: 0;\n min-height: 2rem;\n padding: 0.32rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--panel) 70%, transparent);\n color: var(--text-muted);\n text-align: left;\n }\n .semantic-passport-reach-actions button:hover:not(:disabled),\n .semantic-passport-reach-actions button:focus-visible {\n border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));\n color: var(--text);\n }\n .semantic-passport-reach-actions button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .semantic-passport-reach-actions button:disabled {\n cursor: default;\n opacity: 0.5;\n }\n .semantic-passport-reach-actions button[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);\n color: var(--text);\n }\n #btn-reach-upstream {\n --reach-color: var(--database-stroke);\n --reach-fill: var(--database-fill);\n }\n #btn-reach-downstream {\n --reach-color: var(--backend-stroke);\n --reach-fill: var(--backend-fill);\n }\n .semantic-passport-reach-actions strong {\n color: var(--reach-color, var(--frontend-stroke));\n font-size: 0.625rem;\n }\n .semantic-passport-reach-status {\n color: var(--text-faint);\n font-size: 0.525rem;\n line-height: 1.4;\n }\n .semantic-passport-reach-status[hidden] { display: none; }\n .relationship-lens-list {\n max-height: min(18rem, 46vh);\n overflow: auto;\n padding: 0.4rem;\n scrollbar-width: thin;\n scrollbar-color: var(--frontend-stroke) transparent;\n }\n .relationship-lens-list::-webkit-scrollbar { width: 4px; }\n .relationship-lens-list::-webkit-scrollbar-thumb {\n border-radius: 999px;\n background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);\n }\n .relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }\n .relationship-lens-group-title {\n display: block;\n padding: 0.24rem 0.38rem 0.16rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .relationship-lens-row {\n display: grid;\n grid-template-columns: 2.1rem minmax(0, 1fr);\n gap: 0.06rem 0.45rem;\n width: 100%;\n padding: 0.45rem 0.5rem !important;\n text-align: left;\n }\n .relationship-lens-row:hover,\n .relationship-lens-row:focus-visible,\n .relationship-lens-row[data-preview-active=\"true\"] {\n background: var(--toolbar-hover);\n box-shadow: inset 2px 0 0 var(--frontend-stroke);\n }\n .relationship-lens-row:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .relationship-lens-direction {\n grid-row: 1 / 3;\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n }\n .relationship-lens-row[data-direction=\"in\"] .relationship-lens-direction { color: var(--database-stroke); }\n .relationship-lens-row[data-direction=\"loop\"] .relationship-lens-direction { color: var(--security-stroke); }\n .relationship-lens-row strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.6875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-row small {\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-empty {\n margin: 0;\n padding: 0.75rem;\n color: var(--text-faint);\n font-size: 0.625rem;\n text-align: center;\n }\n\n /* Diagram Guide keeps the artifact's growing reader vocabulary\n discoverable without widening the permanent control bar. It derives\n honest counts at runtime and delegates every action to an existing\n production interaction instead of creating a second command system. */\n .diagram-guide {\n position: absolute;\n top: 1rem;\n right: 1rem;\n z-index: 26;\n width: min(32rem, calc(100% - 2rem));\n max-height: min(42rem, calc(100% - 2rem));\n overflow: auto;\n border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(18px);\n animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-guide[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .diagram-guide { border-radius: 0.28rem; }\n .diagram-guide-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 1rem;\n padding: 0.82rem 0.9rem 0.68rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .diagram-guide-eyebrow {\n display: block;\n color: var(--cloud-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .diagram-guide-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.86rem;\n letter-spacing: -0.02em;\n }\n .diagram-guide-close {\n width: 1.8rem;\n height: 1.8rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .diagram-guide-close:hover,\n .diagram-guide-close:focus-visible { background: var(--toolbar-hover); }\n .diagram-guide-stats {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n padding: 0.54rem 0.9rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.025em;\n }\n .diagram-guide-stats::before {\n content: '';\n width: 0.42rem;\n height: 0.42rem;\n flex: none;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);\n }\n .diagram-guide-actions {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.38rem;\n padding: 0.62rem;\n }\n .diagram-guide-action {\n --guide-accent: var(--frontend-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n min-height: 4.15rem;\n padding: 0.55rem 0.58rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;\n }\n .diagram-guide-action[data-guide-action=\"route\"] { --guide-accent: var(--backend-stroke); }\n .diagram-guide-action[data-guide-action=\"map\"] { --guide-accent: var(--database-stroke); }\n .diagram-guide-action[data-guide-action=\"lens\"] { --guide-accent: var(--messagebus-stroke); }\n .diagram-guide-action[data-guide-action=\"story\"] { --guide-accent: var(--security-stroke); }\n .diagram-guide-action[data-guide-action=\"present\"] {\n --guide-accent: var(--cloud-stroke);\n }\n .diagram-guide-action:hover,\n .diagram-guide-action:focus-visible {\n border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));\n background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));\n transform: translateY(-1px);\n }\n .diagram-guide-action:focus-visible,\n .diagram-guide-close:focus-visible {\n outline: 2px solid var(--cloud-stroke);\n outline-offset: 1px;\n }\n .diagram-guide-action:disabled {\n opacity: 0.42;\n cursor: default;\n transform: none;\n }\n .diagram-guide-index {\n display: grid;\n place-items: center;\n width: 1.65rem;\n height: 1.65rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));\n border-radius: 0.35rem;\n color: var(--guide-accent);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.06em;\n }\n .diagram-guide-action-copy { min-width: 0; }\n .diagram-guide-action strong {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.66rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-action small {\n display: -webkit-box;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n line-height: 1.35;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n }\n .diagram-guide kbd {\n align-self: start;\n min-width: 1.45rem;\n padding: 0.12rem 0.3rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n text-align: center;\n }\n .diagram-guide-shortcuts {\n display: flex;\n flex-wrap: wrap;\n gap: 0.34rem 0.62rem;\n padding: 0.58rem 0.9rem 0.68rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.5rem;\n }\n .diagram-guide-shortcuts span {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n white-space: nowrap;\n }\n .diagram-guide-feedback {\n min-height: 1rem;\n margin: -0.18rem 0.9rem 0.62rem;\n color: var(--security-stroke);\n font-size: 0.5rem;\n }\n .diagram-guide-feedback:empty { display: none; }\n @keyframes archify-guide-in {\n from { opacity: 0; transform: translateY(-5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n .node-finder {\n position: absolute;\n top: 1rem;\n left: 1rem;\n z-index: 24;\n display: flex;\n flex-direction: column;\n width: min(22rem, calc(100% - 2rem));\n max-height: calc(100% - 2rem);\n overflow: hidden;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(16px);\n }\n .node-finder[hidden] { display: none; }\n .node-finder[data-context=\"route-source\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));\n }\n .node-finder[data-context=\"route-target\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));\n }\n html[data-preset=\"blueprint\"] .node-finder { border-radius: 0.3rem; }\n .node-finder-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.7rem 0.8rem 0.45rem;\n }\n .node-finder-head strong {\n color: var(--text);\n font-size: 0.6875rem;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-source\"] .node-finder-head strong { color: var(--frontend-stroke); }\n .node-finder[data-context=\"route-target\"] .node-finder-head strong { color: var(--security-stroke); }\n .node-finder-close {\n width: 1.75rem;\n height: 1.75rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .node-finder-close:hover,\n .node-finder-close:focus-visible { background: var(--toolbar-hover); }\n .node-finder-close:focus-visible,\n .node-finder-result:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .node-finder-search {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n margin: 0 0.55rem 0.55rem;\n padding: 0 0.7rem;\n min-height: 2.6rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n transition: border-color 160ms ease-out, box-shadow 160ms ease-out;\n }\n html[data-preset=\"blueprint\"] .node-finder-search { border-radius: 0.18rem; }\n .node-finder-search \u003e span { color: var(--frontend-stroke); font-size: 0.875rem; }\n .node-finder-search:focus-within {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);\n }\n .node-finder-input {\n appearance: none;\n width: 100%;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n font-size: 0.75rem;\n }\n .node-finder-input:focus-visible { outline: none; }\n .node-finder-input::placeholder { color: var(--text-faint); }\n .node-finder kbd {\n padding: 0.1rem 0.32rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5625rem;\n }\n .node-finder-results {\n display: grid;\n flex: 1 1 auto;\n gap: 0;\n min-height: 0;\n max-height: min(18rem, 48vh);\n margin: 0 0.55rem 0.45rem;\n padding: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 54%, transparent);\n scroll-padding-block: 0.25rem;\n scrollbar-width: thin;\n }\n html[data-preset=\"blueprint\"] .node-finder-results { border-radius: 0.18rem; }\n .node-finder-result {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem 0.75rem;\n width: 100%;\n min-height: 3.25rem;\n padding: 0.58rem 0.65rem;\n border: 0;\n border-radius: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color 160ms ease-out;\n }\n .node-finder-result:not(:last-child) {\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);\n }\n .node-finder-result:hover,\n .node-finder-result:focus-visible {\n position: relative;\n z-index: 1;\n background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));\n }\n .node-finder-result strong {\n overflow: hidden;\n font-size: 0.75rem;\n line-height: 1.25;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n letter-spacing: 0.015em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result em {\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.625rem;\n font-style: normal;\n }\n .node-finder[data-context^=\"route-\"] .node-finder-result em {\n padding: 0.1rem 0.3rem;\n border: 1px solid color-mix(in srgb, currentColor 52%, transparent);\n border-radius: 999px;\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-target\"] .node-finder-result em { color: var(--security-stroke); }\n .node-finder-empty {\n padding: 1.1rem 0.75rem 1.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n text-align: center;\n }\n .node-finder-status {\n margin: 0;\n padding: 0.1rem 0.8rem 0.65rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n\n .guided-views {\n display: grid;\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem auto;\n align-items: stretch;\n gap: 0.35rem;\n min-width: 0;\n margin: 0 0 0.75rem;\n padding: 0.35rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-bg);\n background: linear-gradient(120deg, var(--toolbar-bg), color-mix(in srgb, var(--toolbar-bg) 82%, var(--frontend-fill)));\n box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);\n backdrop-filter: blur(12px);\n }\n .guided-views[hidden] { display: none; }\n\n html[data-preset=\"blueprint\"] .guided-views {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 36%, transparent), transparent 24%),\n var(--toolbar-bg);\n box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);\n }\n html[data-preset=\"blueprint\"] .guided-views button { border-radius: 0.2rem; }\n html[data-preset=\"blueprint\"] .guided-view-progress { border-radius: 0; }\n html[data-preset=\"blueprint\"] .guided-view-progress span { border-radius: 0; }\n .guided-views button {\n min-width: 0;\n padding: 0.45rem 0.6rem;\n border-radius: 0.55rem;\n font-size: 0.75rem;\n }\n .guided-views \u003e #guided-view-prev,\n .guided-views \u003e #guided-view-next { min-width: 2.75rem; min-height: 2.75rem; }\n .guided-views button:disabled { opacity: 0.3; cursor: default; }\n .guided-view-copy {\n min-width: 0;\n padding: 0.2rem 0.5rem;\n border-left: 1px solid var(--toolbar-border);\n overflow: hidden;\n }\n .guided-view-meta {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-height: 1rem;\n margin-bottom: 0.12rem;\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .guided-view-handoff {\n box-sizing: border-box;\n height: 1rem;\n min-width: 0;\n max-width: 15rem;\n overflow: hidden;\n padding: 0 0.38rem;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 46%, transparent);\n border-radius: 999px;\n color: var(--toolbar-text);\n background: color-mix(in srgb, var(--frontend-fill) 44%, transparent);\n font-size: 0.5rem;\n line-height: calc(1rem - 2px);\n letter-spacing: 0.06em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-view-handoff[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .guided-view-handoff { border-radius: 0.15rem; }\n .chapter-handoff-overlay { pointer-events: none; }\n .chapter-handoff-anchor {\n fill: color-mix(in srgb, var(--frontend-fill) 10%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n stroke-dasharray: 4 4;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n animation: archify-chapter-anchor 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"stay\"] { opacity: 1; }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"enter\"] { opacity: 0.78; }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"leave\"] { opacity: 0.26; }\n @keyframes archify-chapter-anchor {\n 0% { opacity: 0.35; stroke-dashoffset: 8; }\n 45% { opacity: 1; }\n 100% { opacity: 0.72; stroke-dashoffset: 0; }\n }\n .guided-view-progress {\n width: 3.5rem;\n height: 2px;\n overflow: hidden;\n border-radius: 999px;\n background: var(--toolbar-border);\n }\n .guided-view-progress span {\n display: block;\n width: 100%;\n height: 100%;\n border-radius: inherit;\n background: var(--frontend-stroke);\n transform: scaleX(0);\n transform-origin: left center;\n }\n .guided-view-copy strong,\n .guided-view-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .guided-view-copy strong { color: var(--toolbar-text); font-size: 0.75rem; line-height: 1.35; }\n .guided-view-copy small { margin-top: 0; color: var(--text-muted); font-size: 0.625rem; line-height: 1.35; }\n .guided-story-caption {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n gap: 0.12rem 0.55rem;\n align-items: center;\n min-width: 0;\n margin-top: 0.18rem;\n padding: 0.3rem 0.5rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.58rem;\n background: color-mix(in srgb, var(--frontend-fill) 26%, transparent);\n animation: archify-story-caption-in 140ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n .guided-story-caption[hidden] { display: none; }\n .guided-story-caption-index {\n grid-row: 1 / span 2;\n align-self: stretch;\n display: inline-grid;\n min-width: 3.3rem;\n place-items: center;\n padding-right: 0.52rem;\n border-right: 1px solid color-mix(in srgb, var(--frontend-stroke) 28%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .guided-story-caption strong,\n .guided-story-caption small {\n display: block;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-story-caption strong { color: var(--toolbar-text); font-size: 0.6875rem; line-height: 1.3; }\n .guided-story-caption small { color: var(--text-muted); font-size: 0.5625rem; line-height: 1.35; }\n .guided-story-caption-next {\n grid-column: 3;\n grid-row: 1 / span 2;\n display: grid;\n min-width: 6.4rem;\n max-width: 9.5rem;\n align-self: stretch;\n align-content: center;\n padding-left: 0.58rem;\n border-left: 1px solid color-mix(in srgb, var(--frontend-stroke) 22%, var(--toolbar-border));\n }\n .guided-story-caption-next[hidden] { display: none; }\n .guided-story-caption-next small {\n color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--text-muted));\n font-weight: 800;\n letter-spacing: 0.09em;\n text-transform: uppercase;\n }\n .guided-story-caption-next strong { color: var(--text-muted); font-weight: 700; }\n html[data-preset=\"blueprint\"] .guided-story-caption { border-radius: 0.2rem; }\n .guided-views[data-story-beat] .guided-view-copy \u003e #guided-view-label,\n .guided-views[data-story-beat] .guided-view-copy \u003e #guided-view-note { display: none; }\n @keyframes archify-story-caption-in {\n from { opacity: 0; transform: translateY(3px); }\n to { opacity: 1; transform: translateY(0); }\n }\n .guided-view-trail {\n display: flex;\n align-items: center;\n gap: 0.28rem;\n min-width: 0;\n min-height: 1.7rem;\n margin-top: 0;\n padding: 0;\n overflow-x: auto;\n color: var(--text-faint);\n overscroll-behavior-x: contain;\n touch-action: pan-x;\n scrollbar-width: none;\n white-space: nowrap;\n }\n .guided-view-trail[hidden] { display: none; }\n .guided-view-trail::-webkit-scrollbar { display: none; }\n .guided-view-trail .guided-view-stop {\n appearance: none;\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 0.28rem;\n min-height: 1.5rem;\n padding: 0.1rem 0.3rem 0.1rem 0.18rem;\n border: 1px solid transparent;\n border-radius: 999px;\n background: transparent;\n color: var(--text-muted);\n cursor: pointer;\n font-family: inherit;\n font-size: 0.5625rem;\n font-weight: 650;\n letter-spacing: 0.02em;\n line-height: 1;\n transition: background 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;\n }\n .guided-view-stop:hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 36%, transparent);\n background: color-mix(in srgb, var(--frontend-fill) 34%, transparent);\n }\n .guided-view-stop:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .guided-view-stop:disabled { cursor: wait; }\n .guided-view-stop::before {\n display: inline-grid;\n width: 1rem;\n height: 1rem;\n place-items: center;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 54%, var(--toolbar-border));\n border-radius: 50%;\n background: color-mix(in srgb, var(--frontend-fill) 58%, var(--toolbar-bg));\n color: var(--frontend-stroke);\n content: attr(data-story-number);\n font-size: 0.5rem;\n line-height: 1;\n }\n .guided-view-stop + .guided-view-stop::after {\n order: -1;\n color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--text-faint));\n content: '\\00b7';\n font-size: 0.65rem;\n }\n .guided-view-stop[data-story-link=\"forward\"]::after { content: '\\2192'; }\n .guided-view-stop[data-story-link=\"reverse\"]::after { content: '\\2190'; }\n .guided-view-stop[data-story-link=\"multiple\"]::after { content: '\\21c4'; }\n .guided-view-stop[data-story-beat-state=\"pending\"] { opacity: 0.38; }\n .guided-view-stop[data-story-beat-state=\"next\"] {\n border-style: dashed;\n border-color: color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));\n color: color-mix(in srgb, var(--toolbar-text) 68%, var(--text-muted));\n opacity: 0.58;\n }\n .guided-view-stop[data-story-beat-state=\"past\"] { color: var(--text-muted); opacity: 0.76; }\n .guided-view-stop[data-story-beat-state=\"active\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--frontend-fill) 42%, transparent);\n color: var(--toolbar-text);\n font-weight: 800;\n opacity: 1;\n }\n .guided-view-stop[data-story-beat-state=\"active\"]::before {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 54%, transparent);\n }\n html[data-preset=\"blueprint\"] .guided-view-stop,\n html[data-preset=\"blueprint\"] .guided-view-stop::before { border-radius: 0.1rem; }\n html[data-preset=\"blueprint\"] .guided-view-stop[data-story-beat-state=\"active\"]::before { box-shadow: none; }\n .guided-view-actions { display: flex; align-items: stretch; gap: 0.2rem; }\n .guided-view-actions button { white-space: nowrap; }\n .guided-view-play {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.38rem;\n min-width: 6.25rem !important;\n color: var(--frontend-stroke) !important;\n font-size: 0.625rem !important;\n }\n .guided-view-play[aria-pressed=\"true\"] { background: var(--toolbar-hover); }\n .guided-view-all { min-width: 3.25rem !important; color: var(--text-muted) !important; font-size: 0.625rem !important; }\n .guided-view-beat-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.3rem;\n min-width: 5.4rem !important;\n min-height: 1.5rem;\n color: var(--text-muted) !important;\n font-size: 0.5625rem !important;\n letter-spacing: 0.025em;\n transition: background 140ms ease, border-color 140ms ease, color 140ms ease;\n }\n .guided-view-beat-link:not(:disabled):hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n color: var(--frontend-stroke) !important;\n }\n .guided-view-beat-link[data-copy-state=\"copied\"] {\n border-color: color-mix(in srgb, var(--backend-stroke) 58%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 46%, transparent);\n color: var(--backend-stroke) !important;\n }\n .guided-view-index {\n grid-column: 1 / -1;\n min-width: 0;\n padding: 0.28rem 0.12rem 0.08rem;\n overflow: hidden;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n @media (min-width: 721px) {\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-index,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-beat-link,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-all,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-trail,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-copy \u003e #guided-view-label,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-copy \u003e #guided-view-note { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-story-caption { margin-top: 0.08rem; }\n }\n .guided-view-chapters {\n display: flex;\n gap: 0.28rem;\n min-width: 0;\n margin: 0;\n padding: 0.08rem 0.05rem 0.2rem;\n overflow-x: auto;\n list-style: none;\n scroll-padding-inline: 0.05rem;\n scroll-snap-type: x proximity;\n scrollbar-width: none;\n }\n .guided-view-chapters::-webkit-scrollbar { display: none; }\n .guided-view-chapters li {\n display: flex;\n flex: 1 1 0;\n min-width: 9.5rem;\n scroll-snap-align: center;\n }\n .guided-view-chapter {\n position: relative;\n display: grid !important;\n grid-template-columns: 1.55rem minmax(0, 1fr) auto;\n align-items: center;\n width: 100%;\n min-height: 2.75rem;\n padding: 0.36rem 0.48rem !important;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent) !important;\n border-radius: 0.48rem !important;\n background: color-mix(in srgb, var(--toolbar-bg) 88%, transparent) !important;\n color: var(--text-muted) !important;\n text-align: left;\n transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;\n }\n .guided-view-chapter:hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--toolbar-border)) !important;\n background: color-mix(in srgb, var(--frontend-fill) 42%, var(--toolbar-bg)) !important;\n }\n .guided-view-chapter:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .guided-view-chapter-index {\n display: inline-grid;\n width: 1.32rem;\n height: 1.32rem;\n place-items: center;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 48%, var(--toolbar-border));\n border-radius: 50%;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.03em;\n }\n .guided-view-chapter-title {\n min-width: 0;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.625rem;\n font-weight: 700;\n line-height: 1.3;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-view-chapter-count {\n grid-column: 3;\n grid-row: 1;\n margin-left: 0.38rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-style: normal;\n font-weight: 650;\n white-space: nowrap;\n }\n .guided-view-chapter-delta {\n display: inline-flex;\n grid-column: 3;\n grid-row: 1;\n align-items: center;\n gap: 0.22rem;\n margin-left: 0.38rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 750;\n letter-spacing: 0.01em;\n white-space: nowrap;\n }\n .guided-view-chapter-delta[hidden] { display: none; }\n .guided-view-chapter-delta [data-delta-kind=\"stay\"] { color: var(--text-muted); }\n .guided-view-chapter-delta [data-delta-kind=\"enter\"] { color: var(--frontend-stroke); }\n .guided-view-chapter-delta [data-delta-kind=\"leave\"] { color: var(--security-stroke); }\n .guided-view-chapter[data-preview-active=\"true\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border)) !important;\n background: color-mix(in srgb, var(--frontend-fill) 54%, var(--toolbar-bg)) !important;\n }\n .guided-view-chapter[data-chapter-position=\"current\"] {\n border: 2px solid var(--frontend-stroke) !important;\n padding: calc(0.36rem - 1px) calc(0.48rem - 1px) !important;\n box-shadow: inset 3px 0 0 var(--frontend-stroke);\n color: var(--toolbar-text) !important;\n }\n .guided-view-chapter[data-chapter-position=\"current\"] .guided-view-chapter-index {\n background: var(--frontend-stroke);\n color: var(--bg);\n }\n .guided-view-chapter[data-chapter-position=\"before\"] {\n border-style: solid !important;\n opacity: 0.72;\n }\n .guided-view-chapter[data-chapter-position=\"after\"] { border-style: dashed !important; }\n html[data-preset=\"signal-flow\"] .guided-view-chapter[data-chapter-position=\"current\"] {\n box-shadow: inset 3px 0 0 var(--frontend-stroke), 0 0 18px color-mix(in srgb, var(--frontend-stroke) 18%, transparent);\n }\n html[data-preset=\"blueprint\"] .guided-view-chapter,\n html[data-preset=\"blueprint\"] .guided-view-chapter-index { border-radius: 0.12rem !important; }\n\n /* Story Shelf — keep every authored chapter and the Play action visible,\n but do not spend a second row on unavailable director controls before\n the reader enters a chapter. Existing data-active-view state expands\n the full guided surface without a new toggle or stored preference. */\n .guided-views[data-active-view=\"all\"] {\n grid-template-columns: minmax(11rem, .72fr) auto minmax(0, 2fr);\n align-items: center;\n padding: 0.28rem 0.35rem;\n }\n .guided-views[data-active-view=\"all\"] \u003e #guided-view-prev,\n .guided-views[data-active-view=\"all\"] \u003e #guided-view-next,\n .guided-views[data-active-view=\"all\"] .guided-view-beat-link,\n .guided-views[data-active-view=\"all\"] .guided-view-all { display: none; }\n .guided-views[data-active-view=\"all\"] .guided-view-copy {\n grid-column: 1;\n grid-row: 1;\n padding: 0.1rem 0.55rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-copy \u003e #guided-view-note { display: none; }\n .guided-views[data-active-view=\"all\"] .guided-view-actions {\n display: block;\n grid-column: 2;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-play { min-height: 2.75rem; }\n .guided-views[data-active-view=\"all\"] .guided-view-index {\n grid-column: 3;\n grid-row: 1;\n padding: 0 0.08rem 0 0.42rem;\n border-top: 0;\n border-left: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n .guided-views[data-active-view=\"all\"] .guided-view-chapters {\n gap: 0.3rem;\n padding: 0;\n }\n\n .cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));\n gap: 1rem;\n margin-top: 2rem;\n }\n\n .card {\n background: var(--panel);\n border-radius: 0.75rem;\n border: 1px solid var(--panel-border);\n padding: 1.25rem;\n }\n\n html[data-preset=\"signal-flow\"] .card {\n background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .card {\n background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);\n }\n\n html[data-preset=\"blueprint\"] .card {\n position: relative;\n border-color: var(--panel-border);\n border-radius: 0.3rem;\n background: var(--panel);\n box-shadow: none;\n }\n html[data-preset=\"blueprint\"] .card::before {\n content: \"\";\n position: absolute;\n top: -1px;\n left: 1rem;\n width: 2.5rem;\n border-top: 2px solid var(--frontend-stroke);\n }\n\n html[data-preset=\"editorial\"] .card {\n position: relative;\n border-radius: 0.28rem;\n background: var(--panel);\n box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);\n }\n html[data-preset=\"editorial\"] .card::before {\n position: absolute;\n top: -1px;\n left: 1.25rem;\n width: 3.25rem;\n border-top: 3px solid var(--arrow-emphasis);\n content: \"\";\n }\n html[data-preset=\"editorial\"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }\n\n .card-header {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin-bottom: 0.75rem;\n }\n\n .card-dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n\n .card-dot.cyan { background: var(--frontend-stroke); }\n .card-dot.emerald { background: var(--backend-stroke); }\n .card-dot.violet { background: var(--database-stroke); }\n .card-dot.amber { background: var(--cloud-stroke); }\n .card-dot.rose { background: var(--security-stroke); }\n .card-dot.orange { background: var(--messagebus-stroke); }\n .card-dot.slate { background: var(--external-stroke); }\n\n .card h3 { font-size: 0.875rem; font-weight: 600; color: var(--text); }\n\n .card ul {\n list-style: none;\n color: var(--text-muted);\n font-size: 0.75rem;\n }\n\n .card li { margin-bottom: 0.375rem; }\n\n .footer {\n text-align: center;\n margin-top: 1.5rem;\n color: var(--text-faint);\n font-size: 0.75rem;\n }\n\n .footer .artifact-start-link {\n color: var(--text-faint);\n text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);\n text-underline-offset: 0.22em;\n transition: color 0.15s ease, text-decoration-color 0.15s ease;\n }\n\n .footer .artifact-start-link:hover,\n .footer .artifact-start-link:focus-visible {\n color: var(--frontend-stroke);\n text-decoration-color: currentColor;\n }\n\n /* ==========================================================\n Print stylesheet — hide interactive controls, force light,\n drop the grid so the diagram doesn't waste ink, use landscape\n so wide diagrams fit, pack summary cards into 2 columns to\n avoid an orphan card on a trailing page.\n ========================================================== */\n @page { size: landscape; margin: 1.5cm; }\n\n @media print {\n /* Force the FULL light palette — including component fills/strokes and\n lane/arrow colors — so printing from dark theme doesn't put neon\n strokes and translucent dark fills on white paper. */\n :root, [data-theme=\"dark\"], [data-theme=\"light\"] {\n --bg: #ffffff;\n --grid: transparent;\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --text: #0f172a;\n --text-muted: #475569;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n --mask: #ffffff;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n }\n body { background: #ffffff !important; padding: 0; }\n .container { max-width: none; }\n .toolbar, .diagram-nav, .focus-chip, .guided-views, .archify-toast, .no-print { display: none !important; }\n .chapter-handoff-overlay { display: none !important; }\n svg [data-node-id][data-chapter-role] { opacity: 1 !important; }\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] { opacity: 1 !important; filter: none !important; }\n .diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }\n html[data-preset=\"signal-flow\"] .diagram-container,\n html[data-preset=\"signal-flow\"] .card { background: #ffffff; }\n .cards { grid-template-columns: 1fr 1fr; }\n /* Ensure elements break sensibly across pages */\n .card { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container svg [data-detail] {\n opacity: 1 !important;\n pointer-events: auto !important;\n }\n .diagram-container svg [data-detail-anchor] { transform: none !important; }\n .diagram-container svg[data-lens-active] [data-node-id],\n .diagram-container svg[data-lens-active] [data-edge-from],\n .diagram-container svg[data-legend-preview-active] [data-node-id],\n .diagram-container svg[data-legend-preview-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n }\n [data-legend-bridge-runtime] { display: none !important; }\n .semantic-lens-overlay { display: none !important; }\n .relationship-hit-overlay { display: none !important; }\n .relationship-pulse-overlay { display: none !important; }\n .route-probe-overlay, .route-journey-overlay { display: none !important; }\n .story-trail-overlay,\n .story-carrier-overlay { display: none !important; }\n .diagram-container svg[data-focus-active] [data-node-id],\n .diagram-container svg[data-focus-active] [data-edge-from],\n .diagram-container svg[data-reach-active] [data-node-id],\n .diagram-container svg[data-reach-active] [data-edge-from],\n .diagram-container svg[data-story-beat] [data-story-step],\n .diagram-container svg[data-story-beat] [data-edge-from][data-story-beat-step],\n .diagram-container svg[data-route-active] [data-node-id],\n .diagram-container svg[data-route-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n animation: none !important;\n }\n h1, .subtitle { color: #0f172a; }\n }\n\n /* ==========================================================\n TOOLBAR (theme toggle + export menu)\n ========================================================== */\n .toolbar {\n position: fixed;\n top: 1rem;\n right: 1rem;\n display: flex;\n gap: 0.5rem;\n z-index: 100;\n }\n .toolbar button {\n background: var(--toolbar-bg);\n color: var(--toolbar-text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 0.875rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n font-weight: 500;\n cursor: pointer;\n backdrop-filter: blur(8px);\n transition: background 0.15s, border-color 0.15s;\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n min-height: 2.75rem;\n }\n .toolbar button:hover {\n background: var(--toolbar-hover);\n border-color: var(--arrow);\n }\n .toolbar button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 2px;\n }\n .toolbar #btn-motion[hidden] { display: none !important; }\n .toolbar #btn-motion { min-width: 4.4rem; }\n .toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }\n .toolbar .preset-wrap { position: relative; }\n .toolbar #btn-preset { min-width: 5.4rem; }\n .preset-control-mark {\n width: 0.58rem;\n height: 0.58rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.2rem;\n background: color-mix(in srgb, var(--frontend-stroke) 28%, transparent);\n transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s;\n }\n #btn-preset[data-preset-option=\"signal-flow\"] .preset-control-mark {\n border-radius: 50%;\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 78%, transparent);\n }\n #btn-preset[data-preset-option=\"blueprint\"] .preset-control-mark {\n border-radius: 0.06rem;\n background: transparent;\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);\n transform: rotate(45deg) scale(0.84);\n }\n #btn-preset[data-preset-option=\"editorial\"] .preset-control-mark {\n border-color: var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg) scale(0.72);\n }\n .toolbar .preset-menu {\n position: absolute;\n top: calc(100% + 0.375rem);\n right: 0;\n display: none;\n width: 16.5rem;\n padding: 0.4rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.5rem;\n background: var(--toolbar-menu-bg);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n }\n .toolbar .preset-menu.open { display: block; }\n .preset-menu-heading {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.42rem 0.6rem 0.55rem;\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.13em;\n text-transform: uppercase;\n }\n .preset-menu-heading span:last-child {\n font-size: 0.52rem;\n letter-spacing: 0.04em;\n text-transform: none;\n }\n .toolbar .preset-option {\n display: grid;\n grid-template-columns: 2rem minmax(0, 1fr) 1rem;\n align-items: center;\n gap: 0.68rem;\n width: 100%;\n min-height: 3.35rem;\n padding: 0.5rem 0.62rem;\n border: 0;\n border-radius: 0.34rem;\n background: transparent;\n text-align: left;\n }\n .toolbar .preset-option:hover,\n .toolbar .preset-option:focus-visible { background: var(--toolbar-hover); }\n .preset-option-swatch {\n position: relative;\n width: 2rem;\n height: 1.55rem;\n overflow: hidden;\n border: 1px solid #64748b;\n border-radius: 0.24rem;\n background: #0f172a;\n box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);\n }\n .preset-option-swatch::before,\n .preset-option-swatch::after { position: absolute; content: \"\"; }\n .preset-option-swatch.classic::before {\n top: 0.42rem;\n right: 0.35rem;\n bottom: 0.42rem;\n left: 0.35rem;\n border: 1px solid #22d3ee;\n border-radius: 0.16rem;\n background: rgba(34, 211, 238, 0.14);\n }\n .preset-option-swatch.signal-flow {\n border-color: #29415f;\n background: linear-gradient(135deg, #07101e 10%, #10243c 100%);\n }\n .preset-option-swatch.signal-flow::before {\n top: 50%;\n right: 0.2rem;\n left: 0.2rem;\n height: 1px;\n background: linear-gradient(90deg, #67e8f9, #c4b5fd);\n box-shadow: 0 0 8px #67e8f9;\n }\n .preset-option-swatch.signal-flow::after {\n top: calc(50% - 0.13rem);\n right: 0.28rem;\n width: 0.26rem;\n height: 0.26rem;\n border-radius: 50%;\n background: #67e8f9;\n box-shadow: 0 0 7px #67e8f9;\n }\n .preset-option-swatch.blueprint {\n border-color: #34799a;\n border-radius: 0.08rem;\n background-color: #0a2031;\n background-image:\n linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),\n linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);\n background-size: 0.42rem 0.42rem;\n }\n .preset-option-swatch.blueprint::before {\n top: 0.34rem;\n right: 0.38rem;\n bottom: 0.34rem;\n left: 0.38rem;\n border: 1px solid #66d9ef;\n }\n .preset-option-swatch.editorial {\n border-color: #b8aa94;\n border-radius: 0.08rem;\n background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);\n }\n .preset-option-swatch.editorial::before {\n top: 0;\n bottom: 0;\n left: 0.42rem;\n width: 1px;\n background: #c9502d;\n opacity: 0.72;\n }\n .preset-option-swatch.editorial::after {\n top: 0.52rem;\n right: 0.45rem;\n width: 0.38rem;\n height: 0.38rem;\n background: #c9502d;\n transform: rotate(45deg);\n }\n .preset-option-copy { min-width: 0; }\n .preset-option-copy strong,\n .preset-option-copy small { display: block; }\n .preset-option-copy strong {\n color: var(--toolbar-text);\n font-size: 0.72rem;\n font-weight: 600;\n }\n .preset-option-copy small {\n margin-top: 0.16rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.57rem;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .preset-option-check {\n color: var(--frontend-stroke);\n font-size: 0.78rem;\n opacity: 0;\n }\n .preset-option[aria-checked=\"true\"] .preset-option-check { opacity: 1; }\n html[data-preset=\"editorial\"] .toolbar button,\n html[data-preset=\"editorial\"] .preset-menu,\n html[data-preset=\"editorial\"] .export-menu,\n html[data-preset=\"editorial\"] .overview-map,\n html[data-preset=\"editorial\"] .semantic-lens,\n html[data-preset=\"editorial\"] .route-probe,\n html[data-preset=\"editorial\"] .focus-chip,\n html[data-preset=\"editorial\"] .diagram-guide,\n html[data-preset=\"editorial\"] .node-finder,\n html[data-preset=\"editorial\"] .guided-views,\n html[data-preset=\"editorial\"] .share-chapter-cue {\n border-radius: 0.3rem;\n }\n .motion-control-dot {\n width: 0.46rem;\n height: 0.46rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 50%;\n background: var(--frontend-stroke);\n box-shadow: 0 0 9px color-mix(in srgb, var(--frontend-stroke) 72%, transparent);\n }\n #btn-motion[aria-pressed=\"false\"] .motion-control-dot {\n background: transparent;\n box-shadow: none;\n }\n .toolbar .export-wrap { position: relative; }\n .toolbar .export-menu {\n position: absolute;\n top: calc(100% + 0.375rem);\n right: 0;\n background: var(--toolbar-menu-bg);\n border: 1px solid var(--toolbar-border);\n border-radius: 0.5rem;\n padding: 0.375rem;\n min-width: 160px;\n display: none;\n flex-direction: column;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .toolbar .export-menu.open { display: flex; }\n .toolbar .export-menu button {\n background: transparent;\n border: 0;\n justify-content: space-between;\n width: 100%;\n text-align: left;\n padding: 0.5rem 0.75rem;\n }\n .toolbar .export-menu button[hidden] { display: none; }\n .toolbar .export-menu button:hover {\n background: var(--toolbar-hover);\n }\n .toolbar .export-menu .hint {\n color: var(--text-faint);\n font-size: 0.625rem;\n }\n .toolbar .export-menu hr {\n border: 0;\n border-top: 1px solid var(--toolbar-border);\n margin: 0.25rem 0.375rem;\n opacity: 0.5;\n }\n\n /* Toast — brief feedback for actions like \"copied\" */\n .archify-toast {\n position: fixed;\n top: 1rem;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: var(--toolbar-menu-bg);\n color: var(--text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n opacity: 0;\n transition: opacity 0.2s, transform 0.2s;\n z-index: 200;\n pointer-events: none;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .archify-toast.show {\n opacity: 1;\n transform: translateX(-50%) translateY(0);\n }\n\n @media (max-width: 720px) {\n body { padding: 1rem; }\n .toolbar .preset-menu {\n position: fixed;\n top: 4.5rem;\n right: 1rem;\n left: 1rem;\n width: auto;\n }\n .toolbar {\n position: relative;\n justify-content: flex-end;\n margin-bottom: 1rem;\n }\n .header { margin-bottom: 1.25rem; padding-right: 0; }\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 0; }\n .header-row {\n gap: 0.75rem;\n align-items: flex-start;\n }\n html[data-preset=\"signal-flow\"] .header-row,\n html[data-preset=\"blueprint\"] .header-row,\n html[data-preset=\"editorial\"] .header-row { flex-wrap: wrap; }\n html[data-preset=\"signal-flow\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n h1 {\n font-size: 1.25rem;\n line-height: 1.25;\n }\n .subtitle {\n margin-left: 0;\n font-size: 0.8125rem;\n line-height: 1.55;\n }\n .diagram-container {\n padding: 0.75rem;\n border-radius: 0.75rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container {\n padding: 0.75rem 0.75rem 4.25rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] {\n overflow-x: auto;\n overflow-y: hidden;\n overscroll-behavior-x: contain;\n scrollbar-width: thin;\n scroll-behavior: smooth;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n min-width: 720px;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-nav,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .overview-map,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .focus-chip,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .route-probe,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .semantic-lens,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-guide,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .node-finder {\n transform: translateX(var(--archify-scroll-x, 0px));\n }\n .diagram-nav { right: 0.5rem; bottom: 0.5rem; }\n .overview-map {\n right: 0.5rem;\n bottom: 3.7rem;\n width: min(10.25rem, calc(100% - 1rem));\n }\n .overview-map[data-docked=\"true\"] {\n right: 0.5rem;\n top: var(--archify-radar-top, 0.5rem);\n bottom: auto;\n transform: none !important;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: 0.5rem;\n }\n .overview-map-surface { height: 4rem; }\n .semantic-lens {\n right: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n max-height: calc(100% - 4.2rem);\n }\n .semantic-lens[data-dock-side] { left: auto; right: 0.5rem; }\n .semantic-lens-kinds { max-height: min(12rem, 34vh); }\n .focus-chip {\n left: 0.5rem;\n top: 0.5rem;\n width: calc(100% - 1rem);\n max-width: none;\n }\n .relationship-lens-list { max-height: min(12rem, 38vh); }\n .relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-head { border-bottom-color: transparent; }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-list { display: none; }\n /* While a mobile reader previews one relationship, turn the full Lens\n into a compact peek card. This keeps the exact source and target on\n canvas instead of covering them with a long, scrollable list. */\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-list {\n max-height: none;\n padding: 0.35rem;\n overflow: hidden;\n }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group { margin: 0; }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group-title,\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-row:not([data-preview-active=\"true\"]) {\n display: none;\n }\n .node-finder {\n top: 0.5rem;\n left: 0.5rem;\n width: min(22rem, calc(100% - 1rem));\n max-height: calc(100% - 1rem);\n }\n .diagram-guide {\n top: 0.5rem;\n right: 0.5rem;\n left: 0.5rem;\n width: auto;\n max-height: calc(100% - 1rem);\n }\n .diagram-guide-head { padding: 0.62rem 0.7rem 0.52rem; }\n .diagram-guide-stats { padding: 0.42rem 0.7rem; }\n .diagram-guide-actions {\n grid-template-columns: 1fr;\n gap: 0.28rem;\n padding: 0.42rem;\n }\n .diagram-guide-action {\n min-height: 3.1rem;\n padding: 0.42rem 0.48rem;\n }\n .diagram-guide-action small {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-index {\n width: 1.5rem;\n height: 1.5rem;\n }\n .diagram-guide-shortcuts { padding: 0.46rem 0.7rem 0.52rem; }\n .diagram-guide-action[data-guide-action=\"present\"] { grid-column: auto; }\n .route-probe[data-guide-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .node-finder-results { max-height: min(16rem, 38vh); }\n .route-probe {\n left: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n min-width: 0;\n }\n .route-probe[data-route-dock=\"top\"] {\n top: 0.5rem;\n bottom: auto;\n }\n .route-probe[data-finder-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .route-probe-head { padding: 0.45rem 0.48rem 0.38rem; }\n .route-probe-path { padding: 0.35rem 0.48rem 0.2rem; }\n .route-probe-node { min-height: 2.75rem !important; }\n .route-journey-controls {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem minmax(0, 1fr);\n padding: 0.08rem 0.48rem 0.32rem;\n }\n .route-journey-controls button { min-height: 2.75rem; }\n .route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }\n .route-probe-node { max-width: 7.5rem; }\n .guided-views {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;\n gap: 0.2rem;\n padding: 0.25rem;\n }\n .guided-view-actions {\n grid-column: 1 / -1;\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n .guided-views \u003e #guided-view-prev,\n .guided-views \u003e #guided-view-next {\n align-self: center;\n height: 2.75rem;\n }\n .guided-view-play,\n .guided-view-all,\n .guided-view-beat-link { min-height: 2.75rem; }\n .guided-view-copy small { white-space: normal; }\n .guided-story-caption { padding: 0.32rem 0.45rem; }\n .guided-story-caption-index { min-width: 2.9rem; padding-right: 0.42rem; }\n .guided-story-caption strong,\n .guided-story-caption small { white-space: normal; }\n .guided-story-caption-next { display: none; }\n .guided-view-trail { min-height: 2rem; }\n .guided-view-trail .guided-view-stop {\n min-height: 2rem;\n padding: 0.22rem 0.42rem 0.22rem 0.28rem;\n }\n .guided-view-handoff { max-width: min(9rem, 32vw); }\n .guided-view-index { padding-top: 0.35rem; }\n .guided-view-chapters {\n gap: 0.35rem;\n scroll-padding-inline: 0.2rem;\n }\n .guided-view-chapters li {\n flex: 0 0 min(14rem, 78vw);\n min-width: 0;\n }\n .guided-view-chapter { min-height: 2.75rem; }\n .guided-views[data-active-view=\"all\"] {\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem;\n padding: 0.25rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-copy {\n grid-column: 1;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-actions {\n grid-column: 2;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-play {\n min-width: 6rem !important;\n min-height: 2.75rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-index {\n grid-column: 1 / -1;\n grid-row: 2;\n padding: 0.3rem 0.08rem 0;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n border-left: 0;\n }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .share-chapter-cue:not([hidden]),\n html[data-embed=\"true\"][data-share-moment=\"true\"] .share-chapter-cue:not([hidden]) {\n top: 0.5rem;\n grid-template-columns: auto minmax(0, 1fr);\n gap: 0.28rem 0.55rem;\n width: calc(100% - 1rem);\n min-height: 0;\n padding: 0.45rem 0.55rem 0.55rem;\n }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n html[data-embed=\"true\"][data-share-moment=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n .share-chapter-index {\n min-width: 4.4rem;\n padding-right: 0.5rem;\n }\n .share-chapter-copy small { font-size: 0.46rem; }\n .share-chapter-route {\n grid-column: 1 / -1;\n font-size: 0.5rem;\n text-align: left;\n }\n .cards {\n grid-template-columns: 1fr;\n margin-top: 1rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body { padding: 0.5rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n gap: 0.5rem;\n height: calc(100dvh - 1rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar {\n position: fixed;\n top: 0.5rem;\n right: 0.5rem;\n margin: 0;\n gap: 0.25rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar button {\n min-height: 2.75rem;\n padding: 0.42rem 0.58rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n min-height: 2.25rem;\n padding: 3.5rem 0 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row {\n min-height: 2.25rem;\n margin: 0;\n align-items: center;\n flex-wrap: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row::after,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .pulse-dot,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) h1 {\n flex: 1 1 auto;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n font-size: 0.875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views {\n padding: 0.2rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-view-copy small { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-story-caption small { display: block; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n width: 720px;\n height: auto;\n min-width: 720px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .guided-story-caption { animation: none !important; }\n }\n\n @media (max-width: 360px) {\n .toolbar { gap: 0.25rem; }\n .toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }\n .toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }\n #theme-label, #preset-label, #present-label { display: none; }\n .guided-view-handoff { max-width: 6.5rem; }\n }\n\n /* ==========================================================\n SVG SEMANTIC CLASSES — use these instead of inline fill/stroke\n ========================================================== */\n .c-grid { stroke: var(--grid); fill: none; }\n .c-mask { fill: var(--mask); stroke: none; }\n\n .c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }\n .c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }\n .c-database { fill: var(--database-fill); stroke: var(--database-stroke); }\n .c-cloud { fill: var(--cloud-fill); stroke: var(--cloud-stroke); }\n .c-security { fill: var(--security-fill); stroke: var(--security-stroke); }\n .c-messagebus { fill: var(--messagebus-fill); stroke: var(--messagebus-stroke); }\n .c-external { fill: var(--external-fill); stroke: var(--external-stroke); }\n\n /* Text helpers */\n .t-primary { fill: var(--text); }\n .t-muted { fill: var(--text-muted); }\n .t-dim { fill: var(--text-dim); }\n .t-frontend { fill: var(--frontend-stroke); }\n .t-backend { fill: var(--backend-stroke); }\n .t-database { fill: var(--database-stroke); }\n .t-cloud { fill: var(--cloud-stroke); }\n .t-security { fill: var(--security-stroke); }\n .t-messagebus { fill: var(--messagebus-stroke); }\n .t-external { fill: var(--external-stroke); }\n\n /* Semantic Sigils are small authored role stamps, not icons from a brand\n pack and not viewer controls. Prefix selectors with svg so the canonical\n export's SVG-only stylesheet collector keeps them automatically. */\n svg .semantic-sigil {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n opacity: 0.76;\n pointer-events: none;\n }\n svg .semantic-sigil \u003e * { vector-effect: non-scaling-stroke; }\n svg .semantic-sigil .sigil-fill { fill: currentColor; stroke: none; }\n svg .s-frontend { color: var(--frontend-stroke); }\n svg .s-backend { color: var(--backend-stroke); }\n svg .s-database { color: var(--database-stroke); }\n svg .s-cloud { color: var(--cloud-stroke); }\n svg .s-security { color: var(--security-stroke); }\n svg .s-messagebus { color: var(--messagebus-stroke); }\n svg .s-external { color: var(--external-stroke); }\n\n /* Reading Depth is a viewer-only level-of-detail layer. MAP preserves the\n authored structure and primary labels, READ restores relationship labels\n and node context, and FULL restores tags and fine annotations. Semantic\n intent can reveal the relevant detail without moving any geometry. */\n svg [data-detail] { transition: opacity 160ms ease; }\n svg [data-detail-anchor] {\n transform-box: fill-box;\n transform-origin: center;\n transition: transform 160ms ease;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"context\"],\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"fine\"],\n .diagram-container[data-detail-level=\"read\"] svg [data-detail=\"fine\"] {\n opacity: 0;\n pointer-events: none;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail-anchor] {\n transform: translateY(8px);\n }\n\n /* Focus, lens, preview, route, and story states are stronger reader intent than\n the global zoom level. Reveal only their exact semantic matches. */\n svg[data-focus-active] [data-focus-match][data-detail],\n svg[data-focus-active] [data-focus-match] [data-detail],\n svg[data-reach-active] [data-reach-match][data-detail],\n svg[data-reach-active] [data-reach-match] [data-detail],\n svg[data-lens-active] [data-lens-match][data-detail],\n svg[data-lens-active] [data-lens-match] [data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match][data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match][data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],\n svg[data-route-active] [data-route-match][data-detail],\n svg[data-route-active] [data-route-match] [data-detail],\n svg[data-story-active] [data-story-step][data-detail],\n svg[data-story-active] [data-story-step] [data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview][data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],\n svg [data-node-id]:hover [data-detail],\n svg [data-node-id]:focus-visible [data-detail] {\n opacity: 1;\n pointer-events: auto;\n }\n svg[data-focus-active] [data-focus-match] [data-detail-anchor],\n svg[data-reach-active] [data-reach-match] [data-detail-anchor],\n svg[data-lens-active] [data-lens-match] [data-detail-anchor],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],\n svg[data-route-active] [data-route-match] [data-detail-anchor],\n svg[data-story-active] [data-story-step] [data-detail-anchor],\n svg [data-node-id]:hover [data-detail-anchor],\n svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }\n\n /* Arrows */\n .a-default { stroke: var(--arrow); fill: none; }\n .a-emphasis { stroke: var(--arrow-emphasis); fill: none; }\n .a-security { stroke: var(--security-stroke); fill: none; stroke-dasharray: 5,5; }\n .a-dashed { stroke: var(--database-stroke); fill: none; stroke-dasharray: 4,4; }\n\n /* Arrowhead markers reference these */\n .m-default { fill: var(--arrow); }\n .m-emphasis { fill: var(--arrow-emphasis); }\n .m-security { fill: var(--security-stroke); }\n .m-dashed { fill: var(--database-stroke); }\n\n /* Stable semantic exploration hooks emitted by every renderer. */\n svg [data-node-id] {\n cursor: pointer;\n transition: opacity 0.18s ease, filter 0.18s ease;\n }\n svg [data-edge-from] { transition: opacity 0.18s ease, filter 0.18s ease; }\n svg [data-node-id]:hover,\n svg [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n outline: none;\n }\n /* Verified Source Beacons are installed at runtime only for nodes whose\n repository evidence passed the local revision/blob/line checks. They\n live inside the owning node so every focus, route, story, and guided\n view keeps one coherent opacity state. Export serialization removes\n them before producing the canonical SVG or any derived visual. */\n .source-evidence-beacon {\n pointer-events: none;\n opacity: 0.76;\n transition: opacity 160ms ease, filter 160ms ease;\n }\n .source-evidence-beacon rect {\n fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));\n stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n .source-evidence-beacon text {\n fill: var(--backend-stroke);\n font-size: 5.5px;\n font-weight: 800;\n letter-spacing: 0.06em;\n text-anchor: middle;\n text-transform: uppercase;\n }\n svg [data-node-id]:hover .source-evidence-beacon,\n svg [data-node-id]:focus-visible .source-evidence-beacon,\n svg [data-node-id][data-focus-selected] .source-evidence-beacon {\n opacity: 1;\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"signal-flow\"] .source-evidence-beacon { opacity: 0.9; }\n svg[data-preset=\"blueprint\"] .source-evidence-beacon rect {\n rx: 0.8px;\n filter: none;\n }\n svg [data-legend-kind][role=\"button\"] { cursor: pointer; }\n svg [data-legend-kind]:focus { outline: none; }\n svg [data-legend-hit] {\n fill: transparent;\n stroke: transparent;\n stroke-width: 1.4;\n pointer-events: all;\n vector-effect: non-scaling-stroke;\n transition: stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;\n }\n svg [data-legend-count-badge] { pointer-events: none; }\n svg [data-legend-count-badge] rect {\n fill: var(--mask);\n stroke: var(--panel-border);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n svg [data-legend-count-badge] text {\n fill: var(--text-muted);\n font-size: 7px;\n font-weight: 700;\n text-anchor: middle;\n }\n svg [data-legend-kind][role=\"button\"]:hover [data-legend-hit] {\n stroke: color-mix(in srgb, var(--database-stroke) 58%, transparent);\n }\n svg [data-legend-kind][role=\"button\"]:focus-visible [data-legend-hit] {\n stroke: var(--frontend-stroke);\n stroke-width: 1.8;\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-hit] {\n stroke: var(--database-stroke);\n stroke-width: 2.2;\n stroke-dasharray: 3 2;\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-count-badge] rect {\n stroke: var(--database-stroke);\n stroke-width: 1.8;\n }\n svg [data-legend-kind][data-legend-zero] { opacity: 0.44; }\n svg[data-preset=\"signal-flow\"] [data-legend-kind][data-legend-selected] [data-legend-hit] {\n filter: drop-shadow(0 0 4px var(--database-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-legend-hit],\n svg[data-preset=\"blueprint\"] [data-legend-count-badge] rect { rx: 0; filter: none; }\n svg[data-legend-preview-active] [data-node-id],\n svg[data-legend-preview-active] [data-edge-from] { opacity: 0.11; }\n svg[data-legend-preview-active] [data-legend-preview-match] { opacity: 1; }\n svg[data-legend-preview-active] [data-legend-preview-peer] { opacity: 0.62; }\n svg[data-legend-preview-active] [data-legend-preview-selected] {\n filter: drop-shadow(0 0 8px var(--database-stroke));\n }\n svg[data-lens-active] [data-node-id],\n svg[data-lens-active] [data-edge-from] { opacity: 0.11; }\n svg[data-lens-active] [data-lens-match] { opacity: 1; }\n svg[data-lens-active] [data-lens-peer] { opacity: 0.62; }\n svg[data-lens-active] [data-lens-selected] {\n filter: drop-shadow(0 0 10px var(--database-stroke));\n }\n .semantic-lens-overlay { pointer-events: none; }\n .semantic-lens-flow {\n fill: none;\n stroke-width: 3.05;\n stroke-linecap: round;\n stroke-dasharray: 0.075 0.925;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.9;\n animation: archify-semantic-lens-flow 1.35s linear 1 both;\n animation-delay: var(--lens-flow-delay, 0s);\n }\n .semantic-lens-flow[data-direction=\"out\"],\n .semantic-lens-flow[data-direction=\"forward\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n .semantic-lens-flow[data-direction=\"in\"],\n .semantic-lens-flow[data-direction=\"reverse\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 3px var(--database-stroke));\n }\n .semantic-lens-flow[data-direction=\"within\"] {\n stroke: var(--messagebus-stroke);\n filter: drop-shadow(0 0 3px var(--messagebus-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow {\n stroke-width: 3.7;\n opacity: 1;\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"out\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"forward\"] {\n filter: drop-shadow(0 0 6px var(--frontend-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"in\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"reverse\"] {\n filter: drop-shadow(0 0 6px var(--database-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"within\"] {\n filter: drop-shadow(0 0 6px var(--messagebus-stroke));\n }\n svg[data-preset=\"blueprint\"] .semantic-lens-flow {\n stroke-width: 2.45;\n stroke-linecap: square;\n filter: none;\n opacity: 0.78;\n }\n html[data-embed=\"true\"] .semantic-lens-overlay { display: none; }\n svg[data-focus-active] [data-node-id],\n svg[data-focus-active] [data-edge-from] { opacity: 0.13; }\n svg[data-focus-active] [data-focus-match] { opacity: 1; }\n svg[data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n\n /* Authored Reachability is a bounded graph query over the relationships\n already present in the artifact. Upstream walks incoming edges;\n downstream walks outgoing edges. It never claims runtime causality and\n changes only viewer emphasis, not canonical geometry or export bytes. */\n svg[data-reach-active] [data-node-id],\n svg[data-reach-active] [data-edge-from] { opacity: 0.09; }\n svg[data-reach-active] [data-reach-match] { opacity: 1; }\n svg[data-reach-active=\"upstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--database-stroke));\n }\n svg[data-reach-active=\"downstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--backend-stroke));\n }\n svg[data-reach-active=\"upstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--database-stroke) 72%, transparent));\n }\n svg[data-reach-active=\"downstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"blueprint\"][data-reach-active] [data-reach-origin],\n svg[data-preset=\"blueprint\"][data-reach-active] [data-edge-from][data-reach-match] {\n filter: none;\n }\n\n /* Direct Relationship Explorer makes authored paths a real input surface\n without changing their visible stroke or canonical SVG. A transparent\n runtime rail supplies forgiving pointer geometry; the exact authored\n path and endpoints continue to carry every visible state. */\n .relationship-hit-overlay { pointer-events: none; }\n .relationship-hit-target { outline: none; }\n .relationship-hit-rail {\n fill: none;\n stroke: transparent;\n stroke-width: 24;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: stroke;\n cursor: pointer;\n }\n .relationship-focus-rail {\n fill: none;\n stroke: color-mix(in srgb, var(--frontend-stroke) 34%, transparent);\n stroke-width: 6;\n stroke-dasharray: 2 4;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n opacity: 0;\n }\n .relationship-hit-target:focus-visible .relationship-focus-rail {\n opacity: 1;\n }\n svg[data-preset=\"blueprint\"] .relationship-hit-target:focus-visible .relationship-focus-rail {\n stroke-linecap: square;\n filter: none;\n }\n svg[data-relationship-direct-active] [data-node-id],\n svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }\n svg[data-relationship-direct-active] [data-relationship-preview],\n svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,\n svg[data-story-active] .relationship-hit-rail,\n svg[data-route-picking] .relationship-hit-rail,\n svg[data-route-active] .relationship-hit-rail,\n svg[data-lens-active] .relationship-hit-rail,\n svg[data-chapter-preview] .relationship-hit-rail { pointer-events: none; }\n html[data-embed=\"true\"] .relationship-hit-overlay { display: none; }\n @media (hover: none), (pointer: coarse) {\n .relationship-hit-rail { stroke-width: 24; }\n }\n\n /* Relationship Preview is temporary exploration state layered on top of\n neighborhood focus. It changes emphasis only; exported geometry and the\n relationship's original solid/dashed visual language stay untouched. */\n svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }\n svg[data-relationship-preview-active] [data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-relationship-preview-active] [data-relationship-preview] {\n filter: drop-shadow(0 0 5px var(--arrow-emphasis));\n }\n svg[data-relationship-preview-active] [data-relationship-preview] path,\n svg[data-relationship-preview-active] path[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] line,\n svg[data-relationship-preview-active] line[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] polyline,\n svg[data-relationship-preview-active] polyline[data-relationship-preview] {\n stroke-width: 2.75;\n }\n svg[data-relationship-preview-active] [data-relationship-preview-source] {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 7px var(--database-stroke));\n }\n .relationship-pulse-overlay { pointer-events: none; }\n .relationship-flow-pulse {\n fill: none;\n stroke: var(--arrow-emphasis);\n stroke-width: 3.35;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 4px var(--arrow-emphasis));\n animation: archify-relationship-pulse 1.2s linear 1 both;\n }\n svg[data-preset=\"signal-flow\"] .relationship-flow-pulse {\n stroke: var(--frontend-stroke);\n stroke-width: 3.85;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"] .relationship-flow-pulse {\n stroke-width: 2.5;\n stroke-linecap: square;\n filter: none;\n }\n svg[data-preset=\"editorial\"] .relationship-flow-pulse {\n stroke: var(--arrow-emphasis);\n stroke-width: 2.75;\n filter: none;\n }\n .semantic-flow-token {\n color: var(--frontend-stroke);\n opacity: 0;\n pointer-events: none;\n }\n .relationship-flow-token {\n animation: archify-relationship-token-life 1.2s linear 1 both;\n }\n .story-flow-token {\n animation: archify-relationship-token-life 0.78s linear 1 both;\n }\n .semantic-flow-token-halo {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.1;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n }\n .relationship-flow-token-shape {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-ink {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.05;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-dot { fill: currentColor; stroke: none; }\n .semantic-flow-token[data-token-kind=\"data\"] { color: var(--database-stroke); }\n .semantic-flow-token[data-token-kind=\"event\"] { color: var(--messagebus-stroke); }\n .semantic-flow-token[data-token-kind=\"security\"] { color: var(--security-stroke); }\n .semantic-flow-token[data-token-kind=\"state\"] { color: var(--cloud-stroke); }\n svg[data-preset=\"signal-flow\"] .semantic-flow-token {\n filter: drop-shadow(0 0 5px currentColor);\n }\n svg[data-preset=\"blueprint\"] .semantic-flow-token { filter: none; }\n svg[data-preset=\"editorial\"] .semantic-flow-token { filter: none; }\n html[data-embed=\"true\"] .relationship-pulse-overlay { display: none; }\n\n /* Intent Trace is a temporary, pre-click exploration layer. Related\n topology stays readable while a short viewer-only signal runs over\n cloned edge geometry; the authored edge remains untouched underneath. */\n svg[data-intent-trace-active] [data-node-id],\n svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }\n svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }\n svg[data-intent-trace-active] [data-intent-trace-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n .intent-trace-overlay { pointer-events: none; }\n .intent-trace-flow {\n fill: none;\n stroke-width: 3.1;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.94;\n animation: archify-intent-trace-flow 1.15s linear 1 both;\n }\n .intent-trace-flow[data-direction=\"out\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 4px var(--frontend-stroke));\n }\n .intent-trace-flow[data-direction=\"in\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 4px var(--database-stroke));\n animation-direction: reverse;\n }\n .intent-trace-flow[data-direction=\"loop\"] {\n stroke: var(--security-stroke);\n filter: drop-shadow(0 0 4px var(--security-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-intent-trace-selected],\n svg[data-preset=\"blueprint\"] .intent-trace-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-intent-trace-selected],\n svg[data-preset=\"editorial\"] .intent-trace-flow { filter: none; }\n .intent-trace-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n /* Route Probe separates a durable two-point query from selection and\n one-hop hover. Only the chosen shortest directed path stays prominent;\n the traveling signal is cloned viewer geometry and never authored SVG. */\n svg[data-route-picking=\"target\"] [data-node-id] { opacity: 0.24; }\n svg[data-route-picking=\"target\"] [data-route-candidate],\n svg[data-route-picking=\"target\"] [data-route-start] { opacity: 1; }\n svg[data-route-picking] [data-node-id] { cursor: crosshair; }\n svg[data-route-picking] [data-route-start] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n svg[data-route-active] [data-node-id],\n svg[data-route-active] [data-edge-from] { opacity: 0.11; }\n svg[data-route-active] [data-route-match] { opacity: 1; }\n svg[data-route-active] [data-route-start] {\n filter: drop-shadow(0 0 11px var(--frontend-stroke));\n }\n svg[data-route-active] [data-route-end] {\n filter: drop-shadow(0 0 11px var(--security-stroke));\n }\n svg[data-route-active] [data-route-step]:not([data-route-start]):not([data-route-end]) {\n filter: drop-shadow(0 0 7px var(--backend-stroke));\n }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"past\"] { opacity: 0.62; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"future\"] { opacity: 0.34; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"current\"] { opacity: 1; }\n svg[data-route-journey] [data-node-id][data-route-journey-current] {\n filter: drop-shadow(0 0 10px var(--backend-stroke));\n }\n svg[data-route-journey] [data-edge-from][data-route-journey-current] {\n opacity: 1;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n }\n .route-probe-overlay { pointer-events: none; }\n .route-journey-overlay { pointer-events: none; }\n .route-probe-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.25;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n filter: drop-shadow(0 0 5px var(--backend-stroke));\n animation: archify-route-probe-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n animation-delay: calc(var(--route-step, 0) * 0.16s);\n }\n .route-journey-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.5;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n animation: archify-route-journey-flow 780ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n }\n svg[data-preset=\"blueprint\"] [data-route-start],\n svg[data-preset=\"blueprint\"] [data-route-end],\n svg[data-preset=\"blueprint\"] [data-route-step],\n svg[data-preset=\"blueprint\"] .route-probe-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"blueprint\"] .route-journey-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-route-start],\n svg[data-preset=\"editorial\"] [data-route-end],\n svg[data-preset=\"editorial\"] [data-route-step],\n svg[data-preset=\"editorial\"] .route-probe-flow,\n svg[data-preset=\"editorial\"] .route-journey-flow { filter: none; }\n\n svg[data-preset=\"editorial\"] .c-grid {\n stroke-dasharray: 1 4;\n opacity: 0.48;\n }\n svg[data-preset=\"editorial\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);\n stroke-dasharray: 9 4;\n }\n svg[data-preset=\"editorial\"] [data-node-id]:hover,\n svg[data-preset=\"editorial\"] [data-node-id]:focus-visible,\n svg[data-preset=\"editorial\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));\n }\n\n svg[data-preset=\"blueprint\"] .c-grid {\n stroke-dasharray: 1 3;\n opacity: 0.78;\n }\n svg[data-preset=\"blueprint\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 58%, transparent);\n stroke-dasharray: 12 4 2 4;\n }\n svg[data-preset=\"blueprint\"] .c-security-group,\n svg[data-preset=\"blueprint\"] .c-lane { stroke-dasharray: 7 3; }\n svg[data-preset=\"blueprint\"] [data-node-id]:hover,\n svg[data-preset=\"blueprint\"] [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active][data-reach-active] [data-focus-selected][data-reach-origin] {\n filter: none;\n }\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-source],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n\n /* Story Trail is a viewer-only overlay derived from the ordered focus IDs\n of the active guided view. The authored edge stays underneath with its\n original color, dash pattern, marker, and geometry intact. */\n .story-trail-overlay { pointer-events: none; }\n .story-carrier-overlay { pointer-events: none; }\n .story-trail-flow {\n fill: none;\n stroke: var(--frontend-stroke);\n stroke-width: 2.8;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n opacity: 0.34;\n filter: drop-shadow(0 0 2px var(--frontend-stroke));\n }\n svg[data-story-beat] [data-story-step] {\n opacity: 0.22;\n filter: saturate(0.42);\n transition: opacity 180ms ease, filter 180ms ease;\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"past\"] {\n opacity: 0.72;\n filter: saturate(0.82);\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"next\"] {\n opacity: 0.5;\n filter: saturate(0.66);\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n opacity: 1;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n animation: archify-story-beat-node 360ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n svg[data-story-beat] [data-edge-from][data-story-beat-step] {\n opacity: 0.16;\n transition: opacity 160ms ease;\n }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"past\"] { opacity: 0.58; }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"next\"] { opacity: 0.34; }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"active\"] { opacity: 1; }\n svg[data-story-beat] .story-trail-flow { opacity: 0; transition: opacity 160ms ease; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"past\"] { opacity: 0.34; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"next\"] { opacity: 0.2; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"active\"] { opacity: 0.92; }\n svg[data-story-beat] .story-trail-flow[data-story-pulse=\"true\"] {\n stroke-dasharray: 2 13;\n stroke-dashoffset: 30;\n opacity: 0.92;\n animation: archify-story-flow 0.78s linear 1 both;\n }\n svg[data-preset=\"blueprint\"] .story-trail-flow {\n stroke-linecap: square;\n filter: none;\n opacity: 0.5;\n }\n svg[data-preset=\"blueprint\"][data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n filter: none;\n animation: none;\n }\n svg[data-preset=\"editorial\"] .story-trail-flow { filter: none; }\n svg[data-preset=\"editorial\"][data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 16%, transparent));\n }\n\n /* Chapter Delta Preview is a static, pre-commit comparison between two\n chapter focus sets. Symbols in the rail carry the meaning without color;\n these SVG rules only make exact stable-ID membership easier to scan. */\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] {\n opacity: 0.1 !important;\n filter: none !important;\n transition: none !important;\n }\n svg[data-chapter-preview] .story-trail-overlay { opacity: 0.08 !important; }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"stay\"] {\n opacity: 0.76 !important;\n filter: saturate(0.7) !important;\n }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"enter\"] {\n opacity: 1 !important;\n filter: saturate(1.2) !important;\n }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"leave\"] {\n opacity: 0.28 !important;\n filter: grayscale(0.72) !important;\n }\n svg[data-preset=\"blueprint\"][data-chapter-preview] [data-node-id] { filter: none !important; }\n\n /* Dashed boundary variants */\n .c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }\n .c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }\n .c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }\n\n /* Optional trace animation, enabled only by meta.animation = \"trace\".\n The ordinary viewer performs one ambient pass and then restores the\n authored solid/security/async line language. WebM samples the same\n authored geometry into an explicit canvas timeline. */\n html[data-ambient-motion=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"edge\"] {\n animation: archify-edge-flow 2.4s linear 1;\n animation-delay: calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n transform-box: fill-box;\n transform-origin: center;\n animation: archify-node-pulse 3.6s ease-in-out 1;\n animation-delay: calc(var(--step, 0) * 160ms);\n }\n svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n stroke-linecap: round;\n filter: drop-shadow(0 0 3px var(--arrow-emphasis));\n animation-duration: 1.75s;\n }\n svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-duration: 3.1s;\n }\n svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n stroke-linecap: square;\n filter: none;\n animation-duration: 2.15s;\n }\n svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-name: archify-blueprint-node-pulse;\n animation-duration: 3.8s;\n }\n svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n filter: none;\n animation-duration: 2.2s;\n }\n svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-name: archify-editorial-node-pulse;\n animation-duration: 3.5s;\n }\n /* Embedded proofs are static until a named Story Trail chapter is played.\n This keeps proof grids calm and ensures ?play=1 stops all viewer motion\n after one 3.2 second chapter instead of leaving ambient trace loops on. */\n html[data-embed=\"true\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-share-playback=\"true\"] svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n @keyframes archify-edge-flow {\n 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }\n 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }\n 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }\n 100% { stroke-dashoffset: 0; opacity: 1; }\n }\n @keyframes archify-node-pulse {\n 0%, 72%, 100% { filter: none; stroke-width: 1.5; }\n 18%, 36% {\n filter: drop-shadow(0 0 8px var(--arrow-emphasis));\n stroke-width: 2.4;\n }\n }\n @keyframes archify-blueprint-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }\n }\n @keyframes archify-editorial-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }\n }\n @keyframes archify-signal-scan {\n 0%, 18% { opacity: 1; transform: translateX(-70%); }\n 70% { opacity: 1; transform: translateX(70%); }\n 100% { opacity: 0; transform: translateX(70%); }\n }\n @keyframes archify-radar-live {\n 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }\n 55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }\n }\n @keyframes archify-guided-progress {\n from { transform: scaleX(var(--guided-progress-start, 0)); }\n to { transform: scaleX(1); }\n }\n @keyframes archify-story-flow {\n to { stroke-dashoffset: 0; }\n }\n @keyframes archify-intent-trace-flow {\n 0% { opacity: 0.28; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.94; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-route-probe-flow {\n 0% { stroke-dashoffset: 0; opacity: 0.96; }\n 78% { stroke-dashoffset: -1; opacity: 0.96; }\n 100% { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.58; }\n }\n @keyframes archify-route-journey-flow {\n 0% { opacity: 0.16; stroke-dashoffset: 0; }\n 14%, 76% { opacity: 1; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-semantic-lens-flow {\n 0% { opacity: 0.2; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.9; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-pulse {\n 0% { opacity: 0.18; stroke-dashoffset: 0; }\n 10%, 76% { opacity: 0.98; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-token-life {\n 0%, 7% { opacity: 0; }\n 13%, 82% { opacity: 1; }\n 100% { opacity: 0; }\n }\n @keyframes archify-story-beat-node {\n from { opacity: 0.48; filter: saturate(0.6); }\n 58% { opacity: 1; filter: drop-shadow(0 0 10px var(--frontend-stroke)); }\n to { opacity: 1; filter: drop-shadow(0 0 7px var(--frontend-stroke)); }\n }\n @keyframes archify-share-cue-enter {\n from { opacity: 0; transform: translate(-50%, -0.45rem); }\n to { opacity: 1; transform: translate(-50%, 0); }\n }\n @keyframes archify-share-cue-pulse {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 50% { opacity: 0.48; transform: scale(0.78); }\n }\n @media (prefers-reduced-motion: reduce) {\n html[data-preset=\"signal-flow\"] .diagram-container::before {\n animation: none !important;\n }\n .pulse-dot { animation: none !important; }\n svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n .guided-view-progress span {\n animation: none !important;\n transform: scaleX(1) !important;\n }\n .story-trail-flow,\n .intent-trace-flow,\n .route-probe-flow,\n .semantic-lens,\n .diagram-guide,\n [data-story-step],\n .overview-map-live,\n .guided-view-stop,\n .share-chapter-cue,\n .chapter-handoff-anchor,\n .share-chapter-state::before,\n .share-chapter-progress span { animation: none !important; }\n .guided-view-chapter,\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] { transition: none !important; }\n svg[data-story-playing=\"true\"] .story-trail-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.55;\n }\n .intent-trace-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n .route-probe-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.78;\n }\n .route-journey-overlay,\n .story-carrier-overlay { display: none !important; }\n .semantic-lens-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-width: 2.2;\n opacity: 0.34;\n filter: none;\n }\n .relationship-pulse-overlay { display: none !important; }\n .guided-view-chapter { transition: none !important; }\n .source-evidence-beacon,\n svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }\n }\n ";+ const exportCss = "\n /* ==========================================================\n THEME VARIABLES — switch by toggling [data-theme] on \u003chtml\u003e\n ========================================================== */\n :root,\n [data-theme=\"dark\"] {\n --bg: #020617;\n --grid: #1e293b;\n --text: #ffffff;\n --text-muted: #94a3b8;\n --text-dim: #475569;\n /* UI chrome 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: #f8fafc;\n --grid: #e2e8f0;\n --text: #0f172a;\n --text-muted: #64748b;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n\n --mask: #ffffff;\n\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n\n --toolbar-bg: rgba(255, 255, 255, 0.92);\n --toolbar-border: #cbd5e1;\n --toolbar-text: #334155;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #ffffff;\n }\n\n /* ==========================================================\n SIGNAL FLOW — an opt-in, motion-forward visual preset.\n The variables also target a standalone exported SVG, whose\n root carries data-preset and data-theme directly.\n ========================================================== */\n [data-preset=\"signal-flow\"][data-theme=\"dark\"] {\n --bg: #030711;\n --grid: #15233a;\n --panel: rgba(6, 14, 28, 0.78);\n --panel-border: #1d3350;\n --lane-fill: rgba(9, 22, 40, 0.5);\n --lane-stroke: #2c4564;\n --text: #f5fbff;\n --text-muted: #9eb0c7;\n --text-dim: #52667f;\n --text-faint: #7890ad;\n --mask: #07101e;\n --frontend-fill: rgba(6, 182, 212, 0.14);\n --frontend-stroke: #67e8f9;\n --backend-fill: rgba(16, 185, 129, 0.14);\n --backend-stroke: #5eead4;\n --database-fill: rgba(139, 92, 246, 0.16);\n --database-stroke: #c4b5fd;\n --cloud-fill: rgba(245, 158, 11, 0.13);\n --cloud-stroke: #fcd34d;\n --security-fill: rgba(244, 63, 94, 0.13);\n --security-stroke: #fda4af;\n --messagebus-fill: rgba(249, 115, 22, 0.13);\n --messagebus-stroke: #fdba74;\n --external-fill: rgba(71, 85, 105, 0.24);\n --external-stroke: #a5b4c7;\n --arrow: #7890ad;\n --arrow-emphasis: #2dd4bf;\n --toolbar-bg: rgba(7, 16, 30, 0.86);\n --toolbar-border: #29415f;\n --toolbar-menu-bg: #07101e;\n }\n\n [data-preset=\"signal-flow\"][data-theme=\"light\"] {\n --bg: #f4f9fc;\n --grid: #d4e5ee;\n --panel: rgba(255, 255, 255, 0.82);\n --panel-border: #bfd5e2;\n --lane-fill: rgba(232, 243, 248, 0.62);\n --lane-stroke: #a9c5d5;\n --text: #102638;\n --text-muted: #587287;\n --text-dim: #8aa2b4;\n --text-faint: #668397;\n --mask: #ffffff;\n --frontend-fill: rgba(6, 182, 212, 0.09);\n --frontend-stroke: #0789a1;\n --backend-fill: rgba(5, 150, 105, 0.09);\n --backend-stroke: #087f69;\n --database-fill: rgba(124, 58, 237, 0.09);\n --database-stroke: #7254c7;\n --cloud-fill: rgba(217, 119, 6, 0.08);\n --cloud-stroke: #b9670b;\n --security-fill: rgba(225, 29, 72, 0.08);\n --security-stroke: #c53a59;\n --messagebus-fill: rgba(234, 88, 12, 0.08);\n --messagebus-stroke: #c65f27;\n --external-fill: rgba(100, 116, 139, 0.1);\n --external-stroke: #607a8c;\n --arrow: #7b97aa;\n --arrow-emphasis: #0d9488;\n }\n\n /* ==========================================================\n BLUEPRINT — a review-first drafting preset for deployment,\n infrastructure, and technical design documentation. It keeps\n the same semantic palette and geometry while trading glow for\n precise grid contrast, squared materials, and drafting marks.\n ========================================================== */\n [data-preset=\"blueprint\"][data-theme=\"dark\"] {\n --bg: #06131f;\n --grid: #17425a;\n --panel: rgba(7, 27, 43, 0.9);\n --panel-border: #27627f;\n --lane-fill: rgba(10, 43, 66, 0.36);\n --lane-stroke: #34799a;\n --text: #e3f6ff;\n --text-muted: #91b8ca;\n --text-dim: #557e92;\n --text-faint: #739caf;\n --mask: #0a2031;\n --frontend-fill: rgba(26, 157, 193, 0.14);\n --frontend-stroke: #66d9ef;\n --backend-fill: rgba(31, 155, 124, 0.13);\n --backend-stroke: #69dfbd;\n --database-fill: rgba(120, 105, 196, 0.14);\n --database-stroke: #b4a8ff;\n --cloud-fill: rgba(197, 145, 43, 0.13);\n --cloud-stroke: #ffd166;\n --security-fill: rgba(199, 76, 104, 0.13);\n --security-stroke: #ff8da1;\n --messagebus-fill: rgba(207, 112, 49, 0.13);\n --messagebus-stroke: #ffad66;\n --external-fill: rgba(84, 119, 139, 0.18);\n --external-stroke: #a7cad9;\n --arrow: #78a3b7;\n --arrow-emphasis: #64dfc1;\n --toolbar-bg: rgba(7, 28, 45, 0.92);\n --toolbar-border: #34799a;\n --toolbar-text: #d8f3ff;\n --toolbar-hover: rgba(18, 58, 83, 0.95);\n --toolbar-menu-bg: #0a2031;\n }\n\n [data-preset=\"blueprint\"][data-theme=\"light\"] {\n --bg: #edf7fa;\n --grid: #b5d5e1;\n --panel: rgba(249, 253, 255, 0.94);\n --panel-border: #78aabd;\n --lane-fill: rgba(210, 232, 240, 0.42);\n --lane-stroke: #83b2c4;\n --text: #123344;\n --text-muted: #4e7486;\n --text-dim: #86a6b4;\n --text-faint: #668c9d;\n --mask: #f9fdff;\n --frontend-fill: rgba(8, 145, 178, 0.08);\n --frontend-stroke: #087f9c;\n --backend-fill: rgba(5, 128, 101, 0.08);\n --backend-stroke: #08755f;\n --database-fill: rgba(100, 75, 180, 0.08);\n --database-stroke: #6757a8;\n --cloud-fill: rgba(181, 120, 15, 0.08);\n --cloud-stroke: #a86609;\n --security-fill: rgba(190, 48, 80, 0.07);\n --security-stroke: #b32f50;\n --messagebus-fill: rgba(196, 81, 22, 0.07);\n --messagebus-stroke: #b65120;\n --external-fill: rgba(79, 112, 128, 0.08);\n --external-stroke: #506f7e;\n --arrow: #6d93a5;\n --arrow-emphasis: #087f69;\n --toolbar-bg: rgba(247, 252, 254, 0.94);\n --toolbar-border: #8ab5c5;\n --toolbar-text: #294f61;\n --toolbar-hover: #ffffff;\n --toolbar-menu-bg: #f9fdff;\n }\n\n /* ==========================================================\n EDITORIAL — a warm, publication-minded preset for design\n reviews, launch notes, and documentation. The diagram keeps\n the same semantic palette and exact geometry, but trades\n software chrome for paper, ink, ruled structure, and one\n restrained vermilion accent.\n ========================================================== */\n [data-preset=\"editorial\"][data-theme=\"dark\"] {\n --bg: #181611;\n --grid: #39342a;\n --panel: rgba(35, 31, 24, 0.96);\n --panel-border: #625a4a;\n --lane-fill: rgba(52, 46, 35, 0.46);\n --lane-stroke: #726957;\n --text: #f4eddf;\n --text-muted: #b9ae9b;\n --text-dim: #776e60;\n --text-faint: #9d917e;\n --mask: #231f18;\n --frontend-fill: rgba(43, 133, 142, 0.16);\n --frontend-stroke: #7fc6c7;\n --backend-fill: rgba(63, 132, 92, 0.16);\n --backend-stroke: #8fc29e;\n --database-fill: rgba(117, 91, 141, 0.17);\n --database-stroke: #c0a4d0;\n --cloud-fill: rgba(170, 119, 49, 0.16);\n --cloud-stroke: #d8ad68;\n --security-fill: rgba(157, 69, 65, 0.17);\n --security-stroke: #df9085;\n --messagebus-fill: rgba(174, 79, 42, 0.16);\n --messagebus-stroke: #df946f;\n --external-fill: rgba(126, 115, 96, 0.18);\n --external-stroke: #b8ad99;\n --arrow: #948978;\n --arrow-emphasis: #dd6b3d;\n --toolbar-bg: rgba(35, 31, 24, 0.92);\n --toolbar-border: #625a4a;\n --toolbar-text: #eee5d5;\n --toolbar-hover: #302a20;\n --toolbar-menu-bg: #231f18;\n }\n\n [data-preset=\"editorial\"][data-theme=\"light\"] {\n --bg: #f2eee5;\n --grid: #d8d0c2;\n --panel: rgba(251, 248, 241, 0.97);\n --panel-border: #c4b9a6;\n --lane-fill: rgba(229, 221, 207, 0.42);\n --lane-stroke: #b8aa94;\n --text: #242018;\n --text-muted: #6f6658;\n --text-dim: #a09788;\n --text-faint: #817767;\n --mask: #fbf8f1;\n --frontend-fill: rgba(31, 117, 126, 0.09);\n --frontend-stroke: #287e84;\n --backend-fill: rgba(42, 119, 75, 0.09);\n --backend-stroke: #397b53;\n --database-fill: rgba(105, 75, 130, 0.09);\n --database-stroke: #765d86;\n --cloud-fill: rgba(157, 103, 31, 0.1);\n --cloud-stroke: #9a671f;\n --security-fill: rgba(153, 58, 52, 0.09);\n --security-stroke: #9e463f;\n --messagebus-fill: rgba(182, 70, 27, 0.09);\n --messagebus-stroke: #ad4b25;\n --external-fill: rgba(101, 91, 75, 0.09);\n --external-stroke: #746b5e;\n --arrow: #8a806f;\n --arrow-emphasis: #bb4c23;\n --toolbar-bg: rgba(251, 248, 241, 0.94);\n --toolbar-border: #c4b9a6;\n --toolbar-text: #40392f;\n --toolbar-hover: #fffdf8;\n --toolbar-menu-bg: #fbf8f1;\n }\n\n * { margin: 0; padding: 0; box-sizing: border-box; }\n\n body {\n font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;\n background: var(--bg);\n min-height: 100vh;\n padding: 2rem;\n color: var(--text);\n transition: background 0.2s ease, color 0.2s ease;\n }\n\n html[data-preset=\"signal-flow\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);\n background-attachment: fixed;\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] body {\n background-image:\n radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),\n radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);\n }\n html[data-preset=\"blueprint\"] body {\n background-image:\n linear-gradient(var(--grid) 1px, transparent 1px),\n linear-gradient(90deg, var(--grid) 1px, transparent 1px);\n background-size: 32px 32px;\n background-position: -1px -1px;\n background-attachment: fixed;\n }\n html[data-preset=\"editorial\"] body {\n background-image:\n linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),\n repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);\n background-attachment: fixed;\n }\n\n /* Gallery/embed mode keeps the generated artifact as the source of truth\n while presenting only its diagram surface inside a proof card. */\n html[data-embed=\"true\"] body {\n min-height: 0;\n padding: 0;\n overflow: hidden;\n background: var(--bg);\n background-image: none;\n }\n html[data-embed=\"true\"] .toolbar,\n html[data-embed=\"true\"] .header,\n html[data-embed=\"true\"] .cards,\n html[data-embed=\"true\"] .diagram-nav,\n html[data-embed=\"true\"] .overview-map,\n html[data-embed=\"true\"] .focus-chip,\n html[data-embed=\"true\"] .route-probe,\n html[data-embed=\"true\"] .semantic-lens,\n html[data-embed=\"true\"] .diagram-guide,\n html[data-embed=\"true\"] .node-finder,\n html[data-embed=\"true\"] .guided-views { display: none !important; }\n html[data-embed=\"true\"] .container { max-width: none; }\n html[data-embed=\"true\"] .diagram-container {\n padding: 0.5rem;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n html[data-embed=\"true\"] .diagram-container svg { min-width: 0; }\n\n /* Share Chapter Cue lives in the HTML viewer layer, not inside the SVG.\n It gives one-shot embeds a title, authored note, truthful stop order,\n and lifecycle state while canonical diagram geometry stays untouched. */\n .share-chapter-cue { display: none; }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .share-chapter-cue:not([hidden]),\n html[data-embed=\"true\"][data-share-moment=\"true\"] .share-chapter-cue:not([hidden]) {\n position: absolute;\n z-index: 18;\n top: 0.85rem;\n left: 50%;\n display: grid;\n grid-template-columns: auto minmax(9rem, 13.5rem) minmax(0, 1fr);\n align-items: center;\n gap: 0.45rem 0.85rem;\n width: min(52rem, calc(100% - 1.5rem));\n min-height: 3.35rem;\n padding: 0.55rem 0.75rem 0.65rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));\n border-radius: 0.75rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--frontend-fill) 52%, transparent), transparent 45%),\n color-mix(in srgb, var(--toolbar-menu-bg) 92%, transparent);\n color: var(--toolbar-text);\n box-shadow: 0 14px 42px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.045);\n backdrop-filter: blur(16px);\n pointer-events: none;\n animation: archify-share-cue-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n html[data-preset=\"blueprint\"] .share-chapter-cue {\n border-radius: 0.2rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 46%, transparent), transparent 36%),\n var(--toolbar-menu-bg);\n box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);\n backdrop-filter: none;\n }\n html[data-preset=\"editorial\"] .share-chapter-cue {\n border-color: var(--panel-border);\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 42%),\n var(--toolbar-menu-bg);\n box-shadow: 0 10px 30px color-mix(in srgb, #000 18%, transparent);\n backdrop-filter: none;\n }\n html[data-preset=\"editorial\"] .share-chapter-state { color: var(--arrow-emphasis); }\n html[data-preset=\"editorial\"] .share-chapter-state::before {\n border-radius: 0;\n box-shadow: none;\n transform: rotate(45deg) scale(0.8);\n }\n .share-chapter-index {\n display: grid;\n gap: 0.12rem;\n min-width: 5rem;\n padding-right: 0.75rem;\n border-right: 1px solid var(--toolbar-border);\n }\n .share-chapter-state {\n display: inline-flex;\n align-items: center;\n gap: 0.36rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .share-chapter-state::before {\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: currentColor;\n box-shadow: 0 0 10px currentColor;\n content: '';\n }\n .share-chapter-cue[data-state=\"playing\"] .share-chapter-state::before {\n animation: archify-share-cue-pulse 1.15s ease-in-out infinite;\n }\n .share-chapter-count {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .share-chapter-copy { min-width: 0; }\n .share-chapter-copy strong,\n .share-chapter-copy small,\n .share-chapter-route {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .share-chapter-copy strong {\n color: var(--toolbar-text);\n font-size: 0.6875rem;\n line-height: 1.35;\n }\n .share-chapter-copy small {\n margin-top: 0.08rem;\n color: var(--text-muted);\n font-size: 0.5rem;\n line-height: 1.35;\n }\n .share-chapter-route {\n color: color-mix(in srgb, var(--frontend-stroke) 76%, var(--text-muted));\n font-size: 0.5625rem;\n font-weight: 650;\n letter-spacing: 0.015em;\n text-align: right;\n }\n .share-chapter-progress {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n height: 2px;\n overflow: hidden;\n background: color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n .share-chapter-progress span {\n display: block;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, var(--frontend-stroke), var(--database-stroke));\n box-shadow: 0 0 12px var(--frontend-stroke);\n transform: scaleX(0);\n transform-origin: left center;\n }\n\n /* Presentation Stage is a viewer-only layer: it gives the live diagram\n the viewport while keeping guided views, theme, focus, and exports real.\n Embed mode wins when both query parameters are present. */\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body {\n height: 100dvh;\n min-height: 0;\n padding: 1rem;\n overflow: hidden;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n width: 100%;\n max-width: none;\n height: calc(100dvh - 2rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n flex: none;\n min-width: 0;\n margin: 0;\n padding-right: 23rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row { margin-bottom: 0.25rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views {\n flex: none;\n margin-bottom: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n justify-content: center;\n min-height: 0;\n padding: 0.75rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .cards { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) #btn-present {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n\n .container { max-width: 1200px; margin: 0 auto; }\n\n .header { margin-bottom: 2rem; padding-right: 29.5rem; }\n\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 29.5rem; }\n\n .header-row {\n display: flex;\n align-items: center;\n gap: 1rem;\n margin-bottom: 0.5rem;\n }\n\n .pulse-dot {\n width: 12px;\n height: 12px;\n background: var(--frontend-stroke);\n border-radius: 50%;\n animation: none;\n }\n\n html[data-motion-capable=\"true\"] .pulse-dot { animation: pulse 2s infinite; }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n h1 {\n font-size: 1.5rem;\n font-weight: 700;\n letter-spacing: -0.025em;\n }\n\n .subtitle {\n color: var(--text-muted);\n font-size: 0.875rem;\n margin-left: 1.75rem;\n }\n\n html[data-preset=\"signal-flow\"] .header-row::after {\n content: \"SIGNAL FLOW\";\n margin-left: auto;\n color: var(--frontend-stroke);\n border: 1px solid var(--frontend-stroke);\n border-radius: 999px;\n padding: 0.28rem 0.6rem;\n font-size: 0.625rem;\n letter-spacing: 0.12em;\n opacity: 0.82;\n box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);\n white-space: nowrap;\n }\n\n html[data-preset=\"blueprint\"] .pulse-dot {\n width: 10px;\n height: 10px;\n border: 1px solid var(--frontend-stroke);\n border-radius: 1px;\n background: transparent;\n box-shadow: inset 0 0 0 2px var(--bg);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n content: \"BLUEPRINT / REV 01\";\n margin-left: auto;\n padding: 0.28rem 0.55rem;\n border-top: 1px solid var(--frontend-stroke);\n border-bottom: 1px solid var(--frontend-stroke);\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.14em;\n white-space: nowrap;\n }\n\n html[data-preset=\"editorial\"] h1,\n html[data-preset=\"editorial\"] .card h3 {\n font-family: Georgia, 'Times New Roman', 'Songti SC', STSong, serif;\n letter-spacing: -0.02em;\n }\n html[data-preset=\"editorial\"] h1 { font-size: 1.72rem; font-weight: 600; }\n html[data-preset=\"editorial\"] .pulse-dot {\n width: 9px;\n height: 9px;\n border: 1px solid var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg);\n animation: none;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n content: \"EDITORIAL / FIELD NOTE\";\n margin-left: auto;\n padding: 0.32rem 0 0.24rem;\n border-bottom: 2px solid var(--arrow-emphasis);\n color: var(--arrow-emphasis);\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.625rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.08em;\n white-space: nowrap;\n }\n\n .diagram-container {\n background: var(--panel);\n border-radius: 1rem;\n border: 1px solid var(--panel-border);\n padding: 1.5rem;\n overflow: hidden;\n position: relative;\n }\n\n html[data-preset=\"signal-flow\"] .diagram-container {\n position: relative;\n overflow: hidden;\n background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .diagram-container {\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);\n }\n html[data-preset=\"blueprint\"] .diagram-container {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background: var(--panel);\n box-shadow:\n inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),\n 0 18px 48px rgba(0, 0, 0, 0.16);\n }\n html[data-preset=\"blueprint\"] .diagram-container::after {\n content: \"\";\n position: absolute;\n z-index: 10;\n inset: 0.7rem;\n pointer-events: none;\n background:\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,\n linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;\n opacity: 0.58;\n }\n html[data-preset=\"editorial\"] .diagram-container {\n overflow: hidden;\n border-color: var(--panel-border);\n border-radius: 0.38rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),\n var(--panel);\n box-shadow:\n 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),\n 0 18px 48px color-mix(in srgb, #000 19%, transparent);\n }\n html[data-preset=\"editorial\"] .diagram-container::after {\n position: absolute;\n z-index: 10;\n top: 0.72rem;\n right: 1.25rem;\n padding: 0.2rem 0.52rem;\n border: 1px solid var(--panel-border);\n background: var(--panel);\n color: var(--arrow-emphasis);\n content: \"ARCHIFY / PLATE 04\";\n font-family: Georgia, 'Times New Roman', serif;\n font-size: 0.52rem;\n font-style: italic;\n font-weight: 600;\n letter-spacing: 0.09em;\n pointer-events: none;\n }\n html[data-embed=\"true\"][data-preset=\"editorial\"] .diagram-container::after { display: none; }\n html[data-motion-capable=\"true\"][data-preset=\"signal-flow\"][data-ambient-motion=\"running\"] .diagram-container::before {\n content: \"\";\n position: absolute;\n inset: 0;\n pointer-events: none;\n background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);\n transform: translateX(-70%);\n animation: archify-signal-scan 4.8s ease-in-out 1 both;\n }\n\n /* Motion Governor gives the reader a real static state and gives the\n strongest semantic action the only motion budget. Atmosphere resets to\n its authored base instead of freezing mid-cycle. Static artifacts never\n start a decorative pulse or scan. */\n html:not([data-motion-capable=\"true\"]) svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .pulse-dot,\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion=\"still\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-motion-owner] .pulse-dot,\n html[data-motion-owner] .diagram-container::before,\n html[data-motion-owner] svg[data-animation=\"trace\"] [data-animate],\n html[data-embed=\"true\"] .pulse-dot,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .pulse-dot,\n html[data-share-playback=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] .pulse-dot,\n html[data-document-hidden=\"true\"] .diagram-container::before,\n html[data-document-hidden=\"true\"] svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n }\n html[data-motion=\"still\"] .diagram-container::before,\n html[data-motion-owner] .diagram-container::before,\n html[data-embed=\"true\"] .diagram-container::before,\n html[data-share-playback=\"true\"] .diagram-container::before {\n opacity: 0;\n }\n html[data-motion=\"still\"] .guided-view-progress span,\n html[data-motion=\"still\"] .guided-story-caption,\n html[data-motion=\"still\"] .story-trail-flow,\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow,\n html[data-motion=\"still\"] .route-journey-flow,\n html[data-motion=\"still\"] .semantic-lens-flow,\n html[data-motion=\"still\"] .diagram-guide,\n html[data-motion=\"still\"] [data-story-step],\n html[data-motion=\"still\"] .overview-map-live,\n html[data-motion=\"still\"] .guided-view-stop,\n html[data-motion=\"still\"] .share-chapter-cue,\n html[data-motion=\"still\"] .share-chapter-state::before,\n html[data-motion=\"still\"] .share-chapter-progress span,\n html[data-document-hidden=\"true\"] .guided-view-progress span,\n html[data-document-hidden=\"true\"] .story-trail-flow,\n html[data-document-hidden=\"true\"] .intent-trace-flow,\n html[data-document-hidden=\"true\"] .route-probe-flow,\n html[data-document-hidden=\"true\"] .route-journey-flow,\n html[data-document-hidden=\"true\"] .semantic-lens-flow,\n html[data-document-hidden=\"true\"] .diagram-guide,\n html[data-document-hidden=\"true\"] [data-story-step],\n html[data-document-hidden=\"true\"] .overview-map-live,\n html[data-document-hidden=\"true\"] .guided-view-stop,\n html[data-document-hidden=\"true\"] .share-chapter-cue,\n html[data-document-hidden=\"true\"] .share-chapter-state::before,\n html[data-document-hidden=\"true\"] .share-chapter-progress span {\n animation: none !important;\n }\n html[data-motion=\"still\"] .guided-view-progress span {\n transform: scaleX(1) !important;\n }\n html[data-motion=\"still\"] svg[data-story-playing=\"true\"] .story-trail-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.55;\n }\n html[data-motion=\"still\"] .intent-trace-flow,\n html[data-motion=\"still\"] .route-probe-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n html[data-motion=\"still\"] .route-journey-overlay,\n html[data-document-hidden=\"true\"] .route-journey-overlay { display: none !important; }\n html[data-motion=\"still\"] .relationship-pulse-overlay,\n html[data-motion=\"still\"] .story-carrier-overlay,\n html[data-document-hidden=\"true\"] .story-carrier-overlay { display: none !important; }\n html[data-motion=\"still\"] .chapter-handoff-overlay { display: none !important; }\n html[data-motion=\"still\"] .chapter-handoff-anchor { animation: none !important; }\n html[data-motion=\"still\"] .guided-view-chapter,\n html[data-motion=\"still\"] svg [data-node-id],\n html[data-motion=\"still\"] svg [data-edge-from],\n html[data-motion=\"still\"] svg [data-detail],\n html[data-motion=\"still\"] svg [data-detail-anchor],\n html[data-motion=\"still\"] svg [data-legend-hit],\n html[data-motion=\"still\"] svg {\n transition: none !important;\n }\n\n svg {\n width: 100%;\n min-width: min(900px, 100%);\n display: block;\n transform-origin: 0 0;\n transition: transform 0.18s ease;\n }\n\n .diagram-container.is-camera-moving svg {\n transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-container.is-camera-transaction svg { transition: none; }\n .diagram-container.is-pannable { cursor: grab; }\n .diagram-container.is-panning { cursor: grabbing; user-select: none; }\n .diagram-container.is-panning svg { transition: none; }\n\n .diagram-nav {\n position: absolute;\n right: 1rem;\n bottom: 1rem;\n z-index: 12;\n display: inline-flex;\n align-items: center;\n padding: 0.25rem;\n gap: 0.2rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.65rem;\n background: var(--toolbar-bg);\n box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(10px);\n }\n .diagram-nav button,\n .focus-chip button,\n .guided-views button {\n border: 0;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .diagram-nav button {\n min-width: 2rem;\n height: 2rem;\n padding: 0 0.45rem;\n border-radius: 0.4rem;\n font-size: 0.75rem;\n font-weight: 600;\n }\n .diagram-nav button:hover,\n .diagram-nav button:focus-visible,\n .focus-chip button:hover,\n .focus-chip button:focus-visible,\n .guided-views button:hover,\n .guided-views button:focus-visible { background: var(--toolbar-hover); }\n .diagram-nav button:focus-visible,\n .focus-chip button:focus-visible,\n .guided-views button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .diagram-nav button:disabled { opacity: 0.38; cursor: default; }\n .diagram-nav [data-view=\"reset\"] { min-width: 3.35rem; font-size: 0.625rem; }\n .diagram-container[data-camera-indicator=\"true\"] .diagram-nav [data-view=\"reset\"] {\n min-width: 5.2rem;\n color: var(--frontend-stroke);\n }\n .diagram-nav #btn-diagram-guide[aria-expanded=\"true\"] {\n color: var(--cloud-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Radar is a deliberately simplified, viewer-only overview. It\n uses authored node bounds and the live camera viewport rather than\n cloning the canonical SVG, so IDs, filters, animation, and export state\n stay singular and deterministic. */\n .overview-map {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 12;\n width: 11.25rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n border-radius: 0.78rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .overview-map[hidden] { display: none; }\n .overview-map[data-docked=\"true\"] {\n position: fixed;\n right: var(--archify-radar-right, 1rem);\n top: var(--archify-radar-top, 1rem);\n bottom: auto;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: var(--archify-radar-left, 1rem);\n }\n html[data-preset=\"blueprint\"] .overview-map { border-radius: 0.28rem; }\n .overview-map-head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.45rem;\n min-height: 2.25rem;\n padding: 0.42rem 0.48rem 0.38rem 0.55rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);\n }\n .overview-map-live {\n width: 0.42rem;\n height: 0.42rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);\n animation: archify-radar-live 2.4s ease-out infinite;\n }\n .overview-map-copy { min-width: 0; line-height: 1.1; }\n .overview-map-copy strong {\n display: block;\n overflow: hidden;\n color: var(--frontend-stroke);\n font-size: 0.59rem;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-copy small {\n display: block;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.52rem;\n letter-spacing: 0.04em;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .overview-map-close {\n width: 1.55rem;\n height: 1.55rem;\n padding: 0;\n border: 0;\n border-radius: 0.34rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.9rem;\n cursor: pointer;\n }\n .overview-map-close:hover,\n .overview-map-close:focus-visible { background: var(--toolbar-hover); }\n .overview-map-close:focus-visible,\n .overview-map-surface:focus-visible,\n .overview-map-node:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .overview-map-surface {\n position: relative;\n height: 7rem;\n margin: 0.42rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);\n border-radius: 0.42rem;\n background:\n linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),\n color-mix(in srgb, var(--bg) 86%, transparent);\n background-size: 12px 12px;\n cursor: crosshair;\n touch-action: none;\n }\n html[data-preset=\"blueprint\"] .overview-map-surface { border-radius: 0.1rem; }\n .overview-map-surface \u003e svg {\n width: 100%;\n height: 100%;\n min-width: 0;\n transform: none !important;\n transition: none !important;\n display: block;\n overflow: visible;\n }\n .overview-map-node {\n fill: var(--backend-stroke);\n fill-opacity: 0.52;\n stroke: var(--backend-stroke);\n stroke-opacity: 0.86;\n vector-effect: non-scaling-stroke;\n cursor: pointer;\n transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;\n }\n .overview-map-node[data-kind=\"frontend\"],\n .overview-map-node[data-kind=\"start\"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }\n .overview-map-node[data-kind=\"database\"],\n .overview-map-node[data-kind=\"success\"] { fill: var(--database-stroke); stroke: var(--database-stroke); }\n .overview-map-node[data-kind=\"cloud\"],\n .overview-map-node[data-kind=\"waiting\"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }\n .overview-map-node[data-kind=\"messagebus\"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }\n .overview-map-node[data-kind=\"security\"],\n .overview-map-node[data-kind=\"decision\"],\n .overview-map-node[data-kind=\"failure\"] { fill: var(--security-stroke); stroke: var(--security-stroke); }\n .overview-map-node[data-kind=\"external\"],\n .overview-map-node[data-kind=\"neutral\"] { fill: var(--external-stroke); stroke: var(--external-stroke); }\n .overview-map-node[data-radar-active=\"true\"],\n .overview-map-node:hover,\n .overview-map-node:focus-visible {\n fill-opacity: 0.92;\n stroke-width: 2.2;\n filter: drop-shadow(0 0 3px currentColor);\n }\n .overview-map-viewport {\n fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));\n }\n .overview-map-hint {\n display: flex;\n justify-content: space-between;\n gap: 0.5rem;\n padding: 0 0.52rem 0.46rem;\n color: var(--text-faint);\n font-size: 0.49rem;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n }\n .diagram-nav #btn-overview-map[aria-expanded=\"true\"] {\n color: var(--frontend-stroke);\n background: var(--toolbar-hover);\n }\n .diagram-nav #btn-route-probe[aria-pressed=\"true\"] {\n color: var(--backend-stroke);\n background: var(--toolbar-hover);\n }\n .diagram-nav #btn-semantic-lens[aria-expanded=\"true\"],\n .diagram-nav #btn-semantic-lens[aria-pressed=\"true\"] {\n color: var(--database-stroke);\n background: var(--toolbar-hover);\n }\n\n /* Semantic Lens turns the compiled node-kind palette into an analytical\n legend. One kind reveals its real traffic; two kinds compare only their\n direct authored relationships. Geometry and the canonical SVG stay put. */\n .semantic-lens {\n position: absolute;\n right: 1rem;\n bottom: 4.15rem;\n z-index: 24;\n width: min(20rem, calc(100% - 2rem));\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);\n backdrop-filter: blur(18px);\n animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .semantic-lens[hidden] { display: none; }\n .semantic-lens[data-dock-side=\"left\"] { left: 1rem; right: auto; }\n .semantic-lens[data-dock-side=\"right\"] { left: auto; right: 1rem; }\n html[data-preset=\"blueprint\"] .semantic-lens { border-radius: 0.28rem; }\n .semantic-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.72rem 0.78rem 0.62rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .semantic-lens-eyebrow {\n display: block;\n color: var(--database-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .semantic-lens-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.82rem;\n letter-spacing: -0.02em;\n }\n .semantic-lens-close {\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .semantic-lens-close:hover,\n .semantic-lens-close:focus-visible { background: var(--toolbar-hover); }\n .semantic-lens-instruction {\n margin: 0;\n padding: 0.52rem 0.78rem 0.48rem;\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-kinds {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.3rem;\n max-height: min(15rem, 40vh);\n padding: 0 0.5rem 0.5rem;\n overflow-y: auto;\n scrollbar-width: thin;\n }\n .semantic-lens-kind {\n --lens-color: var(--external-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.42rem;\n min-width: 0;\n min-height: 2.15rem;\n padding: 0.35rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));\n border-radius: 0.45rem;\n background: color-mix(in srgb, var(--panel) 76%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;\n }\n html[data-preset=\"blueprint\"] .semantic-lens-kind { border-radius: 0.12rem; }\n .semantic-lens-kind[data-kind=\"frontend\"],\n .semantic-lens-kind[data-kind=\"start\"] { --lens-color: var(--frontend-stroke); }\n .semantic-lens-kind[data-kind=\"backend\"],\n .semantic-lens-kind[data-kind=\"active\"] { --lens-color: var(--backend-stroke); }\n .semantic-lens-kind[data-kind=\"database\"],\n .semantic-lens-kind[data-kind=\"success\"] { --lens-color: var(--database-stroke); }\n .semantic-lens-kind[data-kind=\"cloud\"],\n .semantic-lens-kind[data-kind=\"waiting\"] { --lens-color: var(--cloud-stroke); }\n .semantic-lens-kind[data-kind=\"messagebus\"] { --lens-color: var(--messagebus-stroke); }\n .semantic-lens-kind[data-kind=\"security\"],\n .semantic-lens-kind[data-kind=\"decision\"],\n .semantic-lens-kind[data-kind=\"failure\"] { --lens-color: var(--security-stroke); }\n .semantic-lens-kind:hover,\n .semantic-lens-kind:focus-visible,\n .semantic-lens-kind[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));\n background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));\n }\n .semantic-lens-kind:focus-visible,\n .semantic-lens-close:focus-visible,\n .semantic-lens-actions button:focus-visible {\n outline: 2px solid var(--database-stroke);\n outline-offset: 1px;\n }\n .semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }\n .semantic-lens-swatch {\n width: 0.48rem;\n height: 0.48rem;\n border-radius: 50%;\n background: var(--lens-color);\n box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);\n }\n .semantic-lens-kind strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.61rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-lens-kind em {\n color: var(--lens-color);\n font-size: 0.54rem;\n font-style: normal;\n font-weight: 800;\n }\n .semantic-lens-status {\n min-height: 2.5rem;\n margin: 0;\n padding: 0.55rem 0.78rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.55rem;\n line-height: 1.45;\n }\n .semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }\n .semantic-lens-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.28rem;\n padding: 0 0.62rem 0.62rem;\n }\n .semantic-lens-actions button {\n min-height: 1.8rem;\n padding: 0.28rem 0.48rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 0.56rem;\n cursor: pointer;\n }\n .semantic-lens-actions button:hover { background: var(--toolbar-hover); }\n .semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }\n @keyframes archify-lens-in {\n from { opacity: 0; transform: translateY(5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n /* Route Probe answers a reader question over the compiled semantic graph:\n choose two stable nodes and reveal the shortest authored directed route.\n The receipt and signal live entirely in the viewer layer. */\n .route-probe {\n position: absolute;\n left: 1rem;\n bottom: 1rem;\n z-index: 12;\n width: min(46rem, calc(100% - 25rem));\n min-width: 18rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.625rem;\n }\n .route-probe[hidden] { display: none; }\n .route-probe[data-route-dock=\"top\"] {\n top: 1rem;\n bottom: auto;\n }\n html[data-preset=\"blueprint\"] .route-probe { border-radius: 0.25rem; }\n .route-probe-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.65rem;\n padding: 0.52rem 0.58rem 0.44rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);\n }\n .route-probe-copy { min-width: 0; }\n .route-probe-eyebrow {\n display: block;\n color: var(--backend-stroke);\n font-size: 0.48rem;\n font-weight: 800;\n letter-spacing: 0.15em;\n text-transform: uppercase;\n }\n .route-probe-title {\n display: block;\n margin-top: 0.14rem;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.72rem;\n line-height: 1.25;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .route-probe-actions { display: flex; gap: 0.2rem; }\n .route-probe button {\n min-height: 1.55rem;\n padding: 0.25rem 0.42rem;\n border: 0;\n border-radius: 0.36rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n cursor: pointer;\n }\n .route-probe button:hover,\n .route-probe button:focus-visible { background: var(--toolbar-hover); }\n .route-probe button:focus-visible {\n outline: 2px solid var(--backend-stroke);\n outline-offset: 1px;\n }\n .route-probe-copy-link { color: var(--frontend-stroke) !important; }\n .route-probe-find { color: var(--backend-stroke) !important; }\n .route-probe-copy-link[hidden] { display: none; }\n .route-probe-find[hidden] { display: none; }\n .route-probe-path {\n display: flex;\n align-items: center;\n min-height: 2.2rem;\n padding: 0.42rem 0.58rem 0.24rem;\n overflow-x: auto;\n scrollbar-width: thin;\n white-space: nowrap;\n }\n .route-probe-node,\n .route-probe button.route-probe-node {\n flex: none;\n max-width: 9.5rem;\n overflow: hidden;\n min-height: 1.75rem !important;\n padding: 0.22rem 0.38rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));\n border-radius: 999px;\n background: color-mix(in srgb, var(--backend-fill) 52%, transparent);\n color: var(--text);\n font-size: 0.56rem;\n font-weight: 700;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .route-probe-node[data-endpoint=\"start\"] {\n border-color: var(--frontend-stroke);\n color: var(--frontend-stroke);\n }\n .route-probe-node[data-endpoint=\"end\"] {\n border-color: var(--security-stroke);\n color: var(--security-stroke);\n }\n .route-probe-node[data-route-journey-state=\"past\"] { opacity: 0.66; }\n .route-probe-node[data-route-journey-state=\"future\"] { opacity: 0.48; }\n .route-probe-node[aria-current=\"step\"] {\n border-color: var(--backend-stroke);\n background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));\n color: var(--text);\n box-shadow: 0 0 0 1px color-mix(in srgb, var(--backend-stroke) 42%, transparent), 0 0 14px color-mix(in srgb, var(--backend-stroke) 34%, transparent);\n opacity: 1;\n }\n html[data-preset=\"blueprint\"] .route-probe-node[aria-current=\"step\"] {\n border-style: double;\n border-width: 3px;\n border-radius: 0.2rem;\n box-shadow: none;\n }\n .route-probe-arrow {\n flex: none;\n padding: 0 0.28rem;\n color: var(--text-faint);\n font-size: 0.65rem;\n }\n .route-probe-placeholder {\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.03em;\n }\n .route-probe-status {\n display: block;\n min-height: 1.45rem;\n padding: 0.08rem 0.58rem 0.44rem;\n color: var(--text-faint);\n font-size: 0.52rem;\n line-height: 1.35;\n }\n .route-journey-controls {\n display: grid;\n grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);\n justify-content: start;\n gap: 0.22rem;\n padding: 0.08rem 0.58rem 0.28rem;\n }\n .route-journey-controls[hidden] { display: none; }\n .route-journey-controls button {\n min-height: 1.8rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);\n font-size: 0.54rem;\n font-weight: 700;\n }\n .route-journey-controls button:disabled {\n cursor: default;\n opacity: 0.34;\n }\n .route-journey-play { color: var(--backend-stroke) !important; }\n .route-journey-overview { color: var(--frontend-stroke) !important; }\n .route-journey-controls[data-playing=\"true\"] .route-journey-play {\n border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 62%, transparent);\n }\n .route-probe[data-state=\"error\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));\n }\n .route-probe[data-state=\"error\"] .route-probe-status { color: var(--security-stroke); }\n\n .focus-chip {\n position: absolute;\n left: 1rem;\n top: 1rem;\n z-index: 12;\n display: block;\n width: min(22rem, calc(100% - 13rem));\n max-width: calc(100% - 13rem);\n overflow: hidden;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(16px);\n font-size: 0.6875rem;\n }\n .focus-chip[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .focus-chip { border-radius: 0.3rem; }\n .focus-chip button {\n flex: none;\n padding: 0.3rem 0.45rem;\n border-radius: 0.35rem;\n font-size: 0.625rem;\n }\n .relationship-lens-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 0.75rem;\n padding: 0.7rem 0.75rem 0.65rem;\n border-bottom: 1px solid var(--toolbar-border);\n background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);\n }\n .relationship-lens-copy { min-width: 0; }\n .relationship-lens-actions {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 0.18rem;\n }\n .relationship-lens-actions button { white-space: nowrap; }\n .relationship-lens-actions #btn-focus-clear {\n display: grid;\n width: 1.75rem;\n height: 1.75rem;\n padding: 0;\n place-items: center;\n color: var(--text-muted);\n font-size: 1rem;\n line-height: 1;\n }\n .relationship-lens-actions #btn-focus-clear:hover,\n .relationship-lens-actions #btn-focus-clear:focus-visible {\n background: var(--toolbar-hover);\n color: var(--text);\n }\n .relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }\n .relationship-lens-actions #btn-focus-relations { display: none; }\n .relationship-lens-eyebrow {\n display: block;\n margin-bottom: 0.18rem;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n }\n .relationship-lens-title {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.8rem;\n line-height: 1.35;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail {\n display: block;\n margin-top: 0.12rem;\n overflow: hidden;\n color: var(--text-muted);\n font-size: 0.625rem;\n line-height: 1.4;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-detail[hidden] { display: none; }\n .semantic-passport-meta {\n display: flex;\n flex-wrap: wrap;\n gap: 0.24rem;\n margin-top: 0.42rem;\n }\n .semantic-passport-meta span,\n .semantic-passport-meta code {\n max-width: 100%;\n overflow: hidden;\n padding: 0.14rem 0.34rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);\n border-radius: 999px;\n background: color-mix(in srgb, var(--panel) 68%, transparent);\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n letter-spacing: 0.04em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-meta [data-passport=\"kind\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-weight: 800;\n text-transform: uppercase;\n }\n .semantic-passport-meta [data-passport=\"tag\"] { color: var(--cloud-stroke); }\n .semantic-passport-meta [hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-meta span,\n html[data-preset=\"blueprint\"] .semantic-passport-meta code { border-radius: 0.1rem; }\n .semantic-passport-evidence {\n margin-top: 0.52rem;\n padding: 0.5rem;\n border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));\n }\n .semantic-passport-evidence[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .semantic-passport-evidence { border-radius: 0.18rem; }\n .semantic-passport-evidence-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.55rem;\n margin-bottom: 0.35rem;\n }\n .semantic-passport-evidence-status {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n color: var(--backend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .semantic-passport-evidence-status::before {\n content: '';\n width: 0.38rem;\n height: 0.38rem;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);\n }\n .semantic-passport-repository {\n min-width: 0;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-repository:hover,\n .semantic-passport-repository:focus-visible { color: var(--backend-stroke); }\n .semantic-passport-evidence-links { display: grid; gap: 0.22rem; }\n .semantic-passport-source {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.15rem 0.45rem;\n align-items: center;\n padding: 0.34rem 0.4rem;\n border: 1px solid transparent;\n border-radius: 0.38rem;\n color: var(--text-muted);\n text-decoration: none;\n }\n .semantic-passport-source:hover,\n .semantic-passport-source:focus-visible {\n border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);\n background: color-mix(in srgb, var(--backend-fill) 32%, transparent);\n color: var(--text);\n }\n .semantic-passport-source strong {\n overflow: hidden;\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .semantic-passport-source code {\n color: var(--backend-stroke);\n font: inherit;\n font-size: 0.5rem;\n }\n .semantic-passport-source small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-summary {\n display: block;\n margin-top: 0.12rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n .semantic-passport-reach {\n display: grid;\n gap: 0.28rem;\n margin-top: 0.52rem;\n padding-top: 0.48rem;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);\n }\n .semantic-passport-reach[hidden] { display: none; }\n .semantic-passport-reach-label {\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n }\n .semantic-passport-reach-actions {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 0.25rem;\n }\n .semantic-passport-reach-actions button {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n min-width: 0;\n min-height: 2rem;\n padding: 0.32rem 0.42rem;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);\n background: color-mix(in srgb, var(--panel) 70%, transparent);\n color: var(--text-muted);\n text-align: left;\n }\n .semantic-passport-reach-actions button:hover:not(:disabled),\n .semantic-passport-reach-actions button:focus-visible {\n border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));\n color: var(--text);\n }\n .semantic-passport-reach-actions button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .semantic-passport-reach-actions button:disabled {\n cursor: default;\n opacity: 0.5;\n }\n .semantic-passport-reach-actions button[aria-pressed=\"true\"] {\n border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);\n color: var(--text);\n }\n #btn-reach-upstream {\n --reach-color: var(--database-stroke);\n --reach-fill: var(--database-fill);\n }\n #btn-reach-downstream {\n --reach-color: var(--backend-stroke);\n --reach-fill: var(--backend-fill);\n }\n .semantic-passport-reach-actions strong {\n color: var(--reach-color, var(--frontend-stroke));\n font-size: 0.625rem;\n }\n .semantic-passport-reach-status {\n color: var(--text-faint);\n font-size: 0.525rem;\n line-height: 1.4;\n }\n .semantic-passport-reach-status[hidden] { display: none; }\n .relationship-lens-list {\n max-height: min(18rem, 46vh);\n overflow: auto;\n padding: 0.4rem;\n scrollbar-width: thin;\n scrollbar-color: var(--frontend-stroke) transparent;\n }\n .relationship-lens-list::-webkit-scrollbar { width: 4px; }\n .relationship-lens-list::-webkit-scrollbar-thumb {\n border-radius: 999px;\n background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);\n }\n .relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }\n .relationship-lens-group-title {\n display: block;\n padding: 0.24rem 0.38rem 0.16rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .relationship-lens-row {\n display: grid;\n grid-template-columns: 2.1rem minmax(0, 1fr);\n gap: 0.06rem 0.45rem;\n width: 100%;\n padding: 0.45rem 0.5rem !important;\n text-align: left;\n }\n .relationship-lens-row:hover,\n .relationship-lens-row:focus-visible,\n .relationship-lens-row[data-preview-active=\"true\"] {\n background: var(--toolbar-hover);\n box-shadow: inset 2px 0 0 var(--frontend-stroke);\n }\n .relationship-lens-row:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .relationship-lens-direction {\n grid-row: 1 / 3;\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n }\n .relationship-lens-row[data-direction=\"in\"] .relationship-lens-direction { color: var(--database-stroke); }\n .relationship-lens-row[data-direction=\"loop\"] .relationship-lens-direction { color: var(--security-stroke); }\n .relationship-lens-row strong {\n overflow: hidden;\n color: var(--text);\n font-size: 0.6875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-row small {\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .relationship-lens-empty {\n margin: 0;\n padding: 0.75rem;\n color: var(--text-faint);\n font-size: 0.625rem;\n text-align: center;\n }\n\n /* Diagram Guide keeps the artifact's growing reader vocabulary\n discoverable without widening the permanent control bar. It derives\n honest counts at runtime and delegates every action to an existing\n production interaction instead of creating a second command system. */\n .diagram-guide {\n position: absolute;\n top: 1rem;\n right: 1rem;\n z-index: 26;\n width: min(32rem, calc(100% - 2rem));\n max-height: min(42rem, calc(100% - 2rem));\n overflow: auto;\n border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));\n border-radius: 0.82rem;\n background:\n linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),\n var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);\n backdrop-filter: blur(18px);\n animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n }\n .diagram-guide[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .diagram-guide { border-radius: 0.28rem; }\n .diagram-guide-head {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: 1rem;\n padding: 0.82rem 0.9rem 0.68rem;\n border-bottom: 1px solid var(--toolbar-border);\n }\n .diagram-guide-eyebrow {\n display: block;\n color: var(--cloud-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.16em;\n text-transform: uppercase;\n }\n .diagram-guide-title {\n display: block;\n margin-top: 0.16rem;\n color: var(--text);\n font-size: 0.86rem;\n letter-spacing: -0.02em;\n }\n .diagram-guide-close {\n width: 1.8rem;\n height: 1.8rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .diagram-guide-close:hover,\n .diagram-guide-close:focus-visible { background: var(--toolbar-hover); }\n .diagram-guide-stats {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n padding: 0.54rem 0.9rem;\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.025em;\n }\n .diagram-guide-stats::before {\n content: '';\n width: 0.42rem;\n height: 0.42rem;\n flex: none;\n border-radius: 50%;\n background: var(--backend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);\n }\n .diagram-guide-actions {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 0.38rem;\n padding: 0.62rem;\n }\n .diagram-guide-action {\n --guide-accent: var(--frontend-stroke);\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n min-height: 4.15rem;\n padding: 0.55rem 0.58rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n color: var(--toolbar-text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;\n }\n .diagram-guide-action[data-guide-action=\"route\"] { --guide-accent: var(--backend-stroke); }\n .diagram-guide-action[data-guide-action=\"map\"] { --guide-accent: var(--database-stroke); }\n .diagram-guide-action[data-guide-action=\"lens\"] { --guide-accent: var(--messagebus-stroke); }\n .diagram-guide-action[data-guide-action=\"story\"] { --guide-accent: var(--security-stroke); }\n .diagram-guide-action[data-guide-action=\"present\"] {\n --guide-accent: var(--cloud-stroke);\n }\n .diagram-guide-action:hover,\n .diagram-guide-action:focus-visible {\n border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));\n background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));\n transform: translateY(-1px);\n }\n .diagram-guide-action:focus-visible,\n .diagram-guide-close:focus-visible {\n outline: 2px solid var(--cloud-stroke);\n outline-offset: 1px;\n }\n .diagram-guide-action:disabled {\n opacity: 0.42;\n cursor: default;\n transform: none;\n }\n .diagram-guide-index {\n display: grid;\n place-items: center;\n width: 1.65rem;\n height: 1.65rem;\n border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));\n border-radius: 0.35rem;\n color: var(--guide-accent);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.06em;\n }\n .diagram-guide-action-copy { min-width: 0; }\n .diagram-guide-action strong {\n display: block;\n overflow: hidden;\n color: var(--text);\n font-size: 0.66rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-action small {\n display: -webkit-box;\n margin-top: 0.18rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5rem;\n line-height: 1.35;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n }\n .diagram-guide kbd {\n align-self: start;\n min-width: 1.45rem;\n padding: 0.12rem 0.3rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5rem;\n text-align: center;\n }\n .diagram-guide-shortcuts {\n display: flex;\n flex-wrap: wrap;\n gap: 0.34rem 0.62rem;\n padding: 0.58rem 0.9rem 0.68rem;\n border-top: 1px solid var(--toolbar-border);\n color: var(--text-faint);\n font-size: 0.5rem;\n }\n .diagram-guide-shortcuts span {\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n white-space: nowrap;\n }\n .diagram-guide-feedback {\n min-height: 1rem;\n margin: -0.18rem 0.9rem 0.62rem;\n color: var(--security-stroke);\n font-size: 0.5rem;\n }\n .diagram-guide-feedback:empty { display: none; }\n @keyframes archify-guide-in {\n from { opacity: 0; transform: translateY(-5px) scale(0.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n }\n\n .node-finder {\n position: absolute;\n top: 1rem;\n left: 1rem;\n z-index: 24;\n display: flex;\n flex-direction: column;\n width: min(22rem, calc(100% - 2rem));\n max-height: calc(100% - 2rem);\n overflow: hidden;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-menu-bg);\n color: var(--toolbar-text);\n box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);\n backdrop-filter: blur(16px);\n }\n .node-finder[hidden] { display: none; }\n .node-finder[data-context=\"route-source\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));\n }\n .node-finder[data-context=\"route-target\"] {\n border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));\n }\n html[data-preset=\"blueprint\"] .node-finder { border-radius: 0.3rem; }\n .node-finder-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.7rem 0.8rem 0.45rem;\n }\n .node-finder-head strong {\n color: var(--text);\n font-size: 0.6875rem;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-source\"] .node-finder-head strong { color: var(--frontend-stroke); }\n .node-finder[data-context=\"route-target\"] .node-finder-head strong { color: var(--security-stroke); }\n .node-finder-close {\n width: 1.75rem;\n height: 1.75rem;\n border: 0;\n border-radius: 0.35rem;\n background: transparent;\n color: var(--toolbar-text);\n font: inherit;\n font-size: 1rem;\n cursor: pointer;\n }\n .node-finder-close:hover,\n .node-finder-close:focus-visible { background: var(--toolbar-hover); }\n .node-finder-close:focus-visible,\n .node-finder-result:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: -2px;\n }\n .node-finder-search {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n align-items: center;\n gap: 0.55rem;\n margin: 0 0.55rem 0.55rem;\n padding: 0 0.7rem;\n min-height: 2.6rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 78%, transparent);\n transition: border-color 160ms ease-out, box-shadow 160ms ease-out;\n }\n html[data-preset=\"blueprint\"] .node-finder-search { border-radius: 0.18rem; }\n .node-finder-search \u003e span { color: var(--frontend-stroke); font-size: 0.875rem; }\n .node-finder-search:focus-within {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);\n }\n .node-finder-input {\n appearance: none;\n width: 100%;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n font-size: 0.75rem;\n }\n .node-finder-input:focus-visible { outline: none; }\n .node-finder-input::placeholder { color: var(--text-faint); }\n .node-finder kbd {\n padding: 0.1rem 0.32rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.25rem;\n color: var(--text-faint);\n font: inherit;\n font-size: 0.5625rem;\n }\n .node-finder-results {\n display: grid;\n flex: 1 1 auto;\n gap: 0;\n min-height: 0;\n max-height: min(18rem, 48vh);\n margin: 0 0.55rem 0.45rem;\n padding: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);\n border-radius: 0.55rem;\n background: color-mix(in srgb, var(--panel) 54%, transparent);\n scroll-padding-block: 0.25rem;\n scrollbar-width: thin;\n }\n html[data-preset=\"blueprint\"] .node-finder-results { border-radius: 0.18rem; }\n .node-finder-result {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem 0.75rem;\n width: 100%;\n min-height: 3.25rem;\n padding: 0.58rem 0.65rem;\n border: 0;\n border-radius: 0;\n background: transparent;\n color: var(--text);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color 160ms ease-out;\n }\n .node-finder-result:not(:last-child) {\n border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);\n }\n .node-finder-result:hover,\n .node-finder-result:focus-visible {\n position: relative;\n z-index: 1;\n background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));\n }\n .node-finder-result strong {\n overflow: hidden;\n font-size: 0.75rem;\n line-height: 1.25;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result small {\n grid-column: 1 / -1;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.5625rem;\n letter-spacing: 0.015em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .node-finder-result em {\n align-self: center;\n color: var(--frontend-stroke);\n font-size: 0.625rem;\n font-style: normal;\n }\n .node-finder[data-context^=\"route-\"] .node-finder-result em {\n padding: 0.1rem 0.3rem;\n border: 1px solid color-mix(in srgb, currentColor 52%, transparent);\n border-radius: 999px;\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n }\n .node-finder[data-context=\"route-target\"] .node-finder-result em { color: var(--security-stroke); }\n .node-finder-empty {\n padding: 1.1rem 0.75rem 1.25rem;\n color: var(--text-faint);\n font-size: 0.6875rem;\n text-align: center;\n }\n .node-finder-status {\n margin: 0;\n padding: 0.1rem 0.8rem 0.65rem;\n color: var(--text-faint);\n font-size: 0.5625rem;\n }\n\n .guided-views {\n display: grid;\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem auto;\n align-items: stretch;\n gap: 0.35rem;\n min-width: 0;\n margin: 0 0 0.75rem;\n padding: 0.35rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.85rem;\n background: var(--toolbar-bg);\n background: linear-gradient(120deg, var(--toolbar-bg), color-mix(in srgb, var(--toolbar-bg) 82%, var(--frontend-fill)));\n box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);\n backdrop-filter: blur(12px);\n }\n .guided-views[hidden] { display: none; }\n\n html[data-preset=\"blueprint\"] .guided-views {\n border-color: var(--panel-border);\n border-radius: 0.35rem;\n background:\n linear-gradient(90deg, color-mix(in srgb, var(--frontend-fill) 36%, transparent), transparent 24%),\n var(--toolbar-bg);\n box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);\n }\n html[data-preset=\"blueprint\"] .guided-views button { border-radius: 0.2rem; }\n html[data-preset=\"blueprint\"] .guided-view-progress { border-radius: 0; }\n html[data-preset=\"blueprint\"] .guided-view-progress span { border-radius: 0; }\n .guided-views button {\n min-width: 0;\n padding: 0.45rem 0.6rem;\n border-radius: 0.55rem;\n font-size: 0.75rem;\n }\n .guided-views \u003e #guided-view-prev,\n .guided-views \u003e #guided-view-next { min-width: 2.75rem; min-height: 2.75rem; }\n .guided-views button:disabled { opacity: 0.3; cursor: default; }\n .guided-view-copy {\n min-width: 0;\n padding: 0.2rem 0.5rem;\n border-left: 1px solid var(--toolbar-border);\n overflow: hidden;\n }\n .guided-view-meta {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-height: 1rem;\n margin-bottom: 0.12rem;\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 700;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n }\n .guided-view-handoff {\n box-sizing: border-box;\n height: 1rem;\n min-width: 0;\n max-width: 15rem;\n overflow: hidden;\n padding: 0 0.38rem;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 46%, transparent);\n border-radius: 999px;\n color: var(--toolbar-text);\n background: color-mix(in srgb, var(--frontend-fill) 44%, transparent);\n font-size: 0.5rem;\n line-height: calc(1rem - 2px);\n letter-spacing: 0.06em;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-view-handoff[hidden] { display: none; }\n html[data-preset=\"blueprint\"] .guided-view-handoff { border-radius: 0.15rem; }\n .chapter-handoff-overlay { pointer-events: none; }\n .chapter-handoff-anchor {\n fill: color-mix(in srgb, var(--frontend-fill) 10%, transparent);\n stroke: var(--frontend-stroke);\n stroke-width: 2;\n stroke-dasharray: 4 4;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n animation: archify-chapter-anchor 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"stay\"] { opacity: 1; }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"enter\"] { opacity: 0.78; }\n svg[data-chapter-handoff] [data-node-id][data-chapter-role=\"leave\"] { opacity: 0.26; }\n @keyframes archify-chapter-anchor {\n 0% { opacity: 0.35; stroke-dashoffset: 8; }\n 45% { opacity: 1; }\n 100% { opacity: 0.72; stroke-dashoffset: 0; }\n }\n .guided-view-progress {\n width: 3.5rem;\n height: 2px;\n overflow: hidden;\n border-radius: 999px;\n background: var(--toolbar-border);\n }\n .guided-view-progress span {\n display: block;\n width: 100%;\n height: 100%;\n border-radius: inherit;\n background: var(--frontend-stroke);\n transform: scaleX(0);\n transform-origin: left center;\n }\n .guided-view-copy strong,\n .guided-view-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .guided-view-copy strong { color: var(--toolbar-text); font-size: 0.75rem; line-height: 1.35; }\n .guided-view-copy small { margin-top: 0; color: var(--text-muted); font-size: 0.625rem; line-height: 1.35; }\n .guided-story-caption {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n gap: 0.12rem 0.55rem;\n align-items: center;\n min-width: 0;\n margin-top: 0.18rem;\n padding: 0.3rem 0.5rem;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 32%, var(--toolbar-border));\n border-radius: 0.58rem;\n background: color-mix(in srgb, var(--frontend-fill) 26%, transparent);\n animation: archify-story-caption-in 140ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n .guided-story-caption[hidden] { display: none; }\n .guided-story-caption-index {\n grid-row: 1 / span 2;\n align-self: stretch;\n display: inline-grid;\n min-width: 3.3rem;\n place-items: center;\n padding-right: 0.52rem;\n border-right: 1px solid color-mix(in srgb, var(--frontend-stroke) 28%, var(--toolbar-border));\n color: var(--frontend-stroke);\n font-size: 0.5625rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n .guided-story-caption strong,\n .guided-story-caption small {\n display: block;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-story-caption strong { color: var(--toolbar-text); font-size: 0.6875rem; line-height: 1.3; }\n .guided-story-caption small { color: var(--text-muted); font-size: 0.5625rem; line-height: 1.35; }\n .guided-story-caption-next {\n grid-column: 3;\n grid-row: 1 / span 2;\n display: grid;\n min-width: 6.4rem;\n max-width: 9.5rem;\n align-self: stretch;\n align-content: center;\n padding-left: 0.58rem;\n border-left: 1px solid color-mix(in srgb, var(--frontend-stroke) 22%, var(--toolbar-border));\n }\n .guided-story-caption-next[hidden] { display: none; }\n .guided-story-caption-next small {\n color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--text-muted));\n font-weight: 800;\n letter-spacing: 0.09em;\n text-transform: uppercase;\n }\n .guided-story-caption-next strong { color: var(--text-muted); font-weight: 700; }\n html[data-preset=\"blueprint\"] .guided-story-caption { border-radius: 0.2rem; }\n .guided-views[data-story-beat] .guided-view-copy \u003e #guided-view-label,\n .guided-views[data-story-beat] .guided-view-copy \u003e #guided-view-note { display: none; }\n @keyframes archify-story-caption-in {\n from { opacity: 0; transform: translateY(3px); }\n to { opacity: 1; transform: translateY(0); }\n }\n .guided-view-trail {\n display: flex;\n align-items: center;\n gap: 0.28rem;\n min-width: 0;\n min-height: 1.7rem;\n margin-top: 0;\n padding: 0;\n overflow-x: auto;\n color: var(--text-faint);\n overscroll-behavior-x: contain;\n touch-action: pan-x;\n scrollbar-width: none;\n white-space: nowrap;\n }\n .guided-view-trail[hidden] { display: none; }\n .guided-view-trail::-webkit-scrollbar { display: none; }\n .guided-view-trail .guided-view-stop {\n appearance: none;\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 0.28rem;\n min-height: 1.5rem;\n padding: 0.1rem 0.3rem 0.1rem 0.18rem;\n border: 1px solid transparent;\n border-radius: 999px;\n background: transparent;\n color: var(--text-muted);\n cursor: pointer;\n font-family: inherit;\n font-size: 0.5625rem;\n font-weight: 650;\n letter-spacing: 0.02em;\n line-height: 1;\n transition: background 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease;\n }\n .guided-view-stop:hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 36%, transparent);\n background: color-mix(in srgb, var(--frontend-fill) 34%, transparent);\n }\n .guided-view-stop:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .guided-view-stop:disabled { cursor: wait; }\n .guided-view-stop::before {\n display: inline-grid;\n width: 1rem;\n height: 1rem;\n place-items: center;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 54%, var(--toolbar-border));\n border-radius: 50%;\n background: color-mix(in srgb, var(--frontend-fill) 58%, var(--toolbar-bg));\n color: var(--frontend-stroke);\n content: attr(data-story-number);\n font-size: 0.5rem;\n line-height: 1;\n }\n .guided-view-stop + .guided-view-stop::after {\n order: -1;\n color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--text-faint));\n content: '\\00b7';\n font-size: 0.65rem;\n }\n .guided-view-stop[data-story-link=\"forward\"]::after { content: '\\2192'; }\n .guided-view-stop[data-story-link=\"reverse\"]::after { content: '\\2190'; }\n .guided-view-stop[data-story-link=\"multiple\"]::after { content: '\\21c4'; }\n .guided-view-stop[data-story-beat-state=\"pending\"] { opacity: 0.38; }\n .guided-view-stop[data-story-beat-state=\"next\"] {\n border-style: dashed;\n border-color: color-mix(in srgb, var(--frontend-stroke) 42%, var(--toolbar-border));\n color: color-mix(in srgb, var(--toolbar-text) 68%, var(--text-muted));\n opacity: 0.58;\n }\n .guided-view-stop[data-story-beat-state=\"past\"] { color: var(--text-muted); opacity: 0.76; }\n .guided-view-stop[data-story-beat-state=\"active\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border));\n background: color-mix(in srgb, var(--frontend-fill) 42%, transparent);\n color: var(--toolbar-text);\n font-weight: 800;\n opacity: 1;\n }\n .guided-view-stop[data-story-beat-state=\"active\"]::before {\n border-color: var(--frontend-stroke);\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 54%, transparent);\n }\n html[data-preset=\"blueprint\"] .guided-view-stop,\n html[data-preset=\"blueprint\"] .guided-view-stop::before { border-radius: 0.1rem; }\n html[data-preset=\"blueprint\"] .guided-view-stop[data-story-beat-state=\"active\"]::before { box-shadow: none; }\n .guided-view-actions { display: flex; align-items: stretch; gap: 0.2rem; }\n .guided-view-actions button { white-space: nowrap; }\n .guided-view-play {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.38rem;\n min-width: 6.25rem !important;\n color: var(--frontend-stroke) !important;\n font-size: 0.625rem !important;\n }\n .guided-view-play[aria-pressed=\"true\"] { background: var(--toolbar-hover); }\n .guided-view-all { min-width: 3.25rem !important; color: var(--text-muted) !important; font-size: 0.625rem !important; }\n .guided-view-beat-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.3rem;\n min-width: 5.4rem !important;\n min-height: 1.5rem;\n color: var(--text-muted) !important;\n font-size: 0.5625rem !important;\n letter-spacing: 0.025em;\n transition: background 140ms ease, border-color 140ms ease, color 140ms ease;\n }\n .guided-view-beat-link:not(:disabled):hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));\n color: var(--frontend-stroke) !important;\n }\n .guided-view-beat-link[data-copy-state=\"copied\"] {\n border-color: color-mix(in srgb, var(--backend-stroke) 58%, var(--toolbar-border));\n background: color-mix(in srgb, var(--backend-fill) 46%, transparent);\n color: var(--backend-stroke) !important;\n }\n .guided-view-index {\n grid-column: 1 / -1;\n min-width: 0;\n padding: 0.28rem 0.12rem 0.08rem;\n overflow: hidden;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n @media (min-width: 721px) {\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-index,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-beat-link,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-all,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-trail,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-copy \u003e #guided-view-label,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-view-copy \u003e #guided-view-note { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views[data-playing=\"true\"] .guided-story-caption { margin-top: 0.08rem; }\n }\n .guided-view-chapters {\n display: flex;\n gap: 0.28rem;\n min-width: 0;\n margin: 0;\n padding: 0.08rem 0.05rem 0.2rem;\n overflow-x: auto;\n list-style: none;\n scroll-padding-inline: 0.05rem;\n scroll-snap-type: x proximity;\n scrollbar-width: none;\n }\n .guided-view-chapters::-webkit-scrollbar { display: none; }\n .guided-view-chapters li {\n display: flex;\n flex: 1 1 0;\n min-width: 9.5rem;\n scroll-snap-align: center;\n }\n .guided-view-chapter {\n position: relative;\n display: grid !important;\n grid-template-columns: 1.55rem minmax(0, 1fr) auto;\n align-items: center;\n width: 100%;\n min-height: 2.75rem;\n padding: 0.36rem 0.48rem !important;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent) !important;\n border-radius: 0.48rem !important;\n background: color-mix(in srgb, var(--toolbar-bg) 88%, transparent) !important;\n color: var(--text-muted) !important;\n text-align: left;\n transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;\n }\n .guided-view-chapter:hover {\n border-color: color-mix(in srgb, var(--frontend-stroke) 58%, var(--toolbar-border)) !important;\n background: color-mix(in srgb, var(--frontend-fill) 42%, var(--toolbar-bg)) !important;\n }\n .guided-view-chapter:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 1px;\n }\n .guided-view-chapter-index {\n display: inline-grid;\n width: 1.32rem;\n height: 1.32rem;\n place-items: center;\n border: 1px solid color-mix(in srgb, var(--frontend-stroke) 48%, var(--toolbar-border));\n border-radius: 50%;\n color: var(--frontend-stroke);\n font-size: 0.5rem;\n font-weight: 800;\n letter-spacing: 0.03em;\n }\n .guided-view-chapter-title {\n min-width: 0;\n overflow: hidden;\n color: var(--toolbar-text);\n font-size: 0.625rem;\n font-weight: 700;\n line-height: 1.3;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .guided-view-chapter-count {\n grid-column: 3;\n grid-row: 1;\n margin-left: 0.38rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-style: normal;\n font-weight: 650;\n white-space: nowrap;\n }\n .guided-view-chapter-delta {\n display: inline-flex;\n grid-column: 3;\n grid-row: 1;\n align-items: center;\n gap: 0.22rem;\n margin-left: 0.38rem;\n color: var(--text-faint);\n font-size: 0.5rem;\n font-weight: 750;\n letter-spacing: 0.01em;\n white-space: nowrap;\n }\n .guided-view-chapter-delta[hidden] { display: none; }\n .guided-view-chapter-delta [data-delta-kind=\"stay\"] { color: var(--text-muted); }\n .guided-view-chapter-delta [data-delta-kind=\"enter\"] { color: var(--frontend-stroke); }\n .guided-view-chapter-delta [data-delta-kind=\"leave\"] { color: var(--security-stroke); }\n .guided-view-chapter[data-preview-active=\"true\"] {\n border-color: color-mix(in srgb, var(--frontend-stroke) 72%, var(--toolbar-border)) !important;\n background: color-mix(in srgb, var(--frontend-fill) 54%, var(--toolbar-bg)) !important;\n }\n .guided-view-chapter[data-chapter-position=\"current\"] {\n border: 2px solid var(--frontend-stroke) !important;\n padding: calc(0.36rem - 1px) calc(0.48rem - 1px) !important;\n box-shadow: inset 3px 0 0 var(--frontend-stroke);\n color: var(--toolbar-text) !important;\n }\n .guided-view-chapter[data-chapter-position=\"current\"] .guided-view-chapter-index {\n background: var(--frontend-stroke);\n color: var(--bg);\n }\n .guided-view-chapter[data-chapter-position=\"before\"] {\n border-style: solid !important;\n opacity: 0.72;\n }\n .guided-view-chapter[data-chapter-position=\"after\"] { border-style: dashed !important; }\n html[data-preset=\"signal-flow\"] .guided-view-chapter[data-chapter-position=\"current\"] {\n box-shadow: inset 3px 0 0 var(--frontend-stroke), 0 0 18px color-mix(in srgb, var(--frontend-stroke) 18%, transparent);\n }\n html[data-preset=\"blueprint\"] .guided-view-chapter,\n html[data-preset=\"blueprint\"] .guided-view-chapter-index { border-radius: 0.12rem !important; }\n\n /* Story Shelf — keep every authored chapter and the Play action visible,\n but do not spend a second row on unavailable director controls before\n the reader enters a chapter. Existing data-active-view state expands\n the full guided surface without a new toggle or stored preference. */\n .guided-views[data-active-view=\"all\"] {\n grid-template-columns: minmax(11rem, .72fr) auto minmax(0, 2fr);\n align-items: center;\n padding: 0.28rem 0.35rem;\n }\n .guided-views[data-active-view=\"all\"] \u003e #guided-view-prev,\n .guided-views[data-active-view=\"all\"] \u003e #guided-view-next,\n .guided-views[data-active-view=\"all\"] .guided-view-beat-link,\n .guided-views[data-active-view=\"all\"] .guided-view-all { display: none; }\n .guided-views[data-active-view=\"all\"] .guided-view-copy {\n grid-column: 1;\n grid-row: 1;\n padding: 0.1rem 0.55rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-copy \u003e #guided-view-note { display: none; }\n .guided-views[data-active-view=\"all\"] .guided-view-actions {\n display: block;\n grid-column: 2;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-play { min-height: 2.75rem; }\n .guided-views[data-active-view=\"all\"] .guided-view-index {\n grid-column: 3;\n grid-row: 1;\n padding: 0 0.08rem 0 0.42rem;\n border-top: 0;\n border-left: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n }\n .guided-views[data-active-view=\"all\"] .guided-view-chapters {\n gap: 0.3rem;\n padding: 0;\n }\n\n .cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));\n gap: 1rem;\n margin-top: 2rem;\n }\n\n .card {\n background: var(--panel);\n border-radius: 0.75rem;\n border: 1px solid var(--panel-border);\n padding: 1.25rem;\n }\n\n html[data-preset=\"signal-flow\"] .card {\n background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);\n }\n html[data-preset=\"signal-flow\"][data-theme=\"light\"] .card {\n background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);\n }\n\n html[data-preset=\"blueprint\"] .card {\n position: relative;\n border-color: var(--panel-border);\n border-radius: 0.3rem;\n background: var(--panel);\n box-shadow: none;\n }\n html[data-preset=\"blueprint\"] .card::before {\n content: \"\";\n position: absolute;\n top: -1px;\n left: 1rem;\n width: 2.5rem;\n border-top: 2px solid var(--frontend-stroke);\n }\n\n html[data-preset=\"editorial\"] .card {\n position: relative;\n border-radius: 0.28rem;\n background: var(--panel);\n box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);\n }\n html[data-preset=\"editorial\"] .card::before {\n position: absolute;\n top: -1px;\n left: 1.25rem;\n width: 3.25rem;\n border-top: 3px solid var(--arrow-emphasis);\n content: \"\";\n }\n html[data-preset=\"editorial\"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }\n\n .card-header {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin-bottom: 0.75rem;\n }\n\n .card-dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n\n .card-dot.cyan { background: var(--frontend-stroke); }\n .card-dot.emerald { background: var(--backend-stroke); }\n .card-dot.violet { background: var(--database-stroke); }\n .card-dot.amber { background: var(--cloud-stroke); }\n .card-dot.rose { background: var(--security-stroke); }\n .card-dot.orange { background: var(--messagebus-stroke); }\n .card-dot.slate { background: var(--external-stroke); }\n\n .card h3 { font-size: 0.875rem; font-weight: 600; color: var(--text); }\n\n .card ul {\n list-style: none;\n color: var(--text-muted);\n font-size: 0.75rem;\n }\n\n .card li { margin-bottom: 0.375rem; }\n\n /* ==========================================================\n Print stylesheet — hide interactive controls, force light,\n drop the grid so the diagram doesn't waste ink, use landscape\n so wide diagrams fit, pack summary cards into 2 columns to\n avoid an orphan card on a trailing page.\n ========================================================== */\n @page { size: landscape; margin: 1.5cm; }\n\n @media print {\n /* Force the FULL light palette — including component fills/strokes and\n lane/arrow colors — so printing from dark theme doesn't put neon\n strokes and translucent dark fills on white paper. */\n :root, [data-theme=\"dark\"], [data-theme=\"light\"] {\n --bg: #ffffff;\n --grid: transparent;\n --panel: #ffffff;\n --panel-border: #e2e8f0;\n --text: #0f172a;\n --text-muted: #475569;\n --text-dim: #94a3b8;\n --text-faint: #64748b;\n --mask: #ffffff;\n --lane-fill: rgba(248, 250, 252, 0.65);\n --lane-stroke: #cbd5e1;\n --arrow: #94a3b8;\n --arrow-emphasis: #059669;\n --frontend-fill: rgba(34, 211, 238, 0.15);\n --frontend-stroke: #0891b2;\n --backend-fill: rgba(52, 211, 153, 0.18);\n --backend-stroke: #059669;\n --database-fill: rgba(167, 139, 250, 0.2);\n --database-stroke: #7c3aed;\n --cloud-fill: rgba(251, 191, 36, 0.18);\n --cloud-stroke: #d97706;\n --security-fill: rgba(251, 113, 133, 0.15);\n --security-stroke: #e11d48;\n --messagebus-fill: rgba(251, 146, 60, 0.15);\n --messagebus-stroke:#ea580c;\n --external-fill: rgba(148, 163, 184, 0.18);\n --external-stroke: #64748b;\n }\n body { background: #ffffff !important; padding: 0; }\n .container { max-width: none; }\n .toolbar, .diagram-nav, .focus-chip, .guided-views, .archify-toast, .no-print { display: none !important; }\n .chapter-handoff-overlay { display: none !important; }\n svg [data-node-id][data-chapter-role] { opacity: 1 !important; }\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] { opacity: 1 !important; filter: none !important; }\n .diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }\n html[data-preset=\"signal-flow\"] .diagram-container,\n html[data-preset=\"signal-flow\"] .card { background: #ffffff; }\n .cards { grid-template-columns: 1fr 1fr; }\n /* Ensure elements break sensibly across pages */\n .card { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container { break-inside: avoid; page-break-inside: avoid; }\n .diagram-container svg [data-detail] {\n opacity: 1 !important;\n pointer-events: auto !important;\n }\n .diagram-container svg [data-detail-anchor] { transform: none !important; }\n .diagram-container svg[data-lens-active] [data-node-id],\n .diagram-container svg[data-lens-active] [data-edge-from],\n .diagram-container svg[data-legend-preview-active] [data-node-id],\n .diagram-container svg[data-legend-preview-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n }\n [data-legend-bridge-runtime] { display: none !important; }\n .semantic-lens-overlay { display: none !important; }\n .relationship-hit-overlay { display: none !important; }\n .relationship-pulse-overlay { display: none !important; }\n .route-probe-overlay, .route-journey-overlay { display: none !important; }\n .story-trail-overlay,\n .story-carrier-overlay { display: none !important; }\n .diagram-container svg[data-focus-active] [data-node-id],\n .diagram-container svg[data-focus-active] [data-edge-from],\n .diagram-container svg[data-reach-active] [data-node-id],\n .diagram-container svg[data-reach-active] [data-edge-from],\n .diagram-container svg[data-story-beat] [data-story-step],\n .diagram-container svg[data-story-beat] [data-edge-from][data-story-beat-step],\n .diagram-container svg[data-route-active] [data-node-id],\n .diagram-container svg[data-route-active] [data-edge-from] {\n opacity: 1 !important;\n filter: none !important;\n animation: none !important;\n }\n h1, .subtitle { color: #0f172a; }\n }\n\n /* ==========================================================\n TOOLBAR (theme toggle + export menu)\n ========================================================== */\n .toolbar {\n position: fixed;\n top: 1rem;\n right: 1rem;\n display: flex;\n gap: 0.5rem;\n z-index: 100;\n }\n .toolbar button {\n background: var(--toolbar-bg);\n color: var(--toolbar-text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 0.875rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n font-weight: 500;\n cursor: pointer;\n backdrop-filter: blur(8px);\n transition: background 0.15s, border-color 0.15s;\n display: inline-flex;\n align-items: center;\n gap: 0.375rem;\n min-height: 2.75rem;\n }\n .toolbar button:hover {\n background: var(--toolbar-hover);\n border-color: var(--arrow);\n }\n .toolbar button:focus-visible {\n outline: 2px solid var(--frontend-stroke);\n outline-offset: 2px;\n }\n .toolbar #btn-motion[hidden] { display: none !important; }\n .toolbar #btn-motion { min-width: 4.4rem; }\n .toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }\n .toolbar .preset-wrap { position: relative; }\n .toolbar #btn-preset { min-width: 5.4rem; }\n .preset-control-mark {\n width: 0.58rem;\n height: 0.58rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 0.2rem;\n background: color-mix(in srgb, var(--frontend-stroke) 28%, transparent);\n transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s;\n }\n #btn-preset[data-preset-option=\"signal-flow\"] .preset-control-mark {\n border-radius: 50%;\n box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 78%, transparent);\n }\n #btn-preset[data-preset-option=\"blueprint\"] .preset-control-mark {\n border-radius: 0.06rem;\n background: transparent;\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);\n transform: rotate(45deg) scale(0.84);\n }\n #btn-preset[data-preset-option=\"editorial\"] .preset-control-mark {\n border-color: var(--arrow-emphasis);\n border-radius: 0;\n background: var(--arrow-emphasis);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);\n transform: rotate(45deg) scale(0.72);\n }\n .toolbar .preset-menu {\n position: absolute;\n top: calc(100% + 0.375rem);\n right: 0;\n display: none;\n width: 16.5rem;\n padding: 0.4rem;\n border: 1px solid var(--toolbar-border);\n border-radius: 0.5rem;\n background: var(--toolbar-menu-bg);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);\n }\n .toolbar .preset-menu.open { display: block; }\n .preset-menu-heading {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.42rem 0.6rem 0.55rem;\n color: var(--text-faint);\n font-size: 0.56rem;\n letter-spacing: 0.13em;\n text-transform: uppercase;\n }\n .preset-menu-heading span:last-child {\n font-size: 0.52rem;\n letter-spacing: 0.04em;\n text-transform: none;\n }\n .toolbar .preset-option {\n display: grid;\n grid-template-columns: 2rem minmax(0, 1fr) 1rem;\n align-items: center;\n gap: 0.68rem;\n width: 100%;\n min-height: 3.35rem;\n padding: 0.5rem 0.62rem;\n border: 0;\n border-radius: 0.34rem;\n background: transparent;\n text-align: left;\n }\n .toolbar .preset-option:hover,\n .toolbar .preset-option:focus-visible { background: var(--toolbar-hover); }\n .preset-option-swatch {\n position: relative;\n width: 2rem;\n height: 1.55rem;\n overflow: hidden;\n border: 1px solid #64748b;\n border-radius: 0.24rem;\n background: #0f172a;\n box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);\n }\n .preset-option-swatch::before,\n .preset-option-swatch::after { position: absolute; content: \"\"; }\n .preset-option-swatch.classic::before {\n top: 0.42rem;\n right: 0.35rem;\n bottom: 0.42rem;\n left: 0.35rem;\n border: 1px solid #22d3ee;\n border-radius: 0.16rem;\n background: rgba(34, 211, 238, 0.14);\n }\n .preset-option-swatch.signal-flow {\n border-color: #29415f;\n background: linear-gradient(135deg, #07101e 10%, #10243c 100%);\n }\n .preset-option-swatch.signal-flow::before {\n top: 50%;\n right: 0.2rem;\n left: 0.2rem;\n height: 1px;\n background: linear-gradient(90deg, #67e8f9, #c4b5fd);\n box-shadow: 0 0 8px #67e8f9;\n }\n .preset-option-swatch.signal-flow::after {\n top: calc(50% - 0.13rem);\n right: 0.28rem;\n width: 0.26rem;\n height: 0.26rem;\n border-radius: 50%;\n background: #67e8f9;\n box-shadow: 0 0 7px #67e8f9;\n }\n .preset-option-swatch.blueprint {\n border-color: #34799a;\n border-radius: 0.08rem;\n background-color: #0a2031;\n background-image:\n linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),\n linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);\n background-size: 0.42rem 0.42rem;\n }\n .preset-option-swatch.blueprint::before {\n top: 0.34rem;\n right: 0.38rem;\n bottom: 0.34rem;\n left: 0.38rem;\n border: 1px solid #66d9ef;\n }\n .preset-option-swatch.editorial {\n border-color: #b8aa94;\n border-radius: 0.08rem;\n background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);\n }\n .preset-option-swatch.editorial::before {\n top: 0;\n bottom: 0;\n left: 0.42rem;\n width: 1px;\n background: #c9502d;\n opacity: 0.72;\n }\n .preset-option-swatch.editorial::after {\n top: 0.52rem;\n right: 0.45rem;\n width: 0.38rem;\n height: 0.38rem;\n background: #c9502d;\n transform: rotate(45deg);\n }\n .preset-option-copy { min-width: 0; }\n .preset-option-copy strong,\n .preset-option-copy small { display: block; }\n .preset-option-copy strong {\n color: var(--toolbar-text);\n font-size: 0.72rem;\n font-weight: 600;\n }\n .preset-option-copy small {\n margin-top: 0.16rem;\n overflow: hidden;\n color: var(--text-faint);\n font-size: 0.57rem;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .preset-option-check {\n color: var(--frontend-stroke);\n font-size: 0.78rem;\n opacity: 0;\n }\n .preset-option[aria-checked=\"true\"] .preset-option-check { opacity: 1; }\n html[data-preset=\"editorial\"] .toolbar button,\n html[data-preset=\"editorial\"] .preset-menu,\n html[data-preset=\"editorial\"] .export-menu,\n html[data-preset=\"editorial\"] .overview-map,\n html[data-preset=\"editorial\"] .semantic-lens,\n html[data-preset=\"editorial\"] .route-probe,\n html[data-preset=\"editorial\"] .focus-chip,\n html[data-preset=\"editorial\"] .diagram-guide,\n html[data-preset=\"editorial\"] .node-finder,\n html[data-preset=\"editorial\"] .guided-views,\n html[data-preset=\"editorial\"] .share-chapter-cue {\n border-radius: 0.3rem;\n }\n .motion-control-dot {\n width: 0.46rem;\n height: 0.46rem;\n flex: 0 0 auto;\n border: 1px solid var(--frontend-stroke);\n border-radius: 50%;\n background: var(--frontend-stroke);\n box-shadow: 0 0 9px color-mix(in srgb, var(--frontend-stroke) 72%, transparent);\n }\n #btn-motion[aria-pressed=\"false\"] .motion-control-dot {\n background: transparent;\n box-shadow: none;\n }\n .toolbar .export-wrap { position: relative; }\n .toolbar .export-menu {\n position: absolute;\n top: calc(100% + 0.375rem);\n right: 0;\n background: var(--toolbar-menu-bg);\n border: 1px solid var(--toolbar-border);\n border-radius: 0.5rem;\n padding: 0.375rem;\n min-width: 160px;\n display: none;\n flex-direction: column;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .toolbar .export-menu.open { display: flex; }\n .toolbar .export-menu button {\n background: transparent;\n border: 0;\n justify-content: space-between;\n width: 100%;\n text-align: left;\n padding: 0.5rem 0.75rem;\n }\n .toolbar .export-menu button[hidden] { display: none; }\n .toolbar .export-menu button:hover {\n background: var(--toolbar-hover);\n }\n .toolbar .export-menu .hint {\n color: var(--text-faint);\n font-size: 0.625rem;\n }\n .toolbar .export-menu hr {\n border: 0;\n border-top: 1px solid var(--toolbar-border);\n margin: 0.25rem 0.375rem;\n opacity: 0.5;\n }\n\n /* Toast — brief feedback for actions like \"copied\" */\n .archify-toast {\n position: fixed;\n top: 1rem;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: var(--toolbar-menu-bg);\n color: var(--text);\n border: 1px solid var(--toolbar-border);\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n font-family: inherit;\n font-size: 0.75rem;\n opacity: 0;\n transition: opacity 0.2s, transform 0.2s;\n z-index: 200;\n pointer-events: none;\n box-shadow: 0 4px 20px rgba(0,0,0,0.25);\n }\n .archify-toast.show {\n opacity: 1;\n transform: translateX(-50%) translateY(0);\n }\n\n @media (max-width: 720px) {\n body { padding: 1rem; }\n .toolbar .preset-menu {\n position: fixed;\n top: 4.5rem;\n right: 1rem;\n left: 1rem;\n width: auto;\n }\n .toolbar {\n position: relative;\n justify-content: flex-end;\n margin-bottom: 1rem;\n }\n .header { margin-bottom: 1.25rem; padding-right: 0; }\n html[data-preset=\"signal-flow\"] .header,\n html[data-preset=\"blueprint\"] .header,\n html[data-preset=\"editorial\"] .header { padding-right: 0; }\n .header-row {\n gap: 0.75rem;\n align-items: flex-start;\n }\n html[data-preset=\"signal-flow\"] .header-row,\n html[data-preset=\"blueprint\"] .header-row,\n html[data-preset=\"editorial\"] .header-row { flex-wrap: wrap; }\n html[data-preset=\"signal-flow\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"blueprint\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n html[data-preset=\"editorial\"] .header-row::after {\n margin-left: 0;\n order: 3;\n }\n h1 {\n font-size: 1.25rem;\n line-height: 1.25;\n }\n .subtitle {\n margin-left: 0;\n font-size: 0.8125rem;\n line-height: 1.55;\n }\n .diagram-container {\n padding: 0.75rem;\n border-radius: 0.75rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container {\n padding: 0.75rem 0.75rem 4.25rem;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] {\n overflow-x: auto;\n overflow-y: hidden;\n overscroll-behavior-x: contain;\n scrollbar-width: thin;\n scroll-behavior: smooth;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n min-width: 720px;\n }\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-nav,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .overview-map,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .focus-chip,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .route-probe,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .semantic-lens,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .diagram-guide,\n html:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] .node-finder {\n transform: translateX(var(--archify-scroll-x, 0px));\n }\n .diagram-nav { right: 0.5rem; bottom: 0.5rem; }\n .overview-map {\n right: 0.5rem;\n bottom: 3.7rem;\n width: min(10.25rem, calc(100% - 1rem));\n }\n .overview-map[data-docked=\"true\"] {\n right: 0.5rem;\n top: var(--archify-radar-top, 0.5rem);\n bottom: auto;\n transform: none !important;\n }\n .overview-map[data-docked=\"true\"][data-dock-side=\"left\"] {\n right: auto;\n left: 0.5rem;\n }\n .overview-map-surface { height: 4rem; }\n .semantic-lens {\n right: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n max-height: calc(100% - 4.2rem);\n }\n .semantic-lens[data-dock-side] { left: auto; right: 0.5rem; }\n .semantic-lens-kinds { max-height: min(12rem, 34vh); }\n .focus-chip {\n left: 0.5rem;\n top: 0.5rem;\n width: calc(100% - 1rem);\n max-width: none;\n }\n .relationship-lens-list { max-height: min(12rem, 38vh); }\n .relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-head { border-bottom-color: transparent; }\n .focus-chip:not([data-relations-expanded=\"true\"]) .relationship-lens-list { display: none; }\n /* While a mobile reader previews one relationship, turn the full Lens\n into a compact peek card. This keeps the exact source and target on\n canvas instead of covering them with a long, scrollable list. */\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-list {\n max-height: none;\n padding: 0.35rem;\n overflow: hidden;\n }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group { margin: 0; }\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-group-title,\n .focus-chip[data-relationship-previewing=\"true\"] .relationship-lens-row:not([data-preview-active=\"true\"]) {\n display: none;\n }\n .node-finder {\n top: 0.5rem;\n left: 0.5rem;\n width: min(22rem, calc(100% - 1rem));\n max-height: calc(100% - 1rem);\n }\n .diagram-guide {\n top: 0.5rem;\n right: 0.5rem;\n left: 0.5rem;\n width: auto;\n max-height: calc(100% - 1rem);\n }\n .diagram-guide-head { padding: 0.62rem 0.7rem 0.52rem; }\n .diagram-guide-stats { padding: 0.42rem 0.7rem; }\n .diagram-guide-actions {\n grid-template-columns: 1fr;\n gap: 0.28rem;\n padding: 0.42rem;\n }\n .diagram-guide-action {\n min-height: 3.1rem;\n padding: 0.42rem 0.48rem;\n }\n .diagram-guide-action small {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .diagram-guide-index {\n width: 1.5rem;\n height: 1.5rem;\n }\n .diagram-guide-shortcuts { padding: 0.46rem 0.7rem 0.52rem; }\n .diagram-guide-action[data-guide-action=\"present\"] { grid-column: auto; }\n .route-probe[data-guide-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .node-finder-results { max-height: min(16rem, 38vh); }\n .route-probe {\n left: 0.5rem;\n bottom: 3.7rem;\n width: calc(100% - 1rem);\n min-width: 0;\n }\n .route-probe[data-route-dock=\"top\"] {\n top: 0.5rem;\n bottom: auto;\n }\n .route-probe[data-finder-open=\"true\"] {\n visibility: hidden;\n pointer-events: none;\n }\n .route-probe-head { padding: 0.45rem 0.48rem 0.38rem; }\n .route-probe-path { padding: 0.35rem 0.48rem 0.2rem; }\n .route-probe-node { min-height: 2.75rem !important; }\n .route-journey-controls {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem minmax(0, 1fr);\n padding: 0.08rem 0.48rem 0.32rem;\n }\n .route-journey-controls button { min-height: 2.75rem; }\n .route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }\n .route-probe-node { max-width: 7.5rem; }\n .guided-views {\n grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;\n gap: 0.2rem;\n padding: 0.25rem;\n }\n .guided-view-actions {\n grid-column: 1 / -1;\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n .guided-views \u003e #guided-view-prev,\n .guided-views \u003e #guided-view-next {\n align-self: center;\n height: 2.75rem;\n }\n .guided-view-play,\n .guided-view-all,\n .guided-view-beat-link { min-height: 2.75rem; }\n .guided-view-copy small { white-space: normal; }\n .guided-story-caption { padding: 0.32rem 0.45rem; }\n .guided-story-caption-index { min-width: 2.9rem; padding-right: 0.42rem; }\n .guided-story-caption strong,\n .guided-story-caption small { white-space: normal; }\n .guided-story-caption-next { display: none; }\n .guided-view-trail { min-height: 2rem; }\n .guided-view-trail .guided-view-stop {\n min-height: 2rem;\n padding: 0.22rem 0.42rem 0.22rem 0.28rem;\n }\n .guided-view-handoff { max-width: min(9rem, 32vw); }\n .guided-view-index { padding-top: 0.35rem; }\n .guided-view-chapters {\n gap: 0.35rem;\n scroll-padding-inline: 0.2rem;\n }\n .guided-view-chapters li {\n flex: 0 0 min(14rem, 78vw);\n min-width: 0;\n }\n .guided-view-chapter { min-height: 2.75rem; }\n .guided-views[data-active-view=\"all\"] {\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.2rem;\n padding: 0.25rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-copy {\n grid-column: 1;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-actions {\n grid-column: 2;\n grid-row: 1;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-play {\n min-width: 6rem !important;\n min-height: 2.75rem;\n }\n .guided-views[data-active-view=\"all\"] .guided-view-index {\n grid-column: 1 / -1;\n grid-row: 2;\n padding: 0.3rem 0.08rem 0;\n border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 72%, transparent);\n border-left: 0;\n }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .share-chapter-cue:not([hidden]),\n html[data-embed=\"true\"][data-share-moment=\"true\"] .share-chapter-cue:not([hidden]) {\n top: 0.5rem;\n grid-template-columns: auto minmax(0, 1fr);\n gap: 0.28rem 0.55rem;\n width: calc(100% - 1rem);\n min-height: 0;\n padding: 0.45rem 0.55rem 0.55rem;\n }\n html[data-embed=\"true\"][data-share-playback=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n html[data-embed=\"true\"][data-share-moment=\"true\"] .diagram-container {\n padding-top: 4.25rem;\n }\n .share-chapter-index {\n min-width: 4.4rem;\n padding-right: 0.5rem;\n }\n .share-chapter-copy small { font-size: 0.46rem; }\n .share-chapter-route {\n grid-column: 1 / -1;\n font-size: 0.5rem;\n text-align: left;\n }\n .cards {\n grid-template-columns: 1fr;\n margin-top: 1rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) body { padding: 0.5rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .container {\n gap: 0.5rem;\n height: calc(100dvh - 1rem);\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar {\n position: fixed;\n top: 0.5rem;\n right: 0.5rem;\n margin: 0;\n gap: 0.25rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .toolbar button {\n min-height: 2.75rem;\n padding: 0.42rem 0.58rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header {\n min-height: 2.25rem;\n padding: 3.5rem 0 0;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row {\n min-height: 2.25rem;\n margin: 0;\n align-items: center;\n flex-wrap: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .header-row::after,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .pulse-dot,\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .subtitle { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) h1 {\n flex: 1 1 auto;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n font-size: 0.875rem;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-views {\n padding: 0.2rem;\n }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-view-copy small { display: none; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .guided-story-caption small { display: block; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }\n html[data-present=\"true\"]:not([data-embed=\"true\"]) .diagram-container[data-wide-diagram=\"true\"] \u003e svg {\n width: 720px;\n height: auto;\n min-width: 720px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .guided-story-caption { animation: none !important; }\n }\n\n @media (max-width: 360px) {\n .toolbar { gap: 0.25rem; }\n .toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }\n .toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }\n #theme-label, #preset-label, #present-label { display: none; }\n .guided-view-handoff { max-width: 6.5rem; }\n }\n\n /* ==========================================================\n SVG SEMANTIC CLASSES — use these instead of inline fill/stroke\n ========================================================== */\n .c-grid { stroke: var(--grid); fill: none; }\n .c-mask { fill: var(--mask); stroke: none; }\n\n .c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }\n .c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }\n .c-database { fill: var(--database-fill); stroke: var(--database-stroke); }\n .c-cloud { fill: var(--cloud-fill); stroke: var(--cloud-stroke); }\n .c-security { fill: var(--security-fill); stroke: var(--security-stroke); }\n .c-messagebus { fill: var(--messagebus-fill); stroke: var(--messagebus-stroke); }\n .c-external { fill: var(--external-fill); stroke: var(--external-stroke); }\n\n /* Text helpers */\n .t-primary { fill: var(--text); }\n .t-muted { fill: var(--text-muted); }\n .t-dim { fill: var(--text-dim); }\n .t-frontend { fill: var(--frontend-stroke); }\n .t-backend { fill: var(--backend-stroke); }\n .t-database { fill: var(--database-stroke); }\n .t-cloud { fill: var(--cloud-stroke); }\n .t-security { fill: var(--security-stroke); }\n .t-messagebus { fill: var(--messagebus-stroke); }\n .t-external { fill: var(--external-stroke); }\n\n /* Semantic Sigils are small authored role stamps, not icons from a brand\n pack and not viewer controls. Prefix selectors with svg so the canonical\n export's SVG-only stylesheet collector keeps them automatically. */\n svg .semantic-sigil {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n opacity: 0.76;\n pointer-events: none;\n }\n svg .semantic-sigil \u003e * { vector-effect: non-scaling-stroke; }\n svg .semantic-sigil .sigil-fill { fill: currentColor; stroke: none; }\n svg .s-frontend { color: var(--frontend-stroke); }\n svg .s-backend { color: var(--backend-stroke); }\n svg .s-database { color: var(--database-stroke); }\n svg .s-cloud { color: var(--cloud-stroke); }\n svg .s-security { color: var(--security-stroke); }\n svg .s-messagebus { color: var(--messagebus-stroke); }\n svg .s-external { color: var(--external-stroke); }\n\n /* Reading Depth is a viewer-only level-of-detail layer. MAP preserves the\n authored structure and primary labels, READ restores relationship labels\n and node context, and FULL restores tags and fine annotations. Semantic\n intent can reveal the relevant detail without moving any geometry. */\n svg [data-detail] { transition: opacity 160ms ease; }\n svg [data-detail-anchor] {\n transform-box: fill-box;\n transform-origin: center;\n transition: transform 160ms ease;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"context\"],\n .diagram-container[data-detail-level=\"map\"] svg [data-detail=\"fine\"],\n .diagram-container[data-detail-level=\"read\"] svg [data-detail=\"fine\"] {\n opacity: 0;\n pointer-events: none;\n }\n .diagram-container[data-detail-level=\"map\"] svg [data-detail-anchor] {\n transform: translateY(8px);\n }\n\n /* Focus, lens, preview, route, and story states are stronger reader intent than\n the global zoom level. Reveal only their exact semantic matches. */\n svg[data-focus-active] [data-focus-match][data-detail],\n svg[data-focus-active] [data-focus-match] [data-detail],\n svg[data-reach-active] [data-reach-match][data-detail],\n svg[data-reach-active] [data-reach-match] [data-detail],\n svg[data-lens-active] [data-lens-match][data-detail],\n svg[data-lens-active] [data-lens-match] [data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match][data-detail],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match][data-detail],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],\n svg[data-route-active] [data-route-match][data-detail],\n svg[data-route-active] [data-route-match] [data-detail],\n svg[data-story-active] [data-story-step][data-detail],\n svg[data-story-active] [data-story-step] [data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview][data-detail],\n svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],\n svg [data-node-id]:hover [data-detail],\n svg [data-node-id]:focus-visible [data-detail] {\n opacity: 1;\n pointer-events: auto;\n }\n svg[data-focus-active] [data-focus-match] [data-detail-anchor],\n svg[data-reach-active] [data-reach-match] [data-detail-anchor],\n svg[data-lens-active] [data-lens-match] [data-detail-anchor],\n svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],\n svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],\n svg[data-route-active] [data-route-match] [data-detail-anchor],\n svg[data-story-active] [data-story-step] [data-detail-anchor],\n svg [data-node-id]:hover [data-detail-anchor],\n svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }\n\n /* Arrows */\n .a-default { stroke: var(--arrow); fill: none; }\n .a-emphasis { stroke: var(--arrow-emphasis); fill: none; }\n .a-security { stroke: var(--security-stroke); fill: none; stroke-dasharray: 5,5; }\n .a-dashed { stroke: var(--database-stroke); fill: none; stroke-dasharray: 4,4; }\n\n /* Arrowhead markers reference these */\n .m-default { fill: var(--arrow); }\n .m-emphasis { fill: var(--arrow-emphasis); }\n .m-security { fill: var(--security-stroke); }\n .m-dashed { fill: var(--database-stroke); }\n\n /* Stable semantic exploration hooks emitted by every renderer. */\n svg [data-node-id] {\n cursor: pointer;\n transition: opacity 0.18s ease, filter 0.18s ease;\n }\n svg [data-edge-from] { transition: opacity 0.18s ease, filter 0.18s ease; }\n svg [data-node-id]:hover,\n svg [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n outline: none;\n }\n /* Verified Source Beacons are installed at runtime only for nodes whose\n repository evidence passed the local revision/blob/line checks. They\n live inside the owning node so every focus, route, story, and guided\n view keeps one coherent opacity state. Export serialization removes\n them before producing the canonical SVG or any derived visual. */\n .source-evidence-beacon {\n pointer-events: none;\n opacity: 0.76;\n transition: opacity 160ms ease, filter 160ms ease;\n }\n .source-evidence-beacon rect {\n fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));\n stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n .source-evidence-beacon text {\n fill: var(--backend-stroke);\n font-size: 5.5px;\n font-weight: 800;\n letter-spacing: 0.06em;\n text-anchor: middle;\n text-transform: uppercase;\n }\n svg [data-node-id]:hover .source-evidence-beacon,\n svg [data-node-id]:focus-visible .source-evidence-beacon,\n svg [data-node-id][data-focus-selected] .source-evidence-beacon {\n opacity: 1;\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"signal-flow\"] .source-evidence-beacon { opacity: 0.9; }\n svg[data-preset=\"blueprint\"] .source-evidence-beacon rect {\n rx: 0.8px;\n filter: none;\n }\n svg [data-legend-kind][role=\"button\"] { cursor: pointer; }\n svg [data-legend-kind]:focus { outline: none; }\n svg [data-legend-hit] {\n fill: transparent;\n stroke: transparent;\n stroke-width: 1.4;\n pointer-events: all;\n vector-effect: non-scaling-stroke;\n transition: stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;\n }\n svg [data-legend-count-badge] { pointer-events: none; }\n svg [data-legend-count-badge] rect {\n fill: var(--mask);\n stroke: var(--panel-border);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n }\n svg [data-legend-count-badge] text {\n fill: var(--text-muted);\n font-size: 7px;\n font-weight: 700;\n text-anchor: middle;\n }\n svg [data-legend-kind][role=\"button\"]:hover [data-legend-hit] {\n stroke: color-mix(in srgb, var(--database-stroke) 58%, transparent);\n }\n svg [data-legend-kind][role=\"button\"]:focus-visible [data-legend-hit] {\n stroke: var(--frontend-stroke);\n stroke-width: 1.8;\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-hit] {\n stroke: var(--database-stroke);\n stroke-width: 2.2;\n stroke-dasharray: 3 2;\n }\n svg [data-legend-kind][data-legend-selected] [data-legend-count-badge] rect {\n stroke: var(--database-stroke);\n stroke-width: 1.8;\n }\n svg [data-legend-kind][data-legend-zero] { opacity: 0.44; }\n svg[data-preset=\"signal-flow\"] [data-legend-kind][data-legend-selected] [data-legend-hit] {\n filter: drop-shadow(0 0 4px var(--database-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-legend-hit],\n svg[data-preset=\"blueprint\"] [data-legend-count-badge] rect { rx: 0; filter: none; }\n svg[data-legend-preview-active] [data-node-id],\n svg[data-legend-preview-active] [data-edge-from] { opacity: 0.11; }\n svg[data-legend-preview-active] [data-legend-preview-match] { opacity: 1; }\n svg[data-legend-preview-active] [data-legend-preview-peer] { opacity: 0.62; }\n svg[data-legend-preview-active] [data-legend-preview-selected] {\n filter: drop-shadow(0 0 8px var(--database-stroke));\n }\n svg[data-lens-active] [data-node-id],\n svg[data-lens-active] [data-edge-from] { opacity: 0.11; }\n svg[data-lens-active] [data-lens-match] { opacity: 1; }\n svg[data-lens-active] [data-lens-peer] { opacity: 0.62; }\n svg[data-lens-active] [data-lens-selected] {\n filter: drop-shadow(0 0 10px var(--database-stroke));\n }\n .semantic-lens-overlay { pointer-events: none; }\n .semantic-lens-flow {\n fill: none;\n stroke-width: 3.05;\n stroke-linecap: round;\n stroke-dasharray: 0.075 0.925;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.9;\n animation: archify-semantic-lens-flow 1.35s linear 1 both;\n animation-delay: var(--lens-flow-delay, 0s);\n }\n .semantic-lens-flow[data-direction=\"out\"],\n .semantic-lens-flow[data-direction=\"forward\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n .semantic-lens-flow[data-direction=\"in\"],\n .semantic-lens-flow[data-direction=\"reverse\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 3px var(--database-stroke));\n }\n .semantic-lens-flow[data-direction=\"within\"] {\n stroke: var(--messagebus-stroke);\n filter: drop-shadow(0 0 3px var(--messagebus-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow {\n stroke-width: 3.7;\n opacity: 1;\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"out\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"forward\"] {\n filter: drop-shadow(0 0 6px var(--frontend-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"in\"],\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"reverse\"] {\n filter: drop-shadow(0 0 6px var(--database-stroke));\n }\n svg[data-preset=\"signal-flow\"] .semantic-lens-flow[data-direction=\"within\"] {\n filter: drop-shadow(0 0 6px var(--messagebus-stroke));\n }\n svg[data-preset=\"blueprint\"] .semantic-lens-flow {\n stroke-width: 2.45;\n stroke-linecap: square;\n filter: none;\n opacity: 0.78;\n }\n html[data-embed=\"true\"] .semantic-lens-overlay { display: none; }\n svg[data-focus-active] [data-node-id],\n svg[data-focus-active] [data-edge-from] { opacity: 0.13; }\n svg[data-focus-active] [data-focus-match] { opacity: 1; }\n svg[data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n\n /* Authored Reachability is a bounded graph query over the relationships\n already present in the artifact. Upstream walks incoming edges;\n downstream walks outgoing edges. It never claims runtime causality and\n changes only viewer emphasis, not canonical geometry or export bytes. */\n svg[data-reach-active] [data-node-id],\n svg[data-reach-active] [data-edge-from] { opacity: 0.09; }\n svg[data-reach-active] [data-reach-match] { opacity: 1; }\n svg[data-reach-active=\"upstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--database-stroke));\n }\n svg[data-reach-active=\"downstream\"] [data-reach-origin] {\n filter: drop-shadow(0 0 11px var(--backend-stroke));\n }\n svg[data-reach-active=\"upstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--database-stroke) 72%, transparent));\n }\n svg[data-reach-active=\"downstream\"] [data-edge-from][data-reach-match] {\n filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));\n }\n svg[data-preset=\"blueprint\"][data-reach-active] [data-reach-origin],\n svg[data-preset=\"blueprint\"][data-reach-active] [data-edge-from][data-reach-match] {\n filter: none;\n }\n\n /* Direct Relationship Explorer makes authored paths a real input surface\n without changing their visible stroke or canonical SVG. A transparent\n runtime rail supplies forgiving pointer geometry; the exact authored\n path and endpoints continue to carry every visible state. */\n .relationship-hit-overlay { pointer-events: none; }\n .relationship-hit-target { outline: none; }\n .relationship-hit-rail {\n fill: none;\n stroke: transparent;\n stroke-width: 24;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: stroke;\n cursor: pointer;\n }\n .relationship-focus-rail {\n fill: none;\n stroke: color-mix(in srgb, var(--frontend-stroke) 34%, transparent);\n stroke-width: 6;\n stroke-dasharray: 2 4;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n pointer-events: none;\n opacity: 0;\n }\n .relationship-hit-target:focus-visible .relationship-focus-rail {\n opacity: 1;\n }\n svg[data-preset=\"blueprint\"] .relationship-hit-target:focus-visible .relationship-focus-rail {\n stroke-linecap: square;\n filter: none;\n }\n svg[data-relationship-direct-active] [data-node-id],\n svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }\n svg[data-relationship-direct-active] [data-relationship-preview],\n svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,\n svg[data-story-active] .relationship-hit-rail,\n svg[data-route-picking] .relationship-hit-rail,\n svg[data-route-active] .relationship-hit-rail,\n svg[data-lens-active] .relationship-hit-rail,\n svg[data-chapter-preview] .relationship-hit-rail { pointer-events: none; }\n html[data-embed=\"true\"] .relationship-hit-overlay { display: none; }\n @media (hover: none), (pointer: coarse) {\n .relationship-hit-rail { stroke-width: 24; }\n }\n\n /* Relationship Preview is temporary exploration state layered on top of\n neighborhood focus. It changes emphasis only; exported geometry and the\n relationship's original solid/dashed visual language stay untouched. */\n svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }\n svg[data-relationship-preview-active] [data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }\n svg[data-relationship-preview-active] [data-relationship-preview] {\n filter: drop-shadow(0 0 5px var(--arrow-emphasis));\n }\n svg[data-relationship-preview-active] [data-relationship-preview] path,\n svg[data-relationship-preview-active] path[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] line,\n svg[data-relationship-preview-active] line[data-relationship-preview],\n svg[data-relationship-preview-active] [data-relationship-preview] polyline,\n svg[data-relationship-preview-active] polyline[data-relationship-preview] {\n stroke-width: 2.75;\n }\n svg[data-relationship-preview-active] [data-relationship-preview-source] {\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 7px var(--database-stroke));\n }\n .relationship-pulse-overlay { pointer-events: none; }\n .relationship-flow-pulse {\n fill: none;\n stroke: var(--arrow-emphasis);\n stroke-width: 3.35;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 4px var(--arrow-emphasis));\n animation: archify-relationship-pulse 1.2s linear 1 both;\n }\n svg[data-preset=\"signal-flow\"] .relationship-flow-pulse {\n stroke: var(--frontend-stroke);\n stroke-width: 3.85;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"] .relationship-flow-pulse {\n stroke-width: 2.5;\n stroke-linecap: square;\n filter: none;\n }\n svg[data-preset=\"editorial\"] .relationship-flow-pulse {\n stroke: var(--arrow-emphasis);\n stroke-width: 2.75;\n filter: none;\n }\n .semantic-flow-token {\n color: var(--frontend-stroke);\n opacity: 0;\n pointer-events: none;\n }\n .relationship-flow-token {\n animation: archify-relationship-token-life 1.2s linear 1 both;\n }\n .story-flow-token {\n animation: archify-relationship-token-life 0.78s linear 1 both;\n }\n .semantic-flow-token-halo {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.1;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n }\n .relationship-flow-token-shape {\n fill: var(--mask);\n stroke: currentColor;\n stroke-width: 1.35;\n stroke-linecap: round;\n stroke-linejoin: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-ink {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.05;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n }\n .relationship-flow-token-dot { fill: currentColor; stroke: none; }\n .semantic-flow-token[data-token-kind=\"data\"] { color: var(--database-stroke); }\n .semantic-flow-token[data-token-kind=\"event\"] { color: var(--messagebus-stroke); }\n .semantic-flow-token[data-token-kind=\"security\"] { color: var(--security-stroke); }\n .semantic-flow-token[data-token-kind=\"state\"] { color: var(--cloud-stroke); }\n svg[data-preset=\"signal-flow\"] .semantic-flow-token {\n filter: drop-shadow(0 0 5px currentColor);\n }\n svg[data-preset=\"blueprint\"] .semantic-flow-token { filter: none; }\n svg[data-preset=\"editorial\"] .semantic-flow-token { filter: none; }\n html[data-embed=\"true\"] .relationship-pulse-overlay { display: none; }\n\n /* Intent Trace is a temporary, pre-click exploration layer. Related\n topology stays readable while a short viewer-only signal runs over\n cloned edge geometry; the authored edge remains untouched underneath. */\n svg[data-intent-trace-active] [data-node-id],\n svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }\n svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }\n svg[data-intent-trace-active] [data-intent-trace-selected] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n .intent-trace-overlay { pointer-events: none; }\n .intent-trace-flow {\n fill: none;\n stroke-width: 3.1;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.94;\n animation: archify-intent-trace-flow 1.15s linear 1 both;\n }\n .intent-trace-flow[data-direction=\"out\"] {\n stroke: var(--frontend-stroke);\n filter: drop-shadow(0 0 4px var(--frontend-stroke));\n }\n .intent-trace-flow[data-direction=\"in\"] {\n stroke: var(--database-stroke);\n filter: drop-shadow(0 0 4px var(--database-stroke));\n animation-direction: reverse;\n }\n .intent-trace-flow[data-direction=\"loop\"] {\n stroke: var(--security-stroke);\n filter: drop-shadow(0 0 4px var(--security-stroke));\n }\n svg[data-preset=\"blueprint\"] [data-intent-trace-selected],\n svg[data-preset=\"blueprint\"] .intent-trace-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-intent-trace-selected],\n svg[data-preset=\"editorial\"] .intent-trace-flow { filter: none; }\n .intent-trace-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n\n /* Route Probe separates a durable two-point query from selection and\n one-hop hover. Only the chosen shortest directed path stays prominent;\n the traveling signal is cloned viewer geometry and never authored SVG. */\n svg[data-route-picking=\"target\"] [data-node-id] { opacity: 0.24; }\n svg[data-route-picking=\"target\"] [data-route-candidate],\n svg[data-route-picking=\"target\"] [data-route-start] { opacity: 1; }\n svg[data-route-picking] [data-node-id] { cursor: crosshair; }\n svg[data-route-picking] [data-route-start] {\n filter: drop-shadow(0 0 10px var(--frontend-stroke));\n }\n svg[data-route-active] [data-node-id],\n svg[data-route-active] [data-edge-from] { opacity: 0.11; }\n svg[data-route-active] [data-route-match] { opacity: 1; }\n svg[data-route-active] [data-route-start] {\n filter: drop-shadow(0 0 11px var(--frontend-stroke));\n }\n svg[data-route-active] [data-route-end] {\n filter: drop-shadow(0 0 11px var(--security-stroke));\n }\n svg[data-route-active] [data-route-step]:not([data-route-start]):not([data-route-end]) {\n filter: drop-shadow(0 0 7px var(--backend-stroke));\n }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"past\"] { opacity: 0.62; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"future\"] { opacity: 0.34; }\n svg[data-route-journey] [data-route-match][data-route-journey-state=\"current\"] { opacity: 1; }\n svg[data-route-journey] [data-node-id][data-route-journey-current] {\n filter: drop-shadow(0 0 10px var(--backend-stroke));\n }\n svg[data-route-journey] [data-edge-from][data-route-journey-current] {\n opacity: 1;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n }\n .route-probe-overlay { pointer-events: none; }\n .route-journey-overlay { pointer-events: none; }\n .route-probe-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.25;\n stroke-linecap: round;\n stroke-dasharray: 0.085 0.915;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0.96;\n filter: drop-shadow(0 0 5px var(--backend-stroke));\n animation: archify-route-probe-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n animation-delay: calc(var(--route-step, 0) * 0.16s);\n }\n .route-journey-flow {\n fill: none;\n stroke: var(--backend-stroke);\n stroke-width: 3.5;\n stroke-linecap: round;\n stroke-dasharray: 0.1 0.9;\n stroke-dashoffset: 0;\n vector-effect: non-scaling-stroke;\n opacity: 0;\n filter: drop-shadow(0 0 6px var(--backend-stroke));\n animation: archify-route-journey-flow 780ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;\n }\n svg[data-preset=\"blueprint\"] [data-route-start],\n svg[data-preset=\"blueprint\"] [data-route-end],\n svg[data-preset=\"blueprint\"] [data-route-step],\n svg[data-preset=\"blueprint\"] .route-probe-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"blueprint\"] .route-journey-flow {\n filter: none;\n stroke-linecap: square;\n }\n svg[data-preset=\"editorial\"] [data-route-start],\n svg[data-preset=\"editorial\"] [data-route-end],\n svg[data-preset=\"editorial\"] [data-route-step],\n svg[data-preset=\"editorial\"] .route-probe-flow,\n svg[data-preset=\"editorial\"] .route-journey-flow { filter: none; }\n\n svg[data-preset=\"editorial\"] .c-grid {\n stroke-dasharray: 1 4;\n opacity: 0.48;\n }\n svg[data-preset=\"editorial\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);\n stroke-dasharray: 9 4;\n }\n svg[data-preset=\"editorial\"] [data-node-id]:hover,\n svg[data-preset=\"editorial\"] [data-node-id]:focus-visible,\n svg[data-preset=\"editorial\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));\n }\n\n svg[data-preset=\"blueprint\"] .c-grid {\n stroke-dasharray: 1 3;\n opacity: 0.78;\n }\n svg[data-preset=\"blueprint\"] .c-region {\n fill: color-mix(in srgb, var(--cloud-fill) 58%, transparent);\n stroke-dasharray: 12 4 2 4;\n }\n svg[data-preset=\"blueprint\"] .c-security-group,\n svg[data-preset=\"blueprint\"] .c-lane { stroke-dasharray: 7 3; }\n svg[data-preset=\"blueprint\"] [data-node-id]:hover,\n svg[data-preset=\"blueprint\"] [data-node-id]:focus-visible {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active] [data-focus-selected] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n svg[data-preset=\"blueprint\"][data-focus-active][data-reach-active] [data-focus-selected][data-reach-origin] {\n filter: none;\n }\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-source],\n svg[data-preset=\"blueprint\"][data-relationship-preview-active] [data-relationship-preview-target] {\n filter: drop-shadow(0 0 3px var(--frontend-stroke));\n }\n\n /* Story Trail is a viewer-only overlay derived from the ordered focus IDs\n of the active guided view. The authored edge stays underneath with its\n original color, dash pattern, marker, and geometry intact. */\n .story-trail-overlay { pointer-events: none; }\n .story-carrier-overlay { pointer-events: none; }\n .story-trail-flow {\n fill: none;\n stroke: var(--frontend-stroke);\n stroke-width: 2.8;\n stroke-linecap: round;\n vector-effect: non-scaling-stroke;\n opacity: 0.34;\n filter: drop-shadow(0 0 2px var(--frontend-stroke));\n }\n svg[data-story-beat] [data-story-step] {\n opacity: 0.22;\n filter: saturate(0.42);\n transition: opacity 180ms ease, filter 180ms ease;\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"past\"] {\n opacity: 0.72;\n filter: saturate(0.82);\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"next\"] {\n opacity: 0.5;\n filter: saturate(0.66);\n }\n svg[data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n opacity: 1;\n filter: drop-shadow(0 0 7px var(--frontend-stroke));\n animation: archify-story-beat-node 360ms cubic-bezier(0.22, 1, 0.36, 1) both;\n }\n svg[data-story-beat] [data-edge-from][data-story-beat-step] {\n opacity: 0.16;\n transition: opacity 160ms ease;\n }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"past\"] { opacity: 0.58; }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"next\"] { opacity: 0.34; }\n svg[data-story-beat] [data-edge-from][data-story-beat-step][data-story-beat-state=\"active\"] { opacity: 1; }\n svg[data-story-beat] .story-trail-flow { opacity: 0; transition: opacity 160ms ease; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"past\"] { opacity: 0.34; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"next\"] { opacity: 0.2; }\n svg[data-story-beat] .story-trail-flow[data-story-beat-state=\"active\"] { opacity: 0.92; }\n svg[data-story-beat] .story-trail-flow[data-story-pulse=\"true\"] {\n stroke-dasharray: 2 13;\n stroke-dashoffset: 30;\n opacity: 0.92;\n animation: archify-story-flow 0.78s linear 1 both;\n }\n svg[data-preset=\"blueprint\"] .story-trail-flow {\n stroke-linecap: square;\n filter: none;\n opacity: 0.5;\n }\n svg[data-preset=\"blueprint\"][data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n filter: none;\n animation: none;\n }\n svg[data-preset=\"editorial\"] .story-trail-flow { filter: none; }\n svg[data-preset=\"editorial\"][data-story-beat] [data-story-step][data-story-beat-state=\"active\"] {\n filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 16%, transparent));\n }\n\n /* Chapter Delta Preview is a static, pre-commit comparison between two\n chapter focus sets. Symbols in the rail carry the meaning without color;\n these SVG rules only make exact stable-ID membership easier to scan. */\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] {\n opacity: 0.1 !important;\n filter: none !important;\n transition: none !important;\n }\n svg[data-chapter-preview] .story-trail-overlay { opacity: 0.08 !important; }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"stay\"] {\n opacity: 0.76 !important;\n filter: saturate(0.7) !important;\n }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"enter\"] {\n opacity: 1 !important;\n filter: saturate(1.2) !important;\n }\n svg[data-chapter-preview] [data-node-id][data-chapter-preview-role=\"leave\"] {\n opacity: 0.28 !important;\n filter: grayscale(0.72) !important;\n }\n svg[data-preset=\"blueprint\"][data-chapter-preview] [data-node-id] { filter: none !important; }\n\n /* Dashed boundary variants */\n .c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }\n .c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }\n .c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }\n\n /* Optional trace animation, enabled only by meta.animation = \"trace\".\n The ordinary viewer performs one ambient pass and then restores the\n authored solid/security/async line language. WebM samples the same\n authored geometry into an explicit canvas timeline. */\n html[data-ambient-motion=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"edge\"] {\n animation: archify-edge-flow 2.4s linear 1;\n animation-delay: calc(var(--step, 0) * 160ms);\n }\n html[data-ambient-motion=\"running\"] svg[data-animation=\"trace\"] [data-animate=\"node\"] {\n transform-box: fill-box;\n transform-origin: center;\n animation: archify-node-pulse 3.6s ease-in-out 1;\n animation-delay: calc(var(--step, 0) * 160ms);\n }\n svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n stroke-linecap: round;\n filter: drop-shadow(0 0 3px var(--arrow-emphasis));\n animation-duration: 1.75s;\n }\n svg[data-preset=\"signal-flow\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-duration: 3.1s;\n }\n svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n stroke-linecap: square;\n filter: none;\n animation-duration: 2.15s;\n }\n svg[data-preset=\"blueprint\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-name: archify-blueprint-node-pulse;\n animation-duration: 3.8s;\n }\n svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"edge\"] {\n filter: none;\n animation-duration: 2.2s;\n }\n svg[data-preset=\"editorial\"][data-animation=\"trace\"] [data-animate=\"node\"] {\n animation-name: archify-editorial-node-pulse;\n animation-duration: 3.5s;\n }\n /* Embedded proofs are static until a named Story Trail chapter is played.\n This keeps proof grids calm and ensures ?play=1 stops all viewer motion\n after one 3.2 second chapter instead of leaving ambient trace loops on. */\n html[data-embed=\"true\"] svg[data-animation=\"trace\"] [data-animate],\n html[data-share-playback=\"true\"] svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n @keyframes archify-edge-flow {\n 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }\n 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }\n 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }\n 100% { stroke-dashoffset: 0; opacity: 1; }\n }\n @keyframes archify-node-pulse {\n 0%, 72%, 100% { filter: none; stroke-width: 1.5; }\n 18%, 36% {\n filter: drop-shadow(0 0 8px var(--arrow-emphasis));\n stroke-width: 2.4;\n }\n }\n @keyframes archify-blueprint-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }\n }\n @keyframes archify-editorial-node-pulse {\n 0%, 72%, 100% { opacity: 1; filter: none; }\n 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }\n }\n @keyframes archify-signal-scan {\n 0%, 18% { opacity: 1; transform: translateX(-70%); }\n 70% { opacity: 1; transform: translateX(70%); }\n 100% { opacity: 0; transform: translateX(70%); }\n }\n @keyframes archify-radar-live {\n 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }\n 55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }\n }\n @keyframes archify-guided-progress {\n from { transform: scaleX(var(--guided-progress-start, 0)); }\n to { transform: scaleX(1); }\n }\n @keyframes archify-story-flow {\n to { stroke-dashoffset: 0; }\n }\n @keyframes archify-intent-trace-flow {\n 0% { opacity: 0.28; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.94; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-route-probe-flow {\n 0% { stroke-dashoffset: 0; opacity: 0.96; }\n 78% { stroke-dashoffset: -1; opacity: 0.96; }\n 100% { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.58; }\n }\n @keyframes archify-route-journey-flow {\n 0% { opacity: 0.16; stroke-dashoffset: 0; }\n 14%, 76% { opacity: 1; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-semantic-lens-flow {\n 0% { opacity: 0.2; stroke-dashoffset: 0; }\n 12%, 78% { opacity: 0.9; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-pulse {\n 0% { opacity: 0.18; stroke-dashoffset: 0; }\n 10%, 76% { opacity: 0.98; }\n 100% { opacity: 0; stroke-dashoffset: -1; }\n }\n @keyframes archify-relationship-token-life {\n 0%, 7% { opacity: 0; }\n 13%, 82% { opacity: 1; }\n 100% { opacity: 0; }\n }\n @keyframes archify-story-beat-node {\n from { opacity: 0.48; filter: saturate(0.6); }\n 58% { opacity: 1; filter: drop-shadow(0 0 10px var(--frontend-stroke)); }\n to { opacity: 1; filter: drop-shadow(0 0 7px var(--frontend-stroke)); }\n }\n @keyframes archify-share-cue-enter {\n from { opacity: 0; transform: translate(-50%, -0.45rem); }\n to { opacity: 1; transform: translate(-50%, 0); }\n }\n @keyframes archify-share-cue-pulse {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 50% { opacity: 0.48; transform: scale(0.78); }\n }\n @media (prefers-reduced-motion: reduce) {\n html[data-preset=\"signal-flow\"] .diagram-container::before {\n animation: none !important;\n }\n .pulse-dot { animation: none !important; }\n svg[data-animation=\"trace\"] [data-animate] {\n animation: none !important;\n stroke-dashoffset: 0;\n }\n .guided-view-progress span {\n animation: none !important;\n transform: scaleX(1) !important;\n }\n .story-trail-flow,\n .intent-trace-flow,\n .route-probe-flow,\n .semantic-lens,\n .diagram-guide,\n [data-story-step],\n .overview-map-live,\n .guided-view-stop,\n .share-chapter-cue,\n .chapter-handoff-anchor,\n .share-chapter-state::before,\n .share-chapter-progress span { animation: none !important; }\n .guided-view-chapter,\n svg[data-chapter-preview] [data-node-id],\n svg[data-chapter-preview] [data-edge-from] { transition: none !important; }\n svg[data-story-playing=\"true\"] .story-trail-flow {\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.55;\n }\n .intent-trace-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.72;\n }\n .route-probe-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-dashoffset: 0;\n opacity: 0.78;\n }\n .route-journey-overlay,\n .story-carrier-overlay { display: none !important; }\n .semantic-lens-flow {\n animation: none !important;\n stroke-dasharray: none;\n stroke-width: 2.2;\n opacity: 0.34;\n filter: none;\n }\n .relationship-pulse-overlay { display: none !important; }\n .guided-view-chapter { transition: none !important; }\n .source-evidence-beacon,\n svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }\n }\n ";let activeIndex = -1;let playbackToken = 0;let playbackTimer = 0;@@ -31593,4 +31523,4 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!status.removeAttribute('data-state');updateControls();}-})();</script></body></html>+})();</script></body></html>\ No newline at end of filediff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.jsonindex e3109e21..8f4622c3 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": "44c80ea170dff7d73c93ccda00ae851db85c4b81afa1bdd639585bc9c29972e4",- "bytes": 1736967+ "sha256": "f545d18499e3e7e4cd6dce5fdca318ae458a1d71d592657699effc7e3bf006a4",+ "bytes": 1735830},"validation": {"checksPassed": 28,diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.htmlindex 6c5e728c..debdeadd 100644--- a/examples/dataflow-product-analytics.html+++ b/examples/dataflow-product-analytics.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Product Analytics Data Flow</h1></div>- <p class="subtitle">Events, consent, PII isolation, warehouse sync, and downstream analytics</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"collection-path","label":"Collection path","focus":["web","mobile","edge","stream"],"note":"Follow product events from clients into the ordered event stream."},{"id":"consent-boundary","label":"Consent and PII","focus":["edge","consent","pii"],"note":"Isolate the policy gate and restricted identity store."},{"id":"analytics-consumers","label":"Curated consumers","focus":["stream","warehouse","dashboard","features","model"],"note":"See curated facts, dashboards, and the derived feature path."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 1080 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Product Analytics Data Flow</title>- <desc id="archify-diagram-description">Events, consent, PII isolation, warehouse sync, and downstream analytics</desc>+ <desc id="archify-diagram-description">A data-flow diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4785,26 +5055,26 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="704" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <text x="40" y="704" class="t-primary" font-size="12" font-weight="650">Legend</text><g data-legend-semantic-kind="emphasis" data-legend-x="40" data-legend-baseline="724" data-legend-width="103"><path d="M 40 721 L 74 721" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <text x="83" y="724" class="t-muted" font-size="8">primary data</text>+ <text x="83" y="724" class="t-muted" font-size="10" font-weight="500">primary data</text></g><g data-legend-semantic-kind="security" data-legend-x="165" data-legend-baseline="724" data-legend-width="103"><path d="M 165 721 L 199 721" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <text x="208" y="724" class="t-muted" font-size="8">policy / PII</text>+ <text x="208" y="724" class="t-muted" font-size="10" font-weight="500">policy / PII</text></g><g data-legend-semantic-kind="dashed" data-legend-x="290" data-legend-baseline="724" data-legend-width="98"><path d="M 290 721 L 324 721" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="333" y="724" class="t-muted" font-size="8">async batch</text>+ <text x="333" y="724" class="t-muted" font-size="10" font-weight="500">async batch</text></g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="data store" data-legend-x="410" data-legend-baseline="724" data-legend-width="92">+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="data store" data-legend-x="410" data-legend-baseline="724" data-legend-width="93"><rect x="410" y="716" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="431" y="724" class="t-muted" font-size="8">data store</text>+ <text x="432" y="724" class="t-muted" font-size="10" font-weight="500">data store</text></g>- <g data-legend-semantic-kind="default" data-legend-x="524" data-legend-baseline="724" data-legend-width="88">- <path d="M 524 721 L 558 721" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <text x="567" y="724" class="t-muted" font-size="8">data flow</text>+ <g data-legend-semantic-kind="default" data-legend-x="525" data-legend-baseline="724" data-legend-width="88">+ <path d="M 525 721 L 559 721" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>+ <text x="568" y="724" class="t-muted" font-size="10" font-weight="500">data flow</text></g></g></svg>@@ -5027,10 +5297,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Data-flow diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=dataflow&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5176,7 +5442,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5206,7 +5471,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6329,12 +6593,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10979,7 +11241,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10998,7 +11259,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.htmlindex 0d8e7fb8..92eb1c8c 100644--- a/examples/lifecycle-agent-run.html+++ b/examples/lifecycle-agent-run.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Agent Run Lifecycle</h1></div>- <p class="subtitle">State machine for planning, tool execution, human approval, retries, and terminal outcomes</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"main-lifecycle","label":"Main lifecycle","focus":["queued","planning","executing","reviewing","completed"],"note":"Follow the ordered phases from accepted request to completed response."},{"id":"human-waits","label":"Human and input waits","focus":["executing","approval","reviewing","blocked"],"note":"See where the run pauses without becoming terminal."},{"id":"recovery-and-exits","label":"Recovery and terminal exits","focus":["executing","failed","blocked","cancelled","expired"],"note":"Separate retryable failure from cancellation and expiry."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 980 660" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Run Lifecycle</title>- <desc id="archify-diagram-description">State machine for planning, tool execution, human approval, retries, and terminal outcomes</desc>+ <desc id="archify-diagram-description">A lifecycle diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4730,30 +5000,30 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="604" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="start" data-legend-kind="start" data-legend-label="start" data-legend-x="40" data-legend-baseline="624" data-legend-width="67">+ <text x="40" y="604" class="t-primary" font-size="12" font-weight="650">Legend</text>+ <g data-legend-semantic-kind="start" data-legend-kind="start" data-legend-label="start" data-legend-x="40" data-legend-baseline="624" data-legend-width="68"><rect x="40" y="616" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="61" y="624" class="t-muted" font-size="8">start</text>+ <text x="62" y="624" class="t-muted" font-size="10" font-weight="500">start</text></g>- <g data-legend-semantic-kind="active" data-legend-kind="active" data-legend-label="active state" data-legend-x="129" data-legend-baseline="624" data-legend-width="102">- <rect x="129" y="616" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="150" y="624" class="t-muted" font-size="8">active state</text>+ <g data-legend-semantic-kind="active" data-legend-kind="active" data-legend-label="active state" data-legend-x="130" data-legend-baseline="624" data-legend-width="103">+ <rect x="130" y="616" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="152" y="624" class="t-muted" font-size="10" font-weight="500">active state</text></g>- <g data-legend-semantic-kind="waiting" data-legend-kind="waiting" data-legend-label="waiting" data-legend-x="253" data-legend-baseline="624" data-legend-width="77">- <rect x="253" y="616" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="274" y="624" class="t-muted" font-size="8">waiting</text>+ <g data-legend-semantic-kind="waiting" data-legend-kind="waiting" data-legend-label="waiting" data-legend-x="255" data-legend-baseline="624" data-legend-width="78">+ <rect x="255" y="616" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>+ <text x="277" y="624" class="t-muted" font-size="10" font-weight="500">waiting</text></g>- <g data-legend-semantic-kind="decision" data-legend-kind="decision" data-legend-label="decision" data-legend-x="352" data-legend-baseline="624" data-legend-width="82">- <rect x="352" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="373" y="624" class="t-muted" font-size="8">decision</text>+ <g data-legend-semantic-kind="decision" data-legend-kind="decision" data-legend-label="decision" data-legend-x="355" data-legend-baseline="624" data-legend-width="83">+ <rect x="355" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="377" y="624" class="t-muted" font-size="10" font-weight="500">decision</text></g>- <g data-legend-semantic-kind="success" data-legend-kind="success" data-legend-label="terminal success" data-legend-x="456" data-legend-baseline="624" data-legend-width="122">- <rect x="456" y="616" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="477" y="624" class="t-muted" font-size="8">terminal success</text>+ <g data-legend-semantic-kind="success" data-legend-kind="success" data-legend-label="terminal success" data-legend-x="460" data-legend-baseline="624" data-legend-width="123">+ <rect x="460" y="616" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="482" y="624" class="t-muted" font-size="10" font-weight="500">terminal success</text></g>- <g data-legend-semantic-kind="failure" data-legend-kind="failure" data-legend-label="failure / exit" data-legend-x="600" data-legend-baseline="624" data-legend-width="112">- <rect x="600" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="621" y="624" class="t-muted" font-size="8">failure / exit</text>+ <g data-legend-semantic-kind="failure" data-legend-kind="failure" data-legend-label="failure / exit" data-legend-x="605" data-legend-baseline="624" data-legend-width="113">+ <rect x="605" y="616" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>+ <text x="627" y="624" class="t-muted" font-size="10" font-weight="500">failure / exit</text></g></g></svg>@@ -4976,10 +5246,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Lifecycle diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=lifecycle&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5125,7 +5391,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5155,7 +5420,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6278,12 +6542,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10928,7 +11190,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10947,7 +11208,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/examples/maka-architecture.html b/examples/maka-architecture.htmlindex 9d26e6f9..2fb70a7d 100644--- a/examples/maka-architecture.html+++ b/examples/maka-architecture.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,8 +592,7 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);@@ -2759,26 +2757,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -4762,35 +4740,35 @@<!-- Legend -->- <g data-legend-bridge>- <text x="40" y="559" class="t-primary" font-size="9" font-weight="600">Legend</text>- <g data-legend-kind="external">- <rect x="40" y="564" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="60" y="572" class="t-muted" font-size="8">External</text>+ <g data-legend data-legend-bridge>+ <text x="40" y="552" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="Frontend" data-legend-x="40" data-legend-baseline="572" data-legend-width="82">+ <rect x="40" y="564" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>+ <text x="61" y="572" class="t-muted" font-size="8">Frontend</text></g>- <g data-legend-kind="frontend">- <rect x="144" y="564" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="164" y="572" class="t-muted" font-size="8">Frontend</text>+ <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="144" data-legend-baseline="572" data-legend-width="77">+ <rect x="144" y="564" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>+ <text x="165" y="572" class="t-muted" font-size="8">Backend</text></g>- <g data-legend-kind="backend">- <rect x="248" y="564" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="268" y="572" class="t-muted" font-size="8">Backend</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="243" data-legend-baseline="572" data-legend-width="82">+ <rect x="243" y="564" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>+ <text x="264" y="572" class="t-muted" font-size="8">Database</text></g>- <g data-legend-kind="cloud">+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="347" data-legend-baseline="572" data-legend-width="67"><rect x="347" y="564" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="367" y="572" class="t-muted" font-size="8">Cloud</text>+ <text x="368" y="572" class="t-muted" font-size="8">Cloud</text></g>- <g data-legend-kind="security">+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="436" data-legend-baseline="572" data-legend-width="82"><rect x="436" y="564" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="456" y="572" class="t-muted" font-size="8">Security</text>+ <text x="457" y="572" class="t-muted" font-size="8">Security</text></g>- <g data-legend-kind="database">- <rect x="540" y="564" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="560" y="572" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="540" data-legend-baseline="572" data-legend-width="97">+ <rect x="540" y="564" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>+ <text x="561" y="572" class="t-muted" font-size="8">Message bus</text></g>- <g data-legend-kind="messagebus">- <rect x="644" y="564" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="664" y="572" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="659" data-legend-baseline="572" data-legend-width="82">+ <rect x="659" y="564" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>+ <text x="680" y="572" class="t-muted" font-size="8">External</text></g></g></svg>@@ -5013,10 +4991,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Architecture diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5497,6 +5471,7 @@});Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-kind]'), function (el) {el.removeAttribute('data-legend-kind');+ el.removeAttribute('data-legend-label');el.removeAttribute('data-legend-count');el.removeAttribute('data-legend-zero');el.removeAttribute('data-legend-selected');@@ -12455,7 +12430,8 @@}entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');- entry.setAttribute('aria-label', 'Inspect ' + fact.label + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;+ entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.htmlindex f9208662..4f0bfa5b 100644--- a/examples/sequence-cache-miss-request.html+++ b/examples/sequence-cache-miss-request.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Cache Miss Request Sequence</h1></div>- <p class="subtitle">Frontend request path with auth, cache fallback, persistence, and async trace</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"request-and-auth","label":"Request and identity","focus":["user","web","api","auth"],"note":"Follow the user request through the authentication check."},{"id":"cache-fallback","label":"Cache fallback","focus":["api","redis","db"],"note":"See the cache miss and the source-of-truth query it triggers."},{"id":"return-and-trace","label":"Return and trace","focus":["db","api","redis","trace","web","user"],"note":"Separate response latency from the non-blocking observability write."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 820 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Cache Miss Request Sequence</title>- <desc id="archify-diagram-description">Frontend request path with auth, cache fallback, persistence, and async trace</desc>+ <desc id="archify-diagram-description">A sequence diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4800,26 +5070,26 @@<!-- Legend --><g data-legend>- <text x="40" y="686" class="t-primary" font-size="10" font-weight="600">Legend</text>+ <text x="40" y="686" class="t-primary" font-size="12" font-weight="650">Legend</text><g data-legend-semantic-kind="emphasis" data-legend-x="40" data-legend-baseline="706" data-legend-width="78"><path d="M 40 703 L 74 703" class="a-emphasis" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>- <text x="83" y="706" class="t-muted" font-size="8">request</text>+ <text x="83" y="706" class="t-muted" font-size="10" font-weight="500">request</text></g><g data-legend-semantic-kind="return" data-legend-x="140" data-legend-baseline="706" data-legend-width="73"><path d="M 140 703 L 174 703" class="a-default" stroke-width="1.4" stroke-dasharray="3,5" marker-end="url(#arrowhead)"/>- <text x="183" y="706" class="t-muted" font-size="8">return</text>+ <text x="183" y="706" class="t-muted" font-size="10" font-weight="500">return</text></g><g data-legend-semantic-kind="security" data-legend-x="235" data-legend-baseline="706" data-legend-width="83"><path d="M 235 703 L 269 703" class="a-security" stroke-width="1.4" marker-end="url(#arrowhead-security)"/>- <text x="278" y="706" class="t-muted" font-size="8">security</text>+ <text x="278" y="706" class="t-muted" font-size="10" font-weight="500">security</text></g><g data-legend-semantic-kind="dashed" data-legend-x="340" data-legend-baseline="706" data-legend-width="98"><path d="M 340 703 L 374 703" class="a-dashed" stroke-width="1.4" marker-end="url(#arrowhead-dashed)"/>- <text x="383" y="706" class="t-muted" font-size="8">async trace</text>+ <text x="383" y="706" class="t-muted" font-size="10" font-weight="500">async trace</text></g><g data-legend-semantic-kind="default" data-legend-x="460" data-legend-baseline="706" data-legend-width="118"><path d="M 460 703 L 494 703" class="a-default" stroke-width="1.4" marker-end="url(#arrowhead)"/>- <text x="503" y="706" class="t-muted" font-size="8">default message</text>+ <text x="503" y="706" class="t-muted" font-size="10" font-weight="500">default message</text></g></g></svg>@@ -5042,10 +5312,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Sequence diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=sequence&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5191,7 +5457,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5221,7 +5486,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6344,12 +6608,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10994,7 +11256,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11013,7 +11274,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/examples/sequence-cache-miss.html b/examples/sequence-cache-miss.htmlindex e8403236..bc63cec9 100644--- a/examples/sequence-cache-miss.html+++ b/examples/sequence-cache-miss.html@@ -227,13 +227,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -725,10 +718,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Sequence diagram • Built with Archify<span class="no-print"> • Press <kbd>T</kbd> for theme and <kbd>E</kbd> for export</span>- </p></div><script>diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.htmlindex 99b44cd6..6ce3815b 100644--- a/examples/web-app-rendered.html+++ b/examples/web-app-rendered.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Sample Web App</h1></div>- <p class="subtitle">Classic 3-tier SaaS on AWS — rendered by Archify</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"request-path","label":"Primary request path","focus":["users","cdn","lb","api","db"],"note":"Follow the primary customer request from the edge to durable state."},{"id":"identity-and-cache","label":"Identity and cache","focus":["auth","api","cache"],"note":"Isolate authentication and the read-through cache beside the request path."},{"id":"async-work","label":"Static and async work","focus":["cdn","s3","api","queue","worker"],"note":"See the two secondary paths without adding noise to the main request."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 1080 588" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Sample Web App</title>- <desc id="archify-diagram-description">Classic 3-tier SaaS on AWS — rendered by Archify</desc>+ <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4738,30 +5008,30 @@<!-- Legend --><g data-legend data-legend-bridge>- <text x="40" y="552" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Backend" data-legend-x="40" data-legend-baseline="572" data-legend-width="77">- <rect x="40" y="564" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="61" y="572" class="t-muted" font-size="8">Backend</text>+ <text x="40" y="552" 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="572" data-legend-width="78">+ <rect x="40" y="563" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>+ <text x="62" y="572" 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="139" data-legend-baseline="572" data-legend-width="82">- <rect x="139" y="564" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="160" y="572" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="140" data-legend-baseline="572" data-legend-width="83">+ <rect x="140" y="563" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>+ <text x="162" y="572" 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="243" data-legend-baseline="572" data-legend-width="67">- <rect x="243" y="564" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="264" y="572" class="t-muted" font-size="8">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="572" data-legend-width="68">+ <rect x="245" y="563" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="267" y="572" 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="332" data-legend-baseline="572" data-legend-width="82">- <rect x="332" y="564" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="353" y="572" class="t-muted" font-size="8">Security</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="572" data-legend-width="83">+ <rect x="335" y="563" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="357" y="572" 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="436" data-legend-baseline="572" data-legend-width="97">- <rect x="436" y="564" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="457" y="572" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="440" data-legend-baseline="572" data-legend-width="98">+ <rect x="440" y="563" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>+ <text x="462" y="572" 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="555" data-legend-baseline="572" data-legend-width="82">- <rect x="555" y="564" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="576" y="572" class="t-muted" font-size="8">External</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="560" data-legend-baseline="572" data-legend-width="83">+ <rect x="560" y="563" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="582" y="572" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg>@@ -4982,10 +5252,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Architecture diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5131,7 +5397,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5161,7 +5426,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6284,12 +6548,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10934,7 +11196,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10953,7 +11214,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/examples/web-app.html b/examples/web-app.htmlindex 9991e35d..6ce3815b 100644--- a/examples/web-app.html+++ b/examples/web-app.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Sample Web App</h1></div>- <p class="subtitle">Classic 3-tier SaaS on AWS — rendered by Archify</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"request-path","label":"Primary request path","focus":["users","cdn","lb","api","db"],"note":"Follow the primary customer request from the edge to durable state."},{"id":"identity-and-cache","label":"Identity and cache","focus":["auth","api","cache"],"note":"Isolate authentication and the read-through cache beside the request path."},{"id":"async-work","label":"Static and async work","focus":["cdn","s3","api","queue","worker"],"note":"See the two secondary paths without adding noise to the main request."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 1080 588" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Sample Web App</title>- <desc id="archify-diagram-description">Classic 3-tier SaaS on AWS — rendered by Archify</desc>+ <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4737,31 +5007,31 @@<!-- Legend -->- <g data-legend-bridge>- <text x="40" y="559" class="t-primary" font-size="9" font-weight="600">Legend</text>- <g data-legend-kind="external">- <rect x="40" y="564" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="60" y="572" class="t-muted" font-size="8">External</text>+ <g data-legend data-legend-bridge>+ <text x="40" y="552" 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="572" data-legend-width="78">+ <rect x="40" y="563" width="16" height="10" rx="2.5" class="c-backend" stroke-width="1"/>+ <text x="62" y="572" class="t-muted" font-size="10" font-weight="500">Backend</text></g>- <g data-legend-kind="security">- <rect x="144" y="564" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="164" y="572" class="t-muted" font-size="8">Security</text>+ <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Database" data-legend-x="140" data-legend-baseline="572" data-legend-width="83">+ <rect x="140" y="563" width="16" height="10" rx="2.5" class="c-database" stroke-width="1"/>+ <text x="162" y="572" class="t-muted" font-size="10" font-weight="500">Database</text></g>- <g data-legend-kind="cloud">- <rect x="248" y="564" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="268" y="572" class="t-muted" font-size="8">Cloud</text>+ <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud" data-legend-x="245" data-legend-baseline="572" data-legend-width="68">+ <rect x="245" y="563" width="16" height="10" rx="2.5" class="c-cloud" stroke-width="1"/>+ <text x="267" y="572" class="t-muted" font-size="10" font-weight="500">Cloud</text></g>- <g data-legend-kind="backend">- <rect x="337" y="564" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="357" y="572" class="t-muted" font-size="8">Backend</text>+ <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Security" data-legend-x="335" data-legend-baseline="572" data-legend-width="83">+ <rect x="335" y="563" width="16" height="10" rx="2.5" class="c-security" stroke-width="1"/>+ <text x="357" y="572" class="t-muted" font-size="10" font-weight="500">Security</text></g>- <g data-legend-kind="database">- <rect x="436" y="564" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="456" y="572" class="t-muted" font-size="8">Database</text>+ <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Message bus" data-legend-x="440" data-legend-baseline="572" data-legend-width="98">+ <rect x="440" y="563" width="16" height="10" rx="2.5" class="c-messagebus" stroke-width="1"/>+ <text x="462" y="572" class="t-muted" font-size="10" font-weight="500">Message bus</text></g>- <g data-legend-kind="messagebus">- <rect x="540" y="564" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="560" y="572" class="t-muted" font-size="8">Message bus</text>+ <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External" data-legend-x="560" data-legend-baseline="572" data-legend-width="83">+ <rect x="560" y="563" width="16" height="10" rx="2.5" class="c-external" stroke-width="1"/>+ <text x="582" y="572" class="t-muted" font-size="10" font-weight="500">External</text></g></g></svg>@@ -4982,10 +5252,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Architecture diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=architecture&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5131,7 +5397,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5161,7 +5426,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6284,12 +6548,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -10934,7 +11196,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -10953,7 +11214,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.htmlindex d77b11ed..2f6e1663 100644--- a/examples/workflow-agent-tool-call-rendered.html+++ b/examples/workflow-agent-tool-call-rendered.html@@ -50,7 +50,7 @@--text: #ffffff;--text-muted: #94a3b8;--text-dim: #475569;- /* UI chrome (menu hints, footer) needs more contrast than SVG .t-dim accents */+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */--text-faint: #7d8da1;--panel: rgba(15, 23, 42, 0.5);@@ -397,7 +397,6 @@html[data-embed="true"] .toolbar,html[data-embed="true"] .header,html[data-embed="true"] .cards,- html[data-embed="true"] .footer,html[data-embed="true"] .diagram-nav,html[data-embed="true"] .overview-map,html[data-embed="true"] .focus-chip,@@ -593,16 +592,31 @@height: 100%;min-width: 0;}- html[data-present="true"]:not([data-embed="true"]) .cards,- html[data-present="true"]:not([data-embed="true"]) .footer { display: none; }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }html[data-present="true"]:not([data-embed="true"]) #btn-present {border-color: var(--frontend-stroke);color: var(--frontend-stroke);}- .container { max-width: 1200px; margin: 0 auto; }+ .container { width: 100%; max-width: 1440px; margin: 0 auto; }- .header { margin-bottom: 2rem; padding-right: 29.5rem; }+ /* A wide, tall desktop has room for the whole reading surface. Let the+ panel grow with it instead of locking every architecture map to a+ shallow 1440px strip; SVG geometry remains proportionate. */+ @media (min-width: 1680px) and (min-height: 960px) {+ .container { max-width: min(1680px, calc(100vw - 4rem)); }+ }+ @media (min-width: 1920px) and (min-height: 1120px) {+ .container { max-width: min(1920px, calc(100vw - 4rem)); }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }html[data-preset="signal-flow"] .header,html[data-preset="blueprint"] .header,@@ -903,14 +917,18 @@z-index: 12;display: inline-flex;align-items: center;- padding: 0.25rem;- gap: 0.2rem;- border: 1px solid var(--toolbar-border);- border-radius: 0.65rem;- background: var(--toolbar-bg);- box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);- backdrop-filter: blur(10px);+ max-width: calc(100% - 2rem);+ padding: 0.125rem;+ gap: 0;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--toolbar-bg) 78%, transparent);+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);+ backdrop-filter: blur(14px);+ scrollbar-width: none;}+ .diagram-nav::-webkit-scrollbar { display: none; }.diagram-nav button,.focus-chip button,.guided-views button {@@ -921,12 +939,14 @@cursor: pointer;}.diagram-nav button {- min-width: 2rem;- height: 2rem;- padding: 0 0.45rem;- border-radius: 0.4rem;- font-size: 0.75rem;- font-weight: 600;+ min-width: 2.75rem;+ height: 2.75rem;+ padding: 0 0.4rem;+ border-radius: 0.35rem;+ color: color-mix(in srgb, var(--toolbar-text) 68%, transparent);+ font-size: 0.65rem;+ font-weight: 580;+ letter-spacing: 0.025em;}.diagram-nav button:hover,.diagram-nav button:focus-visible,@@ -941,7 +961,18 @@outline-offset: 1px;}.diagram-nav button:disabled { opacity: 0.38; cursor: default; }- .diagram-nav [data-view="reset"] { min-width: 3.35rem; font-size: 0.625rem; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ color: color-mix(in srgb, var(--toolbar-text) 86%, transparent);+ font-weight: 650;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ margin-left: 0.1rem;+ box-shadow: -1px 0 0 color-mix(in srgb, var(--toolbar-border) 55%, transparent);+ }+ .diagram-nav [data-view="reset"] { min-width: 3.5rem; font-size: 0.6rem; }.diagram-container[data-camera-indicator="true"] .diagram-nav [data-view="reset"] {min-width: 5.2rem;color: var(--frontend-stroke);@@ -2696,6 +2727,20 @@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; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ }+html[data-preset="blueprint"] .card {position: relative;border-color: var(--panel-border);@@ -2759,26 +2804,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-- .footer .artifact-start-link {- color: var(--text-faint);- text-decoration-color: color-mix(in srgb, var(--frontend-stroke) 48%, transparent);- text-underline-offset: 0.22em;- transition: color 0.15s ease, text-decoration-color 0.15s ease;- }-- .footer .artifact-start-link:hover,- .footer .artifact-start-link:focus-visible {- color: var(--frontend-stroke);- text-decoration-color: currentColor;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -2876,7 +2901,12 @@top: 1rem;right: 1rem;display: flex;+ align-items: center;gap: 0.5rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;z-index: 100;}.toolbar button {@@ -2884,13 +2914,15 @@color: var(--toolbar-text);border: 1px solid var(--toolbar-border);padding: 0.5rem 0.875rem;- border-radius: 0.5rem;+ border-radius: 0.625rem;font-family: inherit;font-size: 0.75rem;font-weight: 500;cursor: pointer;- backdrop-filter: blur(8px);- transition: background 0.15s, border-color 0.15s;+ 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;display: inline-flex;align-items: center;gap: 0.375rem;@@ -2898,7 +2930,22 @@}.toolbar button:hover {background: var(--toolbar-hover);- border-color: var(--arrow);+ border-color: color-mix(in srgb, var(--arrow) 62%, var(--toolbar-border));+ }+ .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 #btn-export {+ padding-right: 0.82rem;+ padding-left: 0.82rem;+ }+ .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 button:focus-visible {outline: 2px solid var(--frontend-stroke);@@ -2907,7 +2954,49 @@.toolbar #btn-motion[hidden] { display: none !important; }.toolbar #btn-motion { min-width: 4.4rem; }.toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }- .toolbar .preset-wrap { position: relative; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -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");+ 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");+ }+ [data-theme="dark"] #theme-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -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");+ 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");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -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");+ 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");+ }+ .toolbar-chevron {+ -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");+ 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");+ }.toolbar #btn-preset { min-width: 5.4rem; }.preset-control-mark {width: 0.58rem;@@ -2940,14 +3029,24 @@top: calc(100% + 0.375rem);right: 0;display: none;- width: 16.5rem;- padding: 0.4rem;+ width: 18.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.45rem;border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;+ border-radius: 0.875rem;background: var(--toolbar-menu-bg);- box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);}.toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }.preset-menu-heading {display: flex;align-items: baseline;@@ -2973,12 +3072,18 @@min-height: 3.35rem;padding: 0.5rem 0.62rem;border: 0;- border-radius: 0.34rem;+ border-radius: 0.5rem;background: transparent;+ box-shadow: none;+ backdrop-filter: none;text-align: left;}.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);+ }.preset-option-swatch {position: relative;width: 2rem;@@ -3076,8 +3181,19 @@text-overflow: ellipsis;}.preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;color: var(--frontend-stroke);- font-size: 0.78rem;+ background: currentColor;+ -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");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ 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");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;opacity: 0;}.preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }@@ -3107,42 +3223,171 @@background: transparent;box-shadow: none;}- .toolbar .export-wrap { position: relative; }.toolbar .export-menu {position: absolute;top: calc(100% + 0.375rem);right: 0;background: var(--toolbar-menu-bg);border: 1px solid var(--toolbar-border);- border-radius: 0.5rem;- padding: 0.375rem;- min-width: 160px;+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.55rem;display: none;flex-direction: column;- box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ box-shadow: 0 18px 48px rgba(0,0,0,0.24);}.toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.5rem 0.55rem 0.72rem;+ }+ .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;+ }+ .export-menu-header span {+ margin-top: 0.16rem;+ color: var(--text-faint);+ font-size: 0.56rem;+ }+ .export-menu-header kbd {+ padding: 0.16rem 0.36rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.3rem;+ color: var(--text-faint);+ background: color-mix(in srgb, var(--toolbar-border) 16%, transparent);+ font-family: inherit;+ font-size: 0.54rem;+ font-weight: 600;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.18rem;+ }+ .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);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.24rem 0.55rem 0.2rem;+ color: var(--text-faint);+ font-size: 0.54rem;+ font-weight: 600;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }.toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1.15rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.52rem;background: transparent;- border: 0;- justify-content: space-between;+ border: 1px solid transparent;+ box-shadow: none;+ backdrop-filter: none;width: 100%;+ min-height: 3rem;text-align: left;- padding: 0.5rem 0.75rem;+ padding: 0.48rem 0.55rem;+ border-radius: 0.5rem;+ white-space: nowrap;+ }+ .export-item-copy {+ display: block;+ 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;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.55rem;+ font-weight: 450;+ text-overflow: ellipsis;+ }+ .toolbar .export-menu button::before {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ content: "";+ opacity: 0.72;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ 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");+ 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");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -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");+ 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");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::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='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="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));}.toolbar .export-menu button[hidden] { display: none; }.toolbar .export-menu button:hover {background: var(--toolbar-hover);}- .toolbar .export-menu .hint {+ .toolbar .export-menu button:focus-visible {+ background: var(--toolbar-hover);+ outline-offset: -2px;+ }+ .toolbar .export-menu button:disabled {color: var(--text-faint);- font-size: 0.625rem;+ background: color-mix(in srgb, var(--toolbar-border) 18%, transparent);+ cursor: not-allowed;}- .toolbar .export-menu hr {- border: 0;- border-top: 1px solid var(--toolbar-border);- margin: 0.25rem 0.375rem;- opacity: 0.5;+ .toolbar .export-menu button:disabled:hover {+ border-color: transparent;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.55rem;}/* Toast — brief feedback for actions like "copied" */@@ -3171,16 +3416,21 @@@media (max-width: 720px) {body { padding: 1rem; }- .toolbar .preset-menu {+ .toolbar .preset-menu,+ .toolbar .export-menu {position: fixed;top: 4.5rem;right: 1rem;left: 1rem;width: auto;+ max-width: none;}.toolbar {position: relative;justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;margin-bottom: 1rem;}.header { margin-bottom: 1.25rem; padding-right: 0; }@@ -3498,8 +3748,19 @@}}+ @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; }}@media (max-width: 360px) {@@ -3688,7 +3949,7 @@}svg [data-legend-count-badge] text {fill: var(--text-muted);- font-size: 7px;+ font-size: 8px;font-weight: 700;text-anchor: middle;}@@ -4411,7 +4672,7 @@title="Toggle theme (T)"aria-label="Toggle color theme"aria-pressed="false">- <span id="theme-icon" aria-hidden="true">☾</span>+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span><span id="theme-label">Dark</span></button><div class="preset-wrap">@@ -4424,29 +4685,29 @@aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span><span id="preset-label">Style</span>- <span aria-hidden="true">▾</span>+ <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><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>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span><span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span><span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span><span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>- <span class="preset-option-check" aria-hidden="true">✓</span>+ <span class="preset-option-check" aria-hidden="true"></span></button></div></div>@@ -4461,7 +4722,7 @@title="Presentation stage (F)"aria-label="Enter presentation stage"aria-pressed="false">- <span id="present-icon" aria-hidden="true">□</span>+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span><span id="present-label">Present</span></button><div class="export-wrap">@@ -4471,22 +4732,32 @@aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span aria-hidden="true">▾</span>+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button><div class="export-menu" id="export-menu" role="menu" aria-label="Export">- <button data-format="share-card" type="button" role="menuitem" tabindex="-1">Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Route Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled>Reach Share Card <span class="hint">1200×630 PNG</span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1">Copy Share Card <span class="hint">PNG</span></button>- <hr role="separator">- <button data-action="copy" type="button" role="menuitem" tabindex="-1">Copy to clipboard <span class="hint">PNG</span></button>- <hr role="separator">- <button data-format="png" type="button" role="menuitem" tabindex="-1">Download PNG</button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1">Download JPEG</button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1">Download WebP</button>- <hr role="separator">- <button data-format="svg" type="button" role="menuitem" tabindex="-1">Download SVG <span class="hint">vector</span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1">Download WebM <span class="hint">6s motion</span></button>+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </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">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </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="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></div></div>@@ -4498,7 +4769,6 @@<div class="pulse-dot"></div><h1>Agent Tool Call Workflow</h1></div>- <p class="subtitle">Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges</p></div><script id="archify-guided-views-data" type="application/json">[{"id":"happy-path","label":"Request to result","focus":["user","chat","planner","router","approval","tool","external","final"],"note":"Follow the successful request from user intent to the final reply."},{"id":"safety-gate","label":"Policy and recovery","focus":["router","approval","blocked","retry"],"note":"See where risky work stops, waits for consent, or returns for revision."},{"id":"evidence-loop","label":"Evidence and memory","focus":["external","store","trace"],"note":"Isolate the durable trace and context path behind the visible answer."}]</script>@@ -4546,7 +4816,7 @@<div class="diagram-container" data-detail-level="read"><svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Tool Call Workflow</title>- <desc id="archify-diagram-description">Renderer-driven workflow prototype with lanes, anchored nodes, and orthogonal edges</desc>+ <desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -4800,37 +5070,7 @@</g><!-- Legend -->- <g data-legend data-legend-bridge>- <text x="20" y="800" class="t-primary" font-size="10" font-weight="600">Legend</text>- <g data-legend-semantic-kind="frontend" data-legend-kind="frontend" data-legend-label="User UI" data-legend-x="20" data-legend-baseline="820" data-legend-width="73">- <rect x="20" y="812" width="14" height="9" rx="2" class="c-frontend" stroke-width="1"/>- <text x="41" y="820" class="t-muted" font-size="7">User UI</text>- </g>- <g data-legend-semantic-kind="backend" data-legend-kind="backend" data-legend-label="Agent logic" data-legend-x="100" data-legend-baseline="820" data-legend-width="90">- <rect x="100" y="812" width="14" height="9" rx="2" class="c-backend" stroke-width="1"/>- <text x="121" y="820" class="t-muted" font-size="7">Agent logic</text>- </g>- <g data-legend-semantic-kind="security" data-legend-kind="security" data-legend-label="Policy" data-legend-x="197" data-legend-baseline="820" data-legend-width="69">- <rect x="197" y="812" width="14" height="9" rx="2" class="c-security" stroke-width="1"/>- <text x="218" y="820" class="t-muted" font-size="7">Policy</text>- </g>- <g data-legend-semantic-kind="messagebus" data-legend-kind="messagebus" data-legend-label="Tool action" data-legend-x="273" data-legend-baseline="820" data-legend-width="90">- <rect x="273" y="812" width="14" height="9" rx="2" class="c-messagebus" stroke-width="1"/>- <text x="294" y="820" class="t-muted" font-size="7">Tool action</text>- </g>- <g data-legend-semantic-kind="database" data-legend-kind="database" data-legend-label="Context / trace" data-legend-x="370" data-legend-baseline="820" data-legend-width="108">- <rect x="370" y="812" width="14" height="9" rx="2" class="c-database" stroke-width="1"/>- <text x="391" y="820" class="t-muted" font-size="7">Context / trace</text>- </g>- <g data-legend-semantic-kind="cloud" data-legend-kind="cloud" data-legend-label="Cloud service" data-legend-x="485" data-legend-baseline="820" data-legend-width="99">- <rect x="485" y="812" width="14" height="9" rx="2" class="c-cloud" stroke-width="1"/>- <text x="506" y="820" class="t-muted" font-size="7">Cloud service</text>- </g>- <g data-legend-semantic-kind="external" data-legend-kind="external" data-legend-label="External system" data-legend-x="591" data-legend-baseline="820" data-legend-width="108">- <rect x="591" y="812" width="14" height="9" rx="2" class="c-external" stroke-width="1"/>- <text x="612" y="820" class="t-muted" font-size="7">External system</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">@@ -5054,10 +5294,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Workflow diagram • Built with Archify<span class="no-print"> • <a class="artifact-start-link" href="https://tt-a1i.github.io/archify/start.html?type=workflow&source=artifact" target="_blank" rel="noopener noreferrer">Create yours ↗</a> • Hover to trace • <kbd>R</kbd> route • Click to focus • <kbd>+</kbd>/<kbd>−</kbd> zoom • <kbd>M</kbd> radar • <kbd>[</kbd>/<kbd>]</kbd> views • <kbd>P</kbd> play story • <kbd>T</kbd> theme • <kbd>E</kbd> export</span>- </p></div><script>@@ -5203,7 +5439,6 @@var STORAGE_KEY = 'archify-theme';var html = document.documentElement;var btn = document.getElementById('btn-theme');- var icon = document.getElementById('theme-icon');var label = document.getElementById('theme-label');// localStorage can throw (blocked cookies, sandboxed iframes); the whole@@ -5233,7 +5468,6 @@function apply(theme) {html.setAttribute('data-theme', theme);- icon.textContent = theme === 'dark' ? '\u263E' : '\u263C';label.textContent = theme === 'dark' ? 'Dark' : 'Light';btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -6356,12 +6590,10 @@if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;it.title = 'Not supported by this browser';- it.style.opacity = '0.5';}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;it.title = 'Clipboard image write not supported by this browser';- it.style.opacity = '0.5';}});@@ -11006,7 +11238,6 @@Archify.presentation = (function () {var html = document.documentElement;var btn = document.getElementById('btn-present');- var icon = document.getElementById('present-icon');var label = document.getElementById('present-label');var previousScrollY = 0;@@ -11025,7 +11256,6 @@btn.setAttribute('aria-pressed', next ? 'true' : 'false');btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- icon.textContent = next ? '\u00d7' : '\u25a1';label.textContent = next ? 'Exit' : 'Present';}diff --git a/examples/workflow-agent-tool-call.html b/examples/workflow-agent-tool-call.htmlindex 7eb5ec26..2d25b4ab 100644--- a/examples/workflow-agent-tool-call.html+++ b/examples/workflow-agent-tool-call.html@@ -227,13 +227,6 @@.card li { margin-bottom: 0.375rem; }- .footer {- text-align: center;- margin-top: 1.5rem;- color: var(--text-faint);- font-size: 0.75rem;- }-/* ==========================================================Print stylesheet — hide interactive controls, force light,drop the grid so the diagram doesn't waste ink, use landscape@@ -746,10 +739,6 @@</div></div>- <!-- Footer -->- <p class="footer">- Workflow diagram • Built with Archify<span class="no-print"> • Press <kbd>T</kbd> for theme and <kbd>E</kbd> for export</span>- </p></div><script>