.cluster-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.cluster-summary article {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 18px;
  border: 1px solid #e0e0e8;
  border-radius: 14px;
  background: #fff;
}

.cluster-summary span,
.cluster-summary small {
  color: #6f6f7e;
}

.cluster-summary strong {
  font-size: 28px;
}

.cluster-summary .summary-danger { background: #fff5f5; border-color: #f2cccc; }
.cluster-summary .summary-warning { background: #fff9ec; border-color: #ecdcae; }
.cluster-summary .summary-success { background: #eff8f2; border-color: #c8e3cf; }

.cluster-explainer {
  margin-bottom: 16px;
  border-left: 5px solid #6b36a8;
}

.cluster-explainer p {
  max-width: 1150px;
  margin-bottom: 0;
  color: #555562;
  line-height: 1.5;
}

.cluster-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
}

.cluster-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cluster-filter {
  padding: 9px 13px;
  border-color: #dedde5;
  border-radius: 999px;
  background: #fff;
  color: #555562;
  font-size: 14px;
}

.cluster-filter.active {
  border-color: #c6b2df;
  background: #f0edf8;
  color: #633397;
  box-shadow: inset 0 0 0 1px #e0d5ee;
}

.cluster-search {
  display: grid;
  flex: 0 1 260px;
  gap: 5px;
  color: #6f6f7e;
  font-size: 13px;
}

.cluster-search input {
  width: 100%;
  margin: 0;
}

.cluster-table-wrap {
  padding: 0;
  overflow: hidden;
}

.cluster-table {
  width: 100%;
  table-layout: auto;
}

.cluster-table th {
  padding: 15px 12px;
  white-space: nowrap;
  color: #696977;
  font-size: 13px;
}

.cluster-table td {
  padding: 15px 12px;
  vertical-align: top;
  font-size: 14px;
}

.cluster-table td > small,
.cluster-name small,
.cluster-assessment small {
  display: block;
  margin-top: 5px;
  color: #737381;
  font-size: 12px;
  line-height: 1.35;
}

.cluster-name {
  min-width: 190px;
  max-width: 290px;
}

.cluster-assessment {
  min-width: 190px;
  max-width: 280px;
}

.cluster-action {
  min-width: 210px;
  max-width: 300px;
  line-height: 1.4;
}

.cluster-action .button {
  display: inline-block;
  margin-top: 9px;
  padding: 7px 10px;
  font-size: 13px;
}

.status-pill.status-danger { background: #ffe1e1; color: #9e2525; }
.status-pill.status-warning { background: #fff0c9; color: #765711; }
.status-pill.status-success { background: #dff2e4; color: #27663a; }
.status-pill.status-info { background: #e9e2f5; color: #603492; }
.status-pill.status-neutral { background: #ededf1; color: #555562; }

.cluster-empty {
  padding: 30px;
  text-align: center;
}

@media (max-width: 980px) {
  .cluster-toolbar { align-items: stretch; flex-direction: column; }
  .cluster-search { flex-basis: auto; }
  .cluster-table-wrap { overflow-x: auto; }
  .cluster-table { min-width: 1120px; }
}
