/* ═══════════════════════════════════════════════════════════════
   Stratify Performance Lab — Stylesheet
   Dr. Chris King PT, DPT · B.S. Kinesiology
   Color scheme: #1E8FE1 blue on #0D0F12 dark background
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --blue:         #1E8FE1;
  --blue-light:   #3AABFF;
  --blue-dark:    #0F5A96;
  --bg:           #0D0F12;
  --bg-card:      #13161B;
  --bg-panel:     #181C22;
  --border:       rgba(30, 143, 225, 0.18);
  --border-soft:  rgba(255, 255, 255, 0.07);
  --text:         #F0F4FA;
  --text-muted:   #6B7894;
  --text-dim:     #3A4155;
  --success:      #22D4A0;
  --warn:         #F59E0B;
  --danger:       #EF4444;
  --white:        #FFFFFF;
  --purple:       #8B5CF6;
  --sidebar-w:    72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; }
select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ══════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  align-items: center;
  padding: 16px 0;
  z-index: 100;
  transition: width 0.28s ease;
  overflow: hidden;
}
.sidebar:hover { width: 200px; }

.logo-mark {
  width: auto; height: 36px; flex-shrink: 0;
  max-width: 52px;
  object-fit: contain;
  display: block;
}

.sidebar-nav {
  flex: 1; width: 100%;
  padding: 24px 0;
  display: flex; flex-direction: column; gap: 2px;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.18s;
  white-space: nowrap;
  border-left: 2px solid transparent;
}
.nav-item:hover, .nav-item.active {
  color: var(--blue-light);
  background: rgba(30, 143, 225, 0.08);
  border-left-color: var(--blue);
}
.nav-item svg { flex-shrink: 0; width: 20px; height: 20px; }
.nav-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.18s;
}
.sidebar:hover .nav-label { opacity: 1; }

.sidebar-footer {
  padding: 12px 16px;
  font-size: 10px; color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
  opacity: 0; transition: opacity 0.18s;
}
.sidebar:hover .sidebar-footer { opacity: 1; }

/* ══════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════ */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ── Topbar ── */
.topbar {
  height: 56px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center;
  padding: 0 28px; gap: 12px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white);
}
.topbar-title span { color: var(--blue); }
.topbar-spacer { flex: 1; }
.clinician-tag {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.clinician-tag strong { color: var(--text); }

/* ── Content ── */
.content {
  flex: 1; padding: 22px 28px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ══════════════════════════════════════════
   BADGES & PILLS
   ══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(30, 143, 225, 0.12);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 10px; font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap;
}
.badge.green { background: rgba(34, 212, 160, 0.1); border-color: rgba(34, 212, 160, 0.3); color: var(--success); }
.badge.warn  { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: var(--warn); }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.phase-pill {
  display: inline-block;
  padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.phase-pill.eccentric  { background: rgba(139,92,246,0.15); color: #A78BFA; }
.phase-pill.concentric { background: rgba(30,143,225,0.15); color: var(--blue-light); }
.phase-pill.isometric  { background: rgba(34,212,160,0.15); color: var(--success); }
.phase-pill.setup      { background: rgba(107,120,148,0.12); color: var(--text-muted); }

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 20px;
  position: relative; overflow: hidden;
  animation: fadeUp 0.35s ease both;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, transparent 60%);
  opacity: 0.55;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.card-action {
  font-size: 11px; font-weight: 500;
  color: var(--blue); cursor: pointer;
  letter-spacing: 0.03em; border: none; background: none;
}
.card-action:hover { color: var(--blue-light); }

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 18px 20px;
  position: relative; overflow: hidden;
  animation: fadeUp 0.35s ease both;
}
.stat-accent {
  position: absolute; top: 0; right: 0;
  width: 64px; height: 64px;
  border-radius: 0 8px 0 64px;
  opacity: 0.1;
}
.stat-accent.blue   { background: var(--blue); }
.stat-accent.green  { background: var(--success); }
.stat-accent.warn   { background: var(--warn); }
.stat-label {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px; font-weight: 800;
  color: var(--white); line-height: 1;
}
.stat-value .unit {
  font-size: 15px; font-weight: 600;
  color: var(--text-muted); margin-left: 3px;
}
.stat-sub {
  margin-top: 8px; font-size: 11px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.delta      { font-weight: 600; }
.delta.pos  { color: var(--success); }
.delta.neg  { color: var(--danger); }

/* ══════════════════════════════════════════
   GRIDS
   ══════════════════════════════════════════ */
.grid-3        { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-2        { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-main     { display: grid; grid-template-columns: 1fr 340px; gap: 14px; }
.col           { display: flex; flex-direction: column; gap: 14px; }

/* ══════════════════════════════════════════
   CONTROL BAR
   ══════════════════════════════════════════ */
.control-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; transition: all 0.18s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); }
.btn-primary.recording { background: var(--danger); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-light); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

.exercise-select {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px; outline: none; cursor: pointer;
  transition: border-color 0.18s;
}
.exercise-select:hover, .exercise-select:focus { border-color: var(--blue); }

.session-info {
  font-size: 12px; color: var(--text-muted);
  display: flex; gap: 12px; align-items: center;
  margin-left: auto;
}
.session-info strong { color: var(--white); }

/* ══════════════════════════════════════════
   VIDEO / SKELETON PANEL
   ══════════════════════════════════════════ */
.skeleton-panel {
  background: #070910;
  border-radius: 0;
  position: relative;
  height: 370px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Corner frame brackets */
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--blue); border-style: solid; opacity: 0.6; }
.corner.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.corner.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* AI badges top-right of skeleton */
.skeleton-badges {
  position: absolute; top: 12px; right: 48px;
  display: flex; gap: 6px;
}

/* HUD bar at bottom */
.hud {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  display: flex; align-items: flex-end; gap: 18px;
}
.hud-item { display: flex; flex-direction: column; gap: 2px; }
.hud-label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
}
.hud-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600;
  color: var(--blue-light);
}
.hud-spacer { flex: 1; }

.rec-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 4px; padding: 3px 8px;
  font-size: 9px; font-weight: 700;
  color: #EF4444; letter-spacing: 0.1em;
}
.rec-dot { width: 5px; height: 5px; border-radius: 50%; background: #EF4444; animation: pulse 1s infinite; }

/* SVG skeleton */
#skeletonSvg { transition: opacity 0.3s; }
.bone        { stroke: var(--blue); stroke-width: 3; stroke-linecap: round; fill: none; }
.bone.active { stroke: var(--blue-light); stroke-width: 4; animation: boneGlow 1.6s ease-in-out infinite; }
.joint       { fill: var(--blue-light); filter: drop-shadow(0 0 4px rgba(58,171,255,0.8)); }
.joint.warn  { fill: var(--warn); filter: drop-shadow(0 0 4px rgba(245,158,11,0.8)); }
.muscle-overlay { fill-opacity: 0.22; }
.muscle-overlay.quad { fill: #EF4444; animation: muscleGlow 1.6s ease-in-out infinite 0s; }
.muscle-overlay.glute { fill: #F59E0B; animation: muscleGlow 1.6s ease-in-out infinite 0.3s; }
.muscle-overlay.ham { fill: #8B5CF6; animation: muscleGlow 1.6s ease-in-out infinite 0.2s; }
.muscle-overlay.core { fill: #22D4A0; animation: muscleGlow 1.6s ease-in-out infinite 0.6s; }
.muscle-overlay.chest { fill: #F59E0B; animation: muscleGlow 1.6s ease-in-out infinite 0s; }
.muscle-overlay.shoulder { fill: #3AABFF; animation: muscleGlow 1.6s ease-in-out infinite 0.2s; }
.muscle-overlay.tricep { fill: #8B5CF6; animation: muscleGlow 1.6s ease-in-out infinite 0.4s; }
.muscle-overlay.back { fill: #22D4A0; animation: muscleGlow 1.6s ease-in-out infinite 0.1s; }
.muscle-overlay.lats { fill: #1E8FE1; animation: muscleGlow 1.6s ease-in-out infinite 0.3s; }

/* Angle labels on SVG */
.angle-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  fill: var(--blue-light);
}
.angle-label.warn { fill: var(--warn); }
.angle-arc {
  stroke: rgba(30, 143, 225, 0.45);
  stroke-width: 1.5; fill: none;
  stroke-dasharray: 3, 2;
}

/* ══════════════════════════════════════════
   SECTION TITLES
   ══════════════════════════════════════════ */
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border-soft); }

/* ══════════════════════════════════════════
   MUSCLE ACTIVATION MAP
   ══════════════════════════════════════════ */
.muscle-map { display: flex; flex-direction: column; gap: 10px; }
.muscle-row { display: flex; align-items: center; gap: 10px; }
.muscle-name { font-size: 12px; font-weight: 500; color: var(--text); width: 118px; flex-shrink: 0; }
.muscle-bar-bg { flex: 1; height: 7px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.muscle-bar { height: 100%; border-radius: 4px; transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.muscle-pct { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); width: 30px; text-align: right; }
.muscle-tag {
  font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.muscle-tag.primary   { background: rgba(30,143,225,0.15); color: var(--blue-light); }
.muscle-tag.secondary { background: rgba(107,120,148,0.12); color: var(--text-muted); }

/* ══════════════════════════════════════════
   JOINT ANGLES GRID
   ══════════════════════════════════════════ */
.angle-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.angle-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 6px; padding: 11px;
  text-align: center;
}
.angle-joint {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-muted);
  margin-bottom: 5px; font-weight: 600;
}
.angle-deg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--white); line-height: 1;
  transition: color 0.3s;
}
.angle-deg .unit { font-size: 13px; color: var(--text-muted); }
.angle-status {
  margin-top: 5px; font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px; display: inline-block;
}
.angle-status.good { background: rgba(34,212,160,0.12); color: var(--success); }
.angle-status.warn { background: rgba(245,158,11,0.12); color: var(--warn); }
.angle-status.crit { background: rgba(239,68,68,0.12); color: var(--danger); }

/* ══════════════════════════════════════════
   FORCE BAR CHART
   ══════════════════════════════════════════ */
.force-chart {
  display: flex; align-items: flex-end; gap: 5px;
  height: 88px; margin-bottom: 8px;
}
.force-col { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.force-bar-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.force-bar-fill {
  width: 100%; border-radius: 3px 3px 0 0;
  transition: height 0.6s ease, background 0.4s;
  min-height: 2px;
}
.force-rep-label { font-size: 9px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.force-stats { display: flex; gap: 14px; font-size: 11px; flex-wrap: wrap; }
.force-stats span { color: var(--text-muted); }
.force-stats strong { color: var(--white); }

/* ══════════════════════════════════════════
   SET SUMMARY & SCORE
   ══════════════════════════════════════════ */
.summary-score {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 14px;
}
.score-ring {
  width: 68px; height: 68px; border-radius: 50%;
  border: 4px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.score-ring-arc {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  border-bottom-color: var(--blue);
  transform: rotate(-30deg);
  transition: border-color 0.5s;
}
.score-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--white);
  transition: color 0.4s;
}
.score-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--white); margin-bottom: 3px;
}
.score-info p { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.summary-text { font-size: 11px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.summary-text strong { color: var(--white); }

/* Sparkline SVG chart */
.sparkline-label {
  font-size: 9px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.sparkline-note { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.sparkline-note span { color: var(--white); }

/* ══════════════════════════════════════════
   RECOMMENDATIONS
   ══════════════════════════════════════════ */
.recs { display: flex; flex-direction: column; gap: 9px; }
.rec-item {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px; border-radius: 6px;
  background: var(--bg-panel);
  border-left: 3px solid;
}
.rec-item.high { border-color: var(--danger); }
.rec-item.med  { border-color: var(--warn); }
.rec-item.low  { border-color: var(--success); }
.rec-icon { font-size: 15px; flex-shrink: 0; line-height: 1.4; }
.rec-content h4 { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.rec-content p  { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.rec-basis { font-size: 10px; color: var(--blue); font-style: italic; margin-top: 4px; }

/* ══════════════════════════════════════════
   TABS
   ══════════════════════════════════════════ */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 14px;
}
.tab {
  padding: 7px 14px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.18s;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab.active { color: var(--blue-light); border-bottom-color: var(--blue); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ══════════════════════════════════════════
   CREDENTIAL / FOOTER BAR
   ══════════════════════════════════════════ */
.credential-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 28px;
  background: rgba(30, 143, 225, 0.04);
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-muted);
}
.credential-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(30, 143, 225, 0.08);
  border: 1px solid rgba(30, 143, 225, 0.2);
  border-radius: 3px; padding: 2px 7px;
  font-weight: 600; color: var(--blue-light);
  font-size: 10px; letter-spacing: 0.04em;
}
.disclaimer {
  margin-left: auto; font-size: 10px;
  color: var(--text-dim); font-style: italic;
  text-align: right;
}

/* ══════════════════════════════════════════
   CARD: NO PADDING VARIANT (video card)
   ══════════════════════════════════════════ */
.card-flush { padding: 0; }
.card-flush .card-header { padding: 13px 16px 10px; border-bottom: 1px solid var(--border-soft); }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes pulse      { 0%,100%{opacity:1} 50%{opacity:0.35} }
@keyframes boneGlow   { 0%,100%{stroke-width:4;filter:drop-shadow(0 0 5px rgba(58,171,255,0.5))} 50%{stroke-width:5;filter:drop-shadow(0 0 10px rgba(58,171,255,0.9))} }
@keyframes muscleGlow { 0%,100%{fill-opacity:0.18} 50%{fill-opacity:0.45} }
@keyframes fadeUp     { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes countUp    { from{opacity:0;transform:scale(1.3)} to{opacity:1;transform:scale(1)} }

.rep-pop { animation: countUp 0.3s ease; }

/* ══════════════════════════════════════════
   DISCLAIMER MODAL OVERLAY
   ══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 9, 16, 0.92);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  max-width: 540px; width: 100%;
  animation: fadeUp 0.3s ease;
}
.modal h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--white); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.modal h2 span { color: var(--blue); }
.modal p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.modal .warning-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px; padding: 12px 14px;
  font-size: 12px; color: var(--warn); line-height: 1.6;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════
   EXPORT NOTIFICATION
   ══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 18px;
  font-size: 13px; color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 300;
  animation: fadeUp 0.25s ease;
  display: none;
}
.toast.show { display: block; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .angle-grid { grid-template-columns: 1fr 1fr; }
  .content { padding: 16px; }
  .topbar  { padding: 0 16px; }
}
@media (max-width: 500px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ── HEP Prescription ──────────────────────────────────────── */
.hep-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 10px; font-weight: 700;
  margin-left: 6px; vertical-align: middle;
}
.hep-drills { display: flex; flex-direction: column; gap: 10px; }
.hep-drill {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 14px;
  background: rgba(30,143,225,0.04);
  border: 1px solid rgba(30,143,225,0.13);
  border-radius: 7px;
  transition: border-color 0.2s;
}
.hep-drill:hover { border-color: rgba(30,143,225,0.28); }
.hep-drill-num {
  flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%;
  background: var(--blue-dark); color: var(--blue-light);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.hep-drill-body { flex: 1; min-width: 0; }
.hep-drill-name {
  font-size: 13px; font-weight: 600; color: var(--white);
  margin-bottom: 2px;
}
.hep-drill-muscle {
  font-size: 10px; color: var(--blue-light);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.hep-drill-rx {
  display: inline-block;
  font-size: 11px; font-weight: 600; color: var(--success);
  background: rgba(34,212,160,0.1);
  border: 1px solid rgba(34,212,160,0.22);
  border-radius: 4px; padding: 1px 8px;
  margin-bottom: 8px;
}
.hep-drill-cue {
  font-size: 11px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 5px;
}
.hep-drill-evidence {
  font-size: 10px; color: var(--blue);
  font-style: italic;
}
.hep-disclaimer {
  margin-top: 15px; padding: 10px 14px;
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 6px;
  font-size: 10px; color: #c8954a;
  line-height: 1.6;
}
.hep-disclaimer strong { color: var(--warn); }
