/* Две темы (Дмитрий 05.11.2026, макет v5 «Да, в вёрстку»): TRS Live белая в цветах кабинета, TE Live в цветах роликов.
   Тему ставит ранний скрипт в заголовке страницы (web/theme.ts EARLY_THEME_SCRIPT); прежнее data-theme="dark" = TE Live. */
:root, :root[data-theme="trs"], :root[data-theme="light"] {
  --bg: #ffffff;
  --ink: #16231c;
  --muted: #5b6b62;
  --faint: rgba(49, 95, 80, .08);
  --accent: #315f50;
  --gold: #8a6d1f;
  --line: #e4e7e5;
  --err: #b3261e;
  color-scheme: light;
}
:root[data-theme="te"], :root[data-theme="dark"] {
  --bg: #050000;
  --ink: #f8fafc;
  --muted: #bccad4;
  --faint: rgba(255, 255, 255, .07);
  --accent: #b1eec2;
  --gold: #f5c773;
  --line: rgba(255, 255, 255, .14);
  --err: #ff948e;
  color-scheme: dark;
}
:root[data-theme="te"] body, :root[data-theme="dark"] body {
  background: #050000;
  font-family: "Geist Mono TRS", ui-monospace, "SF Mono", Menlo, monospace;
  font-synthesis: none;
}
/* Свечение TE Live слоем во весь экран под содержимым, как body.vt::before в vt.css макета v5. Фон body с fixed Safari
   на iPhone не держит: круги растягиваются на всю длину страницы, и красноватый тон уходит под таблицы и списки. */
:root[data-theme="te"] body::before, :root[data-theme="dark"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 112% -6%, rgba(255, 42, 47, .30) 0, rgba(255, 42, 47, .15) 20%, rgba(255, 42, 47, 0) 44%), radial-gradient(circle at -20% 106%, rgba(255, 42, 47, .12) 0, rgba(255, 42, 47, 0) 40%);
}
/* TE Live на нынешних экранах (vt.css макета v5): у Geist Mono одно начертание, ложный жирный не рисуем (font-synthesis
   выше); нажатая плитка и кнопка контуром мятного цвета, подписи кнопок капсом, как в роликах. */
:root[data-theme="te"] .tile.on { background: transparent; border-color: var(--accent); color: var(--accent); }
:root[data-theme="te"] .tile.on small { color: var(--muted); }
:root[data-theme="te"] .tile.on .dot { background: var(--accent); }
:root[data-theme="te"] .tile.on .lg-go { color: var(--accent); }
:root[data-theme="te"] .btn { background: transparent; border: 1px solid var(--accent); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
:root[data-theme="te"] .hero h1 { font-weight: 400; letter-spacing: 0; }
/* Шапка одной строкой (Дмитрий 06.11.2026 00:15: «в одном стиле переключалку сбоку»): слева бренд (на компьютере с датой
   недели), справа одна группа капсул одного стиля: тема, язык, «Мои гонки» или вход. Высота 30 px, рамка var(--line),
   скругление 15 px, 13 px (в TE Live 11 px капсом), промежуток 6 px, всё по центру строки. На телефоне дата только в
   плитке «Сейчас», значок ленты школы только в «Моих гонках». */
.top .lead { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.top .right > a, .top .right > button {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 15px;
  background: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 400; line-height: 1; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.top .right > .icon, .top .right > .feed { width: 30px; padding: 0; justify-content: center; }
.top .right .ic { width: 15px; height: 15px; display: block; }
.top .right > .theme-sw { height: 30px; padding: 2px; }
.top .right > .theme-sw button { height: 24px; min-height: 0; padding: 0 9px; border-radius: 12px; font-size: 12px; line-height: 1; }
:root[data-theme="te"] .top .right > a, :root[data-theme="te"] .top .right > button, :root[data-theme="te"] .top .right > .theme-sw button,
:root[data-theme="dark"] .top .right > a, :root[data-theme="dark"] .top .right > button, :root[data-theme="dark"] .top .right > .theme-sw button {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
}
.b-te { white-space: nowrap; }
/* Телефон: строка вмещает бренд TE с логотипом и три капсулы до 375 px (капсулы плотнее, логотип 44 px). */
@media (max-width: 600px) {
  .top .dates, .top .right > .feed { display: none; }
  .top .right > a, .top .right > button { padding: 0 9px; }
  .top .right > .icon { padding: 0; }
  .top .right > .theme-sw button { padding: 0 7px; }
  :root[data-theme="te"] .top .right > a, :root[data-theme="te"] .top .right > button, :root[data-theme="te"] .top .right > .theme-sw button,
  :root[data-theme="dark"] .top .right > a, :root[data-theme="dark"] .top .right > button, :root[data-theme="dark"] .top .right > .theme-sw button { letter-spacing: .03em; }
  .top .te-logo { width: 44px; height: 24px; }
  :root[data-theme="te"] .top .b-te, :root[data-theme="dark"] .top .b-te { font-size: 12px; letter-spacing: .02em; gap: 6px; }
}
/* Бренд и переключатель темы в шапке (web/theme.ts): видимость и нажатая кнопка по data-theme, без перерисовки. */
.b-te { display: none; }
:root[data-theme="te"] .b-trs, :root[data-theme="dark"] .b-trs { display: none; }
:root[data-theme="te"] .b-te, :root[data-theme="dark"] .b-te { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; font-weight: 400; }
.te-logo { display: inline-block; width: 58px; height: 32px; flex: none; }
.theme-sw { display: inline-flex; align-self: center; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; vertical-align: middle; }
.theme-sw button { font: inherit; font-size: 11px; letter-spacing: .04em; min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
:root:not([data-theme="te"]):not([data-theme="dark"]) .theme-sw [data-theme-set="trs"],
:root[data-theme="te"] .theme-sw [data-theme-set="te"], :root[data-theme="dark"] .theme-sw [data-theme-set="te"] { background: var(--accent); color: var(--bg); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 680px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px 96px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.top b { color: var(--ink); font-weight: 600; letter-spacing: .2px; }
.top .right { display: inline-flex; align-items: center; gap: 6px; flex: none; }
/* Табло организации TE Live (web/org.ts): логотип, название, маленькая отметка «TE Live». */
.top .brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; align-self: center; }
.top .brand img { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; flex: none; }
.top .brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.te-mark {
  flex: none; padding: 1px 7px; border: 1px solid var(--line2); border-radius: 999px;
  color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.enter { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.enter:hover { color: var(--ink); }
.enter .ic { width: 15px; height: 15px; display: block; }
.lang { color: var(--muted); text-decoration: none; font-size: 0.85em; letter-spacing: 0.04em; }
.lang:hover { color: var(--ink); }
.live { display: inline-flex; align-items: center; gap: 6px; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* «Главное недели» (week_highlights.ts): карточки над гонками; на телефоне одна под другой. */
.highlights { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
.hl { border: 1px solid var(--line2); border-radius: 16px; padding: 12px 14px 6px; }
.hl h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hl ul { list-style: none; margin: 0; padding: 0; }
/* Имя целиком (до 62 % строки), длинное место («1-е место в категории Мужчины 45 лет и старше») переносится справа. */
.hl li a { display: grid; grid-template-columns: fit-content(62%) minmax(0, 1fr); column-gap: 10px; padding: 6px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--line2); }
.hl li:first-child a { border-top: 0; }
.hl li b { font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl li span { font-size: 13px; text-align: right; color: var(--gold); }
.hl li small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.hl .more { margin: 4px 0 6px; color: var(--muted); font-size: 12px; }
/* Больше 30 человек: бегущий столбик (week_highlights.ts) и весь список под кнопкой; раскрыли список: столбик прячется. */
.vtk { height: 320px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(180deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.vtk-track { animation: vtk var(--tk-s, 120s) linear infinite; }
.vtk:hover .vtk-track, .vtk:active .vtk-track { animation-play-state: paused; }
.vtk li:first-child a { border-top: 1px solid var(--line2); }
@keyframes vtk { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .vtk { overflow-y: auto; } .vtk-track { animation: none; } }
.hl:has(.hl-all[open]) .vtk { display: none; }
.hl-all { border-top: 1px solid var(--line2); }
.hl-all summary { cursor: pointer; padding: 8px 0; color: var(--accent); font-size: 13px; font-weight: 600; list-style: none; }
.hl-all summary::-webkit-details-marker { display: none; }
.hl-all summary::after { content: " ▾"; }
.hl-all[open] summary::after { content: " ▴"; }
@media (min-width: 960px) { .highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }

.race { margin-top: 36px; }
.race-head {
  display: flex;
  /* Название и место не делят строку сжатием: не влезают вместе, место уходит строкой ниже (проверка прода
     19.10.2026: «Город / 233», «Monte Baldo / trail» рвались из-за места рядом). */
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
  margin-bottom: 6px;
}
.race-head h2 { margin: 0; font-size: 15px; font-weight: 600; min-width: 0; }
/* Место гонки переносится: длинное место не растягивает страницу вбок (07.10.2026, ARWC на телефоне). */
.race-head span { color: var(--muted); font-size: 13px; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.row {
  display: block;
  width: 100%;
  padding: 12px 0 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.name { font-size: 15px; font-weight: 500; }
.val { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sub .r { white-space: nowrap; font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.offline { margin: 4px 0 10px; color: var(--gold); font-size: 12.5px; }
.track { position: relative; height: 2px; margin-top: 9px; background: var(--faint); border-radius: 2px; }
.fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 2px; transition: width .6s ease; }
.done .fill { opacity: .45; }
.pending .name, .pending .val { color: var(--muted); }

.splits {
  margin: 2px 0 6px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.splits li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.splits li span:last-child { min-width: 7.5em; text-align: right; }

.replay {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 20px max(14px, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.replay button {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: none; color: var(--ink);
  cursor: pointer;
}
.replay button:focus-visible { outline: 2px solid var(--accent); }
.replay input { flex: 1; accent-color: var(--accent); }
.empty { margin-top: 48px; color: var(--muted); }

.soon-list { margin-top: 36px; }
.soon {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; color: var(--muted); font-size: 13px;
}
.soon + .soon { border-top: 1px solid var(--faint); }
.soon span:first-child { color: var(--ink); }
.soon span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Телефон: время старта переносится справа, а не выталкивает строку за экран (в TE Live моноширинный шрифт шире:
   «сб 7 ноя 06:00 (08:00 мск) · 1 наш» растягивал страницу на 390 до 417 px). */
@media (max-width: 600px) { .soon span:last-child { white-space: normal; text-align: right; max-width: 62%; } }

/* Гонки недели без онлайн-результатов (Дмитрий 19.10.2026: «показываем списком»): под карточками гонок, списком. */
.more-list { margin-top: 36px; }
.more-list h3 { margin: 0 0 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.more { padding: 11px 0; min-width: 0; }
.more + .more { border-top: 1px solid var(--faint); }
.more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.more-head b { font-size: 14px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.more-head span { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.more-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.more-res { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.more-res li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; }
.more-res li > span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.more-res b { color: var(--ink); font-weight: 500; }
.more-res small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.more-res .r { white-space: nowrap; }
.more-who { margin: 6px 0 0; font-size: 13px; }

/* Обгоны на отметках и счётчик команды. */
.gain { font-variant-numeric: tabular-nums; }
.gain.up { color: var(--accent); }
.gain.down { color: var(--muted); }
.team { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Погода на гонке: строка под названием гонки, в «Скоро старт» второй строкой. */
.wx { margin: -2px 0 8px; color: var(--muted); font-size: 12.5px; }
.wx .muted { opacity: .75; }
.soon .wx { display: block; margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* Наши без отметок (и без ссылки): имена в «Скоро старт» и строкой под идущей гонкой. */
.soon .who { display: block; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.race .who { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }

/* Трансляция гонки по нашим данным (efir/?race=): строкой под заголовком гонки и в «Скоро старт». */
/* Кнопкой (15.10.2026): вход в трансляцию с главной должен быть виден сразу, монохромно, как плитки меню. */
.cast {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 2px 0 12px; padding: 0 14px 0 11px; height: 34px;
  border: 1px solid var(--line2); border-radius: 999px;
  color: var(--ink); font-size: 12.5px; font-weight: 500; text-decoration: none;
}
.cast:hover { border-color: var(--ink); }
.cast .ic { width: 14px; height: 14px; display: block; flex: none; }
.soon .cast-soon { display: inline-flex; margin: 6px 0 0; height: 30px; font-size: 12px; }

/* Пульс и расход наших после гонки (web/physio_panel.ts): кнопка дистанции, таблица и график пульса на профиле. */
.phys { margin: 10px 0 0; }
.phys-go {
  display: inline-flex; align-items: center; margin: 0 8px 8px 0; padding: 0 14px; height: 32px;
  border: 1px solid var(--line2); border-radius: 999px; background: none;
  color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.phys-go:hover, .phys-go.on { border-color: var(--ink); }
.phys-panel { margin: 2px 0 12px; }
.phys-panel .empty { margin: 4px 0; }
.phys-title { margin: 4px 0 8px; font-size: 13px; font-weight: 600; }
.phys-table { overflow-x: auto; }
.phys-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.phys-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 8px 4px 0; border-bottom: 1px solid var(--faint); white-space: nowrap; }
.phys-table td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--faint); white-space: nowrap; }
.phys-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.phys-note { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; }
.phys-chart { margin: 10px 0 0; }
.phys-chart svg { display: block; width: 100%; height: auto; }
.phys-chart figcaption { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.phys-alt { fill: var(--faint); stroke: none; }
.phys-grid { stroke: var(--faint); stroke-width: 1; }
.phys-ax { fill: var(--muted); font-size: 10px; }

/* Трансляция с часов атлета (Garmin LiveTrack, COROS, Suunto): ссылка под строкой и у имени в «Пока без отметок»,
   «Скоро старт», на странице одного атлета. */
.watch {
  display: inline-flex; align-items: center; gap: 6px;
  margin: -4px 0 10px; color: var(--accent); font-size: 12.5px; text-decoration: none;
}
.watch .muted { color: var(--muted); }
.watch:hover span:first-of-type { text-decoration: underline; }
.watch .ic { width: 14px; height: 14px; display: block; flex: none; }
.focus .watch { margin: 0 0 10px; }
.watch-name { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); text-decoration: none; }
.watch-name:hover { text-decoration: underline; }
.watch-name .ic { width: 13px; height: 13px; display: block; flex: none; }

/* ---------- меню главной (Дмитрий 14.10.2026): монохромные плитки, выбранная залита цветом текста ---------- */
:root { --line2: color-mix(in srgb, var(--ink) 14%, transparent); }
.menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 4px;
}
/* Шесть плиток в ряд только с 1100 px: на 1024 подписи («23-25 октября · 15 гонок») обрезались (проверка 19.10.2026). */
@media (min-width: 1100px) { .menu { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Будни: пять плиток («Сейчас» совпадала с «Итогами»): на телефоне 3 + 2, на компьютере в ряд. */
@media (min-width: 1100px) { .menu.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Табло организации в будни: четыре плитки (без «Моих гонок»): на телефоне 2 + 2, на компьютере в ряд. */
.menu.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .menu.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
  min-height: 86px;
  padding: 11px 11px 10px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.tile:hover { border-color: var(--ink); }
.tile .ti { display: flex; align-items: center; gap: 7px; height: 22px; }
.tile .ic { width: 20px; height: 20px; display: block; flex: none; }
.tile b { font-size: 13px; font-weight: 600; letter-spacing: .1px; margin-top: 4px; }
.tile small {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tile.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tile.on small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.tile.on .dot { background: var(--bg); }
.tile:focus-visible, .weeks a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- история и «Мои гонки» ---------- */
.page { margin-top: 26px; }
.page h1 { margin: 0 0 14px; font-size: 20px; font-weight: 600; letter-spacing: .1px; }
.page h2 { margin: 26px 0 10px; font-size: 15px; font-weight: 600; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  color: var(--muted);
}
.search:focus-within { border-color: var(--ink); color: var(--ink); }
.search .ic { width: 18px; height: 18px; display: block; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; outline: none; }
.weeks { list-style: none; margin: 12px 0 0; padding: 0; }
.weeks li + li { border-top: 1px solid var(--line2); }
.weeks a { display: grid; gap: 4px; padding: 13px 2px; color: var(--ink); text-decoration: none; }
.weeks a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.weeks .wk { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.weeks .wk b { font-weight: 600; white-space: nowrap; }
.weeks .wk span { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.weeks small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.about .lead { margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.why li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line2); border-radius: 14px; }
.why .ic { width: 22px; height: 22px; display: block; flex: none; margin-top: 1px; }
.why b { display: block; font-weight: 600; }
.why small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.how { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.how li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}
.btn .ic { width: 18px; height: 18px; display: block; }
/* Табло по паролю (web/org.ts passwordFormHtml). */
.lock { max-width: 420px; }
.lock .lead { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.lock form { display: grid; }
.lock .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-content: center; margin-top: 14px; }
.lock .err { margin: 10px 2px 0; color: var(--ink); font-size: 13px; }
/* Сегменты v5 до экрана (web/segments_v5_gate.ts): «На главную» пилюлей в цвет темы, мятная в TE и акцентная в TRS, после
   перехода тоже (Дмитрий 06.11.2026: на iPhone была ссылкой браузерного цвета); под строкой «данные собираются» что
   здесь будет. */
.seg-gate .seg-soon { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.seg-gate .btn.seg-home, .seg-gate .btn.seg-home:visited { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
/* Кнопка входа гостю тем же шрифтом страницы и без рамки браузера (в TE рамку и размер ставит тема выше). */
.seg-gate button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- строка атлета ведёт на его трансляцию (Дмитрий 17.10.2026): монохромная стрелка справа ---------- */
a.row { text-decoration: none; }
.row .name { display: inline-flex; align-items: center; gap: 4px; }
/* Общая лента TE: подпись организации атлета у имени. */
.row .name .orgs { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.row .go { width: 15px; height: 15px; flex: none; color: var(--muted); display: inline-block; vertical-align: -2px; }
.row:hover .go { color: var(--ink); }

/* ---------- трансляция атлета ---------- */
.top .back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.top .back .ic, .top .share .ic { width: 16px; height: 16px; display: block; }
.top .share {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 13px; cursor: pointer;
}
.top .share:hover { color: var(--ink); }
.athlete { margin-top: 22px; }
.hero .chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border: 1px solid var(--line2); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 500;
}
.hero .chip .ic { width: 13px; height: 13px; display: block; }
.hero .chip.live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.hero h1 { margin: 12px 0 2px; font-size: 28px; line-height: 1.15; font-weight: 650; letter-spacing: -.2px; }
.hero .sub { margin: 0; color: var(--muted); font-size: 13px; }
.stats {
  display: flex; flex-wrap: wrap; gap: 1px; margin: 20px 0 14px;
  background: var(--line2); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden;
}
.stat { flex: 1 1 140px; display: grid; gap: 4px; padding: 13px 14px 12px; background: var(--bg); min-width: 0; }
.stat .k { color: var(--muted); font-size: 11.5px; line-height: 1.25; }
.stat .v { display: flex; align-items: baseline; gap: 8px; font-size: 26px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--muted); }
.stat .gain { font-size: 14px; font-weight: 600; }
.hero .km { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.hero .km .muted { color: var(--muted); }
.hero .track { margin-top: 8px; }
.action {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 0 16px; height: 48px;
  border: 1px solid var(--line2); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 500;
}
.action:hover { border-color: var(--ink); }
.action.busy { opacity: .55; pointer-events: none; }
.action .ic { width: 18px; height: 18px; display: block; color: var(--accent); }
.action small { margin-left: auto; color: var(--muted); font-weight: 400; }
.block { margin-top: 30px; }
.block h3 { margin: 0 0 10px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.block .note { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
svg.profile { display: block; width: 100%; height: 132px; overflow: visible; }
svg.profile .area { fill: var(--faint); }
svg.profile .area.done { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
svg.profile .ln { fill: none; stroke: var(--muted); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .7; }
svg.profile .ln.done { stroke: var(--accent); stroke-width: 2.2; opacity: 1; }
svg.profile .cp { stroke: var(--line2); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
svg.profile .cp.passed { stroke: color-mix(in srgb, var(--accent) 55%, transparent); }
svg.profile .band { fill: var(--line2); }
svg.profile .band.now { fill: var(--accent); }
.pf { position: relative; }
.pf .me {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 7px color-mix(in srgb, var(--accent) 28%, transparent);
  animation: halo 2s ease-in-out infinite;
}
@keyframes halo { 50% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 11px color-mix(in srgb, var(--accent) 12%, transparent); } }
@media (prefers-reduced-motion: reduce) { .pf .me { animation: none; } }
.pf .tag {
  position: absolute; transform: translate(-50%, -100%); padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--bg); color: var(--muted); font-size: 11px; white-space: nowrap;
  max-width: 44%; overflow: hidden; text-overflow: ellipsis;
}
.athlete { overflow-x: clip; }
.axis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.next { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; }
.next .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.next small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
svg.places { display: block; width: 100%; height: 132px; overflow: visible; }
svg.places .ln { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
svg.places .pt { fill: var(--bg); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
svg.places .pl { fill: var(--ink); font-size: 40px; font-weight: 600; text-anchor: middle; font-variant-numeric: tabular-nums; }
.rivals, .segs, .plan { list-style: none; margin: 0; padding: 0; }
.rivals li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; }
.rivals li + li, .segs li + li, .plan li + li { border-top: 1px solid var(--line2); }
.rivals li > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.rivals .ic { width: 16px; height: 16px; display: block; }
.rivals li > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.rivals b { font-size: 17px; font-weight: 600; }
.rivals small { display: block; color: var(--muted); font-size: 11.5px; }
.segs li { padding: 10px 0; }
.segs .l1, .segs .l2 { display: flex; justify-content: space-between; gap: 12px; }
.segs .l1 { font-size: 14px; font-variant-numeric: tabular-nums; }
.segs .l1 b { font-weight: 600; }
.segs .l2 { margin-top: 3px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.segs .l2 span:last-child { white-space: nowrap; }
.segs .l3 { margin-top: 2px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; opacity: .85; }
.hero .last { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
.hero .last .ic { width: 14px; height: 14px; display: block; flex: none; }
.hero .last b { color: var(--ink); font-weight: 600; }
button.action { width: 100%; background: none; font: inherit; cursor: pointer; text-align: left; }
/* «Поддержать» (live-api cheers.ts): поддержал, сердце закрашено, кнопка не жмётся второй раз. */
.action.cheer[aria-pressed="true"] { border-color: var(--accent); cursor: default; }
.action.cheer[aria-pressed="true"] .ic path { fill: currentColor; }
.row .cheers { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; color: var(--accent); font-size: 12px; font-weight: 600; }
.row .cheers .ic { width: 12px; height: 12px; }
.row .cheers .ic path { fill: currentColor; }
.athlete .upd { margin: 30px 0 0; color: var(--muted); font-size: 11.5px; text-align: center; }
.segs .fin .l1 { font-size: 15px; }
.plan li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.plan li small { margin-left: 8px; color: var(--accent); font-size: 11.5px; font-weight: 600; }
.plan li.now { color: var(--accent); font-weight: 600; }
/* Карточка атлета после финиша (web/race_fact.ts, задача Дмитрия 02.11.2026): знаки у имени, погода, план тренера и
   факт, пульс по зонам (красная шкала TE, без зелёного), расход, наши на дистанции. Выше коридора красный TE, ниже синий. */
.hero .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero .chip.earned { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.hero .wx { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
/* Заголовок блока с подсказкой «?»: подсказка всплывает под заголовком на всю ширину блока, блок не сдвигается. */
.bhead { position: relative; display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.bhead h3 { margin: 0; }
.hint summary {
  list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 16px; height: 16px;
  border: 1px solid var(--line2); border-radius: 50%; color: var(--muted); font-size: 10.5px; line-height: 1;
}
.hint summary::-webkit-details-marker { display: none; }
.hint summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint p {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 10px 12px; max-width: 46ch;
  background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 6px 20px color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4;
}
.fact .ftotal { display: flex; align-items: baseline; gap: 10px; }
.fact .ftotal .big { font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact .ftotal span:last-child { color: var(--muted); font-size: 13px; }
.fact .l2.tot { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; color: var(--muted); font-size: 12px; }
.fbar { display: inline-flex; flex: none; width: 96px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line2); }
.fbar i { display: block; height: 100%; }
.fbar .in { background: var(--accent); }
.fbar .over { background: #e02b2b; }
.fbar .under { background: #6f8fb5; }
.pfc { position: relative; padding-left: 30px; }
svg.factchart { display: block; width: 100%; height: 150px; overflow: visible; }
svg.factchart .grid { stroke: var(--line2); stroke-width: 1; vector-effect: non-scaling-stroke; }
svg.factchart .cor { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
svg.factchart .cor.fade { fill: url(#corfade); }
svg.factchart .g0 { stop-color: var(--accent); stop-opacity: .18; }
svg.factchart .g1 { stop-color: var(--accent); stop-opacity: 0; }
svg.factchart .cor-edge { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
svg.factchart .seam { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .35; }
svg.factchart .ex.over { fill: #e02b2b; opacity: .55; }
svg.factchart .ex.under { fill: #6f8fb5; opacity: .55; }
svg.factchart .hr { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pfc .yl { position: absolute; left: 0; transform: translateY(-50%); color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pfx { position: relative; height: 16px; margin: 4px 0 0 30px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pfx .xl { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.pfx .xl.first { transform: none; }
.pfx .xl.last { transform: translateX(-100%); }
.plan.pfact { margin-top: 8px; }
.plan.pfact li { display: block; }
.pfact .l1 { display: flex; justify-content: space-between; gap: 12px; }
.pfact .l1 b { font-weight: 600; }
.pfact .l1 b.over { color: #e02b2b; }
.pfact .l1 b.under { color: #6f8fb5; }
.pfact .l2 { display: flex; align-items: center; gap: 10px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.zbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line2); }
.zbar i { display: block; height: 100%; }
.zones { list-style: none; margin: 10px 0 0; padding: 0; }
.zones li { display: grid; grid-template-columns: 10px 64px 1fr auto 40px; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.zones li i { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line2); }
.zones .zr, .zones .zp { color: var(--muted); font-size: 12px; }
.zones .zp { text-align: right; }
.zones li.zero { opacity: .45; }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.mstats b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mstats small { color: var(--muted); font-size: 12px; }
.mates { list-style: none; margin: 0; padding: 0; }
.mates li + li { border-top: 1px solid var(--line2); }
.mates a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.mates .m1 { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.mates a:hover .m1 span:first-child { text-decoration: underline; }
.mates small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.shots a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--faint); }
.shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  max-width: 680px; margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 20px 10px;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line2); transform: translateY(-110%); transition: transform .2s ease; font-size: 13px;
}
.mini.show { transform: none; }
.mini .back { display: inline-flex; color: var(--ink); padding: 13px; margin: -13px -3px -13px -13px; }
.mini .back .ic { width: 18px; height: 18px; display: block; }
/* Имя целиком (до 60 % строки), сокращается строка справа: на 390 было «Екатерина…» (проверка прода 19.10.2026). */
.mini b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 0 auto; max-width: 60%; }
.mini span { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .mini { transition: none; } }
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  margin: 0; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px;
}

/* ---------- компьютер (Дмитрий 18.10.2026: «веб версия сейчас вообще не адаптирована»): шире, гонки карточками в
   колонки, «Скоро старт» сеткой, страница атлета в две колонки; телефон без изменений. С 960 px (планшет лёжа, 1024:
   главная была одной колонкой 640 px, проверка прода 19.10.2026); меню в шесть плиток только с 1100 px ---------- */
@media (min-width: 960px) {
  main { max-width: 1240px; padding: 28px 40px 110px; }
  .top { font-size: 14px; }
  .menu { gap: 12px; margin: 22px 0 10px; }
  .tile { min-height: 98px; padding: 14px 14px 12px; border-radius: 16px; }
  .tile b { font-size: 14px; }
  .tile small { font-size: 12px; }
  .races { column-count: 2; column-gap: 24px; margin-top: 28px; }
  .races .race { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 24px; padding: 18px 22px 8px; border: 1px solid var(--line2); border-radius: 18px; }
  .races .race-head h2 { font-size: 16px; }
  .races.one { column-count: 1; }
  .races.one .rows { column-count: 2; column-gap: 48px; }
  .races.one .rows > * { break-inside: avoid; }
  .soon-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .soon { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 16px; }
  .soon + .soon { border-top: 1px solid var(--line2); }
  .more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; align-items: start; }
  .more-list h3 { grid-column: 1 / -1; margin: 0; }
  .more { padding: 14px 16px; border: 1px solid var(--line2); border-radius: 16px; }
  .more + .more { border-top: 1px solid var(--line2); }
  .race.focus, .page, .empty { max-width: 820px; }
  .replay, .mini { max-width: 1240px; padding-left: 40px; padding-right: 40px; }
  .athlete { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 48px; align-items: start; }
  .athlete .a-main { position: sticky; top: 24px; }
  .athlete .upd { grid-column: 1 / -1; }
}
@media (min-width: 1680px) {
  main { max-width: 1560px; }
  .replay, .mini { max-width: 1560px; }
  .races:not(.one) { column-count: 3; }
  .races.one .rows { column-count: 3; }
  .soon-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .more-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- лига TRS (#league, web/league.ts; Дмитрий 23.10.2026: «чтобы это все видели, чтобы атлеты могли этим
   гордиться»): плитка во всю ширину под меню, таблица сезона, у атлета медали за финиши и знаки ---------- */
.tile.league { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-height: 64px; }
.tile.league .ti { height: auto; }
.tile.league .ic { width: 24px; height: 24px; }
.tile.league .lg-tt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tile.league b { margin-top: 0; font-size: 14px; }
.tile.league .lg-go { display: flex; flex: none; color: var(--muted); }
.tile.league .lg-go .ic { width: 18px; height: 18px; }
.tile.league.on .lg-go { color: var(--bg); }
/* Открытая лига: стрелка вверх, нажатие сворачивает. */
.tile.league .lg-go.up .ic { transform: rotate(180deg); }
.league .lg-kicker { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; color: var(--muted); font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.league .lg-kicker .ic { width: 16px; height: 16px; display: block; }
.league .lead { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lg-seasons, .lg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.lg-season, .lg-tab {
  height: 34px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--ink);
  font: inherit; font-size: 13px; cursor: pointer;
}
.lg-tab small { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 3px; }
.lg-season.on, .lg-tab.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lg-tab.on small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.lg-season:focus-visible, .lg-tab:focus-visible, .lg-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lg-table { list-style: none; margin: 0; padding: 0; }
.lg-row + .lg-row { border-top: 1px solid var(--line2); }
.lg-head {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 2px; border: 0; background: none; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
}
.lg-head > .ic { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform .15s; }
.lg-row.open .lg-head > .ic { transform: rotate(180deg); }
/* Командный зачёт Лиги TE (web/league.ts teamsHtml): строка без раскрытия. */
.lg-head.lg-team { cursor: default; }
.lg-teams h3 { margin: 18px 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lg-place {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 50%;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.lg-place.top1 { border: 0; background: linear-gradient(135deg, #FBE7B5, #A4803A); color: #18130B; }
.lg-place.top2 { border: 0; background: linear-gradient(135deg, #FFFFFF, #8E989E); color: #151A1E; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.lg-place.top3 { border: 0; background: linear-gradient(135deg, #E9C3A0, #8A5A35); color: #1A120B; }
.lg-name { display: grid; gap: 4px; min-width: 0; flex: 1; }
.lg-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-dots { display: flex; align-items: center; gap: 3px; }
.lg-dots small { margin-left: 3px; color: var(--muted); font-size: 11px; }
.lg-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.lg-dot.winner { background: linear-gradient(135deg, #FBE7B5, #A4803A); }
.lg-dot.podium { background: linear-gradient(135deg, #FFFFFF, #8E989E); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.lg-dot.finisher { background: linear-gradient(135deg, #C9D0D4, #4A545B); }
.lg-badge-mini { display: flex; gap: 2px; flex: none; }
.lg-badge-mini svg { display: block; }
.lg-points { flex: none; min-width: 44px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-card { padding: 4px 0 18px; }
.lg-card h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 600; }
.lg-medals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg-medal { margin: 0; padding: 8px 8px 10px; border: 1px solid var(--line2); border-radius: 14px; }
.lg-medal svg { display: block; width: 100%; height: auto; }
.lg-medal figcaption { display: grid; gap: 2px; margin-top: 4px; }
.lg-medal figcaption b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.lg-medal figcaption small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.lg-pts { margin-top: 3px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-honors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg-honors li, .lg-fame li { display: flex; gap: 10px; align-items: baseline; }
.lg-honors li span, .lg-fame li > span { display: grid; gap: 2px; min-width: 0; }
.lg-honors small, .lg-fame small { color: var(--muted); font-size: 12px; }
.lg-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 10px; }
.lg-badges li { display: grid; justify-items: center; gap: 4px; text-align: center; }
.lg-badges small { font-size: 11px; line-height: 1.25; color: var(--muted); }
/* Уровень знака по числу раз (shared/badges.ts): цвет металла приглушённый, читается на светлой и тёмной теме. */
.lg-badges .lg-lvl { font-size: 10.5px; letter-spacing: .02em; }
/* Звания (shared/league_titles.ts): высшее рядом с именем, в карточке гербы на ленте. */
.lg-ttl { flex: none; padding: 0 7px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 11px; line-height: 16px; letter-spacing: .02em; white-space: nowrap; }
.lg-titles { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.lg-titles li { display: grid; justify-items: center; gap: 2px; text-align: center; }
.lg-titles svg { max-width: 100%; height: auto; }
.lg-titles small { font-size: 11px; line-height: 1.3; color: var(--muted); max-width: 26ch; }
.lg-lvl.bronze { color: #A8643A; } .lg-lvl.silver { color: #7C8994; } .lg-lvl.gold { color: #A47B1E; } .lg-lvl.platinum { color: #4F7E98; } .lg-lvl.diamond { color: #2F8DB3; }
:root[data-theme="te"] .lg-lvl.bronze, :root[data-theme="dark"] .lg-lvl.bronze { color: #E3A57A; } :root[data-theme="te"] .lg-lvl.silver, :root[data-theme="dark"] .lg-lvl.silver { color: #C7D1D8; } :root[data-theme="te"] .lg-lvl.gold, :root[data-theme="dark"] .lg-lvl.gold { color: #EBC66A; } :root[data-theme="te"] .lg-lvl.platinum, :root[data-theme="dark"] .lg-lvl.platinum { color: #BFE3F5; } :root[data-theme="te"] .lg-lvl.diamond, :root[data-theme="dark"] .lg-lvl.diamond { color: #A6EEFF; }
.lg-pilot { margin: 10px 0 12px; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.lg-pilot b { color: var(--gold); }
.lg-rules { margin: 4px 0 18px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.lg-rules summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.lg-rules h4 { margin: 14px 0 6px; font-size: 13px; font-weight: 600; }
.lg-rules ul { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; line-height: 1.45; }
.lg-rules .lg-pilot-note { margin: 0 0 4px; color: var(--muted); font-size: 12.5px; }
.lg-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.lg-vtag { flex: none; padding: 0 6px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 11px; line-height: 16px; font-variant-numeric: tabular-nums; }
.lg-hide { display: block; margin: 18px auto 0; }
.lg-find { width: 100%; margin: 4px 0 6px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: none; color: var(--ink); font: inherit; font-size: 15px; }
.lg-find:focus { outline: none; border-color: var(--accent); }
.lg-more { display: block; margin: 14px auto 0; }
.lg-vol-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.lg-vol-sum span { color: var(--muted); font-size: 12.5px; }
.lg-vol { display: block; width: 100%; max-width: 420px; height: auto; font-family: Geist Mono, IBM Plex Mono, ui-monospace, monospace; }
.lg-vol rect.p0 { fill: var(--line2); }
.lg-vol rect.p1 { fill: var(--accent); }
.lg-vol rect.p3 { fill: var(--gold); }
.lg-vol line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 2; opacity: .55; }
.lg-vol text { font-size: 10px; fill: var(--ink); font-weight: 600; }
.lg-vol text.d { fill: var(--muted); font-weight: 400; font-size: 9px; }
.lg-vol-note { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.lg-fame { margin-top: 30px; }
.lg-fame ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lg-fame .lg-month { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.lg-fame .muted { color: var(--muted); }
.btn.ghost { margin-top: 16px; height: 40px; padding: 0 18px; border: 1px solid var(--line2); background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
@media (min-width: 600px) { .lg-medals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .page.league { max-width: 980px; }
  .tile.league { min-height: 72px; }
  .lg-medals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Разбор очков гонки в карточке медали (вариант А 23.10.2026). */
.lg-medal .lg-why { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; opacity: .7; }

/* ---------- витрина главной (Дмитрий 24.10.2026, web/shop_strip.ts): под плиткой «Лига TRS» строка разделов
   монохромными значками и галочка «свернуть», ниже одна карусель товаров TE и Trail Running Pro; без своей рамки,
   по высоте чуть выше плитки лиги (главное на странице результаты) ---------- */
/* Отступ сверху как между плитками меню (8 px, на компьютере 12): поля меню и витрины схлопываются. */
.shop { --shop-h: 74px; display: grid; gap: 6px; min-width: 0; margin: 8px 0; }
.shop-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.shop-secs, .shop-rail { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.shop-secs::-webkit-scrollbar, .shop-rail::-webkit-scrollbar { display: none; }
.shop-secs { flex: 1 1 auto; gap: 6px; }
.shop-rail { gap: 8px; }
/* Тает тот край ленты, за которым ещё плитки. */
.shop .fr { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.shop .fl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px); mask-image: linear-gradient(90deg, transparent, #000 24px); }
.shop .fl.fr {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.shop-sec {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px;
  border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--ink); text-decoration: none;
  font: inherit; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: border-color .15s;
}
.shop-sec .ic { width: 16px; height: 16px; display: block; flex: none; }
.shop-sec:hover { border-color: var(--ink); }
.shop-fold { flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.shop-fold:hover { color: var(--ink); background: var(--faint); }
.shop-fold .ic { width: 18px; height: 18px; display: block; transform: rotate(180deg); transition: transform .2s; }
.shop[data-open="0"] .shop-fold .ic { transform: none; }
.shop[data-open="0"] .shop-feed { display: none; }
.shop-feed { position: relative; min-width: 0; }
.shop-rail > *, .shop-loop > * { flex: none; }
.shop-loop { display: contents; }
.shop-card, .shop-all { height: var(--shop-h); border: 1px solid var(--line2); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.shop-card:hover, .shop-all:hover { border-color: var(--ink); }
.shop-sec:focus-visible, .shop-fold:focus-visible, .shop-card:focus-visible, .shop-all:focus-visible, .shop-step:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* Товар: фото целиком слева (вписано с полями), название и вкусы справа, вместе до четырёх строк. */
.shop-card { width: 184px; padding: 6px 10px 6px 6px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.shop-ph { width: calc(var(--shop-h) - 14px); aspect-ratio: 1; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); position: relative; overflow: hidden; }
.shop-ph img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; transition: transform .25s ease; }
.shop-card:hover .shop-ph img { transform: scale(1.06); }
.shop-tx { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; min-width: 0; line-height: 14px; overflow-wrap: break-word; }
.shop-tx b { font-size: 12px; font-weight: 600; }
.shop-tx small { font-size: 11px; color: var(--muted); }
/* Конец товаров магазина: точка цвета магазина, название и «Смотреть все». */
.shop-all { width: 150px; padding: 10px 12px; display: grid; align-content: space-between; justify-items: start; }
.shop-all i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.shop-all.te i { background: #d0343f; }
.shop-all span { display: grid; gap: 2px; }
.shop-all b { font-size: 12px; font-weight: 600; line-height: 1.25; }
.shop-all small { font-size: 11px; color: var(--muted); }
.shop-all:hover small { color: var(--ink); }
/* Стрелки поверх краёв карусели: на компьютере при наведении; на телефоне листается пальцем. */
.shop-step {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line2); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .15s;
}
.shop-step[hidden] { display: none; }
.shop-step .ic { width: 14px; height: 14px; display: block; }
.shop-step.prev { left: 4px; }
.shop-step.next { right: 4px; }
.shop-feed:hover .shop-step, .shop-step:focus-visible { opacity: 1; }
@media (hover: none) { .shop-step { display: none; } }
@media (min-width: 960px) {
  .shop { --shop-h: 80px; margin: 12px 0; }
  .shop-card { width: 200px; padding: 8px 12px 8px 8px; }
  .shop-ph { width: calc(var(--shop-h) - 18px); }
}
@media (prefers-reduced-motion: reduce) { .shop-ph img, .shop-fold .ic, .shop-step, .shop-sec { transition: none; } }

/* Лента TRS (#feed, web/feed_view.ts): финиши наших, гонки сейчас, публикации сообщества. */
.feed h2 { margin: 18px 0 4px; font-size: 18px; }
.fd-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.fd-tabs button { border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.fd-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fd-list { display: grid; gap: 10px; }
.fd-card { border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; }
.fd-card.live { border-color: var(--accent); }
.fd-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.fd-kind { display: inline-flex; align-items: center; gap: 6px; }
.fd-kind .ic { width: 14px; height: 14px; color: var(--accent); }
.fd-kind .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.fd-main { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.fd-medal .ic { width: 16px; height: 16px; color: var(--accent); display: block; }
.fd-race, .fd-res, .fd-text { margin: 4px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.fd-res { color: var(--ink); font-variant-numeric: tabular-nums; }
.fd-race a { color: inherit; }
.fd-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fd-acts .ic { width: 16px; height: 16px; }
.fd-acts [aria-pressed="true"] .ic path { fill: currentColor; }
.fd-cheers { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 500; }
.fd-cheers .ic path { fill: currentColor; }
.fd-more { display: block; margin: 14px auto 0; }

/* Страница атлета (?p=, web/profile_view.ts): цифры, лига, поддержка, сообщество, финиши. */
.profile-page h1 { margin: 16px 0 4px; font-size: 24px; }
/* Шапка с персонажем из игры справа (поза «руки вверх»), на узком экране меньше. */
.pf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pf-who { min-width: 0; }
.pf-hero { flex: none; width: auto; height: 150px; object-fit: contain; }
@media (max-width: 420px) { .pf-hero { height: 110px; } }
.pf-own { margin: 6px 0 0; font-size: 13px; color: var(--accent); }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 14px 0; }
.pf-stat { display: grid; gap: 2px; border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px; }
.pf-stat b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pf-stat small { color: var(--muted); font-size: 12px; }
.pf-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; }
.pf-line .ic { width: 16px; height: 16px; color: var(--accent); flex: none; }
.pf-line a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.profile-page h2 { margin: 22px 0 8px; font-size: 16px; }
.pf-races { display: grid; gap: 6px; }
.pf-race { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; color: var(--ink); text-decoration: none; }
.pf-r-name { font-weight: 500; overflow-wrap: anywhere; }
.pf-r-date { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.pf-r-res { grid-column: 1 / -1; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
/* Заметка атлета о гонке под строкой гонки (live-api notes.ts, 04.11.2026). */
.pf-note { margin: -2px 0 4px; padding: 6px 12px; border-left: 2px solid var(--line2); }
.pf-note-k { display: block; color: var(--muted); font-size: 12px; }
.pf-note b { display: block; overflow-wrap: anywhere; }
.pf-note p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.pf-upcoming{margin-block:1.5rem}.pf-upcoming-race{margin-block:1rem}.pf-up-links,.pf-up-preview{margin:.5rem 0;padding:0 1rem}.pf-up-preview{border-left:2px solid var(--line,#444)}.pf-up-preview p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Страница атлета с профилем (этап 2 соцсети, web/profile_social.ts; макет «Страница атлета с профилем»): кружок с
   инициалами, статус, город и виды спорта, тренер и команда с отметкой, ссылки чипами, вкладки и карточки разделов. */
.pf-social .pf-head { align-items: flex-end; }
.pf-av { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-top: 14px; border-radius: 50%; background: var(--faint); color: var(--accent); font-size: 18px; font-weight: 600; }
.pf-social .pf-av + h1 { margin-top: 8px; }
.pf-status { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.pf-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.pf-meta .ic { width: 15px; height: 15px; flex: none; }
.pf-about { margin: 8px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-lines { display: grid; gap: 2px; margin-top: 10px; }
.pf-lines .pf-line { margin: 4px 0 0; }
.pf-lines .pf-line span { min-width: 0; overflow-wrap: anywhere; }
.pf-lines .pf-line a { display: inline; color: var(--ink); }
.pf-ok { display: inline-block; margin-left: 4px; padding: 0 7px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 11px; line-height: 18px; white-space: nowrap; vertical-align: 1px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pf-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line2); border-radius: 999px; color: var(--ink); font-size: 13px; text-decoration: none; }
.pf-chip:hover, .pf-chip:focus-visible { border-color: var(--accent); }
.pf-small { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.pf-chips + .pf-small { margin-top: 6px; }
.pf-small.err { color: var(--ink); }
.pf-small a { color: var(--accent); }
.pf-tabs { display: flex; gap: 3px; margin: 20px 0 14px; padding: 3px; border-radius: 999px; background: var(--faint); }
.pf-tabs button { flex: 1 1 auto; min-width: 0; min-height: 38px; padding: 6px 6px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tabs button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.pf-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pf-pane { display: grid; gap: 14px; }
.pf-sec { display: grid; gap: 8px; min-width: 0; }
.pf-sec h3 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pf-sec .pf-upcoming-race { margin: 0; }
.pf-sec .pf-up-links a { color: var(--accent); }
.pf-card { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; min-width: 0; }
.pf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; }
.pf-n { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.pf-d { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-r { grid-column: 1 / -1; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pf-r a { color: var(--accent); }
.pf-bar { height: 6px; border-radius: 999px; background: var(--faint); overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.pf-bar.end i { background: var(--gold); }
.pf-trk { display: block; width: 100%; height: 90px; border-radius: 10px; background: var(--faint); }
.pf-trk path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pf-weeks { margin: 0; }
.pf-lock { display: grid; gap: 8px; justify-items: start; padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.pf-lock b { color: var(--ink); }
.pf-lock .btn, .pf-social .pf-edit, .pf-more { margin-top: 2px; height: 40px; padding: 0 18px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.pf-lock .btn.ghost, .pf-social .pf-edit, .pf-more { border: 1px solid var(--line2); background: none; color: var(--ink); }
.pf-social .pf-edit { justify-self: start; }
.pf-more { justify-self: center; }
.pf-more:disabled { opacity: .6; cursor: default; }

/* Read-only start room. Names and long school/course labels fit a 390px viewport. */
.start-room { max-width: 980px; margin: 0 auto; }
.start-room .card { padding: 20px; margin: 18px 0; border: 1px solid var(--faint); border-radius: 18px; overflow-wrap: anywhere; }
.start-room h2 { font-size: 20px; margin: 0 0 16px; }
.start-room ul { padding-left: 20px; }
.start-room li { margin: 12px 0; }
.start-room .start-entrants { list-style: none; padding: 0; }
.start-room .start-entrants li { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--faint); }

/* «Поддержать» значками (web/cheer_view.ts, 31.10.2026): сетка 16 монохромных значков и счётчики видов. */
.cheer-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 8px 0 4px; width: 100%; }
.cheer-pick .ck { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--faint); border-radius: 12px;
  background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.cheer-pick .ck:hover { border-color: var(--ink); }
.cheer-pick .ck.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cheer-pick .cheer-hint { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.cheer-counts { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cheer-counts .cc { display: inline-flex; gap: 3px; align-items: center; font-variant-numeric: tabular-nums; }
.cheer-ico { display: block; flex: none; }
@media (max-width: 420px) { .cheer-pick { grid-template-columns: repeat(4, 1fr); } }

/* Итог поддержки на странице атлета (web/cheer_view.ts cheerSummary, макет «Поддержать» v2, 02.11.2026): число,
   значки по убыванию, имена вошедших атлету, строка «спасибо», «Спасибо всем», выбор из 16 значков зрителю. */
.cheer-sum .cs-big { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.cheer-sum .cs-big b { font-size: 24px; font-variant-numeric: tabular-nums; }
.cheer-sum .cs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cheer-sum .cs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid var(--line2); border-radius: 999px; font-size: 14px; }
.cheer-sum .cs-chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cheer-sum .cs-who { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.cheer-sum .cs-thanks { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--faint); font-size: 14px; }
.cheer-sum .cs-thank { margin-top: 12px; width: 100%; height: 44px; border: 0; border-radius: 12px; background: var(--accent); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }
.cheer-sum .cs-thank[disabled] { background: var(--faint); color: var(--muted); cursor: default; }
.cheer-sum .cs-mine { margin: 12px 0 0; font-size: 14px; }
.cheer-sum .cs-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cheer-sum .note a { color: var(--accent); }
/* Сердце у имени на табло в окне поддержки жмётся: контур, поддержал: закрашено. Долгое нажатие «Поддержать» в ленте
   открывает выбор значка: без меню телефона. */
.row .cheers.tap { padding: 6px 4px; margin: -6px 0 -6px 2px; cursor: pointer; }
.row .cheers.tap:not(.on) .ic path { fill: none; }
.fd-acts [data-act="cheer"] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* В итоге поддержки 16 значков двумя рядами по 8 и на телефоне (макет «Поддержать» v2), не четырьмя рядами по 4. */
.cheer-sum .cheer-pick { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.cheer-sum .cheer-pick .ck { border-radius: 10px; }
