:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#eef7ff;background:#07111f;font-synthesis:none;--mint:#51e0b9;--blue:#6ea1ff;--violet:#b798ff;--amber:#f5b95f;--ink:#07111f;--panel:#0c1a2b;--line:#23364e}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 72% 22%,#102d4b 0,#07111f 37%,#050c16 100%);min-height:100vh}button,a{font:inherit;color:inherit}button{cursor:pointer}.topbar{height:68px;padding:0 28px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid #1d3047;background:#081422df;backdrop-filter:blur(14px);position:relative;z-index:5}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:21px;font-weight:750}.brand span{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:linear-gradient(135deg,var(--blue),var(--mint));color:#07111f}.topbar>p{font-size:9px;letter-spacing:1.7px;color:#7f95aa;margin:0}.top-actions{justify-self:end;display:flex;gap:8px}.top-actions button,.controls button{border:1px solid #2b4058;background:#0c1c2e;border-radius:9px;padding:10px 14px;font-size:11px}.top-actions button[aria-pressed=true]{background:#173d3b;border-color:var(--mint);color:#bfffee}.top-actions button:focus-visible,.controls button:focus-visible,.scenes button:focus-visible,.intent button:focus-visible,.node:focus-visible{outline:3px solid #f5b95f;outline-offset:3px}.scenes{height:70px;display:flex;justify-content:center;align-items:center;gap:8px;border-bottom:1px solid #172a40}.scenes button{display:flex;align-items:center;gap:8px;padding:9px 15px;border:0;border-radius:99px;background:transparent;color:#71879d}.scenes b{font-size:9px}.scenes span{font-size:11px}.scenes button[aria-current=step]{background:#11263a;color:#ecf8ff;box-shadow:inset 0 0 0 1px #28465f}.stage{position:relative;width:min(1500px,100%);height:calc(100vh - 232px);min-height:570px;margin:auto;overflow:hidden}.stage::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#07111ff2 0,#07111f73 31%,transparent 56%);z-index:1;pointer-events:none}#map{width:100%;height:100%;display:block}.narrative{position:absolute;z-index:2;left:42px;top:52px;width:min(380px,35vw);pointer-events:none}.narrative>p:first-child{font-size:10px;letter-spacing:2.1px;color:var(--mint);font-weight:750}.narrative h1{font-size:clamp(36px,4vw,60px);line-height:1.02;letter-spacing:-2.5px;margin:0 0 20px;font-weight:630}.narrative>p:nth-of-type(2){font-size:14px;line-height:1.7;color:#a6b9ca;max-width:345px}.gemma{display:flex;gap:12px;padding:15px 17px;border-left:2px solid var(--violet);background:linear-gradient(90deg,#221e416b,transparent);margin-top:24px}.gemma>span{color:var(--violet);font-size:21px}.gemma p{margin:0}.gemma b{display:block;color:#bca7ef;font-size:9px;letter-spacing:1.4px;margin-bottom:6px}.gemma em{display:block;color:#d5d6e8;font-style:normal;font-size:12px;line-height:1.55}.legend{position:absolute;right:24px;bottom:18px;z-index:2;display:flex;gap:15px;flex-wrap:wrap;justify-content:flex-end;font-size:9px;color:#758ba0}.legend i{display:inline-block;width:8px;height:8px;margin-right:4px;vertical-align:-1px}.legend .size{border-radius:50%;background:#8eb6ff;transform:scale(1.35)}.legend .fill{border-radius:50%;background:linear-gradient(90deg,#23364e 50%,var(--mint) 50%)}.legend .line{height:2px;background:#6d89a5}.legend .ring{border:1px solid var(--amber);border-radius:50%}.intent{position:absolute;z-index:3;left:38px;bottom:32px;width:390px;background:#091827e8;border:1px solid #294057;border-radius:15px;padding:16px;backdrop-filter:blur(12px)}.intent>p{font-size:9px;letter-spacing:1.6px;color:#8ea6ba;margin:0 0 11px}.intent>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.intent button{text-align:left;border:1px solid #263d55;border-radius:9px;background:#0e2032;padding:9px 11px}.intent button[aria-pressed=true]{border-color:var(--mint);background:#12342f}.intent b{font-size:10px;display:block}.intent span{font-size:9px;color:#7890a5}.intent small{display:block;margin-top:9px;color:#7f96aa;font-size:9px;line-height:1.45}.dock{height:94px;border-top:1px solid #1b2e44;background:#08131f;display:grid;grid-template-columns:1fr auto;align-items:center;gap:30px;padding:13px 30px}.selection p{font-size:8px;letter-spacing:1.5px;color:#72879a;margin:0 0 5px}.selection strong{font-size:13px;display:block;margin-bottom:3px}.selection span{font-size:10px;color:#879aad}.controls{display:flex;align-items:center;gap:14px}.controls button{min-width:118px}.controls button:last-child{background:#d9fff4;color:#09261f;border-color:#d9fff4;min-width:205px;font-weight:700}.controls button:disabled{opacity:.35;cursor:default}.controls div{text-align:center;min-width:78px}.controls b{display:block;font-size:11px}.controls span{font-size:8px;color:#657b90}.grid-line{stroke:#14273b;stroke-width:1}.relation{stroke:#476a8b;stroke-width:1;opacity:.27}.route{fill:none;stroke:var(--route-color,#8eb6ff);stroke-width:1.55;stroke-dasharray:5 7;opacity:var(--route-opacity,.78);animation:flow var(--route-speed,2.2s) linear var(--route-delay,0s) infinite}.route-source{fill:var(--route-color,#8eb6ff);opacity:.58;filter:url(#glow)}.node{cursor:pointer;transition:r .45s,fill .45s,stroke .45s,opacity .35s}.node:hover,.node:focus-visible{stroke:#fff;stroke-width:2.5}.node-ring{fill:none;stroke:var(--amber);stroke-width:1.5;stroke-dasharray:4 4;transform-box:fill-box;transform-origin:center;animation:spin 9s linear infinite}.group-label{fill:#b9cde0;font-size:12px;font-weight:650}.group-meta{fill:#668098;font-size:9px}.gate{fill:#0d2033;stroke:#345572;stroke-width:1.2}.gate-title{fill:#e8f5ff;font-size:12px;font-weight:700}.gate-meta{fill:#7890a6;font-size:9px}.focus-halo{fill:#6ea1ff12;stroke:#6ea1ff55;stroke-width:1}.pulse{filter:url(#glow)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes flow{to{stroke-dashoffset:-26}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:800px){.topbar{padding:0 14px;grid-template-columns:1fr auto}.topbar>p{display:none}.top-actions button:first-child{display:none}.scenes{justify-content:flex-start;overflow:auto;padding:0 12px}.scenes button{padding:9px 10px}.stage{height:auto;min-height:720px}.stage::before{background:linear-gradient(180deg,#07111ff5 0,#07111f8f 38%,transparent 62%)}#map{height:560px;margin-top:160px;overflow:visible}.narrative{left:20px;top:22px;width:calc(100% - 40px)}.narrative h1{font-size:38px;letter-spacing:-1.7px}.narrative>p:nth-of-type(2){font-size:12px;line-height:1.55}.gemma{margin-top:13px;padding:10px 13px}.intent{left:16px;right:16px;bottom:48px;width:auto}.legend{left:18px;right:18px;bottom:12px;justify-content:flex-start}.dock{height:auto;min-height:140px;grid-template-columns:1fr;padding:14px 18px;gap:12px}.controls{justify-content:space-between}.controls button{min-width:92px;padding:10px 8px}.controls button:last-child{min-width:150px}.selection span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* V2.5 scenario comparison: one transparent migration scope, four treatments. */
.intent{left:455px;right:24px;top:24px;bottom:auto;width:auto;padding:15px 16px;background:#091827f2;box-shadow:0 20px 60px #02091466}.intent>div{grid-template-columns:repeat(4,1fr)}.intent button[aria-pressed=true]{box-shadow:0 0 0 2px #51e0b91f}.scenario-readout{margin-top:10px;padding:12px 13px;border:1px solid #453c68;border-radius:12px;background:linear-gradient(115deg,#17182d,#0d1c2d)}.scenario-heading{display:flex!important;align-items:center;justify-content:space-between}.scenario-heading span{color:#c6adff;font-size:8px;font-weight:850;letter-spacing:1.25px}.scenario-heading b{padding:3px 7px;border:1px solid #5b4c82;border-radius:99px;color:#d6c8ff;font-size:8px}.scenario-readout>strong{display:block;margin:8px 0 4px;font-size:14px}.scenario-readout>p{margin:0;color:#a9bbcc;font-size:10px;line-height:1.45}.scenario-metrics{display:flex!important;gap:6px!important;margin-top:9px;overflow:auto}.scenario-metrics span{display:flex;align-items:center;gap:6px;white-space:nowrap;padding:5px 8px;border:1px solid #283d54;border-radius:8px;background:#0a1726}.scenario-metrics small{margin:0;color:#7890a5}.scenario-metrics b{font-size:9px;color:#eaf5ff}.intent .identify-trigger{display:flex;width:100%;justify-content:space-between;align-items:center;margin-top:9px;border-color:#51e0b966;background:#0e2b2a}.intent .identify-trigger span{color:#9cdcc9}.gate-count{fill:#dfeeff;font-size:11px;font-weight:800}
@media(max-width:800px){.stage{min-height:1080px}.stage:has(.intent:not([hidden])) #map{margin-top:450px}.intent{left:16px;right:16px;top:365px;bottom:auto}.intent>div{grid-template-columns:1fr 1fr}.scenario-metrics{display:flex!important}}

.scenario-metrics{flex-wrap:wrap;overflow:visible}
