/* Návrh 04 (docs/navrh-portalu-2026-10/navrh-04/index.html), its stylesheet as it is (Peter 10. 10.: "prenes to
   z návrhu"); only the prototype's own frame (#app, the demo bar, the body as a fixed-height column) is left out.
   Loaded after portal.css: where both name the same thing, the design wins. Do not edit here; edit the design and
   copy again, app-only additions go to the end of portal.css. */
/* Layout: a working app, not a page — rail | viewer | inspector at a shot, a composer beside results in the quick
   test, an action list first for the teacher. Dark single look of the AI ateliér identity (INK, PAPER, AMBER). */
@font-face { font-family: Inter; src: url("inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #121517; --head: #16191C; --panel: #1A1E21; --raised: #22272A; --field: #101315; --hover: #262C30;
  --line: #262C30; --line2: #353D42; --text: #F5F4F0; --text2: #CFCFCA; --muted: #9EA3A2; --faint: #7D8382;
  --accent: #F5AA28; --accent-hi: #FFBD4A; --accent-ink: #141719; --accent-soft: rgba(245,170,40,.13); --accent-line: rgba(245,170,40,.48);
  --ok: #7FD3A2; --ok-bg: rgba(127,211,162,.12); --warn: #F0C672; --warn-bg: rgba(240,198,114,.12);
  --bad: #F09A8B; --bad-bg: rgba(240,154,139,.12); --info: #9CC6EE; --info-bg: rgba(156,198,238,.12);
  --c-cam: #9CC6EE; --c-card: #C9A7F0; --c-text: #F5F4F0;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 10px; --r-sm: 8px; --ctl: 34px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, video { max-width: 100%; display: block; }
svg.chev { width: 12px; height: 12px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* app chrome */
.top { display: flex; align-items: center; gap: 22px; height: 56px; padding: 0 16px 0 20px; background: var(--head); border-bottom: 1px solid var(--line); }
.brand { flex: none; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand img.logo { height: 22px; width: auto; }
.brand .org { height: 26px; border-radius: 5px; background: #fff; padding: 2px 5px; }
.mainnav { display: flex; gap: 2px; }
.mainnav button { white-space: nowrap; background: none; border: 0; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.mainnav button:hover { color: var(--text); background: var(--raised); }
.mainnav button[aria-current="page"] { color: var(--text); background: var(--raised); }
.top .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--text2); font-size: 13px; font-weight: 600; }
.iconbtn:hover { background: var(--raised); color: var(--text); }
.iconbtn svg { width: 15px; height: 15px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: #3a2f1a; color: var(--accent); font-size: 11px; font-weight: 800; }
.filmbar { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; }
.filmbar .film { font-weight: 800; margin-right: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.filmbar button.tab { background: none; border: 0; height: 44px; padding: 0 12px; color: var(--muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.filmbar button.tab:hover { color: var(--text); }
.filmbar button.tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- controls (the kit) ---------- */
.lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 7px; }
.field, .selbtn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: var(--ctl); padding: 0 11px; border-radius: var(--r-sm); background: var(--field); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; text-align: left; }
.field:hover, .selbtn:hover { border-color: var(--line2); }
.field:focus, .selbtn:focus-visible, .selbtn[aria-expanded="true"] { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.field::placeholder, textarea::placeholder { color: var(--faint); }
.selbtn .val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selbtn .chev { width: 12px; height: 12px; color: var(--muted); flex: none; }
.selbtn.ghost { background: transparent; border-color: transparent; padding: 0 6px; justify-content: flex-end; color: var(--text); font-weight: 600; }
.selbtn.ghost:hover { background: var(--hover); }
.textbox { border-radius: var(--r-sm); background: var(--field); border: 1px solid var(--line); }
.textbox:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.textbox textarea { display: block; width: 100%; min-height: 96px; resize: vertical; border: 0; background: transparent; padding: 10px 11px 4px; font-size: 14px; line-height: 1.5; outline: none; }
.textbox .tb-foot { display: flex; align-items: center; gap: 6px; padding: 4px 6px 6px 8px; }
.textbox .tb-foot .count { margin-left: auto; font-size: 11.5px; color: var(--faint); padding-right: 4px; }
.mini { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 6px; border: 0; background: var(--raised); color: var(--text2); font-size: 12px; font-weight: 600; }
.mini:hover { background: var(--hover); color: var(--text); }
.mini svg { width: 13px; height: 13px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--field); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: #2B3236; color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 1px 3px rgba(0,0,0,.4); }
.seg.full { display: flex; min-width: 0; } .seg.full button { flex: 1; min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--text2); font-size: 12.5px; font-weight: 600; }
.chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: #FFD58A; }
.chip.add { padding: 0 11px; border-style: dashed; background: transparent; color: var(--muted); }
.chip.add:hover { color: var(--text); border-color: var(--line2); }
.chip .x { border: 0; background: none; padding: 0 0 0 2px; color: inherit; opacity: .7; font-size: 14px; line-height: 1; }
.chip.plain { padding: 0 10px; }
.prop { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: center; gap: 8px; min-height: 34px; }
.prop > * { min-width: 0; }
.prop > span { font-size: 13px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.props { display: grid; gap: 4px; }
.info { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-size: 10.5px; font-weight: 800; display: inline-grid; place-items: center; padding: 0; flex: none; font-style: italic; font-family: Georgia, serif; }
.info:hover, .info[aria-expanded="true"] { color: var(--accent); border-color: var(--accent-line); }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text2); background: none; border: 0; padding: 0; }
.switch i { width: 30px; height: 18px; border-radius: 999px; background: #39424A; position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] i { background: var(--accent); }
.switch[aria-checked="true"] i::after { transform: translateX(12px); }
.drop { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line2); border-radius: var(--r-sm); color: var(--muted); font-size: 13px; background: transparent; width: 100%; text-align: left; }
.drop:hover { border-color: var(--accent-line); color: var(--text); }
.drop svg { width: 20px; height: 20px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--hover); border-color: #46505A; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--text2); }
.btn.quiet:hover { background: var(--raised); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hi); }
.btn.big { height: 44px; font-size: 14.5px; font-weight: 800; width: 100%; justify-content: space-between; padding: 0 6px 0 16px; }
.btn.big .price { background: rgba(20,23,25,.16); padding: 5px 10px; border-radius: 6px; font-weight: 800; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--raised); color: var(--text2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.blue { background: var(--info-bg); color: var(--info); }
.pill.nodot::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.off { background: #5A6268; }
.hint { display: flex; gap: 10px; align-items: flex-start; padding: 10px 11px; border-radius: var(--r-sm); background: var(--info-bg); color: var(--text2); font-size: 12.5px; line-height: 1.45; }
.hint b { color: var(--text); }
.hint .acts { display: flex; gap: 6px; margin-top: 7px; }
.hint.warn { background: var(--warn-bg); }
.err { color: var(--bad); font-size: 12.5px; margin-top: 6px; display: flex; gap: 6px; }
.field.invalid { border-color: rgba(240,154,139,.7); box-shadow: 0 0 0 3px var(--bad-bg); }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .faint { color: var(--faint); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* popover menus, the drawer and the dialog live on one layer above the app */
.pop { position: fixed; z-index: 50; min-width: 240px; max-width: 360px; padding: 6px; border-radius: 12px; background: #20262A; border: 1px solid var(--line2); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.pop .opt { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 2px 10px; align-items: start; width: 100%; padding: 8px 10px; border-radius: 8px; background: none; border: 0; text-align: left; color: var(--text); }
.pop .opt:hover:not([aria-disabled="true"]) { background: var(--hover); }
.pop .opt .ck { color: var(--accent); font-weight: 800; }
.pop .opt b { font-weight: 600; font-size: 13.5px; }
.pop .opt small { grid-column: 2 / -1; color: var(--muted); font-size: 12px; line-height: 1.4; }
.pop .opt .side { font-size: 12px; color: var(--text2); white-space: nowrap; }
.pop .opt[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.pop .sep { height: 1px; background: var(--line2); margin: 6px 4px; }
.pop .head { padding: 6px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pop.tip { max-width: 300px; padding: 12px 14px; font-size: 12.5px; color: var(--text2); line-height: 1.5; }
.pop.tip b { color: var(--text); } .pop.tip .src { display: block; margin-top: 8px; color: var(--faint); font-size: 11.5px; }
.thumbs-row { display: flex; gap: 8px; flex-wrap: wrap; } .thumbs-row .ver { flex: 0 0 120px; }
.pop .thumbs { display: grid; grid-template-columns: repeat(3, 88px); gap: 6px; padding: 4px; }
.pop .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 7px; overflow: hidden; background: none; position: relative; }
.pop .thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.pop .thumbs img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.pop .thumbs span { position: absolute; left: 4px; bottom: 3px; font-size: 10.5px; font-weight: 800; background: rgba(0,0,0,.6); padding: 0 5px; border-radius: 4px; }
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(5,7,8,.62); display: grid; place-items: center; padding: 16px; }
.dialog { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.dialog header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 4px; }
.dialog h2 { margin: 0; font-size: 19px; font-weight: 800; }
.dialog .body { padding: 8px 20px 20px; display: grid; gap: 14px; }
.ctx { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer { position: fixed; z-index: 55; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--panel); border-left: 1px solid var(--line2); box-shadow: -30px 0 60px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer h2 { margin: 0; font-size: 16px; }
.drawer .body { padding: 16px 18px; overflow: auto; display: grid; gap: 16px; align-content: start; }
.composed { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; padding: 12px; background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm); }
.composed span { border-radius: 3px; padding: 1px 2px; }
.composed .s-cam { color: var(--c-cam); background: rgba(156,198,238,.08); }
.composed .s-card { color: var(--c-card); background: rgba(201,167,240,.08); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- the shot workspace ---------- */
.ws { flex: 1; min-height: 560px; display: grid; grid-template-columns: 212px minmax(0,1fr) 380px; }
.rail { border-right: 1px solid var(--line); overflow: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.rail .scene { padding: 4px 6px 8px; }
.rail .scene b { display: block; font-size: 13px; }
.shotbtn { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 9px; align-items: center; padding: 6px; border-radius: 9px; border: 1px solid transparent; background: none; text-align: left; color: var(--text); width: 100%; }
.shotbtn:hover { background: var(--raised); }
.shotbtn[aria-current="true"] { background: var(--raised); border-color: var(--accent-line); }
.shotbtn .th { width: 64px; aspect-ratio: 5/3; border-radius: 5px; overflow: hidden; background: repeating-linear-gradient(135deg,#16191B 0 8px,#1A1E21 8px 16px); }
.shotbtn .th img { width: 100%; height: 100%; object-fit: cover; }
.shotbtn .t { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.shotbtn .s { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.rail .foot { margin-top: auto; padding-top: 10px; }
.center > * { flex-shrink: 0; }
.center { overflow: auto; padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.shothead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.shothead h1 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.shothead h1 .no { color: var(--muted); font-weight: 600; margin-right: 8px; }
.intent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; color: var(--text2); }
.intent .k { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; padding: 4px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.step { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 0; background: none; color: var(--muted); text-align: left; }
.step:hover { color: var(--text); background: var(--panel); }
.step[aria-current="step"] { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; border: 1px solid var(--line2); flex: none; }
.step[aria-current="step"] .n { border-color: var(--accent); color: var(--accent); }
.step.done .n { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.step b { display: block; font-size: 13px; font-weight: 600; }
.step small { display: block; font-size: 11.5px; color: var(--muted); }
.viewer { position: relative; border-radius: 12px; overflow: hidden; background: #0A0C0D; border: 1px solid var(--line); aspect-ratio: 16/9; max-height: 56vh; display: grid; place-items: center; }
.viewer > img, .viewer > video { width: 100%; height: 100%; object-fit: contain; }
.viewer .tag { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.viewer .tag span { background: rgba(10,12,13,.78); backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.viewer .empty { text-align: center; max-width: 360px; color: var(--muted); padding: 20px; }
.viewer .empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.viewer.two { aspect-ratio: auto; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.viewer.two figure { margin: 0; background: #0A0C0D; position: relative; }
.viewer.two video { width: 100%; aspect-ratio: 5/3; object-fit: contain; }
.viewer.two figcaption { position: absolute; left: 10px; top: 10px; background: rgba(10,12,13,.78); padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.ver { flex: 0 0 132px; padding: 0; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; overflow: hidden; }
.ver:hover { border-color: var(--line2); }
.ver[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ver img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.ver .m { padding: 6px 8px 7px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 600; }
.ver .m small { font-weight: 400; color: var(--muted); font-size: 11px; }
.ver.new { display: grid; place-items: center; border-style: dashed; color: var(--muted); font-weight: 600; font-size: 12.5px; background: transparent; min-height: 104px; gap: 4px; }
.ver.new[aria-current="true"] { color: var(--accent); }
.ver.new span { font-size: 22px; line-height: 1; }
.filmline { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 10px 12px 12px; }
.filmline .fl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.filmline .fl-head b { color: var(--text); font-size: 13px; }
.filmline .slots { display: flex; gap: 4px; overflow-x: auto; }
.slot { flex: 0 0 116px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--field); color: var(--text); text-align: left; overflow: hidden; }
.slot[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.slot .si { display: block; aspect-ratio: 16/9; background: #0A0C0D; position: relative; }
.slot .si img { width: 100%; height: 100%; object-fit: cover; }
.slot .si.empty { background: repeating-linear-gradient(135deg,#14171A 0 6px,#191D20 6px 12px); display: grid; place-items: center; font-size: 11px; color: var(--warn); font-weight: 600; letter-spacing: .04em; }
.slot .sm { display: flex; justify-content: space-between; gap: 6px; padding: 4px 7px 5px; font-size: 11.5px; font-weight: 600; }
.slot .sm small { color: var(--muted); font-weight: 400; }
.slot.add { flex: 0 0 64px; display: grid; place-items: center; border-style: dashed; color: var(--muted); font-size: 12px; background: transparent; }
.kind { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; background: rgba(10,12,13,.82); color: var(--text); }
.kind.vid { background: var(--accent); color: var(--accent-ink); }
.ver .vi { position: relative; display: block; }
.cmpbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmpbar .ab { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.cmpbar .ab .selbtn { width: auto; min-width: 150px; }
.cmpbar .btn.primary { margin-left: auto; }
.viewer.multi { aspect-ratio: auto; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.viewer.multi figure { margin: 0; background: #0A0C0D; position: relative; }
.viewer.multi video { width: 100%; aspect-ratio: 5/3; object-fit: contain; }
.viewer.multi figcaption { position: absolute; left: 10px; top: 10px; background: rgba(10,12,13,.78); padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.below { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }

.inspector { border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ihead { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.ihead h2 { margin: 3px 0 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ihead .from { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ibody { flex: 1; overflow: auto; }
.sec { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.sec .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sec .row .lbl { margin: 0; }
.fold { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: var(--text); text-align: left; }
.fold .lbl { margin: 0; }
.fold .sum { margin-left: auto; font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.fold .chev { width: 12px; height: 12px; color: var(--muted); transition: transform .15s; flex: none; }
.fold[aria-expanded="true"] .chev { transform: rotate(90deg); }
.fold + .fbody { margin-top: 12px; }
.framepick { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 10px; align-items: center; }
.framepick .th { width: 76px; aspect-ratio: 5/3; border-radius: 6px; overflow: hidden; background: var(--field); border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); font-size: 11px; }
.framepick .th img { width: 100%; height: 100%; object-fit: cover; }
.framepick b { display: block; font-size: 13px; }
.framepick small { color: var(--muted); font-size: 12px; }
.changes { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ifoot { border-top: 1px solid var(--line); padding: 12px 18px 14px; background: #1C2124; display: grid; gap: 10px; }
.ifoot .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.modelrow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.modelrow .spec { font-size: 12px; color: var(--muted); white-space: nowrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--text2); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.linkish:hover { color: var(--accent); }
.linkish svg { width: 13px; height: 13px; }
.kv { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.actions { display: grid; gap: 8px; }
.actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { display: grid; grid-template-columns: 22px 92px minmax(0,1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--field); width: 100%; text-align: left; color: var(--text); }
.choice[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.choice img { width: 92px; aspect-ratio: 5/3; object-fit: cover; border-radius: 5px; }
.choice .r { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); }
.choice[aria-checked="true"] .r { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.choice b { display: block; font-size: 13px; } .choice small { color: var(--muted); font-size: 12px; }

/* ---------- the other screens (návrh 04, druhá časť) ---------- */
.split2 { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 20px; align-items: start; }
.panel { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; position: sticky; top: 16px; }
.panel .sec { border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ecard { padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; overflow: hidden; }
.ecard:hover { border-color: var(--line2); }
.ecard[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ecard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ecard .eb { padding: 10px 12px 12px; display: grid; gap: 4px; }
.ecard .eb b { font-size: 15px; } .ecard .eb small { color: var(--muted); font-size: 12px; }
.slots4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.slots4 .sl { aspect-ratio: 3/4; border-radius: 7px; border: 1px dashed var(--line2); display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; overflow: hidden; position: relative; background: transparent; padding: 0; }
.slots4 .sl img { width: 100%; height: 100%; object-fit: cover; }
.slots4 .sl span { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 10.5px; background: rgba(0,0,0,.6); border-radius: 4px; color: var(--text); padding: 1px 4px; }
.slots4 .sl.full { border-style: solid; border-color: var(--line); }
.tl { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 10px 12px 12px; display: grid; gap: 6px; position: relative; }
.track { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 8px; align-items: stretch; }
.track > span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; }
.lane { display: flex; gap: 3px; min-height: 30px; }
.blk { border-radius: 6px; border: 1px solid var(--line); background: var(--field); overflow: hidden; color: var(--text); text-align: left; padding: 0; position: relative; min-width: 0; }
.blk[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.blk img { width: 100%; height: 46px; object-fit: cover; display: block; }
.blk .bm { display: flex; justify-content: space-between; gap: 4px; padding: 3px 6px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.blk .bm small { color: var(--muted); font-weight: 400; }
.blk.gap { border-style: dashed; border-color: #6b5a2a; background: repeating-linear-gradient(135deg,#14171A 0 6px,#191D20 6px 12px); display: grid; place-items: center; color: var(--warn); font-size: 11px; font-weight: 600; }
.blk.snd { display: grid; place-items: center; font-size: 12px; color: var(--text2); }
.blk.snd.off { color: var(--faint); text-decoration: line-through; }
.lane .add { flex: 1; border: 1px dashed var(--line2); border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.playhead { position: absolute; top: 8px; bottom: 8px; width: 2px; background: var(--accent); left: calc(124px + 38%); border-radius: 2px; pointer-events: none; }
.pbar { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 12.5px; color: var(--muted); }
.rows { display: grid; gap: 8px; }
.srow { display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.srow img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.srow .gapimg { width: 96px; aspect-ratio: 16/9; border-radius: 6px; border: 1px dashed #6b5a2a; display: grid; place-items: center; color: var(--warn); font-size: 11px; }
.srow b { font-size: 13.5px; } .srow p { margin: 2px 0 0; font-size: 12.5px; color: var(--text2); }
.hist { display: grid; gap: 6px; font-size: 13px; }
.hist div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.acard { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; display: grid; gap: 6px; width: 100%; }
.acard[aria-current="true"] { border-color: var(--accent); }
.acard b { font-size: 15px; } .acard p { margin: 0; font-size: 12.5px; color: var(--muted); }
.soon { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.callbig { display: grid; grid-template-columns: 200px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.callbig img { width: 200px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.callbig h2 { margin: 2px 0 4px; font-size: 18px; } .callbig p { margin: 0; color: var(--text2); font-size: 13.5px; }
@media (max-width: 900px) { .split2 { grid-template-columns: 1fr; } .panel { position: static; } .callbig { grid-template-columns: 1fr; } .callbig img { width: 100%; } .track { grid-template-columns: 1fr; } .playhead { display: none; } }

/* ---------- pages ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 26px 24px 60px; }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.phead h1 { margin: 4px 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.phead p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.stats div { padding: 12px 16px 12px 0; } .stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats span { display: block; font-size: 12px; color: var(--muted); } .stats b { font-size: 14px; }
.bar { height: 4px; border-radius: 4px; background: var(--raised); margin-top: 8px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.card { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; text-align: left; color: var(--text); padding: 0; }
.card:hover { border-color: var(--line2); }
.card .im { aspect-ratio: 16/9; background: repeating-linear-gradient(135deg,#16191B 0 10px,#1A1E21 10px 20px); display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.card .im img { width: 100%; height: 100%; object-fit: cover; }
.card .cb { padding: 12px 14px 14px; display: grid; gap: 6px; }
.card .cb b { font-size: 15px; } .card .cb p { margin: 0; font-size: 13px; color: var(--text2); }
.sechead { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }
.sechead h2 { margin: 0; font-size: 18px; }
.quick { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 20px; align-items: start; }
.compose { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; position: sticky; top: 16px; }
.compose .sec { border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: none; position: relative; }
.gallery button[aria-current="true"] { border-color: var(--accent); }
.gallery img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.gallery .st { position: absolute; right: 4px; bottom: 4px; }
.todo { display: grid; gap: 8px; }
.task { display: grid; grid-template-columns: 6px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 14px 12px 0; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.task::before { content: ""; align-self: stretch; background: var(--accent); }
.task.c-info::before { background: var(--info); } .task.c-warn::before { background: var(--warn); }
.task .what { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.task b { display: block; font-size: 14.5px; margin: 2px 0; } .task p { margin: 0; font-size: 13px; color: var(--text2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255,255,255,.015); }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.status { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text2); align-items: center; }
.status span { display: inline-flex; align-items: center; gap: 6px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px; }
.box h3 { margin: 0 0 10px; font-size: 15px; }
.kit { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.kit .box { display: grid; gap: 12px; align-content: start; }
.kit .box > .seg:not(.full) { justify-self: start; }
.kit .repl { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.kit .repl b { color: var(--bad); font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(240,154,139,.5); }
.note { margin-top: 22px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--text2); font-size: 13px; line-height: 1.55; }
.note b { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; background: #2A3136; border: 1px solid var(--line2); padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }

@media (max-width: 1180px) { .ws { grid-template-columns: 168px minmax(0,1fr) 340px; } .shotbtn { grid-template-columns: 1fr; } .shotbtn .th { width: 100%; } }
@media (max-width: 900px) {
  body { height: auto; }   .ws { display: flex; flex-direction: column; min-height: 0; }
  .center { display: contents; }
  .center > * { margin-left: 16px; margin-right: 16px; }
  .shothead { order: 1; margin-top: 14px; } .steps { order: 2; margin-top: 12px; } .viewer { order: 3; margin-top: 12px; }
  .inspector { order: 4; margin-top: 12px; } .strip { order: 5; margin-top: 14px; } .filmline { order: 7; margin: 0 16px 16px; } .below { order: 6; margin: 10px 16px 16px; }
  .rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .rail .scene, .rail .foot { display: none; }
  .shotbtn { flex: 0 0 140px; grid-template-columns: 1fr; }
  .center { padding: 14px 16px; overflow: visible; }
  .inspector { border-left: 0; border-top: 1px solid var(--line); }
  .ifoot { position: sticky; bottom: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0,1fr)); } .step small { display: none; }
  .quick, .duo, .kit { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .mainnav button { padding: 7px 8px; font-size: 13px; }
  .top { gap: 10px; } .top .tools .label { display: none; } .brand .org { display: none; }
}
@media (max-width: 560px) { .brand span { display: none; } .mainnav button.opt { display: none; } .grid4 { grid-template-columns: 1fr; } .phead { flex-direction: column; align-items: stretch; } .page { padding: 18px 16px 50px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Peter 9. 10.: the header and the film tabs were squeezed when a page was longer than the window */
/* timeline: a time ruler, the playhead above every clip, drag to scrub; clips and shots move by dragging */
.ruler { position: relative; height: 22px; border-radius: 6px; background: var(--field); cursor: ew-resize; touch-action: none; }
.ruler span { position: absolute; top: 4px; font-size: 10.5px; color: var(--muted); transform: translateX(-50%); pointer-events: none; }
.ruler span:first-child { transform: none; }
.tl-over { position: absolute; top: 8px; bottom: 10px; left: 132px; right: 12px; pointer-events: none; z-index: 4; }
.tl .playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.tl .playhead i { position: absolute; top: -1px; left: -6px; width: 14px; height: 14px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
[data-drag] { cursor: grab; }
[data-drag]:active { cursor: grabbing; }
.is-dragging { opacity: .45; }
.drop-before { box-shadow: -3px 0 0 var(--accent) !important; }
.drop-after { box-shadow: 3px 0 0 var(--accent) !important; }
.draghint { margin: -6px 0 12px; font-size: 12.5px; color: var(--muted); }
/* comparing: choose right under the picture */
.viewer.multi figure.picked { box-shadow: inset 0 0 0 2px var(--accent); }
.viewer.multi .pickbtn { position: absolute; right: 10px; bottom: 10px; height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
/* Peter 9. 10.: three strips of alike thumbnails blur into one. Proposal: one kind of thing = one shape.
   Shots = a list (a switcher on the phone), versions = the one strip of pictures, the film = a timeline. */
.shotswitch { display: none; }
.rail.n2 .shotbtn { grid-template-columns: 34px minmax(0,1fr); padding: 7px 8px; }
.rail.n2 .num { font-size: 13px; font-weight: 800; color: var(--muted); }
.rail.n2 .shotbtn[aria-current="true"] .num { color: var(--accent); }
.verbox { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); padding: 10px 12px 12px; display: grid; gap: 8px; }
.verbox .vh { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--muted); }
.verbox .vh b { color: var(--text); font-size: 13px; }
.verbox .vh .more { margin-left: auto; }
.verbox .strip { padding-bottom: 0; }
.verbox .ver { flex-basis: 156px; background: var(--raised); }
.verbox .ver .vi { position: relative; display: block; }
.verbox .ver .stt { position: absolute; right: 6px; top: 6px; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgba(10,12,13,.8); color: var(--text2); }
.verbox .ver .stt.ok { color: var(--ok); } .verbox .ver .stt.off { color: var(--muted); }
.ftl { border-radius: 12px; border: 1px solid #262B2F; background: #0E1113; padding: 10px 12px 12px; display: grid; gap: 8px; }
.ftl .fh { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ftl .fh b { color: var(--text); font-size: 13px; }
.ftl .fh .play { margin-left: auto; color: var(--text2); background: none; border: 0; font-weight: 600; font-size: 12.5px; }
.ftl .track1 { display: flex; gap: 2px; height: 38px; }
.ftl .seg1 { min-width: 0; border-radius: 5px; border: 1px solid #2F363B; background: #1B2024; color: var(--text2); display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 8px; font-size: 11.5px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.ftl .seg1 small { font-weight: 400; color: var(--muted); }
.ftl .seg1.gap { border-style: dashed; border-color: #6b5a2a; background: repeating-linear-gradient(135deg,#14171A 0 6px,#191D20 6px 12px); color: var(--warn); }
.ftl .seg1[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; color: var(--text); }
.ftl .ticks { position: relative; height: 12px; font-size: 10px; color: var(--faint); }
.ftl .ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.ftl .ticks span:first-child { transform: none; }
.ftl .legend2 { font-size: 11.5px; color: var(--faint); }
@media (max-width: 900px) {
  .ws.n2 .rail { display: none; }
  .ws.n2 .shotswitch { order: 0; display: flex; align-items: center; gap: 6px; margin: 10px 16px 0; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); }
  .shotswitch .arr { width: 40px; height: 40px; border-radius: 9px; border: 0; background: var(--raised); color: var(--text); font-size: 18px; flex: none; }
  .shotswitch .arr:disabled { opacity: .35; }
  .shotswitch .cur { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 0; background: none; color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shotswitch .cur .dot { flex: none; }
  .ws { flex: none; } .inspector { flex-shrink: 0; }  /* on a phone the page scrolls: nothing is squeezed to fit */
  .ws.n2 .verbox { order: 4; margin-top: 12px; } .ws.n2 .inspector { order: 5; } .ws.n2 .below { order: 6; } .ws.n2 .ftl { order: 7; margin: 0 16px 16px; }
  .verbox .ver { flex-basis: 140px; }
}
/* trimming, the hand-in strip, help */
.blk .trimh { position: absolute; top: 0; bottom: 0; width: 8px; background: var(--accent); cursor: ew-resize; touch-action: none; z-index: 2; }
.blk .trimh.l { left: 0; border-radius: 5px 0 0 5px; } .blk .trimh.r { right: 0; border-radius: 0 5px 5px 0; }
.blk.trimmed .bm small { color: var(--accent); }
.trimrow { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 6px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.trimrow .btn { height: 30px; }
.h3s { margin: 16px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rail.n2 .shotbtn { grid-template-columns: 34px minmax(0,1fr); align-items: start; }
.rail.n2 .txt { min-width: 0; }
.rail.n2 .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail.n2 .s { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rail.n2 .s .sw { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rail.n2 .infilm { margin-left: auto; flex: none; }
.rail .scene .eyebrow { display: flex; align-items: center; gap: 6px; }
.fixed { height: 34px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; background: var(--field); border: 1px solid var(--line); color: var(--text2); font-size: 13px; }
.fixed + .fixed, .seg + .fixed, .fixed + .seg { margin-top: 8px; }
/* narrower windows: the three columns shrink before anything scrolls sideways */
@media (max-width: 1280px) { .ws { grid-template-columns: 196px minmax(0,1fr) 340px; } }
.ibody { overflow-x: hidden; }
.framepick { grid-template-columns: 64px minmax(0,1fr) auto; } .framepick .th { width: 64px; }
.rail.n2 .infilm { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.rail.n2 .infilm.gap { background: transparent; color: var(--warn); border: 1px dashed #6b5a2a; }
.ws.n2 .ftl { display: none; }
.libmore { display: block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 12.5px; font-weight: 600; text-align: left; }
.drawer.help .helptabs, .dialog .helptabs { margin: 12px 18px 0; }
.guide h3 { margin: 4px 0 8px; font-size: 16px; } .guide ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13.5px; color: var(--text2); }
.guide .toc { margin-top: 18px; display: grid; gap: 2px; } .guide .toc .lbl { margin-bottom: 4px; }
.tocitem { text-align: left; padding: 7px 10px; border-radius: 8px; border: 0; background: none; color: var(--text2); font-size: 13px; }
.tocitem:hover { background: var(--raised); } .tocitem[aria-current="true"] { background: var(--raised); color: var(--text); font-weight: 600; }
.ask { display: grid; gap: 10px; } .bubble { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; max-width: 92%; }
.bubble.me { justify-self: end; background: var(--raised); } .bubble.ai { background: var(--info-bg); color: var(--text); }
.bubble .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .ws.n2 .ftl { display: grid; } }
.textrow { display: grid; grid-template-columns: auto minmax(0,1fr) auto 12px; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 10px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--field); color: var(--text2); text-align: left; font-size: 12.5px; }
.textrow:hover { border-color: var(--line2); color: var(--text); }
.textrow .tl { font-weight: 700; color: var(--text); white-space: nowrap; }
.textrow .tp { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.textrow .tc { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.textrow .chev { width: 12px; height: 12px; }
/* scrollbars that belong to the dark app, thin, instead of the system's light bars in narrower windows */
* { scrollbar-width: thin; scrollbar-color: #3D454B transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #3D454B; border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }
/* the text for the model in three parts */
.fparts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fparts li { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--field); border-left: 3px solid var(--line2); font-size: 13px; }
.fparts li > span:first-child { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.fparts .p-cam { border-left-color: var(--c-cam); } .fparts .p-cam > span:first-child { color: var(--c-cam); }
.fparts .p-card { border-left-color: var(--c-card); } .fparts .p-card > span:first-child { color: var(--c-card); }
.fparts .p-own { border-left-color: var(--accent); } .fparts .p-own > span:first-child { color: var(--accent); }
.fparts .empty { color: var(--faint); font-style: italic; }
/* a submitted film: the picture with its own ▶, and the bar under it within a laptop's height (Peter 30. 10.) */
#animatic:not(.seq) .viewer.seq-stage { max-height: max(220px, calc(100vh - 310px)); cursor: pointer; }
.seq-bigplay { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(10,12,13,.72); color: #fff; font-size: 30px; padding-left: 6px; cursor: pointer; backdrop-filter: blur(6px); }
.seq-bigplay:hover { background: rgba(245,170,40,.92); color: #141719; }
.seq-bigplay[hidden] { display: none; }
#animatic:not(.seq) .viewer.seq-stage:fullscreen { max-height: none; aspect-ratio: auto; border-radius: 0; border: 0; }
