/* Readable, independent routes. No crossing arrows or animated geometry claims. */
.pw-routes {margin:28px 0}
.pw-route {border-top:1px solid var(--rule);padding:28px 0;scroll-margin-top:85px}
.pw-heading {display:flex;align-items:start;gap:18px;list-style:none}
.pw-heading::-webkit-details-marker {display:none}
details>.pw-heading {cursor:pointer}
.pw-number {font:400 .8rem var(--mono);color:var(--muted);padding-top:6px}
.pw-heading h3 {font-size:1.4rem;line-height:1.3;margin:0}
.pw-purpose {display:block;color:var(--ink-2);font-size:.97rem;line-height:1.6;margin-top:8px;max-width:74ch}
.pw-open {margin-left:auto;white-space:nowrap;font-size:.75rem;color:var(--link);padding:6px}
details[open]>.pw-heading .pw-open {visibility:hidden}
.pw-body {padding:18px 0 0 40px}
.pw-status {border-left:2px solid var(--rule);padding-left:12px;color:var(--muted);font-size:.83rem;line-height:1.6;max-width:90ch}
.pw-controls {display:flex;justify-content:space-between;gap:16px;align-items:center;margin:18px 0 12px;font-size:.75rem;color:var(--muted)}
.pw-toggle {font:500 .76rem var(--font);background:var(--bg);border:1px solid var(--rule);border-radius:5px;color:var(--ink-2);padding:7px 12px;cursor:pointer;white-space:nowrap}
.pw-steps {list-style:none;display:grid;grid-template-columns:repeat(var(--pw-count),minmax(0,1fr));gap:28px;margin:0;padding:0}
.pw-steps li {position:relative;min-width:0}
.pw-steps li:not(:last-child)::after {content:'';position:absolute;left:100%;top:35px;width:28px;height:2px;background:var(--rule)}
.pw-steps li:not(:last-child)::before {content:'';position:absolute;z-index:1;left:100%;top:34px;width:10px;height:4px;border-radius:5px;background:var(--link);box-shadow:0 0 8px color-mix(in srgb,var(--link) 60%,transparent);animation:pw-travel 2s linear infinite}
.pw-stage {display:block;position:relative;width:100%;height:100%;min-height:128px;text-align:left;padding:14px;border:1px solid var(--rule);border-radius:7px;background:var(--surface);color:var(--ink);font:400 .86rem/1.4 var(--font);cursor:pointer;overflow-wrap:anywhere}
.pw-stage[aria-pressed=true] {border-color:var(--link);background:var(--bg)}
.pw-stage:hover {background:var(--surface-2)}
.pw-stage-number {font:400 .7rem var(--mono);color:var(--muted);display:block;margin-bottom:10px}
.pw-stage strong {display:block;font-weight:600}.pw-stage small {display:block;color:var(--muted);margin-top:8px;font-size:.76rem;line-height:1.5}
.pw-stage-detail {margin-top:18px;padding:16px 20px;background:var(--surface);border-radius:6px;border-left:2px solid var(--link);min-height:120px}
.pw-stage-detail>span {font:.72rem var(--mono);color:var(--muted)}
.pw-stage-detail h4 {font-size:1rem;margin:7px 0}.pw-stage-detail p {font-size:.9rem;color:var(--ink-2);line-height:1.7;margin:0;max-width:90ch}
.pw-link {display:inline-block;font-size:.88rem;margin-top:16px}
.pw-steps.pw-long {grid-template-columns:1fr;gap:14px}
.pw-long .pw-stage {min-height:60px;display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:10px;padding:12px 16px}
.pw-long .pw-stage small,.pw-long .pw-stage-number {margin:0}
.pw-steps.pw-long li:not(:last-child)::after {left:28px;top:100%;width:2px;height:14px}
.pw-steps.pw-long li:not(:last-child)::before {left:27px;top:100%;width:4px;height:5px;animation-name:pw-travel-down}
.pw-route.is-paused li::before {animation-play-state:paused;opacity:.4;box-shadow:none}
@keyframes pw-travel {from{transform:translateX(0);opacity:.15}50%{opacity:1}to{transform:translateX(18px);opacity:.15}}
@keyframes pw-travel-down {from{transform:translateY(0);opacity:.15}50%{opacity:1}to{transform:translateY(9px);opacity:.15}}
.map-route-index {display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.map-route-index a {padding:9px 14px;background:var(--surface);border:1px solid var(--rule);border-radius:6px;text-decoration:none;font-size:.88rem}
.map-route-intro {margin-top:32px;max-width:80ch}
.net-route-list {margin:24px 0;border-top:1px solid var(--rule);padding-top:24px}
.net-route-list h3 {font-size:1.3rem}.net-route-list>p {color:var(--muted);font-size:.87rem;margin-top:8px}
.net-route-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.8fr) minmax(0,1fr) auto;align-items:center;gap:16px;border-top:1px solid var(--rule);padding:16px 0}
.net-route-row button {text-align:left;overflow-wrap:anywhere}.net-route-row small {display:block;color:var(--muted);font-size:.72rem;margin-bottom:4px}
.net-route-row .net-route-kind {position:relative;font-size:.8rem;color:var(--ink-2);padding:10px 0 14px;text-align:center;border-bottom:1px solid var(--rule)}
.net-route-kind::after {content:'';position:absolute;bottom:-2px;left:0;width:12%;height:3px;border-radius:4px;background:var(--link);animation:net-relation-scan 3s ease-in-out infinite alternate}
.net-route-list.is-paused .net-route-kind::after {animation-play-state:paused}
@keyframes net-relation-scan {to{left:88%}}
.net-route-list .ex-pager {justify-content:flex-start;gap:20px}
.net-route-row.is-active {background:var(--surface)}
.net-edge.is-route {opacity:1!important;stroke-width:3;stroke-dasharray:8 5;animation:net-relation-dash 1.5s linear infinite alternate}
.net-svg.has-route .net-edge:not(.is-route) {opacity:.04!important}
.net-app.flow-paused .net-edge.is-route {animation-play-state:paused}
@keyframes net-relation-dash {to{stroke-dashoffset:26}}
.atlas-group-picker {display:block;margin:20px 0;font-size:.9rem;color:var(--ink-2)}
.atlas-group-picker select {margin-left:14px;padding:9px 12px;background:var(--bg);border:1px solid var(--rule);border-radius:5px;color:var(--ink);font:inherit;max-width:100%}
.atlas-route-heading h3 {margin-bottom:12px}.atlas-route-heading h3 span {font-weight:400}
.atlas-flow-toggle,.atlas-route-row button {font:400 .85rem var(--font);color:var(--link);background:var(--bg);padding:7px 10px;border:1px solid var(--rule);border-radius:5px;cursor:pointer;overflow-wrap:anywhere}
.atlas-route-row {display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.5fr) minmax(0,1fr);gap:15px;align-items:center;padding:18px 0;border-bottom:1px solid var(--rule);font-size:.85rem}
.atlas-route-line {position:relative;text-align:center;font-size:.75rem;border-bottom:1px solid var(--rule);padding-bottom:12px;color:var(--ink-2)}
.atlas-route-line small {display:block;color:var(--muted);font-size:.68rem;margin-top:5px}
.atlas-route-line::after {content:'';position:absolute;bottom:-2px;left:0;width:12%;height:3px;border-radius:4px;background:var(--link);animation:net-relation-scan 3s ease-in-out infinite alternate}
.atlas-paused .atlas-route-line::after {animation-play-state:paused}
.atlas-ring>details {margin-top:20px}
@media(max-width:700px){.atlas-group-picker select{display:block;margin:8px 0 0;width:100%}.atlas-route-row{gap:10px;font-size:.78rem}.atlas-route-row button{font-size:.75rem;padding:7px}}
@media(max-width:800px){.pw-body{padding-left:0}.pw-steps{grid-template-columns:1fr;gap:18px}.pw-stage{min-height:70px;display:grid;grid-template-columns:25px minmax(0,1fr);gap:6px 10px;align-items:center}.pw-stage-number{grid-row:1 / span 2;margin:0}.pw-stage small{margin:0}.pw-steps li:not(:last-child)::after{left:26px;top:100%;width:2px;height:18px}.pw-steps li:not(:last-child)::before{left:25px;top:100%;width:4px;height:5px;animation-name:pw-travel-down}.pw-long .pw-stage{grid-template-columns:25px minmax(0,1fr)}.pw-long .pw-stage-number{grid-row:1 / span 2}.pw-long .pw-stage small{grid-column:2}.pw-heading h3{font-size:1.2rem}.pw-stage-detail{min-height:0}.pw-open{font-size:0}.pw-open::after{content:'+';font-size:1.4rem}.net-route-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 0}.net-route-row .net-route-kind{grid-column:1;font-size:.75rem;text-align:left;padding:4px 0 10px;margin-bottom:7px}.net-route-row>:last-child{grid-column:2;grid-row:1 / span 3}.net-route-row small{font-size:.68rem}}
@media(prefers-reduced-motion:reduce){.pw-steps li::before,.net-route-kind::after,.net-edge.is-route{animation:none!important;box-shadow:none!important}}

.net-scope-pager {display:flex;align-items:center;gap:10px;font-size:.8rem;color:var(--muted);margin:0 0 12px}.net-scope-pager>span{margin-right:auto}.net-scope-pager button{padding:6px 10px!important;font-size:.76rem!important}.net-scope-pager:empty{display:none}
.is-local .net-edge {opacity:.7}
@media(prefers-reduced-motion:reduce){.atlas-route-line::after{animation:none!important}}

a.ex-system{text-decoration:none}

/* Whole topology leads; individual branches remain below. */
.whole-system {margin:32px 0 54px;padding:28px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.whole-system-head {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.whole-system-head h2,.whole-system-head h3 {margin:0}.whole-system-head h2 {font-size:1.7rem}
.whole-system>p {max-width:90ch;color:var(--ink-2);font-size:.95rem;line-height:1.7}
.whole-system-scroll {overflow:auto;padding:22px 0 8px}.whole-system .sysmap {min-width:970px}
.sm-halo {fill:none;stroke:var(--bg);stroke-width:7;stroke-linejoin:round}
.sysmap .sm-edge {fill:none;stroke-linejoin:round}.sysmap .sm-edge.plan {stroke-width:1.3;opacity:.8}
.sm-pulse {fill:none;stroke:var(--link);stroke-width:2.7;stroke-linecap:round;stroke-dasharray:4 96;animation:whole-pulse 4s linear infinite;pointer-events:none}
.sm-box {text-decoration:none!important;cursor:pointer}.sm-box:hover rect,.sm-box:focus rect {stroke:var(--link);stroke-width:2.5}
.sm-connection.is-highlighted .sm-edge {stroke:var(--link);stroke-width:3;opacity:1}
.whole-system-key {display:flex;gap:14px 28px;flex-wrap:wrap;font-size:.76rem;color:var(--muted);margin-top:18px}
.whole-system-key span {display:flex;align-items:center;gap:8px}.whole-system-key i {width:25px;border-top:2px solid var(--ink-2)}.whole-system-key .planned {border-top-style:dashed}
.is-paused .sm-pulse {animation-play-state:paused}.ex-whole-topology {margin:25px 0 36px}.ex-whole-topology .ex-diagram {margin-top:14px}.ex-whole-topology .sm-halo {stroke:var(--surface)}
@keyframes whole-pulse {to{stroke-dashoffset:-100}}
@media(prefers-reduced-motion:reduce){.sm-pulse{animation:none;stroke-dasharray:none;opacity:.2}}
@media(max-width:700px){.whole-system-head h2{font-size:1.35rem}.whole-system{margin-top:22px}.whole-system-scroll{border:1px solid var(--rule);border-radius:6px}.whole-system-key{font-size:.7rem}}

.atlas-whole {border-top:1px solid var(--rule);padding:25px 0;margin-top:22px}
.atlas-whole-scroll {overflow:auto;max-width:100%}.atlas-whole svg{display:block;width:min(100%,800px);min-width:640px;margin:auto}
.atlas-show-all {font:400 .8rem var(--font);color:var(--link);background:var(--bg);padding:7px 10px;border:1px solid var(--rule);border-radius:5px;cursor:pointer}
.atlas-whole .ring-links path{fill:none;opacity:1;stroke-opacity:.3}.atlas-whole .ring-links path.hot{opacity:1;stroke-opacity:.9}.atlas-whole .ring-links path.dim{opacity:1;stroke-opacity:.08}
.atlas-whole .ring-links path.atlas-pulse{stroke:var(--link);stroke-width:2;stroke-opacity:.9;stroke-dasharray:3 97;animation:whole-pulse 5s linear infinite;pointer-events:none}
.atlas-paused .atlas-whole .ring-links path.atlas-pulse{animation-play-state:paused}
.net-svg:not(.is-local):not(.has-route) .net-edge.is-route{stroke-width:1.7;opacity:.6!important;stroke-dasharray:4 34;animation:whole-pulse 6s linear infinite}
@media(prefers-reduced-motion:reduce){.atlas-whole .ring-links path.atlas-pulse{animation:none;opacity:.15}.net-svg:not(.is-local) .net-edge.is-route{animation:none}}

@media(max-width:1000px){.whole-system-scroll::before{content:'Scroll across to follow the whole map →';display:block;padding:10px 12px;font-size:.75rem;color:var(--muted);position:sticky;left:0}.atlas-whole-scroll::before{content:'Scroll across to see every input group →';display:block;padding:10px 0;font-size:.75rem;color:var(--muted);position:sticky;left:0}}
#whole-system,#structure-app{scroll-margin-top:85px}

.net-svg.is-distant .net-group-title{visibility:hidden}

@media(max-width:700px){.net-app:not(.is-expanded):not(.has-inspector):has([data-view="all"][aria-pressed="true"]) .net-workbench{height:360px}}

.net-app.flow-paused .net-svg:not(.is-local) .net-edge.is-route{animation-play-state:paused}
