/* «Ninjutsu» (PLAN.md 2.4): the studio's editor in a frame that fills the page */
.njpage{padding:0;display:flex;flex-direction:column;overflow:hidden}
.njclosed{margin:10px 14px 0}
.njwrap{flex:1;min-height:0;position:relative;display:flex}
.njframe{flex:1;width:100%;min-height:0;border:0;background:transparent;color-scheme:dark}
/* a phone (18.11.2026): the page is one screen high and does not scroll, so the bar on top left the frame a strip — the first cell
   was cut and nothing scrolled. Here the page scrolls and the section takes a whole screen; the frame and the Gallery scroll inside it */
@media (max-width:900px){
  body.njbody{height:auto;min-height:100vh;overflow:auto;grid-template-rows:auto auto}
  body.njbody>.njpage{height:calc(100vh - 16px);height:calc(100dvh - 16px);min-height:520px}
}
/* «Галерея» of the section (Dima, 17.11.2026): the cells as in «Фото» / «Видео», under the frame's tabs (the frame says where they end) */
.njgal{position:absolute;left:0;right:0;bottom:0;top:60px;overflow:auto;padding:0 12px}
.njgal .grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));padding-bottom:24px}  /* the grid of «Фото» / «Видео» */
.njgal[hidden]{display:none}
.njgal .card .img video{pointer-events:none}  /* the frame: one for every grid (app.css, Dima 18.11.2026) */
.njgal .card{cursor:zoom-in}  /* the whole cell opens the viewer */
.njgal .njnote{margin:0 0 12px;color:var(--muted);font-size:13.5px}
.njgal .njmore{display:block;margin:16px auto 0}
/* the griffin's tip: a small cloud under the griffin with a tail to it, over every layer of the page */
.njtip{position:fixed;z-index:2000;display:flex;flex-direction:column;gap:4px;padding:9px 12px;border-radius:12px;background:#1d1d22;border:1px solid #c6f432;color:#e9e9ee;font-size:13px;line-height:1.4;box-shadow:0 10px 30px rgba(0,0,0,.6);pointer-events:none}
.njtip[hidden]{display:none}
.njtip b{color:#c6f432;font-size:11px;letter-spacing:.03em;text-transform:uppercase}
.njtip small{color:#8d8d97;font-size:11px}
.njtip::before{content:'';position:absolute;top:-7px;left:var(--tail,24px);width:12px;height:12px;margin-left:-6px;background:#1d1d22;border-left:1px solid #c6f432;border-top:1px solid #c6f432;transform:rotate(45deg)}
/* «ДО и ПОСЛЕ» of a video in the viewer: the source video over the clip, cut at the handle; the handle leaves the player's buttons free */
.vw-stage video.ba-before{position:absolute;object-fit:fill;pointer-events:none;background:none}
.vw-stage video.ba-before[hidden]{display:none}
.vw-stage video.ba-before:not([hidden])~.ba-handle{bottom:64px}
.vw-acts .btn[data-vba].on{background:#c6f432;color:#111}
