.namegen-name-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.namegen-name-row .input {
  flex: 1;
  min-width: 0;
}

.namegen-panel {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--color-bg, #fff);
}

.namegen-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.namegen-panel__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.namegen-panel__letter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.namegen-panel__letter-input {
  width: 5rem;
}

.namegen-panel__usages {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.namegen-usages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.namegen-usages-grid label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.namegen-suggestions {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.namegen-suggestion {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.namegen-suggestion:last-child {
  border-bottom: none;
}

.namegen-suggestion__pick {
  font-weight: 600;
  color: var(--color-accent, #2563eb);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-size: inherit;
  font-family: inherit;
  min-width: 6rem;
}

.namegen-suggestion__pick:hover {
  text-decoration: underline;
}

.namegen-suggestion__meaning {
  flex: 1;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  min-width: 8rem;
}

.namegen-suggestion__origin {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
