.details-stats .stats-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 20px;
  margin: 0 0 20px;
  padding: 18px;
  border-radius: 12px;
}
.details-stats .stats-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.details-stats .stats-legend dt {
  flex: 0 0 52px;
  padding: 4px 6px;
  border-radius: 7px;
  text-align: center;
}
.details-stats .stats-legend dd {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
html.theme-aek .details-stats .stats-legend {
  background: rgba(30, 35, 36, 0.8);
  border: 1px solid rgba(255, 204, 0, 0.25);
}
html.theme-aek .details-stats .stats-legend dt {
  background: rgba(255, 204, 0, 0.1);
  color: #ffcc00;
}
html.theme-aek .details-stats .stats-legend dd {
  color: #e2e4e4;
}
@media (min-width: 600px) {
  .details-stats .stats-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .details-stats .stats-legend {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
