#debug-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(-300px);
  transition: transform 0.2s ease;
  z-index: 9999;
  isolation: isolate;
  user-select: none;
  pointer-events: none;
}

#debug-panel.open {
  transform: translateX(0);
  pointer-events: all;
}

#debug-header {
  padding: 12px 14px 10px;
  font: 700 12px/1 monospace;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#debug-rows {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 6px;
}

.debug-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 14px;
  font: 12px/1.5 monospace;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.debug-row span:last-child {
  color: #00ff7f;
  text-align: right;
}

.debug-section {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 4px;
  font: 700 10px/1 monospace;
  letter-spacing: 0.1em;
  color: rgba(0, 220, 255, 0.45);
  text-transform: uppercase;
  user-select: none;
  border-top: 1px solid rgba(0,220,255,0.08);
  margin-top: 2px;
}
.debug-section:hover {
  color: rgba(0, 220, 255, 0.85);
}
.debug-section-chevron {
  font-size: 9px;
  line-height: 1;
  color: inherit;
  flex-shrink: 0;
}
.debug-section-body {
  /* visible by default; hidden via JS when collapsed */
}
