/* EchoMoE Figure 2. Deliberately scoped so the component can be reused. */
.fig2{--f2-ink:#343939;--f2-purple:#7b4f9b;--f2-teal:#2c7f92;--f2-green:#6a8c4c;--f2-orange:#9a5212;position:relative;width:100%;font-family:inherit;color:#24272b;border:1px solid #e3e4e8;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 9px 35px rgba(51,35,66,.035)}
.fig2 *{box-sizing:border-box}
.fig2 .f2-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px 12px 24px;border-bottom:1px solid #eeeaf2;background:#fff}
.fig2 .f2-title{margin:0;font-size:16px;line-height:1.35;font-weight:650;color:#2b3340}
.fig2 .f2-toolbar-note{font-size:13px;font-weight:550;margin:0;display:flex;align-items:center;gap:9px;color:#64606a}
.fig2 .f2-live-dot{width:6px;height:6px;flex:none;border-radius:50%;background:#7b4f9b;box-shadow:0 0 0 4px #f0e9f5}
.fig2.is-paused .f2-live-dot{background:#b9b3bf;box-shadow:none}
.fig2 .f2-controls{flex:none} /* playback group styled in style.css (.playback) */
.fig2 .f2-scrubber:focus-visible{outline:3px solid #ccb7df;outline-offset:3px}
.fig2 .f2-stage{display:grid;grid-template-columns:minmax(0,326fr) minmax(0,780fr);gap:8px;padding:17px 15px 6px;background:#fff}
.fig2 .f2-model-panel,.fig2 .f2-detail-panel{min-width:0}
.fig2 svg{display:block;width:100%;height:auto;overflow:visible;font-family:inherit;font-weight:450;isolation:isolate}
.fig2 svg text{fill:#1c1c1c;pointer-events:none}
.fig2 .f2-panel-kicker{font-family:inherit;fill:#7e7387;font-size:11px;font-weight:650;letter-spacing:1.6px}
.fig2 .f2-outer{fill:none;stroke:#a0a5ae;stroke-width:1.2;stroke-dasharray:5 4}
.fig2 .f2-reference-wrap{fill:#faf6fc;stroke:#d6c6e2;stroke-width:1.2}
.fig2 .f2-echo-wrap{fill:#f5f9f1;stroke:#cbdcbc;stroke-width:1.2}
.fig2 .f2-stack-back{fill:#fff}
.fig2 .f2-stack-mid{fill:#fbfcf8}
.fig2 .f2-expert-region{fill:#fff;stroke:#dde8d2;stroke-width:1.2}
.fig2 .f2-expert-box{fill:#fff;stroke:#c2d4b2;stroke-width:1.25}
.fig2 .f2-wire{fill:none;stroke:#343939;stroke-width:1.55;stroke-linejoin:round;stroke-linecap:round;transition:opacity .12s}
.fig2 .f2-wire.purple{stroke:#7b4f9b;stroke-width:1.65}
.fig2 .f2-wire.teal{stroke:#2c7f92;stroke-width:1.55}
.fig2 .f2-wire.orange{stroke:#9a5212;stroke-width:1.5;stroke-dasharray:1.5 3}
.fig2 .f2-wire.dashed{stroke-dasharray:4 4}
.fig2 .f2-motion-track{stroke:none;marker-end:none}
.fig2 .f2-junction{fill:#343939}
.fig2 .f2-compute{--node-fill:#f1f3f5;--node-stroke:#aab2ba;--node-active:#d9e2e7;--node-ink:#343939}
.fig2 .f2-compute[data-kind="attention"]{--node-fill:#fcf0cf;--node-stroke:#c6a04a;--node-active:#f6cf6b;--node-ink:#8d6a13}
.fig2 .f2-compute[data-kind="reference"]{--node-fill:#eee4f4;--node-stroke:#7b4f9b;--node-active:#d1aee7;--node-ink:#5d3a7a}
.fig2 .f2-compute[data-kind="expert"]{--node-fill:#e4eed9;--node-stroke:#6a8c4c;--node-active:#b7d892;--node-ink:#46662e}
.fig2 .f2-compute[data-kind="comm"]{--node-fill:#ddeef2;--node-stroke:#2c7f92;--node-active:#9fd6e3;--node-ink:#1d6577}
.fig2 .f2-compute[data-kind="routing"]{--node-fill:#fdebd6;--node-stroke:#9a5212;--node-active:#f7bf7d;--node-ink:#9a5212}
.fig2 .f2-compute[data-kind="sum"]{--node-fill:#fff;--node-stroke:#6c7475;--node-active:#d6e7e7;--node-ink:#343939}
.fig2 .f2-node{fill:var(--node-fill);stroke:var(--node-stroke);stroke-width:1.3;stroke-linejoin:round;transition:fill .16s,stroke-width .16s,filter .16s}
.fig2 .f2-compute text{fill:var(--node-ink)}
.fig2 .f2-compute[data-kind="reference"]>text:not(.f2-math),.fig2 .f2-compute[data-kind="expert"]>text:not(.f2-math),.fig2 .f2-compute[data-kind="comm"]>text:not(.f2-math),.fig2 .f2-compute[data-kind="routing"]>text:not(.f2-math){font-weight:650}
.fig2 .f2-compute.is-active .f2-node{fill:var(--node-active);stroke-width:2.5;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--node-stroke) 45%,transparent))}
.fig2 .f2-compute.is-stored .f2-node{fill:#d8bde9;stroke:#7b4f9b;stroke-width:2;filter:drop-shadow(0 0 4px #d8c4e5)}
.fig2 .f2-cache.is-stored text:not(.f2-math){fill:#513068}
.fig2 .f2-compute.is-waiting .f2-node{stroke-width:2;stroke:#8f9696;fill:#e5eded}
.fig2 .f2-plus{fill:none;stroke:#343939;stroke-width:1.4;stroke-linecap:round}
.fig2 .f2-tag{fill:#fff;stroke:#a0a5ae;stroke-width:1.1}
.fig2 .f2-tag.green-tag{stroke:#c2d4b2}
.fig2 .f2-tag.purple-tag{stroke:#d6c6e2}
.fig2 .f2-layer-tag .green-tag{fill:#e4eed9;stroke:#6a8c4c}
.fig2 .f2-layer-tag text{fill:#46662e}
.fig2 .f2-small{font-size:13px;fill:#5d6064}
.fig2 .f2-math{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:400}
.fig2 .f2-compute .f2-math,.fig2 .f2-dimension{fill:#1c1c1c;font-weight:400}
.fig2 .f2-reference-label{font-size:13.5px;fill:#7b4f9b;font-weight:500}
.fig2 .f2-mini-label{font-size:13.5px;fill:#747078}
.fig2 .purple-text{fill:#7b4f9b}
.fig2 .teal-text{fill:#2c7f92}
.fig2 .orange-text{fill:#9a5212}
.fig2 .f2-step-label>circle{fill:#fff;stroke:#2c7f92;stroke-width:1.3}
.fig2 .f2-step-label>text{font-size:18px;font-weight:650}
.fig2 .f2-step-label>text:first-of-type{fill:#2c7f92;font-size:17px}
.fig2 .f2-step-label>.f2-step-sub{font-size:13.5px;font-weight:450;fill:#747078}
.fig2 .f2-step2-label>text:nth-of-type(2){font-size:17px}
.fig2 #f2-step1-label>.f2-step-sub,.fig2 #f2-step3-label>.f2-step-sub{fill:#365e9d}
.fig2 #f2-step2-label>.f2-step-sub{fill:#46662e}
.fig2 .f2-z-half{fill:#eee4f4;stroke:#7b4f9b;stroke-width:1.3;transition:fill .16s,stroke-width .16s}
.fig2 .f2-c-half{fill:#ddeef2;stroke:#2c7f92;stroke-width:1.3;transition:fill .16s,stroke-width .16s}
.fig2 .f2-compute.is-active .f2-z-half{fill:#d1aee7;stroke-width:2.4}
.fig2 .f2-compute.is-active .f2-c-half{fill:#8dccdc;stroke-width:2.4}
.fig2 .f2-packet rect{stroke:#fff;stroke-width:1;paint-order:stroke fill}
.fig2 .f2-packet{filter:drop-shadow(0 1px 2px #ffffff);pointer-events:none}
.fig2 .f2-detail-panel.is-muted{opacity:.51;transition:opacity .28s}
.fig2 .f2-detail-panel{opacity:1;transition:opacity .28s}
.fig2 .f2-narration{display:flex;align-items:center;gap:13px;min-height:58px;border-top:1px solid #eeeaf2;padding:13px 23px;background:#fcfbfd}
.fig2 .f2-phase-tag{font-size:10px;letter-spacing:1.1px;font-weight:700;line-height:1.4;color:#7b4f9b;flex:none;width:124px}
.fig2 .f2-status{margin:0;font-size:13px;line-height:1.5;color:#514a57}
.fig2 .f2-progress{height:2px;position:relative;background:#eee8f3;z-index:1}
.fig2 .f2-scrubber{display:block;appearance:none;position:absolute;inset:-10px 0 auto;height:22px;margin:0;padding:0;width:100%;border:0;border-radius:0;background:transparent;cursor:pointer}
.fig2 .f2-scrubber::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,#9c75b7 0%,#9c75b7 var(--f2-progress,0%),#eee8f3 var(--f2-progress,0%),#eee8f3 100%)}
.fig2 .f2-scrubber::-moz-range-track{height:2px;background:#eee8f3}
.fig2 .f2-scrubber::-moz-range-progress{height:2px;background:#9c75b7}
.fig2 .f2-scrubber::-webkit-slider-thumb{appearance:none;width:12px;height:12px;margin-top:-5px;background:#805198;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #b8a0c8;opacity:0;transition:opacity .15s}
.fig2 .f2-scrubber:hover::-webkit-slider-thumb,.fig2 .f2-scrubber:focus-visible::-webkit-slider-thumb{opacity:1}
.fig2 .f2-scrubber::-moz-range-thumb{width:8px;height:8px;background:#805198;border:2px solid #fff;border-radius:50%}
.fig2 .f2-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;padding:15px 20px 16px;font-size:12px;line-height:1.4;color:#736b79}
.fig2 .f2-legend>span{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.fig2 .f2-key{display:inline-block;position:relative;width:19px;border-top:2px solid var(--key-color);height:1px}
.fig2 .f2-key:after{content:"";position:absolute;right:-1px;top:-4px;border-left:5px solid var(--key-color);border-top:3px solid transparent;border-bottom:3px solid transparent}
.fig2 .f2-key-ink{--key-color:#343939}
.fig2 .f2-key-purple{--key-color:#7b4f9b;border-top-style:dashed}
.fig2 .f2-key-teal{--key-color:#2c7f92}
.fig2 .f2-key-orange{--key-color:#9a5212;border-top-style:dotted}
.fig2 .f2-scroll-hint{display:none}
.fig2 .f2-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:800px) and (max-width:1080px){.fig2 .f2-stage{padding-left:8px;padding-right:8px;gap:0}.fig2 .f2-panel-kicker{font-size:12px;letter-spacing:1.1px}}
@media(max-width:799px){.fig2 .f2-stage{display:flex;flex-direction:column;gap:18px;padding:18px 12px 6px}.fig2 .f2-model-panel{max-width:326px;width:calc(100% * 326 / 780);margin:0 auto}.fig2 .f2-detail-scroll{overflow:visible;scrollbar-color:#c7b7d4 #f6f2f9;scrollbar-width:thin;padding-bottom:9px;overscroll-behavior-x:contain}.fig2 .f2-detail-svg{min-width:0;width:100%}.fig2 .f2-detail-panel{border-top:1px solid #eeeaf2;padding-top:16px}.fig2 .f2-scroll-hint{display:none;justify-content:space-between;color:#8a7896;font-size:11px;margin:0 4px 10px}.fig2 .f2-narration{align-items:flex-start;flex-direction:column;gap:5px;padding:14px 17px;min-height:90px}.fig2 .f2-phase-tag{width:auto}.fig2 .f2-toolbar{padding:13px 14px;flex-wrap:wrap;gap:12px}.fig2 .f2-toolbar-note{font-size:12px}.fig2 .f2-controls{margin-left:auto}.fig2 .f2-legend{justify-content:flex-start;gap:8px 18px;padding:14px 16px}.fig2 .f2-detail-panel.is-muted{opacity:.66}}
@media(prefers-reduced-motion:reduce){.fig2 *{transition:none!important}.fig2 .f2-live-dot{box-shadow:none}}
@media(max-width:720px){.fig2 .f2-toolbar{padding:14px 12px 12px 16px;gap:10px;align-items:flex-start;flex-wrap:wrap}.fig2 .f2-title{font-size:14px;flex:1 0 100%}}
@media(max-width:799px){.fig2 .f2-detail-svg{min-width:0}}
/* Narrow screens: one panel at a time at a readable size. The timeline (or the
   view buttons) switches between the layer stack and a single-column layer view. */
.fig2 .f2-views-wrap,.fig2 .f2-detail-svg-m{display:none}
.fig2 .f2-m-step>circle{stroke-width:1.2}
.fig2 .f2-m-step>text{font-size:14px}
.fig2 .f2-m-step>text:first-of-type{font-size:12px}
.fig2 .f2-m-step>.f2-step-sub{font-size:11.5px}
.fig2 .f2-detail-svg-m .f2-mini-label{font-size:12px}
.fig2 #f2-m-step1-label>.f2-step-sub,.fig2 #f2-m-step3-label>.f2-step-sub{fill:#365e9d}
.fig2 #f2-m-step2-label>.f2-step-sub{fill:#46662e}
@media(max-width:799px){
 .fig2 .f2-views-wrap{display:flex;justify-content:center;padding:14px 12px 0}
 .fig2 .f2-views .pb-speed-opt{padding:0 12px}
 .fig2 .f2-stage{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:16px 12px 10px}
 .fig2 .f2-model-panel,.fig2 .f2-detail-panel{grid-area:1/1;align-self:start;transition:opacity .3s ease,visibility .3s}
 .fig2 .f2-model-panel{width:min(100%,290px);max-width:none;margin:0 auto}
 .fig2 .f2-detail-panel{width:min(100%,400px);margin:0 auto;border-top:0;padding-top:0}
 .fig2 .f2-detail-scroll{padding-bottom:0}
 .fig2 .f2-detail-svg{display:none}
 .fig2 .f2-detail-svg-m{display:block}
 .fig2:not([data-view="detail"]) .f2-detail-panel,.fig2[data-view="detail"] .f2-model-panel{opacity:0;visibility:hidden}
}
