:root {
  --bg: #0b0b0c;
  --bg2: #141416;
  --bg3: #1d1d20;
  --line: #2a2a2e;
  --text: #f4f4f5;
  --mute: #9a9aa2;
  --dim: #5e5e66;
  --yellow: #ffd400;
  --green: #2fd36e;
  --red: #ff4d5e;
  --blue: #4da3ff;
  --ales: #4da3ff; /* host (druhý mluvčí) modrý */
  --vojta: #ffd400; /* Vojta vždy žlutý, stejně jako v Premiere */
  --r: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, -apple-system, system-ui, sans-serif; }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
textarea, input { font: inherit; color: var(--text); }
[hidden] { display: none !important; }
.app-shell { min-height: 100%; }

/* ---------- Home ---------- */
.home { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.home-inner { width: min(440px, 100%); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand img { width: 44px; height: 44px; }
.brand h1 { font: 800 26px/1 Poppins, sans-serif; margin: 0; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--mute); font: 500 13px Poppins, Inter, -apple-system, system-ui, sans-serif; margin-top: 4px; letter-spacing: 0; }
.role { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 12px; transition: transform .15s, border-color .15s; }
.role:hover { border-color: #3a3a40; }
.role:active { transform: scale(.98); }
.role .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--bg3); flex: none; }
.role b { display: block; font-size: 17px; }
.role span { color: var(--mute); font-size: 13px; }

/* ---------- Common ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:hover { background: #26262a; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--yellow); color: #111; border-color: var(--yellow); }
.btn.primary:hover { background: #ffe14d; }
.btn.green { background: var(--green); color: #05210f; border-color: var(--green); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mute); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .4; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--bg3); color: var(--mute); }
.pill.y { background: rgba(255, 212, 0, .14); color: var(--yellow); }
.pill.g { background: rgba(47, 211, 110, .14); color: var(--green); }
.pill.r { background: rgba(255, 77, 94, .14); color: var(--red); }
.pill.b { background: rgba(77, 163, 255, .14); color: var(--blue); }
.toast { position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); background: #fff; color: #111; padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,.4); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast button { color: #0060df; font-weight: 700; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Phone stage (video + overlays) ---------- */
.stage { position: relative; aspect-ratio: 9 / 16; background: #000; overflow: hidden; border-radius: 18px; user-select: none; -webkit-user-select: none; }
.stage video.seqv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: none; }
.ov-title { position: absolute; top: 9%; left: 6%; right: 6%; text-align: center; font: 900 clamp(18px, 7.2cqw, 34px)/1.02 Poppins, sans-serif; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0,0,0,.6); letter-spacing: -0.01em; transition: opacity .3s; pointer-events: none; }
.ov-title em { font-style: normal; color: var(--yellow); }
.ov-cap { position: absolute; left: 6%; right: 6%; top: 58%; text-align: center; font: 800 clamp(15px, 6cqw, 28px)/1.1 Poppins, sans-serif; color: var(--yellow); -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 0 3px 0 #000; pointer-events: none; }
.stage { container-type: inline-size; }
.ov-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ov-play i { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); display: grid; place-items: center; font-style: normal; font-size: 26px; padding-left: 4px; }
.ov-progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; pointer-events: none; }
.ov-progress b { display: block; height: 100%; background: #fff; width: 0; }

/* ---------- Jan (admin) ---------- */
.jan { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 100dvh; }
.jan-main { padding: 20px 24px 120px; min-width: 0; }
.jan-side { position: sticky; top: 0; height: 100dvh; border-left: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--bg2); overflow: auto; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.topbar .brand { margin: 0; }
.topbar .brand img { width: 34px; height: 34px; }
.topbar .brand h1 { font-size: 20px; }
.topbar .sp { flex: 1; }
.tabs { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 18px; overflow-x: auto; }
.tabs button { padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--mute); white-space: nowrap; }
.tabs button.on { background: var(--bg3); color: var(--text); }
.tabs button i { font-style: normal; margin-left: 6px; color: var(--dim); }
.hint { color: var(--mute); font-size: 13px; margin: -6px 0 16px; }
.theme { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.theme-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.theme-h .n { font: 800 13px Poppins, Inter, -apple-system, system-ui, sans-serif; color: var(--dim); width: 22px; }
.theme-h h3 { margin: 0; font-size: 15px; flex: 1; min-width: 0; }
.theme-h .mv { display: flex; gap: 2px; }
.theme-h .mv button { width: 28px; height: 28px; border-radius: 8px; color: var(--mute); }
.theme-h .mv button:hover { background: var(--bg3); color: var(--text); }
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.vcard { position: relative; text-align: left; background: var(--bg3); border: 1.5px solid transparent; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.vcard:hover { border-color: #3a3a40; }
.vcard.sel { border-color: var(--text); }
.vcard.picked { background: rgba(255,212,0,.07); border-color: rgba(255,212,0,.5); }
.vcard .t { font: 800 13px/1.15 Poppins; text-transform: uppercase; }
.vcard .q { color: var(--mute); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--dim); display: grid; place-items: center; font-size: 14px; color: #111; background: transparent; }
.vcard.picked .check { background: var(--yellow); border-color: var(--yellow); }
.vcard .t { padding-right: 28px; }
.sendbar { position: fixed; left: 0; right: 380px; bottom: 0; padding: 14px 24px calc(14px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 35%); display: flex; gap: 10px; justify-content: flex-end; align-items: center; pointer-events: none; }
.sendbar > * { pointer-events: auto; }
.row { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.row:hover { border-color: #3a3a40; }
.row.sel { border-color: var(--text); }
.row .main { flex: 1; min-width: 0; }
.row .main b { display: block; font-size: 14px; }
.row .main span { color: var(--mute); font-size: 12.5px; }
.row .fb { margin-top: 6px; font-size: 13px; color: var(--text); background: var(--bg3); border-radius: 8px; padding: 6px 10px; }
.side-stage { width: 100%; max-width: 300px; margin: 0 auto; }
.side-stage { position: relative; }
.side-spd { position: absolute; top: 10px; right: 10px; z-index: 6; min-width: 46px; height: 34px; padding: 0 10px; border-radius: 12px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font: 800 13.5px Poppins, sans-serif; font-variant-numeric: tabular-nums; }
.side-spd.fast { background: var(--ygrad, var(--yellow)); color: #111; border-color: var(--yellow); }
.side-prem { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 10px 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; }
.side-prem input { width: 20px; height: 20px; accent-color: var(--yellow); flex: none; margin: 0; }
.side-prem span { display: flex; flex-direction: column; min-width: 0; }
.side-prem b { font: 700 14px Poppins, sans-serif; }
.side-prem i { font-style: normal; font-size: 12px; color: var(--mute); }
.side-prem:has(input:checked) { border-color: rgba(255, 212, 0, .5); background: rgba(255, 212, 0, .08); }
.side-empty { color: var(--dim); text-align: center; margin-top: 40%; }
.side h4 { margin: 0; }
.cuts { font-size: 13px; color: var(--mute); display: flex; flex-direction: column; gap: 6px; }
.cuts p { margin: 0; padding: 8px 10px; background: var(--bg3); border-radius: 8px; border-left: 3px solid var(--ales); color: var(--text); }
.cuts p.Vojta { border-left-color: var(--vojta); }
.empty { color: var(--mute); text-align: center; padding: 60px 0; }
@media (max-width: 900px) {
  .jan { grid-template-columns: 1fr; }
  .jan-side { position: fixed; inset: auto 0 0 0; height: auto; max-height: 85dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; z-index: 20; transform: translateY(105%); transition: transform .25s; }
  .jan-side.open { transform: none; }
  .sendbar { right: 0; }
  .jan-main { padding: 16px 16px 120px; }
}

/* ---------- Jirka (swipe) ---------- */
.jirka { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding-top: var(--safe-t); }
.jk-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.jk-top .ep { flex: 1; min-width: 0; }
.jk-top .ep b { display: block; font-size: 15px; }
.jk-top .ep span { color: var(--mute); font-size: 12.5px; }
.jk-deck { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 16px; }
.jk-card { position: absolute; height: 100%; max-height: 100%; aspect-ratio: 9 / 16; max-width: calc(100% - 32px); touch-action: none; will-change: transform; }
.jk-card .stage { height: 100%; width: 100%; aspect-ratio: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.jk-card { z-index: 2; }
.jk-card.back { z-index: 1; pointer-events: none; }
.jk-card::after { content: ""; position: absolute; inset: 0; border-radius: 18px; background: #0b0b0c; opacity: 0; pointer-events: none; z-index: 8; transition: opacity .3s; }
.jk-card.back::after { opacity: .6; }
.jk-card.back .stage { background: var(--bg3); }
.stamp { position: absolute; top: 40px; padding: 6px 14px; border: 4px solid; border-radius: 12px; font: 900 26px Poppins, Inter, -apple-system, system-ui, sans-serif; letter-spacing: .02em; opacity: 0; pointer-events: none; z-index: 5; }
.stamp.yes { left: 24px; color: var(--green); transform: rotate(-14deg); }
.stamp.no { right: 24px; color: var(--red); transform: rotate(14deg); }
.stamp.up { left: 50%; top: auto; bottom: 120px; transform: translateX(-50%); color: var(--yellow); white-space: nowrap; }
.card-meta { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; z-index: 6; pointer-events: none; flex-wrap: wrap; }
.badge-v2 { background: var(--yellow); color: #111; font: 800 12px Poppins, Inter, -apple-system, system-ui, sans-serif; padding: 4px 10px; border-radius: 99px; }
.badge-info { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 600 12px Poppins, Inter, -apple-system, system-ui, sans-serif; padding: 4px 10px; border-radius: 99px; }
.changed { position: absolute; top: 48px; left: 12px; right: 12px; z-index: 6; background: rgba(0,0,0,.7); backdrop-filter: blur(10px); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; pointer-events: none; }
.jk-actions { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 14px 0 calc(16px + var(--safe-b)); }
.jk-actions button { width: 62px; height: 62px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 26px; transition: transform .1s; }
.jk-actions button:active { transform: scale(.9); }
.jk-actions .no { color: var(--red); }
.jk-actions .yes { color: var(--green); }
.jk-actions .up { width: 50px; height: 50px; font-size: 20px; color: var(--yellow); }
.jk-done { text-align: center; padding: 0 24px; }
.jk-done h2 { font: 800 26px Poppins, Inter, -apple-system, system-ui, sans-serif; margin: 0 0 8px; }
.jk-done p { color: var(--mute); margin: 0 0 6px; }
.banner { margin: 0 16px 8px; background: rgba(255,212,0,.12); color: var(--yellow); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.banner button { margin-left: auto; color: var(--mute); }

/* bottom sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg2); border-radius: 22px 22px 0 0; padding: 10px 16px calc(16px + var(--safe-b)); max-width: 560px; margin: 0 auto; animation: up .25s cubic-bezier(.2,.9,.3,1); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 12px; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { padding: 8px 12px; border-radius: 99px; background: var(--bg3); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.chip.on { background: var(--text); color: #111; border-color: var(--text); }
.chip .kn { font-style: normal; font-size: 9.5px; font-weight: 600; opacity: .45; margin-right: 6px; position: relative; top: -1px; }
.kbd-hint { margin-top: 12px; font-size: 10.5px; line-height: 1.6; color: var(--mute); opacity: .55; text-align: center; }
.kbd-hint kbd { font: 600 9.5px/1 Poppins, sans-serif; padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; margin: 0 1px; }
.kbd-hint.main { position: fixed; left: 0; right: 0; bottom: calc(6px + var(--safe-b)); margin: 0; pointer-events: none; z-index: 5; }
@media (hover: none), (pointer: coarse) { .kbd-hint, .chip .kn { display: none; } }
@media (hover: hover) and (pointer: fine) { .jirka .jk-actions { padding-bottom: calc(30px + var(--safe-b)); } }
.sheet textarea { width: 100%; min-height: 84px; resize: none; background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; padding: 12px; outline: none; font-size: 16px; }
.sheet textarea:focus { border-color: #4a4a50; }
.ta-wrap { position: relative; margin-bottom: 12px; }
.mic { position: absolute; right: 8px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; font-size: 17px; }
.mic.rec { background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,77,94,.25); } }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--line); }
.opt:active { transform: scale(.99); }
.opt .oi { font-size: 19px; width: 38px; height: 38px; border-radius: 11px; background: var(--bg2); display: grid; place-items: center; flex: none; }
.opt.main .oi { background: #111; }
.opt b { display: block; font-size: 15px; }
.opt span { color: var(--mute); font-size: 13px; }
.opt.main { background: var(--yellow); color: #111; border-color: var(--yellow); }
.opt.main span { color: rgba(0,0,0,.6); }
.sheet .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

/* ---------- Editor: styly jsou v editor.css, tady zůstává jen sdílené tlačítko s ikonou ---------- */
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--text); }
.icon-btn:hover { background: var(--bg2); }
.icon-btn:disabled { opacity: .3; }

@font-face { font-family: Poppins; font-weight: 700; src: url(/fonts/Poppins-Bold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 800; src: url(/fonts/Poppins-ExtraBold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 900; src: url(/fonts/Poppins-Black.woff2) format("woff2"); font-display: swap; }

/* ---------- loading + scrubber (iMessage) ---------- */
.ov-load { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 3; }
.ov-load .spinner { width: 34px; height: 34px; border-width: 3px; color: #fff; }
.stage video.seqv { background: #000; }
.scrub { position: relative; height: 48px; margin-top: 10px; border-radius: 10px; background: #111; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; z-index: 7; }
.scrub::before { content: ""; position: absolute; inset: -14px -4px; }
.scrub-film { position: absolute; inset: 0; border-radius: 10px; background-size: 100% 100%; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.scrub-ticks i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,212,0,.9); pointer-events: none; }
.scrub-head { position: absolute; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; left: 0; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 2px 10px rgba(0,0,0,.5); pointer-events: none; }
.scrub-time { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); font: 600 13px Poppins, Inter, -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #fff; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 3px 10px; border-radius: 99px; opacity: 0; transition: opacity .15s; pointer-events: none; white-space: nowrap; }
.scrub.on { cursor: grabbing; }
.scrub.on .scrub-time { opacity: 1; }
.jk-card .scrub { position: absolute; left: 14px; right: 14px; bottom: 16px; margin: 0; }
.jk-card .stage .ov-cap { top: 56%; }
.stage .ov-cap.vz { top: 56.13%; transform: translateY(-50%); font: 900 7.05cqw/1 Poppins, sans-serif; letter-spacing: 0.006em; -webkit-text-stroke: 0; text-shadow: none; }
.ov-cap.vz .vzc { position: relative; display: inline-block; white-space: nowrap; animation: vzpop .15s linear both; }
.ov-cap.vz .vzc b, .ov-cap.vz .vzc i { display: block; line-height: 1; }
.ov-cap.vz .vzc b { font: inherit; color: #191500; -webkit-text-stroke: 0.11em #191500; text-shadow: 0 0 0.15em rgba(0,0,0,.8); }
.ov-cap.vz .vzc i { font: inherit; font-style: normal; position: absolute; inset: -0.3em 0; padding: 0.3em 0; background: linear-gradient(180deg, #F0B41C 22%, #F9CF07 46%, #F7E006 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* naskočení změřené z exportu MOGRT VZ Reels (snímek po snímku): 75 %, přestřelí na 104 %, usadí se za 0,15 s, bez prolínání */
@keyframes vzpop { 0% { transform: scale(.755); } 13% { transform: scale(.76); } 33% { transform: scale(.97); } 55% { transform: scale(1.037); } 66% { transform: scale(1.024); } 87% { transform: scale(1.006); } 100% { transform: scale(1); } }
.sheet textarea.need { border-color: var(--yellow); }
.side-stage .stage { border-radius: 16px; }
a.btn, a.role, a.brand, a.icon-btn { text-decoration: none; color: inherit; }
a.btn.primary { color: #111; }

/* ---------- řazení bloků (CapCut) ---------- */

/* =====================================================================
   VZ STYL: tmavé kouřové pozadí, žluté zářící panely, Poppins, 3D ikony
   ===================================================================== */
@font-face { font-family: Poppins; font-weight: 500; src: url(/fonts/Poppins-Medium.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 600; src: url(/fonts/Poppins-SemiBold.woff2) format("woff2"); font-display: swap; }
:root {
  --bg: #0a0a0b; --bg2: rgba(24,24,27,.82); --bg3: rgba(44,44,48,.75); --line: rgba(255,255,255,.09);
  --yellow: #ffd400; --y1: #fff04d; --y2: #ffc400;
  --ygrad: linear-gradient(180deg, #fff04d 0%, #ffd400 45%, #ffbf00 100%);
  --glow: 0 0 0 1px rgba(255,220,0,.35), 0 8px 28px rgba(255,196,0,.35), 0 0 46px rgba(255,196,0,.18);
  --glass: blur(14px) saturate(1.2);
}
html, body { background: #0a0a0b; font-family: Poppins, Inter, -apple-system, sans-serif; font-weight: 500; }
/* body bez vlastní barvy: jinak zakryl gradient jen do výšky okna a po scrollu byl gradient useknutý */
body { background: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url(/brand/bg-dark.jpg) center / cover no-repeat, #0a0a0b; }
.hl { color: var(--yellow); }
h1, h2, h3, b { font-family: Poppins, sans-serif; }

/* tlačítka */
.btn { font-family: Poppins; font-weight: 700; border-radius: 14px; background: var(--bg3); border-color: var(--line); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.btn.primary, a.btn.primary { background: var(--ygrad); color: #111; border: 0; box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.05); background: var(--ygrad); }
.btn.green { background: var(--ygrad); color: #111; border: 0; box-shadow: var(--glow); }

/* domů */
.home { background: radial-gradient(ellipse at 50% 0%, rgba(255,196,0,.12), transparent 60%); }
.brand h1 { font-weight: 900; font-size: 28px; }
.role { background: var(--ygrad); border: 0; color: #111 !important; box-shadow: var(--glow); border-radius: 22px; padding: 16px 18px; }
.role b { color: #111; font-size: 22px; font-weight: 900; }
.role span { color: rgba(0,0,0,.66); font-weight: 600; }
.ico3d { width: 64px; height: 64px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }

/* panely */
.theme, .row, .sheet, .jan-side, .tabs { background: var(--bg2); border-color: var(--line); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.theme { border-radius: 20px; }
.theme-h h3 { font-weight: 800; font-size: 16px; }
.theme-h .n { color: var(--yellow); }
.vcard { background: rgba(44,44,48,.7); border-radius: 16px; }
.vcard .t { font-weight: 900; }
.vcard.picked { background: rgba(255,212,0,.1); border-color: var(--yellow); box-shadow: 0 0 22px rgba(255,196,0,.18); }
.vcard.picked .check { background: var(--ygrad); }
.tabs { border-radius: 16px; }
.tabs button { font-family: Poppins; font-weight: 700; border-radius: 11px; }
.tabs button.on { background: var(--ygrad); color: #111; box-shadow: var(--glow); }
.tabs button.on i { color: rgba(0,0,0,.55); }
.pill.y { background: rgba(255,212,0,.16); }
.row { border-radius: 16px; }
.row .main b { font-weight: 800; }
.fb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb audio { height: 32px; max-width: 100%; }

/* jeviště videa */
.stage { border-radius: 22px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.6); }

/* swipe */
.jirka { background: transparent; }
.jk-top .ep b { font-weight: 900; font-size: 17px; }
.jk-top .ep span { font-weight: 600; }
.jk-actions { gap: 26px; padding-top: 10px; }
.jk-actions button { width: 66px; height: 66px; background: var(--bg2); border: 1px solid var(--line); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.jk-actions svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.jk-actions .no { color: #fff; }
.jk-actions .up { width: 54px; height: 54px; color: var(--yellow); }
.jk-actions .up svg { width: 24px; height: 24px; }
.jk-actions .yes { width: 74px; height: 74px; background: var(--ygrad); color: #111; border: 0; box-shadow: var(--glow); }
.jk-actions .yes svg { width: 34px; height: 34px; stroke-width: 3; }
.stamp { font-weight: 900; border-radius: 14px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.stamp.yes { color: var(--yellow); border-color: var(--yellow); }
.stamp.up { color: #fff; border-color: #fff; }
.badge-v2 { background: var(--ygrad); box-shadow: var(--glow); font-weight: 900; }
.badge-info { font-family: Poppins; font-weight: 600; }
.changed { font-family: Poppins; font-weight: 600; border: 1px solid rgba(255,212,0,.35); }
.jk-done { display: flex; flex-direction: column; align-items: center; }
.done-ico { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(255,196,0,.35)); margin-bottom: 6px; }
.jk-done h2 { font-weight: 900; font-size: 30px; }
.banner { font-family: Poppins; background: var(--ygrad); color: #111; box-shadow: var(--glow); }
.banner button { color: rgba(0,0,0,.6); }

/* rychlost: velká tlačítka */
.jk-speed { display: flex; justify-content: center; padding: 12px 16px 0; }
.speed { display: flex; gap: 6px; padding: 5px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.speed button { min-width: 66px; height: 44px; border-radius: 13px; font: 800 16px Poppins, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.speed button.on { background: var(--ygrad); color: #111; box-shadow: var(--glow); }
.speed button:active { transform: scale(.95); }
@media (min-width: 900px) { .ed-speed { grid-column: 2; } }

/* sheet */
.sheet { border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.sheet h3 { font-weight: 800; font-size: 19px; }
.chip { font-family: Poppins; font-weight: 600; background: var(--bg3); }
.chip.on { background: var(--ygrad); color: #111; border-color: transparent; box-shadow: var(--glow); }
.sheet textarea { background: rgba(10,10,12,.6); border-radius: 16px; font-family: Poppins; }
.opt { border-radius: 18px; background: var(--bg3); }
.opt b { font-weight: 800; }
.opt.main { background: var(--ygrad); box-shadow: var(--glow); border: 0; }

/* hlas */
.voice-row { display: flex; gap: 8px; margin: -2px 0 12px; }
.vbtn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 16px; background: var(--bg3); border: 1px solid var(--line); font: 700 15px Poppins, sans-serif; color: #fff; }
.vbtn .vi { font-size: 19px; }
.vbtn.on { background: #ff3b4e; border-color: #ff3b4e; animation: pulse 1.1s infinite; }
.vbtn.busy { opacity: .7; pointer-events: none; }
.vbtn:disabled { opacity: .35; }
.voice-chip { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 6px 8px; border-radius: 16px; background: rgba(255,212,0,.1); border: 1px solid rgba(255,212,0,.35); }
.voice-chip audio { flex: 1; height: 36px; min-width: 0; }
.voice-chip .vx { width: 32px; height: 32px; border-radius: 10px; background: var(--bg3); color: #fff; }

.toast { font-family: Poppins; font-weight: 700; border-radius: 16px; }

/* 3D ikony VZ */
.aico { width: 34px; height: 34px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.jk-actions .up .aico { width: 28px; height: 28px; }
.jk-actions .yes { background: var(--bg2); border: 2px solid rgba(255,212,0,.75); box-shadow: 0 0 0 4px rgba(255,212,0,.12), 0 10px 30px rgba(255,196,0,.35); }
.jk-actions .yes .aico { width: 42px; height: 42px; }
.jk-actions .yes svg { color: var(--yellow); }
.vbtn img.vi { width: 26px; height: 26px; object-fit: contain; }
.bico { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; }
.opt .oi img { width: 26px; height: 26px; object-fit: contain; }

/* mobil: co největší video (kompaktní hlavička s rychlostí, tlačítka níž) */
.jirka { padding-top: max(6px, var(--safe-t)); }
.jk-top { padding: 4px 8px 6px 4px; gap: 6px; }
.jk-top .icon-btn { width: 32px; height: 36px; flex: none; }
.jk-top .ep b { font-size: 14px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jk-top .ep span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.jk-top .jk-speed { padding: 0; flex: none; }
.jk-top .speed { gap: 2px; padding: 3px; border-radius: 14px; }
.jk-top .speed button { min-width: 44px; height: 38px; font-size: 13.5px; border-radius: 11px; padding: 0 4px; }
.jk-deck { padding: 0 8px; }
.jk-card { max-width: calc(100% - 4px); }
.jk-actions { padding: 8px 0 max(10px, var(--safe-b)); gap: 30px; }
.jk-actions button { width: 60px; height: 60px; }
.jk-actions .up { width: 50px; height: 50px; }
.jk-actions .yes { width: 68px; height: 68px; }
.ov-play { transition: opacity .15s; }
@media (min-width: 700px) { .jk-top .speed button { min-width: 58px; height: 42px; font-size: 15px; } }

/* přihlášení, účty, stránka editora */
.login { display: flex; flex-direction: column; gap: 12px; }
.login label, .acc-grid label { display: flex; flex-direction: column; gap: 6px; font: 600 13px Poppins, Inter, -apple-system, system-ui, sans-serif; color: var(--mute); }
.login input, .acc-grid input, .acc-grid select { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,10,12,.6); color: #fff; padding: 0 14px; font: 600 16px Poppins, Inter, -apple-system, system-ui, sans-serif; outline: none; }
.login input:focus, .acc-grid input:focus { border-color: var(--yellow); }
.btn.big { height: 52px; font-size: 16px; margin-top: 6px; }
.login-err { color: #ff6b7a; font-weight: 600; font-size: 14px; }
.role.dark { background: var(--bg2); color: #fff !important; box-shadow: none; border: 1px solid var(--line); }
.role.dark b { color: #fff; } .role.dark span { color: var(--mute); }
.home .logout { margin: 10px auto 0; display: block; }
.page { max-width: 880px; margin: 0 auto; padding: 20px 16px 60px; }
.page.narrow { max-width: 560px; }
.page .topbar .brand { text-decoration: none; color: inherit; }
.acc-list { margin-bottom: 16px; }
.acc-form h3 { margin: 0 0 12px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.acc-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.cred { font: 600 17px/1.7 Poppins; }
.steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; color: var(--text); }
.sec { margin: 22px 0 10px; }

/* ---------- Projekty ---------- */
.proj-pick { height: 40px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); font: 600 14px Poppins, sans-serif; padding: 0 12px; max-width: 260px; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 18px; }
.proj { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: var(--glass); }
.proj.cur { border-color: rgba(255,212,0,.6); }
.proj.test { border-style: dashed; }
.proj-h b { display: block; font-size: 17px; }
.proj-h span { color: var(--mute); font-size: 13px; }
.proj-st { display: flex; gap: 14px; flex-wrap: wrap; }
.proj-st span { color: var(--mute); font-size: 12px; display: flex; flex-direction: column; }
.proj-st i { font: 800 20px Poppins, Inter, -apple-system, system-ui, sans-serif; font-style: normal; color: var(--text); }
.proj-st .wait { color: var(--yellow); font-weight: 600; }
.proj-note { margin: 0; color: var(--mute); font-size: 13px; }
.proj-a { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.proj-form { display: grid; gap: 10px; }
.proj-form label { display: grid; gap: 4px; color: var(--mute); font-size: 13px; }
.proj-form input, .proj-form textarea { background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.proj-form .chk { display: flex; align-items: center; gap: 8px; color: var(--text); }
.proj-form .chk input { width: 18px; height: 18px; }

/* ---------- Mozek ---------- */
.brain .b-how p { margin: 6px 0; color: var(--mute); max-width: 820px; }
.brain .b-how b { color: var(--text); }
.b-proj { height: 40px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); font: 600 14px Poppins, sans-serif; padding: 0 12px; }
.flow { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; flex-wrap: wrap; }
.fstep { position: relative; flex: 1 1 150px; min-width: 150px; max-width: 220px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.fstep.claude { border-color: rgba(255,212,0,.45); }
.fstep.human { border-color: rgba(77,163,255,.45); }
.fstep .fn { font: 800 12px Poppins, Inter, -apple-system, system-ui, sans-serif; color: var(--dim); }
.fstep b { font-size: 14px; }
.fstep .fd { color: var(--mute); font-size: 12px; line-height: 1.35; }
.fstep .fwho { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--dim); margin-top: 2px; }
.fstep.claude .fwho { color: var(--yellow); }
.fstep.human .fwho { color: var(--blue); }
.fchip { align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: rgba(255,212,0,.12); color: var(--yellow); }
.fchip:hover { background: rgba(255,212,0,.22); }
.farrow { align-self: center; color: var(--dim); font-weight: 800; }
.floop { flex-basis: 100%; color: var(--yellow); font-size: 13px; font-weight: 600; padding-left: 4px; }
.b-stats .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.tile i { display: block; font: 800 24px Poppins, Inter, -apple-system, system-ui, sans-serif; font-style: normal; }
.tile span { color: var(--mute); font-size: 12px; }
.b-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bar { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
.bar em { font-style: normal; color: var(--mute); text-align: right; }
.track { height: 12px; border-radius: 6px; background: var(--bg3); display: flex; overflow: hidden; }
.track i, .legend i { display: inline-block; height: 100%; }
.track .ok, .legend .ok { background: var(--green); }
.track .re, .legend .re { background: var(--yellow); }
.track .no, .legend .no { background: var(--red); }
.legend { color: var(--mute); font-size: 12px; display: flex; gap: 10px; align-items: center; margin: 6px 0 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; margin-right: -6px; }
.fbi { border-top: 1px solid var(--line); padding: 10px 0; }
.fbi:first-of-type { border-top: 0; }
.fbi span { color: var(--mute); font-size: 12px; }
.fbi p { margin: 4px 0 0; }
.fbi audio { margin-top: 6px; height: 32px; max-width: 100%; }
.b-ed { display: grid; grid-template-columns: 240px 1fr; gap: 12px; margin-bottom: 40px; }
.b-files { display: flex; flex-direction: column; gap: 6px; }
.b-files button { text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.b-files button.on { border-color: var(--yellow); }
.b-files b { display: block; font-size: 14px; }
.b-files span { color: var(--mute); font-size: 12px; }
.b-main { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.b-head { display: flex; gap: 10px; align-items: flex-start; }
.b-head > div { flex: 1; }
.b-head b { display: block; font-size: 16px; }
.b-head span { color: var(--mute); font-size: 13px; }
.b-text { width: 100%; min-height: 420px; resize: vertical; background: #0e0e10; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.b-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.b-note { flex: 1; min-width: 180px; height: 40px; background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.b-meta { color: var(--dim); font-size: 12px; }
.b-hist { max-height: 60vh; overflow: auto; }
.b-pre { white-space: pre-wrap; background: #0e0e10; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 12px/1.5 ui-monospace, Menlo, monospace; margin: -2px 0 10px; max-height: 300px; overflow: auto; }
@media (max-width: 760px) {
  .b-cols, .b-ed { grid-template-columns: 1fr; }
  .farrow { display: none; }
  .fstep { max-width: none; flex-basis: 100%; }
  .proj-pick { max-width: 100%; flex: 1; }
  .b-text { min-height: 300px; }
}

.b-sec { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.b-sec .sec { margin-right: auto; }
.b-from { color: var(--dim); font-size: 12px; }

/* stažení Premiere panelu */
.pcard h3 { display: flex; align-items: baseline; gap: 10px; }
.pver { color: var(--dim); font-size: 12px; font-weight: 600; }
.pdls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.pdl { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .1s; }
.pdl:active { transform: scale(.98); }
.pdl.rec { background: var(--ygrad, var(--yellow)); color: #111; border-color: var(--yellow); }
.pdl .pico { font-size: 26px; line-height: 1; width: 30px; text-align: center; }
.pdl b { display: block; font-size: 16px; }
.pdl small { font-size: 12px; opacity: .75; }
@media (max-width: 420px) { .pdls { grid-template-columns: 1fr; } }

/* nahrání vlastního výstřižku */
.drop-zone { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,11,.78); display: grid; place-items: center; pointer-events: none; backdrop-filter: blur(4px); }
.drop-zone > div { border: 2px dashed var(--yellow); border-radius: 22px; padding: 46px 56px; text-align: center; font: 800 26px Poppins, Inter, -apple-system, system-ui, sans-serif; color: var(--yellow); }
.drop-zone span { display: block; font: 500 14px Poppins, Inter, -apple-system, system-ui, sans-serif; color: var(--mute); margin-top: 8px; }
.row.drop { border-color: var(--yellow); background: rgba(255,212,0,.08); }
.upl-file { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.upl-file video { width: 54px; height: 96px; object-fit: cover; border-radius: 8px; background: #000; flex: none; }
.upl-file b { display: block; word-break: break-all; }
.upl-file span { color: var(--mute); font-size: 13px; }
.upl-form select { background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; }
.upl-prog { position: relative; height: 34px; border-radius: 10px; background: var(--bg3); overflow: hidden; }
.upl-prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255,212,0,.35); transition: width .2s; }
.upl-prog span { position: relative; display: block; line-height: 34px; padding: 0 12px; font-size: 13px; font-weight: 600; }

.row { flex-wrap: wrap; }
.row .main { min-width: 180px; }

.wait-note { color: var(--mute); font-size: 13px; padding: 10px 14px; }
.wait-note b { color: var(--yellow); }

/* ---------- načítací animace ---------- */
.zl { position: relative; width: 74px; height: 74px; }
.zl-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(255,212,0,.15) 62%, #ffd400 92%, #fff04d 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: spin 1s linear infinite; filter: drop-shadow(0 0 10px rgba(255,196,0,.55)); }
.zl-z { position: absolute; inset: 13px; width: 48px; height: 48px; fill: none; stroke: #ffd400; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255,196,0,.45)); }
.zl-p { stroke-width: 46; stroke-dasharray: 720; animation: zdraw 1.6s cubic-bezier(.65,0,.35,1) infinite; }
.zl-h { stroke-width: 30; stroke-dasharray: 130; animation: zdraw-h 1.6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes zdraw { 0% { stroke-dashoffset: 720; } 45%, 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -720; } }
@keyframes zdraw-h { 0%, 30% { stroke-dashoffset: 130; } 55%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -130; } }
.zl-t { margin-top: 14px; font: 700 13px Poppins, sans-serif; color: var(--mute); letter-spacing: .4px; }
.app-load { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fade .3s .15s both; }
.ov-load { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ov-load .zl { width: 64px; height: 64px; }
.ov-load .zl-z { inset: 12px; width: 40px; height: 40px; }
/* místo černé plochy jemně přejíždějící zlatavý lesk, dokud video nemá první snímek */
.stage.is-loading { background: linear-gradient(115deg, #0e0e10 30%, #1c1a0c 44%, #2b2507 50%, #1c1a0c 56%, #0e0e10 70%) 0 0 / 260% 100%; animation: shimmer 1.8s linear infinite; }
.stage.is-loading video.seqv { background: transparent; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@media (prefers-reduced-motion: reduce) { .zl-ring, .zl-p, .zl-h, .stage.is-loading { animation-duration: 3s; } }

/* ---------- Instagram overlay na Jirkově kartě (1:1 podle předlohy 1080×1920) ---------- */
.ig { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: #fff; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Roboto, sans-serif; }
.ig-off .ig { display: none; }
.ig-png { position: absolute; inset: 0; width: 100%; height: 100%; }
.ig-name, .ig-cap, .ig-likes, .ig-song { position: absolute; transform: translateY(-50%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 2px rgba(0,0,0,.25); }
.ig-name { left: 17.8%; top: 84.53%; font-size: 3.4cqw; font-weight: 700; display: flex; align-items: center; gap: .8cqw; }
.ig-name svg { width: 2.7cqw; height: 2.7cqw; }
.ig-cap { left: 8.6%; right: 17%; top: 88.54%; font-size: 3.33cqw; font-weight: 400; }
.ig-cap.empty { opacity: .5; font-style: italic; }
.ig-likes { left: 8.6%; right: 17%; top: 92.03%; font-size: 2.78cqw; display: flex; align-items: center; gap: .9cqw; }
.ig-likes b { font-weight: 700; }
.ig-av { display: inline-flex; }
.ig-av img { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; border: .25cqw solid rgba(0,0,0,.6); }
.ig-av img + img { margin-left: -1.2cqw; }
.ig-song { left: 13.5%; width: 26.5%; top: 96.3%; font-size: 2.78cqw; }
/* s overlayem titulek níž, ať nekoliduje s horní lištou „Reels“ */
.jirka:not(.ig-off) .stage .ov-title { top: 15%; }
.ig-tog { height: 34px; padding: 0 12px; border-radius: 10px; font: 800 13px Poppins, sans-serif; color: var(--mute); border: 1px solid var(--line); background: var(--bg3); }
.ig-tog.on { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; border-color: transparent; }

/* ---------- karta: info nad videem, video přesně 9:16, posuvník pod ním ---------- */
.jk-deck { container-type: size; }
.jk-card { display: flex; flex-direction: column; gap: 8px; aspect-ratio: auto; height: auto; max-height: none; max-width: none;
  width: min(calc(100cqw - 32px), calc((100cqh - 132px) * 0.5625)); }
.jk-info { height: 72px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; position: relative; }
.jk-info .card-meta, .jk-info .changed { position: static; inset: auto; }
.jk-info .changed { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 6px 10px; }
.jk-info .ig-edit { position: absolute; top: 0; right: 0; pointer-events: auto; background: var(--bg3); color: #fff; font: 700 12px Poppins, sans-serif; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); }
.jk-card .stage { width: 100%; height: auto; aspect-ratio: 9 / 16; flex: none; }
.jk-card .scrub { position: relative; left: auto; right: auto; bottom: auto; margin: 0; height: 44px; flex: none; }
.jk-card::after { border-radius: 22px; }
.jk-card.has-note .stage .ov-title { top: 9%; }
.jirka:not(.ig-off) .jk-card.has-note .stage .ov-title { top: 15%; }

.upl-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.upl-item.done { opacity: .6; }
.upl-form { max-height: 70vh; overflow: auto; }

/* rychlost u palce */
.jk-actions .spd { width: 50px; height: 50px; font: 800 15px Poppins, sans-serif; color: var(--mute); }
.jk-actions .spd.fast { color: #111; background: var(--ygrad, var(--yellow)); border-color: var(--yellow); box-shadow: var(--glow); }
.jk-card.back .jk-info { visibility: hidden; }
.jk-card.back .scrub { visibility: hidden; }

/* ---------- swipe na celou obrazovku (v3): video co největší, info průhledně nahoře na videu, malá tlačítka dole ---------- */
.jirka { --act: 64px; --scr: 30px;
  --cw: min(100vw, calc((100dvh - var(--safe-t) - var(--safe-b) - var(--act) - var(--scr) - 14px) * 0.5625));
  position: relative; overflow: hidden; }
.jirka .jk-deck { padding: 0; place-items: start center; overflow: hidden; }
.jirka .jk-card { top: 0; width: var(--cw); gap: 6px; }
.jirka .jk-card .stage { border-radius: 14px; }
.jirka .jk-card .scrub { height: var(--scr); border-radius: 8px; margin: 0 6px; }
.jirka .jk-card .scrub-film { border-radius: 8px; }
/* horní lišta (projekt, počty, IG) leží na videu v místě instagramové lišty */
.jirka .jk-top { position: absolute; z-index: 12; top: var(--safe-t); left: 50%; transform: translateX(-50%); width: var(--cw); padding: 8px 10px 0; gap: 8px; pointer-events: none; }
.jirka .jk-top > * { pointer-events: auto; }
.jirka .jk-top .icon-btn { width: 30px; height: 30px; font-size: 18px; background: rgba(0,0,0,.35); border-radius: 50%; display: grid; place-items: center; color: #fff; }
.jirka .jk-top .ep { min-width: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.jirka .jk-top .ep b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jirka .jk-top .ep span { font-size: 11px; color: rgba(255,255,255,.75); white-space: nowrap; }
.jirka .ig-tog { height: 26px; padding: 0 9px; font-size: 11px; border-radius: 8px; flex: none; }
.jirka .banner { position: absolute; z-index: 13; top: calc(var(--safe-t) + 44px); left: 12px; right: 12px; }
/* štítky a poznámka pod horní lištou, jeden řádek; ťuknutím se poznámka rozbalí */
.jirka .jk-info { position: absolute; z-index: 7; top: 44px; left: 10px; right: 10px; height: auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-start; pointer-events: none; }
.jirka .jk-info .card-meta { display: contents; }
.jirka .jk-info .badge-v2, .jirka .jk-info .badge-info { font-size: 11px; padding: 3px 8px; }
.jirka .jk-info .changed { flex: 1 1 100%; min-width: 0; font-size: 12px; line-height: 1.3; padding: 5px 9px; border-radius: 9px; background: rgba(0,0,0,.55); -webkit-line-clamp: 1; pointer-events: auto; cursor: pointer; }
.jirka .jk-info .changed.open { -webkit-line-clamp: 8; }
.changed .msg-play { font: inherit; font-size: 11.5px; color: #111; background: #ffd400; border: 0; border-radius: 999px; padding: 1px 8px; margin: 0 2px; cursor: pointer; }
.jirka .jk-info .ig-edit { position: static; font-size: 11px; padding: 3px 9px; background: rgba(0,0,0,.55); }
.jirka:not(.ig-off) .stage .ov-title, .jirka .stage .ov-title { top: 17%; }
/* tlačítka menší */
.jirka .jk-actions { height: var(--act); padding: 4px 0 var(--safe-b); gap: 18px; box-sizing: content-box; }
.jirka .jk-actions button { width: 50px; height: 50px; }
.jirka .jk-actions .up, .jirka .jk-actions .spd { width: 42px; height: 42px; }
.jirka .jk-actions .yes { width: 58px; height: 58px; }
.jirka .jk-actions .aico { width: 26px; height: 26px; }
.jirka .jk-actions .up .aico { width: 22px; height: 22px; }
.jirka .jk-actions .spd { font-size: 13px; }
.jirka .jk-info .changed:not(.open) { max-height: calc(1.3em + 10px); }
.jirka .jk-deck { place-items: center; }
/* výška balíčku = video + posuvník, tlačítka hned pod tím a vyplní zbytek */
.jirka .jk-deck { flex: none; height: calc(var(--cw) * 16 / 9 + var(--scr) + 6px); margin-top: var(--safe-t); }
.jirka { padding-top: 0; }
.jirka .jk-actions { flex: 1; height: auto; min-height: var(--act); align-items: center; }
.jirka .jk-card.has-note .stage .ov-title { top: 20%; }
/* ---------- v4: rozměry počítá JS (--cw, --deckh, --safeT, --safeB); video od horního okraje jako Instagram ---------- */
.jirka { height: 100dvh; padding: 0; display: flex; flex-direction: column; }
.jirka .jk-deck { flex: none; height: var(--deckh); margin: 0; place-items: start center; }
.jirka .jk-card { top: 0; width: var(--cw); }
.jirka .jk-card .stage { border-radius: 0 0 14px 14px; }
.jirka .jk-top { top: var(--safeT, 0px); }
.jirka .jk-info { top: calc(var(--safeT, 0px) + 42px); }
.jirka .banner { top: calc(var(--safeT, 0px) + 44px); }
.jirka .jk-actions { flex: 1 1 auto; min-height: 66px; height: auto; display: flex; align-items: center; justify-content: center; padding: 0 0 var(--safeB, 0px); }
/* titulek pod naše informace */
.jirka .stage .ov-title { top: calc(var(--safeT, 0px) + 74px); }
.jirka .jk-card.has-note .stage .ov-title { top: calc(var(--safeT, 0px) + 104px); }
/* ---------- v5: obrazovka pevně přes celý displej; tlačítka dole, video dostane zbytek (žádné počítání výšky) ---------- */
.jirka.jirka { position: fixed; inset: 0; height: auto; padding: 0; display: flex; flex-direction: column; }
.jirka.jirka .jk-deck { flex: 1 1 auto; min-height: 0; height: auto; margin: 0; container-type: size; display: grid; place-items: start center; }
.jirka.jirka .jk-card { top: 0; width: min(100cqw, calc((100cqh - 36px) * 0.5625)); }
.jirka.jirka .jk-actions { flex: none; height: calc(68px + env(safe-area-inset-bottom)); min-height: 0; padding: 0 0 env(safe-area-inset-bottom); display: flex; align-items: center; justify-content: center; }
.jirka.jirka .jk-top { top: env(safe-area-inset-top); width: min(100vw, var(--cwv, 100vw)); }
.jirka.jirka .jk-info { top: calc(env(safe-area-inset-top) + 42px); }
.jirka.jirka .banner { top: calc(env(safe-area-inset-top) + 44px); }
/* titulek vždy pod horní lištou a poznámkou */
.jirka.jirka .stage .ov-title { top: calc(env(safe-area-inset-top) + 82px); }
.jirka.jirka .jk-card.has-note .stage .ov-title { top: calc(env(safe-area-inset-top) + 118px); }

/* aplikace z plochy: obrazovka přes celý displej (výška z displeje, ne z okna) */
.is-app, .is-app body { min-height: var(--app-h); background: #0a0a0b; }
.is-app .jirka.jirka { inset: 0 0 auto 0; height: var(--app-h); }
.jirka.jirka .jk-actions { box-sizing: border-box; }

/* přidělení editorovi + hotovo */
.assign { display: inline-flex; padding: 3px; gap: 2px; border-radius: 99px; background: var(--bg3); border: 1px solid var(--line); }
.assign button { padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--mute); transition: background .15s, color .15s; }
.assign button:hover { color: var(--text); }
.assign button.on { background: var(--ygrad, #ffd400); color: #141100; }
.row.leaving { opacity: 0; transform: translateX(24px); transition: opacity .22s, transform .22s; }

/* přetahování výstřižků na záložky */
.tabs.dragging button:not(.on) { outline: 1px dashed rgba(255, 212, 0, .45); outline-offset: -1px; }
.tabs button.drop { background: var(--ygrad, #ffd400) !important; color: #141100 !important; transform: scale(1.06); transition: transform .12s; }
.tabs button.drop i { color: #141100; }
[data-id].dragging { opacity: .35; }
[data-id][draggable="true"] { cursor: grab; }
/* kdo naposledy rozhodl */
.row .pill.who { white-space: nowrap; flex-shrink: 0; }
/* poznámka pro editora */
.row .fb.ed-note { border-left: 3px solid var(--yellow); }
/* úpravy poznámek */
.row .fb.note { position: relative; padding-right: 52px; }
.row .fb.note .nacts { position: absolute; right: 4px; top: 4px; display: flex; gap: 2px; }
.row .fb.note .nacts .vx { position: static; background: none; border: 0; color: inherit; opacity: .45; cursor: pointer; font-size: 13px; padding: 2px 4px; }
.row .fb.note .nacts .vx:hover { opacity: 1; }
.row .nbar { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.sheet .keepv { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; font-size: 13px; color: var(--dim); }
/* feedback */
.fbrow.done { opacity: .5; }
.fbrow .fb { margin-top: 6px; white-space: pre-wrap; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* Zobrazit jako (admin) */
.viewas { position: fixed; left: 50%; top: calc(6px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border-radius: 999px; background: #ffd400; color: #141100; font: 600 12.5px Poppins, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.5); white-space: nowrap; }
.viewas .btn { background: #141100; color: #ffd400; border: 0; height: 30px; padding: 0 14px; font: 800 12.5px Poppins, sans-serif; }
@media (max-width: 420px) { .viewas > span { display: none; } }
@media (min-width: 900px) { .viewas { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); } } /* nahoře zakrýval záložky */

/* ===== v2: navigace admina ===== */
.anav { position: fixed; left: 0; top: 0; bottom: 0; width: 220px; z-index: 50; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; background: #0e0e10; border-right: 1px solid var(--line); }
.anav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--text); text-decoration: none; font: 600 15px Poppins, sans-serif; }
.anav-brand img { width: 30px; height: 30px; } .anav-brand b { color: var(--yellow); font-weight: 800; }
.anav-items { display: flex; flex-direction: column; gap: 2px; }
.anav a, .anav-x { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; color: var(--mute); text-decoration: none; font: 600 14px Poppins, sans-serif; transition: background .15s, color .15s; text-align: left; width: 100%; }
.anav a:hover, .anav-x:hover { background: var(--bg2); color: var(--text); }
.anav a.on { background: rgba(255,212,0,.12); color: var(--yellow); }
.anav svg { width: 19px; height: 19px; flex: none; }
.anav .fbcount { margin-left: auto; font-style: normal; font-size: 11px; color: #111; background: var(--yellow); border-radius: 99px; padding: 0 7px; }
.anav .fbcount:empty { display: none; }
.anav-sec { margin: 18px 10px 6px; color: var(--dim); font: 700 11px Poppins, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.anav-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 0; border-top: 1px solid var(--line); color: var(--mute); font: 600 13px Poppins, sans-serif; }
body.has-nav { padding-left: 220px; }
body.has-nav .home, body.has-nav .page { max-width: none; }
.jan-title h1 { margin: 0; font: 800 22px/1.1 Poppins, sans-serif; } .jan-title small { color: var(--mute); font: 500 12.5px Poppins, sans-serif; }
@media (max-width: 860px) {
  body.has-nav { padding-left: 0; padding-bottom: calc(64px + var(--safe-b)); }
  .anav { top: auto; width: auto; right: 0; flex-direction: row; padding: 6px 6px calc(6px + var(--safe-b)); border-right: 0; border-top: 1px solid var(--line); }
  .anav .anav-brand, .anav .anav-sec, .anav .anav-x, .anav .anav-foot { display: none; }
  .anav-items { flex-direction: row; flex: 1; justify-content: space-around; }
  .anav a { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 10.5px; flex: 1; align-items: center; }
  .anav .fbcount { position: absolute; margin: 0 0 0 18px; }
}

/* ===== v2: přehled ===== */
.dash { padding: 28px 28px 60px; max-width: 1280px; }
.dash-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.dash-h h1 { margin: 0; font: 800 30px/1.1 Poppins, sans-serif; letter-spacing: -.02em; }
.dash-h small { color: var(--mute); font: 500 14px Poppins, sans-serif; }
.dash-h .btn svg { width: 18px; height: 18px; }
.dash-todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.dt { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); color: var(--mute); text-decoration: none; transition: border-color .15s, transform .15s; }
.dt:hover { border-color: #3a3a40; transform: translateY(-1px); }
.dt b { font: 800 30px/1 Poppins, sans-serif; color: var(--dim); }
.dt span { font: 600 13px Poppins, sans-serif; }
.dt .dt-where { font: 500 11px Poppins, sans-serif; color: var(--mute); opacity: .8; }
.dt.on { border-color: rgba(255,212,0,.4); background: linear-gradient(180deg, rgba(255,212,0,.08), rgba(255,212,0,.02)); color: var(--text); }
.dt.on b { color: var(--yellow); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.dash-grid .card { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.dash-grid h3 { margin: 0 0 14px; font: 800 16px Poppins, sans-serif; }
.dash-act { grid-row: span 2; grid-column: 2; grid-row-start: 1; max-height: 720px; overflow: auto; }
.dp { display: block; padding: 10px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.dp:last-of-type { border-bottom: 0; }
.dp-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .dp-h b { font: 700 14px Poppins, sans-serif; } .dp-h span { color: var(--mute); font-size: 12.5px; }
.dp-bar { display: flex; gap: 3px; height: 22px; }
.dp-bar i { display: flex; align-items: center; justify-content: center; border-radius: 6px; min-width: 22px; }
.dp-bar em { font: 700 11px Poppins, sans-serif; font-style: normal; color: #111; }
.st-jan { background: #8a8a92; } .st-jirka { background: var(--blue); } .st-rework { background: #ff9f43; } .st-approved { background: var(--yellow); } .st-done { background: var(--green); } .st-empty { background: var(--bg3); }
.dp-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: var(--mute); font-size: 12px; }
.dp-legend span { display: inline-flex; align-items: center; gap: 6px; } .dp-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dash-week { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .dash-week h3 { grid-column: 1 / -1; margin-bottom: 2px; }
.dw { padding: 12px; border-radius: 14px; background: var(--bg3); } .dw b { display: block; font: 800 24px/1.1 Poppins, sans-serif; } .dw span { color: var(--mute); font-size: 12.5px; }
.da { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--mute); text-decoration: none; font-size: 13.5px; line-height: 1.4; }
.da:last-child { border-bottom: 0; }
.da b { color: var(--text); } .da em { color: var(--text); font-style: normal; font-weight: 600; }
.da small { display: block; color: var(--dim); font-style: italic; margin-top: 2px; }
.da time { margin-left: auto; white-space: nowrap; color: var(--dim); font-size: 12px; }
.da .who { width: 26px; height: 26px; border-radius: 13px; flex: none; display: grid; place-items: center; font: 800 12px Poppins, sans-serif; background: var(--bg3); color: var(--text); }
.da .w-jirka { background: var(--blue); color: #fff; } .da .w-jan { background: var(--yellow); color: #111; } .da .w-claude { background: #c07cff; color: #fff; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } .dash-act { grid-column: auto; grid-row: auto; } .dash { padding: 18px 14px 40px; } }
@media (max-width: 600px) {
  .dash-h { flex-wrap: wrap; align-items: center; } .dash-h h1 { font-size: 24px; } .dash-h .sp { display: none; }
  .dash-todo { grid-template-columns: 1fr 1fr; gap: 8px; } .dt { padding: 12px; } .dt b { font-size: 24px; } .dt span { font-size: 12px; }
}
.act-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .act-h h3 { margin: 0; }
.act-f { display: flex; gap: 4px; } .act-f button { padding: 3px 9px; border-radius: 99px; font: 600 11.5px Poppins, sans-serif; color: var(--mute); background: var(--bg3); }
.act-f button.on { background: var(--yellow); color: #111; }
/* v2: stránka editora */
.ecard { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; transition: opacity .2s, transform .2s; }
.ecard.leaving { opacity: 0; transform: translateX(30px); }
.ec-h { display: flex; align-items: flex-start; gap: 12px; } .ec-h > div { flex: 1; }
.ec-h b { display: block; font: 800 15px Poppins, sans-serif; text-transform: uppercase; } .ec-h span { color: var(--mute); font-size: 13px; }
.enote { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(255,212,0,.06); border-left: 3px solid var(--yellow); font-size: 14px; }
.enote .eh { display: block; color: var(--yellow); font: 700 11px Poppins, sans-serif; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.enote audio { margin-top: 6px; width: 100%; height: 34px; }
.edone { margin: 6px 0 18px; } .edone summary { cursor: pointer; color: var(--mute); font: 700 14px Poppins, sans-serif; padding: 8px 0; }
/* v2: novinky */
.novinky .nv { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }
.novinky .nv h2 { margin: 0 0 10px; font: 800 18px Poppins, sans-serif; }
.novinky .nv ul { margin: 0; padding-left: 18px; } .novinky .nv li { margin: 6px 0; color: #d6d6da; line-height: 1.5; } .novinky .nv li b { color: var(--text); }
.novinky .btn { margin: 6px 0 40px; }
.anav a[data-k="novinky"].new::after { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--yellow); margin-left: auto; }
.tabs-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; } .tabs-row .tabs { margin: 0; flex: 1; min-width: 0; }
.jsearch { width: 220px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); padding: 0 12px; font: 500 14px Poppins, sans-serif; outline: none; }
.jsearch:focus { border-color: var(--yellow); }
@media (max-width: 900px) { .tabs-row { flex-direction: column; align-items: stretch; } .jsearch { width: 100%; } }
.nmore { display: block; margin: 6px 0 2px; color: var(--mute); font: 600 12px Poppins, sans-serif; } .nmore:hover { color: var(--yellow); }
/* řazení projektů */
.proj-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; color: var(--mute); font: 600 13px Poppins, sans-serif; }
.proj-sort button { padding: 6px 12px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); color: var(--mute); font: 600 13px Poppins, sans-serif; }
.proj-sort button:hover { color: var(--text); }
.proj-sort button.on { background: var(--yellow); border-color: var(--yellow); color: #111; }
.proj-sort .dir { margin-left: 4px; border-style: dashed; }

/* příkaz pro Terminál v kartě panelů */
.pcard .pcmd { display: block; margin: 8px 0 2px; padding: 9px 11px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: #ffd84d; word-break: break-all; cursor: copy; user-select: all; }
.pcard .pcmd.copied::after { content: "  ✓ zkopírováno"; color: #8be28b; font-family: inherit; }
/* Mozek: filtr období statistik */
.b-range { height: 34px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); font: 600 13px Poppins, sans-serif; padding: 0 10px; }
.b-dates { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; }
.b-dates.hide { display: none; }
.b-dates input { height: 34px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); font: 600 13px Poppins, sans-serif; padding: 0 8px; color-scheme: dark; }

/* Mozek: modely agentů (reels i Zprávy) */
.ag-box { margin: 18px 0; }
.ag-box .hint { margin: 0 0 12px; }
.ag-list { display: grid; gap: 10px; }
.ag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.ag-t { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.ag-t span { color: var(--mute); font-size: 13px; }
.ag-t small { color: var(--dim, var(--mute)); font-size: 12px; }
.ag-c { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ag-models { display: inline-flex; flex-wrap: wrap; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.ag-models button { border: 0; background: none; color: var(--mute); font: 600 13px/1.1 inherit; padding: 7px 11px; border-radius: 9px; cursor: pointer; display: grid; justify-items: center; gap: 2px; }
.ag-models button small { font-size: 10px; font-weight: 500; opacity: .75; }
.ag-models button.on { background: var(--yellow); color: #111; }
.ag-models button:disabled { cursor: default; }
.ag-eff { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 13px; }
.ag-eff select { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; }

/* Můj účet */
.acc-btn { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--bg3); border: 1px solid var(--line); color: var(--text); font: 800 14px/1 Poppins, sans-serif; display: grid; place-items: center; cursor: pointer; }
.acc-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.zp-top .acc-btn { margin-left: 4px; }
/* zpětná vazba k aplikaci: tlačítko v hlavičce vedle účtu, na telefonu jen ikona */
.fb-btn { height: 34px; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px 0 11px; border-radius: 99px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); font: 600 13px/1 Poppins, sans-serif; cursor: pointer; white-space: nowrap; }
.fb-btn svg { width: 17px; height: 17px; }
.fb-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.fb-btn + .acc-btn { margin-left: 0; }
@media (max-width: 600px) { .fb-btn { width: 34px; padding: 0; justify-content: center; } .fb-btn span { display: none; } }
.acc-fb { display: block; width: 100%; text-align: left; margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg3, rgba(255,255,255,.06)); border: 1px solid var(--line); color: var(--text); cursor: pointer; font: inherit; }
.acc-fb b { display: block; font-family: Poppins, sans-serif; } .acc-fb span { display: block; color: var(--muted, #999); font-size: 13px; margin-top: 2px; }
.acc-fb:hover { border-color: var(--yellow); }
.acc-pl summary { cursor: pointer; list-style: none; } .acc-pl summary::-webkit-details-marker { display: none; }
.acc-pl summary::after { content: "›"; float: right; opacity: .5; transition: transform .2s; } .acc-pl[open] summary::after { transform: rotate(90deg); }
.acc-pl .steps { margin: 10px 0 4px; font-size: 14px; }
.fb-where { display: block; margin-top: 6px; color: var(--muted, #888); font-size: 12px; }
.acc-name { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-decoration: underline dotted rgba(255,255,255,.3); text-underline-offset: 3px; }
.acc-pw { display: grid; gap: 10px; }
.acc-pw label { display: grid; gap: 5px; font-size: 13px; color: var(--mute); }
.acc-pw input { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; color: var(--text); }
.pwv { font-family: ui-monospace, Menlo, monospace; user-select: all; }
.ag-models button:disabled:not(.on) { opacity: .45; }
.ag-eff select:disabled { opacity: .6; }
/* Účty: zaškrtávátka sekcí (dřív zdědila styl textových polí a rozpadla se) */
.acc-secs { display: flex; flex-direction: column; gap: 8px; font: 600 13px Poppins, sans-serif; color: var(--mute); }
.acc-secs label { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--text) !important; cursor: pointer; }
.acc-secs input[type="checkbox"] { height: 18px !important; width: 18px; padding: 0 !important; accent-color: var(--yellow); margin: 0; }

/* upozornění (Můj účet, výzva ve swipe, návod pro iPhone) */
.acc-push-box { background: var(--bg3, rgba(255,255,255,.06)); border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; }
.acc-push-box .hint { margin: 4px 0 0; }
.acc-push-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.push-steps { margin: 6px 0 14px; padding-left: 22px; line-height: 1.6; }
.push-steps li { margin: 4px 0; }
.push-ico { display: inline-block; padding: 0 5px; border-radius: 6px; background: rgba(255,255,255,.1); }
.banner .push-on { margin-left: auto; background: rgba(0,0,0,.82); color: var(--yellow); border-radius: 9px; padding: 6px 10px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.banner .push-on + .push-x { margin-left: 0; }

/* Honzovo třídění: verze tématu na jedné kartě, přeskočit, celá fronta */
.vers { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: auto; }
.vpill { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 9px; border-radius: 99px; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 600 11.5px Poppins, Inter, -apple-system, system-ui, sans-serif; border: 1px solid rgba(255,255,255,.18); white-space: nowrap; cursor: pointer; }
.vpill b { font-weight: 900; }
.vpill.on { background: var(--ygrad, var(--yellow)); color: #111; border-color: transparent; box-shadow: var(--glow); }
.vpill.off:not(.on) { opacity: .7; }
.vpill i { font-style: normal; font-size: 10px; opacity: .8; }
.jk-card.not-queued .stage { outline: 2px dashed rgba(255,212,0,.55); outline-offset: -2px; }
.jirka .jk-top .q-tog { height: 26px; padding: 0 9px; border-radius: 8px; flex: none; font: 800 12px Poppins, sans-serif; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); }
.jirka .jk-actions .skip { width: 42px; height: 42px; font-size: 20px; color: var(--mute); }
.qlist { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; margin: 8px 0 12px; -webkit-overflow-scrolling: touch; }
.qrow { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 12px; background: var(--bg3, rgba(255,255,255,.06)); border: 1px solid var(--line); }
.qrow.on { border-color: var(--yellow); }
.qrow .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 12px Poppins, sans-serif; background: rgba(255,255,255,.08); }
.qrow .t { min-width: 0; display: flex; flex-direction: column; }
.qrow .t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .t small { color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-all { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--mute); margin: 8px 0 4px; line-height: 1.35; }
.drop-all input { margin-top: 2px; flex: none; }
.jirka.jirka .jk-card.has-vers .stage .ov-title, .jirka.jirka .jk-card.has-vers.has-note .stage .ov-title { top: var(--ttop, calc(env(safe-area-inset-top) + 146px)); }

/* Výstřižky ze všech projektů: štítek projektu u řádku */
.row .main .proj-tag { font-style: normal; font-weight: 700; color: var(--yellow); }
.theme-h h3 .pill { font-size: 11px; vertical-align: middle; margin-left: 6px; }

/* ---------- třídění na mobilu: nic pod horní lištou systému. iOS tam obraz rozmazává a video končilo uříznuté.
   Pod lištou je hlavička, pod ní celé video 9:16, posuvník a tlačítka; video dostane všechno, co zbude. ---------- */
@media (hover: none) {
  .jirka.jirka { padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); background: #0a0a0b; }
  .jirka.jirka::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: #0a0a0b; z-index: 20; pointer-events: none; }
  .jirka.jirka .jk-top { position: relative; top: auto; left: auto; transform: none; width: 100%; height: 40px; flex: none; padding: 0 10px 0 6px; }
  .jirka.jirka .jk-top .ep { flex: 1; }
  .jirka.jirka .jk-deck { padding: 0; }
  .jirka.jirka .jk-card .stage { border-radius: 14px; }
  .jirka.jirka .jk-info { top: 8px; }
  .jirka.jirka .banner { top: calc(env(safe-area-inset-top) + 44px); }
  .jirka.jirka .stage .ov-title, .jirka.jirka .jk-card.has-note .stage .ov-title,
  .jirka.jirka .jk-card.has-vers .stage .ov-title, .jirka.jirka .jk-card.has-vers.has-note .stage .ov-title { top: var(--ttop, 15%); }
  /* tlačítka smí zasáhnout do spodního okraje, jen se nesmí dotknout proužku domů */
  .jirka.jirka .jk-actions { height: calc(72px + max(env(safe-area-inset-bottom) - 12px, 8px)); padding: 0 0 max(env(safe-area-inset-bottom) - 12px, 8px); }
}

/* ---------- třídění na širším displeji (iPhone Duo zavřený i otevřený, iPad, telefon na šířku): tlačítka vedle videa,
   video dostane celou výšku a zůstává uprostřed ---------- */
@media (hover: none) and (min-aspect-ratio: 5/8) {
  .jirka.jirka {
    --side: 84px;
    --pb: max(env(safe-area-inset-bottom), 8px);
    --ch: calc(var(--app-h, 100dvh) - env(safe-area-inset-top) - 40px - var(--pb));
    --cw: min(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 2 * var(--side), (var(--ch) - 36px) * 0.5625);
    display: grid; grid-template-columns: minmax(0, 1fr) var(--cw) minmax(0, 1fr); grid-template-rows: 40px minmax(0, 1fr);
    padding-bottom: var(--pb);
  }
  .jirka.jirka .jk-top { grid-column: 1 / -1; grid-row: 1; }
  .jirka.jirka .jk-deck { grid-column: 2; grid-row: 2; }
  .jirka.jirka .jk-actions { grid-column: 3; grid-row: 2; justify-self: start; flex-direction: column; width: var(--side); height: auto; gap: 12px; padding: 0 0 36px; }
}

/* na šířku je výška vzácná: hlavička do levého sloupce, video až nahoru */
@media (hover: none) and (min-aspect-ratio: 1/1) {
  .jirka.jirka { --pt: max(env(safe-area-inset-top), 8px); --ch: calc(var(--app-h, 100dvh) - var(--pt) - var(--pb)); padding-top: var(--pt); grid-template-rows: minmax(0, 1fr); }
  .jirka.jirka .jk-top { grid-column: 1; grid-row: 1; align-self: start; height: auto; flex-wrap: wrap; row-gap: 8px; padding: 0 8px; }
  .jirka.jirka .jk-top .ep { flex: 1 1 100%; order: 9; }
  .jirka.jirka .banner { position: relative; top: auto; left: auto; right: auto; grid-column: 1; grid-row: 1; align-self: end; margin: 0 8px 36px; font-size: 13px; }
  .jirka.jirka .jk-deck { grid-row: 1; }
  .jirka.jirka .jk-actions { grid-row: 1; }
}

/* ---------- V3: navigace ve skupinách, na mobilu pět položek ---------- */
.anav { overflow-y: auto; scrollbar-width: none; }
.anav-mob { display: none; }
.anav .anav-sec { margin: 14px 10px 4px; }
.anav a { position: relative; }
.nbadge { margin-left: auto; font: 700 11px/18px Poppins, sans-serif; min-width: 18px; height: 18px; padding: 0 6px; text-align: center; color: #111; background: var(--yellow); border-radius: 99px; font-style: normal; }
.nbadge:empty { display: none; }
.anav-foot { display: block; }
.anav-foot .anav-views { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; color: var(--mute); font: 600 13px Poppins, sans-serif; border-radius: 10px; text-align: left; }
.anav-foot .anav-views:hover { background: var(--bg2); color: var(--text); }
.anav-me { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 0; }
.more-list { display: flex; flex-direction: column; gap: 2px; }
.more-list a, .more-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 8px; color: var(--text); text-decoration: none; font: 600 16px Poppins, sans-serif; text-align: left; border-radius: 12px; }
.more-list svg { width: 22px; height: 22px; color: var(--mute); }
@media (max-width: 900px) {
  .anav { overflow: visible; }
  .anav .anav-items { display: none; }
  .anav .anav-mob { display: flex; flex: 1; justify-content: space-around; }
  .anav .anav-mob a, .anav .anav-mob button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; font: 600 11px Poppins, sans-serif; color: var(--mute); border-radius: 11px; position: relative; }
  .anav .anav-mob a.on, .anav .anav-mob button.on { color: var(--yellow); background: rgba(255,212,0,.12); }
  .anav-mob .nbadge { position: absolute; top: 1px; left: calc(50% + 7px); margin: 0; font-size: 10px; line-height: 15px; height: 15px; min-width: 15px; padding: 0 4px; }
}

/* ---------- V3: Přehled a editor ---------- */
.dt-clear { grid-column: 1 / -1; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg2); }
.dt-clear b { display: block; font: 800 20px Poppins, sans-serif; } .dt-clear span { color: var(--mute); }
.dash-note { display: inline-block; margin: 0 0 12px; color: var(--yellow); font-weight: 600; text-decoration: none; font-size: 14px; }

.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }

.acc-pref { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.acc-pref input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--yellow); }
.acc-pref span { display: flex; flex-direction: column; gap: 2px; }
.acc-pref small { color: var(--mute); font-size: 12.5px; line-height: 1.35; }

/* ---------- celé téma surově ---------- */
.rawt { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: #0b0b0c; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.rawt-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rawt-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rawt-ttl b { font: 800 16px Poppins, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rawt-meta { color: var(--mute); font-size: 12.5px; }
.rawt-x { width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); font-size: 18px; color: var(--text); }
.rawt-body { flex: 1; min-height: 0; display: flex; gap: 16px; padding: 12px 14px; }
.rawt-vid { position: relative; height: 100%; aspect-ratio: 9 / 16; flex: none; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.rawt-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rawt-audio { position: absolute; inset: 0; display: grid; place-items: center; font: 700 16px Poppins, sans-serif; color: var(--mute); background: #111; }
.rawt.audio .rawt-vid { aspect-ratio: auto; width: 140px; }
.rawt.audio .rawt-vid video { visibility: hidden; }
.rawt-text { flex: 1; min-width: 0; overflow-y: auto; padding-right: 6px; }
.rawt-u { margin: 0 0 6px; padding: 8px 12px; border-radius: 12px; color: var(--mute); font: 500 15.5px/1.5 Poppins, sans-serif; cursor: pointer; }
.rawt-u:hover { background: var(--bg2); }
.rawt-u.on { background: rgba(255, 212, 0, .1); color: var(--text); box-shadow: inset 3px 0 0 var(--yellow); }
.rawt-u .who { display: block; font-size: 12px; font-weight: 700; color: var(--ales); }
.rawt-u[data-sp="Vojta"] .who { color: var(--vojta); }
.rawt-u .who i { color: var(--dim); }
.rawt-u .who i { font-style: normal; font-weight: 500; margin-left: 6px; }
.rawt-u em { font-style: normal; color: var(--yellow); }
.rawt-ctl { padding: 8px 14px 12px; border-top: 1px solid var(--line); }
.rawt-seek { width: 100%; accent-color: var(--yellow); }
.rawt-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.rawt-row button { height: 40px; min-width: 44px; padding: 0 12px; border-radius: 12px; background: var(--bg2); color: var(--text); font: 700 13px Poppins, sans-serif; }
.rawt-row .rawt-play { width: 56px; height: 48px; border-radius: 16px; background: var(--ygrad, var(--yellow)); color: #111; font-size: 18px; }
.rawt-row .rawt-aud.on { background: var(--yellow); color: #111; }
.rawt-time { font: 600 13px Poppins, sans-serif; font-variant-numeric: tabular-nums; color: var(--mute); margin-right: auto; min-width: 96px; }
.rawt-hint { margin: 6px 0 0; text-align: center; color: var(--dim); font-size: 12px; }
.rawt-u { position: relative; padding-left: 44px; user-select: none; -webkit-user-select: none; }
.rawt-ck { position: absolute; left: 8px; top: 9px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: transparent; opacity: .55; transition: opacity .12s, background .12s, border-color .12s; }
.rawt-u:hover .rawt-ck, .rawt.picking .rawt-ck { opacity: 1; }
.rawt-ck:hover { border-color: var(--blue); }
.rawt-u.sel { background: rgba(77, 163, 255, .14); color: var(--text); }
.rawt-u.sel.on { box-shadow: inset 3px 0 0 var(--yellow); }
.rawt-u.sel .rawt-ck { opacity: 1; background: var(--blue); border-color: var(--blue); }
.rawt-u.sel .rawt-ck::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.rawt-u.full .rawt-ck { opacity: .35; border-style: dashed; cursor: default; }
.rawt-u.full .rawt-ck::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--yellow); }
.rawt-imp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: rgba(77, 163, 255, .14); border: 1px solid rgba(77, 163, 255, .35); }
.rawt-imp[hidden] { display: none; }
.rawt-imp-n { flex: 1; min-width: 0; font: 500 13.5px Poppins, sans-serif; color: var(--mute); }
.rawt-imp-n b { color: var(--text); }
.rawt-imp-b { display: flex; gap: 6px; flex-wrap: wrap; }
.rawt-imp-b button { height: 38px; padding: 0 14px; border-radius: 11px; background: var(--bg2); color: var(--text); font: 700 13px Poppins, sans-serif; white-space: nowrap; }
.rawt-imp-b .sm { display: none; }
.rawt-imp-b .primary { background: var(--blue); color: #fff; }
@media (hover: none) { .rawt-ck { opacity: 1; } }
@media (max-width: 760px) {
  .rawt-imp { padding: 8px; }
  .rawt-imp-n { flex-basis: 100%; padding-left: 4px; }
  .rawt-imp-b { width: 100%; }
  .rawt-imp-b button { flex: 1; padding: 0 8px; }
  .rawt-imp-b .primary { flex: 2; }
  .rawt-imp-b button { font-size: 12.5px; }
  .rawt-imp-x { flex: none !important; width: 40px; padding: 0 !important; }
  .rawt-imp-x .lg, .rawt-imp-go .lg { display: none; }
  .rawt-imp-b .sm { display: inline; }
  .rawt.picking .rawt-vid { height: 22vh; }
}
@media (max-width: 760px) {
  .rawt-body { flex-direction: column; gap: 10px; }
  .rawt-vid { height: 38vh; align-self: center; }
  .rawt.audio .rawt-vid { height: 48px; width: 100%; }
  .rawt-time { width: 100%; text-align: center; margin: 0; }
  .rawt-hint { display: none; }
}

/* YouTube / Patreon část dílu u výstřižku */
.part { display: inline-flex; align-items: center; margin-left: 4px; opacity: .75; vertical-align: middle; }
.part svg { height: 11px; width: auto; }
.part.yt { color: #ff3b47; } .part.pt { color: #f0e9df; }
.badge-part { display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; border-radius: 99px; background: rgba(0,0,0,.45); }
.badge-part .part { margin-left: 0; opacity: .9; }

/* ---------- Kandidáti: výběr témat a výstřižků, Backspace zamítne ---------- */
.theme-h { cursor: pointer; user-select: none; border-radius: 10px; }
.theme.msel { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; background: rgba(255,77,94,.06); }
.vcard.msel { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.theme.leaving, .vcard.leaving { opacity: 0; transform: translateX(-24px); transition: opacity .22s, transform .22s; }
.hint kbd { font: 600 10.5px/1 Poppins, sans-serif; padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg3); }
.btn.rejsel { background: rgba(255,77,94,.14); border-color: rgba(255,77,94,.5); color: #ff8a95; }
.btn.rejsel:hover { background: rgba(255,77,94,.24); }

/* ---------- Tier list ---------- */
.tier-btn i, .tabs.tier-tabs i { font-style: normal; }
.tier-btn i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--yellow); color: #111; font: 800 11px/20px Poppins, sans-serif; text-align: center; }
.tier-tog { height: 26px; width: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--bg3); font-size: 14px; text-decoration: none; flex: none; }
.done-tier { margin: 18px auto 6px; padding: 14px; border: 1px solid rgba(255,212,0,.35); background: rgba(255,212,0,.06); border-radius: 16px; max-width: 360px; }
.done-tier p { margin: 0 0 10px; }
.tier-cta h2 { color: var(--text); margin: 0 0 6px; font: 800 22px Poppins, sans-serif; }
.tier-cta p { margin: 0 0 16px; }
.tier { max-width: 1180px; margin: 0 auto; padding: 16px 24px 80px; }
.tier-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tier-ttl h1 { margin: 0; font: 800 24px/1.1 Poppins, sans-serif; }
.tier-ttl small { color: var(--mute); }
.tier-top .sp { flex: 1; }
.tier-saved { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.tier-tabs { display: inline-flex; margin-bottom: 10px; }
.tier-tabs i { color: var(--dim); font-size: 11px; margin-left: 4px; }
.tier .hint { margin: 0 0 12px; }
.tier-pre { color: var(--yellow); }
.tier-board { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg2); }
.trow { display: flex; min-height: 118px; border-top: 1px solid var(--line); transition: background .12s; }
.trow:first-child { border-top: 0; }
.trow.over { background: rgba(255,255,255,.04); }
.trow .tl { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #141414; padding: 6px; }
.trow .tl b { font: 900 34px/1 Poppins, sans-serif; }
.trow .tl small { font: 700 10.5px/1.15 Inter, sans-serif; opacity: .75; margin-top: 4px; }
.trow.pool .tl { color: var(--yellow); background: rgba(255,212,0,.08); }
.trow.pool .tl b { font-size: 20px; }
.trow.pool.empty-pool { min-height: 0; }
.trow.pool.empty-pool .tl { color: var(--green); background: rgba(47,211,110,.07); }
.trow.pool.empty-pool .tl b { font-size: 16px; }
.trow .tc { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; align-content: flex-start; align-items: flex-start; }
.tempty { color: var(--dim); font-size: 12px; align-self: center; margin: auto 8px; }
.tS { background: #ff7f7f; } .tA { background: #ffbf7f; } .tB { background: #ffdf7f; } .tC { background: #ffff7f; } .tD { background: #bfff7f; } .tE { background: #7fff7f; }
.trow[data-tier="D"] .tc, .trow[data-tier="E"] .tc { background: rgba(0,0,0,.18); }
.tcard { width: 92px; display: flex; flex-direction: column; gap: 4px; text-align: left; border-radius: 10px; padding: 3px; border: 1.5px solid transparent; cursor: grab; transition: transform .12s, border-color .12s, opacity .12s; }
.tcard:hover { border-color: #3a3a40; }
.tcard.dragging { opacity: .35; }
.tcard.pre .tp { outline: 1.5px dashed rgba(255,212,0,.7); outline-offset: 1px; }
.tcard .tp { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--bg3); }
.tcard .tp img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tcard .tbs { position: absolute; top: 4px; right: 4px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.tb { display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 6px; font: 800 10px/1.4 Poppins, sans-serif; color: #141414; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.tb b { font-weight: 900; }
.tcard .tt { font: 800 10.5px/1.15 Poppins, sans-serif; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .te { color: var(--dim); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tins { width: 3px; align-self: stretch; min-height: 140px; border-radius: 2px; background: var(--yellow); }
.tier-go { align-self: center; margin: 0 8px; }
.pill.tierp { color: #141414; font-weight: 900; font-family: Poppins, sans-serif; padding: 1px 7px; vertical-align: 1px; }
.tlet { color: #141414; padding: 0 5px; border-radius: 5px; font-family: Poppins, sans-serif; }
.sheet.tier-sheet { max-width: 720px; }
.tsh { display: flex; gap: 18px; }
.tsh-v { flex: none; width: min(260px, 38vw); aspect-ratio: 9 / 16; max-height: 62dvh; border-radius: 14px; overflow: hidden; background: #000; }
.tsh-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsh-r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tsh-r h3 { margin: 0; font: 800 18px/1.2 Poppins, sans-serif; text-transform: uppercase; }
.tsh-r .hint { margin: 0; }
.tsh-o { display: flex; gap: 6px; flex-wrap: wrap; }
.tsh-o:empty { display: none; }
.tsh-b { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tbtn { height: 64px; border-radius: 12px; color: #141414; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid transparent; transition: transform .1s, box-shadow .1s; }
.tbtn b { font: 900 26px/1 Poppins, sans-serif; }
.tbtn small { font: 700 9.5px/1 Inter, sans-serif; opacity: .7; margin-top: 3px; }
.tbtn:active { transform: scale(.94); }
.tbtn.on { border-color: #fff; box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px #fff; }
.tsh-m, .tsh-n { display: flex; gap: 6px; flex-wrap: wrap; }
.tsh-n { margin-top: auto; }
@media (max-width: 760px) {
  .tier { padding: 10px 12px 60px; }
  .tier-ttl h1 { font-size: 20px; }
  .tier-ttl small { display: none; }
  .trow { min-height: 96px; }
  .trow .tl { width: 52px; }
  .trow .tl b { font-size: 26px; }
  .trow .tl small { font-size: 8.5px; }
  .trow.pool .tl b { font-size: 14px; }
  .tcard { width: 66px; }
  .tcard .tt { font-size: 9px; }
  .tcard .te { display: none; }
  .tier-go { margin: 4px 0; height: 34px; font-size: 13px; padding: 0 10px; }
  .tsh { flex-direction: column; gap: 10px; }
  .tsh-v { width: auto; height: 42dvh; max-height: none; aspect-ratio: auto; align-self: center; width: calc(42dvh * 9 / 16); }
  .tsh-r h3 { font-size: 15px; }
  .tbtn { height: 54px; }
  .tbtn b { font-size: 22px; }
  .jan .topbar .tier-btn { padding: 0 10px; }
}
@media (max-width: 860px) { body.has-nav .sendbar { bottom: calc(60px + var(--safe-b)); padding-bottom: 12px; } }
/* tier list: projekt a poznámky v náhledu */
.tier-top .tier-proj { max-width: 280px; height: 36px; }
.tsh-notes { display: flex; flex-direction: column; gap: 6px; max-height: 28dvh; overflow-y: auto; padding-right: 2px; }
.tnote { background: var(--bg3); border-radius: 10px; padding: 7px 10px; border-left: 3px solid var(--line); display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.tnote.h { border-left-color: var(--yellow); }
.tnote.j { border-left-color: var(--blue); }
.tn-h { color: var(--mute); font-size: 11.5px; }
.tn-h b { color: var(--text); }
.tn-t { white-space: pre-wrap; }
.tnote audio { width: 100%; height: 32px; }
.tn-none { color: var(--dim); font-size: 12.5px; margin: 0; }
@media (max-width: 760px) {
  .tier-top { flex-wrap: wrap; }
  .tier-top .tier-proj { order: 5; flex: 1 1 100%; max-width: none; }
  .tsh-notes { max-height: 20dvh; }
  .tsh-v { height: 36dvh; width: calc(36dvh * 9 / 16); }
}

/* ---------- Schválené: ⚡ Upravit podle Jirky, verze a návrat k původní ---------- */
.rvs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.rvs-l { color: var(--yellow); font: 700 12px Poppins, sans-serif; margin-right: 2px; }
.btn.rv-go { background: rgba(255,212,0,.12); border-color: rgba(255,212,0,.45); color: var(--yellow); }
.btn.rv-go:hover { background: rgba(255,212,0,.2); }
.rv { display: flex; flex-direction: column; gap: 2px; text-align: left; max-width: 230px; padding: 6px 10px; border-radius: 10px; background: var(--bg3); border: 1.5px solid var(--line); transition: border-color .15s; }
.rv:hover { border-color: #4a4a50; }
.rv b { font: 800 12px Poppins, sans-serif; }
.rv span { color: var(--mute); font-size: 11.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv.on { border-color: var(--yellow); background: rgba(255,212,0,.08); }
.rv.on b { color: var(--yellow); }
.rv.playing { box-shadow: 0 0 0 2px var(--text); }
.rvs .rv-x { background: none; border: 0; color: var(--mute); opacity: .6; cursor: pointer; padding: 4px 6px; }
.rvs .rv-x:hover { opacity: 1; }
.rv-side { background: rgba(255,212,0,.07); border: 1px solid rgba(255,212,0,.35); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.rv-side > span { color: var(--yellow); font: 700 12.5px Poppins, sans-serif; }
.rv-side p { margin: 0; font-size: 13.5px; }
.rv-side .rv-on { color: var(--green); font: 700 13px Poppins, sans-serif; }
.rv-jn { background: var(--bg3); border-left: 3px solid var(--blue); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.rv-jn audio { width: 100%; height: 32px; }
@media (max-width: 760px) { .rv { max-width: 100%; flex: 1 1 140px; } }
/* nová verze aplikace stažená: štítek vpravo dole */
.upd-pill { position: fixed; right: 16px; bottom: calc(16px + var(--safe-b)); z-index: 60; padding: 10px 14px; border-radius: 99px; background: var(--yellow); color: #111; font: 600 13px Poppins, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.5); animation: up .3s cubic-bezier(.2,.9,.3,1); }
.upd-pill b { font-weight: 800; }
@media (max-width: 860px) { body.has-nav .upd-pill { bottom: calc(72px + var(--safe-b)); } }
/* časová osa: náhledy jako dlaždice ve správném poměru, vyznačené nově přidané úseky */
.scrub-film { display: flex; overflow: hidden; background: #111; }
.scrub-film i { flex: 1 1 0; min-width: 0; height: 100%; background-repeat: no-repeat; }
.scrub-marks { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.scrub-marks i { position: absolute; top: 0; bottom: 0; background: rgba(47,211,110,.38); box-shadow: inset 0 3px 0 #2fd36e, inset 0 -3px 0 #2fd36e; }
.scrub-legend { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--mute); font-size: 11.5px; }
.scrub-legend i { width: 14px; height: 8px; border-radius: 2px; background: rgba(47,211,110,.5); box-shadow: inset 0 2px 0 #2fd36e, inset 0 -2px 0 #2fd36e; }
/* tier list rovnou na konci swipu */
.jirka.tiering .jk-deck, .jirka.tiering .jk-actions, .jirka.tiering .banner { display: none !important; }
.jk-tier { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tier.embedded { padding-top: 4px; }
.tier-intro { margin-bottom: 14px; }
.tdone { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,212,0,.07); border: 1px solid rgba(255,212,0,.3); color: var(--mute); }
.tdone img { width: 44px; height: 44px; flex: none; }
.tdone b { display: block; color: var(--yellow); font: 900 20px Poppins, sans-serif; }
.tdone-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* tier list: rozmazaný náhled a emoji pod sebou (o čem výstřižek je, na první pohled) */
.tcard .tp.emo img { filter: blur(3px) brightness(.55) saturate(1.1); transform: scale(1.12); }
.tcard .temo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; pointer-events: none; }
.tcard .temo i { font-style: normal; font-size: 26px; line-height: 1.05; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
@media (max-width: 760px) { .tcard .temo i { font-size: 19px; } .tcard .temo { gap: 2px; } }
@media (max-width: 760px) { .trow .tl small { overflow-wrap: anywhere; } .trow.pool .tl small { font-size: 8px; } }
