/* PANEL STYLŮ, PŘEHLED A POROVNÁNÍ, OPONA. Stejné ve všech stylech, barvy z tokenů aktivního stylu. */
/* Tlačítko Vzhled: jediné pro všechny styly. Počítač: dlaždice u levého okraje dole, obsah jí nechává místo (viz .wrap níže). Mobil: třetí tlačítko lišty. */
html .mobil-lista .vs-spoustec { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; font: 600 13px/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; }
html .mobil-lista .vs-spoustec:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.vs-panel { width: min(380px, 100vw); max-height: calc(100dvh - 2rem); padding: 1rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); overflow: auto; overscroll-behavior: contain; font: 400 16px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.vs-panel::backdrop { background: hsl(0 0% 0% / 0.45); }
html .vs-panel h2 { margin: 0; font: 700 18px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: 0; text-transform: none; }
html .vs-panel .vs-zpet { display: grid; place-items: center; min-height: 48px; margin-bottom: 0.75rem; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.vs-seznam { display: grid; gap: 4px; }
html .vs-seznam .vs-karta { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; width: auto; padding: 6px; border-radius: 8px; text-decoration: none; }
html .vs-seznam .vs-karta:focus-visible { outline-offset: -2px; }
.vs-seznam img { display: block; width: 112px; height: 70px; object-fit: cover; object-position: top; border: 1px solid var(--line-strong); border-radius: 4px; }
html .vs-seznam .vs-karta strong { font: 700 16px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; display: block; }
html .vs-seznam .vs-karta em { display: block; font-size: 14px; }
.vs-seznam .vs-karta:hover { background: var(--surface); }
.vs-seznam .is-aktivni { box-shadow: inset 0 0 0 2px var(--ink); }
@media (min-width: 761px) {
    .mobil-lista .jen-mobil { display: none; }
    .mobil-lista .vs-spoustec { position: fixed; left: 8px; bottom: 16px; z-index: 65; width: 64px; height: 64px; border: 1px solid var(--bg); border-radius: 12px; background: var(--ink); color: var(--bg); transition: translate 0.2s; }
    .mobil-lista .vs-spoustec:hover { translate: 0 -2px; }
    html:root .wrap { max-width: calc(100% - 10rem); }
    .vs-panel { position: fixed; inset: auto auto 16px 8px; margin: 0; }
}
@media print { .mobil-lista, .vs-panel, .opona, .scroll-progress { display: none !important; } }
.vs-hlava { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.vs-hlava button { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: none; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.vs-pas { display: grid; grid-template-columns: repeat(auto-fill, 272px); gap: 1.5rem; justify-content: start; }
.vs-karta { display: flex; flex-direction: column; gap: 0.25rem; width: 272px; color: var(--ink); }
.vs-karta:focus-visible { outline: 3px solid var(--primary); outline-offset: 6px; }
.vs-mini { display: block; width: 272px; height: 170px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); margin-bottom: 0.5rem; }
.vs-karta.is-aktivni .vs-mini { outline: 3px solid var(--ink); outline-offset: 2px; }
.vs-mini iframe { width: 1360px; height: 850px; border: 0; transform: scale(0.2); transform-origin: 0 0; pointer-events: none; }
.vs-karta strong { font-size: 1.125rem; }
.vs-karta em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.vs-karta small { font-size: 0.875rem; color: var(--ink-soft); }
.vs-porovnat { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.vs-porovnat label { display: grid; gap: 0.25rem; }
.vs-porovnat select { min-height: 48px; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-solid); color: var(--ink); font: inherit; }
.vs-dvojice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vs-dvojice figure { margin: 0; min-width: 0; }
.vs-okno { height: min(80vh, 760px); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.vs-okno iframe { display: block; width: 100%; height: 100%; border: 0; transform-origin: 0 0; }
.vs-dvojice figcaption { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; justify-content: space-between; padding-top: 0.5rem; }
.vs-dvojice figcaption a { text-decoration: underline; text-underline-offset: 4px; }
.du-dal-akce { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.je-nahled a, .je-nahled button, .je-nahled input { pointer-events: none; }

/* Opona. Bez JavaScriptu se nikdy neukáže. Pojistka ji po 1,5 s odklidí, i kdyby skript spadl. */
.opona { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 0.75rem; background: var(--ink); color: var(--bg); clip-path: inset(100% 0 0 0); visibility: hidden; pointer-events: none; }
.opona-logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.75rem; }
.opona-logo svg { width: 44px; height: 44px; }
.opona .brand-wordmark { font-size: inherit; }
.opona p { opacity: 0.8; }
.je-opona .opona { clip-path: none; visibility: visible; animation: opona-pryc 0s 1.5s forwards; }
.je-opona-zakryva .opona { clip-path: inset(0); visibility: visible; transition: clip-path 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.je-opona-pryc .opona { clip-path: inset(0 0 100% 0); transition: clip-path 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes opona-pryc { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .opona { display: none; } }

@media (max-width: 760px) {
    .vs-panel { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 12px 12px 0 0; }
    .vs-pas { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -1rem; padding: 6px 1rem 1rem; scroll-padding-inline: 1rem; }
    .vs-karta { flex: none; scroll-snap-align: start; }
    .vs-dvojice { gap: 0.5rem; }
}

html:root .mobil-lista a { border-radius: 12px; }
html .vs-panel .vs-pozn { margin: 0 0 0.75rem; font: 400 14px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink-soft); }
