:root{color-scheme:dark;--ink:#e9f3f5;--muted:#91a5b6;--line:#243544}*{box-sizing:border-box}body{margin:0;background:#070e18;color:var(--ink);font:15px/1.6 system-ui,"Microsoft JhengHei",sans-serif}header{padding:22px 4%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:16px}.brand{font-size:13px;letter-spacing:2px;text-decoration:none;color:var(--ink)}.brand span{color:#8398ad}.badge{font-size:11px;border:1px solid #3b4f60;border-radius:30px;padding:4px 12px;color:#b1c4ce}main{max-width:1600px;margin:auto;padding:34px 4%}.intro{display:grid;grid-template-columns:1.4fr 1fr;column-gap:8%;align-items:end}.eyebrow{font-size:10px;letter-spacing:2px;color:#79d7cb}.intro .eyebrow{grid-column:1/-1;margin:0}h1{font-size:clamp(28px,3vw,45px);font-weight:500;line-height:1.4;margin:14px 0 24px;letter-spacing:1px}.intro>p:last-child{color:#a4b8c6;max-width:460px;margin-bottom:30px}nav{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 20px}button{font:inherit;font-size:13px;color:#bed0dc;background:#111e2c;border:1px solid #304354;padding:10px 15px;border-radius:6px;cursor:pointer}button:hover,button:focus-visible{border-color:#a3eee0;color:white;outline:2px solid transparent}button[aria-pressed=true]{background:#b4efe0;color:#102e2a;border-color:#b4efe0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#080f1b}.stage{height:590px;position:relative;min-width:0;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}canvas:focus-visible{outline:2px solid #b4efe0;outline-offset:-3px}.stage-top{position:absolute;top:18px;left:20px;font-size:12px;color:#a2bbcb;pointer-events:none;display:flex;align-items:center;gap:8px}.live-dot{width:5px;height:5px;border-radius:50%;background:#8bd7bf}.controls{position:absolute;bottom:45px;left:18px;display:flex;gap:5px}.controls button{background:#0b1626dd;padding:7px 11px;font-size:11px}.stage-bottom{position:absolute;bottom:15px;left:20px;right:20px;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#70879b;pointer-events:none}aside{background:#0d1826;border-left:1px solid var(--line);padding:25px 24px;overflow-y:auto;max-height:590px}aside h2{font-size:24px;font-weight:500;line-height:1.5;margin:12px 0}aside>p:not(.eyebrow){font-size:13px;color:#a8bcc9}#relations{display:grid;gap:7px;margin:22px 0 14px}#relations button{text-align:left;display:flex;flex-direction:column;background:#122233;padding:9px 12px}#relations small{color:#7896a7;font-size:10px}#relations span{font-size:13px}.evidence-note{border-top:1px solid var(--line);padding-top:16px;margin-top:25px;color:#7f95a6;font-size:11px}#expand{font-size:11px;width:100%}#legend{display:flex;flex-wrap:wrap;gap:8px 20px;padding:18px 6px;font-size:11px;color:#9ab0bf}#legend span{display:flex;align-items:center;gap:7px}#legend i{width:6px;height:6px;border-radius:50%;background:var(--color)}footer{display:flex;gap:8%;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;color:#738b9e;font-size:11px}footer p{max-width:560px}footer b{color:#a9c1ce;font-weight:500}@media(max-width:850px){.workspace{grid-template-columns:1fr}aside{border-left:0;border-top:1px solid var(--line);max-height:none}.stage{height:520px}.intro{display:block}.intro>p:last-child{max-width:none}.intro h1{margin-bottom:14px}aside h2 br{display:none}#relations{grid-template-columns:repeat(2,minmax(0,1fr))}header{flex-wrap:wrap}footer{display:block}}@media(max-width:450px){main{padding:24px 16px}.stage{height:470px}nav button{font-size:11px;padding:9px}.stage-bottom{font-size:9px}.stage-bottom output{display:none}.controls{left:12px}.stage-top{left:14px;font-size:10px}#relations{grid-template-columns:1fr}h1{font-size:27px}}

/* Compact self-contained website embed. */
main{max-width:1400px;padding:16px;margin:0 auto}.mini-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#b9ced8}.mini-heading .badge{font-size:10px}nav{margin:16px 0 12px}.workspace{grid-template-columns:minmax(0,1fr) 280px}.stage{height:510px}aside{max-height:510px;padding:18px}aside h2{font-size:21px}#relations{margin:14px 0}#relations button{min-height:44px}#relations small{overflow-wrap:anywhere}#legend{padding:12px 2px;gap:7px 14px}.stage-top{right:14px;line-height:1.4}.stage-bottom{line-height:1.4}.badge{white-space:normal}button:focus-visible{outline:2px solid #b4efe0;outline-offset:2px}@media(max-width:850px){.workspace{grid-template-columns:1fr}.stage{height:440px}aside{max-height:none}#relations{grid-template-columns:repeat(2,minmax(0,1fr))}.mini-heading{align-items:flex-start}}@media(max-width:450px){main{padding:10px}.mini-heading{flex-direction:column;gap:6px}nav{gap:6px}nav button{flex:1 1 45%;min-height:44px;font-size:12px}.stage{height:365px}aside{padding:16px}#relations{grid-template-columns:1fr}.stage-top{font-size:11px;top:12px}.controls{bottom:48px}.controls button{min-height:36px}.stage-bottom{font-size:10px;bottom:12px}#legend{font-size:11px}}

canvas{touch-action:pan-y}body{overflow:hidden}

.controls button[aria-pressed=true]{background:#b4efe0;color:#102e2a}
/* Let page scrolling pass through the inline universe; no nested sidebar scroll. */ aside{max-height:none;overflow-y:visible}@media(min-width:851px){.stage{height:100%;min-height:510px}}

.knowledge-update{display:flex;align-items:center;gap:9px;margin:0 0 15px;color:#b4efe0;font-size:12px;font-weight:600;letter-spacing:1.2px;line-height:1.6}.knowledge-update i{flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#a4ecd6;box-shadow:0 0 9px #a4ecd670}

/* A bounded desktop workspace, with details beside the graph. */
@media(min-width:851px){
html,body{height:100%}main{height:100%;display:flex;flex-direction:column;padding:10px 12px}
.knowledge-update{margin:0 0 4px;font-size:11px}.mini-heading{font-size:12px}
nav{margin:7px 0;gap:6px}nav button{padding:7px 10px;font-size:12px}
.workspace{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 340px}
.stage{height:100%;min-height:0}aside{min-height:0;max-height:100%;overflow-y:auto;padding:12px 14px;scrollbar-width:thin}
aside .eyebrow{margin:0}aside h2{font-size:20px;line-height:1.25;margin:7px 0}aside>p:not(.eyebrow){font-size:12px;line-height:1.55;margin:6px 0}
#relations{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:9px 0}#relations button{padding:5px 8px;min-height:42px}#relations span{font-size:12px}#relations small{font-size:10px;line-height:1.3}
.evidence-note{font-size:10px;line-height:1.5;margin-top:8px;padding-top:8px}#legend{padding:7px 0 0;font-size:10px;gap:3px 12px}
.stage-top{top:12px;left:12px;font-size:11px}.controls{bottom:35px;left:12px}.stage-bottom{bottom:10px;left:12px}
}

@media(min-width:851px){main{display:grid;grid-template-columns:minmax(180px,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto;gap:8px}.knowledge-update{grid-column:1;grid-row:1;align-self:center;max-width:260px;font-size:10px;letter-spacing:.5px}.mini-heading{display:none}nav{grid-column:2;grid-row:1;justify-content:flex-end;margin:0;max-width:720px}nav button{padding:7px 9px;font-size:12px}.workspace,#legend{grid-column:1/-1}.workspace{min-height:0}#legend{margin:0}}

.drag-hint{margin-left:auto;text-align:right;color:#a8c4d3}.stage-bottom{justify-content:flex-end}.stage-top{align-items:flex-start}@media(max-width:600px){.stage-top{flex-wrap:wrap}.drag-hint{flex-basis:100%;text-align:left;margin-left:13px;font-size:10px}}
