@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&display=swap');

.net-label {
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  fill: rgba(220,228,242,0.85);
  text-anchor: middle;
}

.net-link {
  stroke-linecap: round;
}

.net-node-glow-outer,
.net-node-glow-mid { pointer-events: none; }

.net-node-core {
  cursor: grab;
  transition: filter 0.15s;
}
.net-node-core:active { cursor: grabbing; }
.net-node-core.active {
  filter: brightness(1.4) drop-shadow(0 0 8px currentColor);
}

/* ── Slide-in panel ── */
#net-panel {
  position: fixed;
  top: 0;
  right: -340px;
  width: min(320px, 90vw);
  height: 100vh;
  height: 100dvh;
  background: rgba(10,12,18,0.98);
  border-left: 1px solid rgba(80,90,120,0.25);
  padding: 20px 18px 24px;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: thin;
  scrollbar-color: rgba(100,110,140,0.3) transparent;
  z-index: 1000;
  font-family: 'JetBrains Mono', monospace;
}
#net-panel.open { right: 0; }

#net-panel-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: rgba(180,190,210,0.7);
  font-size: 14px;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: monospace;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
#net-panel-close:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(220,230,250,0.95);
}

#net-panel-header {
  padding-right: 40px;
  margin-bottom: 14px;
}

#net-panel-theme-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(150,160,185,0.45);
  margin-bottom: 6px;
}

#net-panel-title {
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(230,238,255,0.95);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

#net-panel-dot {
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
}

#net-panel-count {
  font-size: 10px;
  color: rgba(150,160,185,0.5);
  letter-spacing: 0.08em;
  margin-top: 4px;
  margin-left: 17px;
}

#net-panel-divider {
  height: 1px;
  background: rgba(80,90,120,0.2);
  margin: 14px 0;
}

#net-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0;
  margin: 0;
}

#net-panel-list li {
  font-size: clamp(10px, 2.5vw, 11px);
  font-weight: 300;
  color: rgba(190,200,220,0.75);
  padding: 7px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s;
  line-height: 1.4;
}
#net-panel-list li:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(220,230,250,0.95);
}

/* Mobile bottom sheet */
@media (max-width: 600px) {
  #net-panel {
    top: auto;
    bottom: -100vh;
    right: 0;
    width: 100vw;
    height: 72vh;
    border-left: none;
    border-top: 1px solid rgba(80,90,120,0.3);
    border-radius: 16px 16px 0 0;
    padding: 8px 18px 32px;
    transition: bottom 0.35s cubic-bezier(.4,0,.2,1);
  }
  #net-panel.open {
    bottom: 0;
    right: 0;
  }
  #net-panel-handle {
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(150,160,185,0.3);
    border-radius: 2px;
    margin: 10px auto 16px;
  }
}

#net-panel-handle { display: none; }
