/* core/ui/level-cell-legend.css — ARC S2.8E (locked 2026-05-02).
 *
 * Fixed-position docked legend on the right edge of the viewport.
 * Sits above the sphere (z-index 25 < #cursor-tooltip's 30 so the
 * tooltip wins overlaps).  Read-only: pointer-events on individual
 * rows for hover/click, but the panel never traps wheel/drag.
 *
 * @see core/ui/level-cell-legend.js
 * @see core/ui/sphere-shell.css   (#cursor-tooltip is at z-index 30)
 */

#relay-cell-legend {
  position: fixed;
  top: 56px;
  right: 12px;
  width: 240px;
  max-height: calc(100vh - 220px);
  z-index: 25;
  background: rgba(8, 14, 26, 0.86);
  border: 1px solid rgba(80, 100, 140, 0.32);
  border-radius: 6px;
  padding: 10px 12px 12px 12px;
  font: 500 11px/1.4 'Segoe UI', system-ui, sans-serif;
  color: #c0d0e0;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  overflow: auto;
  pointer-events: auto;
}

#relay-cell-legend .rcl-header {
  font: 700 12px/1.2 'Segoe UI', system-ui, sans-serif;
  color: #e8eef8;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
  text-transform: none;
}

#relay-cell-legend .rcl-subtitle {
  font: 500 9px/1.4 'Segoe UI', system-ui, sans-serif;
  color: #6a7d96;
  margin-bottom: 10px;
}

#relay-cell-legend .rcl-section-h {
  font: 600 9px/1.2 monospace;
  color: #7c93b3;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 8px 0 4px 0;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(80, 100, 140, 0.18);
}

#relay-cell-legend .rcl-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px;
  margin: 2px 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

#relay-cell-legend .rcl-row:hover {
  background: rgba(34, 211, 238, 0.10);
  color: #e8f4ff;
}

#relay-cell-legend .rcl-label {
  font: 600 11px/1.3 'Segoe UI', system-ui, sans-serif;
  color: #d0deef;
}

#relay-cell-legend .rcl-row:hover .rcl-label {
  color: #ffffff;
}

#relay-cell-legend .rcl-meta {
  font: 500 9px/1.3 monospace;
  color: #6a7d96;
  word-break: break-all;
}

#relay-cell-legend .rcl-row.rcl-kind-module .rcl-meta {
  color: #34d8b0;
}

#relay-cell-legend .rcl-row.rcl-kind-group .rcl-meta {
  color: #c084fc;
}

#relay-cell-legend .rcl-empty {
  font: 500 10px/1.4 monospace;
  color: #506074;
  font-style: italic;
  padding: 6px 0;
}
