/* ═══════════════════════════════════════════════════════════════
   HarshalOS — NEO ORB (css/neo-orb.css)
   Scoped to .neo-root so it cannot restyle The Orb or Orb 2.
   ═══════════════════════════════════════════════════════════════ */

.neo-root {
  color: #dfe9ff;
  font: 12px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.neo-root .neo-head .h1 { margin: 0 0 2px; }
.neo-root .neo-head .sub { color: #9fb3d6; }

.neo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}

.neo-stage {
  position: relative;
  height: clamp(380px, 64vh, 640px);
  border: 1px solid rgba(74, 158, 255, 0.25);
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 45%, #0b1224 0%, #04060c 70%, #000 100%);
  overflow: hidden;
}
.neo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.neo-stage-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  pointer-events: none;
}
.neo-stage-bar > * { pointer-events: auto; }
.neo-hint { color: #7d93b8; margin-left: auto; font-size: 11px; }

.neo-btn {
  font: inherit;
  color: #dfe9ff;
  background: rgba(16, 26, 48, 0.85);
  border: 1px solid rgba(74, 158, 255, 0.4);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.neo-btn:hover { border-color: #6fd3ff; }
.neo-btn:focus-visible { outline: 2px solid #6fd3ff; outline-offset: 2px; }

.neo-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: clamp(380px, 64vh, 640px);
  overflow: auto;
  padding-right: 4px;
}
.neo-section {
  border: 1px solid rgba(74, 158, 255, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(8, 14, 28, 0.6);
}
.neo-section h3 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6fd3ff;
}
.neo-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  margin: 0;
}
.neo-dl dt { color: #7d93b8; }
.neo-dl dd { margin: 0; overflow-wrap: anywhere; }

.neo-range {
  display: block;
  margin: 6px 0;
}
.neo-range > span { display: flex; justify-content: space-between; color: #b9c9e6; }
.neo-range output { color: #ffd479; font-variant-numeric: tabular-nums; }
.neo-range input[type="range"] { width: 100%; accent-color: #6fd3ff; }
.neo-range select {
  width: 100%;
  margin-top: 3px;
  font: inherit;
  color: #dfe9ff;
  background: #0a1224;
  border: 1px solid rgba(74, 158, 255, 0.35);
  border-radius: 6px;
  padding: 3px 6px;
}

.neo-check {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 4px 0;
  color: #b9c9e6;
}

.neo-roster {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow: auto;
}
.neo-roster-item {
  display: grid;
  grid-template-columns: 10px auto 1fr;
  gap: 6px;
  align-items: center;
  text-align: left;
  font: inherit;
  color: #dfe9ff;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 3px 6px;
  cursor: pointer;
}
.neo-roster-item:hover { border-color: rgba(74, 158, 255, 0.35); }
.neo-roster-item[aria-pressed="true"] { border-color: #6fd3ff; background: rgba(111, 211, 255, 0.08); }
.neo-roster-item:focus-visible { outline: 2px solid #6fd3ff; outline-offset: 1px; }
.neo-sym { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; }
.neo-meta { color: #7d93b8; font-size: 11px; text-align: right; }

.neo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.neo-insp-title { font-weight: 600; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.neo-muted { color: #7d93b8; margin: 4px 0; }

.neo-foot {
  margin: 0;
  color: #7d93b8;
  font-size: 11px;
}

@media (max-width: 760px) {
  .neo-body { grid-template-columns: minmax(0, 1fr); }
  .neo-stage { height: 380px; }
  .neo-panel { max-height: none; }
  .neo-hint { display: none; }
}

/* Market colour legend: swatches share the reserved palette with the orbs. */
.neo-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: middle; }
