#referral-source-audit, #referral-snapshot { scroll-margin-top: 92px; }
.referral-snapshot[hidden], [data-referral-snapshot-link][hidden] { display: none; }
.referral-snapshot-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 800px;
}
.referral-snapshot-form label { display: grid; gap: 8px; font-weight: 600; }
.referral-snapshot-form input {
  padding: 10px 12px;
  border: 1px solid #7a8da4;
  border-radius: 6px;
  min-width: 0;
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: white;
}
.referral-snapshot-form button { grid-column: 1 / -1; justify-self: start; cursor: pointer; }
.referral-snapshot-result:not(:empty) {
  margin-top: 20px;
  max-width: 70ch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--navy);
}
[data-referral-snapshot-link] { text-decoration: underline; }
@media (max-width: 680px) {
  .referral-snapshot-form { grid-template-columns: 1fr; }
}
