/* Návrh 07 · Pas filmu (docs/navrh-portalu-2026-10/navrh-07/index.html, block „návrh 07: Pas filmu“), copied as it is
   (Peter 13. 10.: OK). Loaded after navrh04.css; pas.html (the download) inlines navrh04.css and this file. Only the
   prototype's own frame (demo bar, dialogs of other screens) is left out; app-only additions are at the end. */
.src.ai { background: transparent; color: var(--c-card, #C9A7F0); border: 1px solid currentColor; }
.pframes .src { margin-top: 5px; }
.pfacts { margin: 4px 0 14px; } .pfacts .lbl { display: flex; align-items: center; gap: 6px; }
.pfacts ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; font-size: 13px; }
.pfacts li b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pexpl { font-size: 14.5px; line-height: 1.6; max-width: 68ch; } .pexpl p { margin: 0 0 10px; }
.pfinalrev textarea.field { padding: 10px 12px; display: block; line-height: 1.55; font-size: 13.5px; resize: vertical; }
.pafter { border-top: 1px dashed var(--line); padding-top: 8px; }
.pstats { grid-template-columns: repeat(5, minmax(0,1fr)); } .pstats small { display: block; font-size: 11.5px; margin-top: 3px; }
.plegend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 10px 0 14px; } .plegend span:not(.src) { display: inline-flex; gap: 6px; align-items: center; }
.src { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.src.a { background: var(--raised); color: var(--text2); } .src.d { background: transparent; color: var(--info); border: 1px dashed var(--info); }
.psec h2 .src, .pbody h4 .src { text-transform: none; letter-spacing: 0; }
.pbody h4 .sp { flex: 1; } .pbody h4 .linkish { text-transform: none; letter-spacing: 0; }
.pdecl { font-size: 12.5px; grid-template-columns: 130px minmax(0,1fr); }
.pday > b small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.ppostkv { grid-template-columns: 140px minmax(0,1fr); }
.pcard.pfinal { flex-direction: row; align-items: center; gap: 14px; margin-top: 8px; } .pfinal img { width: 140px; max-width: 40%; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; }
.paitext { font-size: 14px; line-height: 1.55; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--field); border-radius: 0 8px 8px 0; }
.pdlgwrap { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 60; padding: 16px; }
.pdlg { width: 520px; max-width: 100%; max-height: calc(100% - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; display: flex; flex-direction: column; }
.pdlg header, .pdlg footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; }
.pdlg header h2 { margin: 0; font-size: 16px; } .pdlg footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.pdbody { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; } .pdbody label { display: block; } .pdbody .field { width: 100%; }
.pdrop { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px dashed var(--line2); border-radius: 10px; background: var(--field); color: var(--text2); text-align: left; }
.pdbody textarea.field { padding: 9px 11px; display: block; }
.pdrop svg { width: 22px; height: 22px; } .pdrop small { display: block; color: var(--muted); }
.ppage { max-width: 1240px; }
.pline { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pacts .btn svg { width: 15px; height: 15px; }
.pcrumb { margin-bottom: 8px; }
.pwhich { margin-top: 12px; }
.pgrid { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 28px; align-items: start; }
.ptoc { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.ptoc a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; margin-left: -1px; border-left: 2px solid transparent; }
.ptoc a:hover { color: var(--text); border-left-color: var(--accent); }
.pmain { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.psec { scroll-margin-top: 80px; min-width: 0; }
.psec h2 { font-size: 17px; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.prowh { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.prowh h2 { margin: 0; }
.psh { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.pstats { margin-bottom: 12px; } .pstats .bar { padding: 0 !important; border: 0 !important; max-width: 140px; }
.pmodels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pmodels .lbl { margin: 0 6px 0 0; }
.pcheck { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pci { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; }
.pci + .pci { border-top: 1px solid var(--line); }
.pci small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pshot { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 8px; scroll-margin-top: 80px; }
.pshot.open { border-color: var(--line2); }
.prow { width: 100%; display: grid; grid-template-columns: 76px minmax(0,1fr) auto auto 16px; gap: 14px; align-items: center; padding: 8px 14px 8px 8px; background: none; border: 0; color: inherit; text-align: left; }
.prow .chev { transition: transform .15s; }
.pshot.open .prow .chev { transform: rotate(180deg); }
.pth { width: 76px; aspect-ratio: 16/9; border-radius: 7px; overflow: hidden; background: var(--field); display: grid; place-items: center; }
.pth img { width: 100%; height: 100%; object-fit: cover; }
.pth .gap { font-size: 10.5px; color: var(--faint); }
.ptt { min-width: 0; } .ptt b { display: block; font-size: 14px; } .ptt small { color: var(--muted); font-size: 12.5px; }
.pbody { border-top: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.pbody h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pplan + .pplan { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pvh { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.kv dd.chg { background: var(--warn-bg); border-radius: 4px; padding: 0 5px; margin-left: -5px; }
.pframes { display: flex; flex-wrap: wrap; gap: 12px; }
.pframes figure { margin: 0; width: 200px; max-width: 100%; }
.pframes img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; background: var(--field); display: block; }
.pframes figcaption { margin-top: 6px; font-size: 12.5px; } .pframes figcaption small { display: block; color: var(--muted); }
.ptry { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column; gap: 7px; }
.ptry + .ptry { margin-top: 8px; }
.ptry { flex-direction: row; align-items: flex-start; gap: 12px; } .ptc { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.ptimg { position: relative; flex: none; width: 112px; aspect-ratio: 16/9; border-radius: 7px; overflow: hidden; background: var(--field); display: grid; place-items: center; font-size: 11px; color: var(--faint); }
.ptimg img { width: 100%; height: 100%; object-fit: cover; } .ptimg i { position: absolute; left: 6px; bottom: 4px; font-style: normal; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; }
.ptimg.warn { color: var(--warn); }
.ptry.chosen { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.ptop { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; }
.ptop .sp, .pch .sp { flex: 1; }
.pill.off { background: var(--raised); color: var(--faint); }
.pmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text2); }
.pnote { font-size: 12.5px; color: var(--warn); }
.pdec { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .pdec i { color: var(--faint); font-style: normal; }
.ptext { display: flex; flex-direction: column; gap: 10px; } .ptext p { margin: 0; font-size: 13px; }
.ptext .composed { white-space: pre-wrap; overflow-wrap: anywhere; }
.paid { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.pcard, .psub { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 13px 15px; display: flex; flex-direction: column; gap: 10px; }
.pcard + .pcard, .psub + .psub { margin-top: 8px; }
.pch { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pch p, .psub p { margin: 0; }
.pcv { display: flex; flex-wrap: wrap; gap: 6px; }
.pci2 { display: flex; flex-wrap: wrap; gap: 10px; }
.pci2 figure { margin: 0; width: 120px; } .pci2 img { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 7px; display: block; }
.pci2 figcaption { font-size: 12px; margin-top: 4px; } .pci2 figcaption small { display: block; color: var(--muted); }
.ptbl { margin-bottom: 12px; }
.pzv { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 12px; }
.pzv .ptbl { margin: 0; }
.pduo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; } .pduo > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pduo code { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.pday { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.pday > b { font-size: 13px; } .prs { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pt { display: grid; grid-template-columns: 44px 10px minmax(0,1fr); gap: 8px; align-items: center; font-size: 13px; }
.pt .pk { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pt.decision .pk { background: var(--accent); } .pt.attempt .pk { background: var(--info); }
.pfrozen { margin-bottom: -10px; }
.pprintwrap { background: #E9E7E2; min-height: 100vh; padding: 18px 16px 60px; color: #1D2124; }
.pprintbar { max-width: 860px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pprintbar .muted { color: #5C6368; }
.paper { --text: #1D2124; --text2: #363D42; --muted: #5F676D; --faint: #8F979C; --line: #DCDFE1; --line2: #C5CACD; --field: #F3F4F5; --raised: #ECEEEF; --panel: #FFFFFF;
  --ok: #1E7A4C; --ok-bg: #E2F2E9; --warn: #8A5B00; --warn-bg: #FBEFD6; --bad: #A33A2E; --bad-bg: #F8E3E0; --info: #2D5F92; --info-bg: #E2ECF6; --accent: #A0680A; --c-card: #7A4FB0;
  max-width: 860px; margin: 0 auto; background: #fff; color: var(--text); padding: 40px 44px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 30px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 28px; }
.paper .pshot, .paper .pcheck, .paper .pcard, .paper .psub { break-inside: avoid; }
.paperh { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--text); }
.paperh h1 { margin: 4px 0; font-size: 30px; font-weight: 800; } .paperh p { margin: 0; color: var(--muted); }
.paperh .kv { min-width: 0; grid-template-columns: 82px minmax(0,1fr); }
.paperf { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
.paper .prow { cursor: default; } .paper .prow .chev { display: none; } .paper .prow { grid-template-columns: 76px minmax(0,1fr) auto auto; }
.paper .seg button[aria-pressed="true"] { background: #fff; }
@media (max-width: 900px) {
  .pgrid { grid-template-columns: 1fr; gap: 14px; }
  .ptoc { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); background: var(--bg); padding: 4px 0; }
  .ptoc a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; padding: 6px 10px; margin: 0; }
  .pduo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .prow { grid-template-columns: 64px minmax(0,1fr) 16px; gap: 10px; }
  .prow > .small, .prow > .pill { display: none; }
  .pth { width: 64px; }
  .pstats { grid-template-columns: repeat(2, minmax(0,1fr)); } .pstats > div:nth-child(odd) { border-left: 0; padding-left: 0; } .pstats > div:nth-child(5) { grid-column: 1 / -1; }
  .pdecl, .ppostkv { grid-template-columns: 1fr; } .pcard.pfinal { flex-direction: column; align-items: stretch; } .pfinal img { max-width: 100%; width: 100%; }
  .pday { grid-template-columns: 1fr; }
  .pci { grid-template-columns: auto minmax(0,1fr); } .pci .linkish { grid-column: 2; justify-self: start; }
  .paper { padding: 22px 16px; } .pprintwrap { padding-inline: 0; }
  .pbody { padding: 12px; }
  .ptry { flex-direction: column; } .ptimg { width: 100%; max-width: 220px; }
}
@media print { .demo, .pprintbar { display: none !important; } .pprintwrap { background: #fff; padding: 0; } .paper { box-shadow: none; padding: 0; max-width: none; } }

/* --- app-only additions (portal): the design's buttons are <details> here, so a shot and its texts open without script */
details.pshot > summary { list-style: none; cursor: pointer; }
details.pshot > summary::-webkit-details-marker { display: none; }
details.pshot[open] { border-color: var(--line2); }
details.pshot[open] > .prow .chev { transform: rotate(180deg); }
.prow .chev { font-size: 12px; color: var(--muted); }
.pth video, .ptimg video { width: 100%; height: 100%; object-fit: cover; }
details.ptextd > summary { list-style: none; cursor: pointer; display: inline-flex; gap: 4px; }
details.ptextd > summary::before { content: "▸"; } details.ptextd[open] > summary::before { content: "▾"; }
details.ptextd > summary::-webkit-details-marker { display: none; }
details.ptextd .ptext { margin-top: 8px; }
progress.pmeter { display: block; width: 100%; max-width: 140px; height: 4px; margin-top: 6px; border: 0; border-radius: 2px; background: var(--raised); appearance: none; }
progress.pmeter::-webkit-progress-bar { background: var(--raised); border-radius: 2px; }
progress.pmeter::-webkit-progress-value { background: var(--ok); border-radius: 2px; }
progress.pmeter::-moz-progress-bar { background: var(--ok); border-radius: 2px; }
.pout { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.ptime[data-filter="decision"] .pt:not(.decision), .ptime[data-filter="attempt"] .pt:not(.attempt) { display: none; }
.pprintbar .btn { cursor: pointer; }
body.pprintfile { background: #E9E7E2; }
@media print { body.pprintfile { background: #fff; } details.pshot > summary .chev { display: none; } }
.pfilms { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ws-outcome { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 2px; }
.seg.wrap { flex-wrap: wrap; } .seg.wrap label { flex: 1 1 45%; } .seg.wrap span { height: auto; min-height: 28px; text-align: center; white-space: normal; }
.pform { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; } .pform label { display: block; } .pform .field { width: 100%; }
.pform textarea.field, .pnoteform textarea.field { padding: 9px 11px; display: block; line-height: 1.5; resize: vertical; }
.pchecks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; } .pchecks legend { margin-bottom: 6px; }
.pcheck1 { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
details.pedit > summary { list-style: none; cursor: pointer; } details.pedit > summary::-webkit-details-marker { display: none; }
.pnoteform .field { width: 100%; }
.pclipsh { margin: 14px 0 8px; }
.pfinal video { width: 220px; max-width: 45%; aspect-ratio: 16/9; border-radius: 7px; background: #000; }
@media (max-width: 560px) { .pfinal video { width: 100%; max-width: 100%; } }
.ws-external { margin: 10px 0 4px; }
/* the school on the paper (Peter 17. 10.: its logo and study program on the PDF) */
.paperorg { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.paperorg img { height: 42px; width: auto; } .paperorg b { display: block; font-size: 14px; }
.paperorg small { display: block; color: var(--muted); font-size: 12.5px; } .paperorg small:empty { display: none; }
/* Peter 24. 11.: ▶ plays — a version's face is a link to its video; the player opens in the row, large */
.pplay { display: block; width: 100%; height: 100%; position: relative; color: inherit; }
.pplay:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pplayer { margin: 8px 0; }
.pplayer video { display: block; width: 100%; max-width: 720px; aspect-ratio: 16/9; background: #000; border-radius: 7px; }
