/* Registry component fixes. These selectors intentionally outrank the shared
   form rules: a generic grid label previously collapsed the search control,
   while the generic full-width select consumed the rest of the toolbar. */
.systems-toolbar {
  align-items: end;
}

.systems-toolbar .search {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
}

.systems-toolbar .search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 95, 151, .12);
}

.systems-toolbar .search > span {
  flex: none;
  font: 18px/1 "IBM Plex Sans";
}

.systems-toolbar .search input {
  display: block;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

.systems-toolbar .filter {
  display: grid;
  flex: 0 0 220px;
  min-width: 0;
  gap: 6px;
}

.systems-toolbar .filter > span {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7d8797;
}

.systems-toolbar .filter select {
  width: 100%;
  min-width: 0;
  height: 42px;
}

.system-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-card,
.card-top > div,
.meta div {
  min-width: 0;
}

.card-top {
  align-items: flex-start;
}

.card-top > .badge {
  flex: none;
  align-self: flex-start;
  width: auto;
  min-height: 0;
  white-space: nowrap;
}

.system-card h3 {
  overflow-wrap: anywhere;
}

.meta {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge,
.tag {
  align-items: center;
  width: auto;
  min-height: 0;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .systems-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .systems-toolbar .filter {
    flex-basis: auto;
    width: 100%;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }
}
