/* Návrh 55 (Peter 9. 11.: „Návrh 55 OK“): the shot's head in one row (its four steps .st55, no badge), the left rail's
   one bar instead of a dot + S O V F + V1. Copied from the prototype (docs/navrh-55/prototyp/proto55.css, parts 1 and 4)
   without its host prefix. ARCHITEKTURA.md "Hlava záberu a pás (návrh 55)". */

/* --- 1 · the head: the shot's name and its four steps in one row --- */
.shot13 { gap: 0; }
.st13t.hd55 { min-height: 34px; gap: 8px; flex-wrap: nowrap; align-items: center; container-type: inline-size; }
.hd55 h1 { flex: 0 1 auto; min-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd55 .intent1 { display: none; }
.hd55 .sp { flex: 1 1 4px; min-width: 2px; }
.hd55 .ws-edit-link, .hd55 > details.tip { flex: none; }
/* Návrh 65 krok 3 (R1–R3, Peter 19. 11.; prototype navrh65 work/n65.css „karty etáp“): the four stages are tabs
   joined to the frame of what is below them — the open one has the amber edge and no line under it; no number, no
   arrow (they said „a way you must walk“); the state stays on the tab: a green ✓, the count in a small badge, V… */
.st13t.hd55 { box-shadow: inset 0 -1px 0 var(--line); border-radius: 0; }
.st55 { display: flex; align-items: flex-end; align-self: stretch; gap: 2px; padding: 0; border: 0; background: none; border-radius: 0; flex: 0 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.st55::-webkit-scrollbar { display: none; }
.st55 .s55 { display: inline-flex; align-items: center; gap: 6px; height: 31px; padding: 0 11px; border-radius: 8px 8px 0 0; border: 1px solid transparent; border-bottom: 0; color: var(--muted); font: 500 13px/1 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; background: none; cursor: pointer; position: relative; flex: none; }
.st55 .s55:hover { color: var(--text); background: rgba(255,255,255,.04); text-decoration: none; }
.st55 .s55 b { font-weight: 600; color: inherit; }
.st55 .s55.on { background: #0a0c0d; border-color: var(--line); color: var(--text); box-shadow: inset 0 2px 0 var(--accent); }
.st55 .s55.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #0a0c0d; }
.st55 .s55.on b { font-weight: 700; }
.st55 .k55.m65 { color: #7FD3A2; font: 700 12px/1 Inter, system-ui, sans-serif; flex: none; }
.st55 .n55 { font-size: 11.5px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--text2); font-variant-numeric: tabular-nums; }
.st55 .n55.op65 { background: none; padding: 0; color: var(--faint); font-weight: 400; }
.st55 .s55.sk { color: var(--muted); }
.st55 .s55.ok.fin .n55 { color: #7FD3A2; font-weight: 600; }
.st55 .s55:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hd55 .st55 + .e3d { margin-left: 8px; align-self: center; }
.shot13:has(.st55) { margin-bottom: -10px; }
.cmain:has(.st55) > .viewer { border-top-left-radius: 0; }
/* R3 · the tab Vo filme with no version in the film (ws_film_empty65*.html) */
.cmain > .viewer.ef65v { display: grid; }
.ef65 { margin: auto; max-width: 440px; text-align: center; padding: 40px 20px; color: var(--text2); }
.ef65 h2 { font-size: 17px; margin: 0 0 8px; color: var(--text); } .ef65 p { margin: 0 0 14px; line-height: 1.5; }
.ef65 .btn { text-decoration: none; }
.hd55 .bad55 { font-size: 12px; font-weight: 600; white-space: nowrap; color: #F0A07A; flex: none; }
.hd55 .bad55.un { color: var(--warn, #F0C672); }
.hd55 .seg55 { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; flex: none; }
.hd55 .seg55 a { display: grid; place-items: center; width: 28px; height: 24px; color: var(--muted); }
.hd55 .seg55 a .ic52 { width: 15px; height: 15px; }
.hd55 .seg55 a[aria-current] { background: var(--raised); color: var(--text); }
.hd55 .seg55 a + a { border-left: 1px solid var(--line2); }
/* návrh 59: the name of a view icon is for the bubble and a reader, never a clipped word under the icon (it showed „Jedn“) */
.hd55 .seg55 a { position: relative; } .hd55 .seg55 a .ibn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: none) { .hd55 .seg55 a { width: auto; padding: 0 8px; gap: 5px; display: inline-flex; align-items: center; } .hd55 .seg55 a .ibn { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 12px; font-weight: 600; } }
/* návrh 59 (Peter 12. 11.: „ako môžem začať 3D scénu“): 3D scéna · 3D blocking right after the steps — a link to a
   place of the shot, never a fifth step; as tall as a step. The row gives way in one order (ARCHITEKTURA.md, „Vstup do
   3D“): the grey term first (a narrow head, or the 3D sub-steps beside it), then the shot's name to an ellipsis; the word
   „3D scéna“ and its cube never. */
.hd55 .e3d { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line2); color: var(--text2); font: 600 12.5px/1 Inter, system-ui, sans-serif; white-space: nowrap; flex: none; text-decoration: none; }
.hd55 .e3d .ic47 { width: 15px; height: 15px; flex: none; }
.hd55 .e3d b { font-weight: 600; color: inherit; }
.hd55 .e3d .tm40 { font-weight: 500; }
.hd55 .e3d:hover { color: var(--text); background: var(--hover, #262C30); text-decoration: none; }
/* Peter 17. 11. („Keď je otvorená, nech to tak vyzerá a nech mi to tam nepíše“): while the 3D editor is on the stage the
   button is pressed — a lit border and a sunk face, no hint bubble (web.py entry3d: no data-kedy) */
.hd55 .e3d[aria-current] { background: color-mix(in srgb, var(--accent) 18%, var(--raised)); border-color: var(--accent); color: var(--text); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); }
.hd55 .e3d[aria-current] .ic47 { color: var(--accent); }
.hd55 .e3d:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hd55:has(.e3d) > h1 { min-width: 72px; }
.hd55:has(.n57sub) .e3d .tm40 { display: none; }
@container (max-width: 860px) { .hd55 .e3d .tm40 { display: none; } }
/* návrh 65 krok 3 (Codex O3): a narrow head never hides the name of a tab — the grey term goes first, then the shot's
   name shortens to an ellipsis (down to its number), and only then the strip of tabs scrolls sideways */
.hd55:has(.st55) > h1 { flex: 0 10000 auto; min-width: 62px; }
/* a head that holds more (the view icons of two versions, a word of a failure, the 3D sub-steps): the tabs stand
   closer, so the shot's name keeps more of itself and the strip scrolls later — measured by the walk's head59 */
.hd55:is(:has(.seg55), :has(.bad55), :has(.n57sub)) .st55 .s55 { padding: 0 8px; gap: 4px; }

/* --- 4 · the left rail: narrow at 1280 (the picture first); one progress bar instead of dot + S O V F + V1 --- */
.ws-rail .s { display: block; }
.pg55 { display: flex; gap: 2px; margin-top: 4px; height: 4px; width: 100%; }
.pg55 i { flex: 1; border-radius: 2px; background: var(--line2); }
.pg55 i.ok { background: #7FD3A2; }
.pg55 i.sk { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.w55 { display: block; font-size: 11px; margin-top: 3px; font-weight: 600; white-space: nowrap; }
.w55.bad { color: #F0A07A; } .w55.warn { color: var(--warn, #F0C672); }
.ws.rail-c > .rail .shotbtn .txt { width: 62px; }
.ws.rail-c > .rail .shotbtn .txt .t { display: none; }
.ws.rail-c > .rail .shotbtn .s { display: block; }  /* Codex 9. 11.: over navrh13.css:146 (flex), the word goes under the bar */
.ws.rail-c > .rail .shotbtn .pg55 { margin-top: 1px; }
.ws.rail-c > .rail .shotbtn .w55 { white-space: normal; font-size: 10px; line-height: 1.2; text-align: center; }
.ws:not(.rail-c) .rail .shotbtn .pg55 { max-width: 120px; }
.ws-rail .add55 { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ws-rail .add55 .ic52 { width: 16px; height: 16px; flex: none; }
.ws-rail .add55 .tm40 { color: var(--faint); font-size: 11px; }
.ws.rail-c > .rail .add55 { justify-content: center; padding: 8px 0; }
.ws.rail-c > .rail .add55 .w, .ws.rail-c > .rail .add55 .tm40 { display: none; }

/* --- 3 · tool forms in the frame of návrh 46/47 (form.n46 rules reused; prototyp/proto55.css part 3) --- */
form.n46 .th46 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
form.n46 .ft46 .chg55 { display: block; color: var(--info, #9CC6EE); font-size: 11.5px; margin-top: 1px; }
form.n46 .adv55 { padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
form.n46 .adv55:empty { display: none; }
form.n46 .adv55 .adv24 { margin: 0; padding: 0; border: 0; }
form.n46 .f46 .acc42 { margin: 0 0 6px; }
form.n46 .f46 .go46 > span:first-child { display: inline-flex; align-items: baseline; gap: 0; }
form.n46 .tt46 b { font-weight: 600; }
form.n46 .tt46 .tm40 { margin-left: 6px; }
form.n46 .sl46 .go23 { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11.5px; color: var(--faint); }
form.n46 .sl46 > .tip { margin-left: auto; }
form.n46 .sl46 > .go23 + .tip, form.n46 .sl46 > .ms23 + .tip { margin-left: 0; }
form.n46 .sl46 .ms23 { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12px; }
form.n46 .sec46 > details.fold > summary .lbl { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
form.n46 .f46 .pr:empty { display: none; }
/* Znova, inak (návrh 55 § 3.3): the script's fields and the form's own sections inside the numbered groups */
form.n46 .sec46 > .sec, form.n46 .sec46 .sec.isec { padding-left: 0; padding-right: 0; border: 0; }
form.n46 .sec46 > .sec:first-child { padding-top: 0; }
form.n46 .sl46 .sn55 { flex: none; }
form.n46 .sec46 .zz24 { margin: 0; padding: 0; border: 0; }
form.n46 .sec46 .zzr24 > .lbl { display: none; }  /* the group's title says Začať z */
form.n46 .sec46 .sec10 { padding: 0; border: 0; }
form.n46 .sec46 > section.sec, form.n46 .sec46 > details.sec { padding: 0; border: 0; margin: 0; }
/* návrh 38: the footer is at most a third of the window; button, Model dostane and credit never shrink */
form.fr55 .f46.f55 { display: flex; flex-direction: column; max-height: 34vh; }
form.fr55 .f46.f55 > :not(.fs55) { flex: none; }
/* Codex 9. 11. (P2): a long reason (cards that do not fit) scrolls in its own line; the button never leaves the footer */
form.fr55 .f55 .why46:not([hidden]) { flex: 0 1 auto; min-height: 1.4em; max-height: 4.2em; overflow: auto; }
form.fr55 .f55 .fs55 { flex: 0 1 auto; min-height: 0; overflow: auto; display: grid; gap: 6px; align-content: start; margin: 0 0 6px; }
form.fr55 .f55 .fs55:not(:has(> :not(:empty))) { display: none; }
/* coordinator 10. 11. (aku-test, Predĺžiť): beside the credit the model's menu shrank to 125 px and its name broke inside a
   word — in every tool's footer the model has the whole row and what is left goes under it (the walk measures it,
   __walk.foot55) */
form.fr55 .f55 .md46 { flex-wrap: wrap; row-gap: 2px; }
form.fr55 .f55 .md46 > .mp38, form.fr55 .f55 .md46 > details.modelpick { flex: 1 1 100%; min-width: 0; margin: 0; }
form.fr55 .f55 .md46 > .t46 { margin-left: 0; white-space: normal; }
form.fr55 .f55 details.final-fold { margin: 0 0 6px; }
form.fr55 .f55 details.final-fold.n23merged { margin: 0; }
form.fr55 .f55 details.final-fold.n23merged > summary { display: none; }  /* návrh 52: one name — Model dostane opens it */
/* Zväčšiť (C3): how long the enlargement runs, beside the verb — a running video cannot be cancelled (Peter 18. 10.) */
form.n46 .go46 .tm55 { margin-left: auto; margin-right: 8px; color: rgba(20,23,25,.62); font-size: 11.5px; font-weight: 500; }
form.n46 .go46:disabled .tm55 { color: var(--faint); }

/* C3b: the head of a tool an empty shot starts with (Opísať slovami, Nadviazať) — its icon in place of ‹ Späť */
form.n46 .ti55{width:30px;height:30px;display:grid;place-items:center;color:var(--text2);flex:none}

/* --- 2 · start cards on the stage of an empty shot: návrh 56 below (one question, three ways) --- */
.st55w { display: contents; }

/* C3b, koordinátor 9. 11. (P3): in Nadviazať's foot the model picker shrank to "N." at 1280 × 720 and the reason beside it
   ("len Nano Banana") broke into three lines. The picker takes the row (its name ends in an ellipsis, as everywhere) and
   the reason gets a line of its own under it, one line */
/* oprava A (coordinator 9. 11.: "Nano Ba…" at 1280 × 720, an orphaned "bez polohy kamery" under it): the model takes the
   first line whole, what is left the second; why this model was chosen is its hint (title), never a line of its own */
form.n46 .md46:has(> .n43why) { flex-wrap: wrap; row-gap: 4px; }
form.n46 .md46 > .n43mrow { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; }
form.n46 .md46 > .n43mrow .sel46 { min-width: 0; max-width: 100%; }
form.n46 .md46 > .n43mrow .sel46 > summary { max-width: 100%; overflow: hidden; }
/* oprava A2 (coordinator 10. 11.): a value never ends in "…" in the panel — the longest catalog model ("Nano Banana 2.1 ·
   Google (komerčný, obrázok z kariet)") and "nezadaná · určí veta" wrap onto a second line instead (the walk measures
   both, __walk.cut with the probe name) */
/* coordinator 10. 11.: "anywhere" let a squeezed value break inside a word ("predĺže / nie"); a value wraps between words */
form.n46 .md46 > .n43mrow .sel46 > summary .val { min-width: 0; white-space: normal; overflow-wrap: break-word; }
form.n46 .selbtn .val { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
form.n46 .md46:has(> .n43why) > .t46 { order: 2; margin-left: 0; }
form.n46 .md46 > .n43why { order: 3; }
/* the menus of the model and of Začína z wrap their rows inside the panel (a row 539 px wide in a 328 px menu scrolled) */
form.n46 .md46 .sel46 > .pick-pop, form.n46 .n43pop { white-space: normal; overflow-x: hidden; }
form.n46 .md46 .sel46 > .pick-pop .pick-opt > * , form.n46 .n43pop .opt > * { min-width: 0; overflow-wrap: break-word; }
/* iná snímka V1…: its time row under the name, never pressed into the 18 px column of the mark */
.pop .opt.n43time .n43trow { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Kamera: three ways in a third of the panel each — the name wraps, never cut ("V 3D Scéne…") */
form.n46 .opseg label { white-space: normal; line-height: 1.2; }

/* Peter 9. 11. (aku-test): Model dostane · zatiaľ nič — a click says in one sentence why nothing leaves yet */
.n23none { margin: 4px 0 6px; padding: 6px 10px; border-radius: 8px; background: var(--raised); color: var(--text2, var(--text)); }

/* --- návrh 56 (Peter 9. 11.): one question, three ways; the way chosen is one sentence at the top of the tool's frame,
   with Zmeniť (prototyp scratchpad/p56/proto56.css, without the prototype's bar and its stand-ins for portal.js) --- */
.viewer:has(.go56) .tag { display: none; }
.go56 { display: grid; gap: 14px; width: min(820px, calc(100% - 32px)); margin: auto; animation: in56 .25s ease-out; }
.go56 .q55 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.go56 .q55 h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.go56 .sr55 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; border: 0; }
/* start62-grafika (Peter 17. 11.: "graficky vylepšiť podľa toho, ako máme nastavenú čistú uhladenú grafiku"): the
   question near the top of the stage, the cards right under it — never hanging in the middle of an empty stage */
.go56[data-start55] { align-self: start; margin: clamp(14px, 5vh, 40px) auto 16px; container: go56 / inline-size; }
.ways56 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 12px; row-gap: 0;
  border: 0; padding: 0; margin: 0; min-width: 0; }
.ways56 legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* one anatomy for every way: icon · name with the grey term · one sentence · its pictures or reason · its second choice;
   the rows are shared by the three cards (subgrid), so the names, the sentences and the second choices line up */
.way56 { position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line2); background: var(--raised); cursor: pointer;
  text-align: left; color: var(--text); }  /* no containment here: it would turn the subgrid off */
.way56 > .ic56 { grid-row: 1; } .way56 > .hd56 { grid-row: 2; } .way56 > .sub56 { grid-row: 3; }
.way56 > .bd56 { grid-row: 4; } .way56 > .ft56 { grid-row: 5; }
.way56:hover { border-color: var(--text2, var(--text)); }
/* the one selected look: an accent ring of 2 px (a card, a picture under "teraz") */
.way56:has(input:checked), .way56.nad62.on62 { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.way56 input { position: absolute; opacity: 0; pointer-events: none; }
.way56:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.way56 .ic56 { width: 40px; height: 40px; margin: 0 0 12px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--panel, #1A1E21); color: var(--text2, var(--text)); overflow: hidden; }
.way56 .ic56 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.way56 .hd56 { margin: 0 0 4px; line-height: 1.3; }
.way56 .hd56 b { font-size: 14px; font-weight: 700; }
.way56 .hd56 .tm40 { margin-left: 0; white-space: normal; }
.way56 .sub56 { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.way56 .bd56 { margin-top: 12px; min-width: 0; }
.way56 .ft56 { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 14px; min-width: 0; }
.way56 .bd56:empty, .way56 .ft56:empty { display: none; }
/* the second choice of a card (Postaviť v 3D, Všetky obrazy filmu…): a chip, the same in every card */
.ch56 { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 30px; max-width: 100%;
  padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel, #1A1E21); color: var(--text2, var(--text));
  font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; }
.ch56:hover { border-color: var(--text2, var(--text)); color: var(--text); text-decoration: none; }
.ch56:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ch56 svg { flex: none; }
.ch56 .tm40 { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }  /* navrh40's .tm40 is flex: none */
/* a side card is too narrow for the term beside its chip's name (the card's own name keeps its term) */
@container go56 (min-width: 621px) { .way56:not(.nad62) .ch56 .tm40 { display: none; } }
.way56.off { cursor: default; opacity: .78; }
.way56.off:hover { border-color: var(--line2); }
.way56.off .ic56 { opacity: .55; }
.way56 .wh55 { display: block; font-size: 11.5px; line-height: 1.35; color: var(--warn, #F0C672); }
.way56.busy55 { cursor: progress; }
/* návrh 62 (Peter 17. 11.): Nadviazať na záber… — the film's shots as thumbnails on the card, the usual one first and
   marked by a word under its picture (never over it); one click continues from it. The card is wider, it carries them */
.ways56:has(.nad62) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr); }
.way56.nad62 { cursor: default; }
.way56.nad62:hover { border-color: var(--line2); }
.way56.nad62.on62:hover { border-color: var(--accent); }
.nad62 .row62 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.nad62 .th62 { all: unset; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 5px;
  min-width: 0; cursor: pointer; font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.nad62 .th62 .th56 { flex: 0 0 100%; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel, #1A1E21);
  display: grid; place-items: center; overflow: hidden; }
.nad62 .th62 .th56 img, .nad62 .th62 .th56 video { width: 100%; height: 100%; object-fit: cover; display: block; }
.nad62 .th62:hover .th56 { border-color: var(--text2, var(--text)); }
.nad62 .th62:focus-visible .th56 { outline: 2px solid var(--accent); outline-offset: 2px; }
.nad62 .th62.now62 .th56 { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.nad62 .th62 .nm62 { min-width: 0; overflow-wrap: anywhere; }
.nad62 .th62 .nm62 b { font-weight: 700; color: var(--text); }
.nad62 .mk62 { color: var(--text2, var(--text)); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.nad62 .th62.now62 .mk62 { color: var(--accent); }  /* accent only for what is chosen */
/* a narrow stage (phone, the panel beside a small window): the cards one under another, the stage grows with them */
@container go56 (max-width: 620px) {
  .ways56, .ways56:has(.nad62) { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .way56 { grid-row: auto; grid-template-rows: none; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 14px; }
  .way56 > .ic56 { grid-row: 1 / span 2; margin: 0; } .way56 > .hd56, .way56 > .sub56 { grid-column: 2; }
  .way56 > .hd56 { grid-row: 1; } .way56 > .sub56 { grid-row: 2; }
  .way56 > .bd56, .way56 > .ft56 { grid-column: 1 / -1; grid-row: auto; }
}
/* a stage lower than the question (a low window, the cards one under another beside a wide panel) scrolls, never cuts a
   card off (Codex r1); on a phone the stage grows with the cards instead of keeping 16:9 */
.viewer:has(> .ws-stage .go56[data-start55]) { overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 900px) { .cmain > .viewer:has(> .ws-stage .go56[data-start55]) { aspect-ratio: auto; } }
/* a low stage (Model dostane open beside it: 263 px at 1280 × 720) keeps the shots' pictures in sight without a scroll:
   less air above, smaller icon tiles (the walk clicks a picture there after Zmeniť). On a computer only: on a phone the
   stage takes its height from the cards, a size container there would have none */
@media (min-width: 901px) { .cmain > .viewer:has(> .ws-stage .go56[data-start55]) { container: stage62 / size; } }
@container stage62 (max-height: 440px) {
  .go56[data-start55] { margin-top: 10px; gap: 10px; }
  .way56 { padding: 12px 14px; }
  .way56 .ic56 { width: 28px; height: 28px; margin-bottom: 8px; border-radius: 8px; }
  .way56 .ic56 svg { width: 18px; height: 18px; }
}
.back56 { justify-self: start; }
/* the source picker of Z iného záberu alebo obrazu: the film's shots, each with its pictures; it scrolls on the stage */
.go56.pk56 { align-self: stretch; max-height: 100%; overflow: auto; align-content: start; padding: 4px 2px; scroll-padding-bottom: 64px; }  /* Tab never leaves a tile under .foot56 (Codex 10. 11.) */
.grp56 { display: grid; gap: 6px; }
.grp56 h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.grp56 h3 .muted { font-weight: 500; }
.pick56 { display: flex; flex-wrap: wrap; gap: 10px; }
.pick56 button, .pick56 a { all: unset; display: grid; gap: 4px; width: 150px; cursor: pointer; font-size: 12.5px; color: var(--text2, var(--text)); }
.pick56 button .th56, .pick56 a .th56 { aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid var(--line2); background: var(--raised); display: grid; place-items: center; overflow: hidden; }
.pick56 .th56 img, .pick56 .th56 video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick56 button:hover .th56, .pick56 button:focus-visible .th56, .pick56 a:hover .th56, .pick56 a:focus-visible .th56 { border-color: var(--accent); }
.none56 { margin: 0; }
/* oprava A2 (coordinator 10. 11.): in a low stage (263 px of 348) the pictures scroll, Späť and Nahrať stay in sight at
   the bottom of the picker — never half hidden below its edge (the walk measures both) */
.go56.pk56 > .foot56 { position: sticky; bottom: -4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 0 4px; background: var(--panel, var(--bg)); border-top: 1px solid var(--line); }
.foot56 .up56 { display: inline-flex; align-items: center; gap: 6px; }
.foot56 .up56 .ic56 { display: inline-grid; width: 16px; height: 16px; place-items: center; }
.foot56 .up56 .ic56 svg { width: 16px; height: 16px; }
/* the way, said once, at the top of the tool's frame */
.path56 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 7px 10px; border-radius: 9px; background: var(--raised); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--text2, var(--text)); animation: flash56 1.2s ease-out; }
.path56 .pt56 { flex: 1; min-width: 0; }
.path56 .pt56 b { color: var(--text); }
.path56 .btn { flex: none; }
@keyframes flash56 { 0% { background: color-mix(in srgb, var(--accent) 45%, var(--raised)); border-color: var(--accent); } 100% { } }
@keyframes in56 { from { translate: 0 8px; } to { translate: 0 0; } }  /* `translate`, never `transform`: the crop is centred by transform */
.ws-stage > .crop36 { animation: in56 .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .go56, .path56, .ws-stage > .crop36 { animation: none; } }
/* návrh 52 krok 2 (Codex 9. 11.): beside the reason, the way into the form's own text (its row is hidden: one row) */
.n23nonew { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
.n23nonew .n23none { flex: 1; margin: 0; }
/* návrh 62b (Peter 17. 11.): the big picture of the stage is always the shot's own result — a result not there yet is
   an empty dashed 16:9 frame, quiet, with Vznikne z: (the inputs of Model dostane as small thumbnails, each opening
   larger as an input); Výrez's source is a tool: its crop handles, outside darkened, its own label */
.ws-stage > .vz62 { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; }
.vz62 .fr62 { width: 100%; height: 100%; max-width: 100%;
  border: 1.5px dashed var(--line2); border-radius: 8px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 16px; box-sizing: border-box; color: var(--muted); text-align: center; }
.vz62 .t62 { font-size: 15px; font-weight: 600; color: var(--text2); }
.vz62 .vr62 { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; font-size: 12.5px; }
.vz62 .vl62 { color: var(--faint); }
.vz62 .vi62 { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vz62 .vo62 { color: var(--text2); font-weight: 600; white-space: nowrap; }
.vz62 .big62 { position: relative; display: inline-block; }
.vz62 .big62 > summary { list-style: none; cursor: zoom-in; border-radius: 6px; }
.vz62 .big62 > summary::-webkit-details-marker { display: none; }
.vz62 .big62 > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vz62 .big62 .in23x img { width: 56px; }
.vz62 .pop62 { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 5; width: 340px;
  max-width: 70vw; padding: 6px; background: var(--panel, #111); border: 1px solid var(--line2); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 6px; }
.vz62 .pop62 img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 4px; display: block; }
.vz62 .pop62 span { font-size: 12px; color: var(--muted); line-height: 1.35; text-align: left; }
.upl61 .vz62 { position: relative; flex: 1 1 auto; min-height: 0; }
.crop36.tool62 .lb62 { position: absolute; left: 8px; bottom: 8px; line-height: 18px; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; background: rgba(6,8,10,.82); color: var(--text); pointer-events: none; }
.insp.n47.ef65p .ih47 { flex: 1; min-width: 0; }
