/*
 * Editor textu Tyrion (public/modul/App/js/tyrion-editor.js + Admin/js/editor5.js) a potvrdzovacie okno (tPotvrd).
 * SPOLOČNÉ pre admin (nová kostra) aj front edit na webe - jeden editor, jeden vzhľad. Presunuté z admin5.css.
 * Premenné a tlačidlá sú tu scoped na editor a jeho okná, aby na webe nezáviseli od štýlov stránky.
 */
.t-rte, .t-confirm {
  --t-ink: #141b2b; --t-text: #3a4458; --t-muted: #5b6780; --t-line: #e3e8f0; --t-bg: #f5f7fb;
  --t-accent: #2f5bff; --t-accent-dark: #2449d8; --t-accent-soft: #e9eeff;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--t-text);
}
.t-rte *, .t-confirm * { box-sizing: border-box; }
/* tlačidlá a polia v editore a jeho oknách - rovnaké ako v admine (admin5.css .btn), nezávislé od webu */
.t-confirm .btn, .t-rte .btn { display: inline-flex; align-items: center; gap: 8px; padding: .55rem 1rem; border: 1px solid transparent; border-radius: 10px; font: 700 15px/1.3 inherit; cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s; }
.t-confirm .btn svg, .t-rte .btn svg { width: 18px; height: 18px; }
.t-confirm .btn-primary, .t-rte .btn-primary { background: var(--t-accent); border-color: var(--t-accent); color: #fff; box-shadow: 0 10px 22px -12px rgba(47,91,255,.8); }
.t-confirm .btn-primary:hover, .t-rte .btn-primary:hover { background: var(--t-accent-dark); border-color: var(--t-accent-dark); }
.t-confirm .btn-light, .t-rte .btn-light { background: #fff; border-color: var(--t-line); color: var(--t-ink); }
.t-confirm .btn-light:hover, .t-rte .btn-light:hover { background: var(--t-bg); border-color: #c9d1de; }
.t-confirm .btn-danger, .t-rte .btn-danger { background: #c43a31; border-color: #c43a31; color: #fff; }
.t-confirm .btn-danger:hover, .t-rte .btn-danger:hover { background: #a8261d; border-color: #a8261d; }
.t-confirm .btn:disabled, .t-rte .btn:disabled { opacity: .55; cursor: not-allowed; }
.t-confirm .form-control, .t-confirm .form-select { display: block; width: 100%; padding: .55rem .8rem; border: 1px solid var(--t-line); border-radius: 10px; background: #fff; color: var(--t-ink); font: 500 15px/1.4 inherit; }
.t-confirm .form-control:focus, .t-confirm .form-select:focus { outline: none; border-color: var(--t-accent); box-shadow: 0 0 0 3px var(--t-accent-soft); }
.t-confirm .form-label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; color: var(--t-ink); }
.t-confirm .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* potvrdzovacie okno - tPotvrd() v admin5.js */
.t-confirm { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(20,27,43,.4); opacity: 0; transition: opacity .15s; }
.t-confirm.is-open { opacity: 1; }
.t-confirm-box { width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 30px 80px -30px rgba(20,27,43,.6); transform: translateY(8px) scale(.98); transition: transform .15s; }
.t-confirm.is-open .t-confirm-box { transform: none; }
.t-confirm-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fde9e8; color: #a8261d; margin-bottom: 14px; }
.t-confirm-ico svg { width: 22px; height: 22px; }
.t-confirm h2 { font-family: 'Space Grotesk', 'Manrope', sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -.02em; color: var(--t-ink); margin: 0; }
.t-confirm p { color: var(--t-muted); margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.t-confirm-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
@media (max-width: 575.98px) { .t-confirm-foot .btn { flex: 1; justify-content: center; } }

/* ---- editor textu (editor5.js, jadro tyrion-editor.js) - náhrada CKEditora ---- */
.t-rte { border: 1px solid var(--t-line); border-radius: 10px; background: #fff; overflow: visible; transition: border-color .12s, box-shadow .12s; }
.t-rte:hover { border-color: #aeb8ca; }
.t-rte:focus-within { border-color: var(--t-accent); box-shadow: 0 0 0 3px var(--t-accent-soft); }
.t-rte.is-invalid { border-color: #c43a31; }
.t-rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 5px 6px; border-bottom: 1px solid var(--t-line); background: #fbfcfe; border-radius: 10px 10px 0 0; position: sticky; top: 64px; z-index: 5; }
.t-rte-skupina { display: inline-flex; gap: 1px; padding-right: 4px; margin-right: 2px; border-right: 1px solid var(--t-line); }
.t-rte-skupina:last-child { border-right: 0; }
.t-rte-vpravo { margin-left: auto; }
.t-rte-btn { width: 32px; height: 30px; border: 0; background: none; border-radius: 6px; display: grid; place-items: center; color: var(--t-text); padding: 0; }
.t-rte-btn svg { width: 17px; height: 17px; }
.t-rte-btn:hover:not(:disabled) { background: var(--t-accent-soft); color: var(--t-accent); }
.t-rte-btn[aria-pressed="true"] { background: var(--t-ink); color: #fff; }
.t-rte-btn:disabled { color: #c9d1de; }
.t-rte-typ { position: relative; padding-right: 4px; margin-right: 2px; border-right: 1px solid var(--t-line); }
.t-rte-typ-btn { height: 30px; min-width: 128px; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--t-line); background: #fff; border-radius: 7px; padding: 0 8px 0 10px; font-size: 14px; font-weight: 700; color: var(--t-ink); }
.t-rte-typ-btn svg { width: 14px; height: 14px; color: var(--t-muted); }
.t-rte-typ-btn:hover:not(:disabled) { border-color: #aeb8ca; }
.t-rte-typ-btn:disabled { color: #c9d1de; }
.t-rte-menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; padding: 5px; background: #fff; border: 1px solid var(--t-line); border-radius: 10px; box-shadow: 0 20px 50px -24px rgba(20,27,43,.45); display: grid; }
.t-rte-menu[hidden] { display: none; }
.t-rte-menu button { border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 7px; color: var(--t-ink); }
.t-rte-menu button:hover { background: var(--t-bg); }
.t-rte-menu button.is-active { background: var(--t-accent-soft); color: var(--t-accent); }
.t-rte-menu .t-rte-menu-p { font-size: 15px; }
.t-rte-menu .t-rte-menu-h2 { font-size: 20px; font-weight: 700; }
.t-rte-menu .t-rte-menu-h3 { font-size: 17px; font-weight: 700; }
.t-rte-menu .t-rte-menu-h4 { font-size: 15px; font-weight: 800; }
.t-rte-menu .t-rte-menu-blockquote { font-style: italic; }
.t-rte-menu-oddel { height: 1px; margin: 4px 6px; background: var(--t-line); }
.t-rte-menu .t-rte-menu-marker { color: #1d6b4a; font-weight: 700; }
.t-rte-menu .t-rte-menu-marker small { display: block; font-size: 12px; font-weight: 500; color: var(--t-muted); }
/* zapnuté zvýraznenie na označenom texte - fajka vpravo, klik ho zruší */
.t-rte-menu .t-rte-menu-marker.is-active { position: relative; padding-right: 30px; background: #e3f3ea; color: #1d6b4a; }
.t-rte-menu .t-rte-menu-marker.is-active::after { content: ''; position: absolute; right: 11px; top: 50%; width: 6px; height: 11px; margin-top: -7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.t-rte-menu[data-menu="zarovnanie"] { min-width: 160px; }
.t-rte-menu[data-menu="zarovnanie"] button { display: flex; align-items: center; gap: 9px; }
.t-rte-menu[data-menu="zarovnanie"] svg { width: 17px; height: 17px; flex: none; }
.t-rte-zarovnanie .t-rte-btn { width: 36px; }
.t-rte-body { padding: 12px 16px; min-height: 180px; max-height: 60vh; overflow: auto; color: var(--t-ink); line-height: 1.6; font-size: 15px; outline: 0; }
.t-rte--maly .t-rte-body { min-height: 110px; }
.t-rte--najmensi .t-rte-body { min-height: 80px; }
.t-rte-body:empty::before { content: attr(data-placeholder); color: var(--t-muted); pointer-events: none; }
.t-rte-body > :first-child { margin-top: 0; }
.t-rte-body p, .t-rte-body ul, .t-rte-body ol { margin: 0 0 .75em; }
.t-rte-body h2 { font-size: 22px; font-weight: 700; margin: 1em 0 .4em; }
.t-rte-body h3 { font-size: 18px; font-weight: 700; margin: 1em 0 .4em; }
.t-rte-body h4 { font-size: 16px; font-weight: 800; margin: 1em 0 .4em; }
.t-rte-body a { color: var(--t-accent); text-decoration: underline; }
.t-rte-body a:hover { background: var(--t-accent-soft); border-radius: 3px; cursor: pointer; }
.t-rte-body img { max-width: 100%; height: auto; border-radius: 6px; }
/* citácia a zvýraznené (span.marker) - na webe ich štýluje šablóna (blockquote v style.less, _zvyraznenie.less) */
.t-rte-body blockquote { margin: 0 0 .75em; padding: .75em 1em; background: var(--t-bg); border-radius: 8px; font-style: italic; }
.t-rte-body blockquote > :last-child { margin-bottom: 0; }
.t-rte-body .marker { color: #1d6b4a; background: #e3f3ea; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.t-rte-body .text-center { text-align: center; } .t-rte-body .text-end { text-align: right; } .t-rte-body .text-justify { text-align: justify; }
/* HTML kód: pôvodná textarea, editor skrytý */
.t-rte .t-rte-zdroj { display: none; }
.t-rte.is-zdroj .t-rte-zdroj { display: block; width: 100%; min-height: 280px; border: 0; border-radius: 0 0 9px 9px; padding: 14px 16px; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #dbe3f0; background: #141b2b; caret-color: #7d97ff; resize: vertical; box-shadow: none; white-space: pre; overflow: auto; tab-size: 2; }
.t-rte.is-zdroj .t-rte-zdroj::selection { background: rgba(125,151,255,.35); }
.t-rte.is-zdroj .t-rte-zdroj:focus { outline: 0; }
.t-rte.is-zdroj .t-rte-body { display: none; }
.t-rte-dialog-pole { margin-top: 12px; height: 42px; border-radius: 10px; }
@media (max-width: 991.98px) { .t-rte-bar { top: 56px; } }
/* HTML kód v CodeMirror - tmavá téma vo farbách admina (t-tmava) */
.t-rte .CodeMirror { height: auto; min-height: 280px; max-height: 65vh; border-radius: 0 0 9px 9px; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.t-rte .CodeMirror-scroll { min-height: 280px; max-height: 65vh; }
.cm-s-t-tmava.CodeMirror { background: #141b2b; color: #dbe3f0; }
.cm-s-t-tmava .CodeMirror-gutters { background: #10172a; border-right: 1px solid #263048; }
.cm-s-t-tmava .CodeMirror-linenumber { color: #5b6780; padding: 0 10px 0 6px; }
.cm-s-t-tmava .CodeMirror-cursor { border-left: 2px solid #7d97ff; }
.cm-s-t-tmava div.CodeMirror-selected, .cm-s-t-tmava.CodeMirror-focused div.CodeMirror-selected { background: rgba(125,151,255,.28); }
.cm-s-t-tmava .CodeMirror-activeline-background { background: rgba(255,255,255,.04); }
.cm-s-t-tmava .CodeMirror-activeline .CodeMirror-gutter-elt { color: #aab3c5; }
.cm-s-t-tmava .cm-tag { color: #7d97ff; }
.cm-s-t-tmava .cm-bracket { color: #5b6780; }
.cm-s-t-tmava .cm-attribute { color: #e7b562; }
.cm-s-t-tmava .cm-string { color: #7fd1a4; }
.cm-s-t-tmava .cm-comment { color: #6b7590; font-style: italic; }
.cm-s-t-tmava .cm-error { color: #ff8a80; }
.cm-s-t-tmava .CodeMirror-matchingtag { background: rgba(125,151,255,.22); border-radius: 3px; }
.cm-s-t-tmava .cm-searching { background: rgba(231,181,98,.35); }
.t-cm-chyba { background: rgba(196,58,49,.35); }
/* dialóg hľadania / nahrádzania (CodeMirror addon dialog) */
.t-rte .CodeMirror-dialog, .t-kod-cm .CodeMirror-dialog { position: absolute; left: 0; right: 0; z-index: 15; padding: 8px 12px; background: #1e2740; color: #dbe3f0; font: 600 13px/1.4 'Manrope', sans-serif; }
.t-rte .CodeMirror-dialog-top, .t-kod-cm .CodeMirror-dialog-top { top: 0; border-bottom: 1px solid #263048; }
.t-rte .CodeMirror-dialog-bottom, .t-kod-cm .CodeMirror-dialog-bottom { bottom: 0; border-top: 1px solid #263048; }
.t-rte .CodeMirror-dialog input { border: 1px solid #3a4560; background: #141b2b; color: #fff; border-radius: 6px; padding: 3px 8px; font: 13px ui-monospace, monospace; width: 18em; outline: 0; margin: 0 6px; }
.t-rte .CodeMirror-dialog input:focus { border-color: #7d97ff; }
.t-rte .CodeMirror-dialog button { border: 1px solid #3a4560; background: #263048; color: #fff; border-radius: 6px; padding: 2px 10px; margin-left: 4px; font-size: 12px; }
.t-rte .CodeMirror-dialog .CodeMirror-search-hint { color: #8a94a8; font-weight: 500; }
/* obrázok v texte editora */
.t-rte-body img { display: block; max-width: 100%; height: auto; border-radius: 8px; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; }
.t-rte-body img:hover { outline-color: var(--t-accent-soft); }
.t-rte.is-nahrava { position: relative; }
.t-rte.is-nahrava::after { content: 'Nahrávam obrázok…'; position: absolute; inset: 42px 0 0; display: grid; place-items: center; background: rgba(255,255,255,.75); color: var(--t-ink); font-weight: 700; border-radius: 0 0 10px 10px; }
/* Stĺpce v texte (row g-4 t-stlpce) - kostra je zamknutá, píše sa v stĺpcoch; jemný rámik, aby bolo vidno hranice */
.t-rte-body .t-stlpce { position: relative; margin-top: calc(2.6em - var(--bs-gutter-y)); margin-bottom: 1em; counter-reset: t-stlpec; }
.t-rte-body .t-stlpce::before { content: 'Stĺpce'; position: absolute; top: calc(var(--bs-gutter-y) - 1.9em); left: calc(var(--bs-gutter-x) * .5); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--t-muted); pointer-events: none; }
.t-rte-body .t-stlpce.t-obrazky::before { content: 'Obrázky vedľa seba'; }
.t-rte-body .t-stlpce:focus-within::before { color: var(--t-accent); }
/* každý stĺpec ako vlastná plocha: podfarbenie a rámik len na obsahu (medzera medzi stĺpcami ostane biela),
   aby bolo vidno, kam kliknúť; stĺpec, v ktorom sa píše, má rámik vo farbe admina */
.t-rte-body .t-stlpce > div { position: relative; isolation: isolate; outline: 0; min-height: 3.2em; padding: .7em calc(var(--bs-gutter-x) * .5 + 12px); counter-increment: t-stlpec; cursor: text; }
.t-rte-body .t-stlpce > div::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--bs-gutter-x) * .5); right: calc(var(--bs-gutter-x) * .5); z-index: -1; border: 1px dashed #c3cde0; border-radius: 8px; background: #f7f9fc; pointer-events: none; }
.t-rte-body .t-stlpce > div:hover::after { border-color: #9fb0cc; }
.t-rte-body .t-stlpce > div:focus::after { border: 1.5px solid var(--t-accent); background: #fff; box-shadow: 0 0 0 3px var(--t-accent-soft); }
/* prázdny stĺpec - nápoveda (len ukazuje, do textu nejde) */
.t-rte-body .t-stlpce > div:has(> p:only-child > br:only-child)::before { content: 'Stĺpec ' counter(t-stlpec) ' - klikni a píš'; position: absolute; top: .7em; left: calc(var(--bs-gutter-x) * .5 + 12px); color: #9aa5b8; pointer-events: none; line-height: 1.6; }
.t-rte-body .t-stlpce > div:focus:has(> p:only-child > br:only-child)::before { content: 'Píš sem'; }
.t-rte-body .t-obrazky > div { padding: 8px calc(var(--bs-gutter-x) * .5 + 8px); }
.t-rte-body .t-obrazky > div:has(> p:only-child > br:only-child)::before { top: 8px; left: calc(var(--bs-gutter-x) * .5 + 8px); }
.t-rte-body .t-stlpce > div > :last-child { margin-bottom: 0; }
/* riadok pod fotkou - nápoveda na popis */
.t-rte-body .t-obrazky > div > p:last-child:has(> br:only-child) { position: relative; margin-top: .5em; }
.t-rte-body .t-obrazky > div > p:last-child:has(> br:only-child)::before { content: 'Popis pod fotkou (nepovinné)'; position: absolute; left: 0; top: 0; color: #9aa5b8; font-size: 14px; pointer-events: none; }
.t-rte-body .t-stlpce img { margin: 0; }
.t-rte-body .t-stlpce .ratio > img { border-radius: 8px; }
/* celá obrazovka - text v šírke ako na webe (detail apartmánu ~46rem), okolo stmavené */
html.t-rte-cela-otvorena, html.t-rte-cela-otvorena body { overflow: hidden; }
.t-rte.is-cela { position: fixed; inset: 16px; z-index: 1060; display: flex; flex-direction: column; box-shadow: 0 0 0 100vmax rgba(20,27,43,.5), 0 30px 80px -30px rgba(20,27,43,.6); }
.t-rte.is-cela .t-rte-bar { position: static; }
.t-rte.is-cela .t-rte-body { flex: 1; max-height: none; padding: 28px max(24px, calc((100% - 900px) / 2)); font-size: 16px; }
.t-rte.is-cela.is-nahlad-tablet .t-rte-body { max-width: 768px; padding: 24px; }
.t-rte.is-cela.is-nahlad-mobil .t-rte-body { max-width: 390px; padding: 20px 16px; }
.t-rte.is-cela.is-zdroj .t-rte-zdroj, .t-rte.is-cela .CodeMirror { flex: 1; max-height: none; }
.t-rte.is-cela .CodeMirror-scroll { max-height: none; }
@media (max-width: 575.98px) { .t-rte.is-cela { inset: 0; border-radius: 0; } }
/* lišta nad blokom, v ktorom stojí kurzor (Upraviť / Zrušiť stĺpce / Zmazať) */
.t-rte { position: relative; }
.t-rte-bloklista { position: absolute; z-index: 4; display: flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--t-line); border-radius: 9px; box-shadow: 0 10px 24px -14px rgba(20,27,43,.4); }
.t-rte-bloklista[hidden] { display: none; }
.t-rte-bloklista button { display: inline-flex; align-items: center; gap: 5px; height: 28px; border: 0; background: none; border-radius: 6px; padding: 0 9px; font-size: 13px; font-weight: 600; color: var(--t-ink); white-space: nowrap; }
.t-rte-bloklista button:hover { background: var(--t-accent-soft); color: var(--t-accent); }
.t-rte-bloklista svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-rte-bloklista .t-rte-bloklista-zmazat { padding: 0 7px; color: #a8261d; }
.t-rte-bloklista .t-rte-bloklista-zmazat:hover { background: #fde9e8; color: #a8261d; }
@media (max-width: 575.98px) { .t-rte-bloklista [data-blok="zrusit"] span { display: none; } }
/* dialóg Obrázok - náhľad, popis, lightbox, odkaz */
.t-rte-obr { display: grid; grid-template-columns: 150px 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.t-rte-obr-nahlad { display: block; border-radius: 10px; overflow: hidden; background: var(--t-bg); }
.t-rte-obr-nahlad img { display: block; width: 100%; height: auto; }
.t-rte-obr-polia .form-label, .t-rte-obr-odkaz .form-label { font-size: 13.5px; font-weight: 700; color: var(--t-ink); margin-bottom: 5px; }
.t-rte-obr-odkaz .form-label span { font-weight: 500; color: var(--t-muted); }
.t-rte-obr-pozn { display: block; margin-top: 4px; font-size: 12.5px; color: var(--t-muted); }
.t-rte-obr-odkaz { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--t-line); }
.t-rte-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; cursor: pointer; }
.t-rte-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--t-accent); }
.t-rte-check b { display: block; font-size: 14px; color: var(--t-ink); }
.t-rte-check small { display: block; font-size: 12.5px; color: var(--t-muted); }
.t-rte-check.is-vypnute { opacity: .45; cursor: default; }
@media (max-width: 575.98px) { .t-rte-obr { grid-template-columns: 1fr; } .t-rte-obr-nahlad { max-width: 180px; } }
/* obrázok s odkazom / lightboxom v editore - drobná značka, nech je vidno, čo klik na webe spraví */
.t-rte-body a > img { outline: 2px dashed var(--t-accent-soft); outline-offset: 2px; }
.t-rte-body img[data-lightbox="1"] { cursor: zoom-in; }
/* pätička editora s náhľadom stĺpcov (len keď sú v texte stĺpce) */
.t-rte-pata { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 6px 8px; border-top: 1px solid var(--t-line); background: #fbfcfe; border-radius: 0 0 10px 10px; font-size: 13px; font-weight: 600; color: var(--t-muted); }
.t-rte-pata[hidden], .t-rte.is-zdroj .t-rte-pata { display: none; }
.t-rte-pata .t-rte-moznosti button { display: inline-flex; align-items: center; gap: 6px; }
.t-rte-pata svg { width: 15px; height: 15px; }
/* náhľad zariadenia: šírka plochy a stĺpce podľa tried pre dané zariadenie (nie podľa okna admina) */
.t-rte.is-nahlad-tablet .t-rte-body, .t-rte.is-nahlad-mobil .t-rte-body { margin: 0 auto; border-left: 1px solid var(--t-line); border-right: 1px solid var(--t-line); }
.t-rte.is-nahlad-tablet .t-rte-body { max-width: 768px; }
.t-rte.is-nahlad-mobil .t-rte-body { max-width: 390px; }
.t-rte.is-nahlad-tablet, .t-rte.is-nahlad-mobil { background: var(--t-bg); }
.t-rte.is-nahlad-tablet .t-rte-body, .t-rte.is-nahlad-mobil .t-rte-body { background: #fff; }
.t-rte .t-stlpce > * { flex: 0 0 auto; }
.t-rte.is-nahlad-mobil .t-stlpce > .col-3 { width: 25%; }
.t-rte.is-nahlad-mobil .t-stlpce > .col-4 { width: 33.3333%; }
.t-rte.is-nahlad-mobil .t-stlpce > .col-6 { width: 50%; }
.t-rte.is-nahlad-mobil .t-stlpce > .col-8 { width: 66.6667%; }
.t-rte.is-nahlad-mobil .t-stlpce > .col-12 { width: 100%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-3 { width: 25%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-4 { width: 33.3333%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-6 { width: 50%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-8 { width: 66.6667%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-12 { width: 100%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-md-3 { width: 25%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-md-4 { width: 33.3333%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-md-6 { width: 50%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-md-8 { width: 66.6667%; }
.t-rte.is-nahlad-tablet .t-stlpce > .col-md-12 { width: 100%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-3 { width: 25%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-4 { width: 33.3333%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-6 { width: 50%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-8 { width: 66.6667%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-12 { width: 100%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-md-3 { width: 25%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-md-4 { width: 33.3333%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-md-6 { width: 50%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-md-8 { width: 66.6667%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-md-12 { width: 100%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-lg-3 { width: 25%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-lg-4 { width: 33.3333%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-lg-6 { width: 50%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-lg-8 { width: 66.6667%; }
.t-rte.is-nahlad-pc .t-stlpce > .col-lg-12 { width: 100%; }

/* dialóg stĺpcov a obrázkov */
.t-rte-dialog { width: min(660px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.t-rte-zariadenia { display: grid; gap: 10px; margin-top: 18px; }
.t-rte-zariadenie { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 12px; }
.t-rte-zariadenie-hlava { display: flex; align-items: center; gap: 7px; color: var(--t-ink); font-size: 14px; }
.t-rte-zariadenie-hlava svg { width: 18px; height: 18px; flex: none; color: var(--t-muted); fill: none; stroke: currentColor; stroke-width: 2; }
.t-rte-zariadenie--pomer { grid-template-columns: 96px 1fr; }
.t-rte-moznosti { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--t-bg); border-radius: 9px; }
.t-rte-moznosti button { border: 0; background: none; border-radius: 7px; padding: 5px 10px; font-size: 13.5px; font-weight: 600; color: var(--t-text); }
.t-rte-moznosti button:hover { color: var(--t-ink); background: #fff; }
.t-rte-moznosti button[aria-pressed="true"] { background: #fff; color: var(--t-accent); box-shadow: 0 1px 3px rgba(20,27,43,.14); }
.t-rte-rozlozenia { display: flex; flex-wrap: wrap; gap: 6px; }
.t-rte-rozlozenia button { display: grid; justify-items: center; gap: 4px; width: 60px; padding: 6px 4px 4px; border: 1px solid var(--t-line); background: #fff; border-radius: 9px; color: var(--t-muted); }
.t-rte-rozlozenia button:hover { border-color: #aeb8ca; }
.t-rte-rozlozenia button[aria-pressed="true"] { border-color: var(--t-accent); box-shadow: 0 0 0 2px var(--t-accent-soft); color: var(--t-accent); }
.t-rte-rozlozenia small { font-size: 11px; font-weight: 700; white-space: nowrap; }
/* nákres: rámik zariadenia, stĺpce ako bloky; čo sa nezmestí do riadku, ide pod */
.t-rte-nakres { display: flex; flex-wrap: wrap; align-content: stretch; padding: 3px; border: 2px solid #c9d3e4; border-radius: 6px; background: #fff; }
.t-rte-nakres i { display: flex; padding: 1.5px; }
.t-rte-nakres b { flex: 1; border-radius: 2px; background: #c9d3e4; }
.t-rte-nakres--volba { width: 48px; height: 26px; border-width: 0; padding: 0; background: none; }
.t-rte-nakres--volba b { background: currentColor; opacity: .45; }
button[aria-pressed="true"] .t-rte-nakres--volba b { opacity: .8; }
.t-rte-nakres--pc { width: 92px; height: 50px; }
.t-rte-nakres--tablet { width: 56px; height: 70px; }
.t-rte-nakres--mobil { width: 34px; height: 64px; border-radius: 7px; }
.t-rte-zariadenie .t-rte-nakres b { background: var(--t-accent); opacity: .55; }
.t-rte-dialog-vlavo { display: flex; gap: 8px; margin-right: auto; }
.t-rte-dialog .t-rte-zmazat { color: #a8261d; }
.t-rte-fotky { display: grid; grid-template-columns: repeat(var(--pocet, 2), 1fr); gap: 10px; margin-top: 16px; }
.t-rte-fotky--3 { --pocet: 3; }
.t-rte-fotka { display: grid; gap: 6px; }
.t-rte-fotka-obr { display: block; border-radius: 8px; overflow: hidden; background: var(--t-bg); }
.t-rte-fotka-obr img { display: block; width: 100%; height: auto; }
.t-rte-fotky[data-pomer="4x3"] .t-rte-fotka-obr img { aspect-ratio: 4 / 3; object-fit: cover; }
.t-rte-fotky[data-pomer="16x9"] .t-rte-fotka-obr img { aspect-ratio: 16 / 9; object-fit: cover; }
.t-rte-fotky[data-pomer="1x1"] .t-rte-fotka-obr img { aspect-ratio: 1; object-fit: cover; }
.t-rte-fotka .form-control { height: 36px; font-size: 13.5px; border-radius: 8px; }
.t-rte-dialog .t-rte-zariadenie:not(:has(.t-rte-nakres)) { grid-template-columns: 96px 1fr; }
@media (max-width: 575.98px) {
  .t-rte-zariadenie { grid-template-columns: 1fr auto; }
  .t-rte-zariadenie-volby { grid-column: 1 / -1; grid-row: 2; }
  .t-rte-zariadenie .t-rte-nakres { grid-column: 2; grid-row: 1; }
  .t-rte-dialog .t-rte-zariadenie:not(:has(.t-rte-nakres)) { grid-template-columns: 1fr; }
  .t-rte-dialog-vlavo { width: 100%; }
  .t-confirm-foot { flex-wrap: wrap; }
}

/* okná editora nad všetkým - aj nad panelom front editu na webe (ten má z-index až 2147483000) */
.t-confirm { z-index: 2147483600; }
.t-rte-dialog .mt-3 { margin-top: 1rem; }
.t-rte-dialog .form-label span { font-weight: 500; color: var(--t-muted); }
/* otvorený zoznam (Odsek / Nadpis …, zarovnanie) nad spodnou lištou Uložiť (.t-savebar z-index 1020) */
.t-rte-bar:has(.t-rte-menu:not([hidden])) { z-index: 1030; }
.t-rte-menu.is-hore { top: auto; bottom: calc(100% + 4px); }
