.tool-credits {
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.tool-credits h2 {
  margin: 0 0 1rem;
}

.tool-credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

.tool-credit-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.tool-credit-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-credit-grid li + li {
  margin-top: 0.75rem;
}

.tool-credit-grid a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.profile-focus {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-credits .tool-meta {
  margin-bottom: 0;
}

.profile-dialog {
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.profile-dialog::backdrop {
  background: rgba(16, 24, 40, 0.55);
}

.profile-dialog-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-dialog h2 {
  margin-bottom: 0;
}

.editorial-profile {
  scroll-margin-top: 6rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
