/* Návrh 21 · Panel políčka v jazyku pracoviska záberu (Peter 19. 10.: „vizuálna čistota ako pri zábere“).
   Only what is new against the portal (portal.css … navrh20.css). The panel is the portal's drawer (.drawer.pdrawer)
   with the shot workspace's parts: eyebrow + heading, sections with a small label and (i), the composer's rows (.pr10,
   navrh13.css), "Model dostane" as the folded text row, a footer with the main action that never scrolls away. */
/* the board makes room instead of lying under the panel (every width above the phone); the frame clicked stays in
   view. The panel narrows a little on a small laptop, so the board keeps at least two frames in a row. */
:root { --pw21: min(430px, max(340px, 40vw)); }
@media (min-width: 761px) {
  body.split21 main.page { padding-right: calc(var(--pw21) + 20px); transition: padding-right .18s; }
  /* Peter 20. 10.: on a wide screen the centred page left an empty band between the sheets and the panel — the page
     reaches the panel instead (its usual width plus the panel's, held at the right edge) */
  body.split21 main.page { max-width: calc(1240px + var(--pw21) + 20px); margin-right: 0; }
  body.split21 .board.pb20.bs21-s { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
  body.split21 .board.pb20.bs21-l { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  body .drawer.d21 { width: var(--pw21); }
}
@media (prefers-reduced-motion: reduce) { body.split21 main.page { transition: none; } }

/* frame size: 7 · 5 · 3 in a row (the browser remembers it) */
.board.pb20.bs21-m { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.board.pb20.bs21-l { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.sz21 a { padding: 0 9px; display: grid; place-items: center; }
.sz21 i { display: block; border: 1.5px solid currentColor; border-radius: 2px; }
.sz21-s { width: 8px; height: 6px; } .sz21-m { width: 11px; height: 8px; } .sz21-l { width: 15px; height: 10px; }

/* the panel */
.drawer.d21 { display: flex; flex-direction: column; overflow: hidden; width: 100%; }
.h21 { display: flex; gap: 10px; align-items: flex-start; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.h21t { flex: 1; min-width: 0; }
.h21 .eyebrow { display: flex; align-items: center; gap: 6px; }
.h21 h2 { margin: 3px 0 0; font-size: 17px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h21n { display: flex; gap: 4px; align-items: center; }
.h21n .iconbtn.sm { width: 30px; height: 30px; font-size: 16px; }
.b21 { flex: 1; overflow: auto; padding: 0 0 8px; }
.pic21 { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
/* the frame stays a plan on paper inside the dark panel: light, black and white, never in colour */
.big21 { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1.5px solid #29251F; border-radius: 3px; background: #F7F4EC; overflow: hidden; cursor: zoom-in; }
.big21 img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
.big21.z21 { border-style: double; border-width: 4px; }
.big21 .zm21 { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: rgba(41,37,31,.75); color: #F7F4EC; font-size: 14px; opacity: 0; transition: opacity .12s; }
.big21:hover .zm21, .big21:focus-visible .zm21 { opacity: 1; }
.big21.e21 { display: grid; place-items: center; gap: 8px; border-style: dashed; border-color: #8C8478; background: #ECE7DC; color: #5B544B; font-size: 13px; cursor: default; }
.big21.pv21 img { position: absolute; inset: 0; opacity: .22; filter: grayscale(1) contrast(.7); }
.big21.pv21 .mini { position: relative; }
.big21.mk21 { background: repeating-linear-gradient(135deg, rgba(41,37,31,.06) 0 6px, transparent 6px 12px), #ECE7DC; }
.src21 { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--text2); }
.src21 .sp { flex: 1; }
.src21 .linkish { font-size: 12.5px; cursor: pointer; }
.sec21 { padding: 12px 18px 12px; border-bottom: 1px solid var(--line); }
.lb21 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.lb21 label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lb21 .for21 { font-size: 11.5px; color: var(--accent); }
.lb21 .sp { flex: 1; }
.sec21 textarea.field { width: 100%; resize: vertical; min-height: 0; font-size: 14px; line-height: 1.45; }
.rows21 { margin: 8px -10px 0; }
.md21 { margin: 6px 0 0; }
.md21 .composed { margin-top: 8px; font: 12.5px/1.5 ui-monospace, Menlo, monospace; color: var(--text2); }
.more21 { padding-top: 6px; padding-bottom: 8px; border-bottom: 0; }
.more21 .pr10 { margin: 0 -10px; width: calc(100% + 20px); }
.prod21 { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; color: var(--text2); }
.prod21 svg { color: var(--muted); flex: none; }
.prod21 span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod21 a { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.f21 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px 14px 18px; border-top: 1px solid var(--line2); background: var(--panel); }
.f21 .btn.primary { flex: none; }
.f21 .why21 { order: -1; flex-basis: 100%; font-size: 12px; color: var(--muted); }
.f21 .sp { flex: 1; }
.f21 .sv21 { font-size: 12px; color: var(--faint); }
.f21m { position: relative; }
.f21m > summary { list-style: none; width: 34px; height: 34px; display: grid; place-items: center; } .f21m > summary::-webkit-details-marker { display: none; }
.f21m > .pop { position: absolute; right: 0; bottom: calc(100% + 6px); left: auto; min-width: 250px; z-index: 6; }
.f21m .opt.danger b { color: var(--bad); }
.chips .chip.on { border-color: var(--accent-line); color: var(--text); }
/* the frame large, over everything (click or Esc closes it) */
.lb21x { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; align-content: center; gap: 10px; background: rgba(8,9,10,.88); cursor: zoom-out; padding: 24px; }
.lb21x img { max-width: min(1200px, 92vw); max-height: 80vh; background: #F7F4EC; border: 2px solid #29251F; filter: grayscale(1); }
.lb21x span { color: var(--text2); font-size: 13px; }
@media (max-width: 760px) {
  .drawer.d21 { width: 100%; }
  .f21 .btn.primary { flex: 1 1 auto; justify-content: center; }
}
/* § 12: the camera from a shortcut */
.new21 { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--accent); }
.bulk21 { width: min(560px, calc(100vw - 32px)); }
.bulk21 .body { display: grid; gap: 10px; }
.b21r { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
.b21r img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; background: #F7F4EC; border: 1.5px solid #29251F; border-radius: 2px; }
.b21r > div { display: grid; gap: 4px; min-width: 0; }
.bcam21 { display: flex; flex-wrap: wrap; gap: 4px; }
.bcam21 span:not(.faint) { background: var(--raised); color: var(--text2); font-size: 11.5px; padding: 1px 7px; border-radius: 4px; }
/* Peter 19. 10.: no scrollbar in the text fields; Model dostane opens in place */
.sec21 textarea.field { display: block; overflow-x: hidden; overflow-wrap: anywhere; white-space: pre-wrap; padding: 9px 11px; }
.md21 > summary { list-style: none; cursor: pointer; } .md21 > summary::-webkit-details-marker { display: none; }
.md21[open] > summary .chev { transform: rotate(180deg); }
.md21 > small { display: block; margin-top: 6px; font-size: 12px; }
.pe10 .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* § 12–13: the shortcuts' (i) beside the label, Použiť pre celú scénu, Viac záberov naraz with the camera per line */
.lb21 .sk21 { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); margin-left: 6px; }
.pe10f .tip { margin-left: 4px; }
.pe10f { align-items: center; gap: 4px; }
.toast20 .btn { height: 28px; min-height: 28px; padding: 0 10px; }
.many21 { width: min(620px, calc(100vw - 32px)); }
.many21 .body { display: grid; gap: 10px; }
.many21 textarea { width: 100%; font-size: 14px; line-height: 1.5; }
.mprev21 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mprev21 li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--text2); }
.mprev21 li b { color: var(--text); font-variant-numeric: tabular-nums; }
.mprev21 small { font-size: 11.5px; }
.tip-pop { max-width: min(360px, calc(100vw - 24px)); }
/* port (portál): what the prototype only imitated */
.d21 .sb-panel { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 0; border: 0; background: none; gap: 0; }
.d21 form.f21form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.h21n .iconbtn.sm.off { opacity: .35; pointer-events: none; }
.h21n a.iconbtn.sm { display: grid; place-items: center; text-decoration: none; }
.hint21 { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.src21 .linkish { background: none; border: 0; padding: 0; color: var(--text2); text-decoration: underline; text-underline-offset: 2px; }
.pic21 .sb-material { margin-top: 10px; }
.mk21w { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mk21w .why21 { flex-basis: 100%; order: -1; font-size: 12px; color: var(--muted); }
.mk21w .why21[hidden] { display: none; }
.f21m .pop .opt { width: 100%; text-align: left; background: none; border: 0; }
.del21 > summary { list-style: none; cursor: pointer; } .del21 > summary::-webkit-details-marker { display: none; }
.del21 .del21p { display: grid; gap: 8px; padding: 6px 10px 10px; }
.msg21 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.msg21 .btn { margin-left: auto; }
.lb21x[hidden] { display: none; }
.big21 img { aspect-ratio: auto; }
/* rozhodnutie 14: the crop (zoom and drag, 16:9) */
.crop21 { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(8,9,10,.86); padding: 16px; }
.crop21b { width: min(880px, 100%); display: grid; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.crop21v { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #F7F4EC; border: 1.5px solid #29251F; border-radius: 3px; cursor: grab; touch-action: none; }
.crop21v img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; filter: grayscale(1); }
.crop21z { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); }
.crop21z input { flex: 1; }
.crop21f { display: flex; justify-content: flex-end; gap: 8px; }
/* the panel's helper forms (drawing, sketch, material, delete, insert) take no room: their fields sit in the panel by form= */
.d21 .sb-panel > :not(.h21):not(.f21form) { flex: none; height: 0; margin: 0; padding: 0; overflow: hidden; border: 0; }
.f21 .sv21 { white-space: nowrap; }
/* Peter 19. 10.: the queue of the frames being drawn */
.q21 { font-size: 12.5px; color: var(--accent); white-space: nowrap; }
.big21 .mk21m { font-size: 12px; color: #5B544B; }
.big21.mk21 { align-content: center; }
.hint21.warn21 { color: var(--warn, #E0A23A); }
/* Peter 20. 10.: the drawing as a guide beside the text, its option, the sentences by the button */
.sk21 .sk21-opt { margin-top: 8px; align-items: flex-start; }
.sk21 .sk21-opt small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ws-why, .warn21 { margin: 0 0 6px; }
.warn21 { color: var(--warn, #E0A23A); font-size: 12.5px; }
.warn21[hidden], .ws-why[hidden] { display: none; }
.ws-rail-item .infilm:empty { display: none; }
.mk21w .next21 { flex-basis: 100%; text-align: center; }  /* Peter 23. 10.: the next step first, another sketch beside */

/* Storyboard filmu, Peter 30. 10. (viz-storyboard, schválené): one way to add a shot, delete on the tile, Vrátiť, the
   storyboard optional. Ported from the visualization's zmeny.css; the toast is the portal's one (.toast13, base.html). */
/* A · + ďalší záber at the end of each scene: rounded and tinted, so it is never taken for an empty frame (sharp, dashed) */
.nx21f { margin: 0; }
.nx21 .nx21b { display: grid; place-items: center; align-content: center; gap: 2px; width: 100%; aspect-ratio: 16 / 9; padding: 0;
  border: 1.5px dashed var(--pline20); border-radius: 10px; background: rgba(41, 37, 31, .05); color: var(--ink20-2); cursor: pointer; font: inherit; }
.nx21 .nx21b b { font-size: 26px; font-weight: 400; line-height: 1; color: var(--ink20-2); }
.nx21 .nx21b span { font-size: 12px; font-weight: 600; }
.nx21 .nx21b:hover { background: rgba(255, 255, 255, .45); border-color: var(--ink20-2); color: var(--ink20); }
.nx21 .nx21b:hover b { color: var(--ink20); }
.nx21 .nx21b:focus-visible { outline: 3px solid var(--ink20); outline-offset: 2px; }
.nx21 .ph20 { display: block; height: 18px; margin: 0 0 3px; }
.sbrow.nx21r { display: block; padding: 10px 0; }
.sbrow.nx21r .ph20 { display: none; }
.sbrow.nx21r .nx21b { aspect-ratio: auto; grid-auto-flow: column; gap: 8px; width: auto; min-width: 168px; height: 40px; padding: 0 16px; }
.sbrow.nx21r .nx21b b { font-size: 20px; }
/* Výroba: the same tile on the dark board, as tall as a picture */
.shot-tile.v20.nx21v { background: transparent; border: 0; box-shadow: none; }
.nx21v .ph20 { display: none; }
.nx21v .nx21b { border-color: var(--line2); background: rgba(255, 255, 255, .03); color: var(--muted); }
.nx21v .nx21b b, .nx21v .nx21b:hover b { color: var(--muted); }
.nx21v .nx21b:hover { border-color: var(--accent-line); background: rgba(255, 255, 255, .06); color: var(--text); }
.nx21v .nx21b:focus-visible { outline-color: var(--accent); }

/* B · × on the frame's top right corner, half outside it (never over Nahrať kresbu); on hover and focus, always on touch */
.sbcard.p20, .sbrow.p20 { position: relative; }
.x21f { position: absolute; top: 12px; right: -9px; z-index: 2; margin: 0; }
.sbrow.p20 .x21f { top: 6px; right: 0; }
.x21 { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 2px solid var(--paper20); border-radius: 50%;
  background: rgba(41, 37, 31, .82); color: #F7F4EC; font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; }
.x21:hover { background: #9A3F22; }
.sbcard.p20:hover .x21, .sbrow.p20:hover .x21, .sbcard.p20:focus-within .x21, .sbrow.p20:focus-within .x21, .x21:focus-visible { opacity: 1; }
.x21:focus-visible { outline: 3px solid var(--ink20); outline-offset: 1px; }
@media (hover: none) { .x21 { opacity: 1; } }
.sbcard.p20.is-dragging .x21 { opacity: 0; pointer-events: none; }
.x21f:has(~ .cf21) { display: none; }  /* asking: the × waits behind its question */
/* a shot with content asks in place, over its frame */
.cf21 { position: absolute; left: 0; right: 0; top: 21px; z-index: 3; aspect-ratio: 16 / 9; display: grid; align-content: center; gap: 6px;
  padding: 6px 8px; border: 1.5px solid var(--ink20); border-radius: 2px; background: rgba(247, 244, 236, .97); color: var(--ink20);
  font-size: 11.5px; line-height: 1.3; text-align: center; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.sbrow.p20 .cf21 { top: 4px; left: 46px; right: 0; aspect-ratio: auto; grid-auto-flow: column; justify-content: start; text-align: left; }
.cf21 b { font-weight: 800; }
.cf21 .cf21b { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
/* a small frame (Peter 31. 10.: the question was cut off): one column as wide as the frame, the box grows below it,
   the buttons wrap; on small frames only the question, the detail is in the toast after */
.cf21 { grid-template-columns: minmax(0, 1fr); min-height: 0; height: auto; overflow-wrap: anywhere; }
.bs21-s .cf21 { aspect-ratio: auto; min-height: calc(100% - 21px); padding: 6px; }
.bs21-s .cf21 > span:first-child { font-size: 11px; }
.cf21 form { margin: 0; }
.p20 .cf21 .mini, .sc21 .mini { height: 24px; padding: 0 9px; font-size: 11.5px; border-radius: 5px; text-decoration: none; }
.p20 .cf21 .mini.del21x, .sc21 .mini.del21x { background: #9A3F22; border-color: #9A3F22; color: #fff; }
.p20 .cf21 .mini.del21x:hover, .sc21 .mini.del21x:hover { background: #7A2E16; }
.p20 .cf21 .mini.keep21, .sc21 .mini.keep21 { background: transparent; border: 1px solid var(--ink20-3); color: var(--ink20); }

/* D · Odstrániť scénu with shots that have content: one line under the scene's head */
.sc21 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 8px; padding: 8px 10px; border: 1px solid var(--line2);
  border-radius: 6px; background: var(--raised); color: var(--text); font-size: 12.5px; }
.sheet20 .sc21 { border-color: var(--pline20); background: var(--frame20); color: var(--ink20); }
.sc21 p { margin: 0; flex: 1 1 420px; }
.sc21 form { margin: 0; }
.sc21 .mini { display: inline-flex; align-items: center; height: 26px; border: 1px solid var(--line2); background: transparent; color: inherit;
  font: 600 12px/1 var(--font); cursor: pointer; }
:not(.sheet20) > .sc21 .mini.keep21 { color: var(--text); border-color: var(--line2); }
/* the scene's ⋯ on paper: open it stays paper, never a black disc */
.sheet20 .scene-menu > summary:hover, .sheet20 .scene-menu[open] > summary { color: var(--ink20); background: rgba(41, 37, 31, .1); border-color: var(--ink20-3); }

/* C · Vrátiť in the page's one toast (top centre); the line under it runs out in 10 s */
.toast13 .ud21 { height: 26px; margin-left: 10px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line2); background: var(--field, #1B2023);
  color: var(--link); font: 700 13px/1 var(--font); cursor: pointer; }
.toast13 .ud21:hover { border-color: var(--accent-line); }
.toast13 .ud21[hidden], .toast13 a[hidden] { display: none; }
.toast13.ud21on { align-items: center; overflow: hidden; }
.toast13.ud21on.ud21x { padding: 7px 7px 7px 14px; }
.toast13.ud21on.ud21x::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); opacity: .7;
  transform-origin: left; animation: ud21 10s linear forwards; }
@keyframes ud21 { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast13.ud21on.ud21x::after { animation: none; } }
.toast21 { display: flex; align-items: center; gap: 12px; }
.toast21 form { margin: 0; }
/* Odstránené zábery (N): a quiet link under the last scene, the list in place */
.rm21 { margin: 6px 2px 18px; font-size: 12.5px; }
.rm21l { color: var(--muted); text-decoration: none; }
.rm21l:hover { color: var(--text); text-decoration: underline; }
.rm21m { display: inline-block; margin: 8px 10px 0; color: var(--link); font-weight: 600; text-decoration: none; }
.rm21m:hover { text-decoration: underline; }
.rm21list { list-style: none; margin: 8px 0 0; padding: 4px 0; max-width: 720px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); }
.rm21list li { display: grid; grid-template-columns: 64px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 10px; }
.rm21list li + li { border-top: 1px solid var(--line); }
.rm21th { display: block; width: 64px; aspect-ratio: 16 / 9; border-radius: 3px; background: var(--paper20); overflow: hidden; }
.rm21th img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); display: block; }
.rm21t { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm21t .miss20 { color: var(--muted); }
.rm21w { color: var(--muted); font-size: 12px; }
.rm21list form { margin: 0; }
.rm21list .mini { height: 26px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line2); background: var(--field, #1B2023); color: var(--link);
  font: 700 12.5px/1 var(--font); cursor: pointer; }

/* the parts an add or a removal fills in place (data-plan-count / data-plan-scene wrappers): no box of their own */
.pc21, .psc21 { display: contents; }

/* E · the storyboard is optional: quiet "bez zámeru", quiet "políčko je nepovinné" */
.miss20, .miss20:hover { color: var(--ink20-3); font-weight: 400; font-size: 12.5px; text-decoration: none; }
.sbempty .op21 { display: block; font-size: 11px; color: var(--ink20-3); }
.p20 .sbframe.empty .sbempty { gap: 5px; }
