:root {
  --primary: #f2f6f3;
  --accent: #c9a227;
  --ink: #1e293b;
  --mute: rgba(30, 41, 59, 0.62);
  --line: rgba(201, 162, 39, 0.28);
  --panel: #ffffff;
  --panel-shadow: 0 8px 24px rgba(30, 41, 59, 0.06), 0 1px 0 rgba(201, 162, 39, 0.12);
  --space: clamp(1rem, 2.5vw, 2rem);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --logo-glow: 0 0 0 1px rgba(201, 162, 39, 0.45),
               0 0 12px rgba(201, 162, 39, 0.18),
               0 6px 16px rgba(30, 41, 59, 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 12% -6%, rgba(201, 162, 39, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 100%, rgba(120, 160, 140, 0.1), transparent 55%),
    linear-gradient(168deg, #f2f6f3 0%, #f5f8f6 45%, #f8faf8 100%);
  background-attachment: fixed;
}
body.page-shell {
  display: flex;
  flex-direction: column;
}
body[data-theme="light-sage"],
body[data-theme="warm-graphite"],
body[data-theme="gold-monogram"],
body[data-theme="sapphire-gold"] {
  --primary: #f2f6f3;
  --ink: #1e293b;
  --mute: rgba(30, 41, 59, 0.62);
  --line: rgba(201, 162, 39, 0.28);
  --panel: #ffffff;
  --panel-shadow: 0 8px 24px rgba(30, 41, 59, 0.06), 0 1px 0 rgba(201, 162, 39, 0.12);
  --logo-glow: 0 0 0 1px rgba(201, 162, 39, 0.45),
               0 0 12px rgba(201, 162, 39, 0.18),
               0 6px 16px rgba(30, 41, 59, 0.1);
  background:
    radial-gradient(ellipse 70% 45% at 12% -6%, rgba(201, 162, 39, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 100%, rgba(120, 160, 140, 0.1), transparent 55%),
    linear-gradient(168deg, #f2f6f3 0%, #f5f8f6 45%, #f8faf8 100%);
}
a { color: var(--accent); text-underline-offset: 0.18em; }
.wrap { width: min(1100px, 100%); margin: 0 auto; padding: 0 var(--space); }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.65rem var(--space); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20;
  background: rgba(248, 250, 248, 0.88);
}
body[data-theme="light-sage"] .site-header,
body[data-theme="warm-graphite"] .site-header,
body[data-theme="gold-monogram"] .site-header,
body[data-theme="sapphire-gold"] .site-header {
  background: rgba(248, 250, 248, 0.88);
}

.brand {
  display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: inherit;
}
.brand-mark-wrap {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  box-shadow: var(--logo-glow);
  background: #fff;
}
.brand-mark {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.brand-name { font-weight: 700; letter-spacing: -0.01em; font-size: 0.92rem; }
.brand > span:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
.brand-meta {
  display: inline;
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
}
.brand-meta::before {
  content: "| ";
  color: rgba(201, 162, 39, 0.75);
  font-weight: 700;
}

.entity-switch-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.05);
}
.entity-switch-wrap--pills {
  flex-direction: row;
}
.entity-switch {
  display: inline-flex; align-items: center;
  padding: 0.42rem 0.9rem; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  color: var(--mute); text-decoration: none; font-size: 0.78rem; font-weight: 650;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.entity-switch--pill {
  background: rgba(30, 41, 59, 0.03);
  border-color: rgba(30, 41, 59, 0.06);
}
.entity-switch:hover {
  transform: translateY(-1px);
  color: var(--ink);
  border-color: rgba(201, 162, 39, 0.45);
  background: #fff;
  box-shadow: 0 6px 16px rgba(30, 41, 59, 0.08);
}
.entity-switch.is-current,
.entity-switch--pill.is-current {
  color: #1a1408;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.28);
}
.entity-switch--lab {
  font-size: 0.74rem;
  padding: 0.36rem 0.8rem;
  font-weight: 600;
  opacity: 0.95;
}

.hero {
  min-height: 0;
  display: grid;
  place-items: start center;
  text-align: center;
  padding: clamp(0.7rem, 1.8vw, 1.15rem) var(--space) clamp(0.85rem, 2vw, 1.25rem);
}
.hero-inner {
  width: min(720px, 100%);
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

/* Striktní kruhový ořez – bez bílých rohů */
.emblem-slot {
  width: 132px;
  height: 132px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: var(--logo-glow);
  animation: float-in 0.7s cubic-bezier(.22,1,.36,1) both;
}
.emblem-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.status {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  animation: rise .7s .08s both;
}
h1, h2 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.45rem);
  animation: rise .7s .14s both;
}
.tagline {
  max-width: 34rem; color: var(--mute); font-size: 0.95rem; line-height: 1.5; font-weight: 500;
  animation: rise .7s .2s both;
}
.focus-list { list-style: none; display: grid; gap: 0.45rem; max-width: 40rem; width: 100%; }
.focus-list li {
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
}
.focus-list--hero { gap: 0.35rem; margin-top: 0.15rem; animation: rise .7s .26s both; }
.focus-list--hero li { padding: 0.45rem 0.75rem; font-size: 0.88rem; border-left-width: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; margin-top: 0.2rem; animation: rise .7s .32s both; }
.btn {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink);
  padding: 0.55rem 0.95rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.84rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent)); color: #1a1408; border-color: transparent; }

.section {
  padding: 1.75rem var(--space) 2rem; border-top: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-bottom: 0.85rem;
}

/* Tabs Občan / OSVČ */
.profile-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--panel-shadow);
  margin-bottom: 1.15rem;
}
.tab-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  color: #1a1408;
}
.tab-panels { position: relative; }
.tab-panel {
  display: none;
  animation: panel-in .28s ease both;
}
.tab-panel.is-active { display: block; }
.tab-panel[hidden] { display: none !important; }
.panel-kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.35rem;
}
.panel-lead {
  color: var(--mute); font-size: 0.98rem; line-height: 1.6; max-width: 42rem;
  margin: 0.35rem 0 1rem; font-weight: 500;
}
.partner-card {
  display: block;
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--panel-shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.partner-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.1);
}
.partner-card__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.partner-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.meta-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}
.meta-card {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--panel-shadow);
}
.meta-card--wide { margin-top: 0.85rem; }
.meta-grid--id { margin-top: 1rem; }
.meta-card h3 { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; font-weight: 700; }
.meta-card p, .meta-card a { color: var(--ink); text-decoration: none; line-height: 1.5; font-size: 0.92rem; font-weight: 500; }
.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  background: rgba(201, 162, 39, 0.2);
  color: var(--accent);
  border: 1px solid var(--line);
}
.badge--ok { background: rgba(60, 160, 100, 0.14); color: #1f7a45; border-color: rgba(60, 160, 100, 0.35); }
.badge--muted { background: rgba(30, 41, 59, 0.05); color: var(--mute); }
.badge--danger {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.35);
}

.site-footer {
  padding: 1.25rem var(--space) 1.75rem 5.5rem;
  border-top: 1px solid var(--line); color: var(--mute); font-size: 0.85rem;
  margin-top: auto;
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.15rem; margin: 0 0 0.85rem;
}
.footer-nav a {
  color: var(--mute);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(30, 41, 59, 0.55);
}
.legal-page { padding: 1.5rem var(--space) 2.5rem; }
.legal-page .panel {
  width: min(900px, 100%); margin: 0 0 0 0; background: #ffffff;
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.1rem, 2.5vw, 1.75rem);
  box-shadow: var(--panel-shadow);
}
.legal-page h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0.35rem 0 0.9rem; }
.legal-body { line-height: 1.65; color: var(--mute); font-size: 0.95rem; }
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.85rem 0 1.1rem;
  position: relative;
  z-index: 2;
}
/* Rytmus dle skici: identity → záložky → akce (úvod listu) → tělo */
.legal-identity + [data-bind="vopTabs"],
.legal-identity + .vop-tabs {
  margin-top: 1.1rem;
}
.vop-tabs + .legal-actions {
  margin-top: 0.35rem;
  padding-top: 0.15rem;
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Profil + virtuální sklo portrétu */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 1.5rem;
  align-items: start;
}
.portrait-frame {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(10, 22, 36, 0.55);
  border: 1px solid rgba(201, 162, 39, 0.45);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.12),
    0 14px 36px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.18);
  user-select: none;
  -webkit-user-select: none;
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.portrait-glass {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 40%, transparent 60%, rgba(201, 162, 39, 0.06) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.22);
  backdrop-filter: saturate(1.04) brightness(1.02);
}
.profile-copy { min-width: 0; }

.citizen-vision-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c49a45;
  line-height: 1.15;
}
.citizen-vision-body {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.35rem;
}
.citizen-vision-body p {
  margin: 0;
  color: #1e293b;
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 500;
}
.citizen-pillars {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
.citizen-pillar {
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1.5px solid #c49a45;
  background:
    linear-gradient(165deg, rgba(255, 252, 245, 0.98), #ffffff 55%),
    #ffffff;
  box-shadow: 0 8px 22px rgba(30, 41, 59, 0.06), 0 0 0 1px rgba(196, 154, 69, 0.12);
}
.citizen-pillar h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: #1e293b;
  line-height: 1.3;
}
.citizen-pillar p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(30, 41, 59, 0.82);
}
@media (min-width: 720px) {
  .citizen-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.manifesto {
  margin: 1.15rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: #ffffff;
  border-radius: 0 14px 14px 0;
  box-shadow: var(--panel-shadow);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 500;
  font-style: normal;
}

.competency-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.35rem;
}
.competency {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.competency.is-open,
.competency[open] {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.1);
}
.competency__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}
.competency__summary::-webkit-details-marker { display: none; }
.competency__summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.competency[open] .competency__summary::after { content: "–"; }
.competency__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(220, 175, 100, 0.14);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  flex-shrink: 0;
}
.competency__main { display: grid; gap: 0.2rem; min-width: 0; }
.competency__title { line-height: 1.35; }
.competency__since {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.competency__body {
  padding: 0 1rem 1rem 1rem;
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
  display: grid;
  gap: 0.65rem;
}
.competency__body p { margin: 0; }
.competency__disclaimer {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  background: rgba(201, 162, 39, 0.1);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}
.competency--legal {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow:
    var(--panel-shadow),
    inset 0 0 0 1px rgba(201, 162, 39, 0.28);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.06), transparent 42%),
    #ffffff;
}
.competency--legal.is-open,
.competency--legal[open] {
  border-color: rgba(201, 162, 39, 0.7);
}
.legal-mantinel {
  margin: 0.35rem 0 1.25rem;
  max-width: 46rem;
  padding: 0.55rem 0.85rem 0.55rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 600;
  color: #8a6a28;
  letter-spacing: 0.01em;
  border-left: 3px solid #c49a45;
  border-radius: 0 10px 10px 0;
  background: rgba(196, 154, 69, 0.12);
  box-shadow: inset 0 0 0 1px rgba(196, 154, 69, 0.22);
}

/* Katalog chráněných dokumentů */
.doc-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--panel-shadow);
  text-align: left;
}
.doc-card h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.doc-card p { color: var(--mute); font-size: 0.88rem; line-height: 1.45; flex: 1; }
.doc-card .btn { align-self: flex-start; margin-top: 0.25rem; }

/* Přístupová brána */
.gate-modal[hidden], .viewer-modal[hidden] { display: none !important; }
.gate-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 1rem;
}
.gate-modal__backdrop {
  position: absolute; inset: 0; background: rgba(8, 18, 32, 0.62); backdrop-filter: blur(6px);
}
.gate-modal__dialog {
  position: relative; z-index: 1;
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 24px 48px rgba(30, 41, 59, 0.16);
}
body[data-theme="light-sage"] .gate-modal__dialog,
body[data-theme="warm-graphite"] .gate-modal__dialog,
body[data-theme="gold-monogram"] .gate-modal__dialog,
body[data-theme="sapphire-gold"] .gate-modal__dialog {
  background: #ffffff;
}
.gate-modal__x {
  position: absolute; top: 0.55rem; right: 0.7rem;
  border: 0; background: transparent; color: var(--mute);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.gate-modal__dialog h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.gate-modal__doc { color: var(--accent); font-size: 0.86rem; font-weight: 600; margin-bottom: 1rem; }
.gate-form { display: grid; gap: 0.75rem; }
.gate-form label { display: grid; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--mute); }
.gate-form input[type="text"],
.gate-form input[type="email"] {
  appearance: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.65rem 0.75rem; background: #f8faf8; color: var(--ink); font: inherit;
}
.gate-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem; }
.gate-form legend { padding: 0 0.35rem; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.gate-radio { display: flex !important; align-items: flex-start; gap: 0.5rem; color: var(--ink) !important; font-weight: 500 !important; margin: 0.35rem 0; }
.gate-radio input { margin-top: 0.2rem; }
.gate-notice {
  font-size: 0.8rem; line-height: 1.45; color: #f0d78a;
  background: rgba(201, 162, 39, 0.12); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.7rem 0.8rem;
}
.gate-form .btn { justify-self: start; margin-top: 0.25rem; }

/* Gated PDF viewer */
.viewer-modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-rows: auto 1fr;
  background: #0e1a28;
}
.viewer-modal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--line);
  background: rgba(10, 24, 40, 0.92);
}
.viewer-stage { position: relative; min-height: 0; overflow: hidden; }
.viewer-stage iframe {
  width: 100%; height: 100%; border: 0; background: #fff;
  pointer-events: none;
}
.viewer-watermark {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: grid; place-items: center;
  overflow: hidden;
}
.viewer-watermark span {
  display: block;
  transform: rotate(-28deg);
  white-space: nowrap;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(20, 40, 70, 0.28);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.35);
  user-select: none;
}
.viewer-shield {
  position: absolute; inset: 0; z-index: 4;
  background: transparent;
  cursor: default;
}

/* Decentní textové tlačítko ceníku (OSVČ) */
.text-link-btn {
  appearance: none;
  display: inline-block;
  margin: 1.1rem 0 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.text-link-btn:hover { color: var(--ink); }

.cenik-hub-list { display: grid; gap: 0.75rem; margin-top: 0.85rem; justify-items: start; }
.cenik-hub-item {
  appearance: none; width: 100%; text-align: left;
  padding: 0.85rem 0.95rem; border-radius: 12px;
  border: 1px solid var(--line); background: #ffffff;
  color: var(--ink); cursor: pointer; font: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.cenik-hub-item:hover { border-color: var(--accent); background: rgba(201,162,39,0.1); }
.cenik-hub-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cenik-hub-item span { display: block; color: var(--mute); font-size: 0.8rem; line-height: 1.4; }
.consent-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.35rem 0 0.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  cursor: pointer;
}
.consent-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.consent-check.has-error { color: #b91c1c; }
#cenikHubModal .gate-modal__doc {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.55;
  font-size: 0.94rem;
}

.gate-modal__dialog--wide { width: min(560px, 100%); }

/* Kontaktní formulář + dropzone */
.contact-form { display: grid; gap: 0.85rem; margin-top: 0.75rem; }
.contact-form label { display: grid; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--mute); }
.contact-form .req-mark { color: #f0a0a0; font-weight: 800; margin-left: 0.15rem; }
.contact-form .label-hint {
  display: inline;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  appearance: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.65rem 0.75rem; background: #f8faf8; color: var(--ink); font: inherit;
}
.contact-form select.contact-select,
.contact-form select {
  background-color: #ffffff;
  color: #1e293b;
  color-scheme: light;
}
.contact-form select.contact-select option,
.contact-form select option {
  background-color: #ffffff;
  color: #1e293b;
}
.contact-form select.contact-select option:checked,
.contact-form select.contact-select option:hover,
.contact-form select option:checked,
.contact-form select option:hover {
  background-color: #f2f6f3;
  color: #1e293b;
}
.contact-form select.contact-select option:disabled,
.contact-form select option:disabled {
  background-color: #f8faf8;
  color: rgba(30, 41, 59, 0.45);
}
.contact-form input.is-invalid,
.contact-form select.is-invalid,
.contact-form textarea.is-invalid {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}
.contact-form label.has-error { color: #f0c0c0; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.dropzone {
  border: 1.5px dashed var(--line); border-radius: 14px;
  padding: 1.1rem 1rem; text-align: center; cursor: pointer;
  background: #f8faf8;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone.is-drag { border-color: var(--accent); background: rgba(201,162,39,0.1); }
.dropzone__title { color: var(--ink); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; }
.dropzone__hint { color: var(--mute); font-size: 0.78rem; line-height: 1.45; }
.dropzone__note {
  margin: -0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--mute);
  font-weight: 500;
}
.dropzone__note a { color: var(--accent); font-weight: 700; }
.dropzone__file { margin-top: 0.65rem; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.dropzone__file.is-error { color: #f0a0a0; }
.camera-capture {
  display: grid;
  gap: 0.65rem;
}
.camera-capture__btn {
  justify-self: start;
  border-color: rgba(201, 162, 39, 0.45);
  background: linear-gradient(180deg, #fbf8ef, #f3ecd8);
  color: #3d3420;
  font-weight: 700;
}
.camera-capture__btn:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fffdf6, #efe4c4);
}
.camera-capture__preview {
  position: relative;
  width: min(180px, 55%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 6px 16px rgba(30, 41, 59, 0.08);
  background: #fff;
}
.camera-capture__preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.camera-capture__clear {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.78);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.camera-capture__clear:hover { background: rgba(30, 41, 59, 0.95); }
.contact-form__status { font-size: 0.86rem; font-weight: 600; }
.contact-form__status.is-ok { color: #8fd6a8; }
.contact-form__status.is-error { color: #f0a0a0; }
.contact-back { margin-top: 1.25rem; }
.panel--contact { width: min(640px, 100%); }
.panel--zakon { width: min(760px, 100%); }
.hidden { display: none !important; }
.zakon-hub {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}
.zakon-card {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: linear-gradient(180deg, #fffdf8, #f7f4ec);
  scroll-margin-top: 5.5rem;
}
.zakon-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #2c2618;
}
.zakon-card__summary {
  margin: 0 0 0.85rem;
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}
.zakon-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-settings__status {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}
.cookie-settings__date {
  margin: 0 0 1rem;
  color: var(--mute);
  font-size: 0.88rem;
}
.cookie-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Sticky floating emblem – pod modály (gate/viewer ~80–90), nad patičkou */
.float-emblem {
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}
.float-emblem > * { pointer-events: auto; }
.float-emblem__btn {
  appearance: none; border: 0; padding: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; background: #fff;
  box-shadow: 0 8px 22px rgba(30,41,59,0.12), 0 0 0 1px rgba(201,162,39,0.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.float-emblem__btn:hover,
.float-emblem.is-open .float-emblem__btn {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4), 0 0 0 1px var(--accent);
}
.float-emblem__logo {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%;
}
.float-emblem__panel {
  min-width: 220px; max-width: 280px;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(30, 41, 59, 0.12);
  animation: float-panel .22s ease both;
}
body[data-theme="light-sage"] .float-emblem__panel,
body[data-theme="gold-monogram"] .float-emblem__panel {
  background: rgba(255, 255, 255, 0.96);
}
.float-emblem__status {
  font-size: 0.72rem; color: var(--mute); font-weight: 600;
  margin-bottom: 0.55rem; line-height: 1.35;
}
.float-emblem__links { display: grid; gap: 0.4rem; }
.float-emblem__link {
  display: block; font-size: 0.84rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
  line-height: 1.35;
}
.float-emblem__link:hover { text-decoration: underline; }
.float-emblem__link--lab { font-size: 0.8rem; font-weight: 600; opacity: 0.95; }
@keyframes float-panel {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

/* Cookie / GDPR lišta – teplý zlatavý / šedý systém */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 0.75rem var(--space) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, rgba(252, 250, 245, 0.97), rgba(243, 239, 230, 0.98));
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 -8px 28px rgba(30, 41, 59, 0.1);
}
.cookie-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}
.cookie-bar__text {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(30, 41, 59, 0.72);
  font-weight: 500;
}
.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.cookie-bar__btn {
  font-size: 0.8rem;
  padding: 0.55rem 0.9rem;
}
.cookie-bar__link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #8a7020;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}
.cookie-bar__link:hover { color: var(--accent); }
body.has-cookie-bar .float-emblem { bottom: 118px; }
body.has-cookie-bar .site-footer { padding-bottom: 7.5rem; }

@media (max-width: 720px) {
  .profile-layout { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 220px; margin-inline: auto; }
  .float-emblem { bottom: 18px; left: 16px; }
  body.has-cookie-bar .float-emblem { bottom: 150px; }
  .float-emblem__panel { max-width: min(240px, calc(100vw - 88px)); }
  .site-footer { padding-left: var(--space); padding-bottom: 5.5rem; }
  body.has-cookie-bar .site-footer { padding-bottom: 10rem; }
  .cookie-bar__inner { flex-direction: column; align-items: stretch; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__btn { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; }
  .entity-switch-wrap {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .entity-switch { justify-content: center; }
  .emblem-slot { width: 120px; height: 120px; }
  .profile-tabs { width: 100%; display: flex; }
  .tab-btn { flex: 1; text-align: center; padding-inline: 0.5rem; font-size: 0.8rem; }
}

.panel--legal-wide { width: min(900px, 100%); margin-left: 0; margin-right: auto; text-align: left; }
.legal-body__text { white-space: pre-wrap; line-height: 1.7; color: var(--mute); font-size: 0.95rem; }
.legal-figure {
  margin: 1.25rem 0 1.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.legal-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  background: #2a2a2a;
}
.legal-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--mute);
}

.legal-body { line-height: 1.65; }
.legal-body__text { color: var(--mute); font-size: 0.95rem; line-height: 1.65; }
.legal-body__text p { margin: 0 0 1rem; line-height: 1.65; white-space: normal; }
.legal-identity {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.55);
}
.legal-identity__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}
.legal-identity h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.3;
}
.legal-identity__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin: 0;
}
.legal-identity__grid dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mute);
}
.legal-identity__grid dd {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.legal-identity__span { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .legal-identity__grid { grid-template-columns: 1fr; }
}

.panel--legal-eng {
  width: min(900px, 100%);
  max-width: 900px;
  margin: 0;
  margin-right: auto;
  text-align: left;
}
.legal-page .panel--legal-eng { max-width: 900px; }

/* 65_VOP_TABS_GRID_SIDE_BY_SIDE_AND_CONTRAST — pevný 2sloupcový šanon */
.vop-tabs {
  margin: 0.25rem 0 0;
  width: 100%;
}
.vop-tabs__nav {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px;
  margin-bottom: -2px;
  position: relative;
  z-index: 5;
  width: 100%;
  align-items: end;
}
.vop-tabs__nav--single {
  grid-template-columns: 1fr !important;
}
.vop-tabs__btn {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 16px 20px !important;
  min-height: 68px;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.35 !important;
  font: inherit;
  font-size: 1.05rem !important;
  font-weight: 500;
  border-radius: 12px 12px 0 0 !important;
  border: 2px solid #cbd5e1 !important;
  border-bottom: 2px solid #94a3b8 !important;
  background: #e2e8f0 !important;
  color: #64748b !important;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transform: translateY(4px);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.vop-tabs__btn:hover:not(.is-active),
.vop-tabs__btn:focus-visible:not(.is-active) {
  background: #f1f5f9 !important;
  color: #475569 !important;
  outline: none;
}
.vop-tabs__btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.vop-tabs__btn.is-active {
  z-index: 6;
  background: #ffffff !important; /* = podklad .panel--legal-eng */
  color: #0f172a !important;
  font-weight: 700 !important;
  border: 2px solid #cbd5e1 !important;
  border-bottom: 2px solid transparent !important;
  transform: translateY(0);
  box-shadow:
    inset 0 3px 0 0 var(--accent, #c9a227),
    0 1px 0 #ffffff;
}
.vop-tabs__panels {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 0.35rem 0 0.25rem;
  border-top: 2px solid #cbd5e1;
  background: transparent;
}
.vop-tabs__panel { text-align: left; }
.vop-tabs--single .vop-tabs__btn.is-active {
  cursor: default;
}

/* Inner document sections (VOP / GDPR / Cookies / Formuláře) */
.vop-doc-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.35rem 0 1rem;
  padding: 0.45rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.vop-doc-nav__btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.55rem 0.45rem;
  border-radius: 0.4rem;
  cursor: pointer;
  text-align: center;
}
.vop-doc-nav__btn:hover,
.vop-doc-nav__btn:focus-visible {
  background: #fff;
  border-color: #cbd5e1;
}
.vop-doc-nav__btn.is-active {
  background: #fff;
  border-color: var(--accent, #c9a227);
  color: #0f172a;
  box-shadow: inset 0 -2px 0 var(--accent, #c9a227);
}
.vop-doc-section[hidden] { display: none !important; }
.vop-doc-section__empty {
  color: #64748b;
  font-style: italic;
}
.vop-doc-shell {
  position: relative;
}
.vop-shared {
  margin-top: 0.25rem;
}
.vop-tabs--shared-mode .vop-tabs__btn {
  opacity: 0.55;
}
.vop-tabs--shared-mode .vop-tabs__btn.is-active {
  opacity: 0.72;
}
body.vop-shared-mode .vop-tabs__nav {
  pointer-events: auto;
}
.vop-branch-panel .vop-section-next {
  margin-top: 32px;
}

.vop-section-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-top: 32px;
  margin-bottom: 24px;
  padding: 1.15rem 1.25rem;
  border: 1px solid #d6dee8;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #fbfcfd 0%, #f3f6f9 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.vop-section-next__lead {
  margin: 0;
  flex: 1 1 16rem;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 600;
}
.vop-section-next__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  border-radius: 0.45rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}
.vop-section-next__btn:hover,
.vop-section-next__btn:focus-visible {
  filter: brightness(1.06);
}
.vop-section-next__arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}
.vop-section-next__btn:hover .vop-section-next__arrow,
.vop-section-next__btn:focus-visible .vop-section-next__arrow {
  transform: translateX(4px);
}
@media (max-width: 640px) {
  .vop-section-next {
    padding: 1rem;
  }
  .vop-section-next__btn {
    width: 100%;
    justify-content: center;
  }
}

.vop-forms-gallery {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 0 0;
  border-top: 1px dashed #cbd5e1;
}
.vop-forms-gallery__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.vop-forms-gallery__lead {
  margin: 0 0 0.85rem;
  color: #64748b;
  font-size: 0.9rem;
}
.vop-forms-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.vop-forms-gallery__card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed #93c5fd;
  border-radius: 0.45rem;
  background: rgba(37, 99, 235, 0.04);
  text-decoration: none !important;
  color: inherit;
}
.vop-forms-gallery__card strong { font-size: 0.92rem; }
.vop-forms-gallery__card span { font-size: 0.78rem; color: #64748b; }
.vop-forms-gallery__card:hover {
  border-style: solid;
  background: rgba(37, 99, 235, 0.08);
}
@media (max-width: 720px) {
  .vop-doc-nav { grid-template-columns: 1fr 1fr; }
  .vop-forms-gallery__grid { grid-template-columns: 1fr; }
}
@media print {
  .vop-doc-nav,
  .vop-section-next { display: none !important; }
  .vop-doc-section[hidden] { display: block !important; }
  .vop-forms-gallery { break-inside: avoid; }
}
@media (max-width: 640px) {
  .vop-tabs__nav:not(.vop-tabs__nav--single) {
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin-bottom: 0;
  }
  .vop-tabs__btn {
    min-height: 56px;
    font-size: 0.95rem !important;
    padding: 12px 16px !important;
    transform: none;
  }
  .vop-tabs__btn.is-active {
    transform: none;
  }
}
.vop-clause {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--accent);
  background: rgba(201, 162, 39, 0.08);
}
.vop-archive {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  text-align: left;
}
.vop-archive h2 { margin: 0 0 0.85rem; font-size: 1.15rem; }
.vop-archive__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.vop-archive__list li {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.5);
}
.vop-archive__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.45rem;
}
.vop-archive__meta span { color: var(--mute); font-size: 0.88rem; }
.vop-archive__reason { margin: 0 0 0.65rem; color: var(--mute); font-size: 0.9rem; line-height: 1.55; }

.legal-h {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}
.legal-body__text p,
.vop-tabs__panel p {
  margin: 0 0 1rem;
  line-height: 1.65;
  text-align: left;
  white-space: normal;
}
/* 52_VOP_TYPO_SCHEMA_PRINT */
.vop-schema-box {
  margin: 1.25rem auto;
  padding: 0.75rem;
  max-width: 42rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.vop-schema-box img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  margin: 0 auto;
  background: #2a2a2a;
  border-radius: 0.35rem;
}
.vop-schema-box__caption {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--mute);
  text-align: left;
}
.font-bold { font-weight: 700; }
.text-lg { font-size: 1.125rem; line-height: 1.35; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.text-neutral-800 { color: #262626; }
.leading-relaxed { line-height: 1.625; }
.text-justify { text-align: justify; hyphens: auto; }
.rounded { border-radius: 0.35rem; }
.border { border-style: solid; border-width: 1px; }
.border-neutral-300 { border-color: #d4d4d4; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
  }
  .site-header,
  .site-footer,
  .float-emblem,
  .legal-actions,
  .cookie-bar,
  .vop-tabs__nav,
  [data-bind=vopArchive],
  [data-bind=vopArchive] .btn {
    display: none !important;
  }
  .panel--legal-eng,
  .legal-page .panel {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Tisk jen aktivní záložky — žádné zdvojení celého VOP */
  .vop-tabs__panel[hidden] {
    display: none !important;
  }
  .legal-identity {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 0.6rem !important;
    padding: 0.45rem 0.55rem !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
  }
  .legal-identity h2 { font-size: 11pt !important; margin: 0 0 0.35rem !important; }
  .legal-identity__grid dd { font-size: 9pt !important; }
  .legal-h,
  h3.font-bold,
  h3.legal-h {
    font-size: 10.5pt !important;
    margin: 0.7rem 0 0.25rem !important;
    page-break-after: avoid;
    break-after: avoid;
  }
  .legal-body__text p,
  .vop-tabs__panel p,
  p.mb-3 {
    margin: 0 0 0.35rem !important;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
    text-align: justify !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .vop-schema-box {
    break-inside: avoid;
    page-break-inside: avoid;
    max-width: 100%;
    padding: 0.35rem;
    margin: 0.5rem 0;
  }
  .vop-schema-box img {
    max-height: 160px;
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .vop-clause {
    font-size: 9pt !important;
    margin-top: 0.4rem !important;
    padding: 0.35rem 0.45rem !important;
  }
}


/* 56_LIVE_EDITOR_ACTIVATION */
.vop-live-editor {
  position: sticky;
  top: 0;
  z-index: 80;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  color: #f9fafb;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.vop-live-editor__inner { display: flex; flex-direction: column; gap: 0.65rem; }
.vop-live-editor__brand {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.55rem 1rem;
  font-size: 0.92rem; letter-spacing: 0.02em;
}
.vop-live-editor__brand strong { color: #fde68a; font-size: 0.98rem; }
.vop-live-editor__status {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #93c5fd; opacity: 0.95;
}
.vop-live-editor__cmds,
.vop-live-editor__actions {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.vop-live-editor__btn {
  appearance: none;
  border: 1px solid #4b5563;
  background: #374151;
  color: #f9fafb;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.42rem 0.7rem;
  border-radius: 0.35rem;
  cursor: pointer;
}
.vop-live-editor__btn:hover { background: #4b5563; border-color: #6b7280; }
.vop-live-editor__btn--primary {
  background: #2563eb;
  border-color: #3b82f6;
  font-weight: 700;
}
.vop-live-editor__btn--primary[aria-pressed="true"] {
  background: #059669;
  border-color: #34d399;
}
.vop-live-editor__flash {
  margin: 0;
  font-size: 0.82rem;
  color: #fde68a;
}
.vop-live-editor__flash--ok {
  color: #166534;
  background: #bbf7d0;
  border: 1px solid #22c55e;
  padding: 0.55rem 0.75rem;
  border-radius: 0.35rem;
  font-weight: 700;
}
.vop-live-editor__btn--save {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-color: #15803d;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 4px 14px rgba(34,197,94,0.35);
}
.vop-live-editor__btn--save:hover {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  border-color: #16a34a;
}
.vop-live-editor__btn--ghost {
  background: transparent;
  border-color: #6b7280;
  color: #d1d5db;
  font-size: 0.76rem;
}
.vop-draft-restore {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 0.4rem;
  color: #78350f;
  font-size: 0.88rem;
}
.vop-draft-restore__btn {
  appearance: none;
  border: none;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 0.3rem;
  cursor: pointer;
  margin-left: 0.35rem;
}
.vop-draft-restore__dismiss {
  appearance: none;
  border: none;
  background: transparent;
  color: #92400e;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 0.5rem;
}
.vop-edit-active {
  outline: 2px solid #60a5fa !important;
  outline-offset: 4px;
  background: rgba(96, 165, 250, 0.06);
}
body.vop-editing .legal-body,
body.vop-editing .vop-tabs__panel {
  cursor: text;
}
@media print {
  .vop-live-editor { display: none !important; }
  .vop-edit-active { outline: none !important; background: transparent !important; }
}

/* 58_SECURE_AUTH + 60_TOOLBAR_AUTH_UNIFICATION */
body.hv-guest .vop-live-editor,
body.hv-guest #hvInlineEditorBar {
  display: none !important;
}
body:not(.hv-authed) .vop-live-editor {
  display: none !important;
}
/* Záhlaví musí zůstat čisté – žádný auth odznak v navigaci */
.site-header .hv-auth-badge,
.site-header .admin-auth-badge,
.site-header #hvAuthBadge,
.entity-switch-wrap .hv-auth-badge,
.entity-switch-wrap .admin-auth-badge {
  display: none !important;
}

/* 61 – stealth chameleon modal */
.hv-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
}
.hv-auth-modal[hidden] { display: none !important; }
.hv-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.hv-auth-modal__card {
  position: relative;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.1rem 1.2rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: #334155;
}
.hv-auth-modal--stealth .hv-auth-modal__card h2,
.hv-auth-modal--stealth .hv-auth-modal__hint {
  display: none !important;
}
.hv-auth-modal__card label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
.hv-auth-modal__card input {
  font: inherit;
  font-weight: 400;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
  background: #fff;
  color: #0f172a;
}
.hv-auth-modal__err { margin: 0; color: #b91c1c; font-size: 0.82rem; }
.hv-auth-modal__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.hv-auth-modal__btn {
  appearance: none;
  border: 1px solid #94a3b8;
  background: #e2e8f0;
  color: #334155;
  font: inherit;
  padding: 0.45rem 0.8rem;
  border-radius: 0.35rem;
  cursor: pointer;
}
.hv-auth-modal__btn--mask {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #475569;
  font-weight: 600;
  font-size: 0.82rem;
}
.hv-auth-modal__btn--ok {
  background: #16a34a;
  border-color: #15803d;
  color: #fff;
  font-weight: 700;
}
.hv-auth-modal__card--armed .hv-auth-modal__btn--ok {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

/* 61 – spodní dokovací lišta (vzor :4060/:4070) */
body.hv-dock-visible {
  padding-bottom: 5.5rem;
}
.hv-editor,
.hv-editor--dock {
  position: fixed !important;
  left: 50%;
  bottom: 20px;
  top: auto !important;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  z-index: 9999;
  margin: 0 !important;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.hv-editor[hidden] { display: none !important; }
.hv-editor__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}
.hv-editor__brand {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline;
  font-size: 0.88rem;
}
.hv-editor__brand strong { color: #86efac; }
.hv-editor__auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  padding: 0.25rem 0.45rem 0.25rem 0.65rem;
  background: rgba(20, 83, 45, 0.55);
  border: 1px solid #22c55e;
  border-radius: 999px;
  white-space: nowrap;
}
.hv-editor__auth-label {
  font-size: 0.8rem;
  color: #a3a3a3;
}
.hv-editor__auth-label strong {
  color: #86efac;
  font-weight: 700;
}
.hv-editor__cmds,
.hv-editor__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hv-editor__btn {
  appearance: none;
  border: 1px solid #475569;
  background: #334155;
  color: #f8fafc;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.35rem;
  cursor: pointer;
}
.hv-editor__btn:hover { background: #475569; }
.hv-editor__btn--primary {
  background: #2563eb;
  border-color: #3b82f6;
  font-weight: 700;
}
.hv-editor__btn--primary[aria-pressed="true"] {
  background: #059669;
  border-color: #34d399;
}
.hv-editor__btn--save {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-color: #15803d;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.hv-editor__btn--logout {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: #ecfdf5;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
}
.hv-editor__btn--logout:hover {
  background: rgba(255,255,255,0.12);
}
.hv-editor__flash {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.82rem;
  color: #fde68a;
}
.hv-editor__flash--ok {
  color: #14532d;
  background: #bbf7d0;
  border: 1px solid #22c55e;
  padding: 0.5rem 0.7rem;
  border-radius: 0.35rem;
  font-weight: 700;
}
/* 73: dashed buňky odstraněny — viz assets/inline-editor.css (jednotný kontejner) */
.hv-edit-target {
  outline: none;
}

a.live-editable-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px dashed #2563eb;
  background: linear-gradient(transparent 60%, rgba(37, 99, 235, 0.12) 60%);
  cursor: pointer;
  position: relative;
}
a.live-editable-link:hover,
a.live-editable-link:focus-visible {
  border-bottom-style: solid;
  color: #1d4ed8;
}
a.live-editable-link::after {
  content: attr(data-tooltip-url);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  max-width: min(70vw, 28rem);
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.35rem 0.55rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.3rem;
  font-size: 0.72rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 120;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
a.live-editable-link:hover::after,
a.live-editable-link:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media print {
  .hv-editor, .hv-auth-modal { display: none !important; }
  a.live-editable-link::after { display: none !important; }
}
