/* ---- Brain: Graph ---- */
.brain-headrow{display:flex;align-items:center;justify-content:space-between;gap:10px}
.graph-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(168,85,247,.5);background:linear-gradient(135deg,rgba(168,85,247,.22),rgba(236,72,153,.16));color:var(--text);border-radius:999px;padding:9px 16px;font:inherit;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 0 18px rgba(168,85,247,.25);-webkit-tap-highlight-color:transparent}
.graphpage{display:flex;flex-direction:column}
.graph-head{display:flex;align-items:center;gap:4px}
.graph-chips{display:flex;gap:8px;margin:4px 0 10px;flex-wrap:wrap}
.graph-wrap{position:relative;flex:none;border:1px solid var(--line);border-radius:18px;overflow:hidden;
  height:calc(var(--vvh,100dvh) - 235px - var(--safe-b) - var(--safe-t));min-height:340px;
  background:radial-gradient(900px 600px at 50% 40%,#1c1440 0%,#0c0d1c 55%,#070813 100%)}
.graph-cv{position:absolute;inset:0;width:100%;height:100%;touch-action:none;display:block;cursor:grab}
.graph-load{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.graph-legend{position:absolute;left:12px;top:10px;display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted);pointer-events:none}
.graph-legend span{display:inline-flex;align-items:center;gap:7px}
.graph-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}
.graph-count{position:absolute;right:12px;top:10px;font-size:12px;pointer-events:none}
.graph-sheet{position:absolute;left:10px;right:10px;bottom:10px;background:rgba(14,15,32,.88);backdrop-filter:blur(14px);border:1px solid rgba(168,85,247,.45);border-radius:16px;padding:13px 14px;display:flex;flex-direction:column;gap:8px;box-shadow:0 8px 30px rgba(0,0,0,.5)}
.graph-st{font-weight:600;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.graph-ss{font-size:13px}
.graph-nb{display:flex;flex-wrap:wrap;gap:6px;max-height:84px;overflow-y:auto}
.graph-nbc{border:1px solid var(--line);background:rgba(255,255,255,.05);color:var(--text);border-radius:999px;padding:5px 11px;font:inherit;font-size:13px;cursor:pointer}
@media (min-width:821px){.graph-wrap{height:calc(100dvh - 210px)}}
.graph-eye{position:absolute;right:10px;top:34px;width:42px;height:42px;border-radius:50%;border:1px solid rgba(168,85,247,.45);background:rgba(14,15,32,.7);backdrop-filter:blur(8px);color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.graph-eye.on{color:#fff;box-shadow:0 0 14px rgba(168,85,247,.45)}
