/* Master Observability - dark theme, Terraform Academy design system.
 * Square containers (2px), 4px controls, orange/purple accents, no pills. */

.mo-root {
  color: #e7eaf0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.mo-header { margin-bottom: 6px; }

.mo-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #e7eaf0;
}

.mo-sub {
  color: #9aa3b2;
  font-size: 0.9rem;
  margin-top: 2px;
}

/* Quiet inline KPI proof line, not a stat bar. */
.mo-kpi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: #9aa3b2;
  font-size: 0.9rem;
  margin: 14px 0 2px;
}

.mo-kpi-val { color: #e7eaf0; font-weight: 600; }

.mo-kpi-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

/* Sliders: 4px controls, generous touch thumb. */
.mo-sliders {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin: 18px 0;
}

.mo-slider { flex: 1 1 260px; min-width: 240px; }

.mo-slider-label {
  display: block;
  color: #9aa3b2;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.mo-slider-label b { color: #e7eaf0; font-weight: 600; }

.mo-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.mo-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f5893e;
  border: 3px solid #05050f;
  cursor: grab;
}

.mo-slider input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }

.mo-slider input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f5893e;
  border: 3px solid #05050f;
  cursor: grab;
}

/* Chart grid: 2 columns, wide cards span both. */
.mo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  row-gap: 24px;
}

.mo-card {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0 16px;
  min-height: 0;
}

.mo-card-wide { grid-column: 1 / -1; }

.mo-card-title {
  color: #e7eaf0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.mo-card canvas { width: 100% !important; height: 240px !important; }

/* Octagon chart: square canvas so the octagon is regular, centered, not squished. */
.mo-card canvas.mo-octagon {
  height: auto !important;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 760px) {
  .mo-grid { grid-template-columns: 1fr; }
  .mo-card-wide { grid-column: auto; }
  .mo-card canvas { height: 210px !important; }
}
