/* Telemetry panel — pewmic-website#27. Palette matches pewmic-client.
   Browser-WebRTC-only data; per-stage timing is mostly hidden by the browser. */

.telemetry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.94);
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
}
.telemetry-overlay.hidden { display: none; }

.telemetry-panel {
  width: 600px;
  max-width: 100%;
  border: 1px solid rgba(0, 255, 136, 0.4);
  background: #0a0a0f;
  font-family: "Share Tech Mono", Menlo, Consolas, monospace;
  color: #00ff88;
}

.telemetry-titlebar {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.telemetry-close { color: #e74c3c; cursor: pointer; }
.telemetry-close:hover { text-shadow: 0 0 6px #e74c3c; }

.telemetry-section { padding: 16px; border-bottom: 1px dashed rgba(0, 255, 136, 0.15); }
.telemetry-section h3 {
  font-size: 11px;
  color: #00ff88;
  letter-spacing: 0.1em;
  margin: 0 0 12px 0;
  font-weight: normal;
}
.telemetry-meta {
  font-size: 10px;
  color: #506070;
  margin-top: 8px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.telemetry-meta code {
  background: rgba(0, 255, 136, 0.08);
  padding: 1px 4px;
  border-radius: 0;
  color: #00ff88;
}
.telemetry-meta a { color: #00ff88; }

.telemetry-section svg {
  display: block;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.05) 0%, #0a0a0f 70%);
}

/* Pipeline rows — same shape as pewmic-client */
.flow { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.stage {
  display: grid;
  grid-template-columns: 24px 1fr 110px;
  align-items: center;
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 8px 12px;
  background: rgba(0, 255, 136, 0.03);
  font-size: 11px;
}
.stage.hidden-stage { opacity: 0.5; }
.stage .num { color: #00ff88; font-weight: bold; font-family: inherit; }
.stage .swatch { width: 14px; height: 14px; border: 1px solid rgba(0, 255, 136, 0.2); }
.stage .swatch.sw-network { background: #f1c40f; }
.stage .swatch.sw-jitter  { background: rgba(0, 255, 136, 0.3); }
.stage .swatch.sw-dim     { background: rgba(80, 96, 112, 0.4); }
.stage .name { color: #c8d0d8; }
.stage .name .short { color: #506070; font-size: 10px; margin-left: 8px; }
.stage .ms { text-align: right; }
.stage .ms small { color: #506070; font-size: 10px; margin-left: 4px; }

.flow .arrow {
  text-align: left;
  color: rgba(0, 255, 136, 0.3);
  font-size: 18px;
  line-height: 1;
  padding: 1px 0 1px 32px;
}

.telemetry-modes {
  display: flex;
  padding: 8px 12px;
  gap: 8px;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
  font-size: 11px;
  align-items: center;
}
.telemetry-modes button {
  background: #0a0a0f;
  color: #8090a0;
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 4px 12px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.08em;
}
.telemetry-modes button.active {
  color: #00ff88;
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
}
.telemetry-modes button:hover {
  color: #00ff88;
}
