/* ============================================================
   F6.1.1 — Členská sekce kurzu (davidvas.cz/clenska-sekce/)
   Light theme matching davidvas.cz design system.
   Reuses --primary, --foreground, --gradient-* tokens z /styles.css.
   ============================================================ */

.cs-body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.cs-body main { flex: 1; }

/* ── Navbar greeting + logout (světlý navbar — používá davidvas.cz styling) ── */
.cs-user-greeting {
  display: inline-block;
  margin-right: 12px;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  font-size: 14px;
}

/* ── Loading ───────────────────────────────────────────────── */
.cs-loading { min-height: 60vh; }
.cs-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid hsla(145, 15%, 88%, 1);
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: cs-spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }
.cs-loading-inline {
  text-align: center;
  padding: 48px 20px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

/* ── Course header (zelený gradient hero — jako .hero menší) ── */
.cs-course-header {
  background: var(--gradient-primary);
  padding: 96px 0 48px;   /* zvětšený top padding ať obsah neřeže navbar */
  margin-top: 0;
  color: hsl(var(--primary-foreground));
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .cs-course-header { padding: 80px 0 36px; }
}
.cs-course-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.55;
  pointer-events: none;
}
.cs-course-header .container,
.cs-course-header .container-narrow {
  position: relative;
  z-index: 1;
}
.cs-course-header h1 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--primary-foreground));
  line-height: 1.15;
}
.cs-course-header p {
  margin: 0;
  color: hsla(0, 0%, 100%, 0.88);
  font-size: 15px;
  font-weight: 500;
}

/* ── Tabs ─────────────────────────────────────────────────────
   Desktop (≥769px): sticky top bar pod hero, indikátor zespodu.
   Mobile (≤768px): FIXED bottom nav s indikátorem shora + safe-area
   pro iPhone notch (CLAUDE.md mandate).
   ───────────────────────────────────────────────────────────── */
.cs-tabs {
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 hsl(var(--border));
}
.cs-tabs-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cs-tab-btn {
  flex-shrink: 0;
  padding: 16px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.cs-tab-btn:hover { color: hsl(var(--foreground)); }
.cs-tab-btn.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

@media (max-width: 768px) {
  .cs-tabs {
    /* Fixed bottom nav (mobile pattern jako klubová appka) */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    border-bottom: none;
    border-top: 1px solid hsl(var(--border));
    box-shadow: 0 -3px 14px hsla(0, 0%, 0%, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .cs-tabs-inner {
    gap: 0;
    justify-content: space-around;
    overflow-x: visible;
  }
  .cs-tab-btn {
    flex: 1;
    padding: 12px 6px 14px;
    border-bottom: none;
    border-top: 2px solid transparent;     /* active indicator se přesune nahoru */
    font-size: 11.5px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    color: hsl(var(--muted-foreground));
  }
  .cs-tab-btn.active {
    color: hsl(var(--primary));
    border-bottom-color: transparent;
    border-top-color: hsl(var(--primary));
    background: hsla(145, 75%, 28%, 0.04);
  }
  /* Content musí mít prostor pro fixed bottom nav (cca 64px + safe-area) */
  .cs-content-wrap {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  /* Footer (© David Vaš…) taky zvednout, aby nemizel pod tabs */
  .cs-footer {
    padding-bottom: calc(24px + 70px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Content shell ───────────────────────────────────────────── */
.cs-content-wrap {
  padding: 32px 16px 96px;
  background: hsl(145, 25%, 98%);
  min-height: 60vh;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.cs-content { color: hsl(var(--foreground)); min-width: 0; }

/* ── F6.6 2-col layout (main + sidebar) ────────────────────── */
.cs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .cs-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
  }
}
@media (min-width: 1200px) {
  .cs-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

/* ── Týdny grid (F6.2.1 — gradient karty s lock states) ────────
   Velké číslo týdne na barevném gradient pozadí + bílá lower-half
   s názvem/popisem/status. Lock state = zšeřená karta + 🔒 + datum.
   ───────────────────────────────────────────────────────────── */
.cs-weeks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .cs-weeks-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .cs-weeks-grid { grid-template-columns: repeat(3, 1fr); }
}

.cs-week-card {
  --cs-grad-from: hsl(145, 50%, 32%);
  --cs-grad-to:   hsl(150, 60%, 18%);
  background: hsl(var(--card));
  border: 1px solid hsla(145, 15%, 88%, 0.6);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--transition-smooth), box-shadow 0.25s var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}
.cs-week-card--unlocked { cursor: pointer; }
.cs-week-card--unlocked:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px hsla(145, 50%, 22%, 0.20), 0 4px 12px hsla(0, 0%, 0%, 0.06);
}
.cs-week-card--unlocked:focus-visible {
  outline: 3px solid var(--cs-grad-from);
  outline-offset: 2px;
}

/* ── Visual area: foto NEBO jemný gradient + tmavý overlay + lock circle ── */
.cs-week-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  padding: 16px 18px;
  overflow: hidden;
  background-color: var(--cs-grad-to);
  background-size: cover;
  background-position: center;
}
.cs-week-card__visual--gradient {
  background-image: linear-gradient(135deg, var(--cs-grad-from) 0%, var(--cs-grad-to) 100%);
}
/* Tmavý overlay přes celou visual area — výraznější pro locked */
.cs-week-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0.1) 0%, hsla(0, 0%, 0%, 0.55) 100%);
  pointer-events: none;
  transition: background 0.25s ease;
}
.cs-week-card--locked .cs-week-card__overlay {
  background: hsla(0, 0%, 0%, 0.62);
}
.cs-week-card--locked .cs-week-card__body { opacity: 0.85; }
.cs-week-card--locked .cs-week-card__visual--gradient {
  /* Trošku desaturovat gradient pod overlayem */
  filter: saturate(0.5);
}
.cs-week-card--unlocked:hover .cs-week-card__overlay {
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0.05) 0%, hsla(0, 0%, 0%, 0.5) 100%);
}

/* Lock circle uprostřed — kruhový background, jemný SVG icon */
.cs-week-card__lock-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid hsla(0, 0%, 100%, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  box-shadow: 0 4px 14px hsla(0, 0%, 0%, 0.25);
}
.cs-week-card__lock-circle svg {
  width: 24px;
  height: 24px;
}
.cs-week-card__label {
  position: relative;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.95);
  text-shadow: 0 1px 4px hsla(0, 0%, 0%, 0.45);
}

/* Body */
.cs-week-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cs-week-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: hsl(var(--foreground));
}
.cs-week-card__description {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  flex: 1;
}
.cs-week-card__status { margin-top: auto; }

/* Status badges (sdílené pro grid + detail) */
.cs-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.cs-status-badge--success {
  background: hsla(142, 70%, 45%, 0.12);
  color: hsl(150, 80%, 22%);
}
.cs-status-badge--locked {
  background: hsla(215, 15%, 50%, 0.12);
  color: hsl(215, 25%, 32%);
}
.cs-status-badge--muted {
  background: hsla(215, 15%, 50%, 0.08);
  color: hsl(215, 15%, 45%);
}
/* F6.6 — Onboarding wizard (5 kroků po prvním přihlášení) */
.cs-onboarding {
  position: fixed;
  inset: 0;
  background: hsla(150, 40%, 8%, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
.cs-onboarding[hidden] { display: none; }
.cs-onboarding__card {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 24px 28px 28px;
  box-shadow: 0 24px 64px hsla(150, 70%, 10%, 0.4);
  position: relative;
}
.cs-onboarding__progress {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.cs-onboarding__step {
  flex: 1;
  height: 4px;
  background: hsl(150, 18%, 90%);
  border-radius: 999px;
  transition: background 0.25s ease;
}
.cs-onboarding__step--active {
  background: hsl(142, 70%, 45%);
}
.cs-onboarding__skip {
  text-align: right;
  margin-bottom: 8px;
}
.cs-onboarding__skip-btn {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 6px;
  font-family: inherit;
}
.cs-onboarding__skip-btn:hover { color: hsl(150, 30%, 14%); text-decoration: underline; }

.cs-onb-step {
  display: none;
}
.cs-onb-step--active { display: block; }
.cs-onb-step__icon {
  text-align: center;
  font-size: 3.2rem;
  margin-bottom: 8px;
  line-height: 1;
}
.cs-onb-step h2 {
  margin: 0 0 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
  text-align: center;
  letter-spacing: -0.01em;
}
.cs-onb-step__lead {
  margin: 0 0 20px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: hsl(150, 18%, 28%);
  text-align: center;
}
.cs-onb-step__lead strong { color: hsl(150, 30%, 14%); }
.cs-onb-step__hint {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

/* Krok 1: Target kartičky */
.cs-onb-targets {
  display: grid;
  gap: 10px;
}
.cs-onb-target {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  gap: 0 12px;
  text-align: left;
  background: #fff;
  border: 2px solid hsl(150, 18%, 88%);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.cs-onb-target:hover {
  border-color: hsl(142, 70%, 50%);
  background: hsl(150, 30%, 98%);
  transform: translateY(-1px);
}
.cs-onb-target--selected {
  border-color: hsl(142, 70%, 38%);
  background: linear-gradient(135deg, hsl(150, 30%, 96%) 0%, hsl(142, 40%, 92%) 100%);
  box-shadow: 0 4px 12px hsla(142, 70%, 32%, 0.18);
}
.cs-onb-target__emoji {
  grid-row: 1 / span 2;
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cs-onb-target strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
}
.cs-onb-target small {
  font-size: 0.84rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

/* Krok 2: Externí linky */
.cs-onb-links {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-onb-links a {
  display: block;
  background: hsl(150, 30%, 97%);
  border: 1px solid hsl(150, 20%, 86%);
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: hsl(150, 30%, 14%);
  font-size: 0.96rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cs-onb-links a:hover {
  border-color: hsl(142, 70%, 50%);
  background: hsl(150, 30%, 94%);
}
.cs-onb-links a small {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  margin-left: 6px;
}

/* Krok 3: WhatsApp */
.cs-onb-whatsapp {
  display: block;
  background: linear-gradient(135deg, hsl(142, 70%, 42%), hsl(150, 60%, 32%));
  color: #fff !important;
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  margin: 14px 0 8px;
  box-shadow: 0 10px 28px hsla(142, 70%, 32%, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cs-onb-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px hsla(142, 70%, 32%, 0.4);
}

/* Krok 4: Testovací km */
.cs-onb-test-input {
  display: block;
  margin: 18px 0 12px;
}
.cs-onb-test-input > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: hsl(150, 20%, 30%);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.cs-onb-test-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  justify-content: center;
}
.cs-onb-test-time input {
  width: 80px;
  text-align: center;
  padding: 10px;
  border: 2px solid hsl(150, 20%, 82%);
  border-radius: 10px;
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
  background: hsl(150, 30%, 99%);
}
.cs-onb-test-time input:focus {
  outline: none;
  border-color: hsl(142, 70%, 50%);
  box-shadow: 0 0 0 3px hsla(142, 70%, 50%, 0.14);
}
.cs-onb-test-result {
  background: hsl(150, 30%, 96%);
  border: 1px solid hsl(150, 25%, 85%);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.96rem;
  color: hsl(150, 30%, 18%);
  margin: 4px 0 0;
}
.cs-onb-test-result strong { color: hsl(142, 70%, 28%); }

/* Krok 5: Welcome list */
.cs-onb-welcome {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-onb-welcome li {
  background: hsl(150, 30%, 97%);
  border: 1px solid hsl(150, 20%, 88%);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: hsl(150, 22%, 24%);
}
.cs-onb-welcome strong { color: hsl(150, 30%, 14%); }

/* Buttons (back / next / finish) */
.cs-onb-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cs-onb-actions--single { justify-content: center; }
.cs-onb-back-btn, .cs-onb-next-btn, .cs-onb-finish-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cs-onb-back-btn {
  background: hsl(150, 18%, 95%);
  border: 1px solid hsl(150, 18%, 82%);
  color: hsl(150, 25%, 28%);
}
.cs-onb-back-btn:hover { background: hsl(150, 18%, 90%); }
.cs-onb-next-btn {
  background: hsl(142, 70%, 45%);
  border: 1px solid hsl(142, 70%, 35%);
  color: #fff;
}
.cs-onb-next-btn:hover { background: hsl(142, 70%, 50%); transform: translateY(-1px); }
.cs-onb-finish-btn {
  flex: 0 1 280px;
  background: linear-gradient(135deg, hsl(142, 70%, 45%), hsl(150, 60%, 35%));
  border: 1px solid hsl(142, 70%, 28%);
  color: #fff;
  font-size: 1.05rem;
  padding: 14px 24px;
  box-shadow: 0 10px 28px hsla(142, 70%, 32%, 0.3);
}
.cs-onb-finish-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px hsla(142, 70%, 32%, 0.4); }

/* F6.6 — Target selector (sub-úroveň cíle: Maraton/Půlmaraton/10km) */
.cs-target-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: hsl(150, 30%, 97%);
  border: 1px solid hsl(150, 20%, 86%);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: hsl(150, 28%, 24%);
}
.cs-target-selector label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cs-target-selector__admin-tag {
  display: inline-block;
  background: linear-gradient(135deg, hsl(280, 70%, 55%), hsl(260, 65%, 50%));
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cs-target-selector select {
  flex: 0 1 280px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid hsl(150, 20%, 82%);
  border-radius: 8px;
  font-size: 0.94rem;
  color: hsl(150, 28%, 22%);
  font-weight: 600;
  cursor: pointer;
}
.cs-target-selector select:focus {
  outline: none;
  border-color: hsl(142, 70%, 55%);
  box-shadow: 0 0 0 3px hsla(142, 70%, 55%, 0.18);
}
.cs-target-selector__current {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* F6.6 — Admin preview badge (trenér vidí dřív, běžci až později) */
.cs-status-badge--admin {
  background: linear-gradient(135deg, hsla(280, 70%, 60%, 0.15) 0%, hsla(260, 70%, 60%, 0.15) 100%);
  color: hsl(280, 60%, 32%);
  border: 1px solid hsl(280, 50%, 80%);
}
/* Admin preview karta — jemný fialový border místo lock placeholderu */
.cs-week-card--admin-preview {
  position: relative;
}
.cs-week-card--admin-preview::after {
  content: "👁";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: hsla(280, 60%, 50%, 0.92);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px hsla(280, 50%, 30%, 0.32);
}

/* Per-week color variants — tlumené, harmonické (souznění s davidvas.cz green brand) */
.cs-week-card[data-week="1"]     { --cs-grad-from: #1f8a5c; --cs-grad-to: #0f4d33; }
.cs-week-card[data-week="2"]     { --cs-grad-from: #2b7a8c; --cs-grad-to: #154857; }
.cs-week-card[data-week="3"]     { --cs-grad-from: #5d4a8a; --cs-grad-to: #322755; }
.cs-week-card[data-week="4"]     { --cs-grad-from: #9c6a2a; --cs-grad-to: #5a3a14; }
.cs-week-card[data-week="5"]     { --cs-grad-from: #94413f; --cs-grad-to: #5a2422; }
.cs-week-card[data-week="6"]     { --cs-grad-from: #8a4670; --cs-grad-to: #4e2440; }
.cs-week-card[data-week="7"]     { --cs-grad-from: #3a5a8a; --cs-grad-to: #1d3357; }
.cs-week-card[data-week="8"]     { --cs-grad-from: #2a7a72; --cs-grad-to: #134845; }
.cs-week-card[data-week="bonus"] { --cs-grad-from: #a07a2a; --cs-grad-to: #604610; }

/* ── Detail (week / exercise / tip) ──────────────────────────── */
.cs-detail {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px) {
  .cs-detail { padding: 20px 18px 24px; }
}
.cs-back-btn {
  background: none;
  border: none;
  color: hsl(var(--primary));
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  margin-bottom: 18px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cs-back-btn:hover { color: hsl(var(--primary-deep)); }
.cs-detail-header { margin-bottom: 20px; }
.cs-detail-header h2 {
  margin: 10px 0 0;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.7rem;
  color: hsl(var(--foreground));
  font-weight: 800;
  line-height: 1.2;
}
.cs-detail h2 {
  margin: 8px 0 14px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  font-weight: 800;
}
.cs-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #000;
}
.cs-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-detail-body {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 24px;
  color: hsl(var(--foreground));
}
.cs-detail-body h2,
.cs-detail-body h3 {
  margin: 1.5em 0 .5em;
  color: hsl(var(--foreground));
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-weight: 700;
}
.cs-detail-body h2 { font-size: 1.4rem; }
.cs-detail-body h3 { font-size: 1.15rem; }
.cs-detail-body a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cs-detail-body a:hover { color: hsl(var(--primary-deep)); }
.cs-detail-body ul, .cs-detail-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.cs-detail-body li { margin-bottom: 0.4em; }
.cs-detail-body p { margin: 0 0 1em; }
.cs-detail-body strong { color: hsl(var(--foreground)); }
.cs-detail-body blockquote {
  border-left: 3px solid hsl(var(--primary));
  padding: 4px 0 4px 16px;
  margin: 1em 0;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

.cs-resources {
  background: hsla(145, 25%, 96%, 0.7);
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.cs-resources h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: hsl(var(--foreground));
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-weight: 700;
}
.cs-resources ul { list-style: none; padding: 0; margin: 0; }
.cs-resources li {
  padding: 10px 0;
  border-bottom: 1px solid hsl(var(--border));
}
.cs-resources li:last-child { border-bottom: none; }
.cs-resources a {
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
}
.cs-resources a:hover { text-decoration: underline; }

/* ── Cviky ───────────────────────────────────────────────────── */
.cs-exercise-cat { margin-bottom: 32px; }
.cs-exercise-cat h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  color: hsl(var(--foreground));
  font-weight: 700;
}
.cs-exercises-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .cs-exercises-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.cs-exercise-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-card);
}
.cs-exercise-card:hover {
  transform: translateY(-2px);
  border-color: hsla(142, 70%, 45%, 0.5);
  box-shadow: var(--shadow-card-hover);
}
.cs-exercise-card img,
.cs-exercise-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--gradient-glow), hsla(145, 25%, 96%, 1);
}
.cs-exercise-card h4 {
  padding: 10px 12px 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: hsl(var(--foreground));
}

/* ── Tipy ────────────────────────────────────────────────────── */
.cs-tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .cs-tips-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.cs-tip-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-card);
}
.cs-tip-card:hover {
  border-color: hsla(142, 70%, 45%, 0.5);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}
.cs-tip-card.is-highlighted {
  border-color: hsla(142, 70%, 45%, 0.6);
  background: linear-gradient(145deg, hsl(var(--card)) 0%, hsla(142, 70%, 95%, 0.5) 100%);
}
.cs-tip-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: hsl(var(--foreground));
  font-weight: 700;
  font-family: var(--font-display, 'Montserrat', sans-serif);
}
.cs-tip-card small {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ── Empty state ─────────────────────────────────────────────── */
.cs-empty {
  text-align: center;
  padding: 64px 24px;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--card));
  border: 1px dashed hsl(var(--border));
  border-radius: 20px;
}
.cs-empty p { margin: 8px 0; }
.cs-empty p:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ── Footer ──────────────────────────────────────────────────── */
.cs-footer {
  background: hsl(145, 25%, 96%);
  border-top: 1px solid hsl(var(--border));
  padding: 24px 16px;
  margin-top: auto;
}
.cs-footer .container { color: hsl(var(--muted-foreground)); }

/* ============================================================
   Login page — zelený hero gradient pozadí, bílá karta (jako .hero feel)
   ============================================================ */
.cs-login-page {
  background-color: #0a2818;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Dvě fotky stejně jako bezecky-kurz (levá + pravá s mask fade do středu) */
.cs-login-photo {
  position: absolute;
  top: 0;
  height: 100%;
  width: 38%;
  z-index: 0;
  pointer-events: none;
}
.cs-login-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-login-photo--left {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
}
.cs-login-photo--right {
  right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(270deg, #000 0%, #000 55%, transparent 100%);
}
/* David je víc napravo na fotce → object-position posune content tak,
   aby byl celý v rámu (ne oříznutý) */
.cs-login-photo--right img {
  object-position: 70% center;
}
/* Tmavě-zelený overlay přes obě fotky + střed (jako kurz-hero-overlay) */
.cs-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, hsla(150, 80%, 10%, 0.55) 0%, hsla(145, 75%, 15%, 0.85) 100%),
    radial-gradient(ellipse at center, hsla(150, 80%, 12%, 0.45) 0%, hsla(150, 80%, 8%, 0.92) 70%);
}
.cs-login-page .container,
.cs-login-page .container-narrow {
  position: relative;
  z-index: 2;
}
/* Mobile — schovej pravou fotku, levá jako pozadí ztlumená */
@media (max-width: 899px) {
  .cs-login-photo--right { display: none; }
  .cs-login-photo--left {
    width: 100%;
    opacity: 0.5;
    -webkit-mask-image: none;
            mask-image: none;
  }
}
.cs-login-page .container,
.cs-login-page .container-narrow {
  position: relative;
  z-index: 1;
}
.cs-login-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-hero);
  color: hsl(var(--foreground));
}
.cs-login-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.2;
}
.cs-login-lead {
  margin: 0 0 24px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}
.cs-login-card label {
  display: block;
  margin: 14px 0 6px;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 13px;
}
.cs-login-card input[type="email"],
.cs-login-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  color: hsl(var(--foreground));
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.cs-login-card input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(145, 75%, 28%, 0.1);
}
.cs-login-card button[type="submit"] {
  width: 100%;
  margin-top: 22px;
}
.cs-error-msg {
  background: hsla(0, 90%, 96%, 1);
  border: 1px solid hsla(0, 80%, 70%, 0.5);
  color: hsl(0, 75%, 35%);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 13px;
}
.cs-login-actions {
  text-align: center;
  margin: 16px 0 0;
  font-size: 13px;
}
.cs-login-actions a {
  color: hsl(var(--muted-foreground));
  text-decoration: underline;
}
.cs-login-actions a:hover { color: hsl(var(--primary)); }
.cs-divider {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 24px 0 18px;
}
.cs-login-footnote {
  font-size: 12.5px;
  color: hsl(var(--muted-foreground));
  text-align: center;
  line-height: 1.6;
  margin: 0;
}
.cs-login-footnote a { color: hsl(var(--primary)); font-weight: 600; }
.cs-login-footnote a:hover { text-decoration: underline; }

/* ============================================================
   F6.2.6 — Mobile-only refinement (< 640px)
   Cíl: kompaktnější karty týdnů, line-clamp na title/description,
   menší lock circle, tighter spacing. Desktop ≥640px beze změny.
   ============================================================ */

@media (max-width: 639px) {
  /* Tighter grid spacing */
  .cs-weeks-grid {
    gap: 14px;
  }

  /* Subtle shadow, menší radius — mobile feels lighter */
  .cs-week-card {
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  /* Visual area — banner ratio (širší, ne vyšší) */
  .cs-week-card__visual {
    aspect-ratio: 21 / 9;
    padding: 12px 16px;
  }

  /* Lock circle — menší (44px místo 56px) */
  .cs-week-card__lock-circle {
    width: 44px;
    height: 44px;
  }
  .cs-week-card__lock-circle svg {
    width: 20px;
    height: 20px;
  }

  /* Label „TÝDEN N" — kompaktní */
  .cs-week-card__label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  /* Body — méně paddingu */
  .cs-week-card__body {
    padding: 14px 18px 16px;
  }

  /* Title — 2 řádky max, žádné rozletění */
  .cs-week-card__title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
            line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: none;
  }

  /* Description — 2 řádky max */
  .cs-week-card__description {
    font-size: 0.825rem;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
            line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: none;
  }

  /* Status badge — jednořádkový s ellipsis pokud dlouhý */
  .cs-status-badge,
  .status-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Locked karty — lepší contrast (čitelnost) */
  .cs-week-card--locked .cs-week-card__body {
    opacity: 0.92;   /* z 0.85 → 0.92, čitelnější */
  }

  /* C.1 — Tap target feedback (mobile UX) */
  .cs-week-card--unlocked {
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.15);
  }
  .cs-week-card--unlocked:active {
    transform: scale(0.985);
    transition: transform 0.1s ease;
  }
}

/* Extra small (iPhone SE 1st gen, 320px) */
@media (max-width: 374px) {
  .cs-week-card__visual {
    aspect-ratio: 21 / 9;
    padding: 10px 14px;
  }
  .cs-week-card__lock-circle {
    width: 40px;
    height: 40px;
  }
  .cs-week-card__lock-circle svg {
    width: 18px;
    height: 18px;
  }
  .cs-week-card__body {
    padding: 12px 16px 14px;
  }
  .cs-week-card__title {
    font-size: 0.95rem;
  }
  .cs-week-card__description {
    font-size: 0.78rem;
  }
}


/* ============================================================
   F6.4 Milník 2 — Skupinové sekce v Tréninkových plánech
   ============================================================ */
.cs-group-info-banner {
  background: linear-gradient(135deg, hsl(40, 90%, 92%) 0%, hsl(40, 90%, 96%) 100%);
  border: 1px solid hsl(40, 70%, 70%);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  color: hsl(40, 70%, 28%);
  font-size: 0.94rem;
  line-height: 1.5;
}

.cs-group-section { margin-bottom: 32px; }
.cs-group-section:last-child { margin-bottom: 0; }

.cs-group-section__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid hsl(150, 30%, 92%);
}
.cs-group-section__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: hsl(150, 30%, 14%);
}
.cs-group-section__desc {
  margin: 0;
  font-size: 0.84rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   F6.4 M2 — Nástěnka REDESIGN
   Welcome banner + level badge + countdown + actions + quicklinks
   Důraz na čitelnost: každá sekce ve své kartě s jasným nadpisem.
   ============================================================ */
.cs-nastenka {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.cs-section-title {
  margin: 0 0 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: hsl(150, 30%, 14%);
}

/* ── Welcome banner (Ahoj + úroveň) ───────────────────────── */
.cs-welcome-banner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(135deg, #fff 0%, hsl(150, 35%, 97%) 100%);
  border: 1px solid hsl(150, 20%, 88%);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 6px 20px hsla(150, 40%, 12%, 0.05);
}
.cs-welcome-banner__greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-welcome-banner__wave {
  font-size: 2rem;
  line-height: 1;
}
.cs-welcome-banner__greeting h2 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(150, 30%, 14%);
}
.cs-welcome-banner__greeting h2 strong {
  color: hsl(142, 70%, 38%);
}

/* ── Level badge ──────────────────────────────────────────── */
.cs-level-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: hsl(150, 30%, 96%);
  border: 1px solid hsl(150, 30%, 86%);
}
.cs-level-badge--unassigned {
  background: hsl(45, 80%, 96%);
  border-color: hsl(45, 60%, 78%);
}
.cs-level-badge__emoji {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.cs-level-badge__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.cs-level-badge__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground));
}
.cs-level-badge__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: hsl(150, 30%, 14%);
}
.cs-level-badge--unassigned .cs-level-badge__name {
  color: hsl(35, 70%, 30%);
}
.cs-level-badge__desc {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
}

/* ── Countdown card (centered stack: eyebrow → čísla → caption) ── */
.cs-countdown-card {
  background: linear-gradient(135deg, hsl(150, 80%, 14%) 0%, hsl(145, 70%, 28%) 100%);
  border-radius: 16px;
  padding: 22px 20px 20px;
  color: #fff;
  box-shadow: 0 14px 36px hsla(150, 80%, 5%, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.cs-countdown-eyebrow {
  display: inline-block;
  background: hsla(0, 0%, 100%, 0.18);
  border: 1px solid hsla(0, 0%, 100%, 0.22);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.cs-countdown {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  margin: 0;
  flex-wrap: nowrap;
}
.cs-countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  background: hsla(0, 0%, 100%, 0.10);
  border: 1px solid hsla(0, 0%, 100%, 0.16);
  border-radius: 10px;
  padding: 10px 8px;
}
.cs-countdown__value {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 4.2vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.cs-countdown__label {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.82;
}
.cs-countdown__sep {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 3.2vw, 1.4rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0.4;
  padding: 0 2px;
}
.cs-countdown-caption {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.92;
  max-width: 460px;
}
@media (max-width: 520px) {
  .cs-countdown-card { padding: 18px 14px 16px; gap: 12px; }
  .cs-countdown__item { min-width: 54px; padding: 8px 4px; }
  .cs-countdown { gap: 5px; }
  .cs-countdown__sep { padding: 0; font-size: 1rem; }
}
@media (max-width: 380px) {
  /* Na úzkých mobilech schovat ":" oddělovače — čísla zůstanou v řadě */
  .cs-countdown__sep { display: none; }
  .cs-countdown { gap: 6px; }
}

/* ── Společná karta-sekce (novinky / akce / odkazy) ───────── */
.cs-card-section {
  background: #fff;
  border: 1px solid hsl(150, 15%, 88%);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px hsla(150, 40%, 12%, 0.03);
}

/* ──────────────────────────────────────────────────────────
   🎯 Action Hub — sjednocení „Co teď" (sloučení starých Akce + Rychlé odkazy)
   Bento-grid pattern á la Skool/TrainingPeaks dashboard
   ────────────────────────────────────────────────────────── */
.cs-action-hub {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 22px;
}
.cs-action-hub__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}
.cs-action-hub__head .cs-section-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: hsl(150, 30%, 14%);
}

/* Hero — velká primární karta (full width, gradient zelená) */
.cs-hero-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: linear-gradient(135deg, hsl(142, 72%, 42%) 0%, hsl(150, 60%, 30%) 100%);
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 18px 38px hsla(150, 60%, 22%, 0.28), 0 2px 6px hsla(150, 60%, 22%, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.cs-hero-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, hsla(150, 90%, 70%, 0.25), transparent 60%);
  pointer-events: none;
}
.cs-hero-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px hsla(150, 60%, 22%, 0.36), 0 4px 10px hsla(150, 60%, 22%, 0.14);
}
.cs-hero-action__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
.cs-hero-action__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: hsla(0, 0%, 100%, 0.18);
  border: 1px solid hsla(0, 0%, 100%, 0.28);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
.cs-hero-action__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cs-hero-action__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cs-hero-action__subtitle {
  font-size: 0.92rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.92);
  line-height: 1.4;
}
.cs-hero-action__subtitle strong {
  color: #fff;
  font-weight: 800;
}
.cs-hero-action__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 11px 18px;
  background: hsla(0, 0%, 100%, 0.18);
  border: 1px solid hsla(0, 0%, 100%, 0.3);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cs-hero-action:hover .cs-hero-action__cta {
  background: hsla(0, 0%, 100%, 0.28);
}
.cs-hero-action__arrow {
  transition: transform 0.18s ease;
}
.cs-hero-action:hover .cs-hero-action__arrow {
  transform: translateX(3px);
}
@media (max-width: 640px) {
  .cs-hero-action {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px;
  }
  .cs-hero-action__cta {
    align-self: stretch;
    justify-content: center;
  }
}

/* Bento grid — 4 kartičky (Harmonogram / Slevy / E-shop / Živáky), 4 sloupce na desktopu */
.cs-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px) {
  .cs-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cs-bento-grid { grid-template-columns: 1fr; }
}
.cs-bento-card,
.cs-bento-card:link,
.cs-bento-card:visited,
.cs-bento-card:hover,
.cs-bento-card:active,
.cs-bento-card:focus {
  text-decoration: none;
  -webkit-text-decoration: none;
}
.cs-bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid hsl(150, 18%, 88%);
  border-radius: 16px;
  color: hsl(150, 30%, 14%);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
/* Reset i pro vnořené odkazy/strong/code — bez globální dědičnosti podtržení */
.cs-bento-card *,
.cs-bento-card strong,
.cs-bento-card code,
.cs-bento-card .cs-bento-card__title,
.cs-bento-card .cs-bento-card__desc,
.cs-bento-card .cs-bento-card__badge {
  text-decoration: none;
  -webkit-text-decoration: none;
}
.cs-bento-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.14;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.cs-bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px hsla(150, 40%, 18%, 0.12);
}
.cs-bento-card:hover::before {
  opacity: 0.22;
  transform: scale(1.08);
}
.cs-bento-card__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.7);
  color: hsl(150, 25%, 24%);
  border: 1px solid hsl(150, 18%, 84%);
  margin-bottom: 4px;
}
.cs-bento-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 2px;
}
.cs-bento-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cs-bento-card__desc {
  font-size: 0.88rem;
  line-height: 1.42;
  color: hsl(150, 18%, 36%);
}
.cs-bento-card__desc code {
  background: hsla(150, 30%, 92%, 0.7);
  border: 1px solid hsl(150, 20%, 80%);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.84em;
  font-weight: 700;
  color: hsl(150, 35%, 22%);
}
.cs-bento-card__arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.cs-bento-card:hover .cs-bento-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Color variants — color-coded podle typu akce */
.cs-bento-card--emerald {
  background: linear-gradient(160deg, #fff 0%, hsl(150, 50%, 97%) 100%);
  border-color: hsl(150, 40%, 84%);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.cs-bento-card--emerald::before { background: hsl(150, 60%, 45%); }
.cs-bento-card--emerald .cs-bento-card__badge {
  background: hsl(150, 50%, 95%);
  color: hsl(150, 60%, 26%);
  border-color: hsl(150, 40%, 80%);
}
.cs-bento-card--emerald .cs-bento-card__arrow { color: hsl(150, 60%, 36%); }

.cs-bento-card--coral {
  background: linear-gradient(160deg, #fff 0%, hsl(14, 80%, 98%) 100%);
  border-color: hsl(14, 50%, 86%);
}
.cs-bento-card--coral::before { background: hsl(14, 80%, 60%); }
.cs-bento-card--coral .cs-bento-card__badge {
  background: hsl(14, 80%, 96%);
  color: hsl(14, 70%, 32%);
  border-color: hsl(14, 50%, 80%);
}
.cs-bento-card--coral .cs-bento-card__arrow { color: hsl(14, 70%, 42%); }

.cs-bento-card--sky {
  background: linear-gradient(160deg, #fff 0%, hsl(204, 80%, 98%) 100%);
  border-color: hsl(204, 50%, 86%);
}
.cs-bento-card--sky::before { background: hsl(204, 80%, 55%); }
.cs-bento-card--sky .cs-bento-card__badge {
  background: hsl(204, 70%, 96%);
  color: hsl(204, 70%, 30%);
  border-color: hsl(204, 50%, 80%);
}
.cs-bento-card--sky .cs-bento-card__arrow { color: hsl(204, 70%, 42%); }

.cs-bento-card--violet {
  background: linear-gradient(160deg, #fff 0%, hsl(268, 60%, 98%) 100%);
  border-color: hsl(268, 40%, 88%);
}
.cs-bento-card--violet::before { background: hsl(268, 60%, 60%); }
.cs-bento-card--violet .cs-bento-card__badge {
  background: hsl(268, 50%, 96%);
  color: hsl(268, 60%, 32%);
  border-color: hsl(268, 40%, 84%);
}
.cs-bento-card--violet .cs-bento-card__arrow { color: hsl(268, 60%, 42%); }

/* ── Modal overlay (Harmonogram kurzu) ──────────────────────── */
.cs-modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(150, 40%, 8%, 0.65);
  backdrop-filter: blur(6px);
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  animation: cs-modal-fade 0.18s ease-out;
}
@keyframes cs-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cs-modal-card {
  background: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px hsla(150, 70%, 10%, 0.4);
  overflow: hidden;
  animation: cs-modal-pop 0.22s cubic-bezier(0.2, 1, 0.3, 1.05);
}
@keyframes cs-modal-pop {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.cs-modal-card--harmonogram { max-width: 600px; }
.cs-modal-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid hsl(150, 18%, 90%);
  background: linear-gradient(180deg, hsl(150, 30%, 98%), #fff);
}
.cs-modal-card__head h2 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: hsl(150, 30%, 14%);
}
.cs-modal-card__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid hsl(150, 18%, 86%);
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  color: hsl(150, 25%, 30%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.cs-modal-card__close:hover {
  background: hsl(150, 18%, 94%);
  transform: rotate(90deg);
}
.cs-modal-card__body {
  padding: 18px 22px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.cs-modal-open { overflow: hidden; }

/* Harmonogram seznam */
.cs-harmonogram-intro {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: hsl(150, 20%, 30%);
  background: hsl(150, 30%, 97%);
  border: 1px solid hsl(150, 22%, 88%);
  border-radius: 10px;
  padding: 10px 14px;
}
.cs-harmonogram-intro strong { color: hsl(150, 30%, 14%); }
.cs-harmonogram-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-harmonogram-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid hsl(150, 18%, 90%);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cs-harmonogram-row:hover {
  background: hsl(150, 30%, 98%);
  border-color: hsl(150, 35%, 78%);
}
.cs-harmonogram-row__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, hsl(142, 70%, 42%), hsl(150, 60%, 32%));
  color: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px hsla(142, 70%, 32%, 0.22);
}
.cs-harmonogram-row__main {
  flex: 1;
  min-width: 0;
}
.cs-harmonogram-row__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  color: hsl(150, 30%, 14%);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cs-harmonogram-row__when {
  font-size: 0.84rem;
  color: hsl(150, 18%, 36%);
  margin-top: 2px;
  line-height: 1.4;
}
.cs-harmonogram-row__when em {
  font-style: normal;
  color: hsl(150, 30%, 24%);
}
.cs-harmonogram-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}
.cs-harmonogram-badge--bonus {
  background: hsl(268, 60%, 95%);
  color: hsl(268, 60%, 36%);
  border: 1px solid hsl(268, 40%, 82%);
}
.cs-harmonogram-badge--final {
  background: hsl(40, 90%, 94%);
  color: hsl(28, 80%, 32%);
  border: 1px solid hsl(40, 70%, 78%);
}
.cs-harmonogram-badge--hidden {
  background: hsl(0, 0%, 95%);
  color: hsl(0, 0%, 35%);
  border: 1px solid hsl(0, 0%, 82%);
}
.cs-harmonogram-footer {
  margin: 18px 0 0;
  padding: 10px 14px;
  background: hsl(40, 70%, 96%);
  border: 1px solid hsl(40, 50%, 84%);
  border-radius: 10px;
  font-size: 0.86rem;
  color: hsl(28, 50%, 28%);
  text-align: center;
}
.cs-harmonogram-footer strong { color: hsl(28, 65%, 24%); }

@media (max-width: 480px) {
  .cs-modal-card__head { padding: 14px 16px 12px; }
  .cs-modal-card__body { padding: 14px 16px 20px; }
  .cs-harmonogram-row { padding: 10px 12px; gap: 10px; }
  .cs-harmonogram-row__num { width: 42px; height: 42px; font-size: 0.88rem; }
}

/* ── (LEGACY — staré Akce + Rychlé odkazy, ponechané kvůli ostatním view) ── */
.cs-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.cs-action-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff 0%, hsl(150, 30%, 98%) 100%);
  border: 1px solid hsl(150, 20%, 84%);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cs-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px hsla(142, 60%, 30%, 0.15);
  border-color: hsl(142, 60%, 55%);
}
.cs-action-card--accent {
  background: linear-gradient(135deg, hsl(0, 80%, 96%) 0%, hsl(0, 80%, 99%) 100%);
  border-color: hsl(0, 70%, 80%);
}
.cs-action-card--accent:hover {
  border-color: hsl(0, 75%, 55%);
  box-shadow: 0 10px 24px hsla(0, 70%, 50%, 0.18);
}
.cs-action-card__emoji {
  font-size: 1.6rem;
  line-height: 1;
}
.cs-action-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
}
.cs-action-card--accent .cs-action-card__title {
  color: hsl(0, 75%, 30%);
}
.cs-action-card__desc {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
}

/* ── Rychlé odkazy (mřížka 2 sloupce — opraveno) ─────────── */
.cs-quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.cs-quicklink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid hsl(150, 15%, 88%);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-width: 0;
}
.cs-quicklink:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px hsla(150, 40%, 12%, 0.08);
  border-color: hsl(150, 30%, 70%);
}
.cs-quicklink__icon {
  font-size: 1.4rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(150, 30%, 94%);
  border-radius: 8px;
  flex-shrink: 0;
}
.cs-quicklink__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cs-quicklink__text strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: hsl(150, 30%, 14%);
}
.cs-quicklink__desc {
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Členské novinky karty ────────────────────────────────── */
.cs-news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.cs-news-card {
  padding: 14px 16px;
  background: hsl(150, 30%, 98%);
  border: 1px solid hsl(150, 20%, 88%);
  border-radius: 10px;
}
.cs-news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.cs-news-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(150, 30%, 35%);
  background: hsl(150, 30%, 92%);
  padding: 3px 9px;
  border-radius: 999px;
}
.cs-news-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(220, 60%, 45%);
  background: hsl(220, 60%, 95%);
  padding: 3px 9px;
  border-radius: 999px;
}
.cs-news-card__title {
  margin: 0 0 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: hsl(150, 30%, 14%);
}
.cs-news-card__body {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: hsl(150, 15%, 28%);
}
.cs-news-card__more {
  background: transparent;
  border: none;
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.cs-news-card__more:hover { text-decoration: none; }
.cs-news-card__link {
  display: inline-block;
  margin-top: 4px;
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.cs-news-card__link:hover { text-decoration: underline; }
.cs-empty--inline {
  padding: 20px 16px;
  background: hsl(150, 30%, 98%);
  border: 1px dashed hsl(150, 20%, 78%);
  border-radius: 10px;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

/* ── F6.6 Skool-style compose: collapsed + rozšířený ─────────── */
.cs-compose--collapsed { display:flex; align-items:center; gap:12px; padding:14px 18px; background:#fff; border:1px solid hsl(150,15%,88%); border-radius:14px; cursor:text; transition:border-color 0.15s ease, box-shadow 0.15s ease; margin-bottom:16px; box-shadow:0 4px 14px hsla(150,40%,12%,0.04); }
.cs-compose--collapsed:hover { border-color:hsl(142,70%,55%); box-shadow:0 6px 18px hsla(142,50%,35%,0.1); }
.cs-compose__placeholder { flex:1; color:hsl(var(--muted-foreground)); font-size:1rem; font-weight:500; }
.cs-compose--rich { padding:14px 16px 12px; }
.cs-compose--open .cs-compose__head { position:relative; }
.cs-compose__close { margin-left:auto; background:hsl(150,30%,96%); border:1px solid hsl(150,20%,85%); border-radius:50%; width:30px; height:30px; font-size:1.1rem; line-height:1; cursor:pointer; color:hsl(150,20%,30%); padding:0; }
.cs-compose__close:hover { background:hsl(0,75%,95%); border-color:hsl(0,70%,75%); color:hsl(0,75%,40%); }
.cs-compose__title { width:100%; border:none; border-bottom:1px solid hsl(150,20%,90%); padding:8px 4px; font-family:'Montserrat',sans-serif; font-size:1.05rem; font-weight:700; color:hsl(150,30%,14%); background:transparent; margin-bottom:8px; }
.cs-compose__title:focus { outline:none; border-bottom-color:hsl(142,70%,50%); }
.cs-compose__title::placeholder { color:hsl(var(--muted-foreground)); font-weight:600; }
.cs-compose__toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:8px 0 6px; border-top:1px solid hsl(150,15%,93%); margin-top:10px; }
.cs-compose__tools { display:flex; gap:4px; }
.cs-compose__icon-btn { background:transparent; border:1px solid transparent; border-radius:8px; padding:6px 10px; font-size:1.1rem; cursor:pointer; color:hsl(150,20%,30%); }
.cs-compose__icon-btn:hover { background:hsl(150,30%,95%); border-color:hsl(150,20%,85%); }
.cs-compose__status { color:hsl(var(--muted-foreground)); font-size:0.8rem; }
.cs-compose__link-row { display:flex; gap:6px; margin:8px 0; }
.cs-compose__link { flex:1; border:1px solid hsl(150,20%,85%); border-radius:8px; padding:8px 10px; font-family:inherit; font-size:0.92rem; background:hsl(150,30%,99%); }
.cs-compose__link:focus { outline:none; border-color:hsl(142,70%,50%); }
.cs-compose__image-preview { position:relative; margin:10px 0; max-width:320px; border-radius:12px; overflow:hidden; border:1px solid hsl(150,20%,85%); }
.cs-compose__image-preview img { width:100%; display:block; }
.cs-compose__image-remove { position:absolute; top:6px; right:6px; background:hsla(0,0%,0%,0.6); color:#fff; border:none; width:28px; height:28px; border-radius:50%; padding:0; }
.cs-compose__image-remove:hover { background:hsla(0,0%,0%,0.8); }

/* ── „Můj běh" compose segment ────────────────────────────── */
.cs-myrun { background:linear-gradient(135deg, hsl(142,70%,96%) 0%, hsl(150,60%,97%) 100%); border:1px solid hsl(142,70%,88%); border-radius:12px; padding:14px 16px; margin:10px 0; }
.cs-myrun__title { font-family:'Montserrat',sans-serif; font-size:0.95rem; font-weight:800; color:hsl(142,70%,25%); margin-bottom:10px; }
.cs-myrun__row { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-bottom:8px; }
@media (max-width:640px) { .cs-myrun__row { grid-template-columns:1fr; } }
.cs-myrun__field { display:flex; flex-direction:column; gap:4px; }
.cs-myrun__field > span { font-size:0.76rem; font-weight:700; color:hsl(150,20%,30%); text-transform:uppercase; letter-spacing:0.04em; }
.cs-myrun__field input, .cs-myrun__field select { border:1px solid hsl(150,20%,82%); border-radius:8px; padding:8px 10px; font-family:inherit; font-size:0.95rem; background:#fff; color:hsl(150,30%,14%); }
.cs-myrun__field input:focus, .cs-myrun__field select:focus { outline:none; border-color:hsl(142,70%,50%); box-shadow:0 0 0 3px hsla(142,70%,50%,0.14); }
.cs-myrun__time { display:flex; align-items:center; gap:4px; }
.cs-myrun__time input { width:70px; text-align:center; }
.cs-myrun__pace { background:hsla(142,70%,55%,0.12); border:1px solid hsl(142,70%,75%); border-radius:8px; padding:6px 10px; align-items:center; text-align:center; }
.cs-myrun__pace > span { color:hsl(142,70%,25%); }
.cs-myrun__pace-value { font-family:'Montserrat',sans-serif; font-size:1.4rem; font-weight:900; color:hsl(142,70%,28%); line-height:1; }
.cs-myrun__pace small { font-size:0.7rem; color:hsl(150,20%,40%); }
.cs-myrun__feeling { display:flex; gap:4px; }
.cs-myrun__feeling button { background:hsl(150,30%,98%); border:1px solid hsl(150,20%,85%); border-radius:8px; padding:6px 8px; font-size:1.2rem; cursor:pointer; flex:1; }
.cs-myrun__feeling button.active { background:hsl(142,70%,90%); border-color:hsl(142,70%,55%); transform:scale(1.05); }

/* ── Big-numbers run karta ve feed postu ───────────────────── */
.cs-runcard { background:linear-gradient(135deg, hsl(142,70%,30%) 0%, hsl(150,60%,22%) 100%); color:#fff; border-radius:12px; padding:14px 18px; margin:10px 0; }
.cs-runcard__top { display:flex; align-items:center; gap:10px; font-size:0.82rem; font-weight:700; flex-wrap:wrap; margin-bottom:10px; }
.cs-runcard__kind { background:hsla(0,0%,100%,0.18); padding:3px 10px; border-radius:999px; }
.cs-runcard__feeling { font-size:1.2rem; }
.cs-runcard__loc { color:hsla(0,0%,100%,0.86); font-weight:600; }
.cs-runcard__metrics { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
.cs-runcard__metric { display:flex; flex-direction:column; align-items:center; gap:2px; background:hsla(0,0%,100%,0.1); border-radius:10px; padding:10px 6px; }
.cs-runcard__val { font-family:'Montserrat',sans-serif; font-size:1.65rem; font-weight:900; line-height:1; letter-spacing:-0.02em; }
.cs-runcard__unit { font-size:0.7rem; font-weight:700; color:hsla(0,0%,100%,0.78); text-transform:uppercase; letter-spacing:0.06em; }

/* ── Feed post rozšíření (title, image, link) ─────────────── */
.cs-feed-post__title { font-family:'Montserrat',sans-serif; font-size:1.08rem; font-weight:800; color:hsl(150,30%,14%); margin:6px 0 4px; }
.cs-feed-post__image { display:block; margin:10px 0; border-radius:12px; overflow:hidden; border:1px solid hsl(150,15%,90%); }
.cs-feed-post__image img { width:100%; display:block; }
.cs-feed-post__link { display:inline-flex; align-items:center; gap:6px; margin:6px 0; padding:8px 12px; background:hsl(150,30%,97%); border:1px solid hsl(150,20%,86%); border-radius:8px; color:hsl(142,70%,28%); font-size:0.88rem; font-weight:600; text-decoration:none; word-break:break-all; }
.cs-feed-post__link:hover { background:hsl(150,30%,94%); }
.cs-feed-post--run { border-left:4px solid hsl(142,70%,45%); }

/* ── Persistent level chip v hlavičce (F6.4 M2) ───────────── */
.cs-level-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  background: hsla(0, 0%, 100%, 0.16);
  border: 1px solid hsla(0, 0%, 100%, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cs-level-chip__label {
  opacity: 0.85;
  font-weight: 500;
}
.cs-level-chip strong { font-weight: 800; }
.cs-level-chip--unassigned {
  background: hsla(45, 90%, 90%, 0.22);
  border-color: hsla(45, 90%, 75%, 0.4);
}

/* ============================================================
   F6.4 M2 — Navbar refactor (switcher + user dropdown + modal)
   ============================================================ */
.cs-navbar .navbar-inner { gap: 12px; }

.cs-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
@media (max-width: 480px) {
  .cs-nav-actions { gap: 4px; }
}

/* ── Dropdown wrapper ─────────────────────────────────────── */
.cs-dropdown {
  position: relative;
}
.cs-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: hsl(150, 30%, 96%);
  border: 1px solid hsl(150, 25%, 86%);
  border-radius: 999px;
  color: hsl(150, 30%, 14%);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cs-dropdown__trigger:hover {
  background: hsl(150, 30%, 92%);
  border-color: hsl(150, 30%, 70%);
}
.cs-dropdown__trigger[aria-expanded="true"] {
  background: hsl(142, 70%, 88%);
  border-color: hsl(142, 70%, 55%);
}
.cs-dropdown__trigger--user {
  background: linear-gradient(135deg, hsl(142, 70%, 45%) 0%, hsl(150, 60%, 35%) 100%);
  border-color: hsl(142, 70%, 35%);
  color: #fff;
}
.cs-dropdown__trigger--user:hover {
  background: linear-gradient(135deg, hsl(142, 70%, 50%) 0%, hsl(150, 60%, 40%) 100%);
  border-color: hsl(142, 70%, 40%);
}
.cs-dropdown__trigger--user[aria-expanded="true"] {
  background: linear-gradient(135deg, hsl(142, 70%, 38%) 0%, hsl(150, 60%, 28%) 100%);
}
.cs-dropdown__label {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cs-dropdown__caret {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 2px;
}

@media (max-width: 540px) {
  .cs-dropdown__trigger { padding: 6px 10px; font-size: 0.82rem; }
  .cs-dropdown__label { font-size: 0.82rem; }
}

/* ── Dropdown menu (popover) ─────────────────────────────── */
.cs-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid hsl(150, 15%, 86%);
  border-radius: 12px;
  box-shadow: 0 14px 40px hsla(150, 40%, 12%, 0.18), 0 4px 12px hsla(150, 40%, 12%, 0.08);
  padding: 6px;
  z-index: 100;
  animation: cs-dropdown-in 0.16s ease;
}
.cs-dropdown__menu--right {
  left: auto;
  right: 0;
}
@keyframes cs-dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cs-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}
.cs-dropdown__item:hover {
  background: hsl(150, 30%, 96%);
}
.cs-dropdown__item--active {
  background: hsl(142, 70%, 95%);
}
.cs-dropdown__item--active:hover {
  background: hsl(142, 70%, 92%);
}
.cs-dropdown__item--danger {
  color: hsl(0, 70%, 45%);
}
.cs-dropdown__item--danger:hover {
  background: hsl(0, 80%, 96%);
  color: hsl(0, 70%, 35%);
}
.cs-dropdown__icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(150, 30%, 94%);
  border-radius: 8px;
}
.cs-dropdown__item--danger .cs-dropdown__icon {
  background: hsl(0, 75%, 95%);
}
.cs-dropdown__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.cs-dropdown__text strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: hsl(150, 30%, 14%);
}
.cs-dropdown__item--danger .cs-dropdown__text strong { color: hsl(0, 70%, 35%); }
.cs-dropdown__text small {
  font-size: 0.76rem;
  color: hsl(var(--muted-foreground));
}
.cs-dropdown__check {
  color: hsl(142, 70%, 38%);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ── Switcher rozšíření: divider + group label + primary item ── */
.cs-dropdown__divider {
  height: 1px;
  background: hsl(150, 15%, 90%);
  margin: 6px 8px;
}
.cs-dropdown__group-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px 4px;
}
.cs-dropdown__item--primary {
  background: linear-gradient(135deg, hsl(142, 70%, 96%) 0%, hsl(150, 60%, 94%) 100%);
  border: 1px solid hsl(142, 70%, 86%);
}
.cs-dropdown__item--primary:hover {
  background: linear-gradient(135deg, hsl(142, 70%, 92%) 0%, hsl(150, 60%, 90%) 100%);
}
.cs-dropdown__item--primary .cs-dropdown__icon {
  background: hsl(142, 70%, 88%);
}
.cs-dropdown__item--primary .cs-dropdown__text strong {
  color: hsl(142, 70%, 25%);
}

/* ── Modal pro editaci profilu ────────────────────────────── */
/* 🐛 BUG FIX: display:flex přepisuje [hidden] atribut, tady ho explicitně zrušíme */
.cs-modal[hidden] {
  display: none !important;
}
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(15, 25, 18, 0.55);
  cursor: pointer; /* signál že klik mimo kartu = zavřít */
}
.cs-modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: cs-modal-in 0.2s ease;
  cursor: default;
}
@keyframes cs-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px;
  border-bottom: 1px solid hsl(150, 15%, 92%);
}
.cs-modal__header h2 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
}
.cs-modal__close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
}
.cs-modal__close:hover {
  background: hsl(150, 30%, 96%);
  color: hsl(150, 30%, 14%);
}
.cs-modal__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px 22px;
}
.cs-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-modal__field > span {
  font-size: 0.84rem;
  font-weight: 700;
  color: hsl(150, 30%, 14%);
}
.cs-modal__field input {
  padding: 10px 12px;
  border: 1px solid hsl(150, 20%, 80%);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: hsl(150, 30%, 14%);
}
.cs-modal__field input:focus {
  outline: none;
  border-color: hsl(142, 70%, 45%);
  box-shadow: 0 0 0 3px hsla(142, 70%, 45%, 0.16);
}
.cs-modal__field input:disabled {
  background: hsl(150, 15%, 96%);
  color: hsl(var(--muted-foreground));
}
.cs-modal__field small {
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}
.cs-modal__field small a { color: hsl(var(--primary)); }
.cs-modal__msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
}
.cs-modal__msg--error {
  background: hsl(0, 80%, 96%);
  border: 1px solid hsl(0, 70%, 80%);
  color: hsl(0, 70%, 35%);
}
.cs-modal__msg--ok {
  background: hsl(142, 60%, 95%);
  border: 1px solid hsl(142, 60%, 70%);
  color: hsl(142, 70%, 28%);
}
.cs-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* ============================================================
   F6.5 — Tab Komunita (feed + reactions)
   ============================================================ */
.cs-komunita {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

/* ── Compose box ───────────────────────────────────────────── */
.cs-compose {
  background: #fff;
  border: 1px solid hsl(150, 15%, 88%);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px hsla(150, 40%, 12%, 0.05);
}
.cs-compose__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cs-compose__avatar {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  background: hsl(150, 30%, 94%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-compose__greet {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  color: hsl(150, 30%, 14%);
}
.cs-compose__body {
  width: 100%;
  border: 1px solid hsl(150, 20%, 85%);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 64px;
  background: hsl(150, 30%, 99%);
  color: hsl(150, 30%, 14%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cs-compose__body:focus {
  outline: none;
  border-color: hsl(142, 70%, 50%);
  box-shadow: 0 0 0 3px hsla(142, 70%, 50%, 0.14);
}
.cs-compose__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.cs-compose__type-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cs-type-chip {
  background: hsl(150, 30%, 96%);
  border: 1px solid hsl(150, 20%, 85%);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: hsl(150, 20%, 30%);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.cs-type-chip:hover { background: hsl(150, 30%, 92%); }
.cs-type-chip.active {
  background: hsl(142, 70%, 45%);
  border-color: hsl(142, 70%, 40%);
  color: #fff;
}
.cs-compose__submit {
  background: hsl(142, 70%, 45%);
  border: 1px solid hsl(142, 70%, 40%);
  color: #fff;
  border-radius: 10px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}
.cs-compose__submit:hover { background: hsl(142, 70%, 50%); transform: translateY(-1px); }
.cs-compose__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Filter chip row ───────────────────────────────────────── */
.cs-feed-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 4px;
}
.cs-filter-chip {
  background: #fff;
  border: 1px solid hsl(150, 20%, 85%);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: hsl(150, 20%, 30%);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.cs-filter-chip:hover { background: hsl(150, 30%, 96%); }
.cs-filter-chip.active {
  background: hsl(150, 30%, 14%);
  border-color: hsl(150, 30%, 14%);
  color: #fff;
}

/* ── Feed list & posty ─────────────────────────────────────── */
.cs-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-feed-post {
  background: #fff;
  border: 1px solid hsl(150, 15%, 88%);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px hsla(150, 40%, 12%, 0.04);
  transition: box-shadow 0.18s ease;
}
.cs-feed-post:hover { box-shadow: 0 8px 22px hsla(150, 40%, 12%, 0.08); }
.cs-feed-post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cs-feed-post__avatar {
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  background: hsl(150, 30%, 94%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-feed-post__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cs-feed-post__author strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(150, 30%, 14%);
}
.cs-feed-post__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.cs-feed-post__type {
  background: hsl(142, 70%, 92%);
  color: hsl(142, 70%, 25%);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.cs-feed-post__group {
  background: hsl(220, 60%, 95%);
  color: hsl(220, 60%, 35%);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.cs-feed-post__time { color: hsl(var(--muted-foreground)); }
.cs-feed-post__body {
  margin: 8px 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: hsl(150, 15%, 24%);
  word-break: break-word;
}
.cs-feed-post__extras {
  font-size: 0.82rem;
  color: hsl(150, 30%, 35%);
  margin-bottom: 8px;
  padding: 6px 10px;
  background: hsl(150, 30%, 96%);
  border-radius: 8px;
  display: inline-block;
}
.cs-feed-post__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid hsl(150, 15%, 92%);
}
.cs-react-btn {
  background: hsl(150, 30%, 96%);
  border: 1px solid hsl(150, 20%, 88%);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(150, 20%, 30%);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}
.cs-react-btn:hover {
  background: hsl(150, 30%, 92%);
  transform: scale(1.04);
}
.cs-react-btn.is-active {
  background: hsl(142, 70%, 92%);
  border-color: hsl(142, 70%, 60%);
  color: hsl(142, 70%, 22%);
}
.cs-react-count { font-weight: 700; margin-left: 2px; }

/* ── Komunita inline na Nástěnce (F6.5 refactor) ─────────── */
.cs-komunita-section .cs-komunita--inline {
  margin-top: 8px;
}
.cs-komunita-section .cs-komunita--inline > * + * {
  margin-top: 12px;
}
.cs-komunita--inline .cs-compose {
  box-shadow: none;
  background: hsl(150, 30%, 98%);
}

/* ── F6.6 Interní komunita kurzu — vizuální odlišení ──────── */
.cs-komunita-section--internal {
  border-left: 4px solid hsl(142, 70%, 45%);
  background: linear-gradient(180deg, hsl(150, 30%, 98%) 0%, #fff 80%);
}
.cs-komunita-section__header {
  margin-bottom: 14px;
}
.cs-komunita-section__header .cs-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}
.cs-komunita-badge {
  display: inline-block;
  background: hsl(142, 70%, 90%);
  color: hsl(142, 70%, 24%);
  border: 1px solid hsl(142, 60%, 70%);
  padding: 2px 9px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  vertical-align: middle;
}
.cs-komunita-section__desc {
  margin: 0;
  font-size: 0.88rem;
  color: hsl(150, 20%, 38%);
  line-height: 1.5;
  max-width: 620px;
}

/* ──────────────────────────────────────────────────────────
   F6.5 — "Týden N z 10" banner (Tréninkové plány)
   ────────────────────────────────────────────────────────── */
.cs-week-banner {
  background: linear-gradient(135deg, hsl(142, 70%, 40%) 0%, hsl(150, 65%, 28%) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px hsla(142, 60%, 28%, 0.22);
}
.cs-week-banner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.cs-week-banner__group {
  font-size: 0.95rem;
  font-weight: 600;
}
.cs-week-banner__group strong { font-weight: 800; }
.cs-week-banner__desc {
  opacity: 0.86;
  font-weight: 500;
  font-size: 0.85rem;
}
.cs-week-banner__week {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: hsla(0, 0%, 100%, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.cs-week-banner__week strong { font-weight: 900; }
.cs-week-banner__progress {
  height: 10px;
  background: hsla(0, 0%, 100%, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.cs-week-banner__bar {
  height: 100%;
  background: #fff;
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ── "Týden N / 10" MINI widget na Nástěnce ─────────────── */
.cs-week-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, hsl(142, 70%, 95%) 0%, hsl(150, 60%, 97%) 100%);
  border: 1px solid hsl(142, 60%, 70%);
  border-radius: 12px;
  margin-top: 4px;
}
.cs-week-mini__icon {
  font-size: 1.7rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  background: hsl(142, 70%, 88%);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-week-mini__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cs-week-mini__text strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
}
.cs-week-mini__text span {
  font-size: 0.82rem;
  color: hsl(150, 30%, 35%);
}
.cs-week-mini__cta {
  background: hsl(142, 70%, 45%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cs-week-mini__cta:hover {
  background: hsl(142, 70%, 50%);
  transform: translateY(-1px);
}

/* ──────────────────────────────────────────────────────────
   F6.6 — Tréninkový týden (bodyHtml render z Notionu)
   ────────────────────────────────────────────────────────── */
.cs-week-intro {
  background: linear-gradient(135deg, hsl(150, 30%, 96%) 0%, hsl(142, 40%, 94%) 100%);
  border-left: 4px solid hsl(142, 70%, 45%);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 0 0 22px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: hsl(150, 25%, 22%);
}
.cs-week-intro p { margin: 0 0 8px; }
.cs-week-intro p:last-child { margin-bottom: 0; }
.cs-week-intro strong { color: hsl(150, 30%, 14%); }
.cs-week-intro ul, .cs-week-intro ol {
  margin: 8px 0;
  padding-left: 22px;
}
.cs-week-intro li { margin-bottom: 4px; }

.cs-week-day {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, hsl(150, 70%, 22%) 0%, hsl(145, 60%, 32%) 100%);
  padding: 8px 16px;
  border-radius: 8px;
  margin: 28px 0 14px;
  display: inline-block;
}
.cs-week-section {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
  margin: 18px 0 8px;
}

/* Barevné karty pro 3 podúrovně (MARATONCI / PŮLMARATONCI / DESÍTKA) */
.cs-target {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 4px solid;
}
.cs-target__label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.cs-target-marathon {
  background: hsl(0, 80%, 97%);
  border-left-color: hsl(0, 75%, 55%);
  color: hsl(0, 30%, 24%);
}
.cs-target-marathon .cs-target__label {
  background: hsl(0, 80%, 92%);
  color: hsl(0, 75%, 32%);
}
.cs-target-half {
  background: hsl(215, 80%, 97%);
  border-left-color: hsl(215, 75%, 55%);
  color: hsl(215, 30%, 24%);
}
.cs-target-half .cs-target__label {
  background: hsl(215, 80%, 92%);
  color: hsl(215, 75%, 32%);
}
.cs-target-ten {
  background: hsl(45, 90%, 96%);
  border-left-color: hsl(40, 85%, 55%);
  color: hsl(35, 35%, 24%);
}
.cs-target-ten .cs-target__label {
  background: hsl(45, 90%, 88%);
  color: hsl(35, 75%, 30%);
}
.cs-target-orange {
  background: hsl(25, 90%, 96%);
  border-left-color: hsl(25, 85%, 55%);
}
.cs-target strong { font-weight: 700; }
.cs-target a { color: inherit; text-decoration: underline; }

/* Tabulka 7 dní (legacy schema z _bodyHtmlFromDays) */
.cs-week-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.94rem;
}
.cs-week-table th,
.cs-week-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid hsl(150, 15%, 92%);
  vertical-align: top;
}
.cs-week-table th {
  background: hsl(150, 30%, 95%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cs-week-table td:first-child {
  background: hsl(150, 30%, 98%);
  width: 110px;
}

/* Obecný content (paragraf, ul/ol, links) — používá se v bodyHtml */
.cs-content p { margin: 0 0 10px; line-height: 1.6; }
.cs-content ul, .cs-content ol { margin: 0 0 12px; padding-left: 22px; }
.cs-content li { margin-bottom: 4px; line-height: 1.5; }
.cs-content a { color: hsl(142, 70%, 38%); text-decoration: underline; }
.cs-content a:hover { color: hsl(142, 70%, 32%); }
.cs-content strong { color: hsl(150, 30%, 14%); }

/* ── F6.6 Strukturovaný week obsah (days, common-note, pdfs) ── */
.cs-week-common-note {
  background: hsl(150, 30%, 96%);
  border: 1px solid hsl(150, 25%, 86%);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: hsl(150, 25%, 22%);
  text-align: center;
}
.cs-week-common-note strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: hsl(150, 30%, 14%);
  margin-bottom: 6px;
}
.cs-week-common-note br + * { margin-top: 4px; }

.cs-week-days {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-week-day-block {
  background: #fff;
  border: 1px solid hsl(150, 15%, 90%);
  border-radius: 12px;
  padding: 16px 20px 18px;
  margin: 0;
  box-shadow: 0 2px 8px hsla(150, 40%, 12%, 0.03);
}
.cs-week-day-block .cs-week-day {
  margin: 0 0 10px;
  font-size: 1rem;
}
.cs-week-day__title {
  margin: 0 0 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  color: hsl(150, 30%, 14%);
  line-height: 1.4;
}
.cs-week-day__title a {
  color: hsl(142, 70%, 32%);
  text-decoration: underline;
}
.cs-week-day__body {
  font-size: 0.94rem;
  line-height: 1.6;
  color: hsl(150, 15%, 22%);
}
.cs-week-day__body p {
  margin: 0 0 10px;
}
.cs-week-day__body p:last-child {
  margin-bottom: 0;
}
.cs-week-day__body ul,
.cs-week-day__body ol {
  margin: 8px 0;
  padding-left: 24px;
}
.cs-week-day__body li {
  margin-bottom: 4px;
  line-height: 1.5;
}
.cs-week-day__body a {
  color: hsl(142, 70%, 38%);
  text-decoration: underline;
}
.cs-week-day__exercises {
  margin: 12px 0 0;
  padding-left: 26px;
  font-size: 0.94rem;
}
.cs-week-day__exercises li {
  margin-bottom: 5px;
  line-height: 1.5;
}
.cs-week-day__exercises a {
  color: hsl(142, 70%, 32%);
  font-weight: 600;
  text-decoration: underline;
}
.cs-week-day__exercise-meta {
  color: hsl(var(--muted-foreground));
  font-size: 0.86rem;
}
.cs-week-day__stream {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: hsl(0, 70%, 96%);
  border-left: 4px solid hsl(0, 70%, 55%);
  border-radius: 8px;
  font-weight: 600;
  color: hsl(0, 50%, 24%);
}
.cs-week-day__stream a {
  color: hsl(0, 70%, 38%);
  text-decoration: underline;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   F6.6 V2 — Premium week layout (hero, timeline, achievements)
   Inspirace: Apple Fitness+ / Strava / Peloton
   ══════════════════════════════════════════════════════════ */
.cs-week-v2 {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-display, 'Montserrat', sans-serif), system-ui, sans-serif;
}
.cs-week-v2 * {
  box-sizing: border-box;
}

/* ── HERO ZELENÝ GRADIENT (v2.2 — clean, bez velkého „1.") ── */
/* Skryjeme parent .cs-detail-header když uvnitř je v2 layout — hero ho nahradí */
.cs-detail:has(.cs-week-v2) > .cs-detail-header { display: none; }

.cs-week-v2__hero {
  position: relative;
  background: linear-gradient(135deg, hsl(150, 80%, 16%) 0%, hsl(145, 65%, 30%) 60%, hsl(140, 55%, 40%) 100%);
  border-radius: 20px;
  padding: 26px 28px 28px;
  color: #fff;
  margin: 0 0 28px;
  overflow: hidden;
  box-shadow: 0 14px 36px hsla(150, 70%, 12%, 0.18);
}
.cs-week-v2__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at top right, hsla(0, 0%, 100%, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.cs-week-v2__hero > * { position: relative; z-index: 1; }

.cs-week-v2__hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.78);
  background: hsla(0, 0%, 100%, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.cs-week-v2__hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.cs-week-v2__hero-emoji {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1;
  flex-shrink: 0;
}
.cs-week-v2__hero-subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.88);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* ── STATISTIKY ────────────────────────────────────────── */
.cs-week-v2__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.cs-week-v2__stat {
  background: #fff;
  border: 1px solid hsl(150, 15%, 90%);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 2px 8px hsla(150, 40%, 12%, 0.04);
}
.cs-week-v2__stat-value {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: hsl(142, 70%, 32%);
  line-height: 1;
  letter-spacing: -0.02em;
}
.cs-week-v2__stat-value--text {
  font-size: 1rem;
  font-weight: 800;
  color: hsl(150, 30%, 18%);
}
.cs-week-v2__stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── INTRO OD TRENÉRA ──────────────────────────────────── */
.cs-week-v2__intro {
  margin-bottom: 28px;
}
.cs-week-v2__intro-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cs-week-v2__intro-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(142, 70%, 45%), hsl(150, 60%, 35%));
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px hsla(150, 40%, 12%, 0.16);
}
.cs-week-v2__intro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-week-v2__intro-avatar-fallback {
  display: none;
  font-size: 1.4rem;
  line-height: 1;
}
.cs-week-v2__intro-author strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
}
.cs-week-v2__intro-meta {
  display: block;
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
}
.cs-week-v2__intro-body {
  font-size: 1rem;
  line-height: 1.68;
  color: hsl(150, 18%, 22%);
}
.cs-week-v2__intro-body p {
  margin: 0 0 14px;
}
.cs-week-v2__intro-body p:last-child {
  margin-bottom: 0;
}
.cs-week-v2__intro-body a {
  color: hsl(142, 70%, 32%);
  text-decoration: underline;
}
.cs-week-v2__intro-body strong {
  color: hsl(150, 30%, 14%);
}

/* ── COMMON NOTE (kurzisti ve stejné lodi) ─────────────── */
.cs-week-v2__common-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: hsl(150, 30%, 96%);
  border-left: 4px solid hsl(142, 70%, 50%);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: hsl(150, 22%, 24%);
}
.cs-week-v2__common-note-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cs-week-v2__common-note p {
  margin: 0 0 6px;
}
.cs-week-v2__common-note p:last-child {
  margin-bottom: 0;
}

/* ── STREAM BANNER (pondělní stream) ────────────────────── */
.cs-week-v2__stream-banner,
.cs-week-v2__stream-banner:hover,
.cs-week-v2__stream-banner:focus,
.cs-week-v2__stream-banner:active,
.cs-week-v2__stream-banner *,
.cs-week-v2__stream-banner *:hover {
  text-decoration: none !important;
}
.cs-week-v2__stream-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, hsl(32, 95%, 58%) 0%, hsl(40, 95%, 52%) 100%);
  border-radius: 16px;
  padding: 18px 22px;
  color: #fff !important;
  margin-bottom: 36px;
  box-shadow: 0 10px 28px hsla(32, 85%, 38%, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cs-week-v2__stream-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px hsla(32, 85%, 38%, 0.28);
}
.cs-week-v2__stream-banner strong,
.cs-week-v2__stream-banner span {
  color: inherit;
}
.cs-week-v2__stream-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  background: hsla(0, 0%, 100%, 0.18);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-week-v2__stream-text {
  flex: 1;
  min-width: 0;
}
.cs-week-v2__stream-text strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.cs-week-v2__stream-text span {
  font-size: 0.86rem;
  color: hsla(0, 0%, 100%, 0.92);
  line-height: 1.4;
}
.cs-week-v2__stream-btn {
  background: #fff;
  color: hsl(28, 80%, 38%) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .cs-week-v2__stream-banner { flex-wrap: wrap; }
  .cs-week-v2__stream-btn { width: 100%; text-align: center; }
}

/* ── TIMELINE TRÉNINKŮ (žádné podbarvení dnů!) ─────────── */
.cs-week-v2__timeline {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.cs-week-v2__day {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid hsl(150, 15%, 92%);
}
.cs-week-v2__day:last-child {
  border-bottom: none;
}
.cs-week-v2__day--rest {
  opacity: 0.68;
}
.cs-week-v2__day-marker {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  padding-top: 2px;
}
.cs-week-v2__day-icon { display: none; } /* zrušeno — den v týdnu mluví sám za sebe */
.cs-week-v2__day-short {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: hsl(150, 30%, 14%);
  background: hsl(150, 30%, 96%);
  border: 1px solid hsl(150, 18%, 86%);
  border-radius: 12px;
  padding: 10px 8px;
  width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}
/* Den volna: jemnější barva */
.cs-week-v2__day--rest .cs-week-v2__day-short {
  color: hsl(150, 12%, 50%);
  background: hsl(150, 18%, 97%);
  border-color: hsl(150, 12%, 90%);
}
/* Hotový den: zelený filled badge */
.cs-week-v2__day--done .cs-week-v2__day-short {
  background: linear-gradient(135deg, hsl(142, 70%, 45%), hsl(150, 60%, 35%));
  border-color: hsl(142, 70%, 28%);
  color: #fff;
  box-shadow: 0 4px 10px hsla(142, 70%, 32%, 0.22);
}

.cs-week-v2__day-content {
  flex: 1;
  min-width: 0;
}
.cs-week-v2__day-content h3 {
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.cs-week-v2__day-content h3 a {
  color: hsl(142, 70%, 32%);
  text-decoration: underline;
}
.cs-week-v2__day-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: hsl(150, 30%, 96%);
  border-radius: 999px;
  color: hsl(var(--muted-foreground));
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.cs-week-v2__day-meta {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}
.cs-week-v2__day-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: hsl(150, 15%, 24%);
}
.cs-week-v2__day-body p {
  margin: 0 0 12px;
}
.cs-week-v2__day-body p:last-child {
  margin-bottom: 0;
}

/* Top-level list: vlastní zelený marker, větší mezery */
.cs-week-v2__day-body > ul,
.cs-week-v2__day-body > ol {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.cs-week-v2__day-body > ul > li,
.cs-week-v2__day-body > ol > li {
  position: relative;
  padding: 6px 0 6px 26px;
  margin: 0;
}
.cs-week-v2__day-body > ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 8px;
  height: 8px;
  background: hsl(142, 70%, 50%);
  border-radius: 50%;
}
.cs-week-v2__day-body > ol {
  counter-reset: workout-step;
}
.cs-week-v2__day-body > ol > li {
  counter-increment: workout-step;
  padding-left: 32px;
}
.cs-week-v2__day-body > ol > li::before {
  content: counter(workout-step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  background: hsl(142, 70%, 92%);
  color: hsl(142, 70%, 28%);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  line-height: 22px;
}

/* Bullet s pouze <strong> = "podnadpis bloku tréninku" (např. „Hlavní blok 5× 60-40-20") */
.cs-week-v2__day-body > ul > li:has(> strong:only-child),
.cs-week-v2__day-body > ul > li > strong:only-child {
  /* fallback pro browsery bez :has — strong dostane styling sám */
}
.cs-week-v2__day-body > ul > li > strong:only-child {
  display: inline-block;
  background: linear-gradient(180deg, hsl(150, 40%, 96%) 0%, hsl(142, 35%, 94%) 100%);
  border: 1px solid hsl(142, 50%, 84%);
  border-left: 3px solid hsl(142, 70%, 45%);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
  margin: 8px 0;
  letter-spacing: -0.005em;
}
.cs-week-v2__day-body > ul > li:has(> strong:only-child)::before {
  display: none; /* schovat tečku u podnadpisu bloku */
}

/* Nested list (intervaly: 60s / 40s / 20s) — vizuálně "set list" v pruhu */
.cs-week-v2__day-body ul ul,
.cs-week-v2__day-body ul ol,
.cs-week-v2__day-body ol ul,
.cs-week-v2__day-body ol ol {
  list-style: none;
  padding: 8px 0 6px;
  margin: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: hsl(150, 30%, 98%);
  border-radius: 8px;
  border: 1px solid hsl(150, 18%, 92%);
  padding: 10px 14px;
}
.cs-week-v2__day-body ul ul > li,
.cs-week-v2__day-body ul ol > li,
.cs-week-v2__day-body ol ul > li,
.cs-week-v2__day-body ol ol > li {
  position: relative;
  padding: 3px 0 3px 22px;
  font-size: 0.94rem;
  color: hsl(150, 18%, 26%);
  margin: 0;
}
.cs-week-v2__day-body ul ul > li::before,
.cs-week-v2__day-body ol ul > li::before {
  content: "›";
  position: absolute;
  left: 6px;
  top: 1px;
  color: hsl(142, 50%, 55%);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
}

/* Odkazy v dni: bez tlustého podtržení — jen jemné, hover zvýrazní */
.cs-week-v2__day-body a {
  color: hsl(142, 70%, 32%);
  text-decoration: none;
  border-bottom: 1px dotted hsl(142, 70%, 50%);
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cs-week-v2__day-body a:hover {
  color: hsl(142, 70%, 24%);
  border-bottom-color: hsl(142, 70%, 32%);
  border-bottom-style: solid;
}
.cs-week-v2__day-body strong {
  color: hsl(150, 30%, 14%);
}

/* ── F6.6.3 Workout section ikony (přepisuje generický strong-only-li) ── */
.cs-week-v2__day-body li.cs-workout-section {
  list-style: none;
  padding: 10px 14px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  border-left: 4px solid hsl(142, 70%, 45%);
  background: linear-gradient(180deg, hsl(150, 40%, 96%) 0%, hsl(142, 35%, 94%) 100%);
}
.cs-week-v2__day-body li.cs-workout-section::before {
  display: none;
}
.cs-workout-section__icon {
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(0, 0%, 100%);
  border-radius: 50%;
  box-shadow: 0 2px 6px hsla(150, 40%, 12%, 0.08);
  flex-shrink: 0;
}
.cs-workout-section__title {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
  letter-spacing: -0.005em;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
/* Barevné varianty podle typu */
.cs-week-v2__day-body li.cs-workout-section--warmup {
  background: linear-gradient(180deg, hsl(150, 40%, 96%) 0%, hsl(150, 35%, 93%) 100%);
  border-left-color: hsl(150, 70%, 45%);
}
.cs-week-v2__day-body li.cs-workout-section--main {
  background: linear-gradient(180deg, hsl(15, 60%, 96%) 0%, hsl(15, 70%, 93%) 100%);
  border-left-color: hsl(15, 80%, 55%);
}
.cs-week-v2__day-body li.cs-workout-section--cooldown {
  background: linear-gradient(180deg, hsl(210, 50%, 96%) 0%, hsl(210, 50%, 93%) 100%);
  border-left-color: hsl(210, 70%, 50%);
}
.cs-week-v2__day-body li.cs-workout-section--sprints {
  background: linear-gradient(180deg, hsl(45, 70%, 96%) 0%, hsl(45, 80%, 92%) 100%);
  border-left-color: hsl(40, 90%, 55%);
}
.cs-week-v2__day-body li.cs-workout-section--strength {
  background: linear-gradient(180deg, hsl(280, 35%, 96%) 0%, hsl(280, 40%, 93%) 100%);
  border-left-color: hsl(280, 50%, 55%);
}
.cs-week-v2__day-body li.cs-workout-section--stretch {
  background: linear-gradient(180deg, hsl(180, 35%, 96%) 0%, hsl(180, 45%, 93%) 100%);
  border-left-color: hsl(180, 60%, 45%);
}
.cs-week-v2__day-body li.cs-workout-section--drills {
  background: linear-gradient(180deg, hsl(330, 40%, 96%) 0%, hsl(330, 50%, 93%) 100%);
  border-left-color: hsl(330, 60%, 55%);
}

/* ── F6.6.3 Quick-nav mezi týdny ──────────────────────────── */
.cs-week-quicknav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 14px;
  margin: 0 0 16px;
  scrollbar-width: thin;
}
.cs-week-quicknav__item {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: hsl(150, 30%, 96%);
  border: 2px solid hsl(150, 20%, 86%);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: hsl(150, 25%, 30%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cs-week-quicknav__item:hover:not([disabled]) {
  transform: translateY(-2px);
  background: hsl(142, 60%, 92%);
  border-color: hsl(142, 70%, 55%);
}
.cs-week-quicknav__item--active {
  background: linear-gradient(135deg, hsl(142, 70%, 45%), hsl(150, 60%, 35%));
  border-color: hsl(142, 70%, 28%);
  color: #fff;
  box-shadow: 0 6px 14px hsla(142, 70%, 32%, 0.32);
}
.cs-week-quicknav__item--locked {
  background: hsl(150, 12%, 95%);
  border-color: hsl(150, 10%, 88%);
  color: hsl(150, 8%, 60%);
  cursor: not-allowed;
}
.cs-week-quicknav__lock {
  font-size: 0.95rem;
}

/* ── F6.6.3 Day checkmark button ──────────────────────────── */
.cs-week-v2__day {
  position: relative;
}
.cs-week-v2__day-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid hsl(150, 18%, 82%);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  align-self: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cs-week-v2__day-check:hover {
  border-color: hsl(142, 70%, 55%);
  background: hsl(142, 60%, 96%);
}
.cs-week-v2__day-check-icon {
  font-size: 0.95rem;
  font-weight: 900;
  color: hsl(150, 18%, 75%);
  transition: color 0.15s ease;
  line-height: 1;
}
.cs-week-v2__day-check:hover .cs-week-v2__day-check-icon {
  color: hsl(142, 70%, 45%);
}
.cs-week-v2__day--done .cs-week-v2__day-check {
  background: linear-gradient(135deg, hsl(142, 70%, 50%), hsl(150, 60%, 38%));
  border-color: hsl(142, 70%, 32%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px hsla(142, 70%, 32%, 0.28);
}
.cs-week-v2__day--done .cs-week-v2__day-check-icon {
  color: #fff;
}

/* Pozitivní vizuál pro hotový den (žádné přeškrtnutí, žádné fadeout) */
.cs-week-v2__day--done {
  background: linear-gradient(90deg, hsla(142, 70%, 92%, 0.5) 0%, transparent 80%);
  border-left: 3px solid hsl(142, 70%, 45%);
  padding-left: 12px;
  margin-left: -15px;
  border-radius: 6px;
}
.cs-week-v2__day--done .cs-week-v2__day-content h3 {
  color: hsl(142, 70%, 28%);
}
.cs-week-v2__day--done .cs-week-v2__day-content h3::after {
  content: " 🏆";
  font-size: 0.9em;
}

/* ── F6.6.4 Fokus týdne (1 řádek strategie pod hero) ──────── */
.cs-week-v2__focus {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, hsl(45, 95%, 96%) 0%, hsl(40, 90%, 92%) 100%);
  border: 1px solid hsl(40, 80%, 80%);
  border-left: 4px solid hsl(35, 90%, 50%);
  border-radius: 12px;
  padding: 14px 18px;
  margin: -8px 0 24px;
}
.cs-week-v2__focus-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.cs-week-v2__focus-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(35, 70%, 32%);
  margin-bottom: 2px;
}
.cs-week-v2__focus-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(35, 30%, 18%);
  line-height: 1.45;
}

/* ── F6.6.4 Trenérská poznámka (po timeline) ──────────────── */
.cs-week-v2__coach-note {
  background: linear-gradient(135deg, hsl(150, 30%, 96%) 0%, hsl(142, 40%, 92%) 100%);
  border: 1px solid hsl(142, 50%, 80%);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 28px 0;
}
.cs-week-v2__coach-note-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cs-week-v2__coach-note-head strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(150, 35%, 18%);
}
.cs-week-v2__coach-note-body {
  font-size: 0.96rem;
  line-height: 1.65;
  color: hsl(150, 18%, 22%);
}
.cs-week-v2__coach-note-body p { margin: 0 0 10px; }
.cs-week-v2__coach-note-body p:last-child { margin: 0; }
.cs-week-v2__coach-note-body strong { color: hsl(150, 35%, 14%); }

/* ── F6.6.4 FAQ „Co když" ─────────────────────────────────── */
.cs-week-v2__faq {
  margin: 24px 0 28px;
}
.cs-week-v2__faq h3 {
  margin: 0 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
}
.cs-week-v2__faq-item {
  background: #fff;
  border: 1px solid hsl(150, 15%, 88%);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.cs-week-v2__faq-item[open] {
  border-color: hsl(142, 50%, 70%);
}
.cs-week-v2__faq-item summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: hsl(150, 30%, 14%);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cs-week-v2__faq-item summary::-webkit-details-marker { display: none; }
.cs-week-v2__faq-item summary::after {
  content: "+";
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: hsl(142, 70%, 45%);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.cs-week-v2__faq-item[open] summary::after {
  transform: rotate(45deg);
}
.cs-week-v2__faq-item summary:hover {
  background: hsl(150, 30%, 97%);
}
.cs-week-v2__faq-answer {
  padding: 0 16px 14px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: hsl(150, 18%, 24%);
}
.cs-week-v2__faq-answer p { margin: 0 0 8px; }
.cs-week-v2__faq-answer p:last-child { margin: 0; }
.cs-week-v2__faq-answer strong { color: hsl(150, 30%, 14%); }

/* ── F6.6.4 Glosář term + popover ─────────────────────────── */
.cs-glossary {
  border-bottom: 2px dotted hsl(35, 85%, 55%);
  cursor: help;
  padding: 0 2px;
  transition: background 0.15s ease;
}
.cs-glossary:hover {
  background: hsla(45, 95%, 80%, 0.5);
  border-radius: 4px;
}
.cs-glossary::after {
  content: "ⓘ";
  font-size: 0.72em;
  color: hsl(35, 80%, 50%);
  margin-left: 2px;
  vertical-align: super;
  font-weight: 700;
}
.cs-glossary-popover {
  position: absolute;
  z-index: 9999;
  max-width: 320px;
  background: #fff;
  border: 1px solid hsl(35, 60%, 70%);
  border-radius: 12px;
  padding: 14px 36px 14px 16px;
  box-shadow: 0 18px 40px hsla(150, 40%, 12%, 0.18);
  font-size: 0.92rem;
  line-height: 1.55;
  color: hsl(150, 18%, 22%);
}
.cs-glossary-popover strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  color: hsl(35, 80%, 32%);
  margin-bottom: 6px;
  text-transform: capitalize;
}
.cs-glossary-popover p {
  margin: 0;
}
.cs-glossary-popover::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-top: 1px solid hsl(35, 60%, 70%);
  border-left: 1px solid hsl(35, 60%, 70%);
  transform: rotate(45deg);
}
.cs-glossary-popover--above::before {
  top: auto;
  bottom: -8px;
  border-top: none;
  border-left: none;
  border-bottom: 1px solid hsl(35, 60%, 70%);
  border-right: 1px solid hsl(35, 60%, 70%);
}
.cs-glossary-popover__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 4px 8px;
}
.cs-glossary-popover__close:hover {
  color: hsl(150, 30%, 14%);
}

/* ── F6.6.3 Confetti & Toast (po dokončení 7/7 dní) ───────── */
.cs-week-confetti {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.cs-week-confetti__piece {
  position: absolute;
  top: -40px;
  font-size: 2rem;
  animation: cs-confetti-fall 3.6s cubic-bezier(0.25, 0.5, 0.5, 1) forwards;
}
@keyframes cs-confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
.cs-week-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, hsl(142, 70%, 38%) 0%, hsl(150, 60%, 28%) 100%);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 0 16px 40px hsla(150, 70%, 12%, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 380px;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cs-week-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cs-week-toast strong { font-size: 1rem; font-weight: 800; }
.cs-week-toast span { font-size: 0.86rem; opacity: 0.92; }

/* Cviky v dni */
.cs-week-v2__exercises {
  list-style: decimal;
  margin: 14px 0 0;
  padding: 12px 18px 12px 36px;
  background: hsl(150, 30%, 97%);
  border-radius: 10px;
}
.cs-week-v2__exercises li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.93rem;
  flex-wrap: wrap;
}
.cs-week-v2__exercise-name {
  flex: 1;
  min-width: 200px;
  font-weight: 600;
}
.cs-week-v2__exercise-name a {
  color: hsl(142, 70%, 32%);
  text-decoration: none;
  border-bottom: 1px dotted hsl(142, 70%, 50%);
}
.cs-week-v2__exercise-name a:hover { border-bottom-style: solid; }
.cs-week-v2__exercise-meta {
  font-size: 0.84rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

/* ── ACHIEVEMENTS ───────────────────────────────────────── */
.cs-week-v2__achievements {
  background: linear-gradient(135deg, hsl(150, 30%, 96%) 0%, hsl(142, 40%, 92%) 100%);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 28px;
  border: 1px solid hsl(142, 50%, 80%);
}
.cs-week-v2__achievements h3 {
  margin: 0 0 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: hsl(150, 35%, 18%);
}
.cs-week-v2__achievements ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-week-v2__achievements li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.95rem;
  color: hsl(150, 22%, 22%);
  line-height: 1.45;
}
.cs-week-v2__achievement-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: hsl(142, 70%, 45%);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── PDF download ──────────────────────────────────────── */
.cs-week-v2__pdf {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid hsl(150, 15%, 88%);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
  text-decoration: none;
  color: hsl(150, 30%, 14%);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cs-week-v2__pdf:hover {
  border-color: hsl(142, 70%, 50%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px hsla(150, 40%, 12%, 0.08);
}
.cs-week-v2__pdf--disabled {
  pointer-events: none;
  opacity: 0.65;
}
.cs-week-v2__pdf-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  background: hsl(0, 75%, 95%);
  color: hsl(0, 70%, 45%);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-week-v2__pdf-text {
  flex: 1;
  min-width: 0;
}
.cs-week-v2__pdf-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}
.cs-week-v2__pdf-text span {
  display: block;
  font-size: 0.84rem;
  color: hsl(var(--muted-foreground));
  margin-top: 2px;
}
.cs-week-v2__pdf-action {
  background: hsl(142, 70%, 45%);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}
.cs-week-v2__pdf--disabled .cs-week-v2__pdf-action {
  background: hsl(150, 15%, 80%);
  color: hsl(var(--muted-foreground));
}

/* ── KOMUNITA CTA ──────────────────────────────────────── */
.cs-week-v2__community {
  display: block;
  padding: 16px 20px;
  background: hsl(150, 30%, 97%);
  border: 1px dashed hsl(142, 60%, 70%);
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: hsl(142, 70%, 28%);
  font-weight: 700;
  font-size: 0.96rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cs-week-v2__community:hover {
  background: hsl(150, 30%, 94%);
  border-color: hsl(142, 70%, 50%);
  border-style: solid;
}

/* ── PDF příloha (legacy) ────────────────────────────────── */
.cs-week-pdfs {
  margin: 28px 0 0;
  padding: 18px 20px;
  background: hsl(150, 30%, 97%);
  border: 1px solid hsl(150, 20%, 88%);
  border-radius: 12px;
}
.cs-week-pdfs .cs-week-section {
  margin: 0 0 12px;
  font-size: 1rem;
}
.cs-week-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid hsl(150, 20%, 84%);
  border-radius: 10px;
  color: hsl(150, 30%, 14%);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cs-week-pdf-link:hover {
  background: hsl(150, 30%, 96%);
  border-color: hsl(142, 70%, 50%);
  transform: translateY(-1px);
}
.cs-week-pdf-icon {
  font-size: 1.4rem;
  background: hsl(0, 75%, 92%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* ──────────────────────────────────────────────────────────
   F6.6 — Sidebar Runflow v2 (sticky right column ≥1024px)
   ────────────────────────────────────────────────────────── */
.cs-runflow-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .cs-runflow-sidebar--v2 {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border: 1px solid hsl(150, 15%, 88%);
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 6px 18px hsla(150, 40%, 12%, 0.06);
    position: sticky;
    top: 80px;
    align-self: start;
    height: fit-content;
  }
  .cs-runflow-sidebar__brand {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid hsl(150, 15%, 92%);
  }
  .cs-runflow-sidebar__logo {
    max-width: 200px;
    max-height: 84px;
    width: 100%;
    height: auto;
    display: inline-block;
    object-fit: contain;
  }
  .cs-runflow-sidebar__logo-fallback {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: hsl(150, 30%, 14%);
  }
  .cs-runflow-sidebar__logo-fallback b { color: hsl(142, 70%, 38%); font-weight: 900; }
  .cs-runflow-sidebar__brand small {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-top: 6px;
  }
  .cs-runflow-sidebar__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: hsl(150, 30%, 97%);
    border-radius: 10px;
    text-align: center;
  }
  .cs-runflow-sidebar__stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: hsl(142, 70%, 32%);
    line-height: 1;
  }
  .cs-runflow-sidebar__stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .cs-runflow-sidebar__cta {
    margin-top: 2px;
    background: hsl(142, 70%, 45%);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .cs-runflow-sidebar__cta:hover {
    background: hsl(142, 70%, 50%);
    transform: translateY(-1px);
  }

  /* LIVE badge */
  .cs-runflow-sidebar__live {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    background: hsl(150, 30%, 92%);
    border: 1px solid hsl(150, 25%, 80%);
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: hsl(150, 30%, 25%);
    letter-spacing: 0.06em;
  }
  .cs-runflow-sidebar__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(150, 20%, 50%);
    display: inline-block;
  }
  .cs-runflow-sidebar__live.is-live {
    background: linear-gradient(135deg, hsl(0, 85%, 95%) 0%, hsl(15, 90%, 92%) 100%);
    border-color: hsl(0, 75%, 75%);
    color: hsl(0, 75%, 38%);
  }
  .cs-runflow-sidebar__live.is-live .cs-runflow-sidebar__live-dot {
    background: hsl(0, 80%, 50%);
    box-shadow: 0 0 0 0 hsla(0, 80%, 50%, 0.6);
    animation: cs-live-pulse 1.6s infinite;
  }
  .cs-runflow-sidebar__live.is-done {
    background: hsl(142, 70%, 92%);
    border-color: hsl(142, 50%, 75%);
    color: hsl(142, 70%, 25%);
  }
  .cs-runflow-sidebar__live.is-done .cs-runflow-sidebar__live-dot { background: hsl(142, 70%, 38%); }

  .cs-runflow-sidebar__divider {
    height: 1px;
    background: hsl(150, 15%, 92%);
    margin: 2px 0;
  }
  .cs-runflow-sidebar__next {
    background: linear-gradient(135deg, hsl(150, 30%, 97%) 0%, hsl(142, 50%, 95%) 100%);
    border: 1px solid hsl(142, 50%, 85%);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
  }
  .cs-runflow-sidebar__next strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: hsl(150, 30%, 14%);
    margin-bottom: 4px;
  }
  .cs-runflow-sidebar__next p {
    margin: 0 0 10px;
    font-size: 0.78rem;
    color: hsl(150, 20%, 32%);
    line-height: 1.4;
  }
  .cs-runflow-sidebar__next-btn {
    display: inline-block;
    background: hsl(142, 70%, 42%);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .cs-runflow-sidebar__next-btn:hover { background: hsl(142, 70%, 48%); transform: translateY(-1px); }
}

@keyframes cs-live-pulse {
  0%   { box-shadow: 0 0 0 0 hsla(0, 80%, 50%, 0.6); transform: scale(1); }
  70%  { box-shadow: 0 0 0 8px hsla(0, 80%, 50%, 0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 hsla(0, 80%, 50%, 0); transform: scale(1); }
}

/* ──────────────────────────────────────────────────────────
   F6.5 — Tab Kalendář (events + week unlocky)
   ────────────────────────────────────────────────────────── */
.cs-kalendar {
  max-width: 760px;
  margin: 0 auto;
}
.cs-kalendar__head {
  margin-bottom: 18px;
}
.cs-kalendar__head .cs-section-title {
  margin: 0 0 6px;
}
.cs-cal-month {
  margin-bottom: 24px;
}
.cs-cal-month__title {
  margin: 0 0 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
  text-transform: capitalize;
  letter-spacing: -0.01em;
}
.cs-cal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-cal-item {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid hsl(150, 15%, 88%);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px hsla(150, 40%, 12%, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.cs-cal-item:hover { box-shadow: 0 8px 22px hsla(150, 40%, 12%, 0.1); transform: translateY(-1px); }
.cs-cal-item--past { opacity: 0.68; }
.cs-cal-item[data-type="stream"] { border-left: 4px solid hsl(142, 70%, 45%); }
.cs-cal-item[data-type="week_unlock"] { border-left: 4px solid hsl(220, 70%, 55%); }
.cs-cal-item[data-type="race"] { border-left: 4px solid hsl(0, 75%, 55%); }
.cs-cal-item[data-type="milestone"] { border-left: 4px solid hsl(45, 90%, 50%); }
.cs-cal-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 56px;
  padding: 6px 0;
  background: hsl(150, 30%, 96%);
  border-radius: 10px;
  text-align: center;
}
.cs-cal-item__date strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: hsl(150, 30%, 14%);
}
.cs-cal-item__date span {
  font-size: 0.72rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  margin-top: 2px;
}
.cs-cal-item__date small {
  font-size: 0.66rem;
  color: hsl(var(--muted-foreground));
  margin-top: 4px;
  font-weight: 600;
}
.cs-cal-item__body {
  flex: 1;
  min-width: 0;
}
.cs-cal-item__meta {
  margin-bottom: 4px;
}
.cs-cal-item__type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  background: hsl(150, 20%, 96%);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
}
.cs-cal-item__title {
  margin: 0 0 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(150, 30%, 14%);
}
.cs-cal-item__desc {
  margin: 0 0 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: hsl(150, 15%, 32%);
}
.cs-cal-item__link {
  display: inline-block;
  margin-top: 4px;
  background: transparent;
  border: none;
  color: hsl(142, 70%, 38%);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.cs-cal-item__link:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────────────────
   F6.5 — Notifikační centrum (bell ikona)
   ────────────────────────────────────────────────────────── */
.cs-bell-wrap { position: relative; }
.cs-bell-trigger {
  position: relative;
  background: hsla(0, 0%, 100%, 0.6);
  border: 1px solid hsl(150, 20%, 85%);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.cs-bell-trigger:hover {
  background: hsl(150, 30%, 96%);
  border-color: hsl(150, 30%, 70%);
}
.cs-bell-trigger[aria-expanded="true"] {
  background: hsl(142, 70%, 88%);
  border-color: hsl(142, 70%, 55%);
}
.cs-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: hsl(0, 75%, 50%);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  padding: 0 4px;
}
.cs-bell-menu {
  min-width: 320px;
  max-width: 360px;
  max-height: 460px;
  overflow-y: auto;
  padding: 0;
}
.cs-bell-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid hsl(150, 15%, 92%);
  background: hsl(150, 30%, 98%);
}
.cs-bell-menu__head strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: hsl(150, 30%, 14%);
}
.cs-bell-menu__mark {
  background: transparent;
  border: none;
  color: hsl(142, 70%, 38%);
  font-weight: 600;
  font-size: 0.76rem;
  cursor: pointer;
  font-family: inherit;
}
.cs-bell-menu__mark:hover { text-decoration: underline; }
.cs-bell-menu__list {
  display: flex;
  flex-direction: column;
}
.cs-bell-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid hsl(150, 15%, 94%);
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease;
}
.cs-bell-item:last-child { border-bottom: none; }
.cs-bell-item:hover { background: hsl(150, 30%, 97%); }
.cs-bell-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: hsl(150, 30%, 94%);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.cs-bell-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cs-bell-item__text strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: hsl(150, 30%, 14%);
}
.cs-bell-item__subtitle {
  font-size: 0.78rem;
  color: hsl(150, 15%, 32%);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cs-bell-item__time {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  margin-top: 2px;
}
