.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.insight-card {
  min-height: 320px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.insight-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.insight-card h2 {
  margin: 5px 0 0;
  font-size: 17px;
}

.insight-eyebrow {
  color: var(--violet);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}

.insight-total {
  padding: 6px 9px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.status-chart-layout {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(190px, 1fr);
  align-items: center;
  gap: 26px;
}

.status-pie {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  place-items: center;
}

.status-pie::after {
  position: absolute;
  inset: 24%;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 65%, transparent);
  content: "";
}

.status-pie > span {
  position: relative;
  z-index: 1;
  text-align: center;
}

.status-pie strong,
.status-pie small {
  display: block;
}

.status-pie strong {
  font-size: 28px;
  line-height: 1;
}

.status-pie small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.chart-legend {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart-legend li {
  display: grid;
  grid-template-columns: 10px minmax(80px, 1fr) 24px 36px;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  font-size: 11px;
}

.chart-legend li:last-child {
  border-bottom: 0;
}

.chart-legend strong,
.chart-legend small {
  text-align: right;
}

.chart-legend small {
  color: var(--muted);
}

.chart-key {
  width: 8px;
  height: 8px;
  background: var(--chart-color);
  border-radius: 3px;
}

.priority-chart {
  display: grid;
  gap: 21px;
  padding-top: 4px;
}

.priority-row-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 12px;
}

.priority-row-label strong {
  font-size: 11px;
}

.priority-row-label small {
  color: var(--muted);
  font-weight: 500;
}

.priority-track {
  height: 12px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.priority-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--bar-color);
  border-radius: 7px;
  transition: width .35s ease;
}

.insight-card > .empty {
  display: grid;
  min-height: 270px;
  place-content: center;
}

@media (max-width: 1000px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .status-chart-layout {
    grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr);
  }
}

@media (max-width: 680px) {
  .insight-card {
    min-height: 0;
    padding: 18px;
  }

  .status-chart-layout {
    grid-template-columns: 1fr;
  }

  .status-pie {
    max-width: 190px;
  }

  .chart-legend {
    width: 100%;
  }
}
