/* návrh 57 (Peter 9.–10. 11.): the 3D scene you understand. Colours only from portal.css variables. */
/* R1: the head's one step indicator — the active Prvý obraz carries the 3D sub-steps Postaviť › Záber › Obraz (no numbers) */
.st55 .n57sub { display: inline-flex; align-items: center; gap: 1px; margin-left: 4px; padding-left: 6px; border-left: 1px solid var(--line2); }
.st55 .n57ss { display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px 2px 2px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
/* 1280×720: the head keeps one row with the sub-steps — the optional badge goes, the shot's name gives way first */
.st55:has(.n57sub) .opt { display: none; }
.hd55:has(.n57sub) > h1 { min-width: 118px; }
.hd55:has(.n57sub):has(.e3d) > h1 { min-width: 72px; }  /* návrh 59: the name gives way to 3D scéna (navrh55.css) */
/* návrh 59: with the sub-steps and 3D scéna the other steps keep their number only (as in a narrow head, navrh55.css
   @container 780 px) — measured by the walk's head59 at 1280×720 */
.st55 .n57ss .d { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 9.5px; font-weight: 700; }
.st55 .n57ss.cur { background: var(--accent-soft, rgba(240,180,80,.14)); color: var(--text); font-weight: 600; }
.st55 .n57ss.cur .d { border-color: var(--accent); color: var(--accent); }
.st55 .n57ss.cur:not(.bad) .d:empty::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.st55 .n57ss.done { color: var(--text2); }
.st55 .n57ss.done .d { background: rgba(127,211,162,.14); border-color: transparent; color: #7FD3A2; }
.st55 .n57ss.bad .d { border-color: var(--bad, #E5786D); color: var(--bad, #E5786D); }
/* R16: Viac at the right end of the panel's eyebrow line */
.s30ph .n57ihw { position: relative; }



/* návrh 57 R6: the question and its three tasks; a task goes back to the question with ‹ (or Esc) */
.s30panel .n57back { all: unset; cursor: pointer; font-size: 12px; color: var(--text2); display: inline-flex; gap: 6px; align-items: center; }
.s30panel .n57back:hover { color: var(--text); }
.s30panel .n57back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.s30panel .n57read { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 12.5px; }
.s30panel .n57read dt { color: var(--muted); }
.s30panel .n57read dd { margin: 0; color: var(--text2); min-width: 0; }
.s30panel .n57read dd b { color: var(--text); font-weight: 600; }
.s30panel .n57read .warn0 { color: var(--warn); }
.s30panel .n57ways { display: flex; flex-direction: column; gap: 4px; }
.s30panel .n57ways .gl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.s30panel .n57way { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--well); }
.s30panel .n57way:hover { border-color: var(--control); }
.s30panel .n57way:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.s30panel .n57way b { font-size: 13px; color: var(--text); font-weight: 600; }
.s30panel .n57way small { grid-column: 1; font-size: 11.5px; color: var(--muted); }
.s30panel .n57way .chev { grid-row: 1 / span 2; grid-column: 2; color: var(--muted); }
.s30panel .n57said { font-size: 12px; color: var(--warn); margin: 0; }
.s30panel .n57said button { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline; margin-left: 6px; }
/* Peter 17. 11.: the sentence's field at the top of the 3D panel in every task (scena.js placeSay), staying in sight while
   the inspector below it scrolls */
.s30panel .s35slot { position: sticky; top: 0; z-index: 3; background: var(--panel); padding: 10px 14px 8px; border-bottom: 1px solid var(--line); }
/* preklik 23. 11. (bod 5): a pinned slot taller than the panel's scroller (Model dostane open, a tall foot) kept its
   lower part behind the foot for good — it never scrolls with the panel; bounded, it scrolls in itself */
.s30panel .s35slot { box-sizing: border-box; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.s30panel .s35slot:empty { display: none; }
.s30panel .s35slot .s35say { position: static; margin: 0; }
.s30panel .s35slot .s35say .field { flex-basis: 100%; }

/* návrh 57 R10: the shot's camera in the reserved column of Zhora and Voľne (drawn by WebGL under it; this is its frame) */
.s30v .n57prev { all: unset; box-sizing: border-box; position: absolute; z-index: 4; cursor: pointer; border: 1px solid var(--line2);
  border-radius: 6px; display: flex; align-items: flex-end; padding: 4px 6px; }
.s30v .n57prev:hover { border-color: var(--accent); }
.s30v .n57prev:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s30v .n57prev span { font-size: 11px; color: var(--text2); background: rgba(16,19,21,.78); border-radius: 4px; padding: 1px 6px; }
/* návrh 57 R13: back at a scene that made a picture — which one and when; what changed since, under the button */
.s30panel .n57ret { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.s30panel .n57ret b { color: var(--text); font-weight: 600; }
.s30panel .n57chg { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
/* návrh 57 R14/R22: how a build ended, as a card over the choice of the source */
.n57fail { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bad-bg); margin: 0 0 12px; }
.n57fail.bad { border-color: var(--bad-line); }
.n57fail.unsure { border-color: var(--warn-line); background: var(--warn-bg); }
.n57fail .s30mispic img { width: 96px; height: auto; border-radius: 6px; display: block; }
.n57fw { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.n57fw p { margin: 0; }
.n57fa { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.n57skus { margin: 0; }
/* návrh 57 R23: the place as a control in Postavy a veci */
.s30panel .n57place { all: unset; cursor: pointer; font-size: 12.5px; color: var(--text2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; }
.s30panel .n57place:hover { color: var(--text); border-color: var(--line2); }
/* návrh 57 R12: Prekryť O… — the picture over the camera's frame, the slider in the row under the stage */
.s30v .n57ov { position: absolute; z-index: 2; object-fit: cover; pointer-events: none; }
.s30sum { display: flex; align-items: center; gap: 12px; }
.s30sum .sum23 { flex: 1 1 auto; min-width: 0; }
.n57mix { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text2); }
.n57mix input { width: 120px; }
/* Peter 21. 11. (okno 1000 px: názov „Z…“, za podkrokmi odrezaný znak): the head of the 3D editor in a narrow window.
   The head's wrapper is the container (the head itself cannot wrap by its own query). Up to 830 px only the current
   sub-step keeps its word (the others their dot; the whole trio is in the title); up to 740 px the stages go to a second
   row, so the name has the first row and no stage is cut. Measured by the walk at 1000, 1100, 1280 and 1440 px.
   Preklik 280d (Storyboard at 1000 px scrolled its stages to „rvý obraz“): the same for every head with stages — the
   walk's __walk.headFits mirrors the 740 px line. */
.shot13:has(.st55) { container: hlava57 / inline-size; }
@container hlava57 (max-width: 830px) {
  .st55 .n57ss:not(.cur) .t { display: none; }
  .st55 .n57ss:not(.cur) { padding: 2px; }
}
@container hlava57 (max-width: 740px) {
  .st13t.hd55:has(.st55) { flex-wrap: wrap; row-gap: 2px; }
  .hd55 .st55 { order: 10; flex: 1 0 100%; align-self: auto; }
  .hd55:has(.st55) > h1 { flex: 1 1 0; min-width: 72px; }
  .hd55 .st55 + .e3d { margin-left: 0; }
  .hd55:has(.st55) .sp { flex: 0 0 2px; }
}
/* preklik 280d, a wider head (other than the 3D editor's, which has its own sub-step rule above): the stages never
   shrink — a strip that scrolls shows a cut tab; the name gives way first (down to 72 px, its basis, never wider than
   itself), and only what still does not fit after that (3D scéna, a long badge, the icons) goes to a second row. */
.st13t.hd55:has(.st55):not(:has(.n57sub)) { flex-wrap: wrap; row-gap: 2px; }
.hd55:has(.st55):not(:has(.n57sub)) > h1 { flex: 1 1 72px; min-width: 72px; max-width: max-content; }
.hd55:not(:has(.n57sub)) .st55 { flex-shrink: 0; }
