.sticker.duplicate {
  background: #e5f0fb;
  border-color: #4387bd;
}

.sticker.duplicate .qty {
  background: #216899;
}

.sticker {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}

/* Missing stickers stay recognisable but recede behind the collection. */
.sticker:not(.owned) {
  filter: grayscale(1);
  opacity: 0.48;
}

.sticker:not(.owned):hover,
.sticker:not(.owned):focus-visible {
  opacity: 0.7;
}

.sticker.owned,
.sticker.duplicate {
  filter: none;
  opacity: 1;
}

.touch-help {
  margin: 7px 0 0;
  color: #796f69;
  font-size: 0.78rem;
}

.toolbar {
  grid-template-columns: 190px minmax(220px, 1fr) 160px 160px auto;
}

@media (max-width: 950px) {
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar .search {
    grid-column: auto;
  }
}

.catalogue-meta,
.legend {
  display: flex;
  align-items: center;
}

.catalogue-meta {
  gap: 22px;
  color: #796f69;
  font-size: 0.85rem;
}

.legend {
  gap: 14px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid;
}

.collected-swatch {
  background: #e7f1eb;
  border-color: #6aa38a !important;
}

.missing-swatch {
  background: #ece9e5;
  border-color: #aaa29b !important;
  opacity: 0.55;
}

.duplicate-swatch {
  background: #e5f0fb;
  border-color: #4387bd !important;
}

@media (max-width: 650px) {
  .section-heading {
    align-items: flex-start;
  }

  .catalogue-meta {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }
}
