/* ===== Clipuj · stroj na šablóny (tpe-) a prehrávač šablóny (tpp-) — vzhľad Villain Noir =====
   Farby a písma z premenných app.css (--bg, --ink, --accent, --sans, --display, --mono …).
   Stroj = návrh „C · Ako Instagram príbeh“ (Tristan 22. 10. 2026, navrhy/editor-3dif/c.html):
   mobil — plátno 9:16 na celú šírku, nad ním pásiky videí 1 2 3 +, na plátne ‹ a Ďalej, vpravo stĺpec nástrojov,
   dole kategórie a fotky na ťuknutie (cez tmavý prechod v zóne TikToku); označený prvok má dole Vymeniť · Naskočí · Kópia · Zmazať a kôš.
   Počítač (stroj širší ako 900 px, trieda .is-desk) — vľavo panel Fotky, v strede plátno na celú výšku, vpravo nástroje,
   čísla krokov vľavo od plátna (nikdy nie cez obsah). Polohu plátna počíta editor.js: --cx, --cy, --cw, --ch (px), --dw (panel). */

html.tpe-on { overscroll-behavior: none; }
html.tpe-on.tpe-app, html.tpe-on.tpe-app body { overflow: hidden; overscroll-behavior: none; }
.tpe [hidden], .tpp [hidden], .tpe-dlg [hidden] { display: none !important; }

/* ---------- spoločné ---------- */
.tpe {
  --glass: rgba(11,11,11,.74); --cream: var(--paper, #f1ece2);
  position: relative; overflow: hidden; min-width: 0;
  color: var(--ink, #f1ece2); background: var(--bg, #0b0b0b); font-family: var(--sans, system-ui, sans-serif); font-size: 16px; line-height: 1.4;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.tpe--app { position: fixed; left: 0; right: 0; top: var(--tpe-vvt, 0px); z-index: 40; height: 100vh; height: var(--tpe-vvh, 100dvh); overscroll-behavior: none; }
.tpe--admin { height: clamp(600px, calc(100svh - 40px), 920px); border: 1px solid var(--line, #2a2826); border-radius: 8px; }
.tpe input, .tpe-dlg input { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
:where(.tpe, .tpe-dlg, .tpp) button { font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tpe-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tpe-ico--fill { fill: currentColor; stroke: none; }

.tpe-ib {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0;
  border: 1px solid var(--line-hi, #3a3734); border-radius: 50%; background: transparent; color: var(--ink-2, #cfc9be); cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.tpe-ib:hover:not(:disabled) { color: #fff; border-color: var(--accent, #c8402f); background: var(--accent-soft, rgba(200,64,47,.14)); }
.tpe-ib:disabled { opacity: .3; cursor: default; }
.tpe-ib .tpe-ico { width: 18px; height: 18px; }
.tpe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; flex: none;
  border: 0; border-radius: 999px; background: var(--accent, #c8402f); color: #fff; cursor: pointer;
  font: 800 .74rem/1 var(--sans, sans-serif); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(200,64,47,.9); transition: background-color .18s ease, transform .18s ease;
}
.tpe-btn:hover { background: #d84a35; }
.tpe-btn .tpe-ico { width: 16px; height: 16px; stroke-width: 2.2; }
.tpe-btn--wide { width: 100%; min-height: 50px; font-size: .8rem; letter-spacing: .14em; }
.tpe-btn--sm { min-height: 36px; padding: 0 14px; font-size: .7rem; }
.tpe-btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line-hi, #3a3734); border-radius: 999px; background: transparent; color: var(--ink, #f1ece2); cursor: pointer;
  font: 700 .74rem/1 var(--sans, sans-serif); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.tpe-btn2:hover { border-color: var(--accent, #c8402f); background: var(--accent-soft, rgba(200,64,47,.14)); }
.tpe-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--line-hi, #3a3734); border-radius: 999px; background: none; color: var(--ink-2, #cfc9be); cursor: pointer;
  font: 600 .8rem/1.1 var(--sans, sans-serif); white-space: nowrap; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tpe-chip:hover { border-color: var(--accent, #c8402f); }
.tpe-chip[aria-pressed="true"] { border-color: var(--accent, #c8402f); background: var(--accent-soft, rgba(200,64,47,.14)); color: var(--ink, #f1ece2); }
.tpe-chip__ic { display: block; width: 24px; height: 18px; flex: none; }
.tpe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tpe-lab { margin: 0; font: 700 .64rem/1.2 var(--mono, monospace); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-hi, #e2553f); }
.tpe-lab--sm { margin-top: 6px; letter-spacing: .14em; }
.tpe-sub { margin: 4px 0 0; font-size: .8rem; color: var(--mute, #8f8a82); }
.tpe-note { margin: 0; font-size: .86rem; color: var(--mute, #8f8a82); }
.tpe-in {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px; margin: 0;
  border: 1px solid #2f2c29; border-radius: 6px; background: #0b0b0b; color: var(--ink, #f1ece2);
  font: 600 16px/1.2 var(--sans, sans-serif); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tpe-in::placeholder { color: #66615a; }
.tpe-in:focus { border-color: var(--accent, #c8402f); box-shadow: 0 0 0 3px rgba(200,64,47,.22); }
.tpe-err { margin: 0; min-height: 1.15em; font-size: .78rem; line-height: 1.15; color: var(--red, #ff8a7a); }
.tpe-range { display: block; width: 100%; height: 36px; margin: 0; background: transparent; accent-color: var(--accent, #c8402f); cursor: pointer; touch-action: pan-x; }
.tpe-num { display: flex; align-items: center; gap: 14px; }
.tpe-num b { min-width: 28px; text-align: center; font: 700 1.15rem/1 var(--mono, monospace); }
.tpe-emos { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; }
.tpe-emo { display: grid; place-items: center; height: 40px; padding: 0; border: 1px solid var(--line, #2a2826); border-radius: 8px; background: var(--surface, #121110); cursor: pointer; }
.tpe-emo:hover { border-color: var(--accent, #c8402f); }
.tpe-emo img { display: block; width: 24px; height: 24px; opacity: 0; transition: opacity .2s ease; }
.tpe-emo.is-in img { opacity: 1; }
.tpe-sws { display: flex; flex-wrap: wrap; gap: 8px; }
.tpe-stsw {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0;
  border: 2px solid var(--line-hi, #3a3734); border-radius: 10px; background: #fff; cursor: pointer; font-family: var(--sans, sans-serif);
}
.tpe-stsw b { font-size: 1.1rem; line-height: 1; font-weight: 800; letter-spacing: -.01em; }
.tpe-stsw--black b { color: #0b0b0b; }
.tpe-stsw--pink b { color: #ff1f8f; }
.tpe-stsw--red b { color: #d4202a; }
.tpe-stsw--out b { color: #fff; -webkit-text-stroke: 1.6px #0b0b0b; paint-order: stroke fill; }
.tpe-stsw--thin b { color: #0b0b0b; font-weight: 400; }
.tpe-stsw[aria-pressed="true"] { border-color: var(--accent, #c8402f); box-shadow: 0 0 0 3px rgba(200,64,47,.35); }
@keyframes tpe-sh { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- pásiky videí ako v Instagram príbehu: 1 2 3 + ---------- */
.tpe-series { position: absolute; z-index: 3; left: 12px; right: 12px; top: calc(7px + env(safe-area-inset-top, 0px)); height: 22px; display: flex; align-items: center; gap: 5px; }
.tpe-ser { position: relative; flex: 1 1 0; min-width: 0; height: 18px; display: flex; border-radius: 9px; background: var(--line, #2a2826); }
.tpe-ser__b { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: inherit; background: none; color: var(--mute, #9a938a); cursor: pointer; font: 700 10px/18px var(--mono, monospace); }
.tpe-ser.is-on { background: var(--cream); }
.tpe-ser.is-on .tpe-ser__b { color: #0b0b0b; }
.tpe-ser__x { position: absolute; right: 1px; top: 1px; width: 16px; height: 16px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #0b0b0b; color: var(--cream); cursor: pointer; }
.tpe-ser__x::before { content: ''; position: absolute; inset: -8px -6px; }
.tpe-ser__x .tpe-ico { width: 9px; height: 9px; stroke-width: 3.2; }
.tpe-ser-add { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 22px; min-width: 32px; padding: 0 8px; border: 1.5px dashed #5a5550; border-radius: 11px; background: none; color: var(--ink, #f1ece2); cursor: pointer; font: 700 12px/1 var(--sans, sans-serif); white-space: nowrap; }
.tpe-ser-add .tpe-ico { width: 13px; height: 13px; stroke-width: 2.8; }
.tpe-ser-add span { display: none; }
.tpe-ser-add:hover { border-color: var(--ink-2, #cfc9be); }

/* ---------- plátno ---------- */
.tpe-wrap { position: absolute; left: var(--cx, 0px); top: var(--cy, 36px); width: var(--cw, 100%); height: var(--ch, 0px); }
.tpe-cvbox { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; touch-action: none; box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
.tpe--admin .tpe-cvbox { touch-action: pan-y; }
.tpe-cv { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .25s ease; }
.tpe.is-ready .tpe-cv { opacity: 1; }
.tpe-skel { position: absolute; inset: 0; background: linear-gradient(90deg, #1a1817 0%, #24211f 50%, #1a1817 100%); background-size: 200% 100%; animation: tpe-sh 1.3s linear infinite; }
.tpe-skel.is-off { animation: none; }
.tpe.is-ready .tpe-skel { display: none; }
.tpe-ov { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tpe-selbox { position: absolute; left: 0; top: 0; border-radius: 2px; outline: 2.5px solid var(--accent, #c8402f); outline-offset: 4px; }
.tpe.is-drag .tpe-selbox { outline-style: dashed; }
.tpe-h { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; pointer-events: auto; touch-action: none; cursor: grab; }
.tpe-h::before { content: ''; position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--accent, #c8402f); box-shadow: 0 2px 8px rgba(0,0,0,.35); box-sizing: border-box; }
.tpe-h .tpe-ico { position: relative; width: 15px; height: 15px; color: var(--accent, #c8402f); stroke-width: 2.4; }
.tpe-h[data-h="scale"] { cursor: nwse-resize; }
.tpe.is-drag .tpe-h { cursor: grabbing; }
.tpe-guide { position: absolute; background: #ff1f8f; box-shadow: 0 0 0 .5px rgba(255,255,255,.6); }
.tpe-guide--v { top: 0; bottom: 0; left: 0; width: 1px; margin-left: -.5px; }
.tpe-guide--h { left: 0; right: 0; top: 0; height: 1px; margin-top: -.5px; }
.tpe-empty { position: absolute; left: 14%; right: 22%; top: 34%; margin: 0; text-align: center; font: 700 15px/1.4 var(--sans, sans-serif); color: #8a857d; pointer-events: none; text-wrap: balance; }
.tpe-fail { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 18px; text-align: center; background: var(--surface, #121110); }
.tpe-fail p { margin: 0; font-size: .86rem; color: var(--ink-2, #cfc9be); }

/* plávajúce tlačidlá na plátne: ‹ ↶ ↷ vľavo, Ďalej / Hotovo vpravo */
.tpe-fabs { position: absolute; z-index: 4; top: 10px; display: flex; align-items: center; gap: 8px; }
.tpe-fabs--l { left: 10px; }
.tpe-fabs--r { right: 10px; }
.tpe-fab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink, #f1ece2); cursor: pointer;
}
.tpe-fab .tpe-ico { width: 20px; height: 20px; stroke-width: 2.4; }
.tpe-fab--sm { width: 36px; height: 36px; }
.tpe-fab--sm .tpe-ico { width: 17px; height: 17px; stroke-width: 2.2; }
.tpe-fab:disabled { opacity: .35; cursor: default; }
.tpe-fab--next { width: auto; height: 40px; padding: 0 14px 0 18px; border-radius: 20px; background: var(--cream); color: #0b0b0b; font: 800 14px/1 var(--sans, sans-serif); white-space: nowrap; }
.tpe-fab--next .tpe-ico { width: 14px; height: 14px; stroke-width: 3; }
.tpe-fab--done { padding: 0 18px; }
.tpe-fab--warn { background: var(--amber, #e0a84a); color: #0b0b0b; }

/* nástroje: tmavý stĺpec vpravo na plátne (mobil), vedľa plátna (počítač) */
/* mobil: úzky stĺpec sa zmestí do pravej zóny TikToku (12 % šírky), aby nezakrýval obsah videa */
.tpe-col { position: absolute; z-index: 4; right: 3px; top: 18%; display: grid; gap: 22px; justify-items: end; }
.tpe-rail { width: 46px; padding: 6px 0; display: flex; flex-direction: column; gap: 6px; border-radius: 29px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tpe-tool { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; border: 0; background: none; color: var(--ink, #f1ece2); cursor: pointer; }
.tpe-tool i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-style: normal; transition: background-color .15s ease; }
.tpe-tool .tpe-ico { width: 20px; height: 20px; stroke-width: 2; }
.tpe-tool b { font: 600 9.5px/1 var(--sans, sans-serif); letter-spacing: -.01em; white-space: nowrap; }
.tpe-tool[aria-pressed="true"] i { background: var(--accent, #c8402f); }
.tpe-tool:hover i { background: rgba(255,255,255,.08); }
.tpe-tool[aria-pressed="true"]:hover i { background: var(--accent, #c8402f); }
.tpe-aa { font: 800 16px/1 var(--sans, sans-serif); letter-spacing: -.02em; }
.tpe-side { display: none; }
.tpe-steps { display: none; }

/* kôš: označený prvok potiahni sem (alebo ťukni) */
.tpe-trash { position: absolute; z-index: 4; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink, #f1ece2); cursor: pointer; }
.tpe-trash i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(241,236,226,.55); background: var(--glass); transition: transform .15s ease, background-color .15s ease; }
.tpe-trash i .tpe-ico { width: 22px; height: 22px; }
.tpe-trash b { padding: 5px 10px; border-radius: 10px; background: var(--glass); font: 600 11px/1 var(--sans, sans-serif); white-space: nowrap; }
.tpe-trash.is-hot i { transform: scale(1.22); background: var(--accent, #c8402f); border-color: #fff; }

/* ---------- fotky: zásobník dole (mobil) ---------- */
.tpe-tray { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 38px 0 calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, rgba(11,11,11,0), rgba(11,11,11,.9) 34%, #0b0b0b 70%); pointer-events: none; }
.tpe-lib { pointer-events: auto; min-width: 0; }
.tpe-dsub { display: none; }
.tpe-tabs { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.tpe-tabs::-webkit-scrollbar, .tpe-tiles::-webkit-scrollbar { display: none; }
.tpe-tab { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: rgba(42,40,38,.92); color: var(--ink, #f1ece2); cursor: pointer; font: 700 13px/32px var(--sans, sans-serif); white-space: nowrap; }
.tpe-tab[aria-selected="true"] { background: var(--cream); color: #0b0b0b; }
.tpe-tiles { display: flex; gap: 10px; padding: 4px 16px 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x; }
.tpe-ph { flex: 0 0 66px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: #d8d2c7; cursor: pointer; }
.tpe-ph__im { position: relative; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 14px; background: var(--cream); transition: box-shadow .15s ease; }
.tpe-ph__im:not(.is-in) { background: linear-gradient(90deg, #e6e0d5 0%, #f4efe6 50%, #e6e0d5 100%); background-size: 200% 100%; animation: tpe-sh 1.2s linear infinite; }
.tpe-ph__im.is-bad { animation: none; background: var(--cream); }
.tpe-ph__im canvas { position: absolute; left: 0; top: 0; display: block; opacity: 0; transition: opacity .2s ease; }
.tpe-ph__im.is-in canvas { opacity: 1; }
.tpe-ph b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 10.5px/1.15 var(--sans, sans-serif); }
.tpe-ph__ok { position: absolute; z-index: 1; right: -4px; top: -4px; width: 18px; height: 18px; display: none; place-items: center; border: 2px solid #0b0b0b; border-radius: 50%; background: var(--accent, #c8402f); color: #fff; font-style: normal; }
.tpe-ph__ok .tpe-ico { width: 9px; height: 9px; stroke-width: 4; }
.tpe-ph__ok span { display: none; }
.tpe-ph.is-used .tpe-ph__ok { display: grid; }
.tpe-ph[aria-pressed="true"] .tpe-ph__im { box-shadow: 0 0 0 3px var(--accent, #c8402f); }
.tpe-ph--more .tpe-ph__im .tpe-ico { width: 28px; height: 28px; color: #0b0b0b; stroke-width: 2; }
.tpe-ph--bg .tpe-ph__im i { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(11,11,11,.25); }
.tpe-swapbar { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 7px 7px 7px 14px; border-radius: 12px; background: var(--accent, #c8402f); color: #fff; font: 700 13px/1.25 var(--sans, sans-serif); }
.tpe-swapbar span { flex: 1; min-width: 0; }
.tpe-swapbar button { flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; cursor: pointer; }
.tpe-swapbar .tpe-ico { width: 15px; height: 15px; stroke-width: 2.6; }
.tpe-tray .tpe-note { padding: 18px 0; }

/* ---------- označený prvok: Vymeniť · Naskočí · Kópia · Zmazať ---------- */
.tpe-acts { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.tpe-act { flex: 1 1 auto; min-width: 0; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 1px solid #34312e; border-radius: 20px; background: #22201e; color: var(--ink, #f1ece2); cursor: pointer; font: 700 12.5px/1 var(--sans, sans-serif); white-space: nowrap; }
.tpe-act:hover { border-color: var(--ink-2, #cfc9be); }
.tpe-act u { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent, #c8402f); color: #fff; font: 800 11px/20px var(--sans, sans-serif); text-align: center; text-decoration: none; }
.tpe-act--del { color: #ff8f7f; }
.tpe.is-drag .tpe-acts { opacity: .35; }

/* mobil: pri označenom prvku zmiznú nástroje aj zásobník (je tam riadok akcií a kôš) */
.tpe:not(.is-desk).is-sel .tpe-col, .tpe:not(.is-desk).is-swap .tpe-col { display: none; }
.tpe.is-drag .tpe-fabs { opacity: .35; pointer-events: none; }

/* ---------- panel textu / merača / počtu (mobil: cez celý stroj, pole nad klávesnicou) ---------- */
.tpe-sheet { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #0f0e0d; overflow: hidden; }
.tpe-sheet__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }
.tpe-mini { display: grid; place-items: center; min-width: 0; overflow: hidden; border-radius: 6px; background: var(--surface, #121110); }
.tpe-mini canvas { display: block; border-radius: 4px; box-shadow: 0 0 0 1px rgba(241,236,226,.1), 0 10px 24px -14px rgba(0,0,0,.9); }
.tpe-mini--sheet { flex: 1 1 96px; min-height: 72px; }
.tpe-sheet__f { flex: none; display: grid; gap: 4px; }
.tpe-sheet__more { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 8px; align-content: start; padding-bottom: 2px; }
.tpe-sheet__more .tpe-lab--sm:first-child { margin-top: 0; }

/* ---------- panel Fotky (počítač) ---------- */
.tpe-drawer { display: none; }
.tpe-dh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 4px; }
.tpe-dh__t { margin: 0; font: 600 26px/1 var(--display, sans-serif); letter-spacing: .02em; text-transform: uppercase; }
.tpe-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line, #2a2826); border-radius: 50%; background: var(--surface-2, #1a1817); color: var(--ink, #f1ece2); cursor: pointer; }
.tpe-x:hover { border-color: var(--accent, #c8402f); }
.tpe-x .tpe-ico { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- počítač ---------- */
.tpe.is-desk .tpe-drawer { position: absolute; z-index: 6; left: 0; top: 0; bottom: 0; width: var(--dw, 360px); display: flex; flex-direction: column; background: var(--surface, #121110); border-right: 1px solid var(--line, #2a2826); }
.tpe.is-desk:not(.is-drawer) .tpe-drawer { display: none; }
.tpe.is-desk .tpe-lib--d { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tpe.is-desk .tpe-dsub { display: block; margin: 0; padding: 6px 20px 14px; font-size: 13px; color: var(--mute, #8f8a82); }
.tpe.is-desk .tpe-swapbar { margin: 8px 20px 14px; }
.tpe-lib--d .tpe-tabs { flex: none; gap: 4px; margin: 0 20px 16px; padding: 4px; border: 1px solid var(--line, #2a2826); border-radius: 14px; background: var(--bg, #0b0b0b); }
.tpe-lib--d .tpe-tab { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 4px; border-radius: 10px; background: none; color: var(--ink-2, #cfc9be); font-size: 12.5px; line-height: 36px; }
.tpe-lib--d .tpe-tab[aria-selected="true"] { background: var(--cream); color: #0b0b0b; }
.tpe-lib--d .tpe-tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; align-content: start; padding: 2px 20px 20px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.tpe-lib--d .tpe-ph { align-items: stretch; gap: 7px; }
.tpe-lib--d .tpe-ph__im { width: auto; height: 140px; border-radius: 16px; }
.tpe-lib--d .tpe-ph b { font-size: 13px; color: #e6e0d5; text-align: left; }
.tpe-lib--d .tpe-ph__ok { right: 8px; top: 8px; width: auto; height: 22px; padding: 0 8px; border: 0; border-radius: 11px; font: 700 11px/22px var(--sans, sans-serif); }
.tpe-lib--d .tpe-ph__ok span { display: inline; }
.tpe-lib--d .tpe-ph__ok .tpe-ico { display: none; }
.tpe-lib--d .tpe-ph--more .tpe-ph__im .tpe-ico { width: 40px; height: 40px; }
.tpe-lib--d .tpe-ph--bg .tpe-ph__im i { width: 64px; height: 64px; }
.tpe-lib--d .tpe-ph:hover .tpe-ph__im { box-shadow: 0 0 0 2px var(--ink-2, #cfc9be); }
.tpe-lib--d .tpe-ph[aria-pressed="true"] .tpe-ph__im { box-shadow: 0 0 0 3px var(--accent, #c8402f); }
.tpe-lib--d .tpe-note { grid-column: 1 / -1; }

.tpe.is-desk .tpe-series { left: calc(var(--cx) - 60px); right: auto; width: calc(var(--cw) + 120px); top: 12px; gap: 6px; }
.tpe.is-desk .tpe-ser-add span { display: inline; }
.tpe.is-desk .tpe-ser-add { padding: 0 10px; }
.tpe.is-desk .tpe-ser__b { font-size: 11px; }
.tpe.is-desk .tpe-fabs { top: 12px; }
.tpe.is-desk .tpe-fabs--l { left: 12px; }
.tpe.is-desk .tpe-fabs--r { right: 12px; }
.tpe.is-desk .tpe-fab--warn { display: none; }
.tpe.is-desk .tpe-col { left: calc(100% + 18px); right: auto; top: 17%; justify-items: start; }
.tpe.is-desk .tpe-rail { width: 64px; background: var(--surface, #121110); border: 1px solid var(--line, #2a2826); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tpe.is-desk .tpe-tool b { font-size: 11px; letter-spacing: 0; }
.tpe.is-desk .tpe-tool i { width: 38px; height: 38px; }
.tpe.is-desk .tpe-rail { padding: 8px 0; }
.tpe.is-desk .tpe-side { display: grid; justify-items: start; gap: 12px; width: 168px; }
.tpe-hint { margin: 0; font-size: 12px; line-height: 1.45; color: var(--mute, #8f8a82); }
.tpe-name {
  display: flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 2px 4px; margin-left: -4px;
  border: 0; border-radius: 4px; background: none; cursor: pointer; color: var(--ink, #f1ece2);
  font: 700 1rem/1.15 var(--display, sans-serif); text-transform: uppercase; letter-spacing: .02em; text-align: left;
}
.tpe-name:hover { background: var(--surface-2, #1a1817); }
.tpe-name__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpe-name .tpe-ico { width: 14px; height: 14px; color: var(--mute, #8f8a82); }
.tpe-saved { margin-top: -8px; padding: 0; border: 0; background: none; cursor: default; white-space: nowrap; font: 700 .58rem/1.3 var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--mute, #8f8a82); }
.tpe-saved.is-ok { color: var(--green, #8fd694); }
.tpe-saved.is-local { color: var(--amber, #e0a84a); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; white-space: normal; }
.tpe.is-desk .tpe-steps { display: block; position: absolute; left: -58px; top: 0; bottom: 0; width: 44px; }
.tpe-steps__cap { position: absolute; left: -8px; width: 60px; text-align: center; font: 600 10px/1.2 var(--sans, sans-serif); color: var(--mute, #8f8a82); }
.tpe-steps__ln { position: absolute; left: 21px; width: 0; border-left: 1px dashed #3a3734; }
.tpe-stp { position: absolute; left: 7px; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line, #2a2826); border-radius: 50%; background: var(--surface-2, #1a1817); color: var(--ink, #f1ece2); cursor: pointer; font: 700 13px/1 var(--mono, monospace); }
.tpe-stp:hover { border-color: var(--ink-2, #cfc9be); }
.tpe-stp.is-sel { border-color: var(--accent, #c8402f); background: var(--accent, #c8402f); color: #fff; }
.tpe-stp.is-f { box-shadow: 0 0 0 3px rgba(200,64,47,.45); }
.tpe.is-desk .tpe-trash { bottom: 80px; }
.tpe.is-desk .tpe-acts { left: calc(var(--cx) + 12px); right: auto; top: calc(var(--cy) + var(--ch) - 56px); bottom: auto; width: calc(var(--cw) - 24px); gap: 8px; padding: 0; }
.tpe.is-desk .tpe-act { height: 42px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.1); }
.tpe.is-desk .tpe-sheet { right: auto; width: var(--dw, 360px); padding: 20px; border-right: 1px solid var(--line, #2a2826); background: var(--surface, #121110); overflow-y: auto; }
.tpe.is-desk .tpe-mini--sheet { display: none; }
.tpe.is-desk .tpe-sheet__more { overflow: visible; }

@media (max-width: 359px) {
  .tpe-acts { gap: 4px; padding-left: 10px; padding-right: 10px; }
  .tpe-act { padding: 0 6px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpe-skel, .tpe-tile__th:not(.is-in), .tpe-ph__im:not(.is-in), .tpp-screen.is-skel { animation: none; }
}

/* ---------- okná výberu (hostiteľove okno, obsah editora) ---------- */
.tpe-dlg .dlg__in { gap: 14px; }
.tpe-psec, .tpe-rsec, .tpe-right { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.tpe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.tpe-tile {
  display: grid; gap: 5px; justify-items: center; min-width: 0; padding: 6px 4px 7px;
  border: 2px solid var(--line, #2a2826); border-radius: 8px; background: var(--surface, #121110); color: var(--ink-2, #cfc9be); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.tpe-tile:hover { border-color: var(--line-hi, #3a3734); }
.tpe-tile[aria-pressed="true"] { border-color: var(--accent, #c8402f); background: var(--accent-soft, rgba(200,64,47,.14)); color: var(--ink, #f1ece2); }
.tpe-tile__th { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #fff; }
.tpe-tile__th:not(.is-in) { background: linear-gradient(90deg, #e9e9e9 0%, #f6f6f6 50%, #e9e9e9 100%); background-size: 200% 100%; animation: tpe-sh 1.2s linear infinite; }
.tpe-tile__th canvas, .tpe-tile__th img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .2s ease; }
.tpe-tile__th.is-in canvas, .tpe-tile__th.is-in img { opacity: 1; }
.tpe-tile__th.is-bad { animation: none; background: #f1ece2; }
.tpe-tile--emo .tpe-tile__th img { left: 16%; top: 16%; width: 68%; height: 68%; }
.tpe-tile small { max-width: 100%; font-size: .68rem; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpe-credit { margin: 0; font-size: .7rem; color: var(--mute, #8f8a82); }
.tpe-mini--row { position: sticky; top: 0; z-index: 1; height: 156px; margin: -4px -22px 0; padding: 10px 64px 10px 22px; border-radius: 0; background: #0f0e0d; border-bottom: 1px solid var(--line, #2a2826); }
.tpe-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 3px; border: 1px solid var(--line-hi, #3a3734); border-radius: 999px; }
.tpe-seg button { min-height: 36px; padding: 0 4px; border: 0; border-radius: 999px; background: none; color: var(--ink-2, #cfc9be); cursor: pointer; font: 700 .68rem/1 var(--sans, sans-serif); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tpe-seg button[aria-pressed="true"] { background: var(--ink, #f1ece2); color: #0b0b0b; }

/* ===================================================================================================================
   PREHRÁVAČ (tpp-): obraz 9:16, ▶/❚❚, čas „0:03 / 0:10“, časová lišta. Výšku obrazu obmedzí hostiteľ: --tpp-maxh
   (predvolene 50svh na mobile, 70svh na počítači).
   =================================================================================================================== */
.tpp { --_mh: var(--tpp-maxh, 70svh); display: grid; gap: 10px; min-width: 0; color: var(--ink, #f1ece2); font-family: var(--sans, sans-serif); -webkit-tap-highlight-color: transparent; }
@media (max-width: 959px) { .tpp { --_mh: var(--tpp-maxh, 50svh); } }
.tpp-screen {
  position: relative; width: min(100%, calc(var(--_mh) * 9 / 16)); aspect-ratio: 9 / 16; margin: 0 auto;
  border-radius: 6px; overflow: hidden; background: #0b0b0b; cursor: pointer;
  box-shadow: 0 24px 50px -26px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.04);
}
.tpp-screen.is-skel { background: linear-gradient(90deg, #1a1817 0%, #24211f 50%, #1a1817 100%); background-size: 200% 100%; animation: tpe-sh 1.3s linear infinite; }
.tpp-screen.is-fail { animation: none; }
.tpp-cv { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .25s ease; }
.tpp.is-ready .tpp-cv { opacity: 1; }
.tpp-outro { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: #0b0b0b; }
.tpp-big { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(11,11,11,.72); color: #fff; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.tpp-big .tpe-ico { width: 26px; height: 26px; margin-left: 4px; }
.tpp-tap { position: absolute; inset: 0; display: grid; place-items: end center; padding: 0 12px 12%; background: linear-gradient(rgba(0,0,0,0) 55%, rgba(0,0,0,.35)); cursor: default; }
.tpp-tapb {
  min-width: 70%; min-height: 64px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent, #c8402f); color: #fff; cursor: pointer;
  font: 700 1.55rem/1 var(--display, sans-serif); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 0 8px rgba(200,64,47,.22), 0 20px 50px -20px rgba(200,64,47,.9); touch-action: manipulation;
}
.tpp.is-hit .tpp-tapb { animation: tpp-hit .2s ease; }
@keyframes tpp-hit { 40% { transform: scale(.94); background: #e2553f; } }
.tpp-tapx { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(11,11,11,.72); color: #fff; cursor: pointer; }
.tpp-tapx .tpe-ico { width: 18px; height: 18px; }
.tpp-fail { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; font-size: .8rem; line-height: 1.35; color: var(--red, #ff8a7a); text-align: center; }
.tpp-ctl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tpp-pp { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--ink, #f1ece2); color: #0b0b0b; cursor: pointer; }
.tpp-pp:disabled { opacity: .4; cursor: default; }
.tpp-pp .tpe-ico { width: 18px; height: 18px; }
.tpp-pp .tpe-ico--fill { margin-left: 2px; }
.tpp.is-playing .tpp-pp .tpe-ico--fill { margin-left: 0; }
.tpp-bar { position: relative; flex: 1; min-width: 60px; height: 44px; cursor: pointer; touch-action: none; outline: none; }
.tpp-bar:focus-visible .tpp-track { box-shadow: 0 0 0 2px var(--accent-hi, #e2553f); }
.tpp-track, .tpp-out, .tpp-fill { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 999px; }
.tpp-track { left: 0; right: 0; background: var(--line-hi, #3a3734); }
.tpp-out { background: repeating-linear-gradient(135deg, rgba(241,236,226,.28) 0 4px, rgba(241,236,226,.12) 4px 8px); border-radius: 0 999px 999px 0; }
.tpp-fill { left: 0; width: 0; background: var(--accent, #c8402f); }
.tpp-ticks i { position: absolute; top: 50%; width: 2px; height: 12px; margin: -6px 0 0 -1px; border-radius: 1px; background: var(--ink-2, #cfc9be); }
.tpp-head { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent, #c8402f); }
.tpp.is-scrub .tpp-head { transform: scale(1.2); }
.tpp-time { flex: none; font: 700 .82rem/1 var(--mono, monospace); color: var(--mute, #8f8a82); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpp-time b { color: var(--ink, #f1ece2); font-weight: 700; }
.tpp.is-tap .tpp-bar { cursor: default; }

/* obyčajný dizajn: Uložiť (tmavé) a Stiahnuť (červené) vpravo hore */
.tpe-fab--save { background: rgba(11,11,11,.78); color: #f1ece2; padding: 0 14px; }
.tpe-fab--dl { background: #c8402f; color: #fff; padding: 0 16px; }
.tpe-fab--save .tpe-ico, .tpe-fab--dl .tpe-ico { width: 16px; height: 16px; margin-right: 6px; }
.tpe-fabs--r { gap: 8px; }
/* TikTok / IG v stĺpci nástrojov (náčrt rozhrania siete na plátne + prispôsobenie dizajnu) */
.tpe-rplat { display: grid; gap: 4px; margin: 2px 3px 0; padding-top: 8px; border-top: 1px solid rgba(241,236,226,.14); }
.tpe-rplat .tpe-plat { height: 26px; padding: 0 2px; font-size: 10px; letter-spacing: -.01em; }
.tpe-plat { height: 30px; padding: 0 12px; border: 0; border-radius: 16px; background: none; color: #cfc9be; font: 800 12px/1 var(--sans, sans-serif); white-space: nowrap; cursor: pointer; }
.tpe-plat[aria-pressed="true"] { background: #f1ece2; color: #0b0b0b; }
/* vlastná fotka a pozadie (Tristan 22. 10. 2026) */
.tpe-ph--up .tpe-ph__im { border: 2px dashed rgba(11,11,11,.28); color: #0b0b0b; }
.tpe-ph--up .tpe-ico { width: 30px; height: 30px; }
.tpe.is-up .tpe-ph--up { opacity: .5; pointer-events: none; }
.tpe-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.tpe-bgsw { display: grid; justify-items: center; gap: 6px; min-width: 0; padding: 10px 4px; border: 1px solid var(--line, #2a2826); border-radius: 12px; background: none; color: inherit; font: 700 13px/1.2 var(--sans, sans-serif); cursor: pointer; }
.tpe-bgsw b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.tpe-bgsw i { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(241,236,226,.35); }
.tpe-bgsw[aria-pressed="true"] { border-color: #c8402f; box-shadow: 0 0 0 1px #c8402f inset; }
.tpe-h--nd::before { background: #c8402f; border: 3px solid #fff; }
.tpe-ph--emo .tpe-ph__im img { width: 62%; height: 62%; object-fit: contain; }
.tpe-fo--bold { font-weight: 900; }
.tpe-fo--thin { font-weight: 400; }
.tpe-fo--narrow { font-family: 'Antonio', Impact, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.tpe-fo--mono { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
/* úchyt ručičky: pulzuje, šípky do strán a nápis Potiahni, aby bolo jasné, že sa dá pohnúť (Tristan 23. 10. 2026) */
.tpe-h--nd::after { content: ''; position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; box-sizing: border-box; border: 3px solid #c8402f; animation: tpe-nd-pulse 1.4s ease-out infinite; pointer-events: none; }
@keyframes tpe-nd-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.tpe-nd__a { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #0b0b0b; color: #fff; font: 900 16px/1 Inter, sans-serif; font-style: normal; box-shadow: 0 2px 6px rgba(0,0,0,.4); animation: tpe-nd-nudge 1.4s ease-in-out infinite; pointer-events: none; }
.tpe-nd__a--l { left: -18px; }
.tpe-nd__a--r { right: -18px; animation-direction: reverse; }
@keyframes tpe-nd-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
.tpe-nd__t { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); padding: 3px 8px; border-radius: 999px; background: #c8402f; color: #fff; font: 800 11px/1.2 Inter, sans-serif; white-space: nowrap; pointer-events: none; }
.tpe.is-drag .tpe-h--nd::after, .tpe.is-drag .tpe-nd__a, .tpe.is-drag .tpe-nd__t { display: none; }
@media (prefers-reduced-motion: reduce) { .tpe-h--nd::after, .tpe-nd__a { animation: none; } }
/* škála farieb s krúžkom */
.tpe-cbar { position: relative; height: 26px; margin: 4px 13px 12px; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); cursor: pointer; touch-action: none; }
.tpe-cbar__k { position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
/* kruh farieb */
.tpe-wheelbox { display: grid; justify-items: center; gap: 10px; margin: 6px 0 12px; }
.tpe-wheel { position: relative; width: min(200px, 60vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255,255,255,0)), conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); box-shadow: 0 0 0 1px rgba(255,255,255,.18); cursor: crosshair; touch-action: none; }
.tpe-wheel .tpe-cbar__k { top: 50%; }
.tpe-wheel__q { display: flex; gap: 8px; }
.tpe-wheel__q .tpe-chip { display: inline-flex; align-items: center; gap: 6px; }
.tpe-wheel__q i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
/* vrstvy (Tristan 24. 10. 2026): jedno tlačidlo rozdelené na Dopredu / Dozadu */
.tpe-layer { flex: 2 1 auto; min-width: 0; height: 40px; display: flex; align-items: center; border: 1px solid #34312e; border-radius: 20px; background: #22201e; overflow: hidden; }
.tpe-layer__k { flex: none; padding: 0 10px 0 16px; color: var(--cream, #f1ece2); font: 800 12.5px/1 var(--sans, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.tpe-layer button { flex: 1 1 0; min-width: 0; height: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; border: 0; border-left: 1px solid #34312e; background: none; color: var(--ink, #f1ece2); cursor: pointer; font: 700 12.5px/1 var(--sans, sans-serif); white-space: nowrap; }
.tpe-layer button:hover:not(:disabled) { background: rgba(255,255,255,.06); }
.tpe-layer button:disabled { opacity: .35; cursor: default; }
.tpe-layer .tpe-ico { flex: none; width: 15px; height: 15px; }
.tpe.is-desk .tpe-layer { height: 42px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.1); }
.tpe.is-desk .tpe-layer button { border-left-color: rgba(255,255,255,.1); }
@media (max-width: 340px) { .tpe-layer__k { display: none; } .tpe-layer button { padding: 0 6px; font-size: 12px; } }
/* náhľad merača v Ostatné = skutočný merač */
.tpe-ph--gpv .tpe-ph__im canvas { position: static; }
/* písma: pevná mriežka, tlačidlá sa po načítaní písma neposunú (Tristan 24. 10. 2026) */
.tpe-chips--fam { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tpe-chips--fam .tpe-chip { width: 100%; min-width: 0; height: 34px; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; justify-content: center; }
/* mobil: žiadne priblíženie stránky dvojťukom v editore (Tristan 24. 10. 2026) */
html.tpe-on, html.tpe-on body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; }
html.tpe-on .tpe { touch-action: manipulation; }
/* koláž: tlačidlo Zrušiť koláž v lište výmeny políčka; náhľad koláže v dlaždici na výšku */
.tpe-swapbar .tpe-swapbar__rm { width: auto; height: 30px; padding: 0 12px; border-radius: 15px; font: 700 12px/30px var(--sans, sans-serif); white-space: nowrap; }
.tpe-ph--gpv[data-tool="kolaz"] .tpe-ph__im canvas { border-radius: 4px; }
