/* Featured entrance to the approved engine map. */
.engine-map-home{grid-column:1/-1;display:flex;align-items:center;justify-self:stretch;position:relative;z-index:2;gap:18px;margin:6px 0 8px;padding:23px 22px;border:1px solid #619ec5;border-radius:14px;background:radial-gradient(ellipse at 0 0,#32678755,transparent 65%),linear-gradient(110deg,#122d42,#0d1d2d);box-shadow:0 0 26px #49b6ec13,inset 0 1px #b2e8ff12;color:#f4f8ff;text-decoration:none;transition:background .2s,border-color .2s,box-shadow .2s,transform .2s}
.engine-map-home .engine-map-symbol{width:48px;height:48px;flex:0 0 48px;color:#89dafa;filter:drop-shadow(0 0 7px #55c9ff55)}
.engine-map-copy{display:flex;flex-direction:column;gap:7px;min-width:0}
.engine-map-kicker{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#9fdbf3;line-height:1.4}
.engine-map-copy strong{font-size:clamp(17px,1.6vw,22px);font-weight:650;letter-spacing:-.025em;line-height:1.25}
.engine-map-invitation{font-size:12px;color:#bacddd;line-height:1.5}
.engine-map-home .engine-map-arrow{margin-left:auto;flex:0 0 36px;height:36px;display:grid;place-items:center;border:1px solid #8cbad377;border-radius:50%;font-size:21px;color:#e6f7ff;transition:background .2s,transform .2s}
.engine-map-home:hover{border-color:#a6e7ff;background:radial-gradient(ellipse at 0 0,#407e9e66,transparent 70%),linear-gradient(110deg,#183b51,#122637);box-shadow:0 0 32px #49b6ec26;transform:translateY(-2px);color:#fff}
.engine-map-home:hover .engine-map-arrow{background:#71c6ed22;transform:translate(2px,-2px)}
.engine-map-home:focus-visible{outline:3px solid #e5f7ff;outline-offset:5px;border-color:#a6e7ff}
@media(max-width:600px){.engine-map-home{gap:12px;padding:20px 15px}.engine-map-home .engine-map-symbol{width:34px;height:34px;flex-basis:34px}.engine-map-copy strong{font-size:18px}.engine-map-kicker{font-size:9px}.engine-map-home .engine-map-arrow{flex-basis:28px;height:28px;font-size:18px}.engine-map-invitation{font-size:11px}}
@media(prefers-reduced-motion:reduce){.engine-map-home,.engine-map-home .engine-map-arrow{transition:none}.engine-map-home:hover,.engine-map-home:hover .engine-map-arrow{transform:none}}
.motor-map{margin:36px 0 65px;padding:30px;border:1px solid #31435c;border-radius:22px;background:linear-gradient(150deg,#101f33,#07111d 60%,#13202e);scroll-margin-top:100px}.map-kicker{font-size:10px;letter-spacing:.16em;color:#a7c5e7}.map-heading h2{font-size:clamp(25px,3vw,39px);letter-spacing:-.035em;margin:14px 0;font-weight:550;max-width:760px}.map-heading p{max-width:800px;color:#b7c8db;font-size:14px;line-height:1.7}.map-controls{display:flex;flex-wrap:wrap;align-items:center;gap:22px;margin:26px 0 12px;font-size:13px}.map-controls label{display:flex;gap:12px;align-items:center}.map-controls select{color:#edf4ff;background:#14263d;border:1px solid #526b87;border-radius:8px;padding:10px;max-width:215px}.map-controls input{accent-color:#b5c6ff;width:18px;height:18px}.map-scroll{overflow:auto;padding:12px 4px;scrollbar-color:#687e9a #0a1727;scrollbar-width:thin}.map-plane{position:relative;min-width:860px;height:408px}.map-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.map-lines path{stroke:#8da8c5;stroke-width:1.3;fill:none;opacity:.1}.map-lines path.related{opacity:.8;stroke:#b9ccff;stroke-width:1.8}.map-lines path.proposed{stroke-dasharray:5 6}.motor-node{position:absolute;left:calc(var(--col)*25%);top:calc(var(--row)*100px);width:calc(25% - 30px);min-height:76px;padding:13px;display:flex;align-items:center;gap:11px;background:#102034;border:1px solid #3d526e;border-radius:11px;color:#edf5ff;text-align:left;cursor:pointer;box-shadow:0 7px 15px #0002;font-size:13px}.motor-node img{flex:none;width:28px;height:28px}.motor-node small{display:block;color:#9db0c7;font-size:10px;line-height:1.4;margin-top:5px}.motor-node[aria-pressed=true]{border-color:#b1c1ff;background:#293858;box-shadow:0 0 22px #8c9cff22}.motor-node.dim{opacity:.25}.motor-node:hover{border-color:#afc3dd}.motor-map button:focus-visible,.motor-map a:focus-visible,.motor-map select:focus-visible,.map-scroll:focus-visible{outline:2px solid #c3d9ff;outline-offset:4px}.map-legend{font-size:11px!important;color:#a4b9d0!important;margin:13px 0 25px}.map-detail{display:grid;grid-template-columns:1fr 1.4fr 1.3fr;gap:28px;border-top:1px solid #36475f;padding-top:27px;min-height:225px}.map-detail h3{font-size:23px;margin:0 0 12px}.map-detail h4{font-size:12px;letter-spacing:.04em;color:#cbdbef;margin:0 0 11px}.map-detail p,.map-detail li{font-size:12px;color:#b4c7dd;line-height:1.7}.map-detail ul{margin:0 0 18px;padding-left:17px}.map-detail a{color:#dce9ff;text-decoration:underline;text-underline-offset:4px;font-size:12px}.map-detail .relation-kind{font-size:10px;color:#a2b6cb}.engine-orion{border-top:2px solid #a59aff!important}.engine-gluon{border-top:2px solid #5ddcc7!important}.engine-orion h3,.engine-gluon h3{letter-spacing:.02em}.map-detail li button{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;text-align:left}
@media(max-width:700px){.motor-map{padding:22px 15px;border-radius:16px;margin-bottom:40px}.map-detail{grid-template-columns:1fr;gap:20px}.map-controls{align-items:start;gap:14px}.map-controls label{font-size:12px}.map-scroll{margin:0 -5px}.map-heading h2{font-size:26px}.map-plane{min-width:820px}.motor-node{padding:10px}.map-detail p,.map-detail li{font-size:13px}}

/* Approved direction 11 Nov: semantic circuit, compact pulses, preserved controls. */
.motor-map{position:relative;isolation:isolate;padding:32px;background:radial-gradient(ellipse at 48% 25%,#11365380,transparent 60%),linear-gradient(145deg,#08121f,#060c15 70%,#0b1624);border-color:#304862;box-shadow:inset 0 1px #9ccfff15,0 30px 70px #0003}
.map-kicker{color:#8bd7ef;letter-spacing:.2em}.map-motion{margin-left:auto;color:#d9eafa;background:#0e2033;border:1px solid #34516d;border-radius:7px;padding:10px;font:inherit;cursor:pointer}.map-motion:disabled{opacity:.6;cursor:default}.map-controls select{background:#0e2033;border-color:#34516d}
.map-plane{min-width:920px;height:548px;background-image:radial-gradient(#9cb9dd25 .7px,transparent .7px);background-size:22px 22px;border-radius:10px}.map-columns{position:absolute;top:12px;inset-inline:0;display:grid;grid-template-columns:repeat(4,1fr);pointer-events:none}.map-columns span{font-size:9px;letter-spacing:.14em;color:#91b2d4;padding-left:9px}.map-columns b{font-weight:400;color:#52728f;margin-right:10px}
.map-lines .map-wire{stroke:var(--wire);stroke-width:1;opacity:.12}.map-lines .map-wire.related{opacity:.64;stroke-width:1.35}.map-lines .map-halo{stroke:var(--wire);stroke-width:5;opacity:.1;filter:blur(3px)}.map-lines .map-signal{stroke:#e1f6ff;stroke-width:2.7;stroke-linecap:round;stroke-dasharray:1.4 98.6;opacity:1;filter:drop-shadow(0 0 4px var(--wire));animation:map-transmit 6s linear infinite}
@keyframes map-transmit{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}.motor-map.is-paused .map-signal{animation-play-state:paused;opacity:.35}.motor-map.reduced-motion .map-signal{display:none}
.motor-node{left:calc(var(--col)*25% + 8px);top:calc(var(--row)*118px + 66px);width:calc(25% - 46px);min-height:82px;padding:16px 12px;background:linear-gradient(145deg,#13283ae8,#0a1522f5);border-color:#3e5a73;border-radius:10px;box-shadow:0 8px 24px #0007,inset 0 1px #b6e7ff12;transition:border-color .18s,background .18s,opacity .18s}.motor-node:before,.motor-node:after{content:'';position:absolute;top:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:#0a1b2a;border:1px solid #7894ac}.motor-node:before{left:-4px}.motor-node:after{right:-4px}.motor-node.connected:before,.motor-node.connected:after{background:#a1ddfb;border-color:#a1ddfb;box-shadow:0 0 7px #75c8ff80}.motor-node img{width:34px;height:34px}.motor-node[aria-pressed=true]{border-color:#b0d6ff;background:linear-gradient(140deg,#243c5e,#11263d);box-shadow:0 0 0 3px #75aaff12,0 0 30px #7caaff23,inset 0 1px #c5e6ff36}.motor-node[aria-pressed=true] img{filter:drop-shadow(0 0 8px #b9d3ff35)}.map-legend strong{font-weight:400;color:#b8dbf3}.engine-orion h3,.engine-gluon h3{letter-spacing:0}
@media(max-width:700px){.motor-map{padding:22px 15px}.map-motion{margin-left:0;font-size:12px}.map-plane{min-width:1000px}}
@media(prefers-reduced-motion:reduce){.map-signal{animation:none!important;display:none!important}.motor-node{transition:none}}

/* Focus graph: distinct input/output corridors, selected motor as the energy core. */
.map-count{color:#8cabc2;font-size:11px;font-variant-numeric:tabular-nums}
.map-scroll{overflow:visible;padding:12px 0;scrollbar-width:none}
.map-plane{min-width:0;width:100%;height:562px;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--active-energy) 10%,transparent),transparent 62%),radial-gradient(#91c1e51c .75px,transparent .75px);background-size:auto,22px 22px}
.map-lines{z-index:1;overflow:visible}
.map-columns{top:14px;grid-template-columns:1fr 1fr 1fr}
.map-columns span{padding:0 16px;font-size:9px;letter-spacing:.15em;color:#9ab9cf}
.map-columns span:nth-child(2){text-align:center;color:#caeaff}
.map-columns span:last-child{text-align:right}
.motor-node{z-index:2;min-height:0;padding:14px 12px;border-radius:12px;border:1px solid #426782;background:linear-gradient(145deg,#122c40,#0a1929);gap:11px;transition:background .2s,border-color .2s,box-shadow .2s}
.motor-node[hidden]{display:none!important}
.motor-node small{font-size:10px;color:#b4cada;line-height:1.45}
.motor-node img{width:35px;height:35px}
.motor-node:before,.motor-node:after{display:none}
.motor-node:hover{background:linear-gradient(145deg,#18394e,#0d2133);border-color:var(--energy);box-shadow:0 0 22px color-mix(in srgb,var(--energy) 18%,transparent)}
.motor-node[data-side=selected]{display:flex;flex-direction:column;justify-content:center;text-align:center;padding:19px 13px;gap:13px;font-size:20px;font-weight:600;border-color:color-mix(in srgb,var(--energy) 50%,white);background:radial-gradient(ellipse at 50% 10%,color-mix(in srgb,var(--energy) 25%,#0e2239),#091b30 90%);box-shadow:0 0 20px color-mix(in srgb,var(--energy) 40%,transparent),0 0 70px color-mix(in srgb,var(--energy) 20%,transparent),inset 0 0 28px #8de3ff15}
.motor-node[data-side=selected] img{width:52px;height:52px;filter:drop-shadow(0 0 9px color-mix(in srgb,var(--energy) 60%,transparent))}
.motor-node[data-side=selected] small{font-size:11px;font-weight:400;max-width:158px;margin:6px auto 0}
.motor-node[data-side=selected]:before,.motor-node[data-side=selected]:after{display:block;content:'';position:absolute;inset:-12px;width:auto;height:auto;background:transparent;border:1px solid color-mix(in srgb,var(--energy) 23%,transparent);border-radius:22px;pointer-events:none;box-shadow:none}
.motor-node[data-side=selected]:after{inset:-24px;border-radius:30px;border-color:color-mix(in srgb,var(--energy) 9%,transparent);animation:graph-energy 4.8s ease-in-out infinite}
@keyframes graph-energy{0%,100%{opacity:.35}50%{opacity:1}}
.motor-link-caption{position:absolute;top:calc(100% + 7px);left:0;width:100%;font-size:10px;font-weight:400;font-style:normal;line-height:1.3;text-align:center;color:#abc6da;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.map-lines .map-wire.related{stroke-width:1.8;opacity:.85;stroke-linecap:round}
.map-lines .map-wire.proposed{opacity:.6;stroke-width:1.4;stroke-dasharray:5 6}
.map-lines .map-halo{stroke-width:7;opacity:.2;filter:blur(3px)}
.map-lines .map-signal{stroke-width:3.4;filter:drop-shadow(0 0 5px #7bddff)}
.graph-port{fill:#d6f4ff;stroke:#8ddcff;stroke-width:1;filter:drop-shadow(0 0 5px #8ddcff)}
.map-lines marker path{opacity:1;stroke:#cbedff;stroke-width:1.5;fill:none}
.motor-map.is-paused .motor-node:after{animation-play-state:paused}
.map-detail{margin-top:12px}
@media(max-width:700px){
 .motor-map{padding:24px 16px}.map-scroll{margin:0}.map-plane{min-width:0}
 .map-controls{gap:15px;align-items:center}.map-controls label{width:100%;justify-content:space-between}.map-controls select{max-width:none;width:58%;font-size:13px}.map-count{font-size:10px}.map-motion{margin-left:auto}
 .motor-node{padding:10px 6px;gap:7px;flex-direction:column;justify-content:center;text-align:center;font-size:12px}
 .motor-node img{width:28px;height:28px}.motor-node small{font-size:9px;margin-top:4px;line-height:1.25}
 .motor-link-caption{font-size:10px;line-height:1.25}
 .map-columns{inset:0;top:0;display:block}.map-columns span{position:absolute;top:218px;font-size:8px;padding:0;left:26px;width:calc(50% - 39px);text-align:center}
 .map-columns span:nth-child(2){top:5px;left:0;width:100%;font-size:9px}.map-columns span:last-child{left:auto;right:26px;text-align:center}
 .map-lines .map-wire.related{stroke-width:1.5}.map-lines .map-signal{stroke-width:2.8}
}
@media(prefers-reduced-motion:reduce){.motor-node[data-side=selected]:after{animation:none}.motor-node{transition:none}}
.graph-mobile .motor-node:not([data-side=selected]){padding:10px 6px;gap:7px;flex-direction:column;justify-content:center;text-align:center;font-size:12px}
.graph-mobile .motor-node:not([data-side=selected]) img{width:28px;height:28px}
.graph-mobile .motor-node:not([data-side=selected]) small{font-size:9px;margin-top:4px;line-height:1.25}
.graph-mobile .map-columns{inset:0;top:0;display:block}
.graph-mobile .map-columns span{position:absolute;top:218px;font-size:8px;padding:0;left:26px;width:calc(50% - 39px);text-align:center}
.graph-mobile .map-columns span:nth-child(2){top:5px;left:0;width:100%;font-size:9px}
.graph-mobile .map-columns span:last-child{left:auto;right:26px;text-align:center}

/* Global architecture and retained individual flow, 11 Nov 2026. */
.map-views{display:inline-flex;gap:4px;padding:4px;margin-top:14px;border:1px solid #36516a;border-radius:10px;background:#071421}
.map-views button,.graph-tools button{border:0;border-radius:6px;padding:10px 16px;color:#9db8ce;background:transparent;font:inherit;font-size:12px;cursor:pointer}
.map-views button[aria-pressed=true]{background:#1e3c54;color:#edf8ff;box-shadow:inset 0 1px #9bd5fa25}
.graph-tools{display:flex;gap:4px;justify-content:flex-end;align-items:center;margin:0 0 8px}.graph-tools button{padding:7px 10px;border:1px solid #294157}.graph-tools button:hover{border-color:#88c5e8;color:#e8f7ff}
.graph-workspace{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:20px}.map-camera{position:relative;max-width:none;margin:auto}.map-plane{transform-origin:0 0}.map-plane[aria-busy=true]{visibility:hidden}
.motor-map[data-mode=overview] .map-scroll{overflow:auto;padding:0;scrollbar-width:thin;scrollbar-color:#607c95 #071321;border:1px solid #233d514d;border-radius:12px;min-width:0}
.motor-map[data-mode=overview].agents-open .graph-workspace{grid-template-columns:minmax(0,1fr) 240px}
.motor-map[data-mode=overview] .map-columns{display:none}
.motor-map[data-mode=overview] .map-camera{overflow:hidden}
.motor-map[data-mode=overview] .motor-node,.motor-map[data-mode=overview] .motor-node[data-side=selected]{flex-direction:row;justify-content:flex-start;text-align:left;font-size:16px;font-weight:500;line-height:1.2;gap:10px;padding:12px;border-radius:12px}
.motor-map[data-mode=overview] .motor-node small,.motor-map[data-mode=overview] .motor-node[data-side=selected] small{font-size:11px;line-height:1.25;margin:5px 0 0;font-weight:400}
.motor-map[data-mode=overview] .motor-node img,.motor-map[data-mode=overview] .motor-node[data-side=selected] img{width:32px;height:32px}
.motor-map[data-mode=overview] .motor-node[data-side=selected]:before{inset:-6px;border-radius:18px}.motor-map[data-mode=overview] .motor-node[data-side=selected]:after{inset:-13px;border-radius:23px}
.motor-map[data-mode=overview] .motor-node:not([aria-pressed=true]){background:linear-gradient(140deg,#142a3c,#091723);box-shadow:0 7px 20px #0004}
.motor-map[data-mode=overview] .map-lines .map-wire{opacity:.72;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.motor-map[data-mode=overview] .map-lines .map-wire.related{opacity:1;stroke-width:2.3}.motor-map[data-mode=overview] .map-lines .map-wire.proposed{stroke-dasharray:6 6;opacity:.58}.motor-map[data-mode=overview] .map-lines .map-wire.proposed.related{opacity:.9}
.map-lines .wire-bridge{stroke:#071421;stroke-width:7;opacity:1;stroke-linecap:round;stroke-linejoin:round}.overview-port{fill:#7192aa;stroke:#071421;stroke-width:1}
.agent-drawer{min-width:0;border:1px solid color-mix(in srgb,var(--active-energy) 40%,#203345);border-radius:13px;padding:16px;background:radial-gradient(ellipse at top,color-mix(in srgb,var(--active-energy) 9%,#0a1725),#07131f);box-shadow:0 0 36px color-mix(in srgb,var(--active-energy) 7%,transparent)}
.agent-drawer[hidden]{display:none}.agent-header{display:flex;align-items:center;gap:8px;justify-content:space-between}.agent-header h3{font-size:12px;letter-spacing:.03em;color:#bad2e5;margin:0}.agent-header button{border:0;background:transparent;color:#bdd7ea;font-size:24px;cursor:pointer;padding:2px 5px}
.agent-root{display:flex;gap:12px;align-items:center;margin:22px 0 8px;font-size:19px}.agent-root img{width:35px;height:35px;filter:drop-shadow(0 0 8px var(--active-energy))}.agent-tree{list-style:none;padding:5px 0 2px 17px;margin:0 0 20px 16px;border-left:1px solid color-mix(in srgb,var(--active-energy) 65%,#152b3e)}
.agent-tree li{position:relative;margin:14px 0}.agent-tree li:before{content:'';position:absolute;top:24px;left:-18px;width:18px;height:1px;background:var(--active-energy)}.agent-tree li:after{content:'';position:absolute;left:-21px;top:21px;width:6px;height:6px;border-radius:50%;background:var(--active-energy);box-shadow:0 0 6px var(--active-energy)}
.agent-function{padding:12px 10px;border:1px solid #3b5269;border-radius:8px;background:#102337}.agent-function strong{font-size:12px;font-weight:500;line-height:1.4;display:block;color:#e8f5ff}.agent-function small{font-size:9px;color:#98b4c9;display:block;margin-top:6px;line-height:1.4}.agent-note{font-size:10px!important;line-height:1.6;color:#8eacbf!important;margin:0!important}
.motor-map[data-mode=flow] .graph-tools{display:none}.motor-map[data-mode=flow] .graph-workspace{display:block}
.motor-map.map-enlarged[data-mode=flow] .graph-tools{display:flex}.motor-map.map-enlarged[data-mode=flow] [data-zoom]{display:none}
.motor-map.map-enlarged{position:fixed;z-index:10000;inset:12px;margin:0;overflow:auto;max-width:none;border-radius:16px}.graph-expanded{overflow:hidden}.map-enlarged .map-heading h2{font-size:25px;margin:10px 0}.map-enlarged .map-heading p{display:none}.map-enlarged .map-controls{margin:12px 0}.map-enlarged .map-detail{display:none}.map-enlarged .map-legend{margin-bottom:0}.map-enlarged .map-kicker{display:none}
@media(max-width:800px){.motor-map[data-mode=overview].agents-open .graph-workspace{grid-template-columns:minmax(0,1fr)}.agent-drawer{max-width:none}.agent-tree{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.agent-tree li{margin:8px 0}.agent-tree li:before,.agent-tree li:after{display:none}.agent-root{margin:12px 0}.map-views button{padding:10px 12px}.graph-tools{justify-content:flex-start;flex-wrap:wrap}.map-enlarged{inset:5px!important}.map-enlarged .map-detail{display:block}}
@media(max-width:450px){.agent-tree{grid-template-columns:1fr}.map-views{display:flex}.map-views button{flex:1}.graph-tools button{font-size:11px}.motor-map.map-enlarged{padding:16px 10px}.motor-map[data-mode=overview] .map-scroll{border-radius:8px}}

/* Desktop selection: all engines available without opening a menu. */
.map-navigation{display:flex;align-items:flex-start;gap:16px;margin-top:24px}
.map-navigation .map-views{flex:0 0 auto;margin-top:0}
.motor-picker{display:none;flex:1;min-width:0;flex-wrap:wrap;gap:7px}
.motor-pick{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:1px solid #3b5268;border-radius:8px;background:#0b1a29;color:#c8daea;font:inherit;font-size:12px;line-height:1.2;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.motor-pick img{width:24px;height:24px;object-fit:contain;flex:0 0 auto}
.motor-pick:hover{border-color:var(--energy);background:#173149;color:#fff}
.motor-pick[aria-pressed=true]{background:color-mix(in srgb,var(--energy) 16%,#102438);border-color:var(--energy);color:#fff;box-shadow:0 0 14px color-mix(in srgb,var(--energy) 24%,transparent),inset 0 0 12px #c8e8ff08}
.motor-pick[aria-pressed=true] img{filter:drop-shadow(0 0 5px var(--energy))}
.motor-pick:focus-visible{outline:2px solid #e4f6ff;outline-offset:3px}
.motor-map[data-mode=overview] .motor-select-label{display:none}
@media(min-width:801px){.has-motor-picker[data-mode=flow] .motor-picker{display:flex}.has-motor-picker .motor-select-label{display:none}.has-motor-picker .map-controls{margin-top:16px;gap:16px}}
@media(max-width:800px){.map-navigation{display:block;margin-top:14px}.map-navigation .map-views{display:inline-flex}.motor-picker{display:none}}
@media(prefers-reduced-motion:reduce){.motor-pick{transition:none}}
