.server-health-shell {
  min-height: 100vh;
}

.health-content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

.health-message {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
}

.resource-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.resource-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
}

.resource-card[data-status="warning"] {
  border-color: var(--warning);
}

.resource-card[data-status="critical"] {
  border-color: var(--error);
}

.resource-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resource-head span {
  color: var(--secondary);
  font-size: 11px;
}

.resource-head strong {
  font-size: 22px;
  font-weight: 600;
}

.resource-card p {
  margin: 9px 0 0;
  color: var(--secondary);
  font-size: 10px;
}

.meter {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 999px;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--success);
  border-radius: inherit;
}

.meter span[data-status="warning"] {
  background: var(--warning);
}

.meter span[data-status="critical"] {
  background: var(--error);
}

.health-panel {
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
}

.health-panel-heading {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.health-panel-heading small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .05em;
}

.health-panel-heading h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.server-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.health-kv {
  min-width: 0;
  padding: 13px 14px;
  background: var(--surface);
}

.health-kv span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.health-kv strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 500;
}

.subsection {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.subsection h3 {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 11px;
  font-weight: 600;
}

.health-table-wrap {
  overflow-x: auto;
}

.health-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.health-table-wrap th {
  padding: 8px 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.health-table-wrap td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.health-table-wrap tr:last-child td {
  border-bottom: 0;
}

.schedule-table {
  min-width: 1050px;
}

.service-name {
  font-weight: 500;
}

.number-cell,
.time-cell {
  white-space: nowrap;
}

.empty-cell {
  padding: 22px !important;
  color: var(--muted);
  text-align: center;
}

.health-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  color: var(--secondary);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
}

.health-status-healthy {
  color: var(--success);
}

.health-status-warning {
  color: var(--warning);
}

.health-status-critical {
  color: var(--error);
}

.health-status-unknown {
  color: var(--muted);
}

.health-footer {
  display: flex;
  justify-content: space-between;
  padding: 2px;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 960px) {
  .server-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .health-content {
    padding: 14px 12px 22px;
  }

  .resource-grid,
  .server-summary-grid {
    grid-template-columns: 1fr;
  }

  .health-footer {
    flex-direction: column;
    gap: 4px;
  }
}

.backup-health-kv small {
  display: block;
  margin-top: 5px;
  color: var(--secondary);
  font-size: 9px;
  line-height: 1.4;
}
