/* Návrh 47 (Peter 3. 11.: "musí to byť ako ovládanie aplikácie premyslené do bodky"): the shot's panel as the
   inspector of an app. Ported from the prototype navrh-47-zaber (v2): a head with the picture, one amber next step,
   the decisions as small buttons, every tool as a tile with its drawing, name and grey term — grouped by where the
   result goes — and the quiet Pozrieť links pinned at the bottom. Scoped to .insp.n47 so the other panels keep their
   look; the tool forms keep theirs. */

/* ---- head: the picture or the video's first frame, its name and state, one line of facts ---- */
.insp.n47 > .ihead { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 18px; }
.insp.n47 > .ihead.noth47 { grid-template-columns: minmax(0, 1fr); }
.insp.n47 .th47 { width: 64px; height: 36px; border-radius: 5px; overflow: hidden; display: block; background: var(--well);
  border: 1px solid var(--line2); }
.insp.n47 .th47 > img, .insp.n47 .th47 > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.insp.n47 .ih47 { min-width: 0; }
.insp.n47 > .ihead .eyebrow { font-size: 10.5px; }
.insp.n47 > .ihead h2 { font-size: 16px; margin-top: 1px; flex-wrap: wrap; row-gap: 4px; }
.insp.n47 > .ihead .from, .insp.n47 > .ihead .from10 { margin: 2px 0 0; font-size: 12px; color: var(--faint); line-height: 1.35; }

/* ---- the groups: Rozhodnúť · Upraviť · Pozrieť, each a quiet section ---- */
.insp.n47 .rb { padding: 12px 18px 14px; gap: 8px; }
.insp.n47 .rbl { display: flex; align-items: center; gap: 6px; }
.insp.n47 .rbl em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); }

/* the one next step: amber, tall, the whole width */
.insp.n47 .rb-decide .btn.primary.full, .insp.n47 .rb-decide details.choose > summary.btn.primary,
.insp.n47 .rb-decide a.btn.primary { min-height: 44px; border-radius: 10px; font-size: 14px; width: 100%; justify-content: center; }
.insp.n47 .rb-decide form.sb-use { margin: 0; }
.insp.n47 .rb-two { display: block; }
.insp.n47 .rb-two > details.choose { width: 100%; }

/* the decisions beside it: small outline buttons in one row (Použiť…, Vyradiť, Zrušiť výber) */
.dec47 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dec47:empty { display: none; }
.dec47 > form, .dec47 .rb-out, .dec47 .inline { margin: 0; display: inline-flex; }
.dec47 .use36 { margin: 0; }
.dec47 .use36d > summary.btn, .dec47 .rb-out > button, .dec47 .inline > button, .dec47 > a.linkish, .dec47 > button.linkish,
.dec47 .rb-quiet > a, .dec47 .why-edit > summary {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; min-height: 32px; padding: 0 11px; border-radius: 8px;
  border: 1px solid var(--line2); background: none; color: var(--text2); font: 500 12.5px var(--font); text-decoration: none;
  cursor: pointer; white-space: nowrap; }
.dec47 .use36d > summary.btn:hover, .dec47 .rb-out > button:hover, .dec47 .inline > button:hover, .dec47 > a.linkish:hover,
.dec47 .why-edit > summary:hover { background: var(--raised); color: var(--text); border-color: var(--control); }
.dec47 .why-edit { position: relative; }
.dec47 .why-edit > summary { list-style: none; }
.dec47 .why-edit > summary::-webkit-details-marker { display: none; }
.dec47 .why-edit[open] { flex-basis: 100%; }
.insp.n47 .rb-used { margin-bottom: 2px; }
.insp.n47 .rb-quiet { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Upraviť: tiles. A tile = drawing, name, grey term; the (i) in its corner; its "kedy" on hover ---- */
.grp47 { display: grid; gap: 6px; min-width: 0; }
.grp47 + .grp47, .ed47 .ops40 + .grp47, .ed47 .grp47 + .ops40 { margin-top: 6px; }
.gl47, .ops47 .gl40 { font-size: 10.5px; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
  font-weight: 650; margin: 2px 0 0; }
.gl47 em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tiles47, .ops47 .ops19.r40 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.tiles47.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile47, .ops47 .op40r > .op19 {
  position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 9px; row-gap: 1px;
  align-items: center; align-content: center; width: 100%; min-height: 46px; margin: 0; padding: 6px 22px 6px 9px;
  border-radius: 9px; background: var(--well); border: 1px solid var(--line); color: var(--text); text-align: left;
  text-decoration: none; font: inherit; cursor: pointer; }
.tile47 > .ic47, .ops47 .op19 > .ic47 { grid-row: 1 / span 2; color: var(--text2); }
/* names and terms wrap, never cut (Codex 3. 11.: an ellipsis hid the price of the 3D scene) */
.tile47 > b, .ops47 .op40r > .op19 > b { grid-column: 2; font-size: 12.5px; font-weight: 650; line-height: 1.2; color: var(--text);
  white-space: normal; overflow-wrap: break-word; min-width: 0; }
.tile47 > .tm40, .tile47 > small, .ops47 .op40r > .op19 > .tm40 { grid-column: 2; margin: 0; font-size: 10.5px; line-height: 1.2;
  color: var(--faint); white-space: normal; overflow-wrap: break-word; min-width: 0; }
a.tile47:hover, button.tile47:hover, a.tile47:focus-visible, button.tile47:focus-visible,
.ops47 a.op19:hover, .ops47 a.op19:focus-visible { border-color: rgba(245, 170, 40, .5); background: var(--raised); }
a.tile47:hover > .ic47, button.tile47:hover > .ic47, .ops47 a.op19:hover > .ic47 { color: var(--accent); }
.ops47 a.op19:hover b { color: var(--text); }
.tile47.wide { grid-column: 1 / -1; }
.tile47.rec { border-color: var(--accent); background: rgba(245, 170, 40, .12); }
.tile47.rec > .ic47 { color: var(--accent); }
.tiles47.c3 .tile47 { grid-template-columns: minmax(0, 1fr); padding: 7px 8px; row-gap: 3px; align-content: start; }
.tiles47.c3 .tile47 > .ic47 { grid-row: auto; }
.tiles47.c3 .tile47 > b, .tiles47.c3 .tile47 > .tm40 { grid-column: 1; }
/* a tile that waits says why inside itself (the why rule: the reason stands by it) */
.tile47.off, .tile47[aria-disabled="true"] { cursor: default; opacity: .62; }
.tile47.off:hover { border-color: var(--line); background: var(--well); }
.tile47.off > small, .tile47[aria-disabled="true"] > small { color: var(--warn); white-space: normal; }
/* a tile that posts (a form whose button is the tile) */
.tile47f { margin: 0; display: block; min-width: 0; }
.tile47f.wide { grid-column: 1 / -1; }
.tile47f > .tile47 { height: 100%; }

/* the návrh 40 menu drawn as tiles here (fix_ops, tile=True): no radio dot, the drawing instead */
.ops47 { display: grid; gap: 6px; }
.ops47 .g40 { display: grid; gap: 6px; }
.ops47 .op40r { position: relative; display: block; min-width: 0; max-width: none; }
.ops47 .op40r > .op19 .rd19 { display: none; }
.ops40 .ic47 { display: none; }
.ops47 .ic47, .tile47 .ic47 { display: block; }
.ops47 .op40r > .tip, .tile47w > .tip { position: absolute; top: 4px; right: 4px; z-index: 2; }
.ops47 .op40r > .tip > summary, .tile47w > .tip > summary { width: 15px; height: 15px; font-size: 9.5px; opacity: .75; }
.tile47w { position: relative; display: block; min-width: 0; }
.tile47w > .tile47, .ops47 .op40r > .op19 { height: 100%; }
.ops47 .op40r > .op19 { min-height: 46px; }
/* návrh 32 A at a picture made from the 3D layout: its own scene, one line across the group */
.tiles47 > .rb-place32 { grid-column: 1 / -1; margin: 0; padding: 8px 10px; border-radius: 9px; background: var(--well);
  border: 1px solid var(--line); line-height: 1.35; }
.tile47w.wide { grid-column: 1 / -1; }
.ops47 .more40 { margin-top: 2px; }
.ops47 .more40 .op40r > .op19 { display: flex; min-height: 0; padding: 3px 4px; border: 0; background: none; cursor: default; }
.ops47 .more40 .op40r > .op19 .ic47 { display: none; }
.ops47 .more40 .op40r > .op19 > b { font-size: 12.5px; }
.ops47 .more40 .op40r > .op19 small { flex: 1 0 100%; padding-left: 0; color: var(--faint); font-size: 11.5px; white-space: normal; }
.ops47 .more40 .op40r > .tip { position: static; }
.ops47 .ov40 { font-size: 12px; color: var(--muted); }
/* "Pre skladanie a dokončenie" and other rarely used groups fold under one quiet line */
.fold47 > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px;
  border-radius: 9px; border: 1px dashed var(--line2); color: var(--muted); font-size: 12px; cursor: pointer; }
.fold47 > summary::-webkit-details-marker { display: none; }
.fold47 > summary::after { content: "▾"; font-size: 11px; }
.fold47[open] > summary::after { content: "▴"; }
.fold47 > summary:hover { color: var(--text); border-color: rgba(245, 170, 40, .5); }
.fold47[open] > summary { margin-bottom: 6px; }

/* the "kedy" of a tile on hover or keyboard focus: one bubble of portal.js kept inside the window — a bubble drawn in
   CSS was cut by the panel (Codex 3. 11.). Peter 14. 11.: under the pointer it comes after a short rest and portal.js
   puts it where it lies on no other control (ARCHITEKTURA.md, "Bublina nápovede nezavadzia") */
.kedy47 { position: fixed; z-index: 1000; max-width: 260px; padding: 7px 9px; border-radius: 8px; background: #2D3338;
  border: 1px solid var(--line2); color: var(--text); font: 400 12px/1.4 var(--font); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }

/* ---- Pozrieť: quiet links pinned under the panel, their parts open in the panel or under the picture ---- */
.insp.n47 > .ifoot47 { flex: none; display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; padding: 9px 18px;
  border-top: 1px solid var(--line); border-bottom: 0; background: var(--panel); }
.insp.n47 > .ifoot47 .rbl { margin-right: 2px; }
.insp.n47 > .ifoot47 .rb-links { gap: 4px 14px; }
.insp.n47 > .ifoot47 .rb-links > *, .insp.n47 > .ifoot47 .rb-links a, .insp.n47 > .ifoot47 .rb-links button { font-size: 12.5px; }
.insp.n47 .folds47 > .rb-fold { padding: 12px 18px; border-top: 1px solid var(--line); }
.insp.n47 .folds47 > .rb-fold:not([hidden]) { display: block; }
.insp.n47 .folds47 dl.pf10 { margin: 0 0 10px; }

/* the first state of 3D as tiles (4. 11.): Z obrazu O… shows the picture itself in place of a drawing */
.s30startc.s48 { max-width: 620px; gap: 14px; }
.s48 .tile47:has(> .th48) { grid-template-columns: 64px minmax(0, 1fr); }
.s48 .tile47 > .th48 { grid-row: 1 / span 2; width: 64px; height: 36px; object-fit: cover; border-radius: 5px; display: block; }
.s48 label.tile47:hover, .s48 label.tile47:focus-within { border-color: rgba(245, 170, 40, .5); background: var(--raised); }
.s48 label.tile47:hover > .ic47 { color: var(--accent); }
.s48 .s30uplprev:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.s48 .s30uplprev img { width: 64px; height: 36px; object-fit: cover; border-radius: 5px; }
/* while a picture's scene is made the bar stands in the card under the heading, never over the stage */
.s48 .s30mis { position: static; transform: none; z-index: auto; white-space: normal; margin: 0; }
.s48 .s30frompic { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.s48 .s30frompic .s30pic { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; }
.s48 .s30frompic .s30pic img { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; display: block; }

/* Čo model povedal is a section of the inspector like Rozhodnúť (Peter 7. 11.: it sat flush at the edge, its Opraviť
   prepis was bare text): same padding and rule, the correction a small button with the pencil of Upraviť text */
.insp.n47 .said29 { margin: 0; }
.said29fix > summary.fix29 { list-style: none; display: inline-flex; align-items: center; gap: 6px; width: max-content;
  border: 1px solid var(--line2); border-radius: 7px; padding: 4px 10px; font: 500 12px var(--font); color: var(--text2);
  cursor: pointer; }
.said29fix > summary.fix29::-webkit-details-marker { display: none; }
.said29fix > summary.fix29:hover, .said29fix[open] > summary.fix29 { color: var(--text); border-color: var(--muted); }
.said29fix > summary.fix29 svg { flex: none; }
