.generation-preview-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 4px;
}

.generation-preview-section-head strong {
  color: var(--text);
  font-size: 1.05rem;
}

.generation-preview-section-head span {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.troubleshoot-group-browser {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(77, 149, 216, 0.18);
  border-radius: 14px;
  background: rgba(248, 252, 255, 0.86);
}

.troubleshoot-group-browser-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.troubleshoot-group-browser-head span,
.troubleshoot-row-range,
.troubleshoot-pagination span {
  color: var(--muted);
  font-size: 0.84rem;
}

.troubleshoot-group-browser-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.troubleshoot-group-browser-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
}

.troubleshoot-group-browser-item:hover,
.troubleshoot-group-browser-item:focus-visible {
  border-color: rgba(77, 149, 216, 0.48);
  background: rgba(237, 247, 255, 0.8);
}

.troubleshoot-group-browser-item.is-active {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.troubleshoot-group-browser-item span,
.troubleshoot-group-browser-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.troubleshoot-group-browser-item span {
  font-weight: 800;
}

.troubleshoot-group-browser-item small {
  color: var(--muted);
}

.troubleshoot-row-range {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(237, 247, 255, 0.72);
}

.troubleshoot-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .generation-preview-section-head,
  .troubleshoot-group-browser-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .generation-preview-section-head span {
    text-align: left;
  }

  .troubleshoot-group-browser-list {
    grid-template-columns: 1fr;
  }

  .troubleshoot-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .troubleshoot-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}
