/* Vizitkomat – editor ako v Canve: ľavý pás nástrojov, panel, kontextová lišta hore, strany s náhľadmi dole */

/* ---------- rozloženie ---------- */
.wz[data-step="edit"] .st3.edx { grid-template-columns: 78px 344px minmax(0, 1fr); }
.wz[data-step="edit"] .st3.edx.is-collapsed { grid-template-columns: 78px 0 minmax(0, 1fr); }
.edx.is-collapsed .edx-panel { overflow: hidden; border-right: 0; visibility: hidden; }

/* ---------- ľavý pás ---------- */
.edx-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; background: var(--ink); overflow-y: auto; scrollbar-width: none; }
.edx-rail::-webkit-scrollbar { display: none; }
.edx-rail button { display: grid; justify-items: center; gap: 5px; padding: 10px 2px 8px; border-radius: 14px; color: rgba(255, 255, 255, .72); font-size: .68rem; font-weight: 800; letter-spacing: .01em; line-height: 1.1; transition: background-color .15s, color .15s; }
.edx-rail button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; padding: 6px; box-sizing: content-box; border-radius: 11px; transition: background-color .15s, color .15s; }
.edx-rail button:hover { color: #fff; }
.edx-rail button:hover svg { background: rgba(255, 255, 255, .1); }
.edx-rail button[aria-selected="true"] { color: #fff; }
.edx-rail button[aria-selected="true"] svg { background: var(--yellow); color: var(--ink); }
.edx-rail button:focus-visible { outline: 3px solid var(--yellow); outline-offset: -2px; }

/* ---------- panel ---------- */
.edx-panel { min-width: 0; }
.edx-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px 20px; }
.edx-panel__head b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.edx-panel__x { width: 34px; height: 34px; border-radius: 10px; font-size: 1.4rem; line-height: 1; color: var(--ink-3); }
.edx-panel__x:hover { background: #F1F2FA; color: var(--ink); }
.edx .pn { padding-top: 6px; }
.pn__lead { margin: 0 0 14px; font-size: .86rem; line-height: 1.45; color: var(--ink-3); }
.pn__lead.is-sel { color: var(--cobalt); font-weight: 700; }
.edx .ed-tabs { display: none; }

/* šablóny */
.edx-q { position: sticky; top: -6px; z-index: 2; margin: 14px -20px 12px; padding: 8px 20px; background: #fff; }
.edx-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.edx-tpl { position: relative; display: grid; gap: 5px; padding: 0; text-align: left; border-radius: 10px; }
.edx-tpl img { width: 100%; aspect-ratio: 90 / 50; object-fit: cover; border-radius: 8px; background: #F1F2F8; box-shadow: 0 0 0 1px rgba(15, 20, 64, .08), 0 6px 14px -8px rgba(15, 20, 64, .35); transition: transform .2s var(--pop), box-shadow .2s; }
.edx-tpl span { font-size: .74rem; font-weight: 700; color: var(--ink-2); padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edx-tpl:hover img { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(15, 20, 64, .1), 0 12px 22px -10px rgba(15, 20, 64, .45); }
.edx-tpl.on img { box-shadow: 0 0 0 3px var(--cobalt), 0 8px 18px -8px rgba(36, 64, 230, .5); }
.edx-tpl__b { position: absolute; left: 6px; top: 6px; padding: .12rem .42rem; border-radius: 99px; background: var(--ink); color: #fff; font-style: normal; font-size: .58rem; font-weight: 800; }
.edx .magic { margin-bottom: 4px; }

/* text */
.edx-tstyles { display: grid; gap: 8px; }
.edx-tstyles button { padding: .7rem .9rem; border-radius: 12px; background: #F4F5FB; color: var(--ink); text-align: left; line-height: 1.15; transition: background-color .15s, transform .15s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edx-tstyles button:hover { background: #E9ECFB; }
.edx-tstyles button:active { transform: scale(.98); }
.edx-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.edx-pairs button { display: grid; gap: 4px; padding: .75rem .8rem; border-radius: 12px; border: 1.5px solid var(--line-2); text-align: left; transition: border-color .15s, background-color .15s; }
.edx-pairs button b { font-size: 1.05rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edx-pairs button small { font-size: .7rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edx-pairs button:hover { border-color: rgba(36, 64, 230, .35); }
.edx-pairs button.on { border-color: var(--cobalt); background: #F2F4FE; }

/* pozadie */
.edx-sw { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.edx-sw button, .edx-sw__own { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15, 20, 64, .14); transition: transform .15s var(--pop), box-shadow .15s; }
.edx-sw button:hover { transform: scale(1.08); }
.edx-sw button.on { box-shadow: inset 0 0 0 1px rgba(15, 20, 64, .14), 0 0 0 2px #fff, 0 0 0 4px var(--cobalt); }
.edx-sw--grad { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.edx-sw--grad button { border-radius: 12px; aspect-ratio: 1.4; }
.edx-sw__own { position: relative; overflow: hidden; background: conic-gradient(red, #ff0, lime, cyan, blue, #f0f, red); cursor: pointer; }
.edx-sw__own input { position: absolute; inset: -8px; opacity: 0; cursor: pointer; }
.edx-tex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.edx-tex button { position: relative; aspect-ratio: 1.3; border-radius: 12px; background: #F4F5FB center / cover; box-shadow: inset 0 0 0 1px rgba(15, 20, 64, .1); overflow: hidden; }
.edx-tex button span { position: absolute; left: 0; right: 0; bottom: 0; padding: .3rem .4rem; background: linear-gradient(transparent, rgba(15, 20, 64, .7)); color: #fff; font-size: .64rem; font-weight: 800; text-align: left; }
.edx-tex button.none span { position: static; background: none; color: var(--ink-3); display: grid; place-items: center; height: 100%; text-align: center; }
.edx-tex button.on { box-shadow: 0 0 0 3px var(--cobalt); }

/* QR */
.edx-qrcard { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: #F4F5FB; }
.edx-qrcard__code { width: 96px; height: 96px; padding: 8px; border-radius: 12px; background: #fff; box-sizing: border-box; }
.edx-qrcard__code svg { width: 100%; height: 100%; display: block; }
.edx-qrcard b { font-size: .9rem; line-height: 1.3; }
.edx-qrcard p { margin: 4px 0 0; font-family: var(--mono); font-size: .74rem; color: var(--cobalt); word-break: break-all; }
.edx-qrbtns { display: grid; gap: 8px; margin: 14px 0; }
.edx-qrbtns .btn { justify-content: center; }
.edx-qrbtns .link[hidden] { display: none; }
.edx-up { display: inline-flex; gap: 8px; align-items: center; }
.edx-up svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- horná kontextová lišta ---------- */
.edx-top { min-height: 64px; padding: 10px 14px 6px; gap: 12px; align-items: center; }
.edx-ctx { flex: 1; min-width: 0; display: flex; align-items: center; }
.edx .etb { position: static; transform: none !important; left: auto !important; top: auto !important; max-width: 100%; overflow-x: auto; scrollbar-width: none; box-shadow: 0 0 0 1px rgba(15, 20, 64, .07), 0 6px 18px -10px rgba(15, 20, 64, .35); transition: opacity .16s; }
.edx .etb::-webkit-scrollbar { display: none; }
.edx .etb::after { display: none; }
.edx .etb.is-moving { opacity: .35; transform: none !important; }
.edx .etb.is-painting [data-act="copystyle"] { background: var(--yellow); }
.edx-hint { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .82rem; color: var(--ink-3); }
.edx-hint[hidden], .edx .etb:not([hidden]) ~ .edx-hint { display: none; }
.edx-hint span { flex: none; margin-right: 4px; white-space: nowrap; font-weight: 700; }
.edx-hint button { flex: none; padding: .45rem .75rem; border-radius: 10px; background: #fff; font-weight: 800; font-size: .78rem; color: var(--ink); box-shadow: 0 0 0 1px rgba(15, 20, 64, .08); }
.edx-hint button:hover { background: #F2F4FE; color: var(--cobalt); }
.edx .ed-tools { flex: none; }

/* ---------- dole: strany, kontrola, priblíženie ---------- */
.edx-pages { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 16px 10px; }
.edx-pagelist { display: flex; gap: 10px; background: none; padding: 0; box-shadow: none; border-radius: 0; }
.edx-page { display: grid; gap: 4px; justify-items: center; padding: 4px; border-radius: 12px; color: var(--ink-3); font-size: .72rem; font-weight: 800; transition: background-color .15s, color .15s; }
.edx-page img { width: 96px; aspect-ratio: 90 / 50; object-fit: cover; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 20, 64, .1), 0 4px 10px -6px rgba(15, 20, 64, .35); transition: box-shadow .15s; }
.edx-page img:not([src]) { visibility: visible; }
.edx-page:hover { color: var(--ink); }
.edx-page.on { color: var(--cobalt); }
.edx-page.on img { box-shadow: 0 0 0 2.5px var(--cobalt), 0 6px 14px -6px rgba(36, 64, 230, .5); }
.edx-pf { display: inline-flex; align-items: center; gap: 8px; padding: .5rem .8rem; border-radius: 99px; background: #FFF1D6; color: #7A4A00; font-size: .78rem; font-weight: 800; }
.edx-pf i { width: 8px; height: 8px; border-radius: 50%; background: #F5A524; }
.edx-pf.is-ok { background: #E3F6EA; color: #156B3A; }
.edx-pf.is-ok i { background: #1F9D57; }
.edx-pf[hidden] { display: none; }
.edx-pfpop { position: absolute; left: 230px; bottom: calc(100% + 6px); z-index: 20; width: min(380px, calc(100vw - 40px)); max-height: 320px; overflow: auto; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 20, 64, .07), 0 18px 40px -14px rgba(15, 20, 64, .45); font-size: .84rem; }
.edx-pfpop[hidden] { display: none; }
.edx-pfpop > b { display: block; margin-bottom: 8px; }
.edx-pfpop p { margin: 0; color: var(--ink-3); line-height: 1.45; }
.edx-pfi { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.edx-pfi span { display: grid; gap: 2px; min-width: 0; }
.edx-pfi small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edx-pfi button { flex: none; padding: .35rem .7rem; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; font-size: .74rem; }
.edx-view { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.edx-marks { display: inline-flex; align-items: center; gap: 6px; }
.edx-marks svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.edx-marks[aria-pressed="true"] { background: var(--ink); color: #fff; }
.edx .ed-zoom { display: flex; }

/* ---------- tablet ---------- */
@media (min-width: 1024px) and (max-width: 1240px) {
  .wz[data-step="edit"] .st3.edx { grid-template-columns: 72px 300px minmax(0, 1fr); }
  .edx-hint span { display: none; }
  .edx .ed-saved span { display: none; }
  .edx-page img { width: 80px; }
}

/* ---------- mobil: aplikácia na celú obrazovku, panel ako spodná plachta ---------- */
@media (max-width: 1023px) {
  .wz[data-step="edit"] .st3.edx { display: flex; flex-direction: column; height: calc(100svh - var(--nav-h) - 51px); overflow: hidden; }
  .edx .ed-stage { order: 1; position: relative; top: auto; flex: 1; min-height: 0; height: auto; z-index: 1; }
  .edx-rail { order: 2; flex-direction: row; gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow-x: auto; flex: none; }
  .edx-rail button { flex: 1 1 0; min-width: 0; padding: 6px 0 4px; font-size: .6rem; gap: 2px; letter-spacing: -.01em; }
  .edx-rail button svg { width: 22px; height: 22px; padding: 4px; }
  .edx .ed-foot { position: static; box-shadow: none; padding: 6px 12px 8px; background: transparent; }
  .edx .ed-foot .link, .edx .ed-price { display: none; }
  .edx .ed-foot .btn--lg { width: 100%; justify-content: center; min-height: 48px; }
  .edx-top { min-height: 56px; padding: 6px 8px 4px; gap: 6px; }
  .edx .ed-saved, .edx .ed-keys { display: none; }
  .edx-hint span { display: none; }
  .edx-hint button { padding: .4rem .6rem; font-size: .74rem; }
  .edx .etb { position: static; bottom: auto; left: auto !important; right: auto; border-radius: 14px; padding: 4px; -webkit-mask-image: none; mask-image: none; }
  .edx .etb button { height: 40px; }
  .edx .etb__b, .edx .etb__sw { min-width: 40px; }
  .edx-pages { padding: 2px 10px 0; gap: 8px; }
  .edx-page { grid-auto-flow: column; gap: 6px; padding: 3px 8px 3px 3px; }
  .edx-page img { width: 54px; border-radius: 4px; }
  .edx-view .ed-zoom, .edx-marks span { display: none; }
  .edx-pf { padding: .5rem; }
  .edx-pfpop { left: 10px; right: 10px; width: auto; }
  /* spodná plachta s panelom */
  .edx .edx-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: min(64svh, 560px); border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px -18px rgba(15, 20, 64, .5); transform: translateY(105%); transition: transform .32s var(--ease); display: flex; flex-direction: column; visibility: visible; }
  .edx.is-sheet .edx-panel { transform: none; }
  .edx-panel__head { padding: 10px 14px 4px 18px; position: relative; }
  .edx-panel__head::before { content: ''; position: absolute; left: 50%; top: 6px; width: 42px; height: 4px; border-radius: 4px; background: rgba(15, 20, 64, .16); transform: translateX(-50%); }
  .edx .pn { position: absolute; padding: 6px 16px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; }
  .edx .edx-q { margin: 12px -16px 10px; padding: 8px 16px; }
  .edx .els__q { position: sticky; top: -6px; margin: -6px -16px 6px; }
  .edx-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edx-sw { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* spodný riadok: strany vľavo, objednávka vpravo; priblíženie a orez hore */
.edx-pages .ed-foot { margin-left: auto; padding: 0; gap: 14px; position: relative; }
.edx-pages .ed-foot .nudge { position: absolute; right: 0; bottom: calc(100% + 10px); }
.edx-view--top { margin-left: 0; gap: 6px; }
.edx-view--top .edx-marks span { display: none; }
@media (min-width: 1024px) and (max-width: 1240px) {
  .edx-pages .ed-foot .link { display: none; }
  .edx-pages .ed-foot .btn--lg { padding-inline: 1rem; font-size: .95rem; }
}
@media (max-width: 1023px) {
  .edx-pages { flex-wrap: wrap; padding-bottom: 6px; }
  .edx-pages .ed-foot { order: 5; flex: 1 0 100%; margin-left: 0; }
  .edx-view--top .ed-zoom { display: none; }
}
.edx-pf span { white-space: nowrap; }
@media (max-width: 1023px) {
  .wz[data-step="edit"] .st3.edx { height: calc(100svh - var(--edx-top, 130px)); }
  .edx-top { flex-wrap: wrap; row-gap: 6px; }
  .edx-ctx { order: 2; flex: 1 0 100%; }
  .edx .ed-tools { order: 1; margin-left: auto; }
  .edx .etb { width: 100%; justify-content: flex-start; }
}
.emulti { top: 64px; white-space: nowrap; font-size: .78rem; padding: 5px 5px 5px 12px; }
@media (max-width: 1023px) { .emulti { top: auto; bottom: 120px; } .emulti span { max-width: 200px; overflow: hidden; text-overflow: ellipsis; } }
/* kontextová lišta má stálu výšku – výber prvku nesmie posunúť vizitku */
.edx-ctx { min-height: 48px; }
@media (max-width: 1023px) { .edx-ctx { min-height: 50px; } .edx .etb { min-height: 50px; box-sizing: border-box; } .edx-hint { min-height: 50px; } }
.adds--orn button svg { width: 40px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.adds--orn button svg circle, .adds--orn button svg ellipse { fill: var(--ink); stroke: none; }
@media (max-width: 1023px) {
  /* plachta je nad spodným pásom nástrojov, pás ostáva klikateľný */
  .edx-rail { position: relative; z-index: 71; box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }
  .edx .edx-panel { bottom: calc(58px + env(safe-area-inset-bottom)); height: min(58svh, 520px); }
}

/* tablet na výšku (761–1023 px): rovnaké rozloženie ako mobil – pás nástrojov dole, panel ako plachta, vizitka na celú šírku */
@media (min-width: 761px) and (max-width: 1023px) {
  .wz[data-step="edit"] .st3 { display: flex; flex-direction: column; animation: none; }
  .ed-side { order: 2; border: 0; }
  .ed-tools { gap: 6px; }
  .ed-keys { display: none; }
  .tb--z { min-width: 52px; }
  .edx .edx-panel { left: 50%; right: auto; width: min(640px, 100%); transform: translate(-50%, 105%); }
  .edx.is-sheet .edx-panel { transform: translate(-50%, 0); }
  .edx-rail button { font-size: .68rem; }
}

/* ---------- krátka prehliadka (3 kroky) ---------- */
.tour { position: fixed; z-index: 90; width: min(320px, calc(100vw - 20px)); padding: 16px 16px 12px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 24px 50px -18px rgba(15, 20, 64, .6); --ax: 50%; }
.tour[hidden] { display: none; }
.tour.is-in { animation: tourIn .32s var(--pop, cubic-bezier(.2, .9, .3, 1.2)); }
@keyframes tourIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.tour__n { display: inline-block; margin-bottom: 6px; padding: .12rem .5rem; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.tour b { display: block; font-size: 1.02rem; letter-spacing: -.01em; }
.tour p { margin: 4px 0 12px; font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.tour__b { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour__skip { padding: .45rem .2rem; color: rgba(255, 255, 255, .7); font-weight: 700; font-size: .82rem; }
.tour__skip:hover { color: #fff; }
.tour__next { padding: .55rem 1rem; border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .86rem; }
.tour__arr { position: absolute; width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg); }
.tour[data-side="top"] .tour__arr { top: -6px; left: calc(var(--ax) - 7px); }
.tour[data-side="bottom"] .tour__arr { bottom: -6px; left: calc(var(--ax) - 7px); }
.tour[data-side="left"] .tour__arr { left: -6px; top: 26px; }
@media (prefers-reduced-motion: reduce) { .tour.is-in { animation: none; } }

/* mobil/tablet: otvorený panel neprekryje vizitku – plocha sa zmenší nad plachtu a vizitka sa do nej prispôsobí */
@media (max-width: 1023px) {
  .edx .edx-panel { height: min(44svh, 420px); }
  .edx.is-sheet .ed-stage { padding-bottom: min(44svh, 420px); }
  .edx.is-sheet .edx-pages, .edx.is-sheet .edx-hint { display: none; }
  .edx.is-sheet .edx-ctx { min-height: 0; }
  /* strany: popis pod náhľadom, aby sa do riadka zmestila aj kontrola tlače */
  .edx-page { grid-auto-flow: row; gap: 2px; padding: 3px; font-size: .62rem; }
  .edx-pf { font-size: .72rem; padding: .42rem .7rem; }
}

/* počítač: keď je vybraný prvok, kontextová lišta dostane miesto – stav uloženia a vrstvy len ako ikony */
@media (min-width: 1024px) {
  .edx-top:has(.etb:not([hidden])) .ed-saved span,
  .edx-top:has(.etb:not([hidden])) .ed-laybtn span { display: none; }
  .edx-top:has(.etb:not([hidden])) .ed-laybtn { min-width: 40px; padding: 0; justify-content: center; }
  .edx-top { gap: 10px; }
}
@media (min-width: 1024px) and (max-width: 1360px) {
  .wz[data-step="edit"] .st3.edx { grid-template-columns: 72px 312px minmax(0, 1fr); }
  .edx-top:has(.etb:not([hidden])) .ed-zoom .tb--s { display: none; }
}
.etb.is-tight [data-act="copystyle"], .etb.is-tight [data-act="lock"] { display: none; }
.edx .etb.is-over { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
@media (min-width: 1024px) {
  .edx-top:has(.etb:not([hidden])) .ed-zoom .tb--s, .edx-top:has(.etb:not([hidden])) .ed-keys { display: none; }
  .edx .etb__font { max-width: 132px; }
}
/* užší počítač: kontextová lišta na vlastnom riadku na celú šírku plochy */
@media (min-width: 1024px) and (max-width: 1439px) {
  .edx-top { flex-wrap: wrap; row-gap: 6px; }
  .edx-ctx { order: 2; flex: 1 0 100%; }
  .edx .ed-tools { order: 1; margin-left: auto; }
  .edx-top:has(.etb:not([hidden])) .ed-zoom .tb--s { display: inline-flex; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .edx-pages .ed-foot [data-back-choose], .edx-pages .ed-foot .ed-price { display: none; }
  .edx-pages { gap: 10px; }
}
/* nižšie obrazovky (notebooky): kompaktnejšie kroky, lišty a spodný riadok – viac miesta pre vizitku */
@media (min-width: 1024px) and (max-height: 900px) {
  .wz[data-step="edit"] .wz__steps { padding: 6px 0; }
  .wz[data-step="edit"] .wz__steps li { padding: .38rem .8rem; }
  .edx-top { min-height: 52px; padding: 8px 12px 2px; }
  .edx-pages { padding: 4px 14px 8px; }
  .edx-page img { width: 72px; }
  .edx-pages .ed-foot .btn--lg { min-height: 50px; padding-block: .6rem; }
}
@media (min-width: 1024px) and (max-width: 1439px) { .edx-top { row-gap: 4px; } }
.tour[data-side="right"] .tour__arr { right: -6px; top: calc(50% - 7px); }
.tour[data-side="none"] .tour__arr { display: none; }
.fld__other { display: flex; align-items: center; gap: 8px; margin: 6px 2px 0; font-size: .76rem; color: var(--ink-3); }
.fld__other button { padding: .2rem .55rem; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: .72rem; }
.edx-page img:not([src]), .edx-page img[src=""] { background: linear-gradient(100deg, #EEF0FA 30%, #F8F9FE 50%, #EEF0FA 70%) 0 0 / 220% 100%; animation: edxSk 1.2s linear infinite; }
@keyframes edxSk { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .edx-page img { animation: none !important; } }
/* mobil/tablet: ikony v lište s krátkym popisom (bez myši nie sú tooltipy) */
@media (max-width: 1023px) {
  .edx .etb [data-l] { position: relative; flex-direction: column; justify-content: center; gap: 1px; height: 52px; min-width: 50px; padding-bottom: 2px; }
  .edx .etb [data-l]::after { content: attr(data-l); font-size: .56rem; font-weight: 700; line-height: 1; color: var(--ink-3); white-space: nowrap; }
  .edx .etb [data-l] svg { width: 20px; height: 20px; }
  .edx .etb__sw[data-l] i { width: 20px; height: 20px; }
  .edx-ctx, .edx .etb { min-height: 58px; }
}

/* ===== jednoduchý režim (predvolený): údaje + farby + veľký náhľad ===== */
.simple-intro, .simple-extra, .simple-shield { display: none; }
.simple-back { display: none; }
.edx:not(.is-simple) .simple-back { display: inline-flex; }
.edx.is-simple .simple-intro { display: block; margin: 2px 0 14px; }
.simple-intro h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 0 0 4px; }
.simple-intro p { margin: 0; color: var(--ink-3); font-size: .92rem; line-height: 1.45; }
.edx.is-simple .simple-extra { display: block; margin: 18px 0 8px; }
.simple-extra h3 { font-size: .95rem; margin: 0 0 8px; }
.pals--mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.simple-adv { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; width: 100%; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--ink); text-align: left; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 3px 4px 0 var(--ink); }
.simple-adv span { font-weight: 800; font-size: 1rem; }
.simple-adv small { grid-column: 1; color: var(--ink-3); font-size: .8rem; line-height: 1.35; }
.simple-adv b { grid-row: 1 / span 2; grid-column: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); }
.simple-adv:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--ink); }
.edx.is-simple .edx-rail, .edx.is-simple .edx-panel__head, .edx.is-simple .pn__tip, .edx.is-simple .edx-ctx, .edx.is-simple .ed-zoom, .edx.is-simple .ed-keys,
.edx.is-simple .etb, .edx.is-simple .elay, .edx.is-simple [data-layers-btn], .edx.is-simple .edx-view, .edx.is-simple .fld .badge { display: none !important; }
.edx.is-simple .simple-shield { display: block; position: absolute; inset: 0; z-index: 4; background: transparent; border: 0; cursor: default; }
.edx.is-simple .ed-top, .edx.is-simple .edx-pages, .edx.is-simple .ed-foot { position: relative; z-index: 5; }
@media (min-width: 1024px) {
  .wz[data-step="edit"] .st3.edx.is-simple, .wz[data-step="edit"] .st3.edx.is-simple.is-collapsed { grid-template-columns: 380px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .wz[data-step="edit"] .st3.edx.is-simple { height: auto; overflow: visible; }
  .edx.is-simple .ed-stage { flex: none; height: auto; z-index: auto; }
  .edx.is-simple .ed-canvas { min-height: 0; height: min(66vw, 460px); }
  .edx.is-simple .edx-panel { position: static; order: 3; height: auto; transform: none; border-radius: 0; box-shadow: none; z-index: auto; }
  .edx.is-simple .pn { position: static; padding: 8px 16px 120px; overflow: visible; }
  .edx.is-simple .ed-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--cream) 70%, transparent); }
}
@media (max-width: 1023px) { .edx.is-simple .edx-pages { display: flex !important; } .edx.is-simple .edx-pagelist { display: none; } .edx.is-simple .edx-pf { display: none !important; } }
@media (max-width: 1023px) {
  .edx.is-simple .ed-stage { position: sticky; top: calc(var(--nav-h) + 50px); z-index: 3; background: #EEF0FA; box-shadow: 0 10px 20px -16px rgba(15, 20, 64, .4); }
  .edx.is-simple .ed-canvas { height: min(54vw, 400px); }
  .edx.is-simple .ed-top { position: absolute; right: 6px; top: 6px; min-height: 0; padding: 0; }
}
