.status-dashboard {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.status-card {
  border: 1px solid #333;
  border-radius: 8px;
  background: #111;
  color: #fff;
  padding: 14px 16px;
  min-height: 100%;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

.status-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
  color: #fff;
}

.status-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  align-items: baseline;
  font-size: 13px;
}

/* Four home modules: 2×2 equal cells, same row count, same label column. */
.status-grid--pair {
  grid-auto-rows: 1fr;
}

.status-grid--pair .status-card {
  display: flex;
  flex-direction: column;
}

.status-grid--pair .status-card h2 {
  min-height: 1.35em;
}

.status-grid--pair .status-card dl {
  flex: 1;
  grid-template-columns: max-content 1fr;
  align-content: start;
}

.status-grid--pair .status-card dt,
.status-grid--pair .status-card dd {
  min-height: 1.25em;
}

.status-grid--pair .status-card > p.muted:first-of-type {
  min-height: 2.6em;
}

.status-grid--pair .status-card .res-curve {
  width: 100%;
  flex: none;
  height: 248px;
  min-height: 0;
}

/* RES curves: auto rows, no equal-height flex. 1fr + SVG height:auto loops layout. */
.status-grid--charts {
  grid-auto-rows: auto;
  align-items: start;
}

.status-grid--charts .status-card {
  display: block;
}

.status-grid--charts .status-card .res-curve {
  width: 100%;
  height: 248px;
  flex: none;
}

.status-card dt {
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
}

.status-card dd {
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
  color: #fff;
}

.status-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.status-muted {
  color: #bbb;
  font-size: 12px;
}

.status-dist {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: inherit;
}

.status-updated {
  font-size: 12px;
  color: #bbb;
  margin-top: 8px;
}
