@media (min-width: 851px) {
  .simple-dashboard .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 601px) and (max-width: 850px) {
  .simple-dashboard .node-metric { grid-column: auto; }
}

.simple-dashboard .dashboard-heading h1 {
  font-size: clamp(28px, 3.5vw, 37px);
}

.simple-dashboard .metric-card {
  min-height: 0;
  padding: 18px;
}

.simple-dashboard .metric-label {
  font-size: 12px;
  margin-bottom: 14px;
}

.simple-dashboard .metric-value { font-size: 38px; }
.simple-dashboard .fraction-count { font-size: 17px; }

.simple-dashboard .node-ring {
  width: 70px;
  height: 70px;
}

.simple-dashboard .node-ring::before { inset: 6px; }
.simple-dashboard .node-ring strong { font-size: 26px; }

.simple-dashboard .geographic-nodes {
  margin: 20px 0 0;
}

.status-map {
  position: relative;
  max-width: 1040px;
  margin: 8px auto 0;
  overflow: hidden;
  background: #f5f8fc;
}

.status-map img {
  display: block;
  width: 100%;
  height: auto;
}

.status-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.status-map g { color: #496b8b; }
.status-map g[data-state="OK"] { color: #18763d; }
.status-map g[data-state="WARNING"] { color: #9a650e; }
.status-map path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.status-map circle,
.status-map rect { fill: currentColor; stroke: #fff; stroke-width: 1.4; }
.status-map text {
  fill: #fff;
  font: 700 10px system-ui, sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
}

.simple-dashboard .geographic-nodes .functional-nodes {
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr));
}

.simple-dashboard .geographic-nodes .functional-nodes li {
  padding: 12px;
  gap: 8px;
}

.node-location {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.node-location small { color: #52667d; }
.simple-dashboard .geographic-nodes .node-state { font-size: 12px; }
.geographic-nodes .node-state[data-state="unknown"] { color: #52667d; }

