/* Graph workspace: dark analytical canvas, inspired by the supplied GitNexus views. */
body[data-studio-page=graph]{background:#08090f;color:#dce0ed;--line:#22232f;--muted:#9194ab}
body[data-studio-page=graph] main:has([data-page=graph]){padding:0 0 8px}
body[data-studio-page=graph] .site-header{background:#0e0f18;border-color:#22232f}
body[data-studio-page=graph] .brand strong,body[data-studio-page=graph] .page-heading h1{color:#edf0fa}
body[data-studio-page=graph] .site-header nav a,body[data-studio-page=graph] .header-actions a{color:#9096ae}
body[data-studio-page=graph] .site-header nav a:hover,body[data-studio-page=graph] .header-actions a:hover{background:#1b192b;color:#e4d8ff}
body[data-studio-page=graph] .site-header nav a[aria-current=page]{background:#271b40;color:#bb8dff}
body[data-studio-page=graph] .studio-toolbar{background:#0b0c14;border-color:#22232f;color:#e7e9f5;backdrop-filter:none}
body[data-studio-page=graph] .studio-icon-button,body[data-studio-page=graph] .studio-quick{color:#9699b0}
body[data-studio-page=graph] .studio-icon-button:hover,body[data-studio-page=graph] .studio-quick:hover{background:#201c32;color:#d3bbff}
body[data-studio-page=graph] kbd{background:#141521;border-color:#262736;color:#999bb5}
[data-page=graph] .page-heading{padding:14px 20px;display:flex;align-items:center;gap:20px;min-width:0;border-bottom:1px solid #1f202d}
[data-page=graph] .page-heading h1{font-size:18px;margin:0;flex-shrink:0}
[data-page=graph] #graph-context{font-size:12px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:none}
[data-page=graph]>.hint{font-size:10px;margin:7px 18px 0;color:#70758d}
.graph-canvas:has(.graph-workspace){padding:0;border:0;border-bottom:1px solid #222735;border-radius:0;background:#08090f;overflow:hidden;margin:0}
.graph-workspace{--graph-bg:#08090f;--graph-panel:#0f101a;--graph-line:#222330;--graph-text:#dce2ef;--graph-muted:#959fb5;position:relative;display:grid;grid-template-columns:218px minmax(0,1fr);gap:0;height:calc(100dvh - 142px);min-height:540px;color:var(--graph-text);background:var(--graph-bg);isolation:isolate}
.graph-workspace:has(>.network-filters[hidden]){grid-template-columns:minmax(0,1fr)}
.graph-workspace:has(>.network-inspector:not([hidden])){grid-template-columns:218px minmax(0,1fr)}
.graph-workspace:has(>.network-filters[hidden]):has(>.network-inspector:not([hidden])){grid-template-columns:minmax(0,1fr)}
.graph-workspace .network-filters{display:flex;flex-direction:column;gap:12px;border:0;border-right:1px solid var(--graph-line);border-radius:0;background:var(--graph-panel);height:100%;max-height:none;overflow:auto;padding:18px 15px;scrollbar-width:thin;scrollbar-color:#353c50 transparent}
.graph-workspace .network-filters h3{font-size:14px;line-height:1.5;color:#e4e7f1;margin:0 0 3px}
.graph-workspace .network-filters>.eyebrow{color:#7787a8;letter-spacing:1px;font-size:9px;margin:0}
.graph-workspace .network-filters label{display:grid;font-size:11px;color:#959fb5;line-height:1.5;gap:5px}
.graph-workspace .network-filters input,.graph-workspace .network-filters select{font-size:12px;color:#dce2ef;background:#181c29;border:1px solid #2c3244;border-radius:6px;padding:8px;margin:0;min-height:34px;color-scheme:dark}
.graph-workspace .network-filters input::placeholder{color:#7e89a1}
.graph-workspace .network-filters fieldset{border-top-color:#2a3040;display:grid;gap:9px;margin:0;padding:14px 0 0}
.graph-workspace .network-filters legend{font-size:11px;color:#a8b5cc;padding-right:8px}
.graph-workspace .network-check{display:flex!important;align-items:center;gap:8px!important}
.graph-workspace .network-check input{min-height:0;width:14px;height:14px;accent-color:#8b5cf6}
.graph-workspace .studio-graph-toggle{display:none!important}
.graph-workspace .network-main{display:block;position:relative;min-width:0;height:100%;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#0b0d19 0%,#08090f 75%)}
.graph-workspace .network-canvas{position:absolute;inset:0;min-height:0;border:0;border-radius:0;overflow:hidden;background:transparent}
.graph-workspace .graph-edge-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.graph-workspace .network-canvas>svg{position:relative;width:100%;height:100%;min-height:0;display:block;outline:none;touch-action:none}
.graph-workspace .network-toolbar{position:absolute;top:15px;left:15px;right:15px;z-index:3;display:flex;align-items:center;gap:10px;margin:0;pointer-events:none}
.graph-workspace .network-toolbar>*{pointer-events:auto}
.graph-workspace button.secondary{background:#171c29;color:#bac5dc;border:1px solid #2c3346;border-radius:7px;font-size:11px;min-height:33px;margin:0;box-shadow:none;line-height:1.5;padding:7px 11px}
.graph-workspace button.secondary:hover:not(:disabled){background:#252c40;border-color:#485574;color:#fff;box-shadow:none}
.graph-workspace button:focus-visible,.graph-workspace summary:focus-visible,.graph-workspace a:focus-visible{outline:2px solid #a78bfa;outline-offset:3px}
.graph-workspace input:focus,.graph-workspace select:focus{border-color:#8b5cf6;outline:2px solid #8b5cf633}
.graph-workspace .graph-mode-group{display:flex;padding:3px;border:1px solid #2d3040;border-radius:9px;background:#151822e8;gap:3px;box-shadow:0 4px 18px #0002}
.graph-workspace .graph-mode-group button{border:0;background:transparent;font-size:11px;white-space:nowrap}
.graph-workspace .graph-mode-group button[aria-pressed=true]{background:#7545df;color:#fff}
.graph-workspace .graph-count{font-size:10px;color:#8994ad;margin-left:auto;white-space:nowrap;background:#10131de0;padding:7px 9px;border-radius:6px}
.graph-workspace .graph-pause{white-space:nowrap;font-size:11px}
.graph-workspace .graph-motion-choice{color-scheme:dark;background:#151520;color:#ada9c4;border:1px solid #303040;border-radius:7px;min-height:34px;padding:6px 9px;font-size:11px;max-width:150px;margin:0;cursor:pointer}
.graph-workspace .graph-motion-choice:focus-visible{outline:2px solid #a78bfa;outline-offset:3px}
.graph-workspace .graph-camera-controls{position:absolute;right:15px;bottom:62px;display:flex;flex-direction:column;gap:6px;z-index:3}
.graph-workspace .graph-camera-controls button{width:35px;height:35px;padding:4px;font-size:20px;color:#a9b3ce;background:#171c29ed;border-color:#2d3346}
.graph-workspace .graph-camera-controls button[aria-pressed=true]{background:#7545df;color:#fff}
.graph-workspace:has(>.network-inspector:not([hidden])) .graph-camera-controls{right:338px}
.graph-workspace .graph-motion-status{position:absolute;bottom:17px;right:15px;z-index:2;border:1px solid #28384a;border-radius:20px;padding:7px 11px;background:#101a25e6;color:#9faec3;font-size:10px;pointer-events:none}
.graph-workspace .graph-motion-status[data-state=running]{color:#41d4c0;border-color:#1b635b}
.graph-workspace .graph-motion-status[data-state=running]:before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#32d8ba}
.graph-workspace .network-legend{position:absolute;bottom:17px;left:16px;right:170px;z-index:2;gap:8px 12px;pointer-events:none}
.graph-workspace .network-legend span{font-size:10px;color:#9aa8c2}
.graph-workspace .network-legend span:before{width:6px;height:6px}
.graph-workspace .network-node{transition:opacity .18s;cursor:pointer}
.graph-workspace .network-node.is-context{opacity:.5}
.graph-workspace .network-node.is-muted{opacity:.18}
.graph-workspace .network-node.is-neighbor,.graph-workspace .network-node.is-selected{opacity:1}
.graph-workspace .network-node .network-dot{stroke:#c8e3ff22;stroke-width:.7;filter:none}
.graph-workspace .network-node .network-halo{fill:none;stroke-width:1.5;opacity:0;filter:none;transition:opacity .18s;pointer-events:none}
.graph-workspace .network-node .network-hit{fill:transparent;stroke:none;filter:none}
.graph-workspace .network-node.is-selected .network-halo,.graph-workspace .network-node:hover .network-halo,.graph-workspace .network-node:focus .network-halo{opacity:1}
.graph-workspace .network-node.is-selected .network-dot{stroke:#eee6ff;stroke-width:1.2}
.graph-workspace .network-node-label{font-family:Inter,sans-serif;font-size:10px;font-weight:400;fill:#bac6dd;stroke:#0b0d14;stroke-width:4px;paint-order:stroke;pointer-events:none;transition:opacity .18s}
.graph-workspace .network-node-label.label-on-focus{display:none}
.graph-workspace .network-label-backplate{fill:#10111bef;stroke-width:1.2;pointer-events:none}
.graph-workspace .network-node.is-selected .network-node-label{display:block;fill:#fff;font-weight:600;font-size:12px;opacity:1}
.graph-workspace .network-node.is-neighbor .network-node-label{display:block;opacity:1}
.graph-workspace .network-node.is-muted .network-node-label{display:none}
.graph-workspace .network-inspector{position:absolute;right:14px;top:64px;bottom:65px;z-index:5;width:310px;grid-column:auto;background:#10121df5;border:1px solid #303344;border-radius:10px;box-shadow:0 12px 40px #0005;padding:20px 18px;height:auto;max-height:none;overflow:auto;scrollbar-width:thin;scrollbar-color:#353c50 transparent;color:#bac6dc}
.graph-workspace .network-inspector h3{font-size:15px;color:#eef1fa;margin:14px 0;line-height:1.65;padding-right:10px}
.graph-workspace .network-inspector h4{color:#d7dff1;font-size:12px;margin:18px 0 8px}
.graph-workspace .network-inspector p,.graph-workspace .network-inspector li{font-size:12px;color:#929fb7;line-height:1.75}
.graph-workspace .network-inspector .source-badge{background:#29223f;color:#c4a9fa;border-radius:5px;font-size:10px}
.graph-workspace .network-inspector .network-strength{font-size:26px;font-weight:600;color:#ba9afb}
.graph-workspace .network-inspector .network-notice{background:#1d2333;border:1px solid #2c3449;color:#adbbd6;font-size:11px}
.graph-workspace .network-inspector summary{font-size:11px;color:#bca1f0;padding:8px 0}
.graph-workspace .network-inspector a{font-size:12px;color:#75c9f1}
.graph-workspace .network-connection{border-color:#2a3040;padding:14px 0;gap:8px}
.graph-workspace .network-connection small{color:#8c9bb9;font-size:11px}
.graph-workspace .network-connection blockquote{background:#1a2030;color:#c6d0e3;border:0;border-left:2px solid #8165c7;padding:12px;font-size:12px}
.graph-workspace .graph-inspector-close{float:right;width:28px;min-height:28px;padding:0;background:transparent;color:#a8b3c9;border:0;font-size:22px;line-height:1}
.graph-workspace .graph-inspector-close:hover{background:#262c3e;color:#fff}
.graph-workspace .graph-scope,.graph-workspace .graph-explorer,.graph-workspace .graph-help{border-top:1px solid #2a3040;padding-top:3px}
.graph-workspace .network-filters summary{color:#b9c4d9;font-size:11px;padding:9px 0}
.graph-workspace .network-summary,.graph-workspace .graph-help .hint{color:#929db3;font-size:11px;line-height:1.7;margin:8px 0}
.graph-workspace .network-picks{display:flex;flex-direction:column;gap:6px}
.graph-workspace .network-picks button{font-size:10px;line-height:1.6;text-align:left;padding:8px}
.graph-workspace .network-suggestions h3{font-size:12px;margin:12px 0;color:#c2cee3}
.graph-workspace .network-accessible button{font-size:10px;padding:8px;text-align:left}
.graph-workspace .network-empty{position:absolute;top:45%;left:10%;right:10%;padding:20px;background:#141a28e8;border:1px solid #2d354b;border-radius:10px;color:#b9c5dc;font-size:13px;pointer-events:none}
.graph-fullscreen{overflow:hidden}
.graph-workspace.graph-maximized{position:fixed;inset:12px;z-index:100;height:auto;min-height:0;border:1px solid #30374a;border-radius:12px;box-shadow:0 0 0 20px #080a10d9;overflow:hidden}
@media(max-width:1300px){.graph-workspace:has(>.network-inspector:not([hidden])){grid-template-columns:205px minmax(0,1fr)}.graph-workspace:has(>.network-filters[hidden]):has(>.network-inspector:not([hidden])){grid-template-columns:1fr}.graph-workspace>.network-inspector:not([hidden]){position:absolute;right:12px;top:60px;bottom:60px;z-index:5;width:min(320px,calc(100% - 24px));height:auto;border:1px solid #353b4e;border-radius:10px;box-shadow:0 12px 45px #0008}.graph-workspace .graph-count{display:none}}
@media(max-width:960px){.graph-workspace,.graph-workspace:has(>.network-inspector:not([hidden])){grid-template-columns:minmax(0,1fr)}.graph-workspace .network-filters{position:absolute;left:10px;top:60px;bottom:58px;width:min(270px,calc(100% - 20px));height:auto;z-index:6;border:1px solid #343b50;border-radius:9px;box-shadow:0 12px 45px #0008}.graph-workspace .network-filters h3,.graph-workspace .network-filters fieldset{grid-column:auto}.graph-workspace .network-filters fieldset{display:flex;flex-direction:column}.graph-workspace .network-inspector{grid-column:auto}}
@media(max-width:760px){body[data-studio-page=graph] main{padding:12px 10px 14px}[data-page=graph] .page-heading{display:block;padding-bottom:10px}[data-page=graph] .page-heading h1{font-size:18px}[data-page=graph] #graph-context{margin-top:4px;font-size:11px}.graph-workspace{height:calc(100dvh - 155px);min-height:480px}.graph-canvas:has(.graph-workspace){padding:0;border-radius:9px}.graph-workspace .network-toolbar{top:10px;left:10px;right:10px;gap:5px;flex-wrap:wrap}.graph-workspace button.secondary{font-size:10px;min-height:36px;padding:7px 8px}.graph-workspace .graph-mode-group{gap:1px;padding:2px}.graph-workspace .graph-mode-group button{font-size:10px;padding:6px}.graph-workspace .graph-pause{margin-left:auto;font-size:10px}.graph-workspace .graph-camera-controls{right:10px;bottom:80px;gap:6px}.graph-workspace .graph-camera-controls button{width:38px;height:38px;min-height:38px;font-size:21px}.graph-workspace .network-legend{bottom:40px;right:15px;left:12px;gap:6px 10px}.graph-workspace .network-legend span{font-size:9px}.graph-workspace .graph-motion-status{bottom:9px;right:10px;font-size:9px;padding:5px 9px}.graph-workspace .network-inspector{right:8px!important;left:8px;top:60px!important;bottom:70px!important;width:auto!important;max-height:none}.graph-workspace .network-inspector button{min-height:36px}.graph-workspace .network-node-label{font-size:12px}.graph-workspace.graph-maximized{inset:4px;border-radius:8px}.graph-workspace .network-filters input,.graph-workspace .network-filters select{font-size:13px;min-height:38px}.graph-workspace .network-filters label{font-size:12px}}
.graph-workspace[data-reduce-motion=true] *{transition:none!important;animation:none!important}
@media(max-width:760px){.graph-workspace:has(>.network-inspector:not([hidden])) .graph-camera-controls{right:12px;bottom:12px;flex-direction:row;z-index:7}.graph-workspace:has(>.network-inspector:not([hidden])) .network-legend,.graph-workspace:has(>.network-inspector:not([hidden])) .graph-motion-status{visibility:hidden}}
@media(max-width:760px){body[data-studio-page=graph] main:has([data-page=graph]){padding:0 0 8px}[data-page=graph] .page-heading{padding:12px 14px}.graph-canvas:has(.graph-workspace){border-radius:0}.graph-workspace .network-toolbar{display:grid;grid-template-columns:auto 1fr auto;align-items:start}.graph-workspace .graph-mode-group{justify-self:center}.graph-workspace .graph-pause{grid-column:3;grid-row:1}.graph-workspace .graph-motion-choice{grid-column:2;grid-row:2;justify-self:center;font-size:10px;min-height:30px}.graph-workspace .graph-count{display:none}.graph-workspace .network-filters{top:98px}.graph-workspace .network-inspector{top:98px!important}}
