/* ============================================================
   coach.tristyle.team — компоненты панели тренера.
   Базовые токены и общие классы наследуются из main.css
   (скопирован с tristyle.team). Здесь — только новое:
   оболочка с навигацией, вход, списки, гриды, панели, FAB.
   Mobile-first.
   ============================================================ */

:root {
  --nav-h: 60px;            /* высота нижней навигации (моб.) */
  --ok: #16a34a;            /* был на тренировке */
  --absent: #dc2626;        /* пропуск */
  --ok-soft: #dcfce7;
  --absent-soft: #fee2e2;
}

/* ---------- Оболочка ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 250, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.app-header-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 16px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.app-brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--text); min-width: 0;
}
.app-brand img { width: 30px; height: 30px; object-fit: contain; }
.app-brand b { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.app-brand span { color: var(--accent-strong); font-weight: 600; }

.app-user { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.app-user-name {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
  max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-logout {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
  transition: all .15s;
}
.app-logout:hover { color: var(--absent); border-color: var(--absent); background: var(--absent-soft); }

/* ---------- Навигация (5 вкладок) ---------- */
.app-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: stretch;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--border);
}
.app-nav a {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--text-faint);
  font-size: 10.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: color .15s;
  padding: 6px 2px;
}
.app-nav a svg { width: 22px; height: 22px; stroke-width: 1.9; }
.app-nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-nav a.active { color: var(--accent-strong); }
.app-nav a:active { background: var(--surface-2); }

.app-main { padding-top: 16px; padding-bottom: calc(var(--nav-h) + 28px); }

/* Десктоп: навигация переезжает наверх, под шапку */
@media (min-width: 721px) {
  .app-nav {
    position: sticky; top: 56px; bottom: auto; z-index: 49;
    height: auto; max-width: var(--container);
    margin: 0 auto; border-top: 0; border-bottom: 0;
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    gap: 4px; padding: 8px 16px 0;
  }
  /* Полноширинная подложка с блюром, чтобы контент не просвечивал под табами */
  .app-nav::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
    width: 100vw; transform: translateX(-50%); z-index: -1;
    background: rgba(247, 248, 250, 0.9);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .app-nav a {
    flex: 0 0 auto; flex-direction: row; gap: 7px;
    font-size: 14px; padding: 9px 16px; border-radius: 9px 9px 0 0;
    border-bottom: 2px solid transparent;
  }
  .app-nav a svg { width: 18px; height: 18px; }
  .app-nav a:hover { color: var(--text); background: var(--surface-2); }
  .app-nav a.active { color: var(--text); border-bottom-color: var(--accent); background: transparent; }
  .app-main { padding-bottom: 60px; }
}

/* ---------- Заголовок страницы ---------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin: 6px 0 16px;
}
.page-head h1 {
  font-size: clamp(22px, 5vw, 30px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
}
.page-head .sub { color: var(--text-muted); font-size: 13px; margin-top: 3px; }

/* ---------- Кнопки ---------- */
.btn {
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text-muted); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: var(--absent-soft); color: var(--absent); }
.btn-danger:hover { background: var(--absent); color: #fff; }

/* ===== Заплывы и серии (результаты) — используются на /athletes и /groups ===== */
.res-item {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  margin-bottom: 8px; background: var(--surface);
}
.res-item .top {
  display: flex; justify-content: space-between; gap: 8px;
  align-items: baseline; flex-wrap: wrap;
}
.res-item .title { font-weight: 600; font-size: 14px; }
.res-item .date {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-faint); white-space: nowrap;
}
.res-item .splits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.res-split {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px;
  background: var(--surface-2); border-radius: 6px; padding: 3px 8px;
}
.res-item .single-time {
  font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.res-actions { display: inline-flex; gap: 4px; }
.res-item.res-external { border-left: 3px solid var(--accent); background: var(--surface-2); }

/* заголовок секции + бейдж источника */
.res-section-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700; color: var(--text-faint);
  margin: 18px 0 10px;
}
.res-section-head:first-child { margin-top: 4px; }
.src-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em; text-transform: none;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  text-decoration: none; transition: all .12s; display: inline-block;
}
a.src-badge:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* График прогресса (SVG) */
.prog-chart {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 12px; background: var(--surface);
}
.pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pc-title { font-weight: 600; font-size: 13.5px; }
.pc-trend { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.pc-trend.up { background: var(--ok-soft); color: var(--ok); }
.pc-trend.down { background: var(--absent-soft); color: var(--absent); }
.pc-trend.flat { background: var(--surface-2); color: var(--text-muted); }
.pc-svg { width: 100%; height: 90px; display: block; overflow: visible; }
.pc-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pc-svg circle { fill: #fff; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pc-svg circle.pb { fill: var(--gold, #d4a017); stroke: #fff; r: 4; }
.pc-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); margin-top: 6px; }

/* Участники соревнования (карточка старта + шит выбора) */
.comp-parts { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); width: 100%; }
.cp-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; flex-wrap: wrap; }
.cp-count { background: var(--accent-soft); color: var(--accent-strong); padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.cp-edit { margin-left: auto; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 7px;
  background: var(--accent); border: 0; color: #fff; cursor: pointer; font-family: inherit; }
.cp-edit:hover { background: var(--accent-strong); }
.cp-list { display: flex; flex-wrap: wrap; gap: 5px; }
.part-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 3px; border-radius: 999px;
  background: var(--surface-2); font-size: 12.5px; font-weight: 500;
}
.part-chip img, .part-chip .part-ini {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  background: var(--accent-soft); color: var(--accent-strong);
  display: inline-grid; place-items: center; font-size: 10px; font-weight: 700;
}

/* Шит выбора участников */
.part-pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.part-pick {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; font-family: inherit; text-align: left;
  min-height: 48px; transition: all .12s; width: 100%;
}
.part-pick:hover { background: #fff; border-color: var(--accent); }
.part-pick.on { background: var(--ok-soft); border-color: var(--ok); }
.part-mark {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  background: var(--surface-2); color: var(--text-faint);
}
.part-pick.on .part-mark { background: var(--ok); color: #fff; }
.part-av {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px;
  overflow: hidden; background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  text-align: center; line-height: 1.1;
}
.part-av img { width: 100%; height: 100%; object-fit: cover; }
.part-name {
  font-size: 14px; font-weight: 600; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Результаты соревнований */
.comp-results { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); width: 100%; }
.cr-list { display: flex; flex-direction: column; gap: 6px; }
.comp-result-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border-radius: 9px; padding: 8px 12px;
}
.cr-main { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.cr-name { font-weight: 700; font-size: 14px; }
.res-place {
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #facc15); color: #7c2d12;
}
.cr-meta { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.cr-time { font-weight: 700; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.cr-tools { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.comp-my-result {
  margin-top: 6px; font-size: 13px; padding: 6px 10px;
  background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 8px; color: #78350f;
}
.comp-my-result .res-place { vertical-align: 1px; }

/* Иконочная кнопка (edit/delete) — общая для всех страниц */
.ic-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; font-size: 15px; color: var(--text-muted); line-height: 1;
  font-family: inherit; padding: 0; flex: 0 0 auto;
}
.ic-btn:hover { color: var(--text); border-color: var(--border-strong); }
.ic-btn.danger:hover { color: var(--absent); border-color: var(--absent); background: var(--absent-soft); }

/* FAB — плавающая кнопка добавления */
.fab {
  position: fixed; right: 18px; z-index: 55;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; font-weight: 300;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -6px rgba(8,145,161,0.5), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform .12s, background .15s;
}
.fab:hover { background: var(--accent-strong); transform: translateY(-2px) scale(1.04); }
.fab:active { transform: scale(0.96); }
@media (min-width: 721px) { .fab { bottom: 28px; right: 28px; } }

/* ---------- Поля ввода ---------- */
.input, .textarea, .select {
  width: 100%; font-family: inherit; font-size: 16px; /* 16px = нет зума на iOS */
  padding: 11px 13px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field { margin-bottom: 14px; }
.field > label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600; color: var(--text-faint); margin-bottom: 6px;
}

/* ---------- Экран входа ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px 28px 30px;
  box-shadow: var(--shadow-md); text-align: center;
}
.login-card img { width: 52px; height: 52px; margin-bottom: 14px; }
.login-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.login-card .sub { color: var(--text-muted); font-size: 14px; margin: 6px 0 24px; }
.login-card .field { text-align: left; }
.login-card .btn-primary { width: 100%; padding: 13px; font-size: 15px; margin-top: 6px; }
.login-err {
  margin-top: 14px; padding: 9px 12px; border-radius: 9px;
  background: var(--absent-soft); color: var(--absent); font-size: 13px;
}

/* ---------- Список (спортсмены и т.п.) ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: border-color .12s, transform .08s, box-shadow .12s;
  text-align: left; width: 100%; font-family: inherit;
}
.list-row:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.list-row:active { transform: scale(0.995); }
.list-row.active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }

.avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; background: var(--surface-2);
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px; color: var(--accent-strong);
  border: 1px solid var(--border);
}
.list-row .body { flex: 1 1 auto; min-width: 0; }
.list-row .name { font-weight: 600; font-size: 15px; color: var(--text); }
.list-row .meta {
  font-size: 12.5px; color: var(--text-muted); margin-top: 2px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.list-row .chev { flex: 0 0 auto; color: var(--text-faint); font-size: 20px; }

/* цветной бейдж группы */
.gbadge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-muted);
}
.gbadge .dot { width: 7px; height: 7px; border-radius: 50%; }

/* напоминания о датах */
.reminder {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
}

/* ---------- Оверлей-шит (общий: профиль, формы, тренировки, группы) ---------- */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11,18,32,0.5); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: var(--surface); width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 0;
  box-shadow: 0 -8px 40px -12px rgba(0,0,0,0.4);
  animation: sheetUp .22s ease;
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 721px) {
  .sheet-overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 18px; max-width: 760px; }
}
@media (min-width: 1100px) {
  .sheet { max-width: 880px; }
}
.sheet-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.sheet-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.sheet-close {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--surface-2); border: 0; border-radius: 9px; cursor: pointer;
  font-size: 20px; color: var(--text-muted); line-height: 1;
}
.sheet-close:hover { background: var(--border); color: var(--text); }
.sheet-pad { padding: 18px; }

/* кнопки-ряд внизу формы */
.prof-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Панель/секция ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 16px; margin-bottom: 14px;
}
.panel-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 12px;
}

/* ---------- Фильтры/поиск (адаптация) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 200px; }
.toolbar .search input {
  width: 100%; font-family: inherit; font-size: 16px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); box-shadow: var(--shadow-sm);
}
.toolbar .search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Утилиты ---------- */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); font-size: 14px; }
.muted { color: var(--text-faint); }
.spinner-wrap { display: grid; place-items: center; padding: 48px; }
.spinner {
  width: 28px; height: 28px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* ---------- Тосты (App.toast / App.undoToast) ---------- */
#appToasts {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px));
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: min(92vw, 480px); pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 14px;
  max-width: 100%;
  background: #1e293b; color: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  padding: 11px 16px; border-radius: 12px;
  box-shadow: 0 8px 28px -6px rgba(15, 23, 42, 0.35);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { background: #b91c1c; }
.toast.ok { background: var(--ok); }
.toast-undo-btn {
  flex: 0 0 auto; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #7dd3fc;
  font-size: 13px; font-weight: 800; letter-spacing: 0.01em;
  padding: 6px 12px; border-radius: 8px;
  transition: background .15s;
}
.toast-undo-btn:hover { background: rgba(255, 255, 255, 0.26); }
.toast-undo-btn:disabled { opacity: 0.5; cursor: default; }
@media (min-width: 721px) { #appToasts { bottom: 24px; } }
.toast, .toast span { white-space: pre-line; }

/* ---------- Публичная страница «Поделиться тренировкой» (/share) ---------- */
.share-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--shadow-md); }
.share-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 12px; }
.share-brand { font-size: 18px; font-weight: 800; color: var(--accent-strong); }
.share-kind { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.share-when { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.share-focus { font-size: 17px; font-weight: 700; }
.share-tasks { font-size: 14.5px; color: var(--text); white-space: pre-line; line-height: 1.6; margin-top: 12px;
  background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.share-loading { color: var(--text-faint); }
.share-err { color: var(--absent); font-size: 14px; }
.share-foot { text-align: center; color: var(--text-faint); font-size: 12px; margin-top: 16px; }

/* ---------- Типы тренировок (триатлон) ---------- */
.sport-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.sport-seg .seg-btn { flex: 1 1 auto; font-size: 12px; padding: 6px 8px; white-space: nowrap; }
.an-vol-line { font-weight: 700; font-size: 14px; margin: 10px 0 2px; }
.an-sport-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.an-sport-switch .chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 5px;
}
.an-sport-switch .chip.active { background: var(--text); color: #fff; border-color: var(--text); }
/* компактный селектор спорта в строке плана на месяц */
.mpf-sport { flex: 0 0 auto; width: 56px; padding: 6px 4px; text-align: center; }

/* Глазик показа пароля в форме входа */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { color: var(--text); }
.pw-toggle svg { width: 20px; height: 20px; display: block; }
.pw-toggle .eye-off { display: none; }
.pw-toggle.on .eye-on { display: none; }
.pw-toggle.on .eye-off { display: block; }
