/* ── Variables ─────────────────────────────────────────────── */
:root {
  --mint:       #7BE4D6;
  --mint-light: #E8FAF8;
  --mint-dark:  #3DBDB5;
  --blue:       #5B9ECF;
  --blue-light: #EBF4FB;
  --bg:         #F8F9FA;
  --surface:    #FFFFFF;
  --border:     #E5E7EB;
  --text:       #1A1A2E;
  --text-2:     #6B7280;
  --text-3:     #9CA3AF;
  --success:    #22C55E;
  --warning:    #F59E0B;
  --danger:     #EF4444;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --nav-h:      64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Themes ─────────────────────────────────────────────────── */
[data-theme="lime"] {
  --mint:       #96D42A;
  --mint-light: #F0FAD4;
  --mint-dark:  #6FAD0F;
  --blue:       #5B9ECF;
  --blue-light: #EBF4FB;
}
[data-theme="teal"] {
  --mint:       #7BE4D6;
  --mint-light: #E8FAF8;
  --mint-dark:  #3DBDB5;
}
[data-theme="blue"] {
  --mint:       #5B9ECF;
  --mint-light: #EBF4FB;
  --mint-dark:  #3268B2;
  --blue:       #7B5EC9;
  --blue-light: #F0ECFB;
}
[data-theme="gold"] {
  --mint:       #C9A87C;
  --mint-light: #FDF5EB;
  --mint-dark:  #A07840;
}
[data-theme="pinkgrey"] {
  --mint:       #FF2D78;
  --mint-light: #FFE0EC;
  --mint-dark:  #D4005A;
  --blue:       #C030F0;
  --blue-light: #F2E0FF;
  --bg:         #E2E2EE;
  --surface:    #F6F6FA;
  --border:     #C8C8DC;
  --text:       #1A1A2E;
  --text-2:     #54547A;
  --text-3:     #8080A0;
}
[data-theme="pinkgrey"] .nav-item.active { color:var(--mint); background:rgba(255,45,120,.1); }
[data-theme="pinkgrey"] .weather-hero    { background:linear-gradient(160deg,#FF6FA8 0%,#FF2D78 60%,#D4005A 100%); }

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
html, body { height: 100%; }
#app {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page-coach {
  padding: 0;
  display: flex;
  min-height: 100dvh;
}

/* ── Top bar ────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.3px; }
.topbar-logo  { font-size: 1.2rem; font-weight: 800; color: var(--mint-dark); letter-spacing: -1px; }

/* ── Bottom nav ─────────────────────────────────────────────── */
.bottom-nav {
  flex-shrink: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bottom-nav::-webkit-scrollbar { display: none; }
.nav-item {
  flex: none;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px 4px;
  gap: 3px;
  color: var(--text-3);
  font-size: .62rem;
  font-weight: 500;
  transition: color .15s;
  position: relative;
  white-space: nowrap;
}
.nav-item.active { color: var(--mint-dark); }
.nav-item svg { width: 21px; height: 21px; stroke-width: 1.8; }
.nav-badge {
  position: absolute;
  top: 6px; right: calc(50% - 18px);
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 16px; }
.card-title { font-size: .85rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--mint); color: #fff; }
.btn-primary:hover { background: var(--mint-dark); }
.btn-outline  { border: 1.5px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost    { color: var(--text-2); background: transparent; padding: 8px 12px; }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-sm       { padding: 8px 14px; font-size: .85rem; }
.btn-full     { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(61,189,181,.12); }
.form-input::placeholder { color: var(--text-3); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ── Section header ─────────────────────────────────────────── */
.section { padding: 20px; }
.section + .section { padding-top: 0; }
.section-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

/* ── Today — hero séance ────────────────────────────────────── */
.hero-session {
  background: linear-gradient(135deg, var(--mint-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding: 24px 20px 28px;
  margin: 0 14px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.hero-date    { font-size: .8rem; opacity: .8; margin-bottom: 6px; }
.hero-title   { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.hero-meta    { font-size: .85rem; opacity: .85; }
.hero-empty   {
  background: var(--mint-light);
  padding: 32px 20px;
  text-align: center;
}
.hero-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.hero-empty p { color: var(--text-2); font-size: .95rem; }

/* ── Session detail ─────────────────────────────────────────── */
.session-objective {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 16px;
}
.block-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.block-item:last-child { border-bottom: none; }
.block-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.block-dot.warmup   { background: var(--warning); }
.block-dot.main     { background: var(--mint); }
.block-dot.cooldown { background: var(--blue); }
.block-dot.strength { background: #8B5CF6; }
.block-dot.optional { background: var(--text-3); }
.block-label { font-size: .75rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.block-desc  { font-size: .9rem; color: var(--text); line-height: 1.5; }
.block-dur   { font-size: .8rem; color: var(--text-2); margin-top: 2px; }

/* ── Feedback buttons ───────────────────────────────────────── */
.feedback-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.feedback-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  transition: all .15s;
}
.feedback-btn span { font-size: 1.3rem; }
.feedback-btn:active { transform: scale(.96); }
.feedback-btn.done     { border-color: var(--success); color: var(--success); background: #F0FDF4; }
.feedback-btn.partial  { border-color: var(--warning); color: var(--warning); background: #FFFBEB; }
.feedback-btn.skipped  { border-color: var(--text-3);  color: var(--text-3);  background: var(--bg); }

/* ── Cycle week ─────────────────────────────────────────────── */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
.day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.day-label  { font-size: .65rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; }
.day-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  border: 2px solid transparent;
  position: relative;
}
.day-circle.today    { border-color: var(--mint); color: var(--mint-dark); }
.day-circle.has-done { background: var(--mint); color: #fff; }
.day-circle.has-partial { background: var(--warning); color: #fff; }
.day-circle.has-planned { background: var(--blue-light); color: var(--blue); }
.day-circle.rest      { color: var(--text-3); }

/* ── Session list item ──────────────────────────────────────── */
.session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}
.session-row:last-child { border-bottom: none; }
.session-row:active { background: var(--bg); }
.session-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.session-dot.planned { background: var(--blue-light); border: 2px solid var(--blue); }
.session-dot.done    { background: var(--success); }
.session-dot.partial { background: var(--warning); }
.session-dot.skipped { background: var(--text-3); }
.session-info { flex: 1; min-width: 0; }
.session-name { font-size: .95rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-meta { font-size: .8rem; color: var(--text-2); margin-top: 1px; }
.session-date-chip {
  font-size: .75rem;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ── Benchmarks ─────────────────────────────────────────────── */
.benchmark-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.benchmark-row:last-child { border-bottom: none; }
.bm-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--mint-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.bm-label { font-size: .9rem; font-weight: 600; }
.bm-value { font-size: .85rem; color: var(--text-2); }
.bm-date  { font-size: .75rem; color: var(--text-3); margin-left: auto; flex-shrink: 0; }

/* ── Coach sidebar ──────────────────────────────────────────── */
.coach-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 24px 20px 16px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--mint-dark);
  letter-spacing: -1px;
  border-bottom: 1px solid var(--border);
}
.sidebar-nav { padding: 12px 10px; flex: 1; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 2px;
}
.sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-item:hover { background: var(--bg); color: var(--text); }
.sidebar-item.active { background: var(--mint-light); color: var(--mint-dark); font-weight: 600; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.coach-main { flex: 1; overflow-y: auto; }

/* ── Coach dashboard ────────────────────────────────────────── */
.coach-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
}
.coach-header h1 { font-size: 1.4rem; font-weight: 700; }
.coach-header p  { color: var(--text-2); font-size: .9rem; margin-top: 2px; }
.coach-content   { padding: 24px 28px; }

.athlete-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  cursor: pointer;
  transition: box-shadow .15s;
}
.athlete-card:hover { box-shadow: var(--shadow-md); }
.athlete-card-head  { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.athlete-card-name { font-weight: 700; font-size: .95rem; }
.athlete-card-sport { font-size: .8rem; color: var(--text-2); }
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.progress-fill { height: 100%; background: var(--mint); border-radius: 3px; transition: width .3s; }
.progress-label { font-size: .75rem; color: var(--text-2); display: flex; justify-content: space-between; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ── Tags / Pills ───────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.pill-mint    { background: var(--mint-light); color: var(--mint-dark); }
.pill-blue    { background: var(--blue-light); color: var(--blue); }
.pill-success { background: #F0FDF4; color: #15803D; }
.pill-warning { background: #FFFBEB; color: #B45309; }
.pill-neutral { background: var(--bg); color: var(--text-2); }
.pill-danger  { background: #FEF2F2; color: var(--danger); }

.btn-plan-alert {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--danger); color: #fff;
  border: none; border-radius: 8px;
  padding: 6px 12px; font-size: .78rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.btn-plan-alert:hover { background: #b91c1c; }

/* ── Intensity dots ─────────────────────────────────────────── */
.intensity { display: flex; gap: 3px; align-items: center; }
.intensity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.intensity-dot.on { background: var(--mint); }
.intensity-dot.on.high { background: var(--danger); }

/* ── Loader ─────────────────────────────────────────────────── */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 1000;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Login ──────────────────────────────────────────────────── */
.login-page {
  flex: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--mint-light);
}
.login-logo  { font-size: 2.2rem; font-weight: 800; color: var(--mint-dark); letter-spacing: -1.5px; margin-bottom: 6px; }
.login-tagline { font-size: .85rem; color: var(--text-2); text-align: center; margin-bottom: 32px; line-height: 1.6; }
.login-card  { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-md); padding: 28px 24px; width: 100%; max-width: 400px; }

/* ── Messages ───────────────────────────────────────────────── */
.conv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .1s;
}
.conv-row:active { background: var(--bg); }
.conv-info { flex: 1; min-width: 0; }
.conv-name  { font-weight: 600; font-size: .95rem; }
.conv-last  { font-size: .82rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time  { font-size: .75rem; color: var(--text-3); flex-shrink: 0; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: .9rem;
  line-height: 1.5;
}
.bubble.mine     { background: var(--mint); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.theirs   { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-input-row  {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input-row .form-input { border-radius: 24px; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-2);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-state p  { font-size: .85rem; line-height: 1.6; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Logo sidebar : caché sur mobile */
.nav-sidebar-logo { display: none; }

@media (min-width: 768px) {
  html, body { height: 100dvh; }
  #app {
    flex-direction: row;
    height: 100dvh;
    overflow: hidden;
  }
  .page {
    order: 2;
    flex: 1;
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
  }

  /* Sidebar athlete desktop */
  .bottom-nav {
    order: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    height: 100dvh;
    padding: 0;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 8px rgba(0,0,0,.04);
    gap: 0;
    overflow-y: auto;
  }
  .nav-sidebar-logo {
    display: block;
    padding: 20px 20px 16px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mint-dark);
    letter-spacing: -1px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    flex-shrink: 0;
  }
  .nav-item {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 11px 14px;
    font-size: .9rem;
    font-weight: 500;
    max-width: none;
    width: calc(100% - 20px);
    margin: 2px 10px;
    border-radius: var(--radius-sm);
  }
  .nav-item.active { background: var(--mint-light); }
  .nav-item svg { width: 20px; height: 20px; }

  /* Toast : plus au-dessus de la bottom nav */
  .toast { bottom: 24px; }
}

/* ── Coach sidebar compacte sur mobile ────────────────────── */
@media (max-width: 767px) {
  .page-coach {
    flex-direction: row;
    min-height: 100dvh;
  }
  .coach-sidebar {
    width: 60px;
    min-width: 60px;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    border-right: 1px solid var(--border);
    border-bottom: none;
    padding: 0;
    scrollbar-width: none;
  }
  .coach-sidebar::-webkit-scrollbar { display: none; }
  .sidebar-logo {
    padding: 12px 4px;
    font-size: .65rem;
    text-align: center;
    letter-spacing: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-nav { padding: 8px 4px; }
  .sidebar-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 4px;
    gap: 2px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: .55rem;
    text-align: center;
  }
  .sidebar-item.active {
    background: var(--mint-light);
    color: var(--mint-dark);
  }
  .sidebar-icon { font-size: 1.1rem; line-height: 1; }
  .sidebar-label { display: none; }
  .sidebar-footer {
    padding: 8px 4px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
  }
  .coach-main {
    flex: 1;
    min-width: 0;
  }
  .coach-header { padding: 12px 16px; }
  .coach-header h1 { font-size: 1.1rem; }
  .coach-content { padding: 12px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ── Athlete home sections ──────────────────────────────────── */
.section-home { padding: 14px 16px 0; }
.section-home-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.session-day-card { transition: opacity .15s, transform .1s; }
.session-day-card:active { opacity: .75; transform: scale(.98); }

/* ── Weather hero ───────────────────────────────────────────── */
.weather-hero {
  flex-shrink: 0;
  background: linear-gradient(160deg, #37474f 0%, #546e7a 50%, #78909c 100%);
  cursor: pointer;
  transition: background .4s ease;
  overflow: hidden;
}

/* ── Metrics card ───────────────────────────────────────────── */
.metrics-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.metrics-done { border-left: 4px solid var(--mint-dark); }
.metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.metrics-label { font-size: .82rem; color: var(--text-2); min-width: 90px; }
.metrics-stars { display: flex; gap: 6px; }
.star-btn {
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  opacity: .35;
  transition: opacity .15s, transform .1s;
  line-height: 1;
}
.star-btn:active { transform: scale(1.2); }
.metrics-input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  text-align: center;
  background: var(--bg);
  margin-right: 4px;
}
.block-section-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.sun-bar {
  text-align: center;
  font-size: .8rem;
  color: var(--text-3);
  padding: 6px 16px 4px;
  letter-spacing: .3px;
  min-height: 28px;
}
