/* Observatory: resolution-independent, bounded layout, no animation dependency. */
.obs-main { --obs-line:#405b71; --obs-ink:#0c1724; --obs-copy:#bcd0df; }
.obs-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:clamp(1.5rem,4vw,4rem); align-items:center; padding:2rem 0; }
.obs-hero h1 { max-width:14ch; }
.obs-hero p { color:var(--obs-copy); max-width:58ch; line-height:1.7; }
.obs-hero-panel { min-width:0; border:1px solid #4a667b; border-radius:18px; padding:clamp(1rem,3vw,2.5rem); background:linear-gradient(145deg,#142b3c,#0b1724); }
.obs-hero-panel>small,.obs-graph-head,.obs-inspector-kicker,.obs-code-head { color:#acc8db; font:600 .75rem/1.6 ui-monospace,monospace; letter-spacing:.08em; }
.obs-spectrum { display:grid; gap:1px; margin:1.2rem 0; border:1px solid #506779; border-radius:10px; overflow:hidden; background:#506779; }
.obs-spectrum span { padding:.9rem 1rem; background:#142839; color:#e4f2fc; font-weight:600; border-inline-start:4px solid #9ebcfa; }
.obs-spectrum span:nth-child(2){border-color:#77d5ee;background:#153440}
.obs-spectrum span:nth-child(3){border-color:#87dbc7;background:#173633}
.obs-spectrum span:nth-child(4){border-color:#dfc08c;background:#302c29}
.obs-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.7rem; margin:0 0 1rem; }
.obs-switches { display:flex; flex-wrap:wrap; gap:.5rem; }
.obs-toolbar button { background:#142638;color:#dfeefa;border:1px solid #536e82;border-radius:8px;padding:.7rem 1rem; }
.obs-toolbar button[aria-pressed="true"] { background:#23464d; border-color:#92e1d6; box-shadow:inset 0 -3px 0 #92e1d6; }
.obs-workspace { display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);gap:1rem; }
.obs-graph,.obs-inspector { min-width:0; border:1px solid var(--obs-line);border-radius:16px;background:var(--obs-ink);padding:clamp(.85rem,2vw,1.6rem); }
.obs-graph-head { display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem; }
.obs-graph-body { position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(88px,1fr));gap:1rem;align-items:center;min-height:420px;margin-top:1rem;padding:.65rem; }
.obs-wires { position:absolute;inset:0;width:100%;height:100%;pointer-events:none; }
.obs-node { position:relative;z-index:1;min-width:0;display:grid;gap:.35rem;align-content:center;justify-items:start;text-align:left; padding:clamp(.65rem,1.5vw,1rem);border:1px solid #5d788d;border-radius:12px;background:#15283a;color:#e6f0f7;overflow-wrap:anywhere; }
.obs-node small { font-size:.7rem;color:#9ec3da; }.obs-node strong { font-size:clamp(.92rem,1.3vw,1.15rem); }.obs-node span{font-size:.8rem;color:#c0d0dd}
.obs-node[aria-pressed="true"] { border:2px solid #a1e6da;background:#193b42; }
.obs-node[data-tone="review"]{border-color:#e6c383}.obs-node[data-tone="blocked"]{border-color:#f4a79b}
.obs-node-domain{grid-area:1/1}.obs-node-realm{grid-area:1/3}.obs-node-core{grid-area:2/2;justify-items:center;text-align:center}.obs-node-policy{grid-area:3/1}.obs-node-evidence{grid-area:3/3}
.obs-node-core img{width:38px;height:38px;object-fit:contain}
.obs-graph-caption { color:var(--obs-copy);font-size:.82rem;line-height:1.6;margin:.8rem 0 0; }
.obs-inspector h3{font-size:clamp(1.4rem,2.2vw,2rem);line-height:1.2;margin:1rem 0;color:#eff6fc}
.obs-inspector p,.obs-inspector dd{color:#c7d8e3;line-height:1.6;overflow-wrap:anywhere}
.obs-inspector dl{margin:1.4rem 0;display:grid;gap:.65rem}
.obs-inspector dl>div{padding:.7rem 0;border-top:1px solid var(--obs-line)}
.obs-inspector dt{font-size:.78rem;color:#9ebed0}.obs-inspector dd{margin:.35rem 0 0;font-weight:600}
.obs-inspector a{color:#aee1f4;text-decoration:underline;text-underline-offset:.2em;overflow-wrap:anywhere}
.obs-inspector[data-tone="review"]{border-color:#c9a76c}.obs-inspector[data-tone="blocked"]{border-color:#d28c83}
.obs-code-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem; }
.obs-code-grid article { min-width:0;border:1px solid var(--obs-line);border-radius:14px;overflow:hidden;background:#0b1521; }
.obs-code-head { display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;background:#1a2b3c;padding:.85rem 1rem;border-bottom:1px solid var(--obs-line); }
.obs-code-grid pre { color:#d9e8f2;background:transparent;font: .86rem/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;margin:0;padding:1rem;min-height:240px; }
.obs-studio-note { display:grid;gap:.35rem;margin-top:1rem;padding:1rem;border:1px solid #426576;border-radius:10px;color:#bdd2df;background:#142632;overflow-wrap:anywhere; }
.obs-studio-note strong{color:#dff1f8}
body.obs-wall .obs-main { width:min(96%,3400px); }
body.obs-wall .obs-graph-body { min-height:clamp(420px,32vw,900px); }
body.obs-wall .obs-node strong { font-size:clamp(1rem,1.25vw,2rem); }
body.obs-wall .obs-inspector p,body.obs-wall .obs-inspector dd { font-size:clamp(1rem,1.2vw,1.8rem); }
@media(max-width:1040px){.obs-hero,.obs-workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.obs-code-grid{grid-template-columns:minmax(0,1fr)}.obs-graph-body{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;min-height:0!important;gap:.5rem;padding:0}.obs-wires{display:none}.obs-node{grid-area:auto}.obs-node-core{grid-column:1/-1;grid-row:1}.obs-node strong{font-size:1rem}.obs-code-grid pre{min-height:160px}}
@media(max-width:360px){.obs-graph-body{grid-template-columns:minmax(0,1fr)}.obs-node-core{grid-column:1}.obs-toolbar button{max-width:100%;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.obs-main *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
