/* ═══════════════════════════════════════════════════════════════
   After Effects 1.5.0 and DaVinci 1.3.0 (2026-11-18): «قوالب», «بكسل»
   and, on After Effects, the sound library — the tools Premiere already
   had. The block wears css/new31.css (the four of 11-15); this file
   adds only what is its own: the three tools' colours, a still of the
   real panel standing where a reel stands, the pixel loop's wider box,
   two cards in a row on After Effects, and DaVinci's «بكسل» lying
   across like «قوالب» above it, its picture on the other side.
   ═══════════════════════════════════════════════════════════════ */
.n18-tpl { --c: #FFD27A; --c2: #FF7AB0; --c-rgb: 255, 210, 122; }
.n18-px  { --c: #6FF0E0; --c2: #E070C0; --c-rgb: 111, 240, 224; }
.n18-lib { --c: #C3B2FF; --c2: #6FD3FF; --c-rgb: 195, 178, 255; }

/* a still of the panel, from its top */
.n18-panel { background: #101114; }
.n18-still { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* the pixel loop is 9:8; DaVinci's tool area 648:909 */
.n31-reel.n18-wide { aspect-ratio: 9 / 8; }
.n31-reel.n18-dvpanel { aspect-ratio: 648 / 909; }

/* After Effects: two under «قوالب» */
.n31-trio.n18-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.n18-duo .n18-px .n31-reel { width: min(88%, 340px); }

/* DaVinci: «بكسل» across, its loop first */
.n18-px-across { margin-top: 18px; grid-template-columns: 286px minmax(0, 1fr); }
.n18-px-across .n31-media { order: 0; }

@media (max-width: 1100px) {
  .n31-trio.n18-duo { grid-template-columns: minmax(0, 1fr); }
  .n18-duo .n18-px .n31-reel { width: 100%; }
  .n18-px-across { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .n18-duo .n18-px .n31-reel { width: min(100%, 340px); }
  .n18-px-across { grid-template-columns: minmax(0, 1fr); }
}
