/* High-load performance scenario styles */
.perf-container {
  position: relative;
  height: 460px;
  margin: 0.75rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #111827;
}

.perf-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.perf-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.perf-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.perf-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  list-style: none;
}

.perf-readout li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.perf-readout .perf-metric-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.perf-readout .perf-metric-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
}

.perf-report {
  max-height: 320px;
  overflow: auto;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: #111827;
  color: #e5e7eb;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  white-space: pre;
}

.perf-report:empty { display: none; }

.perf-notice {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #991b1b;
  font-size: 0.9rem;
}

/* Cesium injects its own widget markup; keep it inside the rounded frame. */
.perf-container .cesium-viewer { width: 100%; height: 100%; }

.preset-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.preset-link {
  padding: 0.15rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: #1f2937;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.preset-link:hover { background: #f3f4f6; }

.preset-link.current {
  background: #1f2937;
  border-color: #1f2937;
  color: #f9fafb;
}
