.ops-health-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .58);
  overflow-y: auto;
  box-sizing: border-box;
}

.ops-health-modal {
  box-sizing: border-box;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  color: #18181b;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.ops-health-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.ops-health-modal-close {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: #f4f4f5;
}

.ops-health-modal-score {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  font-weight: 700;
}

.ops-health-modal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.ops-health-modal-metrics > * {
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 12px;
}

.ops-health-modal-reasons {
  margin-top: 22px;
  line-height: 1.6;
}

.ops-health-formula {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: #f4f4f5;
  font-size: 13px;
}

@media (max-width: 600px) {
  .ops-health-modal-overlay { padding: 10px; }
  .ops-health-modal {
    padding: 16px;
    max-height: calc(100vh - 20px);
  }
  .ops-health-modal-metrics {
    grid-template-columns: 1fr;
  }
}
