/* Pics, and Hear ---------------------------------------------------------- */

/* Two modes with one rule between them, which is why they share a file: the
   pane they scroll in. Pics shows cards, Hear shows rows. */

/* Pics: cards by kind (spec.md §6). A strip wears its first frame — the card
   is a fixed box and the picture is pinned to its left edge. */
.pics, .hear { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 16px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 10px;
  padding: 4px 16px 12px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: oklch(0.98 0.01 300 / 0.03);
  cursor: pointer;
  min-width: 0;
}
.card:hover { background: var(--hover); }
.card.on {
  border-color: color-mix(in oklab, var(--look-primary) 70%, transparent);
  background: color-mix(in oklab, var(--look-primary) 18%, transparent);
}
.card .cpic {
  height: 96px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--checker) 0 0 / 16px 16px;
}
.card .cpic img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: pixelated; }
.card.strip .cpic img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.card .crow { display: flex; align-items: center; gap: 4px; }
.card .cname {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card .csub { font-size: 11.5px; color: var(--muted); }

/* A section label with a control at its right-hand end. The label keeps the
   padding it has everywhere else, so the row only has to close the right. */
.section-row { display: flex; align-items: center; gap: 8px; padding-right: 16px; }
.section-row .section-label { flex: 1; min-width: 0; }

/* Hear: a row per sound, lit while it is open under it. */
.hear-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  cursor: pointer;
}
.hear-row:hover { background: var(--hover); }
.hear-row.on { background: color-mix(in oklab, var(--look-primary) 22%, transparent); }
.hear-row .hname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.hear-row .hsize { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
