.help { position: relative; display: inline-flex; }
  .help .mark { display: flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%;
                border: 1px solid var(--hair); background: var(--surface-2); color: var(--text-3); font-size: 11px; font-weight: 600; cursor: help; user-select: none; }
  .help .bubble { position: absolute; left: -8px; top: calc(100% + 8px); z-index: 90; width: 380px; max-width: 78vw; padding: 12px 14px;
                  background: var(--surface); border: 1px solid var(--hair); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14);
                  font-size: 12.5px; line-height: 1.55; font-weight: 400; color: var(--text-2); white-space: normal;
                  text-transform: none; letter-spacing: normal; text-align: left;
                  max-height: 70vh; overflow-y: auto; overscroll-behavior: contain;
                  opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .12s, transform .12s; }
  .help:hover .bubble, .help:focus-within .bubble { opacity: 1; visibility: visible; transform: none; }
  .help.zavreno .bubble { opacity: 0 !important; visibility: hidden !important; }
  .help:not(:hover):not(:focus-within):not(.otevreno) > .bubble { display: none; }
  .help.otevreno .bubble { opacity: 1; visibility: visible; transform: none; max-height: 70vh; overflow-y: auto; }
  .help .mark { cursor: pointer; }
  .help .bubble > p.klik-info, .help .bubble > p.chip-leg, .help .bubble > #ord-info { margin: 0 0 8px; font-size: 12.5px; }
  .help .bubble > :last-child { margin-bottom: 0; }
  .grid2 > .card:last-child .help .bubble { left: auto; right: -8px; }
  .help .bubble.nahoru { top: auto; bottom: calc(100% + 8px); transform: translateY(3px); }
  .help:hover .bubble.nahoru, .help:focus-within .bubble.nahoru, .help.otevreno .bubble.nahoru { transform: none; }
  @media (prefers-reduced-motion: reduce) { .help .bubble { transition: none; } }
  .lb { --lb-bg: rgba(246,247,249,.94); --lb-bg-dps: #e9ecf0; --lb-box: var(--dps-bg);
        --lb-txt: var(--text-1); --lb-txt2: var(--text-2); --lb-txt3: var(--text-3);
        --lb-ovl: rgba(0,0,0,.05); --lb-ovl2: rgba(0,0,0,.11); --lb-hair: rgba(0,0,0,.18);
        --lb-hair2: rgba(0,0,0,.12); --lb-panel: rgba(255,255,255,.72); --lb-odkaz: var(--series-1); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lb { --lb-bg: rgba(0,0,0,.88); --lb-bg-dps: #0b0b0c; --lb-box: #222;
        --lb-txt: #eee; --lb-txt2: #ddd; --lb-txt3: #aaa;
        --lb-ovl: rgba(255,255,255,.12); --lb-ovl2: rgba(255,255,255,.26); --lb-hair: rgba(255,255,255,.3);
        --lb-hair2: rgba(255,255,255,.15); --lb-panel: rgba(0,0,0,.4); --lb-odkaz: #9cc7ff; }
  }
  :root[data-theme="dark"] .lb { --lb-bg: rgba(0,0,0,.88); --lb-bg-dps: #0b0b0c; --lb-box: #222;
        --lb-txt: #eee; --lb-txt2: #ddd; --lb-txt3: #aaa;
        --lb-ovl: rgba(255,255,255,.12); --lb-ovl2: rgba(255,255,255,.26); --lb-hair: rgba(255,255,255,.3);
        --lb-hair2: rgba(255,255,255,.15); --lb-panel: rgba(0,0,0,.4); --lb-odkaz: #9cc7ff; }
  .lb { position: fixed; inset: 0; z-index: 400; background: var(--lb-bg); display: flex; align-items: center; justify-content: center; }
  .lb[hidden] { display: none !important; }
  html:has(> body > .lb:not([hidden])) { overflow: hidden; }
  .lb figure { margin: 0; max-width: 92vw; max-height: 94vh; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; background: var(--lb-box); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
  .lb canvas.lb-cv { max-width: 92vw; max-height: 72vh; object-fit: contain; background: var(--lb-box); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
  .lb figcaption { color: var(--lb-txt); font-size: 12.5px; text-align: center; max-width: 92vw; overflow-wrap: anywhere; }
  .lb figcaption a, .lb figcaption button { color: var(--lb-odkaz); background: none; border: 0; padding: 0 3px; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
  .lb > button { position: absolute; background: var(--lb-ovl); color: var(--lb-txt); border: 1px solid var(--lb-hair); border-radius: 50%;
                 width: 46px; height: 46px; font-size: 28px; line-height: 1; padding: 0; }
  .lb > button:hover { background: var(--lb-ovl2); }
  .lb .lb-p { left: 16px; top: 50%; transform: translateY(-50%); }
  .lb .lb-n { right: 16px; top: 50%; transform: translateY(-50%); }
  .lb { --lb-cap: rgba(248,249,251,.95); --lb-x: #d93025; --lb-x2: #b3261e; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lb { --lb-cap: rgba(16,16,18,.93); --lb-x: #e5534b; --lb-x2: #f06a62; } }
  :root[data-theme="dark"] .lb { --lb-cap: rgba(16,16,18,.93); --lb-x: #e5534b; --lb-x2: #f06a62; }
  .prroh { display: flex; align-items: center; gap: 8px; }
  .prroh > [hidden] { display: none !important; }    
  .prroh > .prroh-b, .prroh > .help > .mark { box-sizing: border-box; width: 32px; height: 32px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font: 600 16px/1 system-ui, sans-serif; cursor: pointer;
    background: #fff; color: #1c1e21; border: 1px solid rgba(0,0,0,.28); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.3); }
  .prroh > .prroh-b:hover, .prroh > .help > .mark:hover { background: #eef3ff; }
  .prroh > .prroh-b:focus-visible, .prroh > .help:focus-visible > .mark { outline: 2px solid var(--series-1); outline-offset: 2px; }
  .prroh > .prroh-b[aria-pressed="true"] { background: var(--series-1); border-color: var(--series-1); color: #fff; }
  .prroh > .prroh-b svg { width: 17px; height: 17px; display: block; }
  .prroh > .prroh-x { background: var(--lb-x, #d93025); border-color: transparent; color: #fff; font-size: 20px; }
  .prroh > .prroh-x:hover, .prroh > .prroh-x:focus-visible { background: var(--lb-x2, #b3261e); }
  .prroh > .help > .bubble { left: auto; right: -8px; }
  .lb > .prroh { position: absolute; top: 12px; right: 14px; z-index: 7; }
  .lb.lb-cmpmode > .prroh { display: none; }    
  .lb > figure { display: contents; }    
  .lb .lbz { position: absolute; inset: 0; max-width: none; max-height: none; z-index: 1; }
  .lb > figure > figcaption { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3;
    background: var(--lb-cap); border: 1px solid var(--lb-hair2); border-radius: 10px; padding: 6px 12px;
    max-width: min(92vw, 1100px); overflow: visible; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
  .lb > figure > figcaption:empty { display: none; }
  .lb > button, .lb > .lbz-h { z-index: 5; }
  .lbm-vrstva { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; }
  .lb .lb-cmp .dpscbox > svg.lbm-vrstva, .lb .lbz > svg.lbm-vrstva { transform: none; will-change: auto; }
  .lbm-vrstva .lbm-h { stroke: rgba(0,0,0,.85); stroke-linecap: round; fill: none; }
  .lbm-vrstva .lbm-c { stroke: var(--c, #FFD400); stroke-linecap: round; fill: none; }
  .lbm-vrstva .lbm-c.zive { stroke-dasharray: 6 4; }
  .lbm-vrstva .lbm-c.vyb { filter: drop-shadow(0 0 2px rgba(255,255,255,.95)); }
  .lbm-vrstva .lbm-c.hrana { stroke-dasharray: 3 3; }
  .lbm-vrstva .lbm-sip { fill: var(--c, #FFD400); stroke: rgba(0,0,0,.85); }
  .lbm-vrstva .lbm-k { fill: var(--c, #FFD400); stroke: rgba(0,0,0,.85); stroke-width: 1; }
  .lbm-vrstva .lbm-g { pointer-events: visiblePainted; cursor: grab; touch-action: none; }
  .lbm-vrstva .lbm-g:active { cursor: grabbing; }
  .lbm-vrstva .lbm-tl { cursor: pointer; }
  .lbm-vrstva .lbm-bg { fill: rgba(20,22,26,.86); stroke: var(--c, #FFD400); stroke-width: 1.5; }
  .lbm-vrstva .lbm-g.vyb .lbm-bg { stroke-width: 3; }
  .lbm-vrstva .lbm-xh { stroke: rgba(0,0,0,.7); stroke-width: 3; }
  .lbm-vrstva .lbm-xc { stroke: rgba(255,255,255,.95); stroke-width: 1; }
  .lbm-vrstva .lbm-xk { fill: none; stroke: #fff; stroke-width: 1.5; paint-order: stroke; filter: drop-shadow(0 0 1px #000); }
  .lbm-vrstva .lbm-g.varuj .lbm-bg { stroke: #fff; stroke-width: 2; stroke-dasharray: 5 3; }
  .lbm-vrstva .lbm-g.ipc-ok .lbm-t { fill: #7CF29A; }
  .lbm-vrstva .lbm-g.ipc-ne .lbm-t { fill: #FF8A80; }
  .lbm-vrstva .lbm-t { fill: #fff; font: 600 13px system-ui, sans-serif; }
  .lbm-vrstva .lbm-dxy { fill: #e8e8e8; font: 13px system-ui, sans-serif; }
  .lbm-vrstva .lbm-tl { opacity: 0; }
  .lbm-vrstva .lbm-g:hover .lbm-tl, .lbm-vrstva .lbm-g.vyb .lbm-tl { opacity: 1; }
  .lbm-vrstva .lbm-tl rect { fill: rgba(20,22,26,.92); stroke: rgba(255,255,255,.55); }
  .lbm-vrstva .lbm-tl text { fill: #fff; font: 13px system-ui, sans-serif; text-anchor: middle; }
  .lbm-vrstva .lbm-s { fill: #fff; stroke: rgba(0,0,0,.9); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; font: 700 15px system-ui, sans-serif; text-anchor: middle; }
  .lbm-vrstva .lbm-xy { fill: #fff; stroke: rgba(0,0,0,.85); stroke-width: 2.5px; stroke-linejoin: round; paint-order: stroke; font: 600 12px system-ui, sans-serif; }
  .lb.lbm-on .lbz, .lb.lbm-on .lb-cmp .dpscbox { cursor: crosshair !important; }
  .lb .lbm-kriz, .lb .lbm-kriz * { cursor: none !important; }
  .lb .lbm-kriz .lbm-g, .lb .lbm-kriz .lbm-g * { cursor: pointer !important; }
  .lb [data-lbm][aria-pressed="true"] { background: var(--series-1); border-color: var(--series-1); color: #fff; }
  .lbm-seznam { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 4px; padding: 4px;
    background: var(--lb-cap); border: 1px solid var(--lb-hair2); border-radius: 10px; max-width: calc(100vw - 32px); flex-wrap: wrap; justify-content: center; }
  .lbm-seznam[hidden] { display: none; }
  .lb.lb-cmpmode .lbm-seznam { top: calc(var(--lbbar, 46px) + 6px); }
  .lbm-seznam button { min-width: 28px; height: 26px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--lb-hair); background: var(--lb-ovl);
    color: var(--lb-txt); font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
  .lbm-seznam button[aria-pressed="true"] { background: var(--series-1); border-color: var(--series-1); color: #fff; }
  .lbm-seznam button.ok { background: var(--good, #2e9d57); border-color: var(--good, #2e9d57); color: #fff; }
  .lbm-seznam .lbm-kos { font-size: 13px; }
  .lbm-seznam .lbm-odd { width: 1px; align-self: stretch; margin: 2px 3px; background: var(--lb-hair2); }
  .lbm-seznam .lbm-help { margin-left: 4px; }
  .lbm-seznam .lbm-help .bubble { top: calc(100% + 8px); }
  .lbm-nap { border-collapse: collapse; font-size: 12.5px; }
  .lbm-nap th { text-align: left; font-weight: 600; padding: 2px 10px 2px 0; white-space: nowrap; vertical-align: top; }
  .lbm-nap td { padding: 2px 0; }
  .lbm-nap tr + tr th, .lbm-nap tr + tr td { border-top: 1px solid var(--hair, rgba(0,0,0,.08)); }
  .lb .lbz { display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
  .lb .lbz:empty { display: none; }
  .lb .lbz > img, .lb .lbz > canvas,
  .lb .lb-cmp .dpscbox > img, .lb .lb-cmp .dpscbox > canvas, .lb .lb-cmp .dpscbox > svg {
    transform: translate(var(--lbz-x, 0px), var(--lbz-y, 0px)) scale(var(--lbz-s, 1));
    transform-origin: center center; will-change: transform; }
  .lb.lbz-klid .lbz > img, .lb.lbz-klid .lbz > canvas,
  .lb.lbz-klid .lb-cmp .dpscbox > img, .lb.lbz-klid .lb-cmp .dpscbox > canvas, .lb.lbz-klid .lb-cmp .dpscbox > svg {
    will-change: auto; }
  .lb .lbz > img[data-gl], .lb .lb-cmp .dpscbox > img[data-gl] { will-change: auto; }
  .lb .lb-cmp .dpscbox { touch-action: none; }
  .lb.lb-cmpmode .dpscbox { position: relative; }
  .lb .lbz > canvas.lbz-ostry, .lb .lb-cmp .dpscbox > canvas.lbz-ostry {
    position: absolute; left: 0; top: 0; max-width: none; max-height: none; object-fit: fill; background: none;
    box-shadow: none; transform-origin: 0 0; pointer-events: none; will-change: transform; z-index: 1; }
  .lb canvas.lbz-ostry[hidden] { display: none !important; }
  .vekstit { position: absolute; left: 8px; bottom: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
    max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 4px; pointer-events: none; font-size: 11.5px; line-height: 1.3;
    color: var(--lb-txt, #1f2328); background: var(--lb-cap, rgba(248,249,251,.95)); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
  .lbz > .vekstit { top: 12px; left: 12px; bottom: auto; }
  .vekstit::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; border: 2px solid currentColor;
    border-top-color: transparent; animation: vekstit-kolo .8s linear infinite; }
  .vekstit.chyba { color: var(--lb-x, #d93025); }
  .vekstit.chyba::before { display: none; }
  @keyframes vekstit-kolo { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .vekstit::before { animation: none; } }
  .lb .lb-cmp .dpscbox > canvas.stgl, .dpscbox > canvas.stgl, .lb .lbz > canvas.stgl { position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    max-width: none; max-height: none; transform: none; will-change: auto; padding: 0; background: none; box-shadow: none;
    pointer-events: none; z-index: 1; }
  .lb .lbz, .lb .lbz > img, .lb .lbz > canvas, .lb .lb-cmp .dpscbox, .lb .lb-cmp .dpscbox > * {
    -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
  .lb .lbz, .lb .lb-cmp .dpscbox { cursor: default; }
  .lb.lbz-on .lbz, .lb.lbz-on .lb-cmp .dpscbox { cursor: grab; }
  .lb.lbz-on .lbz:active, .lb.lbz-on .lb-cmp .dpscbox:active { cursor: grabbing; }
  .lb .lbz-h { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 6px;
               background: var(--lb-panel); border: 1px solid var(--lb-hair2); border-radius: 999px;
               padding: 3px 6px 3px 10px; color: var(--lb-txt2); font-size: 12px; }
  .lb .lbz-h[hidden] { display: none; }
  .lb .lbz-h .lbz-n { font-variant-numeric: tabular-nums; }
  .lb .lbz-h button { width: 24px; height: 24px; font-size: 14px; line-height: 1; padding: 0; border-radius: 50%;
                      background: var(--lb-ovl); color: var(--lb-txt); border: 1px solid var(--lb-hair); cursor: pointer; }
  .lb .lbz-h button:hover { background: var(--lb-ovl2); }
  .lb.lb-dps { background: var(--lb-bg-dps); }
  .lb.lb-dps img { background: var(--dps-bg); padding: 12px; border-radius: 8px; }
.lb.lb-portal { z-index: 1000; font-family: inherit; text-align: left;
  --text-1: #1f2328; --text-2: #52514e; --text-3: #6b7280; --series-1: #2a78d6; --good: #1a7f37;
  --hair: #e4e8ec; --surface: #ffffff; --surface-1: #ffffff; --surface-2: #fafbfc; --dps-bg: #d2d7dd; }
@media (prefers-color-scheme: dark) {
  .lb.lb-portal { --text-1: #ffffff; --text-2: #c3c2b7; --text-3: #8e8d84; --series-1: #3987e5; --good: #3fb950;
    --hair: #2b2b28; --surface: #1a1a19; --surface-1: #1a1a19; --surface-2: #232322; --dps-bg: #0d0d0e; }
}
.lb.lb-portal > button[hidden] { display: none; }
.lb.lb-portal > figure > figcaption { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.lb.lb-portal .lbm-seznam button { font-family: inherit; }
@media (max-width: 640px) {
  .lb.lb-portal .lb-p, .lb.lb-portal .lb-n { top: auto; bottom: 70px; transform: none; }
  .lb.lb-portal > .lbm-btn { top: 14px; right: 72px; }
  .lb.lb-portal .lbm-seznam { top: 70px; }
}
