/* 58_SECURE_AUTH_UNIVERSAL_EDITOR */
body.hv-guest .vop-live-editor,
body.hv-guest #hvInlineEditorBar,
body.hv-guest #hvAuthBadge {
  display: none !important;
}
body:not(.hv-authed) .vop-live-editor {
  display: none !important;
}

.hv-auth-badge {
  position: fixed;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  background: #14532d;
  color: #ecfdf5;
  border: 1px solid #22c55e;
  border-radius: 999px;
  font-size: 0.82rem;
  box-shadow: 0 6px 18px rgba(20, 83, 45, 0.35);
}
.hv-auth-badge__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}
.hv-auth-badge__logout {
  appearance: none;
  border: 1px solid #86efac;
  background: transparent;
  color: #ecfdf5;
  font: inherit;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
}
.hv-auth-badge__logout:hover { background: rgba(255,255,255,0.12); }

.hv-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  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.55);
}
.hv-auth-modal__card {
  position: relative;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: #0f172a;
}
.hv-auth-modal__card h2 { margin: 0; font-size: 1.15rem; }
.hv-auth-modal__hint { margin: 0; font-size: 0.85rem; color: #64748b; }
.hv-auth-modal__card label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.hv-auth-modal__card input {
  font: inherit;
  font-weight: 400;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
}
.hv-auth-modal__err { margin: 0; color: #b91c1c; font-size: 0.85rem; }
.hv-auth-modal__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hv-auth-modal__btn {
  appearance: none;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  padding: 0.45rem 0.8rem;
  border-radius: 0.35rem;
  cursor: pointer;
}
.hv-auth-modal__btn--ok {
  background: #16a34a;
  border-color: #15803d;
  color: #fff;
  font-weight: 700;
}

.hv-editor {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 1.5rem));
  z-index: 240;
  margin: 0;
  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.25);
}
.hv-editor[hidden] { display: none !important; }
.hv-editor__inner { display: flex; flex-direction: column; gap: 0.55rem; }
.hv-editor__brand {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline;
  font-size: 0.9rem;
}
.hv-editor__brand strong { color: #86efac; }
.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__flash { margin: 0; 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;
}
/* Žádné dashed/dotted rámečky na jednotlivých odstavcích/řádcích */
.hv-edit-target {
  outline: none;
}

/* Decentní zvýraznění jen celistvého kontejneru (VOP / právní tělo) */
body.hv-editing .hv-edit-container {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 6px;
  border-radius: 2px;
}

/* Indikátor editace na úrovni stránky */
body.hv-editing::before {
  content: "Režim editace";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 230;
  padding: 0.28rem 0.85rem;
  background: rgba(15, 23, 42, 0.92);
  color: #bbf7d0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 0 0 0.35rem 0.35rem;
  pointer-events: 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-badge, .hv-auth-modal { display: none !important; }
  a.live-editable-link::after { display: none !important; }
}

/* 60 — floating toolbar + session in bar (no header badge) */
.hv-auth-badge { display: none !important; }

.hv-editor {
  position: fixed !important;
  left: 50%;
  bottom: 1rem;
  top: auto !important;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 1.5rem));
  z-index: 240;
  margin: 0 !important;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.hv-editor__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.hv-editor__session {
  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;
  font-size: 0.82rem;
  color: #ecfdf5;
  white-space: nowrap;
}
.hv-editor__session[hidden] { display: none !important; }
.hv-editor__session-label strong { color: #86efac; font-weight: 700; }
.hv-editor__btn--logout {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: #ecfdf5;
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
}
.hv-editor__btn--logout:hover {
  background: rgba(255,255,255,0.12);
}

a.brand-logo.hv-auth-hotspot,
.brand-logo.hv-auth-hotspot,
.brand-lockup.hv-auth-hotspot {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

body.hv-authed {
  padding-bottom: 6.5rem;
}

/* 61 stealth modal */
.hv-auth-modal__btn--diag {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #334155;
  font-weight: 600;
}
.hv-auth-modal__btn--diag:hover {
  background: #cbd5e1;
}
.hv-auth-modal__actions [data-hv-close][hidden] {
  display: none !important;
}

