/* návrh 58 (Peter 12. 11.): Pedagóg → Práce študentov — the prototype's list and side panel, its classes prefixed w58 so
   none meets the portal's .row/.pill/.seg/.thumb (ported from scratchpad/navrh58/navrh-58-prace.html, tokens of portal.css) */
.w58 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 560px; }
.w58list { padding-block: 14px; padding-right: 16px; min-width: 0; }
.w58side { border-left: 1px solid var(--line); background: var(--panel); padding: 14px 16px; min-width: 0; }
@media (max-width: 900px) { .w58 { grid-template-columns: 1fr; } .w58list { padding-right: 0; } .w58side { border-left: 0; border-top: 1px solid var(--line); } }
.w58head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.w58head h1 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.w58tasks:not(:empty) { display: grid; gap: 8px; margin-bottom: 12px; }
.w58filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.w58filters a { border: 1px solid var(--line2); border-radius: 999px; padding: 4px 11px; color: var(--text2); font-weight: 600; font-size: 13px; text-decoration: none; }
.w58filters a:hover { border-color: var(--control); color: var(--text); }
.w58filters a[aria-pressed="true"] { background: var(--warn-bg); border-color: var(--accent); color: var(--text); }
.w58filters .n { color: var(--muted); font-weight: 400; margin-left: 4px; }
.w58rows { display: flex; flex-direction: column; gap: 6px; }
.w58row { display: grid; grid-template-columns: 96px minmax(0, 1.5fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--text); text-decoration: none; }
.w58row:hover { border-color: var(--line2); text-decoration: none; }
.w58row[aria-current="true"] { border-color: var(--accent); background: var(--raised); }
.w58thumb { width: 96px; aspect-ratio: 16/9; border-radius: 6px; background: linear-gradient(135deg, #2b3338, #1a1f22); position: relative; overflow: hidden; }
.w58thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w58thumb.final::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); font-size: 15px; background: rgba(0,0,0,.25); }
.w58thumb.empty { background: repeating-linear-gradient(45deg, #1c2124, #1c2124 6px, #191d20 6px, #191d20 12px); }
.w58who b { display: block; overflow-wrap: anywhere; } .w58who span { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.w58state { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.w58pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text2); }
.w58dot { width: 8px; height: 8px; border-radius: 50%; background: var(--control); flex: none; }
.w58dot.wait { background: var(--accent); } .w58dot.ok { background: var(--ok); } .w58dot.back { background: var(--warn); }
.w58dot.chg { background: var(--info); } .w58dot.none { background: transparent; border: 1px solid var(--control); }
.w58when { color: var(--muted); font-size: 12.5px; white-space: nowrap; text-align: right; }
@media (max-width: 640px) { .w58row { grid-template-columns: 72px minmax(0, 1fr); } .w58thumb { width: 72px; } .w58state, .w58when { grid-column: 2; text-align: left; } }
.w58title { font-size: 18px; margin: 2px 0 8px; overflow-wrap: anywhere; }
.w58seg { display: flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; margin: 10px 0; }
.w58seg a { flex: 1; padding: 6px 8px; color: var(--muted); font-weight: 600; font-size: 13px; text-align: center; text-decoration: none; }
.w58seg a[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.w58player { display: block; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-sm); border: 1px solid var(--line); max-width: 100%; }
.w58player.w58none { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.w58strip { display: flex; gap: 4px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; }
.w58strip a { flex: none; width: 54px; aspect-ratio: 16/9; border-radius: 4px; background: linear-gradient(135deg, #2b3338, #1a1f22); position: relative; overflow: hidden; color: var(--text); text-decoration: none; }
.w58strip a.gap { background: repeating-linear-gradient(45deg, #1c2124, #1c2124 5px, #191d20 5px, #191d20 10px); }
.w58strip img, .w58strip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.w58strip span { position: absolute; left: 2px; bottom: 1px; font-size: 10px; text-shadow: 0 1px 2px #000; }
.w58kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 13px; margin: 10px 0; }
.w58kv dt { color: var(--muted); } .w58kv dd { margin: 0; overflow-wrap: anywhere; }
.w58note { background: var(--info-bg); border: 1px solid var(--info-line); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; margin: 10px 0; }
.w58grp { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 14px 0 6px; }
.w58acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.w58decide { position: static; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }  /* .panel is sticky on the hand-in page */
.w58strip a[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.w58playing { margin: 4px 0 0; color: var(--muted); }
/* a narrow screen: the chosen film's panel first, the list under it (previerka e1 pravidla-5) */
@media (max-width: 900px) { .w58side { order: -1; border-top: 0; border-bottom: 1px solid var(--line); } }
/* návrh 58 etapa 2: the finished film in Odovzdanie and in a hand-in's detail */
.hfinal video { display: block; width: 100%; max-height: 150px; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.hfnow { display: grid; gap: 4px; margin: 6px 0; }
.hfup { margin-top: 6px; }
/* the file field is visually hidden, not hidden: Tab reaches it and Enter or Space opens the picker (Codex 17. 11.) */
.hfup label.btn { position: relative; }
.hfup label.btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Peter 17. 11.: the film from the portal first, the finished film from an editing room the second way, its upload
   inside that choice; nothing to hand in says what to do at the top of the form, in the warning colours */
.hterm { color: var(--faint); font-size: 11px; font-weight: 400; margin-left: 4px; white-space: nowrap; }
.hopt { display: grid; gap: 4px; min-width: 0; }
.hopt .hfup, .hopt .hfnow { margin: 0 0 0 26px; }
.hopt .hfup { display: flex; align-items: center; gap: 8px; }
.hopt .hfnow video { display: block; width: 100%; max-height: 150px; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.hwarn { display: grid; gap: 8px; justify-items: start; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--text); font-size: 13px; }
.hwarn p { margin: 0; } .hwarn b { color: var(--warn); }
/* the strip on top never cuts a shot's number: each block is at least as wide as its words, a long film wraps to rows */
.ftl.hstrip .ftl-track { flex-wrap: wrap; height: auto; row-gap: 4px; }
.ftl.hstrip .seg1 { height: 38px; min-width: max-content; overflow: visible; }
.hwhat { border: 0; margin: 0; padding: 12px 18px; display: grid; gap: 6px; min-width: 0; }
.hwhat legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; }
.hwhat .opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 8px; font-size: 13px; }
.hwhat .opt small { grid-column: 2; color: var(--muted); }
.hwhat .opt input[disabled] ~ b { color: var(--muted); }
[data-sub-final] { margin: 0 0 12px; }
section[data-sub-final] video { max-height: 320px; }
/* návrh 58 etapa 2d: "Odvtedy upravené" beside the newest hand-in (Odovzdanie, the film's head) */
.st.chg { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
[data-handin-since] { margin-top: 4px; }
/* Peter 24. 11.: a shot without a video in the film shows its own picture; a shot with one has its picture beside */
.w58player.w58still { margin: 0; overflow: hidden; display: grid; place-items: center; }
.w58player.w58still img { width: 100%; height: 100%; object-fit: contain; display: block; }
.w58shotpic { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; color: var(--text2); text-decoration: none; }
.w58shotpic img { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; }
.w58shotpic:hover span { text-decoration: underline; }
