/* ============================================================
   coach_mobile.css — мобильный дашборд тренера (стиль TrainingPeaks)
   Нижняя навигация 5 вкладок + светлая тема с синим акцентом.
   Скоуп: .tp-shell (не трогает десктопную тему Champagne).
   ============================================================ */
.tp-shell {
  --tp-bg: #FFFFFF;
  --tp-bg2: #F5F5F7;
  --tp-text: #1A1A1A;
  --tp-muted: #8E8E93;
  --tp-dim: #C7C7CC;
  --tp-accent: #007AFF;
  --tp-accent-light: #E5F2FF;
  --tp-fitness: #007AFF;
  --tp-form: #FF9500;
  --tp-fatigue: #FF2D55;
  --tp-border: #E5E5EA;
  --tp-green: #34C759;

  position: fixed;
  inset: 0;
  background: var(--tp-bg2);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--tp-text);
  z-index: 40;
}
.tp-screen { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tp-screen::-webkit-scrollbar { display: none; }

.tp-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--tp-bg); position: sticky; top: 0; z-index: 5; }
.tp-top h1 { font-size: 17px; font-weight: 600; flex: 1; text-align: center; margin: 0; }
.tp-top .ic { width: 26px; height: 26px; color: var(--tp-accent); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.tp-top .ic svg { width: 22px; height: 22px; }
.tp-badge { position: absolute; top: -4px; right: -4px; background: var(--tp-fatigue); color: #fff; font-size: 9px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; font-weight: 700; }

.tp-tabbar { flex: 0 0 64px; background: var(--tp-bg); border-top: 1px solid var(--tp-border); display: flex; align-items: stretch; padding: 4px 8px 6px; gap: 4px; }
.tp-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--tp-muted); font-size: 10.5px; cursor: pointer; border: none; background: none; }
.tp-tab svg { width: 24px; height: 24px; }
.tp-tab.active { color: var(--tp-accent); font-weight: 600; }

.tp-seg { display: flex; background: #EFEFF2; border-radius: 8px; padding: 2px; margin: 12px 14px; }
.tp-seg button { flex: 1; padding: 8px 0; border: none; background: none; border-radius: 6px; font-size: 13px; color: var(--tp-text); cursor: pointer; }
.tp-seg button.active { background: var(--tp-bg); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.tp-panel { background: var(--tp-bg); border-radius: 12px; margin: 0 14px 12px; overflow: hidden; }
.tp-chips { display: flex; gap: 8px; padding: 0 14px 12px; overflow-x: auto; }
.tp-chip { flex: 0 0 auto; padding: 6px 14px; border-radius: 16px; background: var(--tp-bg); border: 1px solid var(--tp-border); font-size: 12.5px; color: var(--tp-text); cursor: pointer; white-space: nowrap; }
.tp-chip.on { background: var(--tp-accent-light); border-color: var(--tp-accent); color: var(--tp-accent); font-weight: 600; }
.tp-search { margin: 12px 14px; background: #EFEFF2; border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--tp-muted); font-size: 14px; }
.tp-search input { border: none; background: none; outline: none; flex: 1; font-size: 14px; color: var(--tp-text); }

.tp-month { margin: 4px 14px 12px; background: var(--tp-bg); border-radius: 12px; padding: 12px; }
.tp-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tp-month-head b { font-size: 15px; }
.tp-month-head .arr { color: var(--tp-accent); font-size: 18px; cursor: pointer; }
.tp-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--tp-muted); margin-bottom: 4px; }
.tp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tp-day { height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 5px; font-size: 13px; border-radius: 8px; cursor: pointer; }
.tp-day.today { border: 1.5px solid var(--tp-accent); font-weight: 700; }
.tp-day.dim { color: var(--tp-dim); }
.tp-day .dots { display: flex; gap: 3px; margin-top: 3px; }
.tp-day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--tp-accent); }
.tp-day .dots i.run { background: var(--tp-form); }
.tp-day .dots i.bike { background: var(--tp-fitness); }
.tp-day .dots i.swim { background: var(--tp-green); }

.tp-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 14px 12px; }
.tp-metric { background: var(--tp-bg); border-radius: 12px; padding: 14px 8px; text-align: center; }
.tp-metric b { font-size: 30px; font-weight: 700; display: block; }
.tp-metric span { font-size: 11px; color: var(--tp-muted); }
.tp-metric .bar { height: 3px; border-radius: 2px; margin-top: 8px; }
.tp-metric.fit b { color: var(--tp-fitness); } .tp-metric.fit .bar { background: var(--tp-fitness); }
.tp-metric.form b { color: var(--tp-form); } .tp-metric.form .bar { background: var(--tp-form); }
.tp-metric.fat b { color: var(--tp-fatigue); } .tp-metric.fat .bar { background: var(--tp-fatigue); }

.tp-workout { margin: 0 14px 8px; background: var(--tp-bg); border-radius: 12px; padding: 12px 14px; }
.tp-workout .t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.tp-workout .m { font-size: 12.5px; color: var(--tp-muted); margin-top: 3px; }
.tp-workout .acts { display: flex; gap: 8px; margin-top: 10px; }
.tp-workout .acts button { flex: 1; padding: 7px 0; border-radius: 8px; border: 1px solid var(--tp-border); background: none; font-size: 12px; color: var(--tp-accent); cursor: pointer; }

.tp-group-h { font-size: 12px; color: var(--tp-muted); padding: 6px 16px 4px; font-weight: 600; text-transform: uppercase; }
.tp-row { display: flex; align-items: center; gap: 12px; background: var(--tp-bg); padding: 12px 16px; border-bottom: 1px solid var(--tp-border); cursor: pointer; }
.tp-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--tp-accent-light); color: var(--tp-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: 0 0 40px; }
.tp-row .n { flex: 1; min-width: 0; }
.tp-row .n b { display: block; font-size: 15px; font-weight: 600; }
.tp-row .n span { font-size: 12px; color: var(--tp-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-row .st { font-size: 11px; color: var(--tp-form); font-weight: 600; }
.tp-row .st.debt { color: var(--tp-fatigue); }
.tp-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--tp-accent-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 40px; }

.tp-fab { position: absolute; right: 18px; bottom: 80px; width: 54px; height: 54px; border-radius: 50%; background: var(--tp-accent); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,122,255,.4); cursor: pointer; }

.tp-empty { padding: 40px 20px; text-align: center; color: var(--tp-muted); font-size: 14px; }
.tp-ver { text-align: center; font-size: 11px; color: var(--tp-dim); padding: 10px 0 20px; }

@media (min-width: 768px){.tp-shell{max-width:480px;margin:0 auto;left:0;right:0;border-left:1px solid var(--tp-border);border-right:1px solid var(--tp-border)}}
