/* Doplňky ke styles.css (převzatým z prototypu): přihlášení, modální okna, menu, stavy prázdna, víc úloh najednou. */
body.anon .top, body.anon .shell, body.anon .jobs { display: none; }
body:not(.anon) #login { display: none; }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 24px; }
.login-card { width: min(430px, 100%); background: var(--card); border-radius: 18px; padding: 32px 32px 26px; box-shadow: var(--shadow-l); border-top: 4px solid var(--red); }
.login-card .seal { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); margin-bottom: 16px; }
.login-card .seal img { width: 50px; }
.login-card h1 { font-size: 24px; }
.login-card p.sub { margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input, .field select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--sunk); outline: 0; }
.field textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--sunk); outline: 0; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field small { color: var(--faint); font-size: 12px; }
.err { color: var(--red); font-weight: 600; font-size: 13px; margin: 0 0 12px; }

.modal-wrap { position: fixed; inset: 0; z-index: 75; background: rgba(14,16,20,.5); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-wrap.on { display: flex; }
.modal { width: min(580px, 100%); max-height: 88vh; overflow: auto; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-l); border-top: 3px solid var(--red); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 18px 22px; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.menu { position: fixed; z-index: 72; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-l); padding: 6px; min-width: 230px; max-height: 360px; overflow: auto; }
.menu .mh { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; text-align: left; color: var(--text); }
.menu button:hover { background: var(--sunk); }
.user-chip { background: transparent; border: 0; padding: 0; cursor: pointer; }

.empty-card { background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--r); padding: 28px 24px; text-align: center; color: var(--muted); }
.empty-card h3 { color: var(--text); margin: 8px 0 6px; font-size: 16px; }
.empty-card .big-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin: 0 auto; }
.empty-card .big-ico svg.lucide { width: 22px; height: 22px; }
.working { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.working .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--red); border-top-color: transparent; animation: spin .8s linear infinite; flex: none; }
.working p { margin: 0; font-size: 13px; color: var(--muted); }
.working b { display: block; color: var(--text); font-size: 13.5px; }

.jobs .job + .job { border-top: 1px solid var(--ink-3); }
.jobs .job.err .jobs-h .sp { background: #6b2a2d; }
.jobs .x { margin-left: auto; background: transparent; border: 0; color: var(--on-ink-2); cursor: pointer; }

.topic-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; }
.topic-box p { margin: 0 0 6px; color: var(--muted); }
.topic-box [contenteditable] { outline: 0; border-radius: 6px; }
.topic-box [contenteditable]:focus { box-shadow: 0 0 0 2px var(--blue-soft); }
.instr { display: flex; gap: 8px; margin-bottom: 12px; }
.instr input { flex: 1; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: var(--card); outline: 0; }
.instr select, .dock select { height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); padding: 0 8px; font-weight: 600; }
.dock select { background: var(--ink-2); color: #fff; border-color: var(--ink-3); }
.dir [contenteditable] { outline: 0; border-radius: 6px; }
.dir [contenteditable]:focus { box-shadow: 0 0 0 2px var(--blue-soft); }
.dir .via { font-size: 11px; font-weight: 700; color: var(--faint); margin-left: 6px; }
.ev .ref .pin { margin-left: auto; }
.chips-sm { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qs { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; }
.qs li { padding: 5px 0; border-top: 1px solid var(--line-2); }
.qs li:first-child { border-top: 0; }
.srcform { display: grid; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.srcform input, .srcform textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--sunk); outline: 0; }

.hashtags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 0 34px 18px; }
.hashtags .ht { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13px; padding: 3px 6px 3px 10px; border-radius: 999px; }
.hashtags .ht button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 2px; display: grid; place-items: center; }
.hashtags .ht svg.lucide { width: 12px; height: 12px; }
.hashtags input { border: 1px dashed var(--line); border-radius: 999px; height: 28px; padding: 0 10px; background: transparent; outline: 0; width: 140px; font-size: 13px; }
.cmt-box { font-size: 13px; outline: 0; background: var(--sunk); border-radius: 8px; padding: 8px 10px; min-height: 52px; white-space: pre-wrap; }
.slide .q::before { content: "„"; }
.slide .q::after { content: "“"; }
.slide-tools { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
#render-stage { position: fixed; left: -10000px; top: 0; }
.thumb[draggable] { cursor: grab; }

.cal-pop { position: fixed; z-index: 72; }
.when input { border: 0; background: transparent; font-weight: 700; outline: 0; }
.approver input { border: 1px solid var(--line); border-radius: 8px; height: 30px; padding: 0 8px; background: var(--card); font-weight: 700; }
.signal textarea { width: 100%; border: 0; background: transparent; outline: 0; resize: vertical; min-height: 90px; font-size: 13px; line-height: 1.45; }
.comments { margin: 8px 0 14px; display: grid; gap: 6px; }
.comment { font-size: 12.5px; background: var(--sunk); border-radius: 8px; padding: 7px 10px; }
.comment b { font-size: 11.5px; color: var(--muted); display: block; }
.ac .stats { display: flex; gap: 6px; margin-bottom: 10px; }
.ac .stats label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.ac .stats input { width: 62px; height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--sunk); font-size: 12px; }
.rule textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--sunk); min-height: 70px; resize: vertical; }
.rule input.rt { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--sunk); font-weight: 700; margin-bottom: 6px; }
.voice-ex { font-size: 12.5px; color: var(--muted); background: var(--sunk); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }

/* řečník a přednáška */
.lec { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 2px; max-width: 100%; }
.lec img, .lec .ini { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(.2); }
.lec b { font-weight: 700; }
.lec.big { border-radius: 12px; padding: 4px 12px 4px 4px; }
.lec.big img, .lec.big .ini { width: 36px; height: 36px; border-radius: 9px; }
.lec.big span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lec.big small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.lec-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* fotka řečníka na titulním slidu */
.slide .photo { position: absolute; left: 0; right: 0; top: 10px; height: 54%; background-size: cover; background-position: center 22%; filter: grayscale(1) contrast(1.05); }
.slide.has-photo .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(22,24,29,.85)); }
.slide.t-light.has-photo .photo::after, .slide.t-min.has-photo .photo::after { background: linear-gradient(180deg, transparent 55%, rgba(246,245,242,.9)); }
.slide .photo-cap { position: absolute; left: 44px; right: 44px; top: calc(54% - 54px); font-size: 13px; font-weight: 800; color: #fff; z-index: 1; line-height: 1.3; }
.slide .photo-cap span { font-weight: 600; opacity: .85; font-size: 12px; }
.slide.t-light .photo-cap, .slide.t-min .photo-cap { color: #16181D; }
.slide.has-photo .kick { margin-top: 56%; }
.slide.has-photo .big { font-size: 40px; margin-top: 6px; }
.slide.has-photo .txt { font-size: 16px; margin-top: 10px; }

/* tlačítko s mikrofonem */
#fab { position: fixed; right: 24px; bottom: 24px; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; position: relative; box-shadow: 0 12px 32px -8px rgba(215,20,26,.7), 0 0 0 6px rgba(215,20,26,.12); transition: transform .15s, box-shadow .15s; order: 2; }
.fab:hover { transform: scale(1.05); }
.fab svg.lucide { width: 32px; height: 32px; }
.fab .plus { position: absolute; right: 2px; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; display: grid; place-items: center; }
.fab .plus svg.lucide { width: 14px; height: 14px; stroke-width: 3; }
.fab.open { background: var(--ink); box-shadow: var(--shadow-l); }
.fab.rec { animation: recpulse 1.2s ease-in-out infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 14px rgba(215,20,26,.18), 0 12px 32px -8px rgba(215,20,26,.7); } }
.micpanel { order: 1; width: min(460px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 18px; box-shadow: var(--shadow-l); overflow: hidden; }
.mp-h { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px 10px; }
.mp-h b { display: block; font-size: 15px; }
.mp-h span { font-size: 12.5px; color: var(--muted); }
.mp-h .btn { margin-left: auto; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 18px 12px; }
.mp-act { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--sunk); border-radius: 11px; padding: 10px 11px; font-weight: 700; font-size: 12.5px; cursor: pointer; text-align: left; color: var(--text); line-height: 1.25; }
.mp-act:hover { border-color: var(--red); background: var(--red-soft); }
.mp-act svg.lucide { color: var(--red); width: 18px; height: 18px; }
.mp-rec { display: flex; gap: 10px; padding: 0 18px 12px; align-items: flex-start; }
.mp-rec textarea { flex: 1; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: var(--sunk); outline: 0; resize: vertical; min-height: 92px; line-height: 1.5; }
.mp-mic { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--red-soft); color: var(--red); display: grid; place-items: center; cursor: pointer; flex: none; }
.mp-mic svg.lucide { width: 22px; height: 22px; }
.mp-mic.on { background: var(--red); color: #fff; animation: recpulse 1.2s ease-in-out infinite; }
.mp-mic:disabled { opacity: .4; cursor: not-allowed; }
.mp-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px 16px; border-top: 1px solid var(--line-2); }
.recdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; animation: pulse 1s infinite; }
.btn.dict.on { background: var(--red); border-color: var(--red); color: #fff; }
.jobs { right: 116px; }

/* moje téma */
.pv-hero { max-width: 900px; }
.pv-hero h1 { font-size: 34px; margin: 8px 0 6px; }
.pv-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); margin-top: 18px; overflow: hidden; }
.pv-box textarea { width: 100%; border: 0; outline: 0; padding: 22px 24px; font-size: 17px; line-height: 1.6; background: transparent; resize: vertical; min-height: 220px; }
.pv-tools { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--sunk); border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.pvs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pvc { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow-s); }
.pvc:hover { box-shadow: var(--shadow); }
.pvc .row { display: flex; align-items: center; gap: 8px; }
.pvc p { margin: 8px 0; font-size: 13px; color: var(--muted); }
.stepper button.s { border: 1px solid transparent; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.stepper button.s:disabled { cursor: default; }
.ev.pick { cursor: pointer; align-items: flex-start; }
.ev.pick input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--red); flex: none; }
.rail .fitbox { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
.stage { overflow: hidden; }
@media (max-width: 1750px) { .desk .stage .slide { zoom: .84; } }
@media (max-width: 1500px) { .desk .stage .slide { zoom: .72; } }

/* kampaň v liště */
.campsel { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--red); }
.campsel select { flex: 1; border: 0; background: transparent; font-weight: 700; color: var(--text); outline: 0; min-width: 0; }
.lbl-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }

/* řečníci */
.spk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.spk { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-s); border-top: 4px solid var(--c); transition: box-shadow .15s, transform .15s; }
.spk:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.spk .ph { height: 200px; background-size: cover; background-position: center 25%; filter: grayscale(1); transition: filter .2s; }
.spk:hover .ph { filter: none; }
.spk .in { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.spk b { font-size: 15px; }
.spk .role { font-size: 12px; color: var(--muted); }
.spk p { margin: 6px 0 8px; font-size: 13px; font-weight: 600; line-height: 1.4; flex: 1; }
.th { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.th i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.spk-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: var(--r); padding: 18px; }
.spk-head .ph { width: 220px; height: 260px; border-radius: 12px; background-size: cover; background-position: center 20%; }
.spk-head h1 { margin: 6px 0 2px; }
.spk-head .talk { font-size: 18px; font-weight: 700; margin: 12px 0 14px; letter-spacing: -.01em; }

/* kampaně */
.camp-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.camp-list { display: grid; gap: 8px; }
.camp { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: inherit; }
.camp.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
:root[data-theme="dark"] .camp.on { border-color: #ECEDEF; box-shadow: inset 0 0 0 1px #ECEDEF; }
.camp .row { display: flex; align-items: center; gap: 8px; }
.camp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.camp-grid .field.wide { grid-column: 1 / -1; }

/* přínos konference */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; margin-top: 10px; }
.ba p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.ba > div:nth-child(2) { padding-top: 20px; color: var(--faint); }
@media (max-width: 1050px) { .spk-head, .camp-layout, .ba { grid-template-columns: 1fr; } .camp-grid { grid-template-columns: 1fr; } }

/* úlohy */
.jl { display: grid; gap: 8px; }
.jr { display: grid; grid-template-columns: 96px minmax(0, 1fr) 190px auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.jr.running { border-color: var(--gold); }
.jr.error { border-left: 3px solid var(--red); }
.jm { display: flex; flex-direction: column; min-width: 0; }
.jm b { font-size: 13.5px; }
.jm span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jm small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.ja { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.jlog { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 10px 12px; background: var(--sunk); border-radius: 8px; font-size: 12px; max-height: 260px; overflow: auto; }
.jlog li { padding: 2px 0; }
.jobs .job-f { display: flex; gap: 6px; padding: 0 14px 12px; }
.jobs .job-f .btn:not(.primary) { background: var(--ink-2); border-color: var(--ink-3); color: #fff; }
@media (max-width: 1050px) { .jr { grid-template-columns: 1fr; } }

.newver { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 90; box-shadow: var(--shadow-l); }

/* odhad zbývajícího času */
.eta { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.eta .etabar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.eta .etabar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 2px; transition: width 1s linear; }
.eta.dark { color: var(--on-ink-2); }
.eta.dark .etabar { background: var(--ink-3); }
.jt .eta { min-width: 170px; }

/* video medailonek */
.vdrop { min-height: 380px; border: 2px dashed var(--line); border-radius: var(--r); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; text-align: center; color: var(--muted); }
.vdrop.over { border-color: var(--red); background: var(--red-soft); }
.vdrop h3 { color: var(--text); margin: 4px 0 0; }
.vdrop .big-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.vdrop .big-ico svg.lucide { width: 26px; height: 26px; }
.vwrap { display: grid; gap: 12px; }
.vplayer { background: #000; border-radius: var(--r); overflow: hidden; }
.vplayer video { width: 100%; max-height: 520px; display: block; background: #000; }
.vmeta { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.vmeta span { display: inline-flex; align-items: center; gap: 6px; }
.vtr { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--sunk); outline: 0; resize: vertical; line-height: 1.55; font-size: 13.5px; }
.claim { border-top: 1px solid var(--line-2); padding: 10px 0; display: grid; gap: 5px; }
.claim:first-of-type { border-top: 0; }
.claim .row { display: flex; gap: 6px; }
.claim b { font-size: 13.5px; }
.claim .q { margin: 0; font-size: 12.5px; color: var(--muted); font-style: italic; }
.ev-line { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--blue); }
.ev-line svg.lucide { width: 13px; height: 13px; margin-top: 2px; flex: none; }

/* ===== šablony slidů (templates.js) ===== */
.slide.styled { display: block; padding: 0; }
.slide.styled .deco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.slide.styled .slc { position: absolute; inset: 0; z-index: 2; padding: 46px 44px 86px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; }
.slide.styled .kick { color: var(--acc-t); margin: 0 0 12px; }
.slide.styled .acc { color: var(--acc-t); }
.slide.styled .big { margin-top: 0; font-size: 50px; }
.slide.styled .big.cta { font-size: 42px; }
.slide.styled .mid { font-size: 32px; }
.slide.styled .txt { color: var(--fg); opacity: .88; margin-top: 14px; font-size: 18px; }
.slide.styled .stat b { font-size: 88px; }
.slide.styled .stat span { color: var(--fg); opacity: .8; }
.slide.styled .chain div { background: var(--chip); border: 1px solid var(--line); }
.slide.styled .ft { position: absolute; left: 44px; right: 44px; bottom: 30px; z-index: 3; margin: 0; padding: 0; color: var(--fg); }
.slide.styled .attr { color: var(--mut); font-weight: 700; }
.slide.styled .img { position: absolute; z-index: 0; background-size: cover; background-position: center 25%; }
.slide.styled .img-top { left: 0; right: 0; top: 0; height: 50%; }
.slide.styled.im-top .slc { top: 46%; }
.slide.styled .img-side { left: 0; top: 0; bottom: 0; width: 44%; }
.slide.styled.im-side .slc { left: 44%; padding-left: 28px; }
.slide.styled.im-side .ft { left: calc(44% + 28px); }
.slide.styled.im-side .big { font-size: 38px; }
.slide.styled.im-side .mid { font-size: 27px; }
.slide.styled .img-circle { width: 112px; height: 112px; border-radius: 50%; right: 44px; top: 44px; border: 4px solid var(--acc); }
.slide.styled .img-full { inset: 0; }
.slide.styled .img-shade { position: absolute; inset: 0; z-index: 0; }
.slide.styled .photo-cap { top: calc(50% - 46px); z-index: 3; }
.slide.styled.im-side .photo-cap { top: auto; bottom: 30px; left: 16px; right: auto; width: calc(44% - 32px); font-size: 12px; }
/* rozložení */
.slide.styled.pl-center .slc { justify-content: center; }
.slide.styled.pl-top .slc { justify-content: flex-start; padding-top: 58px; }
.slide.styled.pl-ring .slc { justify-content: flex-start; padding-top: 0; }
.slide.styled.pl-ring.ty-stat .stat { position: absolute; left: 0; right: 0; top: 160px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 0; }
.slide.styled.pl-ring.ty-stat .stat b { font-size: 76px; }
.slide.styled.pl-ring.ty-stat .stat span { position: absolute; top: 236px; left: 44px; right: 44px; font-size: 20px; font-weight: 700; opacity: 1; }
.slide.styled.pl-ring.ty-stat .kick { position: absolute; top: 48px; left: 44px; }
.slide.styled.pl-ring.ty-stat .txt { position: absolute; left: 44px; right: 44px; bottom: 86px; }
.slide.styled.pl-ring:not(.ty-stat) .slc { justify-content: flex-end; }
.slide.styled.pl-list .chain { margin-top: 18px; gap: 10px; }
.slide.styled.tpl-seznam.ty-list .slc { justify-content: flex-start; padding-top: 70px; }
.slide.styled.tpl-seznam.ty-list .chain { position: absolute; top: 230px; left: 88px; right: 44px; gap: 14px; }
.slide.styled.tpl-seznam.ty-list .chain div { background: transparent; border: 0; padding: 6px 0; font-size: 17px; min-height: 48px; display: flex; align-items: center; }
.slide.styled.tpl-citat .qt { font-size: 30px; line-height: 1.25; }
.slide.styled.tpl-otazka .big, .slide.styled.tpl-otazka .mid { font-size: 40px; max-width: 360px; }
.slide.styled.tpl-diagonala .big { font-size: 46px; }
.slide.styled.tpl-globus .slc { max-width: 380px; }
.slide.styled.pl-ticket .slc { padding: 64px 60px 210px; justify-content: flex-start; }
.slide.styled.pl-ticket .ft { bottom: 50px; left: 60px; right: 60px; }
.slide.styled .days { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.slide.styled .days b { font-size: 92px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--acc-t); }
.slide.styled .days span { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); }
.slide.styled.pl-ticket .big { font-size: 38px; }
.slide.styled.tpl-sit .slc { padding-right: 140px; }

/* výběr šablon a stylů */
.tplpick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.tplc { border: 2px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; padding: 0; overflow: hidden; text-align: left; }
.tplc.on { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.tplc .tv { height: 130px; overflow: hidden; position: relative; }
.tplc .tv .slide { transform: scale(.208); transform-origin: top left; width: 500px; pointer-events: none; position: absolute; left: 0; top: 0; }
.tplc b { display: block; font-size: 12px; padding: 6px 8px 7px; }
.stylepick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.sw { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--muted); }
.sw i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.sw.on { color: var(--text); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.slide-tools .lbl-sm { margin-left: 6px; }
@media (max-width: 1500px) { .tplpick { grid-template-columns: repeat(5, 1fr); } .tplc .tv { height: 104px; } .tplc .tv .slide { transform: scale(.166); } }
.slide.styled.tpl-odpocet .img-circle { top: auto; bottom: 92px; right: 60px; }
.slide.styled.tpl-citat .slc { padding-top: 160px; }

/* náhled LinkedIn: listovatelný carousel, úpravy v náhledu, volba vzhledu */
.li-car { overflow: hidden; position: relative; touch-action: pan-y; cursor: grab; user-select: none; }
.li-car:active { cursor: grabbing; }
.li-track { display: flex; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.li-cell { flex: 0 0 100%; overflow: hidden; }
.li-cell .slide { zoom: 1.11; border-radius: 0; }
.li.mobile .li-cell .slide { zoom: .75; }
.li-cell .slide [contenteditable] { cursor: text; user-select: text; }
.li-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: #16181D; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35); z-index: 5; }
.li-arr.l { left: 10px; } .li-arr.r { right: 10px; }
.li-arr svg.lucide { width: 22px; height: 22px; }
.li-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 2px; }
.li-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(0,0,0,.2); cursor: pointer; padding: 0; }
.li-dots button.on { background: #0a66c2; width: 20px; border-radius: 4px; }
.li-edit { outline: 0; border-radius: 4px; white-space: pre-wrap; }
.li-edit:focus { box-shadow: 0 0 0 2px rgba(10,102,194,.35); background: rgba(10,102,194,.04); }
.li-tags { color: #0a66c2; font-weight: 600; margin-top: 8px; }
.dbar { width: 555px; max-width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dchips { display: flex; flex-wrap: wrap; gap: 5px; }
.dchips button { height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dchips button.on { color: var(--text); border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.dchips .sw { height: 26px; }
.dchips .sw i { width: 16px; height: 16px; }

/* principy postů */
.prgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.prc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; }
.prc .row { display: flex; align-items: center; gap: 8px; }
.prc .prid { font-weight: 800; color: var(--red); font-size: 13px; min-width: 26px; }
.prc b { font-size: 14.5px; }
.prc p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.prc p.prule { color: var(--text); font-size: 13.5px; font-weight: 600; }
.prc .eyebrow { margin-right: 4px; }
.prc .chk { display: flex; gap: 6px; align-items: flex-start; color: var(--green); font-weight: 600; }
.prc .chk svg.lucide { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.prc .src { font-size: 11.5px; color: var(--faint); }
.ont { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pfix { border-top: 1px solid var(--line-2); padding: 8px 0; display: grid; gap: 4px; }
.pfix p { margin: 0; font-size: 12.5px; color: var(--muted); }
.pfix .btn { justify-self: start; }

/* strategie kampaně */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.gcard { padding: 14px 16px; }
.gcard.main { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.gcard .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.gnum { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 6px; }
.gnum input { width: 74px; height: 38px; font-size: 22px; font-weight: 800; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--sunk); }
.gnum input:disabled { background: transparent; border-color: transparent; color: var(--text); }
.gnum small { color: var(--muted); }
.gcard .kpi { border: 0; padding: 0; background: none; min-width: 0; }
.trow { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); align-items: start; }
.trow:first-child { border-top: 0; }
.trow p { margin: 3px 0 0; font-size: 13px; }
.ptab .ph, .ptab .pr { display: grid; grid-template-columns: minmax(0, 1.2fr) 58px minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.ptab .ph { font-size: 11px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.ptab input, .shin { width: 58px; height: 28px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--sunk); font-weight: 700; }
.pbar { position: relative; height: 22px; background: var(--sunk); border-radius: 5px; overflow: hidden; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; }
.pbar i.plan { background: var(--line); }
.pbar i.act { background: var(--blue); height: 8px; top: auto; }
.pbar b { position: absolute; right: 6px; top: 3px; font-size: 11px; }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.phase { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.phase.on { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.phase.past { opacity: .6; }
.phase b { display: block; }
.phase span { font-size: 12px; color: var(--muted); font-weight: 600; }
.phase p { font-size: 12.5px; margin: 6px 0 0; }
@media (max-width: 1300px) { .phases { grid-template-columns: 1fr 1fr; } }
/* Styl „Kit kampaně“: písma z kitu (templates.js nastaví --fd/--fb/--fm na slidu) */
.slide.kitf{font-family:var(--fb)}
.slide.kitf .big,.slide.kitf .mid,.slide.kitf .stat b,.slide.kitf .q{font-family:var(--fd);font-stretch:var(--fds);text-transform:var(--fdt);font-weight:var(--fdw);letter-spacing:-.005em}
.slide.kitf .big{font-size:56px;line-height:.94}
.slide.kitf .mid{font-size:40px;line-height:.98}
.slide.kitf.im-top .big,.slide.kitf.im-full .big{font-size:42px}
.slide.kitf.im-top .mid{font-size:32px}
.slide.kitf.im-side .big{font-size:40px}
.slide.kitf.im-side .mid{font-size:30px}
.slide.kitf .kick,.slide.kitf .ft span{font-family:var(--fm);letter-spacing:.14em}
.slide.kitf .ft img.kitlogo{border-radius:0;background:none;padding:0;object-fit:contain}
.gen-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;margin-top:10px}
.gen-gal figure{margin:0;position:relative;border-radius:8px;overflow:hidden;border:2px solid transparent;cursor:pointer;background:var(--sunk,#eee)}
.gen-gal figure.on{border-color:var(--red,#D7141A)}
.gen-gal img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block}
.gen-gal figcaption{font-size:11px;line-height:1.3;padding:5px 6px;color:var(--muted)}
.kit-sw{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.kit-sw div{border-radius:8px;padding:10px;font-size:12px;border:1px solid var(--line)}
.kit-logos{display:flex;flex-wrap:wrap;gap:10px}
.kit-logos figure{margin:0;width:150px;font-size:11.5px;color:var(--muted)}
.kit-logos .lg{height:70px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:10px;border:1px solid var(--line)}
.kit-logos img{max-width:100%;max-height:100%}
.kit-refs{display:flex;gap:8px;overflow-x:auto}
.kit-refs img{height:150px;border-radius:6px}
