/* Návrh 19 — jedna gramatika záberu (docs/navrh-portalu-2026-10/navrh-19/navrh19.css, Peter 18. 10.). Only what is new
   against the portal's CSS (portal.css … navrh13.css, loaded before this file as in base.html). The port takes the
   design's file as it is, without its demo bar; what the port adds is marked "port" at the end. */

/* 1. the shot's state instead of steps: Obraz · Video · Vo filme, each with a count; a click opens that part.
   Height: 30 px (the steps strip had 46). */
.stav19 { display: flex; align-items: center; gap: 6px; min-height: 30px; }
.sv19 { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--field); color: var(--text2); text-decoration: none; font-size: 13px; white-space: nowrap; }
.sv19 b { font-weight: 700; color: var(--text); }
.sv19 .c { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sv19.has .c { color: var(--text); }
.sv19:hover { border-color: var(--line2); text-decoration: none; color: var(--text); }
.sv19.on { background: var(--accent-soft); border-color: var(--accent-line); } .sv19.on b { color: var(--accent); } .sv19.on .c { background: rgba(245,170,40,.18); color: var(--accent); }
.sv19.fin .c { background: none; padding: 0; color: var(--muted); font-weight: 600; }
.sv19.fin.ok { border-color: rgba(76,195,138,.45); } .sv19.fin.ok .c { color: #4CC38A; }
.stav19 .tip { margin-left: 2px; }
@container (max-width: 560px) { .sv19 { padding: 0 8px; gap: 5px; font-size: 12px; } }

/* the two standing tiles (+ Nové, ⇪ Nahrať) stay in sight while the strip scrolls */
.new19 { position: sticky; left: 0; z-index: 4; flex: 0 0 auto; display: flex; gap: 6px; height: 100%; padding-right: 6px; background: #12161A; box-shadow: 6px 0 8px -6px rgba(0,0,0,.6); }
.new19 .t13 { height: 100%; }
/* 3. one strip of material: group captions as slim vertical labels, the "⇪ Nahrať" tile beside "+ Nové" */
.dg19 { flex: 0 0 auto; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 22px; margin: 0 2px 0 6px; border-left: 1px solid var(--line); color: var(--muted); }
.dg19 b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.dg19 .c { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text2); }
.dstrip > .dg19:first-child { border-left: 0; margin-left: 0; }
.t13.tnew.up19 { border-color: var(--line2); background: var(--raised); color: var(--text2); }
.t13.tnew.up19:hover { border-color: var(--accent-line); color: var(--accent); }
.t13 .tk19 { position: absolute; top: 5px; left: 6px; z-index: 2; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.t13 .d13.blue { background: var(--info); }

/* picking for a row (Pohyb z videa, Začiatok): only what fits is clickable, the rest steps back */
.dock13.pick19 .t13:not(.pickable), .dg19.dim19, .t13.dim19 { opacity: .35; pointer-events: none; }
.dock13.pick19 .t13.pickable { cursor: pointer; }
.t13 .pk13 { position: absolute; z-index: 3; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 5px; border: 2px solid #fff; background: rgba(0,0,0,.45); color: var(--accent-ink, #1a1408); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.t13:not(.picked) .pk13 { color: transparent; }
.t13.picked .pk13 { background: var(--accent); border-color: var(--accent); }
.dock13.pick19 { border-top-color: var(--accent-line); }
.dock13 .pickbar b { font-size: 12px; line-height: 1.25; white-space: normal; }
.dock13 .pickbar .pkrow19 { display: flex; align-items: center; gap: 6px; }

/* 2. "Upraviť" opens on two doors: the two buttons under each other, each with its own one-line meaning */
.rb .door19 { justify-content: space-between; text-align: left; }
.rb .door19 > span { white-space: nowrap; }
.rb .door19 small { white-space: normal; text-align: right; line-height: 1.25; }
.rb .door19.off { opacity: .5; cursor: not-allowed; }
.rb .door19.off small { color: var(--muted); }

/* "Upraviť toto video": the operations as cards (the chooser's look from návrh 09), one pressed */
.chgs.fix19 { grid-template-columns: 1fr; }
.chgs.fix19 button b { display: flex; align-items: center; gap: 6px; }
.chgs.fix19 button:disabled b { color: var(--text2); }

/* "Nové": what first (a tall segmented control), then from what */
.seg.big19 { margin-top: 8px; }
.seg.big19 span { height: 34px; font-size: 13.5px; font-weight: 700; }
.ihead .src19 { margin: 12px 0 6px; }
.ihead .seg.full { width: 100%; }

/* dialogs never run under the bottom of a laptop window: the body scrolls, the footer stays */
.pdlg { max-height: calc(100dvh - 24px); display: flex; flex-direction: column; }
.pdlg > form { display: contents; }
.pdlg .pdbody { overflow: auto; min-height: 0; }
.pdlg .sbref img { width: 96px; aspect-ratio: 16/9; border-radius: 6px; object-fit: cover; }
/* a chosen source in a panel row (the frame's video, the end picture): the same line as the storyboard reference */
.insp .sbref { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.insp .sbref img { width: 84px; aspect-ratio: 16/9; border-radius: 6px; object-fit: cover; flex: none; }
.insp .sbref span { min-width: 0; } .insp .sbref b { display: block; font-size: 13px; } .insp .sbref small { display: block; color: var(--muted); font-size: 12px; }
.insp .sbref .mini { margin-left: auto; flex: none; }
.pdlg .pchecks .seg.full { margin-top: 4px; }
/* the upload sheet as a dialog (the hub of návrh 17 with one question less) */
.uh19 .uh-row { padding: 12px 0; }
.uh19 .uh-b { justify-content: flex-start; } .uh19 .uh-b .btn { flex: 0 0 auto; }
.pdlg .sbref { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pdlg .sbref video { width: 120px; aspect-ratio: 16/9; border-radius: 6px; object-fit: cover; background: #000; }
.pdlg .sbref b { display: block; } .pdlg .sbref small { color: var(--muted); }

/* a toast above the picture (the portal's .msg.ok) stays one line */
.cmain > .msg.ok.small { align-self: flex-start; padding: 4px 10px; border-radius: 8px; }
/* the picker's "Vybrať v páse…" link looks like the other links of the pop */
.pick-pop .pick-link .tip { margin-left: 4px; vertical-align: middle; }

@media (max-width: 640px) {
  .stav19 { flex-wrap: wrap; }
  .dg19 { width: 18px; }
  .rb .door19 { flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding: 8px 12px; }
  .rb .door19 small { text-align: left; }
  /* while picking for a row the strip's head (what to pick, Zrušiť) must be visible on a phone too (Codex 18. 10.) */
  .dock13.pick19 { grid-template-columns: 96px minmax(0,1fr) !important; }
  .dock13.pick19 .dhead { display: flex; }
  .dock13.pick19 .pickbar b { font-size: 11.5px; }
}

/* port (návrh 19 → portál, 18. 10.): what the server-drawn pages need beside the design's rules */
/* a picked video in a panel row (the motion's N1 or V2) plays as its thumbnail, as a picture does */
.insp .sbref video { width: 84px; aspect-ratio: 16/9; border-radius: 6px; object-fit: cover; flex: none; background: #000; }
/* "Odkiaľ je video?" shows the fields of the answer, without JavaScript too */
.pdlg form:has(input[name="povod"][value="own"]:checked) [data-povod="tool"],
.pdlg form:has(input[name="povod"][value="tool"]:checked) [data-povod="own"] { display: none; }
/* ⇪ Nahrať: "Vybrať súbor" is the file field's own label; "Nahrať" sends it where there is no script */
.uh19 .uh-b label.btn { cursor: pointer; }
.js [data-up19-go], .js [data-nove19-go], .js [data-pick19-go], .js [data-nojs-note] { display: none; }
/* Upraviť panels (Peter 18. 10.): "V4 ostane, vznikne nová verzia" as plain words, the other door a clear link → */
.ihead .from19 { margin: 6px 0 0; font-size: 12.5px; color: var(--text2); line-height: 1.5; }
.ihead .from19 p { margin: 0; }
.ihead .from19 .diff19 { color: var(--muted); font-size: 12px; }
.ihead .from19 .go19 { color: var(--accent); font-weight: 650; text-decoration: none; white-space: nowrap; margin-left: 6px; }
.ihead .from19 .go19:hover, .ihead .from19 .go19:focus-visible { text-decoration: underline; }
/* "Čo s videom" and "Výsledok": small choices ◉/○ in rows, not buttons */
.rd19 { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; box-sizing: border-box; }
.ops19, .usz19s { display: flex; flex-direction: column; gap: 1px; }
.ops19 > .op19, .usz19s > .usz19 { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 6px; margin: 0 -6px; border-radius: 6px; font-weight: 400;
  font-size: 12.5px; color: var(--text2); text-decoration: none; }
.op19 b, .usz19 b { font-weight: 650; color: var(--text); white-space: nowrap; }
.op19 small { color: var(--muted); font-size: 11.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op19.on .rd19, .usz19 input:checked + .rd19 { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 2.5px, transparent 3px); }
.op19.on b { color: var(--accent); }
a.op19:hover, a.op19:focus-visible, .usz19:not(.off):hover { background: var(--raised, rgba(255,255,255,.04)); }
a.op19:hover b { color: var(--accent); }
.op19.off, .usz19.off { color: var(--faint); }
.op19.off b, .usz19.off b, .op19.off .rd19, .usz19.off .rd19 { color: var(--faint); border-color: var(--line2); }
.op19 .tip, .usz19 .tip { margin-left: auto; }
.usz19 { cursor: pointer; position: relative; }
.usz19.off { cursor: default; }
.usz19 input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.usz19 input:focus-visible + .rd19 { outline: 2px solid var(--accent); outline-offset: 2px; }
.usz19 b { min-width: 44px; }
.usz19 .d { color: var(--text2); font-variant-numeric: tabular-nums; }
.usz19 .t { color: var(--text2); white-space: nowrap; }
.usz19 .p { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.usz19.off .d { color: var(--faint); }
.usz19-now { margin-left: auto; font-variant-numeric: tabular-nums; }
/* the strip keeps its shape at every height (Peter 18. 10.: the dock dragged up broke it): + Nové and ⇪ Nahrať are solid
   and of a fixed width, under each other when the strip is tall; the tiles slide under a clear edge. The dock grows
   only as far as several tiles stay in sight (portal.js, 200 px). */
.dstrip { container: strip19 / size; }
.new19 { padding-right: 8px; border-right: 1px solid var(--line); box-shadow: 8px 0 10px -6px rgba(0,0,0,.85); }
.new19 .t13.tnew { aspect-ratio: auto; width: 72px; background-color: #12161A; background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); }
.new19 .t13.tnew.up19 { background-image: none; background-color: var(--raised); }
@container strip19 (min-height: 132px) {
  .new19 { flex-direction: column; gap: 6px; }
  .new19 .t13.tnew { width: 88px; height: auto; flex: 1 1 0; min-height: 0; }
}
