/* static/css/results.css — card density for the result lists.
 *
 * results_density.js writes data-density="comfortable|compact|grid" on #img-list / #vid-list.
 *   - Comfortable is the app as it always was: ONE column on every screen, the original card,
 *     apart from a shorter rail (no Done / count / Value pills) and the icon buttons. From
 *     1600px up, results_wide.css lays each card out as photo | text | keywords (still one
 *     card per row, nothing clamped).
 *   - Compact is for big batches: cards at least --rd-card-min (460px) wide, so two per row
 *     from a ~1280px screen, up to four. While it shows 2+ columns the keywords are clamped to
 *     three rows with a "Show all N" toggle (results_density.js writes data-rd-cols); zoomed in
 *     to one column, every keyword shows again.
 *   - Grid is a review view: small tiles (thumbnail, title, one row of keywords, Value),
 *     5-6 per row. Clicking a thumbnail OPENS that tile across the row as the plain card, for
 *     editing (data-rd-open on its wrapper; every Grid rule excludes it).
 *   - Full metadata (data-full-metadata, any density) lifts every clamp on the title,
 *     description and keywords without changing columns or sizes; absent, nothing changes.
 *
 * Layout and density only. Nothing here changes what a card contains, and no node is moved:
 * kwToggle / copyKws / Money Score find the keyword area through closest('.fg-field' / '.rcard')
 * and there is only ever one .kw-area (C8). Every rule is scoped under [data-density], so
 * deleting the script tag leaves the pre-feature stylesheet exactly as it was (C3). The only
 * unscoped rules are the .rd-* density control, which exists only when that script does.
 *
 * Compact is one tidy shape: a centered rail (thumbnail, filename, swatches, buttons) beside a
 * content column whose labels, title, description and chips all share ONE left edge, with the
 * Value score as a small chip in the card's top-right corner. Cards respond to their OWN width
 * (container query on the per-card wrapper).
 */

/* ── Compact: the grid ────────────────────────────────────────────────────────────────── */
/* The card's minimum width decides the column count, never a screen breakpoint: the list is
   about (viewport - 329px) wide beside the 272px sidebar, so 460px gives two columns from a
   1280px screen, three from ~1880, four from ~2240 (the cap: the second max() term keeps a
   track at least a quarter of the row). Zooming in shrinks the CSS width, so the same rule
   drops back to one column with no code. */
:is(#img-list, #vid-list)[data-density="compact"] {
  --rd-card-min: 460px;
  --rd-gap: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(min(var(--rd-card-min), 100%), (100% - 3 * var(--rd-gap)) / 4), 1fr));
  gap: var(--rd-gap);
  align-items: stretch;   /* neighbours in a row share one height, so the bottoms line up */
}
/* The container is the wrapper div around each card, never the card itself: a card cannot
   query its own width. The wrapper is a grid so its one child stretches to the row height. */
:is(#img-list, #vid-list)[data-density="compact"] > * {
  container-type: inline-size;
  container-name: rc;
  min-width: 0;
  display: grid;
}
:is(#img-list, #vid-list)[data-density="compact"] > :not(:has(.rcard)) { grid-column: 1 / -1; }
:is(#img-list, #vid-list)[data-density="compact"] .rcard { margin-bottom: 0; min-width: 0; }

/* Page side padding: 24px, 32px from 1920px up. No max-width anywhere on the results. */
#p-images:has(#img-list[data-density="compact"]),
#p-video:has(#vid-list[data-density="compact"]) { padding-inline: 24px; }
@media (min-width: 1920px) {
  #p-images:has(#img-list[data-density="compact"]),
  #p-video:has(#vid-list[data-density="compact"]) { padding-inline: 32px; }
}

/* ── Compact: the rail ────────────────────────────────────────────────────────────────── */
/* The rail is sized in proportion to the card and fills its height on purpose:
     - width and thumbnail height are fractions of the card's own width (cqi, the wrapper is
       the "rc" container), so a wide or zoomed-in card gets a bigger picture instead of slack;
     - the picture, filename and swatches sit at the top, level with the agency row; the two
       icon buttons sit on the bottom edge, level with the last keyword row; the score floats
       between them on auto margins, so whatever height is left splits evenly around it.
   It must stay shorter than the content column, or the rail, not the text, sets the card's
   height: hence a 22px score, never the old 30px "94/100" block. Pinning only the buttons left
   a hole above them; letting them follow the content left one below. */
:is(#img-list, #vid-list)[data-density="compact"] .rcard-head {
  width: clamp(128px, 26cqi, 188px);
  padding: 14px 12px 12px;
  gap: 8px;
  align-items: center;
}
:is(#img-list, #vid-list)[data-density="compact"] .rfi {
  gap: 6px;
  align-items: center;
  text-align: center;
}
/* Natural-aspect thumbnail, no square frame, so a portrait shot gets no side bars. */
:is(#img-list, #vid-list)[data-density="compact"] .rthumb {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  max-width: 100%;
  max-height: clamp(96px, 20cqi, 160px);
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 8px;
}
:is(#img-list, #vid-list)[data-density="compact"] .rfile {
  text-align: center;
  font-family: var(--mono, ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
:is(#img-list, #vid-list)[data-density="compact"] .cp-label { display: none; }
:is(#img-list, #vid-list)[data-density="compact"] .color-info { margin-top: 0; }
:is(#img-list, #vid-list)[data-density="compact"] .color-palette { justify-content: center; flex-wrap: nowrap; gap: 3px; }
:is(#img-list, #vid-list)[data-density="compact"] .color-swatch { width: 11px; height: 11px; border-width: 1px; }

/* Status strip: the score first, then "Optimizing…" and the Distinct / Overlap pill. "Done" is
   dropped (the green left edge already says it) and so is the keyword count (it is in the field
   label, "(N / max)", card_limits.js). With neither a score nor a pill (a restored list: Money
   Score only scores live runs) the strip and its divider go. */
:is(#img-list, #vid-list)[data-density="compact"] .rbadges {
  width: 100%;
  margin-block: auto;
  padding: 8px 0;
  border-top: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}
:is(#img-list, #vid-list)[data-density="compact"] .rbadges :is(.badge-ok, .kw-badge) { display: none; }
:is(#img-list, #vid-list)[data-density="compact"] .rbadges:not(:has(> :not(.badge-ok, .kw-badge))) { display: none; }
:is(#img-list, #vid-list)[data-density="compact"] .rbadges .badge,
:is(#img-list, #vid-list)[data-density="compact"] .rbadges .bx-badge { font-size: 10px; }

/* Value: "94" at 22px with a small "/100", in the tier colour, over a thin bar as wide as the
   score (--ms-score, set on .rbadges by moneyscore.js). The pill's own text ("Value 94") stays
   in the DOM for screen readers; without data-score (an older cached script) the pill shows. */
:is(#img-list, #vid-list)[data-density="compact"] .rbadges .ms-badge[data-score] {
  order: -1;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  align-items: baseline;
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}
:is(#img-list, #vid-list)[data-density="compact"] .rbadges .ms-badge[data-score]::before {
  content: attr(data-score);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}
:is(#img-list, #vid-list)[data-density="compact"] .rbadges .ms-badge[data-score]::after {
  content: "/100";
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
:is(#img-list, #vid-list)[data-density="compact"] .rbadges .ms-badge-high { color: var(--gold); }
:is(#img-list, #vid-list)[data-density="compact"] .rbadges .ms-badge-mid { color: var(--text); }
:is(#img-list, #vid-list)[data-density="compact"] .rbadges .ms-badge-low { color: var(--dim); }
:is(#img-list, #vid-list)[data-density="compact"] .rbadges:has(.ms-badge[data-score])::after {
  content: "";
  order: 0;
  width: 100%;
  max-width: 88px;
  height: 3px;
  border-radius: 2px;
  --rd-bar: var(--dim);
  background:
    linear-gradient(var(--rd-bar), var(--rd-bar)) 0 0 / calc(var(--ms-score, 0) * 1%) 100% no-repeat,
    var(--border);
}
:is(#img-list, #vid-list)[data-density="compact"] .rbadges:has(.ms-badge-high)::after { --rd-bar: var(--gold); }
:is(#img-list, #vid-list)[data-density="compact"] .rbadges:has(.ms-badge-low)::after { --rd-bar: var(--muted); }
:is(#img-list, #vid-list)[data-density="compact"] .rbadges .bx-badge { order: 1; }

/* Buttons: Regenerate + Share as a centred pair of icon buttons on the rail's bottom edge (they
   are defined for every density further down); a text button (⬇ Embed, ↶ Previous version)
   takes a full row under them. The strip's auto margin puts them there; with no strip (a
   restored list has no score) their own does. */
:is(#img-list, #vid-list)[data-density="compact"] .rfi:has(> .rbadges:not(:has(> :not(.badge-ok, .kw-badge)))) > .ractions { margin-top: auto; }
:is(#img-list, #vid-list)[data-density="compact"] .ractions {
  width: 100%;
  margin-top: 0;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
:is(#img-list, #vid-list)[data-density="compact"] .ractions .btn {
  order: 1;
  flex: 1 0 100%;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Compact: the content column ──────────────────────────────────────────────────────── */
:is(#img-list, #vid-list)[data-density="compact"] .rbody { padding: 10px 14px 12px; }
:is(#img-list, #vid-list)[data-density="compact"] .agency-row { margin-bottom: 8px; gap: 10px; }
/* Only the agencies the output has a problem with; "Compatible with 5 agencies" pill when none
   does (results_density.js marks passing dots and adds the note). The iStock ✦ tag stays. */
:is(#img-list, #vid-list)[data-density="compact"] .agency-dot[data-rd-ok] { display: none; }
/* Compact skips the Model release advisory (it lands on nearly every portrait); the other
   Reject Radar pills stay. batch_filter.js only counts pills that are visible. */
:is(#img-list, #vid-list)[data-density="compact"] .bx-radar-pill[data-flag="people"] { display: none; }
:is(#img-list, #vid-list)[data-density]:not([data-density="compact"]) .rd-agency-ok { display: none; }
/* Its look is .ist-ok-pill (batch.css), shared with the iStock-only "Compatible with iStock". */
:is(#img-list, #vid-list)[data-density="compact"] .rd-agency-ok { display: inline-flex; }
:is(#img-list, #vid-list)[data-density="compact"] .rbody > .fg-field { margin-bottom: 6px; }
:is(#img-list, #vid-list)[data-density="compact"] .rbody > .fg-field:last-child { margin-bottom: 0; }
:is(#img-list, #vid-list)[data-density="compact"] .fl-field {
  font-size: 10px;
  letter-spacing: .07em;
  line-height: 1.4;
  margin-bottom: 2px;
}
/* One left edge. The editable boxes keep their hover/focus border, so they bleed 6px out
   to the left (margin) and pad it back in: the TEXT lands exactly under the label above. */
:is(#img-list, #vid-list)[data-density="compact"] .fv {
  font-size: 13px;
  line-height: 1.4;
  min-height: 0;
  margin-inline: -6px;
  padding: 2px 5px;
}
:is(#img-list, #vid-list)[data-density="compact"] .fv[data-field="title"] { font-size: 14px; font-weight: 600; }
/* Two lines of description; clicking into it (focus) expands it for editing. Full metadata
   (data-full-metadata, results_density.js) shows it whole. */
:is(#img-list, #vid-list)[data-density="compact"]:not([data-full-metadata]) .fv[data-field="description"] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
:is(#img-list, #vid-list)[data-density="compact"] .fv[data-field="description"]:focus { display: block; overflow: visible; }
:is(#img-list, #vid-list)[data-density="compact"] .kw-area { gap: 4px; min-height: 0; margin-inline: -6px; padding: 2px 5px; }
/* A fixed chip height, so "three rows" below is an exact max-height. */
:is(#img-list, #vid-list)[data-density="compact"] .kchip { box-sizing: border-box; height: 22px; font-size: 12px; padding: 0 8px; gap: 3px; }
:is(#img-list, #vid-list)[data-density="compact"] .kinput { font-size: 12px; height: 22px; }
/* The label row is an inline-flex strip; on a two-column card it wraps between items. */
:is(#img-list, #vid-list)[data-density="compact"] .fg-field > .fl-field { flex-wrap: wrap; row-gap: 4px; }
:is(#img-list, #vid-list)[data-density="compact"] :is(.kw-cnt-lbl, .kw-char-cnt) { white-space: nowrap; }

/* ── Compact, two or more columns: three rows of keywords ─────────────────────────────── */
/* 3 x 22px chips + 2 x 4px gaps + 2px padding top and bottom + the 1px border. The clamp
   lifts while a keyword is being typed (focus-within), for a card opened with "Show all N"
   (data-rd-kwopen on its wrapper, results_density.js), and whenever the list is one column
   wide (data-rd-cols="1": zoomed in, a narrow window), where every keyword shows, and under
   Full metadata. Chip order is the card's own, so "⇅ Value" puts the strongest keywords in
   the visible rows. */
:is(#img-list, #vid-list)[data-density="compact"]:not([data-rd-cols="1"]):not([data-full-metadata]) > :not([data-rd-kwopen]) .kw-area:not(:focus-within) {
  max-height: 80px;
  overflow: hidden;
}
:is(#img-list, #vid-list)[data-density] .rd-kw-more { display: none; }
:is(#img-list, #vid-list)[data-density="compact"]:not([data-rd-cols="1"]) .fg-field:not(:has(> .kw-area[style*="none"])) > .rd-kw-more[data-rd-over] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0 -1px;
  padding: 2px 8px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
:is(#img-list, #vid-list)[data-density="compact"] .rd-kw-more:hover { color: var(--gold); border-color: var(--gold); }
:is(#img-list, #vid-list)[data-density="compact"] .rd-kw-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Value-tier chips keep their three shades. The lightest tier is darkened just enough to
   hold 4.5:1 against its own fill in each theme (measured, not eyeballed). */
:is(#img-list, #vid-list)[data-density="compact"] .kchip-ms-low { color: #d6cbb4; }
[data-theme="light"] :is(#img-list, #vid-list)[data-density="compact"] .kchip-ms-low { color: #6b5719; }
[data-theme="light"] :is(#img-list, #vid-list)[data-density="compact"] .kchip-ms-low .krm { color: #7d6520; }

/* ── Both densities: icon buttons ─────────────────────────────────────────────────────── */
/* Regenerate and Share are square icon buttons. The text (↻ Regenerate, 📸 Share) stays in
   the DOM at font-size:0, not display:none, so the accessible name and the title tooltip are
   unchanged and regen.js / sharecard.js / originals_cache.js still find their buttons. The
   other action buttons (⬇ Embed, ↶ Previous version) keep their text. */
:root {
  --rd-icon-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.59 13.51l6.83 3.98M15.41 6.51l-6.82 3.98'/%3E%3C/svg%3E");
  --rd-icon-regen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 4v6h-6'/%3E%3Cpath d='M1 20v-6h6'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E");
}
:is(#img-list, #vid-list)[data-density] .ractions .sharecard-btn,
:is(#img-list, #vid-list)[data-density] .ractions .regen-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0;
  line-height: 0;
}
/* Regenerate first, Share second. regen.js appends its button after Share, so reorder visually. */
:is(#img-list, #vid-list)[data-density] .ractions .regen-btn { order: -1; }
:is(#img-list, #vid-list)[data-density] .ractions .sharecard-btn::before,
:is(#img-list, #vid-list)[data-density] .ractions .regen-btn::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
}
:is(#img-list, #vid-list)[data-density] .ractions .sharecard-btn::before {
  -webkit-mask: var(--rd-icon-share) center / contain no-repeat;
  mask: var(--rd-icon-share) center / contain no-repeat;
}
:is(#img-list, #vid-list)[data-density] .ractions .regen-btn::before {
  -webkit-mask: var(--rd-icon-regen) center / contain no-repeat;
  mask: var(--rd-icon-regen) center / contain no-repeat;
}

/* ── Compact: narrow cards ──────────────────────────────────────────────────────────── */
/* A two-column card's label row is narrow: the character count is the one item that goes, so
   "Keywords (N / max)", the Chips/Text switch and Copy stay on one line. */
@container rc (width < 560px) {
  :is(#img-list, #vid-list)[data-density="compact"] .kw-char-cnt { display: none; }
}

/* ── Comfortable: a shorter rail ──────────────────────────────────────────────────────── */
/* The Done pill, the keyword count and the Value pill are hidden here: the rail drops to
   thumbnail, filename, swatches and the two icon buttons, so the card is no taller than its
   text. They still exist in the DOM (Money Score and the counters keep writing to them).
   The Distinct / Overlap pill from Batch Intelligence is NOT one of those, so it stays, and
   the divider only shows when it does. Compact keeps its pills. */
:is(#img-list, #vid-list)[data-density="comfortable"] .rbadges .badge,
:is(#img-list, #vid-list)[data-density="comfortable"] .rbadges .ms-badge { display: none; }
:is(#img-list, #vid-list)[data-density="comfortable"] .rbadges:not(:has(.bx-badge)) { display: none; }
:is(#img-list, #vid-list)[data-density="comfortable"] .rbadges { margin-top: 0; }
:is(#img-list, #vid-list)[data-density="comfortable"] .ractions { margin-top: 2px; justify-content: center; gap: 8px; }
@media (max-width: 640px) {
  :is(#img-list, #vid-list)[data-density="comfortable"] .ractions { justify-content: flex-start; }
}

/* ── Compact: phone-width cards, thumbnail above content ──────────────────────────────── */
@container rc (max-width: 440px) {
  :is(#img-list, #vid-list)[data-density="compact"] .rcard { flex-direction: column; }
  :is(#img-list, #vid-list)[data-density="compact"] .rcard > .rcard-head {
    width: 100%; flex-direction: row; flex-wrap: wrap; align-items: flex-start;
    border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 12px;
  }
  :is(#img-list, #vid-list)[data-density="compact"] .rfi { flex: 1; min-width: 150px; align-items: flex-start; text-align: left; }
  :is(#img-list, #vid-list)[data-density="compact"] .rfile { text-align: left; }
  :is(#img-list, #vid-list)[data-density="compact"] .color-palette,
  :is(#img-list, #vid-list)[data-density="compact"] .rbadges,
  :is(#img-list, #vid-list)[data-density="compact"] .ractions { justify-content: flex-start; }
  :is(#img-list, #vid-list)[data-density="compact"] .rthumb { max-width: 96px; max-height: 128px; }
}

/* ── Processing skeleton (both densities; markup from queuedCardHtml) ─────────────────── */
:is(#img-list, #vid-list)[data-density] .rc-skel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
:is(#img-list, #vid-list)[data-density] .rc-sk-line,
:is(#img-list, #vid-list)[data-density] .rc-sk-chip {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: var(--s3);
  animation: rcSkPulse 1.4s ease-in-out infinite;
}
:is(#img-list, #vid-list)[data-density] .rc-sk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
:is(#img-list, #vid-list)[data-density] .rc-sk-chip { height: 22px; border-radius: 12px; }
@keyframes rcSkPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  :is(#img-list, #vid-list)[data-density] .rc-sk-line,
  :is(#img-list, #vid-list)[data-density] .rc-sk-chip { animation: none; }
}

/* ── Grid: the tile list ──────────────────────────────────────────────────────────────── */
:is(#img-list, #vid-list)[data-density="grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 12px;
  align-items: stretch;
}
/* The wrapper is the size container, so the overlays below can find the thumbnail's bottom
   edge with cqw (the thumbnail is the card's full width at 4:3). */
:is(#img-list, #vid-list)[data-density="grid"] > * {
  container-type: inline-size;
  min-width: 0;
  display: grid;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not(:has(.rcard)),
:is(#img-list, #vid-list)[data-density="grid"] > [data-rd-open] { grid-column: 1 / -1; }
:is(#img-list, #vid-list)[data-density="grid"] .rcard { margin-bottom: 0; min-width: 0; }
/* The open tile is the plain card spanning the row, ringed so it reads as "this one". */
:is(#img-list, #vid-list)[data-density="grid"] > [data-rd-open] .rcard { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
#p-images:has(#img-list[data-density="grid"]),
#p-video:has(#vid-list[data-density="grid"]) { padding-inline: 24px; }
@media (min-width: 1920px) {
  #p-images:has(#img-list[data-density="grid"]),
  #p-video:has(#vid-list[data-density="grid"]) { padding-inline: 32px; }
}

/* ── Grid: a closed tile ──────────────────────────────────────────────────────────────── */
/* Every rule below is scoped to "> :not([data-rd-open])", so an opened tile is the plain card.
   Overlays are positioned against .rcard: .rcard-head, .rfi and .rbody stay unpositioned. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rcard { flex-direction: column; position: relative; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rcard-head {
  width: 100%; padding: 0; gap: 0; border-right: 0; background: transparent;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) :is(.rthumb, .rthumb-ph, .rthumb-wrap) {
  width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; border: 0; border-radius: 0;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rthumb { object-fit: cover; background: var(--s3); }
/* The faded emoji is for an EMPTY placeholder only: a video card puts its real thumbnail
   inside .rthumb-ph, and fading that laid a grey veil over every video tile. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rthumb-ph { font-size: 1.6rem; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rthumb-ph:not(:has(img)) { opacity: .7; }
/* Portrait shots are shown whole (results_density.js marks them): cropped to 4:3 they were
   upscaled from ~341px wide and looked soft. !important beats the video card's inline cover. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) img[data-rd-tall] { object-fit: contain !important; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) [data-rd-thumb] { cursor: pointer; transition: filter .15s; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) [data-rd-thumb]:hover { filter: brightness(1.08); }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) [data-rd-thumb]:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
/* Error and still-processing tiles have no picture to show: a short band, then the message. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) :is(.rcard-err, .rcard-late) .rthumb-ph { aspect-ratio: 4 / 1; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) :is(.rcard-err, .rcard-late) .rfi { padding-bottom: 12px; }

/* Filename: a one-line caption under the picture. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rfi { padding: 8px 12px 0; gap: 4px; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rfile {
  font-family: var(--mono, ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace);
  font-size: 10px; line-height: 1.35; color: var(--muted); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Swatches: bottom-left of the picture, only when real colours exist (restored results
   carry placeholders). */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .color-info {
  position: absolute; z-index: 1; left: 8px; top: calc((100cqw - 2px) * .75 - 26px);
  margin: 0; padding: 4px 6px; border-radius: 10px; background: rgba(0, 0, 0, .45);
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .color-info:not(:has(.color-swatch:not(.color-swatch-ph))) { display: none; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .cp-label { display: none; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .color-palette { flex-wrap: nowrap; gap: 4px; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .color-swatch { width: 12px; height: 12px; border-radius: 50%; border-width: 1px; }

/* Status: the strip covers the card (pointer-events off) so its pills sit top-left of the
   picture and the Value score can be placed under it. Only states worth stopping for show:
   "Optimizing…" and Overlap. "Done" on every tile is noise; the count is beside the chips. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges {
  position: absolute; z-index: 1; inset: 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 4px;
  width: auto; margin: 0; padding: 8px; border: 0; pointer-events: none;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges > * { pointer-events: auto; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges :is(.badge-ok, .kw-badge, .bx-badge:not(.bx-badge-low)) { display: none; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges :is(.badge, .bx-badge) {
  color: #fff; background: rgba(0, 0, 0, .6); border-color: transparent;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges .bx-badge-low { border-left-color: var(--err); }

/* Value: a large number at the top-right of the text, under the picture. moneyscore.js
   writes data-score; without it (an older cached script) the pill keeps its own text. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges .ms-badge {
  position: absolute; top: calc((100cqw - 2px) * .75 + 8px); right: 12px;
  height: auto; padding: 0; border: 0; background: none; opacity: 1;
  flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: 10px; letter-spacing: 0; line-height: 1;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges .ms-badge[data-score] { font-size: 0; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges .ms-badge[data-score]::before {
  content: attr(data-score); font-size: 22px; font-weight: 700; letter-spacing: -.02em;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges .ms-badge[data-score]::after {
  content: "value"; font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: .02em; color: var(--muted);
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges .ms-badge-high { color: var(--gold); }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges .ms-badge-mid { color: var(--text); }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbadges .ms-badge-low { color: var(--dim); }

/* Reject Radar: its pills ride top-right of the picture (room to wrap downwards); the agency
   dots stay in the opened card. Video's compliance strip and meta badges are the opened
   card's too. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .agency-check {
  position: absolute; z-index: 1; right: 8px; top: 8px; max-width: calc(100% - 96px);
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .agency-check .agency-row { margin: 0; gap: 4px; justify-content: flex-end; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .agency-check .agency-row > :not(.bx-radar-pill) { display: none; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .bx-radar-pill { background: rgba(0, 0, 0, .6); }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) :is(.video-compliance, .vmeta-badges) { display: none; }

/* Text: title (two lines, still editable), then one row of keywords and the count. The room
   at the bottom is for the absolutely placed buttons. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbody {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding: 8px 12px 50px;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbody > .fg-field { margin: 0; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .fg-field:has(> .fv[data-field="description"]) { display: none; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .fg-field:has(> .fv) > .fl-field { display: none; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .fv[data-field="title"] {
  font-size: 14px; font-weight: 600; line-height: 1.35; min-height: 0;
  margin-inline: -6px; padding: 2px 5px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .fv[data-field="title"]:focus { display: block; overflow: visible; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rcard:has(.ms-badge) .fv[data-field="title"] { margin-right: 44px; }

:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .fg-field:has(> .kw-area) {
  display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: auto;
}
/* The chips are a preview: one row, faded out at the edge, not clickable (a clipped chip
   must not be editable by accident). Opening the tile is how to edit them. Inline display
   styles from a Text-view toggle are overridden so the preview always shows chips. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .kw-area {
  order: 1; flex: 1 1 auto; min-width: 0; min-height: 0; margin: 0; padding: 0; gap: 4px;
  display: flex !important; flex-wrap: nowrap; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
  mask-image: linear-gradient(to right, #000 82%, transparent);
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .kw-textarea { display: none !important; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .kw-area .kchip { flex: 0 0 auto; font-size: 11px; padding: 2px 8px; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .kw-area :is(.krm, .kinput) { display: none; }
/* The label row keeps only the count ("(49 / 49)") and Copy. "Keywords" is a bare text
   node, hence font-size:0 on the row. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .fg-field:has(> .kw-area) > .fl-field {
  order: 2; flex: 0 0 auto; margin: 0; font-size: 0; letter-spacing: 0;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .fg-field:has(> .kw-area) > .fl-field > :not(.kw-cnt-lbl, .kw-copy-btn) { display: none !important; }   /* the Chips/Text toggle carries an inline display */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .kw-cnt-lbl { font-size: 11px; font-weight: 500; white-space: nowrap; }

/* Buttons along the bottom: Copy wide on the left, Regenerate + Share on the right. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .kw-copy-btn {
  position: absolute; left: 12px; right: 95px; bottom: 10px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
  padding: 0 10px !important; font-size: 12px !important; letter-spacing: 0; text-transform: none;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rcard:not(:has(.regen-btn)) .kw-copy-btn { right: 54px; }
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .ractions {
  position: absolute; z-index: 1; right: 12px; bottom: 10px;
  width: auto; margin: 0; gap: 5px; flex-wrap: nowrap;
}
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .ractions > :not(.regen-btn, .sharecard-btn) { display: none; }

/* Queued skeleton tile: shorter, one row of chip bars. */
:is(#img-list, #vid-list)[data-density="grid"] > :not([data-rd-open]) .rbody.rc-skel { padding: 10px 12px 14px; gap: 8px; }
:is(#img-list, #vid-list)[data-density="grid"] .rc-sk-chips { flex-wrap: nowrap; overflow: hidden; }

/* ── Full metadata: nothing truncated, in any density ─────────────────────────────────── */
/* results_density.js sets data-full-metadata on the list when the toggle is on and removes it
   when off, so every rule here is keyed on it and OFF is the density exactly as above. Compact's
   two clamps opt out through :not([data-full-metadata]) on their own selectors; Grid's closed
   tile is overridden here (same selector plus the attribute, so it always wins). With every
   chip on show the tile is also editable in place (see the keyword rules below); without Full
   metadata the one-row preview is still read-only. Columns, sizes and fonts are the density's own. */
/* Row heights are NOT touched: the lists keep align-items: stretch, so every card in a row is as
   tall as the tallest one and the buttons line up along one bottom edge. Letting each card
   keep its natural height ("start") was tried and read as random (owner, 2026-10-15). */

/* Compact card: the rail beside the title and description, the keywords across the whole card
   under both. Stretched to its row, the rail used to spread its contents down the full height
   (score and buttons on auto margins), leaving big holes once the keywords grew. Now the rail
   is packed at the top and the keyword block spans the card. .rbody becomes display:contents so
   its children are the card's grid items; no node moves (C8). The header children (agency row,
   title, description, a docked Regenerate box) auto-place down column 2; the rail spans rows
   1-9 with the spare rows empty, and the keyword field is row 10. align-content:start sends
   a short card's extra height (from the row stretch) below its keywords, never between rows. */
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: repeat(9, auto) auto;
  align-content: start;
}
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok > .rcard-head { grid-column: 1; grid-row: 1 / 10; gap: 10px; }
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok > .rbody { display: contents; }
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok > .rbody > * { grid-column: 2; margin-inline: 14px; min-width: 0; }
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok > .rbody > :first-child { margin-top: 10px; }
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok > .rbody > .fg-field:has(> .kw-area) {
  grid-column: 1 / -1; grid-row: 10;
  margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--border);
}
/* The rail, top-down with even ~10px steps: picture, name, swatches, then score and the
   Distinct / Overlap pill on one row (the score bar under them), then the buttons. */
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok .rfi { flex: 0 0 auto; gap: 10px; }
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok .rbadges {
  margin-block: 0; padding: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px;
}
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok .rbadges:has(.ms-badge[data-score])::after { order: 2; }
:is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok .rfi > .ractions { margin-top: 0; }
/* Phone-width cards keep the stacked layout (thumbnail above everything). */
@container rc (max-width: 440px) {
  :is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok { display: flex; }
  :is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok > .rbody { display: block; }
  :is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok > .rbody > * { margin-inline: 0; }
  :is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok > .rbody > :first-child { margin-top: 0; }
  :is(#img-list, #vid-list)[data-density="compact"][data-full-metadata] .rcard-ok > .rbody > .fg-field:has(> .kw-area) { padding: 0; border-top: 0; }
}
/* Text view: the keyword textarea grows to its whole list (results_density.js sizes it where
   field-sizing is not supported). */
:is(#img-list, #vid-list)[data-density][data-full-metadata] .kw-textarea { field-sizing: content; }
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .fv[data-field="title"] {
  display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible;
}
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .fg-field:has(> .fv[data-field="description"]) { display: block; }
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .fv[data-field="description"] {
  min-height: 0; margin-inline: -6px; padding: 2px 5px;
}
/* Keywords: the count, then every chip wrapped underneath, straight after the description.
   A short tile's spare height (it stretches to its row) gathers above the bottom buttons
   instead of opening a gap between the description and the chips. */
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .fg-field:has(> .kw-area) {
  flex-direction: column; align-items: stretch; margin-top: 0;
}
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .fg-field:has(> .kw-area) > .fl-field { order: 0; }
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .kw-area {
  flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none;
  pointer-events: auto; row-gap: 6px;
}
/* With every chip on show the tile is editable in place, no need to open it first. Click copies,
   double-click renames, drag reorders, Delete removes: all of that is the .kw-area handlers in
   cards.js, which only needed the preview's switches turned off. The × is a small badge on the
   chip's top-right corner, shown on hover or focus: it takes no room, so nothing reflows as the
   pointer moves over the chips. Touch has no hover, so there it stays visible. */
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .kw-area .kchip > .krm {
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: -7px; right: -6px; width: 16px; height: 16px; padding: 0;
  border-radius: 50%; border: 1px solid var(--border2); background: var(--s2); color: var(--dim);
  font-size: 12px; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .12s, transform .12s, color .12s, border-color .12s;
}
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .kw-area .kchip:is(:hover, :focus-visible, :focus-within) > .krm {
  opacity: 1; transform: none; pointer-events: auto;
}
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .kw-area .kchip > .krm:hover { color: var(--err); border-color: var(--err); }
@media (hover: none) {
  :is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .kw-area .kchip > .krm { opacity: 1; transform: none; pointer-events: auto; }
}
/* A chip being renamed holds an input of its own. */
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .kw-area .kchip .kinput { display: inline-block; }
/* The add box: a quiet dashed pill after the last chip, brighter once the tile is hovered. */
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .kw-area > .kinput {
  display: block; flex: 1 1 96px; min-width: 96px; height: 22px; box-sizing: border-box;
  padding: 0 9px; font-size: 11px; border: 1px dashed var(--border2); border-radius: 12px;
  opacity: .55; transition: opacity .15s, border-color .15s;
}
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]):hover .kw-area > .kinput,
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .kw-area > .kinput:focus { opacity: 1; }
:is(#img-list, #vid-list)[data-density="grid"][data-full-metadata] > :not([data-rd-open]) .kw-area > .kinput:focus { border-style: solid; border-color: var(--gold); }

/* The toggle, left of the density control: a plain checkbox and its label, no box around
   them. Hidden (results_density.js) whenever a list is Comfortable, which always shows it all. */
.rd-full {
  display: inline-flex; align-items: center; gap: 6px; margin-right: 6px;
  font-size: 12px; line-height: 1; color: var(--dim); cursor: pointer; user-select: none;
  transition: color .15s;
}
.rd-full[hidden] { display: none; }
.rd-full:hover, .rd-full:has(.rd-full-cb:checked) { color: var(--text); }
.rd-full-cb {
  appearance: none; position: relative; flex: 0 0 auto; width: 14px; height: 14px; margin: 0;
  border: 1px solid var(--border2); border-radius: 3px; background: var(--s1); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.rd-full:hover .rd-full-cb { border-color: var(--gold); }
.rd-full-cb:checked { background: var(--gold); border-color: var(--gold); }
.rd-full-cb:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid var(--s1); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.rd-full-cb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .rd-full, .rd-full-cb { transition: none; }
}

/* ── The density control (lives in the Edit-all bar) ──────────────────────────────────── */
.rd-ctl { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-lbl { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rd-seg { display: inline-flex; border: 1px solid var(--border2); border-radius: 6px; overflow: hidden; background: var(--s1); }
.rd-seg button {
  appearance: none; border: 0; background: transparent; color: var(--dim);
  font: inherit; font-size: 12px; line-height: 1; padding: 6px 11px; cursor: pointer;
  transition: background .15s, color .15s;
}
.rd-seg button + button { border-left: 1px solid var(--border2); }
.rd-seg button:hover { color: var(--text); }
.rd-seg button[aria-pressed="true"] { background: var(--gold-bg); color: var(--gold); font-weight: 600; }
.rd-seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.rd-hint { font-size: 11px; color: var(--muted); white-space: nowrap; }
/* One-time pointer at Grid once a list is big (results_density.js, pk_rd_grid_seen). */
.rd-seg button.rd-new { position: relative; }
.rd-seg button.rd-new::after {
  content: ""; position: absolute; top: 4px; right: 4px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* ── Switching: cards glide to their new place ────────────────────────────────────────── */
/* A density click runs inside document.startViewTransition (results_density.js), which names
   the on-screen card wrappers rd-c0..N with view-transition-class rd-card for the length of
   the transition only. Each snapshot keeps its natural size, pinned top-left and clipped, so a
   card reads as reflowing rather than being squashed. Browsers without view transitions (or
   without the class selector) switch instantly / use the default crossfade. */
::view-transition-group(.rd-card) {
  animation-duration: .32s;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
  overflow: clip;
  border-radius: var(--rl, 12px);
}
::view-transition-old(.rd-card),
::view-transition-new(.rd-card) {
  height: 100%;
  object-fit: none;
  object-position: left top;
}
/* A zoom or window resize that changes the column count: a short settle instead of a jump. */
:is(#img-list, #vid-list)[data-density].rd-settle > * { animation: rdSettle .22s ease-out; }
@keyframes rdSettle { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  :is(#img-list, #vid-list)[data-density].rd-settle > * { animation: none; }
}
