.azp-matcher {
  display: grid;
  gap: .9rem;
  min-width: 0;
  padding: clamp(.85rem, 2.8vw, 1.5rem);
  border: 1px solid var(--border, #bacccb);
  border-radius: var(--radius, 14px);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, none);
  color: var(--ink, #263c42);
}

.azp-matcher [hidden] { display: none; }
.azp-matcher p { margin: 0; }
.azp-matcher form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .65rem;
}
.azp-matcher form label { display: grid; gap: .25rem; min-width: 0; font-weight: 700; }
.azp-matcher form label:first-child { grid-column: 1 / -1; }
.azp-matcher :is(select, input[type="search"], button) {
  min-width: 0;
  min-height: 44px;
  padding: .4rem .65rem;
  border: 1px solid var(--border-strong, #728b89);
  border-radius: .65rem;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
}
.azp-matcher :is(select, input[type="search"]) { width: 100%; }
.azp-matcher button { cursor: pointer; }
.azp-matcher button:hover { background: var(--surface-soft, #ddefef); }
.azp-matcher :focus-visible { outline: 3px solid var(--primary-deep, #263c42); outline-offset: 2px; }
.azp-matcher a { text-decoration: underline; text-underline-offset: .2em; }
.azp-matcher [data-recovery] { padding: .7rem; border-radius: .65rem; background: var(--accent-soft, #faedd5); }
.azp-matcher [data-chips] { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.azp-matcher [data-chips] button { overflow-wrap: anywhere; }
.azp-matcher [data-results] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.azp-matcher [data-results]:empty { display: none; }
.azp-matcher [data-results] li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .75rem;
  padding: .2rem .65rem;
  border-radius: .65rem;
  background: var(--surface-tint, #f2f8f7);
}
.azp-matcher [data-results] :is(a, label) { display: flex; align-items: center; min-height: 44px; }
.azp-matcher [data-results] a { overflow-wrap: anywhere; }
.azp-matcher [data-results] label { gap: .35rem; font-size: .9em; }
.azp-matcher input[type="checkbox"] { margin: 0; accent-color: var(--primary, #446966); }
.azp-matcher [data-more] { justify-self: start; }
.azp-matcher [data-compare-status] { color: var(--muted, #455e60); font-size: .9em; }
.azp-matcher table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: start; }
.azp-matcher caption { margin-bottom: .45rem; text-align: start; font-weight: 700; }
.azp-matcher thead td:first-child { width: 25%; }
.azp-matcher th, .azp-matcher td {
  padding: clamp(.3rem, 1.25vw, .75rem);
  border: 1px solid var(--border, #bacccb);
  vertical-align: top;
  text-align: start;
  overflow-wrap: anywhere;
}
.azp-matcher th { background: var(--surface-tint, #f2f8f7); }
.azp-matcher th button { display: block; margin-top: .3rem; font-size: .85em; }
.azp-matcher td small { display: block; color: var(--muted, #455e60); }
.azp-matcher td div + div { margin-top: .45rem; }
