/* ── Marketing Landing Page ──────────────────────────────────── */

/* Layout container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Site Header / Navigation ───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-link {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active {
  border-bottom-color: var(--at-accent);
}

.nav-cta {
  background: var(--at-accent) !important;
  color: #08080f !important;
  padding: 8px 20px !important;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.glow-text {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.text-teal {
  color: var(--at-accent);
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--at-accent);
  color: #08080f;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 6px 28px rgba(0, 212, 170, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── Sections ──────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Role Grid ────────────────────────────────────────────────── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.role-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.role-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.role-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.role-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.role-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-deep);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: 70vh;
    padding: 60px 0 40px;
  }

  .section {
    padding: 60px 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ── SidelineWorks Design Tokens ──────────────────────────────── */
/* Dark-mode-first, mobile-first. Extends Tailwind defaults. */
/* No bleed from HoffDesk, Icarus, or any other project.      */

:root {
  /* Palette */
  --bg-deep: #08080f;
  --bg-surface: #0f0f1a;
  --bg-elevated: #1a1a2e;
  --bg-card: #1a1a2e;
  --bg-hover: #24243a;

  --text-primary: #e8e8f0;
  --text-secondary: #9090a8;
  --text-muted: #606078;
  --text-link: #7cc5ff;

  /* Sport colors - role semantic, not decorative */
  --at-accent: #00d4aa;        /* teal - clinical, calm */
  --at-dim: rgba(0, 212, 170, 0.12);
  --coach-accent: #f59e0b;     /* amber - action, urgency */
  --coach-dim: rgba(245, 158, 11, 0.12);
  --parent-accent: #8b5cf6;    /* violet - care, trust */
  --parent-dim: rgba(139, 92, 246, 0.12);
  --parent-bg: rgba(139, 92, 246, 0.06);

  /* Status colors */
  --status-full: #22c55e;      /* full participation */
  --status-modified: #f59e0b;  /* restricted */
  --status-out: #ef4444;       /* not available */
  --status-cleared: #3b82f6;   /* returned to play */

  --border: #2a2a3e;
  --border-light: #3a3a4e;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Responsive breakpoints */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-link); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
input, button, select { font: inherit; color: inherit; }
.back-link {
  background: none;
  border: none;
  color: var(--at-accent, #00d4aa);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.8; }

/* ── Layout ──────────────────────────────────────────────── */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────── */
.app-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.app-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.app-header__logo svg {
  width: 28px;
  height: 28px;
}
.app-header__role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.app-header__role--at { background: var(--at-dim); color: var(--at-accent); }
.app-header__role--coach { background: var(--coach-dim); color: var(--coach-accent); }
.app-header__role--parent { background: var(--parent-dim); color: var(--parent-accent); }
.app-header__school {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Demo Badge ──────────────────────────────────────────── */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.563rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 8px;
  vertical-align: middle;
}
.demo-badge--at { background: var(--at-dim); color: var(--at-accent); }
.demo-badge--coach { background: var(--coach-dim); color: var(--coach-accent); }
.demo-badge--parent { background: var(--parent-dim); color: var(--parent-accent); }
.demo-badge--ad { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Status Dots ─────────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot--full { background: var(--status-full); }
.status-dot--modified { background: var(--status-modified); }
.status-dot--out { background: var(--status-out); }
.status-dot--cleared { background: var(--status-cleared); }

/* ── Roster Grid ─────────────────────────────────────────── */
.roster-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roster-athlete {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.roster-athlete:hover { background: var(--bg-hover); }
.roster-athlete:active { background: var(--bg-hover); }
.roster-athlete__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}
.roster-athlete__info { flex: 1; min-width: 0; }
.roster-athlete__name { font-weight: 600; font-size: 0.938rem; }
.roster-athlete__detail { font-size: 0.813rem; color: var(--text-secondary); }
.roster-athlete__status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.roster-athlete__status--out { background: rgba(239, 68, 68, 0.12); color: var(--status-out); }
.roster-athlete__status--modified { background: rgba(245, 158, 11, 0.12); color: var(--status-modified); }
.roster-athlete__status--full { background: rgba(34, 197, 94, 0.12); color: var(--status-full); }
.roster-athlete__status--cleared { background: rgba(59, 130, 246, 0.12); color: var(--status-cleared); }
.roster-athlete__progress {
  height: 3px;
  background: var(--bg-tertiary, rgba(0,0,0,0.06));
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.roster-athlete__progress-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.roster-athlete__status--out + .roster-athlete__progress .roster-athlete__progress-bar,
.roster-athlete__progress-bar.roster-athlete__status--out-bar {
  background: var(--status-out, #ef4444);
}
.roster-athlete__status--modified + .roster-athlete__progress .roster-athlete__progress-bar,
.roster-athlete__progress-bar.roster-athlete__status--modified-bar {
  background: var(--status-modified, #f59e0b);
}
.roster-athlete__status--cleared + .roster-athlete__progress .roster-athlete__progress-bar,
.roster-athlete__progress-bar.roster-athlete__status--cleared-bar {
  background: var(--status-cleared, #3b82f6);
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 20px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item__dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  z-index: 1;
}
.timeline-item__dot--assessment { background: var(--at-accent); }
.timeline-item__dot--milestone { background: var(--parent-accent); }
.timeline-item__dot--restriction { background: var(--coach-accent); }
.timeline-item__dot--clearance { background: var(--status-cleared); }
.timeline-item__date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.timeline-item__title { font-weight: 600; font-size: 0.938rem; }
.timeline-item__note { font-size: 0.813rem; color: var(--text-secondary); margin-top: 2px; }
.timeline-item__by { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ── Bottom Nav ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  z-index: 100;
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  font-size: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.bottom-nav__item:hover { color: var(--text-primary); }
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__item--active { color: var(--at-accent); }
.bottom-nav__item--coach-active { color: var(--coach-accent); }
.bottom-nav__item--parent-active { color: var(--parent-accent); }

/* ── Quick Stats ─────────────────────────────────────────── */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}
.stat-card__num { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat-card__label { font-size: 0.688rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.stat-card__num--full { color: var(--status-full); }
.stat-card__num--modified { color: var(--status-modified); }
.stat-card__num--out { color: var(--status-out); }

/* ── Filters ─────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.filter-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 0.813rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-pill:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}
.filter-pill--active {
  background: var(--at-dim);
  border-color: var(--at-accent);
  color: var(--at-accent);
}

/* ── AT Sport Filter Pills ─────────────────────────── */
.at-sport-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.at-sport-filter::-webkit-scrollbar {
  display: none;
}
.at-sport-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.813rem;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
  touch-action: manipulation;
  user-select: none;
}
.at-sport-pill:hover {
  border-color: var(--text-secondary);
  background: var(--bg-hover);
}
.at-sport-pill:active {
  transform: scale(0.97);
}
.at-sport-pill--active {
  border-color: var(--at-accent);
  background: rgba(0, 212, 170, 0.15);
  color: var(--at-accent);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--at-accent);
}

/* ── Queue Skeleton Cards (fixed width, no overflow) ── */
.queue-skeleton {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  overflow: hidden;
}
.queue-skeleton__card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-hover);
}
.queue-skeleton__card:last-child {
  margin-bottom: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.btn:hover {
  opacity: 0.9;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--at-accent); color: var(--bg-deep); }
.btn--coach { background: var(--coach-accent); color: var(--bg-deep); }
.btn--parent { background: var(--parent-accent); color: white; }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 6px 14px; font-size: 0.813rem; }

/* ── Top Bar ─────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.top-bar__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.top-bar__title { font-weight: 600; font-size: 1.063rem; flex: 1; }

/* ── Athlete Detail ───────────────────────────────────────── */
.athlete-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 16px;
}
.athlete-hero__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.athlete-hero__name { font-size: 1.25rem; font-weight: 700; }
.athlete-hero__meta { font-size: 0.813rem; color: var(--text-secondary); }

/* ── Info Rows ────────────────────────────────────────────── */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row__label { font-size: 0.813rem; color: var(--text-secondary); }
.info-row__value { font-weight: 600; font-size: 0.875rem; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge--acute { background: rgba(239, 68, 68, 0.12); color: var(--status-out); }
.badge--rehab { background: rgba(245, 158, 11, 0.12); color: var(--status-modified); }

/* ── Parent-specific ─────────────────────────────────────── */
.parent-child-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.parent-child-card {
  flex-shrink: 0;
  width: 100px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
}
.parent-child-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}
.parent-child-card--active { border-color: var(--parent-accent); }
.parent-child-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 700;
}
.parent-child-card__name { font-size: 0.813rem; font-weight: 600; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.parent-child-card__status { font-size: 0.688rem; color: var(--text-secondary); margin-top: 2px; }

/* ── Loading / Empty States ──────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state__icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state__title { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.empty-state__desc { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Toast / Notification ────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 420px;
  width: calc(100% - 32px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast__icon { font-size: 1.25rem; }
.toast__msg { flex: 1; font-size: 0.875rem; }
.toast__dismiss {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Athlete Status Tabs (Coach) ─────────────────────────── */
.status-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.status-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.813rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-secondary);
  transition: all 0.15s;
  white-space: nowrap;
}
.status-tab:hover {
  background: var(--bg-hover);
}
.status-tab--active { background: var(--at-dim); color: var(--at-accent); }

/* ── Milestone Progress Bar ────────────────────────────── */
.milestone-progress {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px 16px;
}
.milestone-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s;
}
.milestone-step--done {
  background: var(--at-accent);
  border-color: var(--at-accent);
  color: var(--bg-deep);
}
.milestone-step--current {
  background: var(--at-dim);
  border-color: var(--at-accent);
  color: var(--at-accent);
  box-shadow: 0 0 8px rgba(0,212,170,0.3);
}
.milestone-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  min-width: 20px;
  transition: background 0.3s;
}
.milestone-line--done {
  background: var(--at-accent);
}

/* ── Timeline ──────────────────────────────────────────── */
.tl-events {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-event {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 4px;
}
.tl-event:last-child {
  padding-bottom: 0;
}
.tl-event__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
/* Vertical connector line between dots */
.tl-event:not(:last-child) .tl-event__dot::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 3px;
  width: 2px;
  height: calc(100% - 6px);
  background: var(--border);
}
.tl-event__card {
  flex: 1;
  border-radius: var(--radius-md, 8px);
  padding: 10px 14px;
  margin-bottom: 4px;
}
.tl-event__title {
  line-height: 1.4;
}
.tl-event__meta {
  line-height: 1.3;
}

/* Milestone labels */
.milestone-labels { display: flex; justify-content: space-between; font-size: 0.688rem; color: var(--text-secondary); padding: 0 2px; margin-top: 2px; }
.milestone-labels span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.625rem; }

/* ── Responsive Grid Utilities ───────────────────────────── */
.desktop-layout {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .desktop-layout {
    flex-direction: row;
    gap: 20px;
    max-width: var(--bp-lg);
    margin: 0 auto;
  }
  .desktop-layout__left {
    flex: 0 0 calc(45% - 10px);
    max-width: calc(45% - 10px);
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    position: sticky;
    top: 16px;
  }
  .desktop-layout__right {
    flex: 0 0 calc(55% - 10px);
    max-width: calc(55% - 10px);
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    position: sticky;
    top: 16px;
  }
  .app-shell--desktop {
    max-width: var(--bp-lg);
  }
}
@media (min-width: 1024px) {
  .desktop-layout__left {
    flex: 0 0 calc(40% - 10px);
    max-width: calc(40% - 10px);
  }
  .desktop-layout__right {
    flex: 0 0 calc(60% - 10px);
    max-width: calc(60% - 10px);
  }
  .app-shell--desktop {
    max-width: 1200px;
  }
}

/* ── Desktop detail right panel ───────────────────────── */
.detail-panel {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  position: sticky;
  top: 16px;
}
@media (min-width: 768px) {
  .detail-panel {
    display: block;
    min-height: 400px;
  }
}
.detail-panel--visible {
  display: block;
}
.detail-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: var(--text-muted);
  min-height: 300px;
}
.detail-panel__empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}
.detail-panel__empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.detail-panel__empty-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.detail-panel__content {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}

/* ── Card grid responsive ──────────────────────────────── */
@media (min-width: 480px) {
  .card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (min-width: 768px) {
  .card-grid-2 {
    gap: 16px;
  }
  .card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* ── Desktop sidebar patterns ──────────────────────────── */
@media (min-width: 768px) {
  .desktop-flex-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }
  .desktop-flex-col-left {
    flex: 0 0 calc(45% - 10px);
    max-width: calc(45% - 10px);
  }
  .desktop-flex-col-right {
    flex: 0 0 calc(55% - 10px);
    max-width: calc(55% - 10px);
  }
}
@media (min-width: 1024px) {
  .desktop-flex-col-left {
    flex: 0 0 calc(40% - 10px);
    max-width: calc(40% - 10px);
  }
  .desktop-flex-col-right {
    flex: 0 0 calc(60% - 10px);
    max-width: calc(60% - 10px);
  }
}

/* ── Desktop-only hide/show ────────────────────────────── */
@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

/* ── Accessibility ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
