﻿:root {
  /* Same blues as vývojová aplikace (public/assets/css/app.css) */
  --ink: #0d1c30;
  --ink-soft: #1a2f4a;
  --paper: #e6f0f8;
  --paper-warm: #edf4fa;
  --water: #1a6bb5;
  --water-mid: #2b7fd4;
  --water-deep: #134e8a;
  --water-glow: rgba(26, 107, 181, 0.28);
  --foam: #d9eaf7;
  --mist: #f4f8fc;
  --slate: #4d6178;
  --line: rgba(19, 78, 138, 0.1);
  --line-strong: rgba(19, 78, 138, 0.16);
  --danger: #b83a30;
  --ok: #1a6b48;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --surface-lift: rgba(255, 255, 255, 0.92);
  --radius: 1rem;
  --radius-sm: 0.55rem;
  --radius-lg: 1.35rem;
  --shadow-sm: 0 1px 2px rgba(12, 26, 46, 0.04), 0 4px 16px rgba(19, 78, 138, 0.05);
  --shadow-md: 0 10px 32px rgba(19, 78, 138, 0.12);
  --shadow-frame:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 12px 40px rgba(19, 78, 138, 0.1),
    0 2px 8px rgba(12, 26, 46, 0.04);
  --font-display: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 40rem;
  --max-home: 64rem;
  --max-sa: 76rem;
  --pad-x: clamp(1.1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.12em;
}

/* Atmospheric plane — layered sky / water mist */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 90% 55% at 88% -5%, rgba(43, 127, 212, 0.32), transparent 58%),
    radial-gradient(ellipse 60% 48% at -5% 28%, rgba(19, 78, 138, 0.14), transparent 52%),
    radial-gradient(ellipse 50% 40% at 55% 72%, rgba(26, 107, 181, 0.08), transparent 55%),
    linear-gradient(165deg, #d9e8f5 0%, var(--paper) 38%, var(--paper-warm) 72%, #e3eef7 100%);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: -18% -10%;
  background:
    radial-gradient(circle at 22% 38%, rgba(255, 255, 255, 0.55) 0%, transparent 32%),
    radial-gradient(circle at 68% 55%, rgba(43, 127, 212, 0.1) 0%, transparent 36%),
    radial-gradient(circle at 40% 78%, rgba(255, 255, 255, 0.28) 0%, transparent 28%);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(230, 240, 248, 0.55) 100%);
  pointer-events: none;
}

.wave-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(22vh, 200px);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.wave-layer svg {
  position: absolute;
  bottom: 0;
  left: -2%;
  width: 104%;
  height: auto;
  min-height: 100%;
  display: block;
}

.wave-layer .w1 {
  animation: wave-shift 18s ease-in-out infinite alternate;
  opacity: 0.55;
}
.wave-layer .w2 {
  animation: wave-shift 14s ease-in-out infinite alternate-reverse;
  opacity: 0.38;
  transform: translateY(8px);
}
.wave-layer .w3 {
  animation: wave-shift 22s ease-in-out infinite alternate;
  opacity: 0.22;
  transform: translateY(16px);
}

/* Header — full width, content centered with page */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: calc(var(--max-home) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 0.9rem var(--pad-x);
  border-bottom: 1px solid transparent;
  animation: fade-up 0.65s var(--ease-out) both;
}

.page-sa .site-header {
  max-width: calc(var(--max-sa) + 2 * var(--pad-x));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.88; }
.brand__mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--water-mid), var(--water));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--water-glow);
}
.brand__mark .icon { width: 1rem; height: 1rem; }
.brand__text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--water-deep);
}
.brand__domain {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--water);
  line-height: 1.2;
  margin-top: 0.08rem;
}

nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
nav a:hover {
  color: var(--water-deep);
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--line);
}

/* Centered main column */
.main {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 1.25rem var(--pad-x) 3.25rem;
}

.page-home .main,
.page-informace .main,
.page-register .main,
.page-success .main,
.page-sa-login .main {
  max-width: calc(var(--max-home) + 2 * var(--pad-x));
  padding-top: 1.5rem;
}
.page-sa .main {
  max-width: calc(var(--max-sa) + 2 * var(--pad-x));
  padding-top: 1.5rem;
}

/* Shared “card in atmosphere” frame */
.panel-frame {
  position: relative;
  border: 1px solid rgba(19, 78, 138, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 252, 0.78));
  box-shadow: var(--shadow-frame);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

/* —— Hero: two-column, framed, centered —— */
.hero {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(19, 78, 138, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(237, 244, 250, 0.82) 48%, rgba(217, 234, 247, 0.72) 100%);
  box-shadow: var(--shadow-frame);
  backdrop-filter: blur(14px);
  padding: clamp(1.6rem, 3.5vw, 2.75rem) clamp(1.35rem, 3.2vw, 2.5rem);
  overflow: hidden;
  animation: fade-up 0.75s var(--ease-out) both;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  width: min(28rem, 70%);
  height: min(18rem, 80%);
  left: -6%;
  top: -10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 45%, rgba(43, 127, 212, 0.2), transparent 68%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.5), transparent 55%);
  filter: blur(2px);
  animation: glow-breathe 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 127, 212, 0.22), transparent 70%);
}
.hero-orb--a {
  width: 9rem;
  height: 9rem;
  right: 8%;
  top: 12%;
  animation: float-soft 10s ease-in-out infinite alternate;
}
.hero-orb--b {
  width: 5rem;
  height: 5rem;
  right: 28%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: float-soft 8s 0.5s ease-in-out infinite alternate-reverse;
}
.hero-orb--c {
  width: 7rem;
  height: 7rem;
  left: 42%;
  top: -8%;
  opacity: 0.7;
  animation: float-soft 12s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  animation: fade-up 0.8s 0.04s var(--ease-out) both;
}

.hero-brand__mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, var(--water-mid) 0%, var(--water) 55%, var(--water-deep) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    0 8px 28px var(--water-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: mark-pulse 5.5s ease-in-out infinite;
}

.hero-brand__mark .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.hero-brand__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  color: var(--water-deep);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hero-brand__domain {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--water);
  text-decoration: none;
  width: fit-content;
}
.hero-brand__domain:hover {
  color: var(--water-deep);
  text-decoration: underline;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin: 0 0 0.85rem;
  color: var(--ink);
  max-width: 22ch;
  letter-spacing: -0.02em;
  line-height: 1.28;
  animation: fade-up 0.8s 0.12s var(--ease-out) both;
}

.hero-lead {
  color: var(--slate);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  max-width: 38ch;
  margin: 0 0 1.75rem;
  font-weight: 400;
  line-height: 1.55;
  animation: fade-up 0.8s 0.2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  animation: fade-up 0.8s 0.28s var(--ease-out) both;
}

.hero-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.68rem 0.95rem;
  font-size: 0.88rem;
}

.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-up 0.9s 0.18s var(--ease-out) both;
}

.hero-illustration {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

.hi-float--1 { animation: float-soft 9s ease-in-out infinite alternate; }
.hi-float--2 { animation: float-soft 7s 0.4s ease-in-out infinite alternate-reverse; }
.hi-float--3 { animation: float-soft 11s 0.2s ease-in-out infinite alternate; }
.hi-drop { animation: float-soft 8s ease-in-out infinite alternate; transform-origin: 36px 40px; }
.hi-ripple--1 { animation: ripple-out 4.5s ease-out infinite; }
.hi-ripple--2 { animation: ripple-out 4.5s 0.7s ease-out infinite; }
.hi-ripple--3 { animation: ripple-out 4.5s 1.4s ease-out infinite; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.22s var(--ease-out),
    background 0.2s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--water-mid), var(--water));
  color: #fff;
  box-shadow:
    0 4px 16px var(--water-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--water), var(--water-deep));
  box-shadow: 0 8px 26px rgba(19, 78, 138, 0.3);
}
.btn-ghost {
  background: var(--surface-lift);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: #fff;
  border-color: rgba(26, 107, 181, 0.4);
}

/* —— Below fold —— */
.section {
  margin-top: 1.35rem;
  padding: clamp(1.35rem, 2.8vw, 1.85rem) clamp(1.2rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(19, 78, 138, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 252, 0.82));
  box-shadow: var(--shadow-frame);
  backdrop-filter: blur(12px);
  animation: fade-up 0.7s 0.22s var(--ease-out) both;
}

.section.narrow {
  max-width: 100%;
}

.page-register .section,
.page-success .section {
  margin-top: 0.35rem;
  animation: fade-up 0.65s var(--ease-out) both;
}

.page-register .form-panel,
.page-success .org-summary {
  /* nested panels stay light inside the outer frame */
  box-shadow: var(--shadow-sm);
}

.section h1, .section h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--water-deep);
}
.section h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.section h2 { font-size: clamp(1.25rem, 2.8vw, 1.45rem); }
.section-lead {
  color: var(--slate);
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
  max-width: 48ch;
  line-height: 1.55;
}
.muted { color: var(--slate); }

/* Tenant cards — framed grid, not raw list */
.tenant-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 0.85rem;
}

.tenant-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 252, 0.9));
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.22s var(--ease-out);
}

.tenant-card:hover {
  border-color: rgba(26, 107, 181, 0.35);
  box-shadow: 0 8px 24px rgba(19, 78, 138, 0.12);
  transform: translateY(-2px);
}

.tenant-card__icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, rgba(43, 127, 212, 0.16), rgba(26, 107, 181, 0.1));
  color: var(--water-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tenant-card__icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.tenant-card__body {
  min-width: 0;
  flex: 1;
}

.tenant-card__name {
  display: block;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.tenant-card__slug {
  display: block;
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 500;
  margin-top: 0.12rem;
}

.tenant-card__link.btn {
  flex-shrink: 0;
  padding: 0.48rem 0.85rem;
  font-size: 0.86rem;
  box-shadow: 0 2px 10px var(--water-glow);
}

.tenant-card__map-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--water-deep);
  background: rgba(43, 127, 212, 0.14);
  vertical-align: 0.05em;
}

/* —— Informace / pro začátečníky —— */
.info-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--water);
}

.info-benefits {
  list-style: none;
  margin: 0 0 1.65rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
}

.info-benefit {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 250, 0.72));
}

.info-benefit__icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, rgba(43, 127, 212, 0.16), rgba(26, 107, 181, 0.1));
  color: var(--water-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-benefit__icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.info-benefit__body {
  min-width: 0;
}
.info-benefit__body strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.28rem;
}
.info-benefit__body p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.5;
}

.info-how {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.info-how__title {
  margin: 0 0 0.95rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--water-deep);
}

.info-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.info-steps > li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.info-steps__num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--water-mid), var(--water));
  box-shadow: 0 3px 10px var(--water-glow);
}

.info-steps strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.info-steps p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.45;
}

.info-how__hint {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}
.info-how__hint a {
  color: var(--water);
  font-weight: 600;
  text-decoration: none;
}
.info-how__hint a:hover {
  color: var(--water-deep);
  text-decoration: underline;
}

/* —— Dedicated /informace page —— */
.page-informace .info-page-intro {
  animation-delay: 0.08s;
}
.page-informace .info-page-intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.55rem;
}
.page-informace .info-page-intro .section-lead {
  margin-bottom: 0;
  max-width: 38rem;
}
.page-informace .info-page-intro .info-eyebrow {
  margin-bottom: 0.35rem;
}

.info-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
}
.info-story__grid--flip .info-story__copy { order: 2; }
.info-story__grid--flip .info-story__visual { order: 1; }

.info-story__copy h2 {
  margin-bottom: 0.45rem;
}
.info-story__copy .section-lead {
  margin-bottom: 0;
}

.info-story__visual {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0.35rem 0;
}
.info-diagram {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}
.info-diagram--intro {
  max-width: 380px;
}

.info-diagram__flow {
  stroke-dasharray: 6 8;
  animation: info-flow 1.8s linear infinite;
}
.info-diagram__pulse circle {
  animation: info-pulse 1.6s ease-in-out infinite;
}
.info-diagram__pulse circle:nth-child(2) { animation-delay: 0.2s; }
.info-diagram__pulse circle:nth-child(3) { animation-delay: 0.4s; }
.info-diagram__bar {
  transform-origin: bottom center;
  animation: info-bar-in 0.85s var(--ease-out) both;
}
.info-diagram__bar--delay {
  animation-delay: 0.18s;
}
.info-diagram__needle {
  transform-origin: 0 0;
  animation: info-needle 5.5s ease-in-out infinite alternate;
}
.info-diagram__ripple {
  transform-origin: 150px 110px;
  animation: info-ripple 4.2s ease-out infinite;
}
.info-diagram__ripple--2 {
  animation-delay: 1.1s;
}
.info-diagram__check {
  transform-origin: center;
  animation: info-check-pop 2.4s var(--ease-out) infinite;
}
.info-diagram__lora-arc {
  animation: info-lora-wave 2.4s ease-in-out infinite;
}
.info-diagram__lora-arc--2 { animation-delay: 0.35s; }
.info-diagram__lora-arc--3 { animation-delay: 0.7s; }
@keyframes info-lora-wave {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

.info-lora-extras {
  margin-top: 1.45rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.info-lora-extras__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--water-deep);
}
.info-lora-extras__lead {
  margin: 0 0 1rem;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 42rem;
}
.info-lora-alerts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.9rem;
}
.info-lora-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(237, 244, 250, 0.78));
}
.info-lora-alert__icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--water);
  background: linear-gradient(145deg, rgba(43, 127, 212, 0.14), rgba(19, 78, 138, 0.08));
}
.info-lora-alert__icon svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
.info-lora-alert__body {
  min-width: 0;
}
.info-lora-alert__en {
  display: inline-block;
  margin-bottom: 0.2rem;
  padding: 0.12rem 0.42rem;
  border-radius: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--water-deep);
  background: rgba(26, 107, 181, 0.1);
}
.info-lora-alert__body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.22rem;
}
.info-lora-alert__body p {
  margin: 0;
  color: var(--slate);
  font-size: 0.86rem;
  line-height: 1.45;
}

@keyframes info-flow {
  to { stroke-dashoffset: -28; }
}
@keyframes info-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.15); }
}
@keyframes info-bar-in {
  from { transform: scaleY(0.35); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes info-needle {
  from { transform: rotate(-22deg); }
  to { transform: rotate(28deg); }
}
@keyframes info-ripple {
  0% { opacity: 0.22; transform: scale(0.92); }
  70% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}
@keyframes info-check-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1); }
  55% { transform: scale(1.12); }
  65% { transform: scale(1); }
}

.page-informace .info-story:nth-of-type(odd) {
  animation-delay: 0.06s;
}
.page-informace .info-story:nth-of-type(even) {
  animation-delay: 0.12s;
}

.info-steps--stack {
  grid-template-columns: 1fr;
  margin-top: 1rem;
  margin-bottom: 0;
  gap: 0.75rem;
}
.info-how-block .info-story__copy .section-lead {
  margin-bottom: 0;
}

.info-reassure__points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.info-reassure__points li {
  margin: 0;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 3px solid var(--water);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}
.info-reassure__points strong {
  color: var(--water-deep);
  font-weight: 700;
}
.info-diagram--reassure {
  max-width: 400px;
}
.info-diagram__gear {
  transform-origin: 0 0;
  animation: info-gear 12s linear infinite;
}
@keyframes info-gear {
  to { transform: rotate(360deg); }
}

.info-contact {
  padding-top: 1.35rem;
  padding-bottom: 1.45rem;
}
.info-contact .section-lead {
  margin-bottom: 1.1rem;
}
.info-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.75rem;
}
.info-contact__label {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--water-deep);
}
.info-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.info-contact__list li {
  margin: 0;
  display: grid;
  gap: 0.12rem;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink);
}
.info-contact__key {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #4d6178);
}
.info-contact__list a {
  color: var(--water);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--water) 35%, transparent);
}
.info-contact__list a:hover,
.info-contact__list a:focus-visible {
  color: var(--water-deep);
  border-bottom-color: var(--water-deep);
}

.info-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: center;
}
.info-cta__actions .btn {
  white-space: nowrap;
}

/* —— Demo section —— */
.section-demo {
  padding: 0;
  overflow: hidden;
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 1rem;
  align-items: stretch;
}

.demo-panel__copy {
  padding: clamp(1.35rem, 2.8vw, 1.85rem) clamp(1.2rem, 2.5vw, 1.75rem);
}

.demo-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--water);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}

.btn-lg {
  padding: 0.95rem 1.55rem;
  font-size: 1.05rem;
}

.demo-creds {
  margin: 0;
  max-width: 28rem;
}

.demo-creds__title {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--water-deep);
}

.demo-creds__list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.85rem;
}

.demo-creds__row {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 244, 250, 0.7));
}

.demo-creds__row--full {
  grid-column: 1 / -1;
}

.demo-creds__row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

.demo-creds__row dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.demo-creds__row code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--water-deep);
  background: transparent;
  padding: 0;
}

.demo-panel__aside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1rem 1.25rem;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(43, 127, 212, 0.22), transparent 70%),
    linear-gradient(160deg, rgba(26, 107, 181, 0.12), rgba(19, 78, 138, 0.08));
  border-left: 1px solid var(--line);
  min-height: 100%;
}

.demo-illustration {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.di-float--1 { animation: float-soft 9s ease-in-out infinite alternate; }
.di-float--2 { animation: float-soft 7s 0.4s ease-in-out infinite alternate-reverse; }
.di-float--3 { animation: float-soft 11s 0.2s ease-in-out infinite alternate; }
.di-drop { animation: float-soft 8s ease-in-out infinite alternate; transform-origin: 28px 32px; }
.di-card { animation: float-soft 10s 0.3s ease-in-out infinite alternate-reverse; }
.di-needle { animation: di-needle-sway 6s ease-in-out infinite alternate; }
.di-ripple--1 { animation: ripple-out 4.5s ease-out infinite; }
.di-ripple--2 { animation: ripple-out 4.5s 0.7s ease-out infinite; }
.di-ripple--3 { animation: ripple-out 4.5s 1.4s ease-out infinite; }

@keyframes di-needle-sway {
  from { transform: rotate(-18deg); }
  to { transform: rotate(22deg); }
}

/* —— Registered obce: map + list —— */
.obce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
  align-items: start;
}

.cz-map {
  margin: 0;
  padding: 0.85rem 0.85rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(237, 244, 250, 0.9));
  box-shadow: var(--shadow-sm);
}

.cz-map__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
}

.cz-map__land {
  transition: fill 0.2s ease;
}

.cz-map__dot-link {
  cursor: pointer;
  outline: none;
}
.cz-map__dot-link:focus-visible .cz-map__dot {
  stroke: var(--water-deep);
  stroke-width: 3;
}
.cz-map__dot-link:hover .cz-map__dot,
.cz-map__dot-link:focus-visible .cz-map__dot {
  fill: var(--water-mid);
}
.cz-map__dot-link:hover .cz-map__dot-ring,
.cz-map__dot-link:focus-visible .cz-map__dot-ring {
  opacity: 0.35;
}

.cz-map__tip {
  font-family: Figtree, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  fill: var(--ink);
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 6px;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.cz-map__dot-link:hover .cz-map__tip,
.cz-map__dot-link:focus-visible .cz-map__tip {
  opacity: 1;
}

.cz-map__caption {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  text-align: center;
}

.obce-list-wrap .tenant-grid {
  margin: 0;
}

.obce-list-wrap a:not(.btn) {
  color: var(--water);
  font-weight: 600;
  text-decoration: none;
}
.obce-list-wrap a:not(.btn):hover {
  color: var(--water-deep);
  text-decoration: underline;
}
.obce-list-wrap .btn-primary {
  color: #fff;
}
.obce-list-wrap .btn-primary:hover {
  color: #fff;
  text-decoration: none;
}

.footer-domain {
  color: var(--water);
  font-weight: 600;
  text-decoration: none;
}
.footer-domain:hover {
  color: var(--water-deep);
  text-decoration: underline;
}

/* Legacy list (unused on home; keep for safety) */
.tenant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 252, 0.88));
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tenant-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.tenant-list li:last-child { border-bottom: none; }
.tenant-list strong {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.02rem;
}
.tenant-list .slug {
  display: block;
  font-size: 0.82rem;
  color: var(--slate);
  font-weight: 500;
  margin-top: 0.15rem;
}
.tenant-list a {
  color: var(--water);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  word-break: break-all;
}
.tenant-list a:hover {
  color: var(--water-deep);
  text-decoration: underline;
}

/* Forms */
.form-panel {
  padding: 1.45rem 1.35rem 1.6rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 252, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.form { display: grid; gap: 1.05rem; }
.form-section-title {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--water-deep);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form-section-title:first-of-type { margin-top: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1.05rem;
  row-gap: 0.35rem;
  align-items: start;
}
.form-field {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 0.35rem;
  min-width: 0;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.form input {
  font: inherit;
  padding: 0.74rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  max-width: 100%;
}
.form input:focus {
  outline: none;
  border-color: var(--water);
  box-shadow: 0 0 0 3px var(--water-glow);
}
.form .btn { margin-top: 0.4rem; justify-self: start; }
.hint { font-weight: 400; font-size: 0.82rem; color: var(--slate); }
.hint-inline { font-weight: 400; color: var(--slate); font-size: 0.82rem; }

.org-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1.35rem;
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.25rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 252, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.org-summary dt {
  margin: 0;
  color: var(--slate);
  font-weight: 600;
}
.org-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 1.05rem;
  }
  .form-field {
    display: grid;
    grid-template-rows: none;
    grid-row: auto;
    gap: 0.35rem;
  }
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  background: var(--foam);
  padding: 0.12em 0.4em;
  border-radius: 0.3rem;
  color: var(--water-deep);
  word-break: break-all;
}

.steps {
  padding-left: 1.2rem;
  color: var(--slate);
  margin: 0 0 1.75rem;
}
.steps li { margin-bottom: 0.85rem; }
.steps a {
  color: var(--water);
  font-weight: 600;
  text-decoration: none;
}
.steps a:hover {
  color: var(--water-deep);
  text-decoration: underline;
}

.success .eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ok);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.flash {
  width: calc(100% - 2 * var(--pad-x));
  max-width: var(--max);
  margin: 0.7rem auto 0;
  padding: 0.78rem 1.05rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  animation: fade-up 0.4s var(--ease-out) both;
  box-shadow: var(--shadow-sm);
}
.page-home .flash,
.page-informace .flash,
.page-sa-login .flash {
  max-width: var(--max-home);
}
.page-sa .flash {
  max-width: var(--max-sa);
}
.flash-error {
  background: #fde8e8;
  color: var(--danger);
  border: 1px solid rgba(184, 58, 48, 0.15);
}
.flash-success {
  background: #e5f6eb;
  color: var(--ok);
  border: 1px solid rgba(26, 107, 72, 0.15);
}

/* Plnošířkový flash banner pod hlavičkou */
.hub-flash-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  animation: hub-flash-in 0.35s var(--ease-out) both;
  box-shadow: 0 4px 18px rgba(12, 26, 46, 0.12);
}
.hub-flash-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.72rem clamp(1rem, 4vw, 2rem);
  max-width: 100%;
}
.hub-flash-bar__text {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}
.hub-flash-bar__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.82;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  flex-shrink: 0;
}
.hub-flash-bar__close:hover { opacity: 1; }
.hub-flash-bar--error {
  background: linear-gradient(90deg, #c43328 0%, var(--danger) 48%, #a83228 100%);
  color: #fff;
}
.hub-flash-bar--success {
  background: linear-gradient(90deg, #1a7a52 0%, var(--ok) 50%, #1a6b48 100%);
  color: #fff;
}
.hub-flash-bar--warning,
.hub-flash-bar--info {
  background: linear-gradient(90deg, #134e8a 0%, var(--water) 50%, #2b7fd4 100%);
  color: #fff;
}
.hub-flash-bar.is-hiding {
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@keyframes hub-flash-in {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 0.5rem var(--pad-x) 2.5rem;
  color: var(--slate);
  font-size: 0.88rem;
  text-align: center;
}
.page-home .site-footer,
.page-informace .site-footer,
.page-register .site-footer,
.page-success .site-footer,
.page-sa-login .site-footer {
  max-width: calc(var(--max-home) + 2 * var(--pad-x));
}
.page-sa .site-footer {
  max-width: calc(var(--max-sa) + 2 * var(--pad-x));
}
.site-footer strong {
  color: var(--water-deep);
  font-weight: 700;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2%, 2.5%) scale(1.04); }
}

@keyframes wave-shift {
  from { transform: translateX(0); }
  to { transform: translateX(-3%); }
}

@keyframes glow-breathe {
  from { opacity: 0.75; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}

@keyframes float-soft {
  from { transform: translateY(0); }
  to { transform: translateY(10px); }
}

@keyframes ripple-out {
  0% { opacity: 0.22; transform: scale(0.85); }
  70% { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes mark-pulse {
  0%, 100% {
    box-shadow:
      0 8px 28px var(--water-glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 10px 34px rgba(26, 107, 181, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Tablet: still two columns if space allows */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-visual {
    order: 2;
  }
  .hero-copy {
    order: 1;
  }
  .hero-illustration {
    max-width: 300px;
  }
  .hero h1,
  .hero-lead {
    max-width: none;
  }
  .demo-panel {
    grid-template-columns: 1fr;
  }
  .demo-panel__aside {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 0.85rem 1rem 1rem;
    justify-content: center;
  }
  .demo-illustration {
    max-width: 220px;
  }
  .obce-layout {
    grid-template-columns: 1fr;
  }
  .info-benefits {
    grid-template-columns: 1fr;
  }
  .info-lora-alerts {
    grid-template-columns: 1fr;
  }
  .info-steps {
    grid-template-columns: 1fr;
  }
  .info-story__grid,
  .info-story__grid--flip {
    grid-template-columns: 1fr;
  }
  .info-story__grid--flip .info-story__copy,
  .info-story__grid--flip .info-story__visual {
    order: unset;
  }
  .info-contact__grid {
    grid-template-columns: 1fr;
  }
  .info-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .info-cta__actions .btn {
    width: 100%;
    white-space: normal;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.35rem 1.15rem 1.5rem;
    border-radius: 1.1rem;
  }
  .section {
    padding: 1.2rem 1.05rem 1.35rem;
    border-radius: 1.1rem;
  }
  .hero-glow {
    width: 90%;
    height: 55%;
    left: -15%;
    top: -5%;
  }
  .hero-brand__mark {
    width: 2.55rem;
    height: 2.55rem;
  }
  .hero-brand__mark .icon {
    width: 1.2rem;
    height: 1.2rem;
  }
  .hero-actions {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; white-space: normal; }
  .hero-illustration {
    max-width: 240px;
  }
  .demo-panel__aside {
    display: none;
  }
  .tenant-card {
    flex-wrap: wrap;
  }
  .tenant-card__link {
    width: 100%;
    text-align: center;
  }
  .form-panel { padding: 1.2rem 1.05rem 1.35rem; }
  .wave-layer { height: 16vh; opacity: 0.85; }
  .site-header { padding: 0.75rem var(--pad-x); }
  .main { padding: 1rem var(--pad-x) 2.25rem; }
}

/* Superadmin — wider shell (--max-sa); table scrolls inside wrap only */
.page-sa .section {
  max-width: 100%;
  margin-top: 0.5rem;
}
.page-sa-login .section.narrow {
  max-width: min(28rem, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
}
.sa-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--water);
}
.sa-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 0.5rem;
}
.sa-head h1 { margin-bottom: 0.35rem; }
.sa-head .section-lead { margin-bottom: 0; max-width: 48rem; }
.sa-logout { margin: 0; flex-shrink: 0; }
.sa-stats { margin: 0 0 1.25rem; }
.sa-hub-settings__lead { margin-bottom: 0.5rem; }
.sa-hub-settings__status { margin: 0.5rem 0 0.75rem; }
.sa-hub-settings__form { margin: 0; }
.sa-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 252, 0.9));
  box-shadow: var(--shadow-sm);
}
.sa-table {
  width: 100%;
  min-width: 64rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: auto;
}
.sa-table th,
.sa-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.sa-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--water-deep);
  background: rgba(26, 107, 181, 0.06);
  white-space: nowrap;
}
/* Contact / ISP / slug / badges / buttons stay undivided; table scrolls if needed. */
.sa-table td.sa-cell--nowrap,
.sa-table td.sa-cell--slug,
.sa-table td.sa-cell--status,
.sa-table td.sa-cell--actions,
.sa-table td.sa-cell--contact {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.sa-table .sa-email {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.sa-table td code {
  font-size: 0.88em;
  white-space: nowrap;
}
.sa-table tr:last-child td { border-bottom: none; }
.sa-row--disabled { opacity: 0.72; }
.sa-meta { font-size: 0.82rem; margin-top: 0.15rem; }
.sa-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  white-space: nowrap;
}
.sa-links a {
  color: var(--water);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sa-links a:hover { text-decoration: underline; }
.sa-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.sa-badge--on {
  background: rgba(34, 140, 90, 0.12);
  color: #1a6b45;
}
.sa-badge--off {
  background: rgba(140, 70, 40, 0.12);
  color: #8a4020;
}
.sa-badge--isp-ok {
  background: rgba(26, 107, 181, 0.12);
  color: var(--water-deep);
}
.sa-badge--isp-error {
  background: rgba(180, 50, 50, 0.12);
  color: #a02828;
}
.sa-badge--isp-unknown {
  background: var(--foam);
  color: var(--slate);
}
.sa-cell--actions {
  width: 1%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.sa-action-form {
  margin: 0;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
}
.sa-action-form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  white-space: nowrap;
}
.btn-danger {
  background: #b91c1c;
  color: #fff;
  border: 1px solid #991b1b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.btn-danger:hover {
  background: #991b1b;
  color: #fff;
}
.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.sa-delete-link {
  text-decoration: none;
}
.sa-delete-panel {
  max-width: 36rem;
  border-color: rgba(185, 28, 28, 0.25);
}
.sa-delete-warning {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(185, 28, 28, 0.06);
  border: 1px solid rgba(185, 28, 28, 0.18);
  font-size: 0.92rem;
}
.sa-delete-warning ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.sa-delete-code-form {
  margin: 0 0 1rem;
}
.sa-delete-code-sent {
  margin: 0 0 1rem;
}
.sa-delete-form .sa-delete-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
}
.sa-delete-form .sa-delete-confirm input {
  margin-top: 0.2rem;
  width: auto;
}
.sa-hint { margin-top: 1rem; max-width: 52rem; }
.sa-mail-test {
  margin-bottom: 1.75rem;
  max-width: 52rem;
}
.sa-mail-test__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.sa-mail-test__lead {
  margin: 0 0 1rem;
  max-width: 44rem;
}
.sa-mail-test__form { margin: 0; }
.sa-mail-test__label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.sa-mail-test__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.sa-mail-test__input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(26, 107, 181, 0.22);
  border-radius: 0.5rem;
  font: inherit;
}
.sa-mail-results {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 107, 181, 0.12);
}
.sa-mail-results__heading {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}
.sa-mail-results--ok .sa-mail-results__heading { color: #0d6b3a; }
.sa-mail-results--fail .sa-mail-results__heading { color: #b42318; }
.sa-mail-section {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 107, 181, 0.1);
}
.sa-mail-section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}
.sa-mail-section__slug { font-size: 0.85rem; }
.sa-mail-section__meta {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}
.sa-mail-section__error {
  margin: 0.5rem 0 0;
  color: #b42318;
  font-size: 0.9rem;
}
.sa-mail-paths {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.sa-mail-path {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(26, 107, 181, 0.08);
  font-size: 0.88rem;
}
.sa-mail-path:first-child { border-top: none; }
.sa-mail-path__mark {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.sa-mail-path--ok .sa-mail-path__mark { color: #0d6b3a; }
.sa-mail-path--fail .sa-mail-path__mark { color: #b42318; }
.sa-mail-path__detail { font-size: 0.82rem; }
@media (max-width: 640px) {
  .sa-mail-path {
    grid-template-columns: 3.2rem 1fr;
  }
  .sa-mail-path__detail { grid-column: 2; }
}
.page-sa-login .form-panel {
  margin-top: 0.25rem;
}
.page-sa-login .form .btn-primary {
  width: 100%;
  margin-top: 0.35rem;
}

/* Superadmin — navigace, karty, monitoring */
.sa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.sa-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-lift);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.sa-nav__link:hover { border-color: var(--water); color: var(--water-deep); }
.sa-nav__link.is-active {
  background: var(--water);
  border-color: var(--water);
  color: #fff;
}
.sa-cards {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
.sa-cards--3 { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.sa-cards--4 { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.sa-card {
  background: var(--surface-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}
.sa-card--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sa-card--link:hover {
  border-color: var(--water-mid);
  box-shadow: var(--shadow-md);
}
.sa-card__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 0.25rem;
}
.sa-card__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.sa-card__meta { font-size: 0.82rem; margin-top: 0.2rem; }
.sa-status--ok { border-left: 4px solid #1a6b48; }
.sa-status--warning { border-left: 4px solid #c47a00; }
.sa-status--critical { border-left: 4px solid var(--danger); }
.sa-alert {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
}
.sa-alert--warning {
  background: #fff8e6;
  border-color: #e6b800;
  color: #6b4e00;
}
.sa-alert--critical {
  background: #fdecea;
  border-color: #e8a8a3;
  color: #7a1f18;
}
.sa-alert__list { margin: 0.35rem 0 0 1.1rem; padding: 0; }
.sa-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.sa-toolbar__form { margin: 0; }
.sa-filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.sa-filters__label {
  display: block;
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 0.2rem;
}
.sa-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sa-filters select,
.sa-filters input[type="text"],
.sa-filters input[type="date"] {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
}
.sa-table--logs .sa-cell--detail {
  max-width: 22rem;
  word-break: break-word;
}
.sa-badge--cat-hub { background: #e8f0fa; color: #134e8a; }
.sa-badge--cat-ops { background: #eef6ee; color: #1a6b48; }
.sa-badge--cat-reading { background: #e6f4ff; color: #1a6bb5; }
.sa-badge--cat-mail { background: #f3eef9; color: #5a3d8a; }
.sa-badge--cat-audit_user,
.sa-badge--cat-audit_meter { background: #faf3e6; color: #7a5a12; }
.sa-badge--cat-version { background: #f0f0f0; color: #444; }
.sa-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.sa-dl {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}
.sa-dl dt { font-weight: 600; color: var(--slate); }
.sa-dl dd { margin: 0; }
.sa-trend__wrap {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  gap: 0.5rem;
  align-items: stretch;
}
.sa-trend__yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--slate);
  text-align: right;
  padding-bottom: 0.25rem;
  min-height: 5.5rem;
}
.sa-trend__yaxis--ram { text-align: left; }
.sa-trend__yaxis-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.15rem;
}
.sa-trend__chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 5rem;
  margin: 0.75rem 0 0.35rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--line);
}
.sa-trend__col {
  flex: 1;
  min-width: 3px;
  max-width: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
}
.sa-trend__bar { width: 100%; border-radius: 1px 1px 0 0; min-height: 2px; }
.sa-trend__bar--load { background: var(--water); opacity: 0.85; }
.sa-trend__bar--ram { background: #c47a00; opacity: 0.7; }
.sa-trend__legend { font-size: 0.82rem; }
.sa-trend__fresh { font-size: 0.82rem; margin: 0 0 0.5rem; }
.sa-trend__swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  vertical-align: -0.1em;
  margin-right: 0.15rem;
}
.sa-trend__swatch--load { background: var(--water); }
.sa-trend__swatch--ram { background: #c47a00; }
.sa-trend__swatch--load-prev { background: var(--water); opacity: 0.35; }
.sa-trend__swatch--ram-prev { background: #c47a00; opacity: 0.35; }
.sa-trend--monthly .sa-trend__chart { height: 6rem; }
.sa-trend__periods { font-size: 0.88rem; margin-bottom: 0.5rem; }
.sa-trend__col--pair {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  max-width: 12px;
}
.sa-trend__pair {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  flex: 1;
  min-height: 0;
}
.sa-trend__pair .sa-trend__bar { flex: 1; min-width: 3px; }
.sa-trend__bar--current { opacity: 0.9; }
.sa-trend__bar--previous { opacity: 0.35; }
.sa-trend__summary { font-size: 0.85rem; margin: 0.35rem 0 0; color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
