/* ============================================================
   KOUČINK — appka pro svěřence · davidvas.cz/koucink
   Světlý vzhled navazující na davidvas.cz (bílá + klubová zelená),
   tmavě zelený gradient jen jako akcent (závody, hero prvky).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Pozadí — jemná zelenobílá (navazuje na --secondary webu) */
  --kc-bg:          hsl(145, 30%, 97%);
  --kc-bg-2:        hsl(145, 28%, 94%);
  --kc-card:        hsl(0, 0%, 100%);
  --kc-card-2:      hsl(145, 30%, 96%);
  --kc-border:      hsl(145, 15%, 85%);
  --kc-border-soft: hsl(145, 15%, 90%);

  /* Text */
  --kc-text:        hsl(150, 25%, 11%);
  --kc-text-soft:   hsl(150, 10%, 32%);
  --kc-muted:       hsl(150, 8%, 46%);

  /* Zelené — klubová (stejná jako web --primary) + akcenty */
  --kc-green:       hsl(145, 75%, 28%);
  --kc-green-deep:  hsl(150, 80%, 18%);
  --kc-neon:        hsl(145, 75%, 27%);          /* akcent pro čísla/text — čitelný na bílé */
  --kc-neon-bright: hsl(142, 70%, 45%);          /* jasná zelená pro badge/tečky */
  --kc-neon-soft:   hsla(145, 75%, 30%, 0.08);

  /* Stavové */
  --kc-amber:       hsl(38, 85%, 38%);
  --kc-amber-bg:    hsla(40, 90%, 55%, 0.14);

  /* Glow + stíny (jemné, jako web --shadow-card) */
  --kc-glow:        0 0 28px hsla(145, 75%, 35%, 0.10);
  --kc-shadow:      0 4px 24px -6px hsla(150, 40%, 15%, 0.10);

  --kc-radius:      22px;
  --kc-radius-sm:   14px;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --kc-nav-h: 64px;
}

* { box-sizing: border-box; }

/* [hidden] musí vyhrát i nad .kc-fullstate { display:flex } apod. */
[hidden] { display: none !important; }

html { min-height: 100%; }

body.kc-body {
  margin: 0;
  background: var(--kc-bg);
  background-image:
    radial-gradient(at 15% 0%, hsla(145, 70%, 45%, 0.07) 0px, transparent 45%),
    radial-gradient(at 90% 10%, hsla(142, 75%, 40%, 0.05) 0px, transparent 40%);
  background-attachment: fixed;
  color: var(--kc-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--kc-nav-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }

a { color: var(--kc-green); text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }

.kc-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Desktop: širší bento layout */
@media (min-width: 900px) {
  .kc-container { max-width: 820px; }
}

/* ── Header ──────────────────────────────────────────────── */
.kc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--kc-border-soft);
  padding-top: env(safe-area-inset-top, 0px);
}
.kc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.kc-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--kc-text);
}
.kc-brand .kc-brand-accent { color: var(--kc-green); }
.kc-brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kc-muted);
}
.kc-header-actions { display: flex; align-items: center; gap: 10px; }

.kc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--kc-neon-soft);
  border: 1.5px solid var(--kc-green);
  color: var(--kc-green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.kc-bell {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--kc-card);
  border: 1px solid var(--kc-border);
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.kc-bell:active { transform: scale(0.92); }
.kc-bell-badge {
  position: absolute;
  top: -4px; right: -5px;
  background: hsl(0, 75%, 50%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 17px; height: 17px;
  line-height: 15px;
  border-radius: 999px;
  border: 2px solid var(--kc-card);
  padding: 0 3px;
}

/* Položky notifikačního centra */
.kc-notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--kc-border-soft);
  padding: 12px 4px;
  cursor: pointer;
}
.kc-notif-item:last-child { border-bottom: 0; }
.kc-notif-ico {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--kc-card-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.kc-notif-item--unread .kc-notif-ico { background: var(--kc-neon-soft); }
.kc-notif-text { flex: 1; min-width: 0; }
.kc-notif-title { font-weight: 700; font-size: 0.88rem; color: var(--kc-text); }
.kc-notif-item--unread .kc-notif-title::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--kc-neon-bright);
  border-radius: 50%;
  margin-left: 7px;
  vertical-align: 1px;
}
.kc-notif-body { font-size: 0.82rem; color: var(--kc-text-soft); margin-top: 1px; }
.kc-notif-time { font-size: 0.72rem; color: var(--kc-muted); margin-top: 3px; }

.kc-admin-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--kc-amber);
  background: var(--kc-amber-bg);
  border: 1px solid hsla(38, 85%, 40%, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  background-clip: padding-box;
}

/* ── Offline lišta ───────────────────────────────────────── */
.kc-offline {
  background: var(--kc-amber-bg);
  color: var(--kc-amber);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 7px 14px;
  border-bottom: 1px solid hsla(38, 85%, 40%, 0.25);
}

/* ── Views ───────────────────────────────────────────────── */
.kc-view { display: none; padding: 20px 0 36px; }
.kc-view.active { display: block; }

.kc-view-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.kc-view-sub { color: var(--kc-muted); font-size: 0.9rem; margin: 0 0 18px; }

/* ── Karty ───────────────────────────────────────────────── */
.kc-card {
  background: linear-gradient(145deg, var(--kc-card) 0%, hsl(145, 30%, 98%) 100%);
  border: 1px solid var(--kc-border-soft);
  border-radius: var(--kc-radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--kc-shadow);
}
.kc-card--hero {
  border: 1px solid hsla(145, 70%, 35%, 0.35);
  box-shadow: var(--kc-shadow), var(--kc-glow);
  position: relative;
  overflow: hidden;
}
.kc-card--hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 0%, hsla(145, 75%, 40%, 0.07), transparent 55%);
  pointer-events: none;
}
.kc-card--tap { cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease; }
.kc-card--tap:active { transform: scale(0.985); }

.kc-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kc-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kc-badge-new {
  display: inline-block;
  background: var(--kc-green);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  animation: kc-pulse 2s ease-in-out infinite;
}
@keyframes kc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsla(145, 75%, 35%, 0.4); }
  50% { box-shadow: 0 0 0 7px hsla(145, 75%, 35%, 0); }
}

/* ── Dnešní trénink ──────────────────────────────────────── */
.kc-today-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 2px 0 6px;
}
.kc-today-desc { color: var(--kc-text-soft); font-size: 0.95rem; margin: 0 0 14px; }
.kc-today-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.kc-stat-chip {
  background: var(--kc-card-2);
  border: 1px solid var(--kc-border-soft);
  border-radius: var(--kc-radius-sm);
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--kc-text-soft);
}
.kc-stat-chip b { color: var(--kc-neon); font-family: var(--font-display); }

.kc-done-line {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--kc-green);
  margin: 4px 0 4px;
  animation: kc-flip-in 0.5s ease;
}
@keyframes kc-flip-in {
  from { transform: rotateX(70deg); opacity: 0; }
  to   { transform: rotateX(0); opacity: 1; }
}
.kc-done-plan { color: var(--kc-muted); font-size: 0.9rem; }
.kc-tomorrow {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--kc-border);
  color: var(--kc-muted);
  font-size: 0.85rem;
}

/* ── Od trenéra ──────────────────────────────────────────── */
.kc-coach-card { display: flex; gap: 14px; align-items: flex-start; }
.kc-coach-photo {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--kc-card-2) url('/assets/david-hero-mobile.webp') center 18%/cover;
  border: 2px solid var(--kc-green);
  flex-shrink: 0;
}
.kc-coach-text { flex: 1; min-width: 0; }
.kc-coach-name { font-weight: 700; font-size: 0.88rem; }
.kc-coach-meta { color: var(--kc-muted); font-size: 0.76rem; margin-left: 6px; font-weight: 500; }
.kc-coach-excerpt {
  color: var(--kc-text-soft);
  font-size: 0.92rem;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kc-card--read { opacity: 0.72; }

/* ── Mini-týden ──────────────────────────────────────────── */
.kc-miniweek { display: flex; justify-content: space-between; gap: 6px; }
.kc-mwd { text-align: center; flex: 1; }
.kc-mwd-label { font-size: 0.66rem; font-weight: 600; color: var(--kc-muted); margin-bottom: 6px; text-transform: uppercase; }
.kc-mwd-dot {
  width: 34px; height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  border: 2px solid var(--kc-border);
  color: var(--kc-muted);
  background: transparent;
  transition: all 0.2s ease;
}
.kc-mwd-dot--done { background: var(--kc-green); border-color: var(--kc-green); color: #fff; }
.kc-mwd-dot--today { border-color: var(--kc-green); color: var(--kc-green); box-shadow: 0 0 12px hsla(145, 75%, 35%, 0.30); }
.kc-mwd-dot--today.kc-mwd-dot--done { background: var(--kc-green); color: #fff; }
.kc-mwd-dot--rest { border-style: dashed; opacity: 0.55; }

/* ── Dlaždice (forma + týden) ────────────────────────────── */
.kc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.kc-tile {
  background: linear-gradient(145deg, var(--kc-card) 0%, hsl(145, 30%, 98%) 100%);
  border: 1px solid var(--kc-border-soft);
  border-radius: var(--kc-radius);
  padding: 16px 18px;
  box-shadow: var(--kc-shadow);
}
.kc-tile-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--kc-text);
  line-height: 1.25;
}
.kc-tile-value .kc-neon { color: var(--kc-neon); }

/* ── Odpočet závodu — tmavě zelený hero akcent ───────────── */
.kc-race-countdown {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, hsl(150, 80%, 16%) 0%, hsl(145, 75%, 26%) 100%);
  border: 1px solid hsla(142, 70%, 45%, 0.4);
  color: #fff;
}
.kc-race-countdown .kc-card-label { color: hsla(0, 0%, 100%, 0.7); }
.kc-race-countdown .kc-race-meta { color: hsla(0, 0%, 100%, 0.82); }
.kc-race-countdown .kc-race-meta b { color: hsl(142, 85%, 68%); }
.kc-race-days {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  color: hsl(142, 85%, 68%);
  line-height: 1;
  text-align: center;
  min-width: 64px;
}
.kc-race-days small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; color: hsla(0, 0%, 100%, 0.75); margin-top: 2px; }

/* ── Kalendář ────────────────────────────────────────────── */
.kc-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.kc-cal-nav-title { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; }
.kc-cal-arrow {
  background: var(--kc-card);
  border: 1px solid var(--kc-border);
  color: var(--kc-text);
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: var(--kc-shadow);
}

.kc-day-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(145deg, var(--kc-card) 0%, hsl(145, 30%, 98%) 100%);
  border: 1px solid var(--kc-border-soft);
  border-left: 4px solid var(--kc-border);
  border-radius: var(--kc-radius-sm);
  padding: 13px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
  box-shadow: var(--kc-shadow);
}
.kc-day-row:active { transform: scale(0.985); }
.kc-day-row--done    { border-left-color: var(--kc-green); }
.kc-day-row--partial { border-left-color: hsl(40, 90%, 50%); }
.kc-day-row--today   { border-left-color: var(--kc-green); border-color: hsla(145, 70%, 35%, 0.4); box-shadow: var(--kc-shadow), var(--kc-glow); }
.kc-day-row--missed  { border-left-color: var(--kc-border); opacity: 0.75; }
.kc-day-row--rest    { opacity: 0.6; cursor: default; box-shadow: none; }

.kc-day-date { min-width: 44px; text-align: center; flex-shrink: 0; }
.kc-day-dow { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; color: var(--kc-muted); }
.kc-day-num { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.kc-day-main { flex: 1; min-width: 0; }
.kc-day-title { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-day-meta { color: var(--kc-muted); font-size: 0.8rem; margin-top: 1px; }
.kc-day-meta b { color: var(--kc-text); }
.kc-day-icons { display: flex; gap: 6px; align-items: center; flex-shrink: 0; font-size: 1rem; }

.kc-week-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px 0;
  color: var(--kc-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.kc-view-switch {
  display: inline-flex;
  background: var(--kc-card);
  border: 1px solid var(--kc-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.kc-view-switch button {
  border: 0; background: transparent; color: var(--kc-muted);
  font-size: 0.8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
}
.kc-view-switch button.active { background: var(--kc-green); color: #fff; }

/* Závodní karta v kalendáři — tmavě zelený hero akcent */
.kc-race-card {
  background: linear-gradient(135deg, hsl(150, 80%, 16%) 0%, hsl(145, 75%, 26%) 100%);
  border: 1px solid hsla(142, 70%, 45%, 0.45);
  border-radius: var(--kc-radius);
  padding: 16px 18px;
  margin-bottom: 8px;
  color: #fff;
  box-shadow: var(--kc-shadow);
}
.kc-race-head { display: flex; align-items: center; gap: 10px; }
.kc-race-prio {
  font-family: var(--font-display);
  font-weight: 900; font-size: 0.72rem;
  background: hsl(142, 85%, 68%); color: hsl(150, 80%, 10%);
  border-radius: 7px; padding: 2px 8px;
}
.kc-race-prio--b { background: hsla(0, 0%, 100%, 0.8); }
.kc-race-prio--c { background: hsla(0, 0%, 100%, 0.55); }
.kc-race-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; flex: 1; }
.kc-race-meta { color: hsla(0, 0%, 100%, 0.82); font-size: 0.85rem; margin-top: 6px; }
.kc-race-meta b { color: hsl(142, 85%, 68%); }

/* Měsíční mřížka */
.kc-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kc-mg-head { text-align: center; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; color: var(--kc-muted); padding: 4px 0; }
.kc-mg-day {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--kc-border-soft);
  background: var(--kc-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--kc-text-soft);
  cursor: pointer;
}
.kc-mg-day--out { opacity: 0.35; }
.kc-mg-day--today { border-color: var(--kc-green); color: var(--kc-green); box-shadow: var(--kc-glow); }
.kc-mg-dots { display: flex; gap: 3px; height: 6px; }
.kc-mg-dot { width: 6px; height: 6px; border-radius: 50%; }
.kc-mg-dot--done { background: var(--kc-green); }
.kc-mg-dot--plan { border: 1.5px solid var(--kc-muted); }
.kc-mg-dot--race { background: var(--kc-neon-bright); box-shadow: 0 0 6px var(--kc-neon-bright); }

/* ── Detail tréninku ─────────────────────────────────────── */
.kc-detail {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--kc-bg);
  background-image: radial-gradient(at 15% 0%, hsla(145, 70%, 45%, 0.07) 0px, transparent 45%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: none;
}
.kc-detail.active { display: block; animation: kc-slide-up 0.25s ease; }
@keyframes kc-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.kc-detail-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
}
.kc-back {
  background: var(--kc-card);
  border: 1px solid var(--kc-border);
  color: var(--kc-text);
  width: 42px; height: 42px;
  border-radius: 13px;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: var(--kc-shadow);
}
.kc-detail-status { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--kc-muted); }
.kc-detail-status--done { color: var(--kc-green); }
.kc-detail-title { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }

/* 4 velká čísla */
.kc-bignums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
@media (min-width: 560px) { .kc-bignums { grid-template-columns: repeat(4, 1fr); } }
.kc-bignum {
  background: linear-gradient(145deg, var(--kc-card) 0%, hsl(145, 30%, 98%) 100%);
  border: 1px solid var(--kc-border-soft);
  border-radius: var(--kc-radius-sm);
  padding: 14px;
  text-align: center;
  box-shadow: var(--kc-shadow);
}
.kc-bignum-v { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--kc-neon); line-height: 1.1; }
.kc-bignum-v small { font-size: 0.85rem; font-weight: 700; color: var(--kc-text-soft); }
.kc-bignum-l { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--kc-muted); margin-top: 4px; }

/* Komentář trenéra — srdce obrazovky */
.kc-comment-card {
  border: 1.5px solid var(--kc-green);
  box-shadow: var(--kc-shadow), var(--kc-glow);
}
.kc-comment-text { font-size: 0.98rem; color: var(--kc-text); margin: 8px 0 0; white-space: pre-wrap; }
.kc-reactions { display: flex; gap: 8px; margin-top: 14px; }
.kc-react-btn {
  background: var(--kc-card-2);
  border: 1px solid var(--kc-border);
  border-radius: 999px;
  font-size: 1.05rem;
  padding: 7px 13px;
  transition: all 0.15s ease;
}
.kc-react-btn:active { transform: scale(1.2); }
.kc-react-btn.active {
  background: var(--kc-neon-soft);
  border-color: var(--kc-green);
  box-shadow: 0 0 10px hsla(145, 75%, 35%, 0.25);
}

/* Úseky */
.kc-step {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--kc-border-soft);
}
.kc-step:last-child { border-bottom: 0; }
.kc-step-ico { font-size: 0.95rem; width: 26px; text-align: center; flex-shrink: 0; }
.kc-step-name { flex: 1; font-weight: 600; font-size: 0.92rem; }
.kc-step-name small { display: block; color: var(--kc-muted); font-weight: 500; font-size: 0.78rem; }
.kc-step-target { color: var(--kc-text-soft); font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.kc-step--repeat { padding-left: 14px; border-left: 2px solid var(--kc-green); }

/* Rozbalovací sekce */
.kc-expand summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex; align-items: center; justify-content: space-between;
}
.kc-expand summary::-webkit-details-marker { display: none; }
.kc-expand summary::after { content: '▾'; color: var(--kc-muted); transition: transform 0.2s; }
.kc-expand[open] summary::after { transform: rotate(180deg); }
.kc-expand-body { margin-top: 14px; }

/* Zóny bar */
.kc-zones-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.kc-zone-seg { min-width: 2px; }
.kc-zones-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.74rem; color: var(--kc-muted); }
.kc-zl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* Watch řádek */
.kc-watch-line {
  display: flex; align-items: center; gap: 10px;
  color: var(--kc-green-deep); font-size: 0.88rem; font-weight: 600;
  background: var(--kc-neon-soft);
  border: 1px solid hsla(145, 70%, 35%, 0.25);
  border-radius: var(--kc-radius-sm);
  padding: 12px 16px;
}

/* ── Profil ──────────────────────────────────────────────── */
.kc-profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.kc-profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--kc-neon-soft);
  border: 2px solid var(--kc-green);
  color: var(--kc-green);
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.kc-profile-name { font-size: 1.25rem; font-weight: 800; }
.kc-profile-since { color: var(--kc-muted); font-size: 0.84rem; }

.kc-pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kc-pr {
  background: var(--kc-card-2);
  border: 1px solid var(--kc-border-soft);
  border-radius: var(--kc-radius-sm);
  padding: 12px 14px;
}
.kc-pr-dist { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--kc-muted); }
.kc-pr-time { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--kc-text); margin-top: 2px; }
.kc-pr-pace { font-size: 0.76rem; color: var(--kc-green); font-weight: 600; }

.kc-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--kc-border-soft);
}
.kc-row:last-child { border-bottom: 0; }
.kc-row-label { font-weight: 600; font-size: 0.92rem; }
.kc-row-label small { display: block; color: var(--kc-muted); font-weight: 500; font-size: 0.78rem; }
.kc-row-value { color: var(--kc-text-soft); font-size: 0.9rem; font-weight: 600; text-align: right; }

/* Toggle */
.kc-toggle { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.kc-toggle input { opacity: 0; width: 0; height: 0; }
.kc-toggle .kc-slider {
  position: absolute; inset: 0;
  background: var(--kc-border);
  border: 1px solid var(--kc-border);
  border-radius: 999px;
  transition: 0.2s;
  cursor: pointer;
}
.kc-toggle .kc-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 4px hsla(150, 40%, 15%, 0.25);
}
.kc-toggle input:checked + .kc-slider { background: var(--kc-green); border-color: var(--kc-green); }
.kc-toggle input:checked + .kc-slider::before { transform: translateX(20px); }

/* ── Tlačítka ────────────────────────────────────────────── */
.kc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--kc-green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px -4px hsla(145, 75%, 25%, 0.4);
}
.kc-btn:active { transform: scale(0.97); }
.kc-btn--ghost {
  background: var(--kc-card);
  border: 1px solid var(--kc-border);
  color: var(--kc-text-soft);
  box-shadow: none;
}
.kc-btn--block { width: 100%; }
.kc-btn--danger { background: var(--kc-card); border: 1px solid hsla(0, 70%, 50%, 0.35); color: hsl(0, 70%, 45%); box-shadow: none; }

/* ── Modal (hlášení, týdenní shrnutí) ────────────────────── */
.kc-modal-wrap {
  position: fixed; inset: 0;
  z-index: 200;
  background: hsla(150, 30%, 12%, 0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 560px) { .kc-modal-wrap { align-items: center; } }
.kc-modal-wrap.active { display: flex; }
.kc-modal {
  background: var(--kc-card);
  border: 1px solid var(--kc-border-soft);
  border-radius: var(--kc-radius) var(--kc-radius) 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  animation: kc-slide-up 0.25s ease;
}
@media (min-width: 560px) { .kc-modal { border-radius: var(--kc-radius); } }
.kc-modal-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); }
.kc-modal-close { background: none; border: 0; color: var(--kc-muted); font-size: 1.4rem; line-height: 1; padding: 4px; }

.kc-field { margin-bottom: 14px; }
.kc-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--kc-text-soft); margin-bottom: 6px; }
.kc-field input, .kc-field select, .kc-field textarea {
  width: 100%;
  background: var(--kc-bg);
  border: 1px solid var(--kc-border);
  border-radius: var(--kc-radius-sm);
  color: var(--kc-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
}
.kc-field textarea { min-height: 96px; resize: vertical; }
.kc-field input:focus, .kc-field select:focus, .kc-field textarea:focus {
  outline: none;
  border-color: var(--kc-green);
}
.kc-type-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-type-pill {
  background: var(--kc-bg);
  border: 1px solid var(--kc-border);
  color: var(--kc-text-soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}
.kc-type-pill.active { background: var(--kc-green); border-color: var(--kc-green); color: #fff; }

/* ── Spodní navigace ─────────────────────────────────────── */
.kc-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: hsla(0, 0%, 100%, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--kc-border-soft);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.kc-nav-inner {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  height: var(--kc-nav-h);
}
.kc-nav-btn {
  flex: 1;
  background: none;
  border: 0;
  color: var(--kc-muted);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  transition: color 0.15s ease;
}
.kc-nav-btn .kc-nav-ico { font-size: 1.35rem; line-height: 1; }
.kc-nav-btn.active { color: var(--kc-green); }
.kc-nav-btn.active .kc-nav-ico { filter: drop-shadow(0 0 6px hsla(145, 75%, 35%, 0.35)); }

/* ── Stavy: loading / denied / empty ─────────────────────── */
.kc-fullstate {
  min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.kc-fullstate h2 { font-size: 1.3rem; font-weight: 800; margin: 14px 0 8px; }
.kc-fullstate p { color: var(--kc-muted); max-width: 380px; margin: 0 0 20px; }
.kc-spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--kc-border);
  border-top-color: var(--kc-green);
  border-radius: 50%;
  animation: kc-spin 0.8s linear infinite;
}
@keyframes kc-spin { to { transform: rotate(360deg); } }

.kc-empty {
  text-align: center;
  color: var(--kc-muted);
  font-size: 0.9rem;
  padding: 26px 16px;
}

.kc-sync-line { text-align: center; color: var(--kc-muted); font-size: 0.74rem; margin-top: 4px; }

/* Admin picker */
.kc-picker-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  background: var(--kc-bg);
  border: 1px solid var(--kc-border);
  border-radius: var(--kc-radius-sm);
  color: var(--kc-text);
  padding: 12px 14px;
  margin-bottom: 8px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
}
.kc-picker-item small { color: var(--kc-muted); font-weight: 500; display: block; }

/* ── Plán ────────────────────────────────────────────────── */
.kc-adh-bar {
  height: 10px;
  background: var(--kc-card-2);
  border: 1px solid var(--kc-border-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.kc-adh-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kc-green), var(--kc-neon-bright));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.kc-wk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--kc-border-soft);
  cursor: pointer;
}
.kc-wk-row:last-child { border-bottom: 0; }
.kc-wk-row--current {
  margin: 0 -10px;
  padding: 12px;
  background: var(--kc-neon-soft);
  border-radius: var(--kc-radius-sm);
  border-bottom-color: transparent;
}
.kc-wk-row--past { opacity: 0.65; }
.kc-wk-date {
  min-width: 84px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--kc-muted);
  flex-shrink: 0;
}
.kc-wk-row--current .kc-wk-date { color: var(--kc-green); }
.kc-wk-main { flex: 1; min-width: 0; }
.kc-wk-meta { font-size: 0.88rem; color: var(--kc-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-wk-meta b { color: var(--kc-text); }
.kc-wk-chip {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--kc-green);
  background: var(--kc-neon-soft);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.kc-wk-chip--deload { color: hsl(240, 40%, 50%); background: hsla(240, 50%, 60%, 0.1); }
.kc-wk-chip--taper { color: var(--kc-amber); background: var(--kc-amber-bg); }

/* ── „Jak to šlo?" (RPE) ─────────────────────────────────── */
.kc-rpe-row { display: flex; gap: 5px; flex-wrap: wrap; }
.kc-rpe-pill {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--kc-bg);
  border: 1.5px solid var(--kc-border);
  color: var(--kc-text-soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.12s ease;
}
.kc-rpe-pill:active { transform: scale(1.15); }
.kc-rpe-pill.active {
  background: var(--kc-green);
  border-color: var(--kc-green);
  color: #fff;
  box-shadow: 0 0 12px hsla(145, 75%, 35%, 0.35);
}

/* ── Pull-to-refresh ─────────────────────────────────────── */
.kc-ptr {
  position: fixed;
  top: calc(58px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-56px);
  z-index: 80;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--kc-card);
  border: 1px solid var(--kc-border);
  box-shadow: var(--kc-shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}
.kc-ptr--visible { opacity: 1; }
.kc-ptr--spin .kc-ptr-ico { animation: kc-spin 0.8s linear infinite; display: inline-block; }

/* Konfety (osobák) */
@keyframes kc-confetti { 0% { transform: translateY(-8px) rotate(0); opacity: 1; } 100% { transform: translateY(50px) rotate(220deg); opacity: 0; } }
