* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #030308; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #cfd8ea;
  font-size: 13px;
}
canvas { display: block; }

.labels {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 5;
}
.body-label {
  color: rgba(210, 222, 245, 0.85);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 4px #000, 0 0 8px #000;
  pointer-events: none;
  white-space: nowrap;
}

.panel {
  position: fixed;
  top: 14px; left: 14px;
  z-index: 10;
  width: 250px;
  padding: 14px 16px;
  background: rgba(8, 12, 24, 0.78);
  border: 1px solid rgba(90, 120, 180, 0.25);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.panel h1 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9db8e8;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.row label { color: #8a99b8; min-width: 42px; }
.row select, .row input[type="range"] {
  flex: 1;
  min-width: 0;
}
select {
  background: #101828;
  color: #cfd8ea;
  border: 1px solid rgba(90, 120, 180, 0.35);
  border-radius: 5px;
  padding: 4px 6px;
}
input[type="range"] { accent-color: #6d8fd0; }
.btn {
  background: #1a2740;
  color: #cfd8ea;
  border: 1px solid rgba(110, 140, 200, 0.4);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 12px;
}
.btn:hover { background: #243354; }
.date { margin-left: auto; color: #8fb0e8; font-variant-numeric: tabular-nums; }
.speed-label { min-width: 64px; text-align: right; color: #8fb0e8; font-size: 11px; }

.toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin: 10px 0 8px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #aab8d4;
}
.toggle input { accent-color: #6d8fd0; }

.hint {
  font-size: 10.5px;
  line-height: 1.5;
  color: #5d6c88;
  border-top: 1px solid rgba(90, 120, 180, 0.15);
  padding-top: 8px;
}

.telemetry {
  position: fixed;
  z-index: 20;
  width: 250px;
  padding: 12px 14px;
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid rgba(120, 150, 210, 0.35);
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
.telemetry.hidden { display: none; }
.telemetry h2 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #bcd2f5;
  letter-spacing: 0.08em;
}
.telemetry table { width: 100%; border-collapse: collapse; }
.telemetry td {
  padding: 2px 0;
  font-size: 11.5px;
  vertical-align: top;
}
.telemetry td:first-child { color: #7688aa; width: 48%; }
.telemetry td:last-child { color: #dce6f8; text-align: right; font-variant-numeric: tabular-nums; }
.telemetry .fact {
  margin: 8px 0 0;
  font-size: 11px;
  font-style: italic;
  color: #93a5c5;
  line-height: 1.45;
  border-top: 1px solid rgba(120, 150, 210, 0.18);
  padding-top: 6px;
}
