/* EDIT VERSION STRIPS (Simon, 12 Nov 2026 16:25: "With the edit tool, whether it's a crop edit or a main edit, let's make it so
   the strip of generations appears under the image slot, and it should only have images under the image slot, and then the
   video should be lower down with a film strip of videos.")

   - A crop's picture (.pictk): its strip (.tk) is a row UNDER the picture, stills only (the Original first, then each still);
     the clips are in the crop's Video section, a film strip of their own (.cv-vfilm .tk, js/cropvid.js), under Generate Video.
     RECORDED REVERSAL (THE TAKES BESIDE THE PICTURE, NOT UNDER IT, 23 Oct 2026): a column at the picture's right, stills then
     clips, scrolling down past it.
   - A keyframe's Image Edit (#cv-kfp): its Versions (the Original first) are a row under its picture. RECORDED REVERSAL
     (VERSIONS ON THE RIGHT, 23 Oct 2026): a column a third of the row wide at the picture's right, two to a row.
   - An edit's video Versions (.sec-vers, above its Generate video): one row, a film strip, scrolling sideways. RECORDED
     REVERSAL: tiles wrapping onto as many rows as there were versions.
   The ACTIVE mark (50e-active-version-mark.css) is unchanged: one per strip, on the version in use.
   :root is in front of each rule so it outranks the room's own rules, injected after this sheet. */

/* EDIT VERSION STRIPS -- a crop: the picture, then its stills under it */
:root .cv-row .pictk { flex-direction: column; align-items: stretch; gap: 6px; }
:root .cv-row .pictk > .pic { width: 100%; flex: none; }
:root .cv-row .pictk > .tkw { width: auto; min-height: 0; position: relative; flex: none; }
:root .cv-row .pictk > .tkw::after { display: none; }
:root .cv-row .pictk > .tkw:has(> .cv-gnav) > .tk { top: auto; }
:root .cv-row .pictk .tk {
  position: static; inset: auto; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch;
  overflow-x: auto; overflow-y: hidden; gap: 5px; padding: 2px 1px 4px; scrollbar-width: thin;
}
:root .cv-row .pictk .tk .t { flex: none; width: 88px; height: auto; aspect-ratio: 16 / 9; }

/* EDIT VERSION STRIPS -- the film strip: a crop's clips, an edit's video versions */
:root .cv-row .cv-vfilm { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 2px; min-width: 0; }
:root .cv-row .cv-vfilm:has(.tk:empty) { display: none; }
:root .cv-row .cv-vfilm .cv-vfl { margin: 0; }
:root .cv-row .cv-vfilm > .tkw { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
:root .cv-row .cv-vfilm .tk,
:root .sec-vers .sv-s {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 5px;
  overflow-x: auto; overflow-y: hidden; min-width: 0;
  padding: 10px 6px; border-radius: 4px; background-color: #08080a;
  /* (NO SPROCKETS) Simon, 15 Nov 2026 11:44: "Remove this dotted line above and below video versions when we generate
     in the crop edit tool." RECORDED REVERSAL: the film's sprocket holes, two dotted rows top and bottom. */
  background-image: none;   /* (NO SPROCKETS) */
  scrollbar-width: thin;
}
:root .cv-row .cv-vfilm .tk .t,
:root .cv-row .cv-vfilm .tk .t.clip { flex: none; width: 96px; height: 54px; }
:root .sec-vers .sv-s .t { flex: none; }

/* EDIT VERSION STRIPS -- a keyframe: its picture, then its Versions under it */
:root #cv-kfp.kfp-mounted:not(.kfp-nopic) .kfp { grid-template-columns: minmax(0, 1fr) !important; }
:root #cv-kfp.kfp-mounted:not(.kfp-nopic) .kfp-pic { grid-column: 1 / -1; }
:root #cv-kfp.kfp-mounted:not(.kfp-nopic) .kfp-vers {
  grid-column: 1 / -1; align-self: auto; height: auto; min-height: 0; overflow: visible; margin: 0;
  -webkit-mask-image: none; mask-image: none;
}
:root #cv-kfp .kfp-vers .kfp-vs,
:root #cv-kfp.kfp-mounted:not(.kfp-nopic) .kfp-vers .kfp-vs {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: 5px; grid-template-columns: none;
  overflow-x: auto; overflow-y: hidden; padding: 2px 1px 4px; scrollbar-width: thin;
}
:root #cv-kfp .kfp-vers .kfp-vs .kv,
:root #cv-kfp.kfp-mounted:not(.kfp-nopic) .kfp-vers .kv { flex: none; width: 88px; height: auto; aspect-ratio: 16 / 9; min-width: 0; }
