/* P2a monitoring, runtime health, incidents, and notification outbox styles.
 * Split into a dedicated stylesheet to keep every CSS module under 600 lines.
 * Uses exact CSS custom properties from app.css for light & dark mode parity.
 */

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.runtime-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.runtime-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.check-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.check-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-card.unsupported {
  background: var(--surface);
  border-style: dashed;
}

.check-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-card.needs-attention {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.test-confirm-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.filter-row .field {
  min-width: 150px;
}

.poll-box {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.refresh-select {
  width: auto;
  min-width: 72px;
  padding: 6px 10px;
}

.refresh-status {
  white-space: nowrap;
}

.refresh-error {
  color: var(--danger);
  font-weight: 600;
}

@media (max-width: 640px) {
  .check-status-grid,
  .runtime-grid {
    grid-template-columns: 1fr;
  }
}
