.eh-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.eh-summary-item {
  min-width: 0;
  padding: 0.45rem 0.8rem;
  border-right: 1px solid rgba(var(--bs-inverse-rgb), 0.12);
}

.eh-summary-item:last-child {
  border-right: 0;
}

.eh-summary-label {
  display: block;
  color: rgba(var(--bs-inverse-rgb), 0.5);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eh-summary-value {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.eh-health-grid,
.eh-incident-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.eh-health-check,
.eh-incident-item {
  display: grid;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(var(--bs-inverse-rgb), 0.12);
  border-radius: 0.35rem;
  background: rgba(var(--bs-inverse-rgb), 0.035);
}

.eh-health-check {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.5rem;
}

.eh-health-icon,
.eh-incident-icon {
  line-height: 1;
}

.eh-health-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 600;
}

.eh-health-count {
  font-size: 0.72rem;
  font-weight: 700;
}

.eh-incident-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.4rem 0.55rem;
}

.eh-incident-label {
  min-width: 0;
  font-size: 0.72rem;
  color: rgba(var(--bs-inverse-rgb), 0.62);
}

.eh-incident-item strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  text-align: right;
}

.eh-engine-card {
  background: rgba(var(--bs-body-bg-rgb), 0.22);
}

.eh-engine-card .card-body {
  padding: 0.75rem;
}

.eh-engine-number {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.eh-engine-title {
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.eh-engine-card .badge {
  flex: 0 0 auto;
  padding: 0.28rem 0.42rem;
  font-size: 0.62rem;
}

.eh-engine-meta {
  margin-top: 0.15rem;
  color: rgba(var(--bs-inverse-rgb), 0.48);
  font-size: 0.68rem;
}

.eh-engine-reason {
  min-height: 2.2em;
  margin-top: 0.55rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.72rem;
  line-height: 1.1rem;
}

.eh-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.eh-mini-truth {
  min-width: 0;
  padding: 0.3rem 0.28rem;
  border: 1px solid rgba(var(--bs-inverse-rgb), 0.1);
  border-radius: 0.3rem;
  background: rgba(var(--bs-inverse-rgb), 0.03);
  text-align: center;
}

.eh-mini-truth span,
.eh-mini-truth strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eh-mini-truth span {
  color: rgba(var(--bs-inverse-rgb), 0.42);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.eh-mini-truth strong {
  margin-top: 0.08rem;
  font-size: 0.62rem;
}

.eh-details-wrap {
  margin-top: 0.55rem;
  border-top: 1px solid rgba(var(--bs-inverse-rgb), 0.1);
  padding-top: 0.45rem;
}

.eh-details-wrap summary {
  cursor: pointer;
  color: rgba(var(--bs-inverse-rgb), 0.58);
  font-size: 0.68rem;
  font-weight: 600;
}

.eh-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid rgba(var(--bs-inverse-rgb), 0.07);
  font-size: 0.7rem;
}

.eh-detail-row span {
  color: rgba(var(--bs-inverse-rgb), 0.52);
}

.eh-detail-row strong {
  max-width: 58%;
  text-align: right;
  overflow-wrap: anywhere;
}

.min-w-0 {
  min-width: 0;
}

@media (max-width: 1199.98px) {
  .eh-health-grid,
  .eh-incident-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .eh-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .eh-summary-item:nth-child(3) {
    border-right: 0;
  }

  .eh-summary-item:nth-child(n + 4) {
    border-top: 1px solid rgba(var(--bs-inverse-rgb), 0.12);
  }
}

@media (max-width: 575.98px) {
  .eh-health-grid,
  .eh-incident-grid {
    grid-template-columns: 1fr;
  }

  .eh-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eh-summary-item:nth-child(odd) {
    border-right: 1px solid rgba(var(--bs-inverse-rgb), 0.12);
  }

  .eh-summary-item:nth-child(even) {
    border-right: 0;
  }

  .eh-summary-item:nth-child(n + 3) {
    border-top: 1px solid rgba(var(--bs-inverse-rgb), 0.12);
  }
}
