.mermaid svg{cursor:default}.theme-dark .mermaid>svg:not(.pele){filter:invert(100%) hue-rotate(180deg) saturate(1.25)}@media screen{body.mde-full-width .markdown-source-view:not(.is-readable-line-width) .mermaid>svg,body.mde-full-width .markdown-preview-view:not(.is-readable-line-width) .mermaid>svg{width:100%!important;max-width:none!important;height:auto!important}}body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-node{cursor:grab}body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-node.mp-dragging{cursor:grabbing;opacity:.7}body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-node--component text.wardley-node-label,body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-node--pipeline-component text.wardley-node-label{cursor:move}body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-node.mp-drop-target{filter:drop-shadow(0 0 4px var(--interactive-accent))}body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-node.mde-glow,body.mp-wardley-edit .mermaid svg[data-mp-src] rect.wardley-pipeline-box.mde-glow{filter:drop-shadow(0 0 3px var(--interactive-accent)) drop-shadow(0 0 1px var(--interactive-accent))}.mermaid svg[data-mp-src] g.mde-link-glow line{stroke:var(--interactive-accent);stroke-linecap:round;fill:none}.mermaid svg[data-mp-src] g.mde-link-glow line.mde-glow-base{stroke-width:7px;stroke-opacity:.18}.mermaid svg[data-mp-src] g.mde-link-glow line.mde-glow-run{stroke-width:4px;stroke-opacity:.45;stroke-dasharray:6 10;animation:mde-link-run .8s linear infinite}.mermaid svg[data-mp-src] g.mde-link-glow.mde-run-backward line.mde-glow-run{animation-direction:reverse}.mermaid svg[data-mp-src] g.mde-link-glow.mde-run-none line.mde-glow-run{animation:none;stroke-dasharray:none;stroke-opacity:.3}@keyframes mde-link-run{0%{stroke-dashoffset:16}to{stroke-dashoffset:0}}@media(prefers-reduced-motion:reduce){.mermaid svg[data-mp-src] g.mde-link-glow line.mde-glow-run{animation:none}}.mermaid svg g.wardley-node.mde-class-highlight>circle:not([class]),.mermaid svg g.wardley-node.mde-class-highlight>circle.wardley-market-overlay,.mermaid svg g.wardley-node.mde-class-highlight>rect{stroke:var(--color-accent);stroke-width:2.5px}.mermaid svg g.wardley-node.mde-class-highlight>text.wardley-node-label{fill:var(--color-accent);font-weight:700}.mermaid svg line.wardley-link.mde-class-highlight{stroke:var(--color-accent)}.mermaid svg g.mde-group.mde-class-highlight>path.mde-group-boundary{stroke:var(--color-accent)}.mermaid svg g.mde-group.mde-class-highlight>text.mde-group-label{fill:var(--color-accent);font-weight:700}body.mp-wardley-edit .mermaid svg[data-mp-src] text.mde-group-label{cursor:move}body.mp-wardley-edit .mermaid svg[data-mp-src] g.mde-group.mp-group-editing>path.mde-group-boundary{stroke-width:2.5px;filter:drop-shadow(0 0 3px var(--interactive-accent)) drop-shadow(0 0 2px var(--interactive-accent))}body.mp-wardley-edit .mermaid svg[data-mp-src] g.mde-group.mp-group-editing>text.mde-group-label{filter:drop-shadow(0 0 3px var(--interactive-accent))}body.mp-wardley-edit .mermaid svg[data-mp-src] rect.wardley-pipeline-box.mp-group-editing{stroke-width:2.5px;filter:drop-shadow(0 0 3px var(--interactive-accent)) drop-shadow(0 0 2px var(--interactive-accent))}body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-node.mp-group-editing{filter:drop-shadow(0 0 3px var(--interactive-accent)) drop-shadow(0 0 2px var(--interactive-accent))}.mermaid svg[aria-roledescription=wardley] marker[id^=link-arrow-]>path{fill:context-stroke}.mermaid svg[data-mp-src] line.mp-new-link{stroke:var(--interactive-accent);stroke-width:2;stroke-dasharray:5 3}.mermaid svg[data-mp-src] circle.mp-new-link-end{fill:var(--interactive-accent);stroke:var(--background-primary);stroke-width:1.5;cursor:grab}.mermaid.mde-host{position:relative}.mde-actions{position:absolute;top:var(--size-2-2);z-index:2;display:flex;gap:var(--size-2-1);opacity:0;transition:opacity .07s ease-out}.mde-actions-left{inset-inline-start:var(--size-2-2)}.mde-actions-right{inset-inline-end:var(--size-2-2)}.mermaid.mde-host:hover>.mde-actions,.cm-embed-block:hover>.mermaid.mde-host>.mde-actions,.mde-actions.is-open,.mde-zoom .mde-actions{opacity:1}.mde-actions .embed-action{display:flex;padding:var(--size-2-2) var(--size-2-3);color:var(--embed-action-color);border-radius:var(--embed-action-radius);cursor:var(--cursor)}.mde-actions .embed-action:hover{background-color:var(--background-modifier-hover)}body:not(.mp-wardley-edit) .mde-actions-left[data-kind=wardley],body:not(.mp-flowchart-edit) .mde-actions-left[data-kind=flowchart]{display:none}.mp-legend{position:absolute;top:calc(100% + 4px);inset-inline-start:0;z-index:var(--layer-popover);display:grid;grid-auto-flow:column;gap:2px 8px;padding:4px 6px;font-size:var(--font-ui-smaller);white-space:nowrap;background:var(--background-primary);border:1px solid var(--background-modifier-border);border-radius:var(--radius-s);box-shadow:var(--shadow-s);opacity:0;pointer-events:none;transition:opacity .12s}.mp-legend.is-visible{opacity:1;pointer-events:auto}.mp-legend-item{display:flex;align-items:center;gap:6px;padding:1px 4px;border-radius:var(--radius-s);cursor:copy;color:var(--text-normal)}.mp-legend-item:hover,.mp-legend-item.is-armed{background:var(--background-modifier-hover)}.mp-legend-item.is-armed{outline:1px solid var(--interactive-accent)}@media print{.mde-actions,.mde-zoom-button,.mp-legend{display:none}}.mde-zoom{position:fixed;inset:0;z-index:var(--layer-modal);display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:calc(var(--safe-area-inset-top, 0px) + var(--size-4-2)) calc(var(--safe-area-inset-right, 0px) + var(--size-4-2)) calc(var(--safe-area-inset-bottom, 0px) + var(--size-4-2)) calc(var(--safe-area-inset-left, 0px) + var(--size-4-2));outline:none;touch-action:none;overscroll-behavior:contain}.mde-zoom-bg{position:absolute;inset:0;background-color:var(--lightbox-background, black);opacity:.9}.mde-zoom-panel{position:relative;max-width:100%;max-height:100%;background-color:var(--background-primary)}.mde-zoom-diagram{width:100%;height:100%}.mde-zoom .mde-zoom-diagram>svg{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}.mde-zoom-error{padding:var(--size-4-4);white-space:pre-wrap;color:var(--text-error)}body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-notes>text{cursor:grab}body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-node line.wardley-inertia{cursor:ew-resize}body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-accelerators>*,body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-deaccelerators>*,body.mp-wardley-edit .mermaid svg[data-mp-src] rect.wardley-pipeline-box,body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-annotation,body.mp-wardley-edit .mermaid svg[data-mp-src] g.wardley-annotations-box{cursor:grab}body.mp-wardley-edit .mermaid svg[data-mp-src] rect.wardley-pipeline-box{pointer-events:all}body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart]:not([data-mp-blocked]) g.node{cursor:grab}body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] g.node *{cursor:inherit}body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] g.node.mp-dragging{cursor:grabbing;opacity:.6}body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] g.node.mp-drop-target{filter:drop-shadow(0 0 5px var(--interactive-accent))}body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] g.cluster.mp-drop-target>rect{stroke:var(--interactive-accent)!important;stroke-width:3px!important}body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] path.mp-dragging{opacity:.25}body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] g.edgeLabel,body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] g.edgeLabel *,body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] .cluster-label,body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] .cluster-label *{cursor:pointer}body.mp-flowchart-edit .mermaid svg[data-mp-kind=flowchart] g.cluster.mp-leaving>rect{stroke-dasharray:6 4!important;stroke-width:2px!important}.mermaid svg[data-mp-kind=flowchart] g.mp-plus-handle{pointer-events:none}.mermaid svg[data-mp-kind=flowchart] g.mp-plus-handle circle{fill:var(--interactive-accent);stroke:var(--background-primary);stroke-width:1.5}.mermaid svg[data-mp-kind=flowchart] g.mp-plus-handle path{stroke:var(--text-on-accent);stroke-width:1.6}.mermaid svg[data-mp-kind=flowchart] g.node.mp-flash{animation:mp-flash .8s ease-in-out 2}@keyframes mp-flash{50%{filter:drop-shadow(0 0 8px var(--interactive-accent))}}.mp-drag-hint{position:fixed;z-index:var(--layer-tooltip);pointer-events:none;padding:2px 8px;font-size:var(--font-ui-smaller);color:var(--text-normal);background:var(--background-primary);border:1px solid var(--background-modifier-border);border-radius:var(--radius-s);box-shadow:var(--shadow-s)}.notice button.mp-undo{margin-left:8px}:root{--ink: #222;--ink-soft: #6b6b70;--border: #eaeaea;--surface: #f5f5f5;--accent: #8000f0;--accent-hover: #a550f0;--background-primary: #fff;--background-modifier-border: var(--border);--background-modifier-hover: var(--surface);--color-accent: var(--accent);--interactive-accent: var(--accent);--text-normal: var(--ink);--text-error: #c0262d;--text-on-accent: #fff;--cursor: pointer;--embed-action-color: var(--ink-soft);--embed-action-radius: 4px;--font-ui-smaller: 12px;--font-mermaid: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--layer-popover: 30;--layer-modal: 50;--layer-tooltip: 70;--lightbox-background: #000;--radius-s: 4px;--shadow-s: 0 1px 4px rgb(0 0 0 / 18%);--size-2-1: 2px;--size-2-2: 4px;--size-2-3: 6px;--size-4-2: 8px;--size-4-4: 16px;--safe-area-inset-top: env(safe-area-inset-top, 0px);--safe-area-inset-right: env(safe-area-inset-right, 0px);--safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);--safe-area-inset-left: env(safe-area-inset-left, 0px);--color-red: #d6242d;--color-orange: #e8760a;--color-yellow: #c99a00;--color-green: #2b8a3e;--color-cyan: #0d8ca0;--color-blue: #1c6dd0;--color-purple: var(--accent);--color-pink: #d6338f}*{box-sizing:border-box}html,body{height:100%;margin:0;color:var(--ink);background:#fff;font:14px/1.4 var(--font-mermaid)}button,input,select{font:inherit;color:inherit}button{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;background:none;border:1px solid transparent;border-radius:5px;cursor:pointer;white-space:nowrap}button:hover{background:var(--surface)}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}button.mod-cta{background:var(--accent);color:#fff}button.mod-cta:hover{background:var(--accent-hover)}button.mod-warning{color:var(--text-error);border-color:var(--text-error)}.maps-icon{display:inline-flex}#app{display:flex;flex-direction:column;height:100dvh}#toolbar{display:flex;align-items:center;gap:10px;padding:6px 10px;padding-left:calc(10px + var(--safe-area-inset-left));padding-right:calc(10px + var(--safe-area-inset-right));border-bottom:1px solid var(--border);min-width:0}#brand{font-weight:700;color:var(--accent);text-decoration:none;white-space:nowrap}#doc-name{flex:0 1 240px;min-width:80px;padding:4px 7px;font-weight:600;border:1px solid transparent;border-radius:5px}#doc-name:hover{border-color:var(--border)}#save-state{color:var(--ink-soft);font-size:12px;white-space:nowrap}#actions{display:flex;align-items:center;gap:2px;margin-left:auto}.maps-separator{width:1px;height:18px;margin:0 4px;background:var(--border)}#legal{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}#legal a,#legal button{padding:2px;color:var(--ink-soft);font-size:inherit;text-decoration:none}#legal a:hover,#legal button:hover{color:var(--accent)}@media(max-width:1080px){#save-state{display:none}}@media(max-width:960px){#actions button:not(.icon-only){font-size:0;gap:0}}#panes{flex:1;display:flex;min-height:0}#source{flex:0 0 clamp(280px,32vw,520px);min-width:0;overflow:hidden}#source .cm-editor{height:100%;font-size:13px}#source .cm-editor.cm-focused{outline:none}#source .cm-scroller{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}#source .cm-gutters{background:var(--surface);border-right:1px solid var(--border);color:var(--ink-soft)}#rail{flex:0 0 auto;display:flex;align-items:flex-start;padding:6px 2px;border-inline:1px solid var(--border);background:#fff}#source-toggle{padding:4px;color:var(--ink-soft)}#drawing{flex:1;min-width:0;position:relative;display:flex;align-items:center;justify-content:center;padding:16px;overflow:hidden}.source-hidden #source,.presenting #toolbar,.presenting #rail{display:none}@media(max-width:720px){#toolbar,#actions{flex-wrap:wrap}#app:not(.source-hidden) #source{flex:1}#app:not(.source-hidden) #drawing{display:none}}.mermaid{position:relative;user-select:none;-webkit-user-select:none}.mermaid>svg{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}.mde-actions{opacity:1}.maps-measure{position:absolute;left:-100000px;top:0;visibility:hidden}#error{position:absolute;inset:auto 12px 12px;max-height:40%;overflow:auto;padding:8px 12px;font:12px/1.4 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;color:var(--text-error);background:#fff;border:1px solid var(--text-error);border-radius:6px}.modal-container{position:fixed;inset:0;z-index:var(--layer-modal);display:flex;align-items:center;justify-content:center;padding:16px}.modal-bg{position:absolute;inset:0;background:#00000059}.modal{position:relative;width:min(460px,100%);max-height:100%;overflow:auto;padding:18px;background:#fff;border-radius:8px;box-shadow:0 10px 34px #00000047}.modal-title{margin-bottom:12px;font-size:16px;font-weight:600}.setting-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 0}.setting-item-info{min-width:0}.setting-item-name:empty,.setting-item-description:empty{display:none}.setting-item-description{font-size:12px;color:var(--ink-soft)}.setting-item-control{display:flex;align-items:center;gap:6px;margin-left:auto}.setting-item-control input[type=text],.setting-item-control select{max-width:240px;padding:4px 7px;background:#fff;border:1px solid #cfcfd4;border-radius:5px}.setting-item-control button{border-color:#cfcfd4}#notices{position:fixed;top:10px;right:10px;z-index:var(--layer-tooltip);display:flex;flex-direction:column;align-items:flex-end;gap:6px}.notice{max-width:420px;padding:8px 12px;color:#fff;background:#222;border-radius:6px}.notice button{color:#fff;border-color:#ffffff7f}.notice button:hover{background:#ffffff26}.menu{position:fixed;z-index:var(--layer-popover);min-width:170px;padding:4px;background:#fff;border:1px solid var(--border);border-radius:6px;box-shadow:0 4px 16px #00000038}.menu-item{display:flex;align-items:center;gap:8px;padding:5px 9px;border-radius:4px;cursor:pointer}.menu-item:hover{background:var(--surface)}.menu-item-icon{display:inline-flex;width:16px}.menu-separator{height:1px;margin:4px 0;background:var(--border)}.maps-doc-list{display:flex;flex-direction:column;gap:2px;max-height:50vh;overflow:auto}.maps-doc{display:flex;align-items:center;gap:4px;border-radius:5px}.maps-doc.is-current{background:var(--surface)}.maps-doc-open{flex:1;min-width:0;justify-content:space-between;gap:12px;text-align:left}.maps-doc-name{overflow:hidden;text-overflow:ellipsis;font-weight:600}.maps-doc-when{color:var(--ink-soft);font-size:12px}.maps-doc-delete{color:var(--ink-soft)}.maps-doc-delete.is-armed{color:var(--text-error)}.maps-doc-note,.maps-about{margin-top:12px;color:var(--ink-soft);font-size:12.5px}.maps-about p{margin:0 0 8px}.maps-about a{color:var(--accent)}.maps-about-links{display:flex;flex-wrap:wrap;gap:14px}
