/* Hash Generator: layout for the key field, results and compare field.
   Shared styles live in /tools/shared/tools.css and encoders.css; this uses their tokens. */

.hg-key,
.hg-compare {
  margin-bottom: var(--space-3);
}
.hg-compare {
  margin-top: var(--space-4);
  margin-bottom: 0;
}
.hg-drop-actions {
  justify-content: center;
  margin-top: 0;
}
.hg-progress {
  margin-top: var(--space-3);
}
.hg-progress > div {
  transition: none;
}
.hg-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.hg-row {
  min-width: 0;
}
.hg-row .textarea {
  min-height: 0;
  height: auto;
  resize: none;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: var(--text-sm);
  cursor: text;
}
.hg-row .textarea:focus-visible {
  border-color: var(--color-accent);
}
.hg-row.is-match .textarea {
  border-color: var(--color-success);
  box-shadow: 0 0 0 1px var(--color-success);
}

/* Compare field: green on a match, red when it differs from every hash */
.hg-compare .field.is-valid,
.hg-compare .field.is-valid:focus-within {
  border-color: var(--color-success);
  box-shadow: 0 0 0 1px var(--color-success);
}
.hg-compare .field.is-invalid,
.hg-compare .field.is-invalid:focus-within {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 1px var(--color-danger);
}
.hg-compare .field input {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.hg-cmp-status {
  margin-left: var(--space-1);
}
