.domain-list-card {
  padding: 0;
  overflow: hidden;
}

.domain-list-card > .compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.domain-group {
  border-bottom: 1px solid var(--line);
}

.domain-group:last-child {
  border-bottom: 0;
}

.domain-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 16px 18px;
  background: var(--card);
  list-style: none;
}

.domain-group > summary::-webkit-details-marker {
  display: none;
}

.domain-group > summary::before {
  content: "›";
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
  transition: transform .15s;
}

.domain-group[open] > summary::before {
  transform: rotate(90deg);
}

.domain-group > summary:hover {
  background: var(--surface);
}

.domain-group-name {
  flex: 1;
  font-size: 16px;
  font-weight: 800;
}

.domain-group-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.domain-group table {
  border-top: 1px solid var(--line);
}

.domain-group tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 560px) {
  .domain-list-card > .compact-head,
  .domain-group > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .domain-group > summary::before {
    position: absolute;
  }

  .domain-group-name,
  .domain-group-stats {
    padding-left: 18px;
  }

  .domain-group-stats {
    justify-content: flex-start;
  }
}
