/* Návrh 36 (Peter 28. 10.): Použiť… and na karte… — the prototype's rules below "ported", copied as they are
   (docs/navrh-portalu-2026-10/navrh-36/navrh36.css); port rules at the end. */
/* ---------- ported ---------- */

/* 1 · Rozhodnúť → one „Použiť…“: one menu, two headed groups, every item says what it does underneath */
.use36 { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.use36d { position: relative; }
.use36d > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; }
.use36d > summary::-webkit-details-marker { display: none; }
.use36d > .pk36p { position: absolute; left: 0; top: calc(100% + 4px); z-index: 40; width: 300px; display: grid; gap: 1px; padding: 6px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.pk36p .head { padding: 6px 8px 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pk36 { display: grid; gap: 1px; text-align: left; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.pk36 b { font-size: 13.5px; font-weight: 600; } .pk36 small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.pk36:hover, .pk36:focus-visible { background: var(--raised); }
.pk36[disabled] { cursor: default; } .pk36[disabled] b { color: var(--muted); } .pk36[disabled] small { color: var(--warn); }
.pk36[disabled]:hover { background: none; }
.kept36 { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--text2); }
.kept36 .chip { height: 24px; font-size: 12px; padding: 0 8px 0 3px; gap: 5px; }
.kept36 .chip img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }

/* the flow in the panel: steps that open in order, the stage shows the frame */
.back36 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.back36 .linkish { font-weight: 600; color: var(--accent); }
.st36 { counter-increment: st36; }
.st36 > .irow .ilbl::before { content: counter(st36) " · "; color: var(--muted); font-weight: 400; }
.ibody.f36 { counter-reset: st36; }
.st36.wait36 { opacity: .55; }
.st36.wait36 > :not(.irow) { display: none; }
.fact36 { margin: 6px 0 0; font-size: 12.5px; color: var(--text2); }
.fact36 b { color: var(--text); font-weight: 600; }

/* 1a · the frame: the existing "Snímka z videa" moment (take-range, take-steps), the strip under the stage */
.frm36 { flex: none; padding: 0 2px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.fb36 { position: relative; padding: 0; border-radius: 7px; border: 1px solid var(--line); background: none; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; }
.fb36[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fb36 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb36 span { position: absolute; left: 4px; bottom: 3px; font-size: 10.5px; padding: 0 4px; border-radius: 4px; background: rgba(10,12,13,.8); color: var(--text2); }
.take36 { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.take36 .take-range { flex: 1; min-width: 0; }
.take36 .btn { height: 26px; padding: 0 8px; font-size: 12px; }
.take36 output { font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 1b · what to keep: three kinds, one sentence each */
.kind36 { display: grid; gap: 4px; margin-top: 4px; }
.kd36, .ws-scroll label.kd36 { position: relative; display: grid; margin: 0; font-weight: 400; color: var(--text); grid-template-columns: 18px minmax(0, 1fr) auto; gap: 1px 8px; align-items: center; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line2); background: var(--well); cursor: pointer; }
.kd36 input { margin: 0; accent-color: var(--accent); }
.kd36 b { font-size: 13px; font-weight: 600; }
.kd36 small { grid-column: 2 / span 2; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.kd36 .side { font-size: 11.5px; color: var(--text2); }
.kd36.on { border-color: var(--accent-line); background: var(--accent-soft); }
.kd36:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.alt36 { display: grid; gap: 4px; margin-top: 6px; }
.alt36 .kd36 { padding: 5px 10px; }

/* 1c · the crop on the stage: a frame you drag, its corner resizes */
.crop36 { position: relative; display: inline-block; max-width: 100%; max-height: 100%; line-height: 0; user-select: none; touch-action: none; }
.crop36 > img, .crop36 > canvas { max-width: 100%; max-height: calc(100vh - 330px); display: block; border-radius: 6px; }
.cr36 { position: absolute; border: 2px solid var(--accent); border-radius: 4px; box-shadow: 0 0 0 200vmax rgba(6,8,10,.55); cursor: move; }
.cr36 i { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #0d0f10; cursor: nwse-resize; }
.cr36 span { position: absolute; left: 0; top: -22px; font-size: 11.5px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: var(--accent); color: #141006; font-weight: 600; white-space: nowrap; }
.cropview36 { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 4px; }
.cropview36 canvas, .cropview36 img { width: 64px; height: 64px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line2); background: var(--well); }
.cropview36 p { margin: 0; font-size: 12px; color: var(--text2); }

/* 1d · where: the relevant existing cards first, then a new one with a unique name */
.tg36 { display: grid; gap: 3px; margin-top: 4px; }
.tgo36, .ws-scroll label.tgo36 { position: relative; display: grid; margin: 0; font-weight: 400; color: var(--text); grid-template-columns: 18px 40px minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px 8px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; }
.tgo36:hover { background: var(--raised); }
.tgo36.on { border-color: var(--accent-line); background: var(--accent-soft); }
.tgo36 input[type="radio"] { margin: 0; accent-color: var(--accent); }
.tgo36 .th { width: 40px; height: 28px; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); background: var(--well); display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.tgo36 .th img { width: 100%; height: 100%; object-fit: cover; }
.tgo36 .tt { display: grid; gap: 1px; min-width: 0; } .tgo36 .tt b { font-size: 13px; font-weight: 600; } .tgo36 .tt small { font-size: 11.5px; color: var(--muted); }
.tgo36 .field { height: 28px; font-size: 13px; width: 100%; }
.tgh36 { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 0; }
.dup25.dup36 { margin-top: 6px; }

/* 2 · the proposal (návrh 22): input beside the result, Prijať · Zahodiť · Znova, inak */
.cmp36 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; width: min(860px, 100%); align-items: start; }
.cmp36 figure { margin: 0; display: grid; gap: 6px; min-width: 0; }
.cmp36 figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #080b0c; border-radius: 10px; border: 1px solid var(--line); }
.cmp36.wide36 figure img { aspect-ratio: 16 / 9; }
.cmp36 figure.cand36 img { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line); }
.cmp36 figcaption { font-size: 12.5px; color: var(--muted); } .cmp36 figcaption b { color: var(--text); font-weight: 600; }
.making36 { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 10px; border: 1px dashed var(--accent-line); color: var(--text2); font-size: 13px; }
.wide36 .making36 { aspect-ratio: 16 / 9; }
.pact36 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pact36 .linkish { grid-column: 1 / -1; justify-self: center; }

/* 3 · Vytvoriť ďalší záber…: chips of what goes over */
.carry36 { display: grid; gap: 4px; margin-top: 4px; }
.cy36 { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line2); }
.cy36.ok36 { border-color: var(--ok-line); }
.cy36.miss36 { border-style: dashed; }
.cy36.off36 { opacity: .55; }
.cy36 .th { width: 40px; height: 28px; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); background: var(--well); display: grid; place-items: center; color: var(--muted); }
.cy36 .th img { width: 100%; height: 100%; object-fit: cover; }
.cy36 .tt { display: grid; gap: 1px; min-width: 0; } .cy36 .tt b { font-size: 13px; font-weight: 600; } .cy36 .tt small { font-size: 11.5px; color: var(--muted); }
.cy36 .btn { height: 26px; font-size: 12px; padding: 0 8px; }
.cy36 .x36 { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 4px; }

/* 4 · the new shot: the stage before the first picture, the cards that came over */
.empty36 { display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--text2); max-width: 560px; }
.empty36 b { color: var(--text); font-size: 16px; }
.empty36 .cards36 { display: flex; gap: 10px; }
.empty36 figure { margin: 0; display: grid; gap: 4px; }
.empty36 figure img { width: 160px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); }
.empty36 figcaption { font-size: 12px; color: var(--muted); }
.from36 { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.v30cards .chip .v36 { font-weight: 400; color: var(--muted); font-size: 11.5px; }

.alt36 { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.alt36 > .tip { align-self: start; margin-top: 6px; }
.kd36 input[type="checkbox"] { width: 15px; height: 15px; }
.cmain.open23 .empty36 { gap: 4px; } .cmain.open23 .empty36 .cards36, .cmain.open23 .empty36 > span { display: none; }
.tgo36 .sl36 { height: 24px; font-size: 12px; padding: 0 22px 0 6px; width: auto; max-width: 100%; margin-left: 2px; }
.tgo36 .tt b .muted { font-weight: 400; font-size: 11.5px; }

.kind36 { grid-template-columns: 1fr 1fr; }
.kind36 .kd36 .side { display: none; }
.kind36 .kd36 small { grid-column: 2; }

/* port: the stage holds the picture under the crop, a form inside the panel keeps the panel's column */
.ws-stage .crop36 > img { max-width: none; max-height: none; }  /* portal.js fits it to the stage */
a.pk36 { text-decoration: none; }
.f36form { display: contents; }
.use36d > summary .chev { opacity: .8; }
.pk36p form.sb-use { margin: 0; } .pk36p form.sb-use .pk36 { width: 100%; }
.kept36 .chip { padding: 0 8px; }
.ws-stage > .crop36 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* the folded scenario above the panel was wider than the panel at 1280 px (its button kept its one-line width), so a
   focused radio of the flow scrolled the panel sideways: the button keeps the panel's width, its lines end in … */
.ws-panel .scb24 { grid-template-columns: minmax(0, 1fr); }
/* Rýchly test: Použiť… sits under the stage in the row of its actions; its menu opens upwards */
.use36d.up36 > .pk36p { top: auto; bottom: calc(100% + 4px); }
.qtest .use36 { margin-top: 0; }
/* the predloha a crop replaces, with its picture (preklik 28. 10.) */
.rep36 { display: flex; align-items: center; gap: 6px; }
.rep36 img { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line2); flex: none; }

/* Peter 28. 10. (the card's panel; credit short): every main action that waits looks like one — grey, its
   reason beside it (Tlačidlo, ktoré čaká, povie prečo); loaded last, so no panel's own colour wins over it */
.btn.primary[disabled], .btn.primary:disabled { background: var(--raised); border-color: var(--line2); color: var(--muted); opacity: 1; }
/* koordinátor 28. 10. (Peter's picture, the card's panel): the right panel began at the window's top and covered the
   header's Práve sa robí, Pomoc and the account. The header stays on top, always seen; the panel starts under it. */
@media (min-width: 761px) {
  body:has(.drawer.d21) > .top { position: sticky; top: 0; z-index: 57; }
  body .drawer.d21 { top: 56px; }
}
/* Peter 28. 10. (a larger font, 125/150 % zoom: Prijať cut in half): a button's label wraps, it never clips — its
   height is a minimum, not a box; a button that keeps one line on purpose ends in an ellipsis and portal.js gives it a
   title with its whole label (ARCHITEKTURA.md, „Nápis tlačidla sa neodreže“; tests/test_oprav_28_10.py). */
.btn { white-space: normal; height: auto; line-height: 1.2; padding-block: 4px; overflow-wrap: break-word; max-width: 100%; }
.btn.small { height: auto; }
.btn.big { height: auto; min-height: 44px; }
