.comm-dialog.comm-contact-dialog {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100dvh - 40px);
  overflow: hidden !important;
}
.comm-contact-dialog > :not(.comm-contact-list) { flex-shrink: 0; }
.comm-contact-dialog > .relative {
  flex: 1 1 auto;
  min-height: 0;
  gap: 14px;
  overflow: hidden;
}
.comm-contact-dialog > .relative > :not(.comm-contact-list) { flex-shrink: 0; }
.comm-contact-categories { display: flex; flex-wrap: wrap; gap: 7px; }
.comm-contact-categories .comm-contact-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #dce5e4;
  border-radius: 10px;
  background: #fff;
  color: #35515a;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.comm-contact-categories .comm-contact-category:hover { background: #edf5f1; border-color: #9bbdb0; }
.comm-contact-categories .comm-contact-category.is-active {
  color: #fff;
  background: #0b6653;
  border-color: #0b6653;
}
.comm-contact-category-count {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 5px;
  background: #edf2f1;
  color: #607c80;
  font-size: 10px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.is-active > .comm-contact-category-count { background: #fff; color: #0b6653; }
.comm-contact-category:focus-visible,
.comm-contact-empty > button:focus-visible { outline: 2px solid #0b6653; outline-offset: 3px; }
.comm-contact-result-count { margin: 0; color: #607b86; font-size: 12px; line-height: 1.5; }
.comm-contact-dialog .comm-contact-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.comm-contact-empty { padding: 24px 8px; text-align: center; color: #607b86; }
.comm-contact-empty > p { font-size: 13px; line-height: 1.6; }
.comm-contact-list .comm-contact-empty > button {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid #bdd2c8;
  border-radius: 9px;
  background: #edf5f1;
  color: #0b6653;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 540px) {
  .comm-dialog.comm-contact-dialog { max-height: calc(100dvh - 24px); gap: 12px; }
  .comm-contact-dialog > .relative { gap: 12px; }
  .comm-contact-categories { gap: 6px; }
  .comm-contact-categories .comm-contact-category { min-height: 40px; padding: 8px 10px; }
}
