.surname-directory-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line, #ded7c9);
  border-radius: 4px;
  background: #fffdf8;
}
.surname-directory-tools label,
.collection-search label { display: block; }
.surname-directory-tools input,
.collection-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #c9bdab;
  border-radius: 2px;
  background: #fff;
  color: #133b34;
  font: inherit;
}
.surname-directory-tools input:focus,
.collection-search input:focus {
  outline: 2px solid rgba(173, 55, 38, .18);
  border-color: #ad3726;
}
.surname-directory-tools > p { margin: 0; color: #6f675c; white-space: nowrap; }
.surname-kind-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.surname-kind-filter button {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #c9bdab;
  border-radius: 999px;
  background: #fff;
  color: #24483f;
  cursor: pointer;
}
.surname-kind-filter button.active {
  border-color: #a53525;
  background: #a53525;
  color: #fff;
}
.surname-directory [data-surname-empty] { margin-top: 24px; }
.collection-search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line, #ded7c9);
  background: #fffdf8;
}
.collection-search label { flex: 1 1 320px; }
.collection-search button,
.collection-search a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid #15483e;
  border-radius: 2px;
  background: #15483e;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.collection-search a { border-color: #c9bdab; background: #fff; color: #24483f; }
.collection-result-note { margin: -4px 0 18px; color: #6f675c; }
.collection-seal.is-long {
  padding: 5px;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  word-break: keep-all;
}
@media (max-width: 860px) {
  .surname-directory-tools { grid-template-columns: 1fr; align-items: stretch; }
  .surname-directory-tools > p { white-space: normal; }
}
@media (max-width: 620px) {
  .surname-directory-tools { padding: 14px; }
  .collection-search { flex-wrap: wrap; }
  .collection-search label { flex-basis: 100%; }
  .collection-search button,
  .collection-search a { flex: 1 1 auto; }
}
