.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin: 1.5rem 0 0.5rem;
}
.section-head h2 { margin: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0 2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.card p { margin: 0.35rem 0; }
a.card-link,
.card-action {
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.card-link { display: block; text-decoration: none; }
a.card-link:hover,
.card-action:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
a.card-link:focus-visible,
.card-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.card-hint {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.65rem !important;
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  vertical-align: middle;
}
button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
}
button.primary:disabled { opacity: 0.6; cursor: wait; }
.health-out {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow: auto;
  white-space: pre-wrap;
}
.health-out.bad { border-color: var(--danger); }
.status-body {
  font-family: inherit;
  white-space: normal;
}
.status-dl {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}
.status-dl dt {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.status-dl dd {
  margin: 0;
  word-break: break-word;
}
.meter {
  height: 0.55rem;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.25rem 0 0.15rem;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.meter.is-high > span { background: var(--danger); }
.status-probe {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  background: color-mix(in srgb, var(--bg) 70%, var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
}
.status-probe.bad { border-color: var(--danger); }
.status-alert {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, var(--panel));
  border-radius: 8px;
  color: var(--danger);
  font-weight: 600;
}
.status-probe pre {
  margin: 0.5rem 0 0;
  overflow: auto;
  font-size: 0.85rem;
}
.status-close {
  font: inherit;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
}
