/* Collections imported from the user's workbook. */
.collection-tabs{display:flex;align-items:center;gap:10px;overflow-x:auto;margin:0 0 24px;padding:2px 0 6px;scrollbar-width:none;overscroll-behavior-inline:contain}
.collection-button{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:11px 16px;border:1px solid var(--border);border-radius:12px;background:#121416;color:#b6b8c0;font-size:13px}
.collection-button:hover{color:var(--text);border-color:rgba(255,187,40,.45)}
.collection-button.is-active{color:#ffdc63;border-color:rgba(255,192,38,.55);background:linear-gradient(120deg,rgba(255,199,22,.10),rgba(255,158,12,.025))}
.collection-count{padding:2px 6px;border-radius:5px;background:rgba(255,255,255,.06);font-size:10px;font-variant-numeric:tabular-nums;line-height:1.5;color:#a5a8b1}
.collection-button.is-active .collection-count{color:#f2cf64;background:rgba(255,185,15,.12)}
.category-type-field{position:relative;min-width:0;height:54px;border-radius:999px}
.category-type-field select{width:100%;height:100%;appearance:none;padding:0 44px 0 20px;border:0;border-radius:inherit;background:transparent;color:#dddde3;cursor:pointer;font-size:14px}
.category-type-field option{background:var(--surface);color:var(--text)}
.category-type-field .icon{position:absolute;right:18px;top:18px;width:18px;height:18px;pointer-events:none;color:var(--muted)}
.effect-art.is-single{position:relative;background-image:none;background-color:#050506}
.catalog-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.detail-art.is-single{height:100%;aspect-ratio:auto}
.effect-art.no-image{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:linear-gradient(150deg,#1b1d20,#101214);color:#8d9099}
.effect-art.no-image>.icon{width:30px;height:30px;color:#b1a17d}
.missing-image-label{font-size:12px;text-align:center;padding:0 14px;line-height:1.6}
.card-tags{min-width:0}
.card-tags .tag{max-width:140px}
.source-link{display:inline-flex;color:#ad9e77;font-size:11px;line-height:1.8;text-decoration:underline;text-underline-offset:3px;margin-top:20px;overflow-wrap:anywhere}
.source-link:hover{color:var(--accent)}
#image-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.empty-state h2{max-width:100%;overflow-wrap:anywhere}
@media(max-width:900px){.category-type-field{height:54px}}
@media(max-width:700px){
 .collection-tabs{gap:8px;margin-bottom:16px;padding-bottom:6px}
 .collection-button{padding:9px 12px;gap:8px;border-radius:10px;font-size:12px;min-height:40px}
 .collection-count{font-size:9px}
 .category-type-field{height:44px;min-width:0;border-radius:999px}
 .category-type-field select{padding-left:14px;padding-right:34px;font-size:12px}
 .category-type-field .icon{right:12px;top:14px;width:16px;height:16px}
 .card-tags{overflow:hidden}
 .card-tags .tag{max-width:100%;padding:4px 5px;overflow:hidden;text-overflow:ellipsis;font-size:8px}
 .effect-art.no-image{gap:7px}
 .effect-art.no-image>.icon{width:23px;height:23px}
 .missing-image-label{font-size:10px;padding:0 8px}
 .source-link{font-size:10px;margin-top:16px}
}

/* Preview dimensions follow each original image. */
.preview-button .effect-art.is-single { overflow: hidden; isolation: isolate; }
.preview-button .catalog-image { object-fit: contain; object-position: center; }

/* Sheet tabs occupy the former All / 3D / 2D position in the search toolbar. */
.toolbar {
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.6fr) 142px;
  gap: 20px;
}
.toolbar .collection-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  height: 54px;
  margin: 0;
  padding: 5px;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.collection-tabs::-webkit-scrollbar { display: none; }
.toolbar .collection-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d6d6dd;
  font-size: 12px;
  white-space: nowrap;
}
.toolbar .collection-button:hover {
  background: rgba(255,255,255,.06);
}
.toolbar .collection-button.is-active {
  background: linear-gradient(125deg,#ffdb16,#ffc300);
  color: #211800;
  box-shadow: 0 2px 14px rgba(255,196,0,.12);
}
.toolbar .collection-count {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255,255,255,.07);
  color: #a5a8b1;
  font-size: 10px;
  line-height: 1.4;
}
.toolbar .collection-button.is-active .collection-count {
  background: rgba(38,27,0,.1);
  color: #3d2a00;
}
.group-filter-row {
  display: grid;
  grid-template-columns: 200px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.group-filter-row .category-type-field {
  height: 40px;
  border-radius: 999px;
}
.group-filter-row .category-type-field select {
  padding-left: 16px;
  padding-right: 34px;
  font-size: 12px;
}
.group-filter-row .category-type-field .icon {
  top: 12px;
  right: 13px;
  width: 16px;
  height: 16px;
}
.group-filter-row .material-filters {
  flex-wrap: nowrap;
  margin: 0;
  padding: 3px 1px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
@media(max-width:900px) {
  .toolbar { grid-template-columns:minmax(0,1fr) 142px; gap:14px; }
}
@media(max-width:700px) {
  .toolbar { grid-template-columns:minmax(0,1fr) 44px; gap:12px 10px; }
  .toolbar .collection-tabs { height:44px; padding:4px; gap:2px; }
  .toolbar .collection-button {
    min-height:34px;
    padding:7px 10px;
    gap:6px;
    font-size:11px;
  }
  .toolbar .collection-count { font-size:9px; padding:2px 4px; }
  .group-filter-row { grid-template-columns:130px minmax(0,1fr); gap:8px; margin-top:12px; }
  .group-filter-row .category-type-field { height:38px; }
  .group-filter-row .category-type-field select { padding-left:12px; font-size:11px; }
  .group-filter-row .category-type-field .icon { top:11px; }
  .group-filter-row .material-filters { padding-block:3px; }
}
