/*
  Оформление внутренних страниц сайта (кабинет, вход, документы, /fit) — тот же стиль Vatto, что у лендинга:
  тёмная база, салатовый акцент, заголовки узким шрифтом ЗАГЛАВНЫМИ. Выбран 03.10.2026.
  Поменять цвет — переменные --brand / --brand-ink / --brand-soft ниже (как --accent в landing.css).
*/
:root {
  /* Цвета и шрифты — из брендбука (brand.css): чёрный фон, графитовые карточки, ватт-лайм — только главное */
  --brand: var(--vatto-lime);
  --brand-ink: var(--vatto-ink);   /* текст на акценте */
  --brand-soft: rgba(198, 255, 0, 0.12);
  --bg: var(--vatto-ink);
  --card: var(--vatto-graphite);
  --field: #2a2a2d;                /* поля ввода — на тон светлее графита */
  --text: var(--vatto-white);
  --text-dim: rgba(255, 255, 255, 0.72);
  --hint: var(--vatto-steel);
  --line: rgba(255, 255, 255, 0.10);
  --ok: #27ae60;
  /* Статусы тренировок и спортсменов — только цвета Vatto (04.11.2026, вариант «Бренд»): сделал — лайм, частично —
     приглушённый лайм, сильно мимо плана — янтарь, пропустил — «пульс» */
  --st-done: var(--vatto-lime);
  --st-partial: #8DB300;
  --st-off: #FFB020;
  --st-missed: var(--vatto-pulse);
  --warn: var(--vatto-pulse);      /* «Пульс» — второй акцент, предупреждения */
  --radius: var(--vatto-radius);
  --font-display: var(--vatto-font-display);
  --font-body: var(--vatto-font-body);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--brand); color: var(--brand-ink); }
a { color: var(--brand); }
h1, h2, h3, .status-title, .section-title, .price, .offer-price, .btn, .badge, .logo {
  font-family: var(--font-display); text-transform: uppercase;
}
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.12; letter-spacing: 0.02em; font-weight: 700; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.1; letter-spacing: 0.03em; font-weight: 600; margin: 48px 0 18px; }
h3 { font-size: 19px; letter-spacing: 0.04em; font-weight: 600; margin: 0 0 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.hint { color: var(--hint); }
.small { font-size: 14px; }
main { padding-top: 32px; min-height: 60vh; }

.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.inline { vertical-align: -3px; margin-right: 6px; color: var(--brand); }

/* ---------- шапка и подвал */
.top { position: sticky; top: 0; z-index: 5; background: rgba(5, 5, 5, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 28px; width: auto; }   /* логотип из брендбука: знак + надпись (не набирать шрифтом) */
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a:not(.btn) { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.top-nav a:not(.btn):hover { color: var(--text); }
.top-nav a.lang-switch { font-size: 12px; letter-spacing: .1em; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.foot { margin-top: 80px; padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--hint); font-size: 13px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--hint); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- кнопки, карточки, сообщения */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 14px 26px; min-height: 50px;
  background: rgba(198, 255, 0, 0.85); color: var(--brand-ink);   /* лайм 85 % — как на лендинге (вариант B) */
  font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-big { padding: 18px 34px; font-size: 17px; }
.btn-small { padding: 9px 18px; min-height: 40px; font-size: 13px; }
.btn-secondary { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.btn-secondary:hover { border-color: var(--text); transform: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alert { background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.35); border-radius: 14px;
  padding: 12px 16px; margin: 12px 0; color: var(--text); }
.alert.ok { background: var(--brand-soft); border-color: rgba(198, 255, 0, 0.4); }

/* ---------- тарифы и вопросы (кабинет) */
.lead { font-size: 19px; color: var(--text-dim); max-width: 720px; margin: 0 auto 28px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px 16px; margin-bottom: 18px; }   /* 4 тарифа — сеткой 2×2 */
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan-accent { border-color: var(--brand);
  background: linear-gradient(160deg, var(--brand-soft), rgba(255, 255, 255, 0.01) 60%), var(--card); }
.plan .badge { position: absolute; top: -12px; left: 22px; background: var(--brand); color: var(--brand-ink);
  font-size: 12px; letter-spacing: 0.14em; padding: 5px 12px; }
.price { font-size: 38px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; }
.plan-people { font-size: 14px; color: var(--brand); font-weight: 600; }
.plan .btn { margin-top: auto; }
.methods { display: flex; gap: 16px; margin: 10px 0 14px; font-size: 15px; color: var(--text-dim); }
.methods input, .pay-method input, input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.faq details { margin-bottom: 10px; padding: 16px 22px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-dim); margin: 10px 0 0; }

/* ---------- вход и кабинет */
.login-card { margin-top: 40px; padding: 44px 28px; }
.login-card p { color: var(--text-dim); }
.widget { min-height: 48px; margin: 24px 0; }
.status-card { margin: 18px 0 14px; }
.status-head { display: flex; align-items: center; gap: 16px; }
.status-icon {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  color: var(--brand-ink); background: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft);
}
.status-icon .ic { width: 26px; height: 26px; stroke-width: 2.4; }
.s-free .status-icon { background: #3a3a3c; color: var(--text); box-shadow: none; }
.s-cancelled .status-icon { background: var(--warn); box-shadow: 0 0 0 6px rgba(255, 176, 32, 0.14); }
.status-title { font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.renew { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-dim); }
.bot-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.doc { color: var(--text-dim); }
.doc h1, .doc .status-title { color: var(--text); }
.doc h3 { color: var(--text); margin-top: 28px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.family-card { margin-bottom: 14px; }
.invite, .fit-form select, .fit-form input[type=number], .fit-form input[type=file] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--field); color: var(--text); font: inherit; font-size: 15px;
}
.invite:focus, .fit-form select:focus, .fit-form input:focus { outline: none; border-color: var(--brand); }

@media (max-width: 560px) {
  .lead { font-size: 17px; }
  .top-nav { gap: 12px; }
  .top-nav a:not(.btn) { display: none; }
  .top-nav a.lang-switch { display: inline; }         /* RU / EN — и на телефоне */
  .card { padding: 20px; }
}

/* ---- Разбор посадки (/fit) */
.fit-page .lead { font-size: 18px; margin-left: 0; }
.fit-page .card { margin: 16px 0; }
.fit-page .center { text-align: center; }
.fit-page h3 { margin: 0 0 10px; }
.section-title { font-size: 24px; letter-spacing: 0.04em; font-weight: 600; margin: 32px 0 8px; }
.fit-howto ol { margin: 0; padding-left: 22px; color: var(--text-dim); }
.fit-form .field { display: block; margin: 14px 0; font-weight: 600; }
.fit-form select, .fit-form input[type=number], .fit-form input[type=file] { display: block; margin-top: 6px; font-weight: 400; }
.fit-form fieldset { border: none; padding: 0; margin: 0; }
.pains { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; margin-top: 8px; font-weight: 400;
  color: var(--text-dim); }
.pain { display: flex; gap: 8px; align-items: center; }
.fit-row, .angle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.card.list > :first-child { border-top: none; }
.verdict { font-weight: 700; }
.v-green { color: var(--ok); } .v-amber { color: #ff9500; } .v-red { color: #ff453a; } .v-gray { color: var(--hint); }
.verdict-pill { display: inline-block; padding: 8px 18px; border-radius: 999px; color: #fff; font-weight: 700; margin: 6px 0 4px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; }
.verdict-pill.v-green { background: #34c759; color: var(--brand-ink); } .verdict-pill.v-amber { background: #ff9500; color: var(--brand-ink); }
.verdict-pill.v-red { background: #ff453a; } .verdict-pill.v-gray { background: #3a3a3c; }
.fit-viewer canvas { width: 100%; height: auto; border-radius: 14px; display: block; touch-action: none; }
.fit-viewer canvas.editing { cursor: grab; outline: 3px solid var(--brand); }
.viewer-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 12px; color: var(--text-dim); }
.angle-value { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-left: auto; }
.g-green { color: #34c759; } .g-amber { color: #ff9500; } .g-red { color: #ff453a; } .g-gray { color: var(--hint); }
.angle-row .hint { min-width: 130px; text-align: right; }
.change-row { padding: 12px 0; border-top: 1px solid var(--line); }
.change-row p { margin: 6px 0 0; color: var(--text-dim); }
.change-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.badge { background: var(--brand-soft); color: var(--brand); font-weight: 600; letter-spacing: 0.08em; padding: 4px 12px;
  border-radius: 999px; white-space: nowrap; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.metrics-grid > div { display: flex; flex-direction: column; }
.fit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.fit-actions form { margin: 0; }
.spinner { width: 44px; height: 44px; margin: 10px auto; border-radius: 50%; border: 4px solid var(--brand-soft);
  border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .angle-row .hint { display: none; } }

/* ---- Разбор посадки: предложение «Настройка посадки», статус доступа */
.fit-offer { border-color: var(--brand);
  background: linear-gradient(160deg, var(--brand-soft), rgba(255, 255, 255, 0.01) 60%), var(--card); }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer-head h3 { margin: 0; }
.offer-price { font-size: 30px; font-weight: 600; color: var(--brand); }
.offer-list { margin: 12px 0 16px; padding-left: 20px; color: var(--text-dim); }
.offer-list li { margin: 6px 0; }
.offer-pay { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 0; }
.pay-methods { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-dim); }
.pay-method { display: flex; gap: 6px; align-items: center; }
.fit-status { line-height: 1.5; }

/* ---- Разбор посадки: метки на суставах */
.markers-title { margin-top: 18px !important; }
.markers { margin: 6px 0 8px; padding-left: 20px; color: var(--text-dim); }
.markers li { margin: 4px 0; }

/* ---- Кабинет: роли, «Мой сезон», «Пригласи друга» (ТЗ v2, шаги 2–3) */
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.role-chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--text-dim);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; }
.season-card, .invite-card { margin-bottom: 14px; }
.season-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.season-card .status-title + .season-row { margin-top: 10px; }
.prio { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; border: 1px solid var(--line); color: var(--text-dim); }
.prio-A { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.prio-B { border-color: var(--brand); color: var(--brand); }
.season-main { flex: 1; min-width: 0; }
.season-left { white-space: nowrap; color: var(--brand); font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 15px; }
.invite-card .invite { margin: 6px 0 4px; }
.coupons-title { font-size: 17px; margin-top: 18px; }
.coupon-list { margin: 8px 0 0; padding-left: 20px; color: var(--brand); }

/* ---- Партнёрская программа (/partner, /admin/partners) и скидка в тарифах */
.price-old { font-size: 20px; color: var(--hint); font-weight: 500; margin-left: 6px; }
.partner-link-card { margin-bottom: 14px; }
.qr-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.qr { width: 168px; height: 168px; border-radius: 14px; background: #fff; padding: 6px; }
.qr-row > div { flex: 1; min-width: 200px; }
.partner-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0; }
.partner-stats.three { grid-template-columns: repeat(3, 1fr); }
.partner-stats > div { background: var(--field); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; }
.partner-stats b { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.partner-stats b.accent { color: var(--brand); }
.partner-stats span { color: var(--hint); font-size: 13px; }
.wrap > .card + .card { margin-top: 14px; }   /* карточки подряд в колонке (не в сетках) */
.progress { height: 10px; border-radius: 999px; background: var(--field); overflow: hidden; margin: 6px 0 8px; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.acc-list { margin-top: 10px; }
.acc-row { display: grid; grid-template-columns: 96px 1fr auto 96px; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-dim); align-items: center; }
.acc-sum { color: var(--text); font-weight: 600; text-align: right; }
.acc-status { text-align: right; font-size: 13px; }
.acc-row.s-accrued .acc-status { color: var(--brand); }
.acc-row.s-void, .acc-row.s-expired { opacity: 0.5; }
.partner-form { display: grid; gap: 12px; margin: 14px 0; }
.partner-form label { display: grid; gap: 6px; font-size: 14px; color: var(--text-dim); }
.partner-form label.check { display: flex; align-items: center; gap: 8px; }
.partner-form .btn { justify-self: start; }
.csv-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 8px 0 8px; }
.csv-form .invite { width: auto; margin-left: 8px; }
.admin-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-actions form { margin: 0; }
@media (max-width: 560px) {
  .partner-stats.three { grid-template-columns: 1fr; }
  .acc-row { grid-template-columns: 80px 1fr auto; }
  .acc-status { display: none; }
}

/* ---- Календарь стартов (/calendar, карточка старта, кабинет организатора, модерация) */
.cal-lead { max-width: 720px; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 22px; }
.cal-filters select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--field);
  color: var(--text); font: inherit; font-size: 14px; max-width: 100%; }
.cal-count { margin: -10px 0 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card.cal-card { padding: 0; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease; }
.card.cal-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.cal-cover { position: relative; height: 140px; background: radial-gradient(120% 120% at 80% 0%, var(--brand-soft), transparent 60%), #141414;
  background-size: cover; background-position: center; }
.cal-date { position: absolute; left: 14px; top: 14px; background: var(--brand); color: var(--brand-ink); border-radius: 12px;
  padding: 6px 10px; text-align: center; font-family: var(--font-display); text-transform: uppercase; line-height: 1.05; }
.cal-date b { display: block; font-size: 24px; }
.cal-date span { font-size: 12px; letter-spacing: .1em; }
.cal-sport { position: absolute; right: 14px; top: 14px; background: rgba(5, 5, 5, .8); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; }
.cal-sport.inline { position: static; display: inline-block; }
.cal-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.cal-dists { color: var(--brand); }
.cal-org { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-top: 26px; }
.ev-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin: 8px 0 18px; }
.label-row { margin: 6px 0 10px; }
.ev-when { color: var(--text-dim); margin: -6px 0 20px; }
.ev-dist { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.ev-desc { white-space: pre-line; color: var(--text-dim); }
.goal-form { display: grid; gap: 14px; margin: 12px 0; }
.goal-form label { display: grid; gap: 6px; color: var(--text-dim); font-size: 14px; }
.prio-pick { display: grid; gap: 8px; }
.prio-opt { display: flex !important; grid-template-columns: none; align-items: center; gap: 12px; cursor: pointer; }
.prio-opt input { position: absolute; opacity: 0; pointer-events: none; }
.prio-opt input:checked + .prio { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.prio-opt input:focus-visible + .prio { outline: 2px solid var(--brand); outline-offset: 2px; }
.season-row .season-del { margin: 0; }
.season-del button { background: none; border: 1px solid var(--line); color: var(--hint); width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 16px; line-height: 1; }
.season-del button:hover { color: var(--text); border-color: var(--text); }
.season-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ics-sub { flex: 1; min-width: 220px; }
.ics-sub summary { cursor: pointer; }
.ics-sub .invite { margin-top: 8px; }
.org-race-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.st-pending { color: var(--warn); } .st-published { color: var(--brand); } .st-rejected { color: #ff453a; }
.ev-form .form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dist-set { border: none; padding: 0; margin: 6px 0; }
.dist-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.dist-head { margin-bottom: 4px; }
.ev-form textarea { resize: vertical; }
.reject-form { display: flex; gap: 8px; align-items: center; }
.reject-form .invite { width: 200px; }
.admin-race-info { flex: 1; min-width: 260px; }
@media (max-width: 560px) {
  .ev-form .form-2 { grid-template-columns: 1fr; }
  .dist-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px; }
  .next-event { grid-template-columns: 60px 1fr; }
}

/* ================================================================== кабинет: вкладки по ролям и «Команда» (08.10.2026) */
.cab-tabs { display: flex; gap: 6px; margin: 28px 0 18px; padding: 4px; background: var(--card); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; }
.cab-tabs::-webkit-scrollbar { display: none; }
.cab-tab { flex: 1 0 auto; text-align: center; padding: 10px 16px; border-radius: 999px; color: var(--text-dim);
  text-decoration: none; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; }
.cab-tab:hover { color: var(--text); }
.cab-tab.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; }

.team-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.team-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.team-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--field); color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.team-row:hover { outline: 1px solid var(--line); }
.team-row.flagged { border-left-color: var(--warn); }
.team-main { min-width: 0; }
.team-week { text-align: right; flex: 0 0 auto; }
.num-big { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--brand); }
.team-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.flag-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; color: var(--warn);
  background: rgba(255, 90, 31, 0.12); }
.flag-text { color: var(--warn); }
.stat-row { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 10px 0; }
.week-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 14px; }
.week-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.week-bar span { display: block; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.week-bar.current span { opacity: 0.45; }
.week-bar small { font-size: 10px; color: var(--hint); margin-top: 4px; }
.team-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.team-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.roles-card .role-offer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0;
  border-top: 1px solid var(--line); }
.roles-card .role-offer:first-of-type { border-top: 0; }
@media (max-width: 560px) {
  .team-row { flex-direction: column; }
  .team-week { text-align: left; }
  .roles-card .role-offer { flex-direction: column; align-items: flex-start; }
}

/* «Команда» → план спортсмена (08.10.2026) */
.plan-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.plan-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; background: var(--field); }
.plan-day { color: var(--hint); font-size: 14px; margin-right: 6px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plan-actions form { margin: 0; display: flex; gap: 6px; align-items: center; }
.plan-move input[type=date] { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 10px; font: inherit; font-size: 13px; color-scheme: dark; }
.plan-remove { color: var(--warn); }
.plan-add { margin-top: 10px; }
.plan-add > summary { list-style: none; cursor: pointer; display: inline-flex; }
.plan-add > summary::-webkit-details-marker { display: none; }
.plan-add[open] > summary { margin-bottom: 12px; }
.plan-params { display: flex; gap: 12px; }
.plan-params label { flex: 1; }

/* Тариф тренера (09.10.2026): «привели 3 из 5» */
.coach-tariff { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #2c2c2e); }
.coach-tariff p { margin: 0 0 10px; }
.ct-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.ct-bar span { width: 26px; height: 10px; border-radius: 5px; background: var(--line, #2c2c2e); }
.ct-bar span.on { background: var(--accent, #c6ff00); }
.ct-bar b { margin-left: 6px; }

/* Готовность к старту (09.10.2026, race_ready.py): полоса с отметками уровней 25 / 50 / 75 / 90 % */
.ready { margin-top: 8px; }
.ready-track { position: relative; height: 10px; border-radius: 5px; background: var(--line, #2c2c2e); overflow: hidden; margin-bottom: 6px; }
.ready-track span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--accent, #c6ff00); }
.ready-track i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bg, #0a0a0a); opacity: .7; }

/* Конструктор тренировки по блокам (09.10.2026, blocks.js) */
.builder .blk-chart { height: 90px; margin: 10px 0 4px; background: var(--bg-2, #141416); border-radius: 10px; overflow: hidden; }
.builder .blk-chart svg { width: 100%; height: 100%; display: block; }
.blk-chart .b-warmup, .blk-chart .b-cooldown { fill: #2d9cdb; }
.blk-chart .b-rest { fill: #48484a; }
.blk-chart .b-work { fill: #27ae60; }
.blk-chart .b-hot { fill: var(--accent, #c6ff00); }
.blk-list { display: grid; gap: 6px; margin: 10px 0; }
.blk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px;
  background: var(--bg-2, #1c1c1e); border-left: 4px solid #48484a; }
.blk-row.blk-warmup, .blk-row.blk-cooldown { border-left-color: #2d9cdb; }
.blk-row.blk-work { border-left-color: var(--accent, #c6ff00); }
.blk-kind { font-weight: 600; min-width: 84px; }
.blk-row input, .blk-row select { background: var(--bg, #0a0a0a); color: inherit; border: 1px solid var(--line, #2c2c2e);
  border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 14px; }
.blk-dur { display: inline-flex; align-items: center; gap: 4px; }
.blk-dur input { width: 64px; }
.blk-pct, .blk-reps { width: 56px; }
.blk-unit { background: none; border: 1px solid var(--line, #2c2c2e); border-radius: 8px; color: var(--text-dim, #8e8e93);
  padding: 5px 8px; cursor: pointer; font: inherit; font-size: 13px; }
.blk-move { margin-left: auto; display: inline-flex; gap: 4px; }
.blk-move button { background: none; border: 1px solid var(--line, #2c2c2e); border-radius: 8px; color: inherit;
  width: 30px; height: 30px; cursor: pointer; }
.blk-move .blk-del:hover { border-color: #eb3b3b; color: #eb3b3b; }
.blk-repeat { border: 1px dashed var(--line, #3a3a3c); border-radius: 12px; padding: 6px; display: grid; gap: 6px; }
.blk-repeat > .blk-row:first-child { background: none; border-left: none; }
.blk-inner { margin-left: 14px; }
.blk-add { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.blk-hint { color: var(--accent, #c6ff00); }
@media (max-width: 560px) { .blk-kind { min-width: 0; width: 100%; } .blk-move { margin-left: 0; } }
.builder .partner-form .blk-dur { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; margin: 0; }

/* Чек-лист старта (09.10.2026, race_checklist.py) */
.ck-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.ck-kinds a { padding: 6px 12px; border: 1px solid var(--line, #2c2c2e); border-radius: 999px; font-size: 14px; text-decoration: none; color: inherit; }
.ck-kinds a.on { background: var(--accent, #c6ff00); color: #0a0a0a; border-color: var(--accent, #c6ff00); }
.ck-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ck-progress { font-size: 18px; white-space: nowrap; }
.ck-bar { margin: 12px 0; }
.ck-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-tools form { margin: 0; }
.ck-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; }
.ck-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid var(--line, #2c2c2e); }
.ck-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; flex: 1; }
.ck-list input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent, #c6ff00); flex: none; margin-top: 1px; }
.ck-list input:checked + span { color: var(--text-dim, #8e8e93); text-decoration: line-through; }
.ck-list form { margin: 0; }
.ck-del { background: none; border: none; color: var(--text-faint, #636366); font-size: 20px; cursor: pointer; padding: 0 6px; }
.ck-del:hover { color: #eb3b3b; }
.ck-add { display: flex; gap: 8px; }
.ck-add .invite { flex: 1; }
.ck-scheme { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 12px 0; }
.ck-scheme dt { font-weight: 600; color: var(--accent, #c6ff00); }
.ck-scheme dd { margin: 0; }
.ck-check { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .ck-scheme { grid-template-columns: 1fr; } .ck-scheme dd { margin-bottom: 6px; } }
@media print {
  header.top, footer, .no-print, .cab-tabs, .cab-side, .cab-bar { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .card { border: 1px solid #ccc !important; background: #fff !important; break-inside: avoid; }
  .ck-scheme dt { color: #000; }
}

/* Логотипы в календаре (10.10.2026) */
.cal-cover { position: relative; }
.cal-logo { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 4px; }
.ev-title { display: flex; align-items: center; gap: 14px; }
.ev-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px; flex: none; }
.logo-form form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.logo-form .invite { flex: 1; min-width: 220px; }

/* Панель администратора (11.10.2026) */
.admin-tabs { margin: 8px 0 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.admin-grid .card { margin: 0; }
.queue { display: grid; gap: 8px; margin-top: 8px; }
.queue-item { display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg-2, #1c1c1e); color: inherit; text-decoration: none; }
.queue-item.hot { border-left: 4px solid var(--accent, #c6ff00); }
.queue-item b { font-size: 18px; margin-right: 6px; }
.ai-tier { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr auto; gap: 10px; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--line, #2c2c2e); }
.ai-tier:last-of-type { border-bottom: none; }
.provider.off { opacity: .6; }
.log-row { padding: 8px 0; border-bottom: 1px solid var(--line, #2c2c2e); }
.log-detail { color: var(--text-dim, #8e8e93); word-break: break-word; }
@media (max-width: 720px) { .ai-tier { grid-template-columns: 1fr; } }

/* Панель администратора, этап 2 */
.user-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0;
  border-bottom: 1px solid var(--line, #2c2c2e); color: inherit; text-decoration: none; }
.user-row:hover b { color: var(--accent, #c6ff00); }
.inline-form { display: inline-block; margin: 4px 6px 4px 0; }
.admin-row .invite { max-width: 360px; }
.admin-tabs { flex-wrap: wrap; height: auto; border-radius: 18px; }
.admin-tabs .cab-tab { flex: 0 1 auto; }
button[disabled] { opacity: .45; cursor: not-allowed; }

/* Панель администратора, этап 3 */
.receipt-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line, #2c2c2e); }
.receipt-row input { width: 18px; height: 18px; accent-color: var(--accent, #c6ff00); margin-top: 3px; }
.row-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Документы и cookie (11.10.2026, legal.py) */
.legal h2 { font-size: 20px; margin: 26px 0 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
.legal-table th, .legal-table td { border: 1px solid var(--line, #2c2c2e); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg-2, #1c1c1e); }
.legal-missing { background: #ffd60a; color: #000; padding: 0 4px; border-radius: 4px; }
.login-checks { display: grid; gap: 10px; text-align: left; margin: 14px 0; }
.login-checks label { display: flex; gap: 10px; align-items: flex-start; }
.login-checks input { width: 20px; height: 20px; accent-color: var(--accent, #c6ff00); flex: none; margin-top: 2px; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto;
  background: var(--card, #1c1c1e); border: 1px solid var(--line, #2c2c2e); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 14px; }
.cookie-banner p { margin: 0 0 10px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- «Тренировки» в кабинете: загрузка файла и последние разборы (ТЗ «Мультиплатформа», шаг 1) */
.workouts-card .upload-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.workouts-card .upload-form input[type=file] { max-width: 100%; }
.workouts-card .reviews { margin-top: 12px; display: grid; gap: 8px; }
.workouts-card details.review { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 8px; }
.workouts-card summary { cursor: pointer; }
.workouts-card .review-card { white-space: pre-line; margin-top: 8px; line-height: 1.5; }

/* ---------- вход через Яндекс ID и по телефону (web/oauth.py, web/phone_login.py) */
.btn-oauth { text-transform: none; letter-spacing: normal; font-size: 16px; width: 100%; max-width: 320px; margin: 6px auto;
             padding: 12px 14px; white-space: nowrap; }
.btn-yandex { background: #000000; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.35); }
.btn-phone { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.phone-form { display: grid; gap: 12px; max-width: 320px; margin: 16px auto 0; text-align: left; }
.phone-form input[type=tel] { font-size: 18px; padding: 12px 14px; border-radius: 12px; }
.call-number { font-size: 28px; font-weight: 700; letter-spacing: 0.02em; margin: 12px 0; display: inline-block; }

.login-methods { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 6px; }
#login-methods .btn-oauth { margin: 6px 0; }
.login-buttons { display: grid; justify-items: center; margin: 8px 0 4px; }
.login-buttons.is-off .btn-oauth { opacity: 0.45; cursor: not-allowed; transform: none; }
.legacy-telegram { margin-top: 18px; }
.legacy-telegram summary { cursor: pointer; }
.login-methods form { display: inline; margin-left: 8px; }
.login-buttons { display: grid; justify-items: center; margin: 8px 0 4px; }
.login-buttons.is-off .btn-oauth { opacity: 0.45; cursor: not-allowed; transform: none; }
.legacy-telegram { margin-top: 18px; }
.legacy-telegram summary { cursor: pointer; }
.login-methods form { display: inline; margin-left: 8px; }
.link-button { background: none; border: 0; padding: 0; color: var(--hint); text-decoration: underline; cursor: pointer; font: inherit; }

/* Галерея тренировок (/library, 19.10.2026) */
.lib-goals a { font-size: 13px; padding: 5px 10px; }
.lib-card .lib-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.lib-steps { margin: 8px 0; padding-left: 20px; display: grid; gap: 3px; font-size: 14px; }
.lib-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 8px; }
.lib-assign { width: 100%; }
.lib-assign ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }

/* Цвета зон в графиках тренировок — как в Zwift / MyWhoosh (workout_library.ZONE_EDGES, blocks.js) */
.zc1 { fill: #8e8e93; } .zc2 { fill: #2d9cdb; } .zc3 { fill: #27ae60; }
.zc4 { fill: #f2c94c; } .zc5 { fill: #f2994a; } .zc6 { fill: #eb5757; }
.lib-graph { width: 100%; height: 64px; display: block; background: var(--bg-2, #141416); border-radius: 10px; margin: 8px 0; }
.lib-card a.lib-open { text-decoration: none; color: inherit; display: block; }
.lib-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--hint, #8e8e93); margin: 4px 0 12px; }
.lib-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.lib-legend .l1 { background: #8e8e93; } .lib-legend .l2 { background: #2d9cdb; } .lib-legend .l3 { background: #27ae60; }
.lib-legend .l4 { background: #f2c94c; } .lib-legend .l5 { background: #f2994a; } .lib-legend .l6 { background: #eb5757; }
.lib-coach { border-left: 3px solid var(--accent, #c6ff00); }
.lib-actions { display: grid; gap: 12px; }
.lib-actions .plan-params { display: flex; flex-wrap: wrap; gap: 10px; }
.lib-actions button.btn-big { width: 100%; }

/* График тренировки «по брендбуку» (20.10.2026): workout_library.svg и blocks.js рисуют одинаково */
.wg { margin: 10px 0 6px; }
.wg-plot { position: relative; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%), var(--vatto-graphite, #1c1c1e);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.wg-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wg-bar { transition: opacity .15s, filter .15s; }
.wg-svg:hover .wg-bar { opacity: .7; }
.wg-svg .wg-bar:hover { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 6px rgba(255,255,255,.35)); }
.wg-cap { stroke-width: 1.6; stroke-linecap: round; opacity: .95; pointer-events: none; }
.wg-gloss { pointer-events: none; mix-blend-mode: screen; }
/* глянец: свечение блока цветом его зоны (сильнее — у интенсивных) */
.wg-bar.z2 { filter: drop-shadow(0 0 2px rgba(45,156,219,.35)); }
.wg-bar.z3 { filter: drop-shadow(0 0 2px rgba(39,174,96,.35)); }
.wg-bar.z4 { filter: drop-shadow(0 0 4px rgba(242,201,76,.45)); }
.wg-bar.z5 { filter: drop-shadow(0 0 5px rgba(255,90,31,.55)); }
.wg-bar.z6 { filter: drop-shadow(0 0 5px rgba(235,59,59,.55)); }
.wg-bar.z7 { filter: drop-shadow(0 0 6px rgba(155,81,224,.6)); }
/* стеклянный отблеск поверх всего графика */
.wg-plot::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 100%); }
.wg-grid { stroke: rgba(242,242,240,0.08); stroke-width: 1; }
.wg-ftp { stroke: var(--vatto-lime, #c6ff00); stroke-width: 1; stroke-dasharray: 5 4; opacity: .65; }
.wg-ftp-label { position: absolute; right: 8px; transform: translateY(-120%); font: 600 10px/1 var(--vatto-font-body, Inter, sans-serif);
  letter-spacing: .06em; text-transform: uppercase; color: var(--vatto-lime, #c6ff00); opacity: .85; pointer-events: none; }
.wg-ticks { position: relative; height: 16px; margin-top: 4px; font: 500 10px/16px var(--vatto-font-body, Inter, sans-serif);
  color: var(--vatto-steel, #8e8e93); }
.wg-ticks span { position: absolute; top: 0; white-space: nowrap; }
.wg-ticks span + span { transform: translateX(-50%); }
.builder .blk-chart.wg-host { height: auto; background: none; overflow: visible; border-radius: 0; margin: 10px 0 4px; }
/* Конструктор: блок меняется прямо на графике (шаг 8b, 12.11.2026) — ручки, рамка, подсказка, «+» справа */
.wg-edit { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 6px; align-items: start; }
.wg-main { position: relative; min-width: 0; }
.builder .blk-chart[tabindex]:focus { outline: none; }
.builder .blk-chart.wg-kbd:focus .wg-plot { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 0 2px var(--vatto-lime, #c6ff00); }
.blk-chart .wg-bar { cursor: pointer; }
.blk-chart .wg-svg .wg-bar.wg-on { opacity: 1; }
.wg-dragging, .wg-dragging * { user-select: none; -webkit-user-select: none; }
.wg-dragging .wg-svg .wg-bar { opacity: .55; filter: none; }
.wg-dragging .wg-svg .wg-bar.wg-on { opacity: 1; }
.wg-selbox { fill: none; stroke: #F2F2F0; stroke-width: 2; pointer-events: none; }
.wg-layer { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.wg-h { position: absolute; pointer-events: auto; touch-action: none; z-index: 2; }
.wg-h::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 3px;
  background: var(--vatto-lime, #c6ff00); box-shadow: 0 0 0 2px rgba(10,10,10,.85); }
.wg-h-top { height: 32px; min-width: 32px; transform: translate(-50%, -50%); cursor: ns-resize; }
.wg-h-top::after { width: 22px; height: 6px; }
.wg-h-right { width: 32px; min-height: 24px; margin-top: 16px; transform: translateX(-50%); cursor: ew-resize; }
.wg-h-right::after { width: 6px; height: 22px; }
.wg-tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 20px)); pointer-events: none; white-space: nowrap;
  padding: 4px 8px; border-radius: 8px; background: rgba(10,10,10,.92); border: 1px solid rgba(242,242,240,.18);
  font: 600 12px/1.3 var(--vatto-font-body, Inter, sans-serif); color: #F2F2F0; }
.wg-tip.below { transform: translate(-50%, 20px); }
.wg-tip.on { border-color: var(--vatto-lime, #c6ff00); }
.wg-add { background: none; border: 1px dashed var(--line, #3a3a3c); border-radius: 12px; color: var(--vatto-steel, #8e8e93);
  font: 400 22px/1 var(--vatto-font-body, Inter, sans-serif); cursor: pointer; padding: 0; }
.wg-add:hover, .wg-add:focus-visible { border-color: var(--vatto-lime, #c6ff00); color: var(--vatto-lime, #c6ff00); outline: none; }
.blk-row.blk-sel { box-shadow: inset 0 0 0 2px var(--vatto-lime, #c6ff00); }
.blk-zone { color: var(--vatto-steel, #8e8e93); }
.blk-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.lib-legend .l7 { background: #9B51E0; }
.lib-legend .l5 { background: #FF5A1F; } .lib-legend .l6 { background: #EB3B3B; }
.lib-card .wg { margin: 10px 0 8px; }
/* «Мои тренировки» и отправка нескольким (конфигуратор 2.0, 20.10.2026) */
.lib-goals a.lib-mine { border-color: rgba(198,255,0,.45); }
.lib-targets { border: 0; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.lib-target { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); cursor: pointer; }
.lib-target input { width: 18px; height: 18px; accent-color: var(--vatto-lime, #c6ff00); }
/* Демо-клуб (demo_club.py, 20.10.2026) */
.flag-chip.demo-chip { color: var(--brand, #c6ff00); background: rgba(198,255,0,.10); vertical-align: middle; }
.demo-club form { margin-top: 8px; }

/* Широкая раскладка кабинета на ПК (20.10.2026, замечание Антона: «монитор задействован не весь»).
   Телефон и планшет — как было, одна колонка; от 1100 px — две колонки, от 1500 px — три (галерея, команда). */
.wide { max-width: 760px; }
.lib-grid, .ta-grid, .ta-main, .ta-side { display: grid; gap: 14px; }
.lib-grid { margin-top: 4px; }
@media (min-width: 1100px) {
  .wide { max-width: 1400px; }
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .lib-grid .lib-card { height: 100%; display: flex; flex-direction: column; }
  .lib-grid .lib-card .lib-open { flex: 1; }
  .lib-grid .lib-card .btn { align-self: flex-start; }
  .team-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ta-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .lib-form { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 28px; align-items: start; }
  .lib-form > * { grid-column: 1; }
  .lib-form > .lib-actions { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 16px; }
}
@media (min-width: 1500px) {
  .lib-grid, .team-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.partner-form label.lib-target { display: flex; flex-direction: row; align-items: center; }   /* галочка — рядом с именем */

/* Календарь по неделям «как в TrainingPeaks» (_week_calendar.html, week_calendar.py, 20.10.2026).
   Телефон — список дней с тренировками (пустые дни скрыты, кроме сегодня); от 900 px — сетка 7 дней + итог недели. */
.wcal { margin-bottom: 14px; }
.wcal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.wcal-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.wcal-legend .lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px;
  vertical-align: -1px; background: var(--st, transparent); border: 1px solid var(--st, var(--line)); }
.wcal-tip { margin: 6px 0 0; }
.st-done { --st: var(--st-done); } .st-partial { --st: var(--st-partial); } .st-off { --st: var(--st-off); }
.st-missed { --st: var(--st-missed); }
.st-free { --st: #8e8e93; } .st-planned { --st: transparent; }
.wcal-grid { margin-top: 12px; display: grid; gap: 10px; }
.wcal-row { display: flex; flex-direction: column; gap: 6px; }
.wcal-row.wcal-names, .wcal-tip { display: none; }   /* телефон: дни подписаны в клетках, перетаскивания нет */
.wcal-total { order: -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0 2px;
  border-top: 1px solid var(--line); }
.wcal-wlabel { font-weight: 600; font-size: 13px; color: var(--hint); }
.wcal-row.current .wcal-wlabel { color: var(--brand); }
.wcal-day { border-radius: 10px; background: var(--field); padding: 8px; min-width: 0; }
.wcal-day.empty:not(.today) { display: none; }
.wcal-day.today { box-shadow: inset 0 0 0 1px var(--brand); }
.wcal-day.over { box-shadow: inset 0 0 0 2px var(--brand); background: rgba(198,255,0,.08); }
.wcal-date { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--hint); margin-bottom: 4px; }
.wcal-wd { text-transform: uppercase; letter-spacing: .04em; }
.wcal-add { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: none;
  color: var(--hint); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.wcal-add:hover { color: var(--brand-ink, #000); background: var(--brand); border-color: var(--brand); }
.wcal-item { border-radius: 8px; padding: 6px 8px; margin-top: 4px; font-size: 12.5px; line-height: 1.3;
  border-left: 3px solid var(--st); background: color-mix(in srgb, var(--st) 12%, transparent); }
.wcal-item.st-planned { border: 1px dashed var(--line); border-left-width: 3px; background: none; }
.wcal-item[draggable] { cursor: grab; }
.wcal-item.dragging, .wcal-item.moving { opacity: .45; }
.wcal-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.wcal-nums { color: var(--hint); font-size: 12px; }
@media (min-width: 900px) {
  .wcal-grid { gap: 6px; }
  .wcal-tip { display: block; }
  .wcal-row, .wcal-row.wcal-names { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 140px; gap: 6px; }
  .wcal-names div { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--hint); padding: 0 8px; }
  .wcal-day { min-height: 92px; }
  .wcal-day.empty:not(.today) { display: block; }
  .wcal-day.past { opacity: .92; }
  .wcal-row.current .wcal-day { background: color-mix(in srgb, var(--brand) 5%, var(--field)); }
  .wcal-date .wcal-wd { display: none; }
  .wcal-total { order: 0; flex-direction: column; align-items: flex-start; border-top: 0; padding: 8px 10px;
    border-radius: 10px; background: var(--field); }
  .wcal-title { white-space: nowrap; }
}

/* «Путь к целям» — мини-дашборд над календарём (_goal_dash.html, athlete_dashboard.py, 20.10.2026).
   Графит + лайм по брендбуку, глянец как у графиков тренировок. Анимация стартует, когда блок виден (.on). */
.gdash { margin-bottom: 14px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(198,255,0,.07) 0%, transparent 55%), var(--card); }
.gd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; }
.gd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.gd-tile { background: var(--field); border-radius: 14px; padding: 14px 14px 12px; min-width: 0; position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.gd-k { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--hint); font-weight: 600; }
.gd-v { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 4px; color: var(--text); }
.gd-v small { font-size: 14px; color: var(--hint); margin-left: 4px; font-weight: 500; }
.gd-v.gd-word { font-size: 19px; line-height: 1.2; display: flex; align-items: center; gap: 8px; }
.gd-n { font-size: 12.5px; color: var(--hint); margin-top: 6px; line-height: 1.35; }
.gd-tiny { font-size: 11px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 10px; }
.gd-bar span { display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #8fd400, #c6ff00 70%, #e8ff7a); box-shadow: 0 0 12px rgba(198,255,0,.45);
  transition: width 1.1s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.gdash.on .gd-bar span { width: var(--w); }
.gd-spark { width: 100%; height: 34px; margin-top: 6px; display: block; overflow: visible; }
.gd-spark-line { fill: none; stroke: #c6ff00; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease .2s; filter: drop-shadow(0 0 4px rgba(198,255,0,.5)); }
.gd-spark-fill { opacity: 0; transition: opacity .8s ease 1s; }
.gdash.on .gd-spark-line { stroke-dashoffset: 0; }
.gdash.on .gd-spark-fill { opacity: 1; }
.gd-light { --gl: var(--st-done); width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--gl);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gl) 18%, transparent), 0 0 14px var(--gl); }
.tone-warn .gd-light { --gl: var(--st-off); }
.tone-bad .gd-light { --gl: var(--st-missed); }
.gdash.on .gd-light { animation: gd-pulse 2.4s ease-in-out infinite; }
@keyframes gd-pulse { 50% { transform: scale(1.25); } }
.gd-dots { display: flex; gap: 6px; margin-top: 10px; }
.gd-dots i { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); transition: background .4s ease var(--d), box-shadow .4s ease var(--d); }
.gdash.on .gd-dots i.on { background: #c6ff00; box-shadow: 0 0 10px rgba(198,255,0,.5); }

.gd-goals { display: flex; gap: 12px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.gd-goal { flex: 0 0 88%; scroll-snap-align: start; background: var(--field); border-radius: 16px; padding: 16px; min-width: 0;
  border: 1px solid rgba(255,255,255,.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease, border-color .2s; }
.gd-goal:nth-child(2) { transition-delay: .12s; }
.gd-goal:nth-child(3) { transition-delay: .24s; }
.gd-goal:nth-child(4) { transition-delay: .36s; }
.gdash.on .gd-goal { opacity: 1; transform: none; }
.gd-goal:hover { border-color: rgba(198,255,0,.25); }
.gd-race-top { display: flex; gap: 14px; align-items: center; }
.gd-ring { width: 112px; height: 112px; flex: none; overflow: visible; }
.gd-ring-bg { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 10; }
.gd-ring-mark { stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.gd-ring-val { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1) .15s; filter: drop-shadow(0 0 6px rgba(198,255,0,.45)); }
.gdash.on .gd-ring-val { stroke-dashoffset: calc(100 - var(--p)); }
.gd-ring-pct { text-anchor: middle; font-family: var(--font-display); font-size: 30px; font-weight: 700; fill: var(--text); }
.gd-ring-unit { font-size: 15px; fill: var(--hint); }
.gd-ring-lvl { text-anchor: middle; font-size: 9.5px; fill: var(--hint); }
.gd-race-info { min-width: 0; }
.gd-race-name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.gd-race-name .prio { vertical-align: 1px; }
.gd-count { margin-top: 8px; font-size: 13px; color: var(--hint); }
.gd-count b { font-family: var(--font-display); font-size: 24px; color: var(--brand); margin-right: 2px; }
.gd-taper { color: var(--st-off); }
.gd-parts { display: grid; gap: 7px; margin-top: 14px; }
.gd-part { display: grid; grid-template-columns: 96px 1fr 38px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--hint); }
.gd-part .gd-bar { margin: 0; height: 6px; }
.gd-part b { text-align: right; color: var(--text); font-weight: 600; }
.gd-more { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: 13px; }
.gd-race .gd-detail { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.gd-race[aria-expanded="true"] .gd-detail { max-height: 400px; }
.gd-tip { margin: 8px 0 0; font-size: 13.5px; }

.gd-steps-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.gd-now { text-align: right; display: flex; flex-direction: column; }
.gd-now b { font-family: var(--font-display); font-size: 26px; color: var(--brand); line-height: 1.1; }
.gd-meter { margin: 34px 10px 6px; }
.gd-track { position: relative; height: 16px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.gd-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 99px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 55%), linear-gradient(90deg, #6fae00, #c6ff00);
  box-shadow: 0 0 16px rgba(198,255,0,.5); transition: width 1.5s cubic-bezier(.2,.8,.2,1) .2s; }
.gd-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%); }
.gdash.on .gd-fill { width: var(--w); }
.gdash.on .gd-fill::after { animation: gd-shine 2.8s ease-in-out 1.8s infinite; }
@keyframes gd-shine { 60%, 100% { transform: translateX(100%); } }
.gd-ticks { position: relative; height: 40px; }
.gd-tick { position: absolute; top: -18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  font-size: 11.5px; white-space: nowrap; outline: none; opacity: 0; transition: opacity .4s ease var(--d, 0ms); }
.gdash.on .gd-tick { opacity: 1; }
.gd-tick i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px;
  background: var(--card); border: 2px solid rgba(255,255,255,.25); color: #111; font-weight: 700; }
.gd-tick b { margin-top: 4px; font-weight: 600; color: var(--hint); }
.gd-tick em { font-style: normal; font-size: 10px; color: var(--hint); opacity: .7; }
.gd-tick.up b { position: absolute; bottom: 24px; margin: 0; }
.gd-tick.done i { background: #c6ff00; border-color: #c6ff00; box-shadow: 0 0 10px rgba(198,255,0,.6); }
.gd-tick.done b { color: var(--text); }
.gd-tick.next i { border-color: #c6ff00; }
.gdash.on .gd-tick.next i { animation: gd-ring 1.8s ease-out infinite; }
@keyframes gd-ring { 0% { box-shadow: 0 0 0 0 rgba(198,255,0,.6); } 100% { box-shadow: 0 0 0 12px rgba(198,255,0,0); } }
.gd-tick.next b { color: var(--brand); }
.gd-tick.goal i { background: none; border-color: transparent; font-size: 16px; }
.gd-tick.start { top: -13px; }
.gd-tick.start i { width: 10px; height: 10px; background: rgba(255,255,255,.45); border: 0; }
.gd-tick[data-tip]:hover::after, .gd-tick[data-tip]:focus::after { content: attr(data-tip); position: absolute; top: 100%; margin-top: 4px;
  background: var(--text); color: #0b0b0c; padding: 4px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; z-index: 3; }
.gd-steps-note { margin: 4px 0 0; }
.gd-empty .btn { margin-top: 6px; }
@media (min-width: 720px) {
  /* 05.11.2026: на планшете цели — сеткой по две, без ленты с обрезанной карточкой; 4 плитки в ряд — с 1000px */
  .gd-goals { overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .gd-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .gd-goals { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
.gdash.still *, .gdash.still *::after { transition: none !important; animation: none !important; }
a.wcal-add { display: grid; place-items: center; text-decoration: none; }
@media (max-width: 560px) { .gd-ring { width: 92px; height: 92px; } .gd-race-top { gap: 10px; } .gd-part { grid-template-columns: 84px 1fr 34px; } }

/* Цели (goals.py, goals.html, карточки на «Пути к целям», 21.10.2026) */
.gd-main { color: var(--brand); }
.gd-done { border-color: rgba(198,255,0,.35); }
.gd-warn { margin: 6px 0 0; color: var(--st-off); }
.gd-bar-big { height: 14px; margin-top: 16px; }
.gd-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 6px; margin-top: 16px; }
.gd-weeks i { height: 18px; border-radius: 6px; background: rgba(255,255,255,.07); transition: background .4s ease var(--d), box-shadow .4s ease var(--d); }
.gdash.on .gd-weeks i.on { background: linear-gradient(180deg, #e8ff7a, #8fd400); box-shadow: 0 0 10px rgba(198,255,0,.45); }
.gdash.on .gd-weeks i.now { animation: gd-ring 1.8s ease-out infinite; }
.gd-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none;
  color: var(--text); border: 1px dashed rgba(198,255,0,.35); min-height: 120px; text-align: center; }
.gd-add span { font-size: 28px; color: var(--brand); line-height: 1; }
.gd-add em { font-style: normal; }
.goals-h2 { margin-top: 28px; }
.goal-list { display: grid; gap: 10px; margin: 14px 0; }
.goal-row.main { border-color: rgba(198,255,0,.4); }
.goal-row.done { opacity: .8; }
.goal-row-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.goal-pct { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--brand); }
.goal-row .gd-bar span { width: var(--w); }
.goal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.goal-actions form { margin: 0; }
.goal-inline { display: flex; gap: 6px; align-items: center; }
.goal-inline .invite { width: 90px; margin: 0; }
.goal-cat { display: grid; gap: 12px; margin-top: 14px; }
.goal-cat-card { display: flex; flex-direction: column; gap: 8px; }
.goal-cat-card.fits { border-color: rgba(198,255,0,.35); }
.goal-cat-top { display: flex; gap: 6px; flex-wrap: wrap; }
.goal-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--field); color: var(--hint); }
.goal-chip.fit { color: var(--brand-ink, #000); background: var(--brand); }
.goal-cat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.goal-cat-fields .invite { margin-top: 4px; }
.goal-cat-card .btn { align-self: flex-start; }
.goal-custom { margin-top: 16px; }
@media (min-width: 900px) { .goal-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .goal-cat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gd-now b { white-space: nowrap; }
.gd-goal-weeks .gd-now b, .gd-goal-manual .gd-now b, .gd-goal-bar .gd-now b { font-size: 20px; }

/* Главная тренера — «кому нужно внимание» (coach_home.py, team.html, 21.10.2026) */
.ch-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.ch-stat { background: var(--field); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ch-stat b { font-family: var(--font-display); font-size: 28px; line-height: 1.1; color: var(--text); }
.ch-stat b small { font-size: 14px; color: var(--hint); }
.ch-stat span { font-size: 12.5px; color: var(--hint); }
.ch-stat.warn b { color: var(--st-off); }
.ch-stat.bad b { color: var(--st-missed); }
.ch-meter { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 6px; }
.ch-meter em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8fd400, #c6ff00); }
.ch-lanes { display: grid; gap: 12px; }
.ch-lane { display: flex; flex-direction: column; gap: 8px; }
.ch-lane-head { font-weight: 700; font-size: 14px; display: flex; justify-content: flex-start; align-items: center; gap: 2px; }
.ch-lane-head > span { margin-left: auto; }
.ch-lane-head span { font-size: 12px; color: var(--hint); background: var(--field); border-radius: 99px; padding: 2px 9px; }
.ch-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--field);
  color: var(--text); text-decoration: none; border-left: 3px solid var(--st-done); transition: transform .15s, outline-color .15s; }
.ch-card:hover { outline: 1px solid var(--line); transform: translateY(-1px); }
.ch-red .ch-card { border-left-color: var(--st-missed); }
.ch-yellow .ch-card { border-left-color: var(--st-off); }
.ch-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ch-spark { width: 64px; height: 18px; flex: none; }
.ch-spark rect { fill: rgba(198,255,0,.35); }
.ch-spark rect.now { fill: #c6ff00; }
.ch-card .team-flags { margin: 4px 0 0; }
.ch-goal { display: flex; flex-direction: column; font-size: 12px; color: var(--hint); }
.ch-news { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.ch-news a { font-size: 13px; color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 10px; background: var(--field); }
@media (min-width: 900px) {
  .ch-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ch-lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

/* Переписка тренер ↔ спортсмен (coach_chat.py, 21.10.2026) */
.chat-thread { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; margin: 10px 0; }
.chat-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--field); align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(198,255,0,.12); }
.chat-text { white-space: pre-wrap; font-size: 14px; }
.chat-about-label { font-size: 11.5px; color: var(--brand); margin-bottom: 2px; }
.chat-form textarea { resize: vertical; }
.chat-about { text-decoration: none; }

/* ИИ-черновик недели (coach_draft.py, 22.10.2026) */
.draft-box { margin: 6px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(198,255,0,.05);
  border: 1px dashed rgba(198,255,0,.3); }
.draft-text { white-space: pre-wrap; font-size: 14px; margin: 6px 0; }
.draft-list { display: grid; gap: 6px; margin: 8px 0; }
.draft-make { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.draft-make .invite { width: auto; margin: 0; }

/* Группы в клубе (coach_groups.py, 22.10.2026) */
.ch-groups { margin: 12px 0 4px; }
.ch-groups a span { font-size: 11px; color: var(--hint); margin-left: 3px; }
.ch-groups a.on span { color: inherit; }
.ch-groups-admin { margin-top: 12px; }
.ch-group-new { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ch-group-new .invite { flex: 1; min-width: 200px; margin: 0; }
.ch-group { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ch-group-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ch-group-head .invite { flex: 1; min-width: 160px; margin: 0; }
.ch-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }

/* Рейтинги команды (coach_ratings.py, 22.10.2026) */
.ch-ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.ch-rating { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.ch-rrow { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center;
  padding: 7px 4px 9px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.ch-rrow:last-of-type { border-bottom: 0; }
.ch-rrow:hover { background: rgba(255, 255, 255, .03); }
.ch-place { text-align: center; font-weight: 700; color: var(--hint); }
.ch-rname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-rname small { display: block; font-size: 11px; color: var(--hint); }
.ch-rrow b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-rrow i { position: absolute; left: 4px; bottom: 3px; height: 3px; width: calc(var(--w) - 8px); max-width: calc(100% - 8px);
  border-radius: 2px; background: var(--brand); opacity: .55; animation: chbar .9s ease-out both; transform-origin: left; }
@keyframes chbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .ch-rrow i { animation: none; } }

/* График формы и месячный отчёт (coach_report.py, 22.10.2026) */
.fc-card { margin-top: 14px; }
.fc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 8px; font-size: 13px; }
.fc-k { display: inline-flex; align-items: center; gap: 6px; }
.fc-k::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: currentColor; }
.fc-k small { color: var(--hint); }
.fc-ctl { color: var(--brand); } .fc-atl { color: #ff8a65; } .fc-tsb { color: #64b5f6; }
.fc-k b { color: var(--text); }
.fc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.fc-axis, .fc-tick { stroke: var(--line); stroke-width: 1; }
.fc-tick { stroke-dasharray: 2 4; }
.fc-zero { stroke: var(--hint); stroke-width: 1; opacity: .5; }
.fc-bar { fill: #64b5f6; opacity: .55; }
.fc-bar.neg { fill: #ff8a65; opacity: .35; }
.fc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fc-ctl-l { stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fcdraw 1.4s ease-out forwards; }
.fc-atl-l { stroke: #ff8a65; opacity: .8; stroke-dasharray: 4 3; }
.fc-month { fill: var(--hint); font-size: 11px; }
@keyframes fcdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .fc-ctl-l { animation: none; stroke-dashoffset: 0; } }

/* Сезонный план (season.py, _season.html): цвет фазы — из цветов зон бренда; прошлые недели — факт, приглушённо */
.ss-card { margin-top: 14px; }
.ss-svg { width: 100%; height: auto; max-height: 280px; display: block; overflow: visible; margin: 8px 0 4px; }
.ss-bar { fill: var(--hint); }
.ss-bar.past { fill: rgba(255, 255, 255, .28); }
.ss-bar.base { fill: #2d9cdb; } .ss-bar.build { fill: #27ae60; } .ss-bar.peak { fill: #f2c94c; }
.ss-bar.taper { fill: #9b51e0; } .ss-bar.race { fill: var(--brand); } .ss-bar.recovery { fill: var(--hint); opacity: .6; }
.ss-bar.rec { opacity: .55; }
.ss-now { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .7; }
.ss-flag line { stroke: var(--brand); stroke-width: 1; opacity: .5; }
.ss-flag circle { fill: var(--brand); }
.ss-flag.pB circle { fill: #f2c94c; } .ss-flag.pC circle { fill: var(--hint); }
.ss-flag.pB line { stroke: #f2c94c; } .ss-flag.pC line { stroke: var(--hint); }
.ss-flag text { fill: var(--brand-ink); font: 700 9px var(--font-display); text-anchor: middle; }
.ss-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-dim); }
.ss-k { display: inline-flex; align-items: center; gap: 6px; }
.ss-k::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--hint); }
.ss-k.past::before { background: rgba(255, 255, 255, .28); } .ss-k.base::before { background: #2d9cdb; }
.ss-k.build::before { background: #27ae60; } .ss-k.peak::before { background: #f2c94c; }
.ss-k.taper::before { background: #9b51e0; } .ss-k.race::before { background: var(--brand); }
.ss-k.recovery::before { opacity: .6; }
.ss-phases { margin: 10px 0 6px; padding-left: 18px; font-size: 14px; columns: 2 260px; }
.ss-phases li { margin: 2px 0; }
.rep-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.rep-sub { color: var(--hint); margin-top: -6px; }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 12px 0; }
.rep-table td { padding: 5px 6px; }
.rep-up { color: var(--ok); font-weight: 700; } .rep-down { color: var(--warn); font-weight: 700; }
.rep-goal { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rep-goal i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.rep-text { white-space: pre-wrap; font-family: inherit; font-size: 13px; background: var(--field); padding: 10px; border-radius: 10px; }
@media print {
  .no-print, header, footer, nav.cab-nav { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .card { border: 1px solid #ccc !important; background: #fff !important; break-inside: avoid; }
}

/* Автопродление по отдельной отметке и уведомления (юридические документы v2, 22.10.2026) */
.renew-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 8px 0; text-align: left; }
.renew-agree input { margin-top: 3px; flex: none; }
.renew-email { margin: 0 0 8px; }
.notify-card { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.notify-card .invite { margin: 0; }
.notify-card .btn { align-self: flex-start; }

/* Zwift и MyWhoosh через intervals.icu (icu.py, 23.10.2026) */
.icu-card { margin-top: 16px; }
.icu-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.icu-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.icu-form .invite { flex: 1; min-width: 200px; margin: 0; }
.icu-steps { margin: 4px 0 4px 18px; padding: 0; }

/* ---------- фирменные элементы вместо простых ссылок и эмодзи (24.10.2026, брендбук v1.0) */
/* Ссылки в тексте: лайм без подчёркивания, подчёркивание — при наведении; кнопки-ссылки не подчёркиваем */
a { text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
a.btn:hover, a.back:hover, .top-nav a:hover, .foot a:hover, a.btn:focus-visible { text-decoration: none; }
/* 04.11.2026: подчёркивание — только у ссылок внутри текста; у всего, что работает как кнопка (меню, плитки,
   карточки, фильтры, «+» в календаре — у них есть класс), при наведении меняется цвет или фон, без черты */
a[class]:hover, a[class]:focus-visible { text-decoration: none; }
/* Иконка в кнопке — цвета текста кнопки (лайм на лайме не видно), отступ даёт gap */
.btn .ic, .btn .ic.inline, .back .ic, .btn-icon .ic { color: currentColor; margin-right: 0; vertical-align: 0; width: 1.05em; height: 1.05em; }
.alert .ic.inline { color: currentColor; }
/* Тихая кнопка: без рамки, Oswald заглавными — «Выйти», «Начать заново» */
.btn-ghost { background: transparent; border-color: transparent; color: var(--hint); }
.btn-ghost:hover { color: var(--brand); transform: none; }
/* Опасное действие: обводка «Пульс» — «Отключить», «Удалить» */
.btn-danger { background: transparent; color: #FF5A1F; border-color: rgba(255, 90, 31, .55); }
.btn-danger:hover { border-color: #FF5A1F; background: rgba(255, 90, 31, .08); transform: none; }
.link-button { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
/* «Назад»: стрелка + подпись заглавными, серый → лайм */
.back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em; font-size: 13px; color: var(--hint); padding: 6px 14px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: color .15s, border-color .15s; }
.back:hover { color: var(--brand); border-color: var(--brand); }
/* Кнопка-значок (крестик) */
.btn-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--hint); cursor: pointer; padding: 0; font-size: 15px; }
.btn-icon:hover { color: #FF5A1F; border-color: #FF5A1F; }
/* Раскрывашки: без треугольника браузера, свой шеврон поворачивается */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details > summary:not(.btn) { display: inline-flex; align-items: center; gap: 6px; }
details > summary:not(.btn)::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s; }
details[open] > summary:not(.btn)::after { transform: rotate(180deg); }
details > summary:not(.btn):hover { color: var(--text); }
/* Светофор и статусы — точки цветов бренда вместо эмодзи */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--hint); }
.dot-ok { background: var(--brand); box-shadow: 0 0 8px rgba(198, 255, 0, .45); }
.dot-warn { background: var(--st-off); }
.dot-bad { background: #FF5A1F; box-shadow: 0 0 8px rgba(255, 90, 31, .45); }
.dot-off { background: transparent; border: 1.5px solid var(--hint); }
/* Места в рейтинге: 1 — лайм, 2 — мел, 3 — «Пульс», дальше — серым */
.place { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--font-display);
  font-size: 13px; font-weight: 700; color: var(--hint); border: 1px solid var(--line); }
.place-1 { background: var(--brand); color: #0A0A0A; border-color: var(--brand); }
.place-2 { background: #F2F2F0; color: #0A0A0A; border-color: #F2F2F0; }
.place-3 { background: #FF5A1F; color: #0A0A0A; border-color: #FF5A1F; }
/* Поле выбора файла: кнопка — капсула с обводкой, как .btn-secondary; подпись файла — серым */
input[type="file"] { color: var(--hint); font: inherit; font-size: 13px; max-width: 100%; }
input[type="file"]::file-selector-button { font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .05em; font-size: 13px; color: var(--text); background: transparent; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 9px 18px; margin-right: 12px; cursor: pointer; transition: border-color .15s, color .15s; }
input[type="file"]::file-selector-button:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Тенденции в кабинете (_trends.html, 29.10.2026) */
.tr-card { margin-top: 14px; }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-head h2 { margin: 0; }
.tr-sum { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tr-sum.ok, .tr-chip.ok { background: var(--brand-soft); color: var(--brand); }
.tr-sum.watch, .tr-chip.watch { background: rgba(255, 90, 31, .14); color: #FF5A1F; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; margin: 10px 0; }
.tr-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; display: grid; gap: 4px; align-content: start; }
.tr-item.watch { border-color: rgba(255, 90, 31, .55); }
.tr-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tr-title { font-weight: 600; font-size: 14px; }
.tr-chip { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tr-now b { font-size: 22px; font-variant-numeric: tabular-nums; }
.tr-now small { color: var(--hint); }
.tr-svg { width: 100%; height: 56px; display: block; overflow: visible; }
.tr-line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tr-item.watch .tr-line { stroke: #FF5A1F; }
.tr-norm { stroke: var(--hint); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.tr-bar { fill: var(--brand); opacity: .75; }
.tr-bar.short { fill: #FF5A1F; opacity: .9; }
.tr-note { margin: 2px 0 0; font-size: 13px; color: var(--hint); }
.tr-legend { margin: 0; }

/* ---------- Тренер настраивает сезон (_season.html, season.coach_set, 29.10.2026) */
.ss-edit { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.ss-edit summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.ss-edit-form { display: grid; gap: 10px; margin-top: 10px; }
.ss-race { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.ss-race legend { font-weight: 600; padding: 0 4px; }
.ss-race label, .ss-hours { display: grid; gap: 4px; font-size: 13px; color: var(--hint); }
.ss-race input, .ss-race select, .ss-hours input { width: 7em; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; }
.ss-edit-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Админка: «Выйти из админки» в меню и форма кода из Telegram (web/admin_guard.py, 03.11.2026) */
.admin-logout { display: inline; margin: 0 0 0 auto; }
.admin-logout .cab-tab { background: none; border: 0; cursor: pointer; font: inherit; color: var(--hint); }
.admin-verify-form { display: grid; gap: 12px; margin: 12px 0 16px; max-width: 280px; }
.admin-verify-form input { font-size: 22px; letter-spacing: 0.3em; text-align: center; }

/* ================================================================== кабинет: каркас «как в TrainingPeaks» (03.11.2026)
   Решение Антона (вариант A): на ПК (от 960 px) меню слева, справа рабочая область — раздел помещается в один экран,
   длинные списки листаются внутри своей карточки (.cab-scroll). Телефон и планшет: меню — нижняя панель
   (4 кнопки + «Ещё»), разделы — одной колонкой. Меню — _cabinet_nav.html, пункты — web/cabinet.py. */
.cab-page { padding-bottom: 76px; }                     /* место под нижнюю панель телефона */
.cab-page main { padding-top: 20px; }
.cab-page .foot { margin-top: 40px; }
.cab-shell { max-width: 1680px; margin: 0 auto; padding: 0 16px; }
.cab-work { min-width: 0; }
.cab-work > .wrap { padding: 0; }                       /* отступы даёт каркас */
.cab-work > .wrap.cab-section { max-width: none; }      /* разделы кабинета — во всю рабочую область */
.cab-work h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 14px; }

.cab-side { display: none; }
.cab-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-dim);
  text-decoration: none; font-size: 15px; line-height: 1.25; }
.cab-link .ic { width: 20px; height: 20px; flex: 0 0 auto; }
.cab-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.cab-link.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; }

.cab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(5, 5, 5, 0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.cab-bar-link { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; color: var(--hint);
  text-decoration: none; font-size: 11px; line-height: 1.2; text-align: center; cursor: pointer; list-style: none; }
.cab-bar-link::-webkit-details-marker { display: none; }
.cab-more > summary.cab-bar-link { display: flex; }
.cab-more > summary.cab-bar-link::after { display: none; }   /* без общего шеврона раскрывашек */
.cab-bar-link .ic { width: 22px; height: 22px; }
.cab-bar-link.on { color: var(--brand); }
.cab-more { position: relative; }
.cab-more-list { position: absolute; right: 4px; bottom: calc(100% + 14px); min-width: 230px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); }


/* ---------- разделы кабинета: единая сетка (04.11.2026, замечание Антона «всё гармонично и выверено»)
   Раздел собирается из рядов (.cab-row): в ряду 1, 2, 3 или 4 карточки равной ширины, ряд всегда заполнен целиком,
   карточки ряда одной высоты. Карточка (.cab-card): заголовок со значком → текст (.cab-body) → кнопки внизу
   (.cab-foot, над чертой, на одной линии во всём ряду). Полоса (.cab-band) — карточка во всю ширину: текст слева,
   действие справа. Плашки (.cab-tiles) — короткие ссылки-состояния в ряд. Шаг сетки — 8 px: между карточками 16,
   внутри карточки 24, между строками 12. Кнопки в кабинете одного размера (btn-small), ярко-зелёная — одна на карточку. */
.cab-section { padding-bottom: 8px; }
.cab-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  min-height: 48px; margin: 0 0 16px; }
.cab-work .cab-head h1 { margin: 0; line-height: 1.1; }
.cab-head .who { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.cab-head .role-chip { margin: 0; }
.cab-section > .alert { margin: 0 0 16px; }

.cab-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; margin: 0 0 16px; }
.cab-row > * { margin: 0; min-width: 0; }
.cab-label { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; font-weight: 600;
  letter-spacing: 0.04em; line-height: 1.2; margin: 24px 0 16px; }
.cab-label + .hint { margin: -8px 0 16px; }
.cab-note { margin: 0 0 16px; font-size: 13px; }

.cab-section .card { padding: 24px; }
.cab-section > .card { margin: 0 0 16px; }              /* полоса или карточка вне ряда — тот же шаг 16 */
.cab-card { display: flex; flex-direction: column; gap: 12px; }
.cab-section .status-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; line-height: 1.2; }
.cab-section .status-title > .ic.inline { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; vertical-align: 0; }
.cab-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cab-body > *, .cab-card > p { margin: 0; }
.cab-body .hint:not(.small) { font-size: 15px; line-height: 1.6; }
.cab-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line); }
.cab-foot form { margin: 0; }
.cab-foot .btn-oauth { width: auto; max-width: none; margin: 0; min-height: 40px; padding: 9px 18px; font-size: 13px; }

.cab-band { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.cab-band > .cab-body { flex: 1 1 380px; }
.cab-band > .cab-foot { flex: 0 1 auto; margin: 0; padding: 0; border: 0; }
.cab-band > .cab-foot.wide { flex: 1 1 340px; }

/* плашки-состояния: значок, название, пояснение; ведут в свой раздел */
.cab-tiles { display: grid; gap: 16px; margin: 0 0 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cab-tiles.t4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cab-tile { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 20px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.cab-tile > .ic { width: 24px; height: 24px; flex: 0 0 auto; color: var(--brand); }
.cab-tile > .ic.go { width: 18px; height: 18px; margin-left: auto; color: var(--hint); }
.cab-tile.off > .ic:first-child, .cab-tile.s-free > .ic:first-child { color: var(--hint); }
.cab-tile.s-cancelled > .ic:first-child { color: var(--warn); }
.cab-tile > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cab-tile b { font-weight: 600; }
.cab-tile small { color: var(--hint); font-size: 13px; }
a.cab-tile:hover { border-color: var(--brand); }
a.cab-tile:hover > .ic.go { color: var(--brand); }

/* содержимое карточек */
.cab-section .season-row { padding: 12px 0; }
.cab-body > .season-row:first-child, .cab-scroll > .season-row:first-child { border-top: none; padding-top: 0; }
.cab-section .review-card { white-space: pre-line; line-height: 1.5; color: var(--text-dim); font-size: 15px; }
.cab-section .reviews { display: grid; gap: 8px; }
.cab-section details.review { border-top: 1px solid var(--line); padding-top: 8px; }
.cab-section details.review:first-child { border-top: none; padding-top: 0; }
.cab-section details.review summary { cursor: pointer; }
.cab-section .review .review-card { margin-top: 8px; }
.cab-section .login-methods { margin: 0; }
.cab-section .login-methods .link-button { font-family: inherit; text-transform: none; letter-spacing: 0;
  text-decoration: underline; text-underline-offset: 3px; }
/* «Сегодня» → «Ближайший старт»: сколько осталось — крупно, ниже старт и готовность */
.next-start { display: flex; flex-direction: column; gap: 10px; }
.next-when { font-family: var(--font-display); text-transform: uppercase; font-size: 28px; font-weight: 600;
  line-height: 1.1; letter-spacing: 0.02em; color: var(--brand); }
.next-name { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.next-name > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.next-start .ready { margin: 0; }
.cab-section .role-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0;
  border-top: 1px solid var(--line); }
.cab-section .role-offer:first-child { border-top: none; padding-top: 0; }
.cab-section .role-offer > div { flex: 1 1 240px; }
.cab-section .renew { width: 100%; margin: 0; padding: 0; border: 0; }
.cab-section .renew + .renew { padding-top: 12px; border-top: 1px solid var(--line); }
.cab-section .renew-agree { margin: 0; }
.cab-section .notify-card, .cab-section .icu-card { margin: 0; }
.cab-section .icu-form { margin: 0; width: 100%; }
.cab-section .icu-steps { margin: 4px 0 0 18px; }
.cab-section .upload-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.cab-section .upload-form input[type=file] { flex: 0 1 auto; width: 300px; max-width: 100%; color: var(--text-dim); font-size: 14px; }   /* подпись «Не выбран ни один файл» — целиком */
.cab-section .invite { margin: 0; }
.cab-copy { display: flex; gap: 8px; width: 100%; }
.cab-copy .invite { flex: 1 1 auto; min-width: 0; }
.cab-more-info summary { cursor: pointer; }
.cab-more-info[open] summary { margin-bottom: 8px; }

/* «Подписка»: статус — полосой, тарифы — четыре равные карточки; строки карточек выровнены по высоте (subgrid) */
.cab-section .status-head { gap: 16px; }
.cab-section .status-icon { width: 44px; height: 44px; box-shadow: 0 0 0 5px var(--brand-soft); }
.cab-section .status-icon .ic { width: 22px; height: 22px; }
.cab-section .s-free .status-icon { box-shadow: none; }
.cab-section .coach-tariff p { margin: 0 0 8px; }
.cab-plans { display: grid; gap: 24px 16px; margin: 0 0 12px; grid-template-columns: minmax(0, 1fr); }
.cab-plans > .plan { margin: 0; gap: 12px; }
.cab-plans .plan h3 { margin: 0; font-size: 18px; }
.cab-plans .plan .price { font-size: 30px; }
.cab-plans .plan-meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; }
.cab-plans .plan-meta .hint { font-size: 14px; }
.cab-plans .methods { margin: 0; }
.cab-plans .plan-renew { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.cab-plans .plan-renew .renew-email { margin: 0; }
.cab-plans .plan .btn { margin: 0; align-self: end; }
@supports (grid-template-rows: subgrid) {
  .cab-plans > .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
}

/* телефон: плашки компактнее (значки — ниже, «Сегодня» на телефоне, 05.11.2026); кнопка полосы — во всю ширину */
@media (max-width: 639px) {
  .cab-section .card { padding: 20px; }
  .cab-tiles { gap: 8px; }
  .cab-tile { min-height: 0; padding: 10px 12px; }
  .cab-tile > .ic { display: none; }
  .cab-tile small { font-size: 12px; }
  .cab-band > .cab-foot, .cab-band > .cab-foot .btn, .cab-band > .cab-foot form { width: 100%; }
}
@media (min-width: 560px) {
  .cab-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .cab-row.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab-tiles.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .cab-row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .cab-page { padding-bottom: 0; }
  .cab-bar { display: none; }
  .cab-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; padding: 0 32px; }
  .cab-side { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 84px; align-self: start;
    height: calc(100vh - 104px); }
  .cab-group { display: flex; flex-direction: column; gap: 2px; }
  .cab-group-role { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .cab-group-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
  /* длинный список — листается внутри карточки, страница остаётся в один экран */
  .cab-scroll { max-height: calc(100vh - 330px); min-height: 160px; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; padding-right: 8px; }
  .cab-scroll.short { max-height: 168px; min-height: 0; }
}
@media (min-width: 960px) and (max-width: 1099px) {   /* узкий ноутбук: три карточки в ряд не помещаются — одна под другой */
  .cab-row.c3 { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .cab-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) and (max-width: 1399px) {   /* 4 тарифа на ноутбуке 1280: карточки уже — поля и заголовок меньше */
  .cab-plans > .plan { padding: 20px; }
  .cab-plans .plan h3 { font-size: 16px; }
}

/* ---------- разделы тренера и организатора в той же сетке (04.11.2026, «чтобы и у тренера было ровно»)
   Вложенные страницы (спортсмен, отчёт, тренировка галереи, новый старт) — строка «← куда вернуться · клуб» над
   заголовком; действия раздела — в шапке справа (.cab-actions). Блоки — ряды .cab-row, карточки .cab-card, полосы .cab-band. */
.cab-crumb { margin: 0 0 8px; font-size: 14px; }
.cab-crumb .back { margin: 0; }
.cab-lead { margin: -4px 0 16px; max-width: 880px; font-size: 15px; line-height: 1.6; }
.cab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cab-actions form { margin: 0; }
.cab-head .team-flags { margin: 0; flex-basis: 100%; }
.cab-section .cab-lane-list { display: flex; flex-direction: column; gap: 8px; }
.cab-section .ch-stats { margin: 0 0 16px; gap: 16px; }
.cab-section .ch-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  min-height: 92px; justify-content: flex-start; }
.cab-section .ch-stat span { font-size: 13px; }
.cab-section .ch-lanes, .cab-section .ch-ratings { margin: 0 0 16px; gap: 16px; }
.cab-section .ch-lane.card { gap: 12px; }
/* заголовки колонок и рейтингов — как заголовки карточек (.status-title): тот же шрифт, кегль и отступ значка */
.cab-section .ch-lane-head { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; font-weight: 600;
  letter-spacing: 0.04em; line-height: 1.2; gap: 10px; }
.cab-section .ch-lane-head > .ic.inline { width: 20px; height: 20px; margin: 0; }
.cab-section .ch-lane-head span { font-family: var(--font-body, inherit); letter-spacing: 0; }
.cab-section .ch-rating { padding: 24px; border-radius: var(--radius); }
.cab-section .ch-rating .ch-lane-head { margin-bottom: 8px; }
.cab-section .ch-news { margin: 0; }
.cab-section .ch-groups { margin: 0 0 16px; }
.cab-section .ch-group { margin: 0; padding: 0; background: none; border: 0; }
.cab-section .ch-group-new { margin: 0; }
.cab-section .group-row { border-top: 1px solid var(--line); padding: 10px 0; }
.cab-section .group-row:first-child { border-top: none; padding-top: 0; }
.cab-section .group-row > summary { cursor: pointer; }
.cab-section .group-row[open] > summary { margin-bottom: 10px; }
.cab-section .rep-grid { margin: 0 0 16px; gap: 16px; }
.cab-section .rep-text { margin: 0; }
.cab-section .partner-stats { margin: 0; }
.cab-section .partner-form { margin: 0; }
.cab-section .qr-row { margin: 0; }
.cab-section .lib-coach { border-left: 1px solid var(--line); }
.cab-section .doc ul, .cab-section ul.cab-list { margin: 0; padding-left: 20px; color: var(--text-dim); display: grid; gap: 6px; }
.cab-section .org-race { display: grid; gap: 16px; }
.cab-section .org-race .partner-stats { margin: 0; }
.cab-section .lib-grid { margin: 0; gap: 16px; }
.cab-section .lib-legend { margin: 0 0 16px; }
.cab-section .ck-kinds { margin: 0 0 12px; }
.cab-section .ck-kinds + .lib-legend { margin-top: 4px; }
.cab-section .fc-card, .cab-section .ss-card, .cab-section .gdash, .cab-section .wcal { margin: 0 0 16px; }
.cab-section .ta-grid, .cab-section .ta-main, .cab-section .ta-side { gap: 16px; }
.cab-section .ta-grid > div > .card { margin: 0; }
/* сезон по неделям: при коротком плане столбики не растягиваются на пол-экрана */
.cab-section .ss-svg { max-height: 280px; }
/* конструктор галереи: правая колонка «Отправить» тянулась на 40 пустых строк сетки — без промежутков между строками */
@media (min-width: 1100px) {
  .lib-form { row-gap: 0; }
  .lib-form > *:not(.lib-actions) { margin-bottom: 12px; }
  .lib-form > *:not(.lib-actions):last-child { margin-bottom: 0; }
}
@media (min-width: 900px) {
  .cab-section .ch-lanes { align-items: stretch; }
}
/* правая колонка тренировки галереи: главная кнопка в одну строку, одна на колонку (остальные — контурные) */
.cab-section .lib-actions button.btn-big { padding: 15px 20px; font-size: 14px; }
.cab-crumb { color: var(--hint); }
/* колонки «Срочно / Присмотреться / Всё хорошо» и рейтинги: по три в ряд — только когда колонке хватает ширины (от 1200px);
   уже — по одной во всю ширину, карточки спортсменов внутри колонки — плиткой, без «осиротевшей» третьей карточки */
.cab-section .ch-ratings { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) and (max-width: 1199px) {
  .cab-section .ch-lanes { grid-template-columns: minmax(0, 1fr); }
  .cab-section .ch-lanes .cab-lane-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (min-width: 1200px) {
  .cab-section .ch-ratings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Меню тренировки в календаре по неделям (04.11.2026): клик или правая кнопка по тренировке */
.wcal { position: relative; }
.wcal-item[data-menu] { cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.wcal-item[data-menu]:hover, .wcal-item[data-menu]:focus-visible {
  background: color-mix(in srgb, var(--st, var(--brand)) 22%, var(--field)); outline: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st, var(--brand)) 55%, transparent); }
.wcal-item.st-planned[data-menu]:hover, .wcal-item.st-planned[data-menu]:focus-visible {
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--brand); }
.wcal-menu { position: absolute; z-index: 30; width: 240px; padding: 8px; border-radius: 14px; background: var(--card);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.wcal-menu[hidden] { display: none; }
.wcal-menu-head { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 10px; border-bottom: 1px solid var(--line);
  margin-bottom: 6px; }
.wcal-menu-head b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcal-menu-list { display: flex; flex-direction: column; }
.wcal-menu-list[hidden] { display: none; }
.wcal-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0;
  border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.wcal-menu-list button[hidden] { display: none; }
.wcal-menu-list button .ic { width: 18px; height: 18px; color: var(--hint); margin: 0; }
.wcal-menu-list button:hover, .wcal-menu-list button:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.wcal-menu-list button:hover .ic, .wcal-menu-list button:focus-visible .ic { color: var(--brand); }
.wcal-menu-list button.danger { color: var(--st-missed); margin-top: 4px; border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px; }
.wcal-menu-list button.danger .ic { color: var(--st-missed); }
.wcal-menu-form { display: grid; gap: 10px; padding: 4px 4px 6px; }
.wcal-menu-form[hidden] { display: none; }
.wcal-menu-form label { display: grid; gap: 6px; }
.wcal-menu-form .btn { justify-self: start; }

/* Сделанная тренировка в календаре — ссылка на страницу разбора */
a.wcal-item.wcal-open { display: block; color: inherit; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
a.wcal-item.wcal-open:hover, a.wcal-item.wcal-open:focus-visible { outline: none;
  background: color-mix(in srgb, var(--st, var(--brand)) 24%, var(--field));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st, var(--brand)) 60%, transparent); }

/* ---------- Разбор сделанной тренировки (шаг 9, 14.11.2026, workout_dash.html + workout_review.js): итог и прибор
   «Интенсивность», общий график по зонам с курсором, зоны, отрезки, кривая мощности, все цифры. Цвета зон — --wr-z1…7,
   рядов поверх графика — пульс «Пульс», каденс голубой, скорость бирюзовый, высота сталь. Без анимации при
   «уменьшить движение». */
.wr { --wr-z1: #8E8E93; --wr-z2: #2D9CDB; --wr-z3: #27AE60; --wr-z4: #F2C94C; --wr-z5: #FF5A1F; --wr-z6: #EB3B3B;
  --wr-z7: #9B51E0; --wr-hr: #FF6A3D; --wr-cad: #6FB7FF; --wr-spd: #35D6C0; --wr-elev: #A1A1A8;
  --wr-card2: #212124; display: flex; flex-direction: column; gap: 16px; }
.wr .cab-head, .wr .cab-crumb { margin-bottom: 0; }
.wr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -8px 0 0; color: var(--text-dim); font-size: 14px; }
.wr-meta .ic.inline { margin-right: 6px; }
.wr-chip { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: var(--wr-card2); color: var(--text); }
.wr-card { background: linear-gradient(180deg, #1A1A1C, #131314); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px; padding: 22px; min-width: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.wr-card h2 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: 0; text-transform: none; letter-spacing: 0; }
.wr-eyebrow { color: var(--hint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.wr-num { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.wr-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wr-hero.two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.wr-verdict { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.35; font-weight: 500; margin: 0 0 22px; text-wrap: balance; }
.wr-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.wr-keys.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wr-keys.k1 { grid-template-columns: minmax(0, 1fr); }
.wr-keys .wr-num { font-size: clamp(26px, 4vw, 36px); line-height: 1.1; }
.wr-keys small, .wr-cap { color: var(--text-dim); font-size: 13px; }
.wr-keys small { display: block; line-height: 1.3; hyphens: auto; overflow-wrap: anywhere; }
.wr-u { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--text-dim); margin-left: 4px; }
.wr-dial { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wr-hint { justify-content: center; }
.wr-hint p:last-child { color: var(--text-dim); max-width: 32ch; margin: 0; }
.wr-gauge { position: relative; width: 100%; max-width: 340px; aspect-ratio: 340 / 330; }
.wr-gauge canvas, .wr-plot canvas, .wr-curve canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wr-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; color: var(--text-dim); font-size: 12px; margin-top: 6px; }
.wr-marks b { color: var(--text); font-weight: 500; }
.wr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.wr-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.wr-tg { font: inherit; font-size: 13px; color: var(--text-dim); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.wr-tg i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--c); opacity: .35; }
.wr-tg[aria-pressed="true"] { color: var(--text); border-color: var(--hint); }
.wr-tg[aria-pressed="true"] i { opacity: 1; box-shadow: 0 0 8px var(--c); }
.wr-o-hr { --c: var(--wr-hr); } .wr-o-cad { --c: var(--wr-cad); } .wr-o-spd { --c: var(--wr-spd); } .wr-o-elev { --c: var(--wr-elev); }
.wr-tg:focus-visible, .wr-more summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wr-plot { position: relative; height: 360px; touch-action: pan-y; }
.wr-plot canvas { cursor: crosshair; }
.wr-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.wr-read .wr-num { font-size: 22px; line-height: 1.15; }
.wr-read small { color: var(--text-dim); font-size: 12px; display: block; }
.wr-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; color: var(--text-dim); font-size: 12px; }
.wr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.wr-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wr-two.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wr-rows { display: flex; flex-direction: column; gap: 12px; }
.wr-ribbon { display: flex; gap: 3px; height: 16px; margin-bottom: 18px; overflow: hidden; animation: wr-open 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.wr-ribbon span { height: 100%; border-radius: 4px; flex: 1 1 0; min-width: 3px; }
.wr-z1 { background: var(--wr-z1); } .wr-z2 { background: var(--wr-z2); } .wr-z3 { background: var(--wr-z3); } .wr-z4 { background: var(--wr-z4); }
.wr-z5 { background: var(--wr-z5); } .wr-z6 { background: var(--wr-z6); } .wr-z7 { background: var(--wr-z7); }
.wr-zrow { display: grid; grid-template-columns: 148px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 14px; }
.wr-track { height: 8px; border-radius: 4px; background: var(--wr-card2); overflow: hidden; }
.wr-fill { height: 100%; border-radius: 4px; width: var(--w); animation: wr-grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.wr-v { text-align: right; font-variant-numeric: tabular-nums; }
.wr-v small { color: var(--text-dim); }
.wr-srow { display: grid; grid-template-columns: 26px minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.wr-n { width: 26px; height: 26px; border-radius: 50%; background: var(--wr-card2); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; }
.wr-n.st-done { background: var(--st-done); color: var(--brand-ink); }
.wr-n.st-close { background: var(--st-partial); color: var(--brand-ink); }
.wr-n.st-missed { background: var(--st-off); color: var(--brand-ink); }
.wr-t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 14px; }
.wr-t span, .wr-sub { color: var(--text-dim); }
.wr-sub { font-size: 13px; margin-top: 2px; }
.wr-sub b.st-done { color: var(--st-done); } .wr-sub b.st-close { color: var(--st-partial); } .wr-sub b.st-missed { color: var(--st-off); }
.wr-spark { width: 96px; height: 34px; display: block; }
.wr-curve { position: relative; height: 190px; margin-bottom: 14px; }
.wr-best { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.wr-best > div { background: var(--wr-card2); border-radius: 14px; padding: 12px 16px; min-width: 0; }
.wr-best .wr-num { font-size: 24px; line-height: 1.15; }
.wr-best .wr-num span { font-size: 14px; font-family: var(--font-body); font-weight: 400; color: var(--text-dim); }
.wr-best small { color: var(--text-dim); font-size: 13px; display: block; }
.wr-rec { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--brand); color: var(--brand-ink);
  font-size: 11px; font-weight: 600; line-height: 18px; }
.wr-more summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 17px; }
.wr-more summary::-webkit-details-marker { display: none; }
.wr-more summary::after { content: "показать"; color: var(--text-dim); font-weight: 400; font-size: 13px; }
.wr-more[open] summary::after { content: "скрыть"; }
.wr-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; margin-top: 18px; }
.wr-all small { color: var(--text-dim); font-size: 12px; display: block; }
.wr-all b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wr-review { margin-top: 14px; }
.wr-review p { margin: 0 0 6px; min-height: 6px; }
.wr-next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.wr-next p { margin: 0; max-width: 62ch; }
@keyframes wr-grow { from { width: 0; } }
@keyframes wr-open { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 760px) {
  .wr-hero.two, .wr-two.c2 { grid-template-columns: minmax(0, 1fr); }
  .wr-card { padding: 18px 16px; }
  .wr-plot { height: 280px; }
  .wr-read { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wr-best { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wr-zrow { grid-template-columns: minmax(0, 1fr) 76px; }
  .wr-zrow > span:first-child { grid-column: 1 / -1; }
  .wr-srow { grid-template-columns: 26px minmax(0, 1fr) 72px; }
  .wr-spark { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { .wr-fill, .wr-ribbon { animation: none; } }

/* ---------- Панель администратора в каркасе кабинета (04.11.2026, _admin_nav.html): меню слева, рабочая область —
   та же сетка (.cab-head, .cab-row, .cab-card). Плашки цифр — как .cab-tile, очереди — строки со значением слева. */
.adm-badge { display: none; }
@media (min-width: 900px) {
  .adm-badge { display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; color: var(--hint);
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .adm-badge .ic { width: 16px; height: 16px; color: var(--brand); }
}
.cab-side .admin-logout, .cab-more-list .admin-logout { margin: 0; }
button.cab-link { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }

.adm .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
@media (min-width: 1100px) { .adm .admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm .admin-grid .card.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.adm .admin-grid .stat > .hint.small:first-child { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.adm .num-big { font-size: 30px; }
.adm > .card > .status-title, .adm > form.card > .status-title { margin-bottom: 12px; }
.adm .cab-card .ev-dist:first-child, .adm > .card > .status-title + .ev-dist { border-top: 0; padding-top: 0; }
.adm .queue { margin: 0; gap: 8px; }
.adm .queue-item { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--field); border-left: 3px solid transparent; transition: background-color .15s; }
.adm .queue-item:hover { background: color-mix(in srgb, var(--brand) 10%, var(--field)); }
.adm .queue-item.hot { border-left-color: var(--brand); }
.adm .queue-item b { font-family: var(--font-display); font-size: 20px; margin: 0; min-width: 28px; }
.adm .queue-item.hot b { color: var(--brand); }
.adm .ck-add { margin: 0 0 16px; }
/* телефон: поле ввода — на всю ширину своей строкой, галочка и кнопка — под ним (раньше поле сжималось в полоску) */
@media (max-width: 600px) {
  .adm .ck-add { flex-wrap: wrap; align-items: center; }
  .adm .ck-add .invite, .adm .ck-add select { flex: 1 1 100%; min-width: 0; }
}
.adm .user-row:hover b { color: var(--brand); }
.adm .cab-crumb .back { display: inline-flex; }
/* фильтр платежей («все / оплачен / …») — ряд переключателей, выбранный — лаймовый */
.adm .adm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.adm .adm-filters .queue-item { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.adm .adm-filters .queue-item.hot { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }

/* Админка → «Деньги»: карточка «Старт продаж» (launch_sale.py, 04.11.2026) */
.sale-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 16px; margin: 12px 0 4px; }
.sale-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--hint); }
.sale-grid label.sale-on { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 600; grid-column: 1 / -1; }
.sale-grid .invite { width: 100%; margin: 0; }

/* Старт продаж (launch_sale.py, 04.11.2026): лаймовая полоса акции / предзаказа над шапкой */
.sale-bar { background: var(--vatto-lime); color: var(--vatto-ink); font-size: 13px; line-height: 1.35; }
.sale-row { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.sale-bar b { font-weight: 700; }
.sale-bar a { color: var(--vatto-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sale-short { display: none; }
@media (max-width: 720px) { .sale-long { display: none; } .sale-short { display: inline; } }

/* Тестовые ссылки в панели администратора (admin_users.html, testers.py) */
.tester-card { margin-top: 14px; }
.tester-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.tester-row > div { min-width: 0; flex: 1; }
.tester-link { display: flex; gap: 8px; margin-top: 8px; }
.tester-link .invite { flex: 1; min-width: 0; font-size: 13px; }
@media (max-width: 560px) { .tester-link { flex-direction: column; } }

/* «Путь к целям» на телефоне и иконки плиток (05.11.2026, Антон: «текст в блоках несимметричен, иконок нет»).
   Плитка — колонка: иконка + подпись, цифра, график, пояснение прижато к низу — в ряду всё на одной линии.
   Карточки целей на телефоне — одна под другой на всю ширину (лента с обрезанной соседней карточкой выглядела кривой). */
.gd-tile { display: flex; flex-direction: column; }
.gd-k { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.gd-k span { min-width: 0; }
.gd-ic { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 8px; box-sizing: border-box;
  background: rgba(198,255,0,.12); color: #c6ff00; stroke-width: 2.2; }
.gd-tile > .gd-n { margin-top: auto; padding-top: 8px; }
.gd-tile > .gd-n ~ .gd-n { margin-top: 2px; padding-top: 0; }
.wcal-legend .st-planned::before { border: 1px dashed var(--hint); box-sizing: border-box; }
@media (max-width: 719px) {
  .gd-goals { flex-direction: column; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .gd-goal { flex: none; width: auto; }
  .gd-add { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
    justify-items: start; text-align: left; min-height: 0; padding: 14px 16px; }
  .gd-add span { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
    background: rgba(198,255,0,.12); font-size: 24px; }
}
@media (max-width: 560px) {
  .gdash { padding: 16px 14px; }
  .gd-tiles { gap: 8px; }
  .gd-tile { padding: 12px 12px 12px; }
  .gd-k { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 10px; letter-spacing: .05em; }
  .gd-state .gd-light { position: absolute; top: 19px; right: 16px; }      /* огонёк — в углу, фраза на всю ширину */
  .gd-k span { min-height: 2.6em; line-height: 1.3; display: flex; align-items: flex-end; }
  .gd-v { font-size: 28px; }
  .gd-v.gd-word { font-size: 16px; line-height: 1.25; }
  .gd-n { font-size: 12px; }
  .gd-goal { padding: 14px; }
}
@media (min-width: 1000px) and (max-width: 1279px) {   /* 4 узкие плитки: иконка над подписью, «Тренированность» влезает */
  .gd-k { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Каталог целей: подпись в две строки («Цель, тренировок в неделю») — поля всё равно на одной линии (05.11.2026) */
.goal-cat-fields { align-items: end; }
.goal-cat-fields .invite { height: 50px; box-sizing: border-box; }   /* поле даты в браузере на 2px выше обычного */

/* «Сегодня» на телефоне (05.11.2026): плашки «Доступ / Бот / Garmin» — с иконками, как на компьютере;
   иконка сверху, подпись под ней — все три плашки одной высоты и с одной линией текста */
@media (max-width: 639px) {
  .cab-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .cab-tile > .ic:first-child { display: block; width: 30px; height: 30px; padding: 6px; box-sizing: border-box;
    border-radius: 9px; background: rgba(198,255,0,.12); }
  .cab-tile.off > .ic:first-child, .cab-tile.s-free > .ic:first-child { background: rgba(255,255,255,.06); }
  .cab-tile > .ic.go { display: none; }
  .cab-tile b { font-size: 14px; line-height: 1.25; }
  .cab-tile > span { flex: 1; }                                  /* подпись внизу — на одной линии во всех плашках */
  .cab-tile > span small { margin-top: auto; padding-top: 2px; }
}

/* Дни рождения в клубе (birthdays.py, 06.11.2026): карточка в «Настройках», блок в «Команде», 🎂 в календаре */
.cab-band.bday-card { align-items: flex-start; }
.bday-form { display: flex; flex-direction: column; gap: 10px; }
.bday-date { display: flex; flex-wrap: wrap; gap: 8px; }
.bday-date select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--field);
  color: var(--text); font: inherit; font-size: 15px; }
.bday-date .invite { flex: 1 1 150px; min-width: 0; }
.bday-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; }
.bday-scope label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bday-form .renew-agree { margin: 0; }
.bday-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bday-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.bday-list li.today b { color: var(--brand); }
.wcal-bday { margin-top: 4px; padding: 4px 8px; border-radius: 8px; font-size: 12.5px; line-height: 1.3;
  background: color-mix(in srgb, var(--brand) 12%, transparent); }
@media (max-width: 600px) {
  .bday-date select { flex: 1 1 40%; }
  .bday-date .invite { flex: 1 1 100%; }
}
/* «Ещё роли» на телефоне: блоки идут столбиком, ширина 240px работала как высота — большой пустой зазор */
@media (max-width: 560px) {
  .cab-section .roles-card .role-offer > div { flex: 0 0 auto; }
}
/* Возможные дубли аккаунтов (admin_users.html, accounts.py) */
.dup-card { margin-top: 14px; }
.dup-group { padding: 10px 0; border-top: 1px solid var(--line); }
.dup-group .user-row { padding-left: 0; padding-right: 0; }

/* Похожие тренировки на странице тренировки (08.11.2026): заголовок с отступом; на ПК — три в ряд */
.lib-similar-title { margin: 24px 0 8px; }
@media (min-width: 1100px) { .lib-similar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Календарь: окно «Просмотр» плановой тренировки (шаг 8a, 11.11.2026; _workout_view.html) */
.wv-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border-radius: 16px;
  background: var(--card); color: var(--text); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.wv-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.wv-dialog > div { padding: 18px 18px 16px; }
.wv-head { display: flex; align-items: flex-start; gap: 12px; }
.wv-sport { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--field); }
.wv-sport .ic { width: 20px; height: 20px; margin: 0; color: var(--brand); }
.wv-name { flex: 1; min-width: 0; }
.wv-name h3 { margin: 2px 0 0; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.wv-x { flex: none; margin: -4px -6px 0 0; }
.wv-nums { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 4px; color: var(--hint); font-size: 13px; }
.wv-nums b { color: var(--text); font-size: 15px; }
.wv-lines { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; }
.wv-unknown, .wv-wait { margin: 12px 0 0; }
.wv-note { margin: 10px 0 0; white-space: pre-line; }
.wv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Календарь: маленький профиль блоков в плашке (шаг 8a; workout_copies.mini_svg) — цвета зон брендбука */
.wcal-shape { display: block; width: 100%; height: 14px; margin: 4px 0 3px; border-radius: 3px; overflow: hidden; }
.wcal-shape .wz1 { fill: var(--z1); } .wcal-shape .wz2 { fill: var(--z2); } .wcal-shape .wz3 { fill: var(--z3); }
.wcal-shape .wz4 { fill: var(--z4); } .wcal-shape .wz5 { fill: var(--z5); } .wcal-shape .wz6 { fill: var(--z6); }
.wcal-shape .wz7 { fill: var(--z7); }

/* «Эта неделя»: сделано больше плана — план зелёным, превышение оранжевым (шаг 8a) */
.gd-bar-over { display: flex; }
.gd-bar-over span { flex: none; border-radius: 0; }
.gd-bar-over span:first-child { border-radius: 99px 0 0 99px; }
.gd-bar-over span.gd-over { border-radius: 0 99px 99px 0; margin-left: 2px; background: var(--st-off);
  box-shadow: 0 0 10px rgba(255,176,32,.4); }
.gd-over-t, .wcal-over { color: var(--st-off); }
.wcal-over { font-size: 12px; white-space: nowrap; }

/* Календарь: понятная плашка (шаг 8a, 11.11.2026). Полоска слева — самая тяжёлая часть тренировки (лёгкая — синяя,
   темп — зелёная, порог — жёлтая, максимум — красная; блоки неизвестны — нейтральная). Статус — значком и словом,
   а не цветом всей плашки. Название целиком, в несколько строк. */
.in-easy { --in: var(--z2); } .in-tempo { --in: var(--z3); } .in-threshold { --in: var(--z4); } .in-max { --in: var(--z6); }
.wcal-item { border-left: 3px solid var(--in, rgba(255, 255, 255, .22)); background: rgba(255, 255, 255, .045); }
.wcal-item.st-planned { border: 1px dashed var(--line); border-left: 3px solid var(--in, var(--line)); background: none; }
.wcal-title { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
@media (min-width: 900px) { .wcal-title { white-space: normal; } }
.wcal-st { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--st); font-size: 11.5px; font-weight: 600; }
.wcal-st .ic { width: 12px; height: 12px; margin: 0; flex: none; }
.wcal-item[data-menu]:hover, .wcal-item[data-menu]:focus-visible, a.wcal-item.wcal-open:hover, a.wcal-item.wcal-open:focus-visible {
  background: color-mix(in srgb, var(--in, var(--brand)) 14%, var(--field));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--in, var(--brand)) 55%, transparent); }
.wcal-legend { align-items: center; }
.wcal-legend .wcal-st { margin: 0; font-weight: 500; }
.wcal-legend .lg-dash::before { content: ""; display: inline-block; width: 14px; height: 10px; margin-right: 5px; vertical-align: -1px;
  border: 1px dashed var(--hint); border-radius: 3px; box-sizing: border-box; }
.wcal-legend .lg-in { display: inline-flex; align-items: center; gap: 2px; }
.wcal-legend .lg-in i { display: inline-block; width: 4px; height: 12px; border-radius: 2px; background: var(--in); }
.wcal-legend .lg-in i:last-of-type { margin-right: 5px; }

/* ---------- кабинет: спокойный стиль (шаг 8c, 12.11.2026, Антон: «давай попробуем»)
   Лайм — только главное: активный пункт меню — тонкая полоска слева и белый текст (без заливки); вторые кнопки —
   обычный шрифт строчными, без разрядки (заглавные и лайм — только у главной кнопки экрана); кнопка «Кабинет» в шапке
   внутри кабинета — с обводкой. Карточки — почти без рамки, между блоками 24 px. Главную страницу сайта не трогает. */
.cab-link.on { background: rgba(255, 255, 255, 0.04); color: var(--text); font-weight: 600; border-radius: 0 12px 12px 0;
  box-shadow: inset 3px 0 0 var(--brand); }
.cab-link.on .ic { color: var(--brand); }
.cab-page .btn-secondary, .cab-page .btn-ghost { font-family: var(--font-body); text-transform: none; letter-spacing: normal;
  font-weight: 500; font-size: 14px; }
.cab-page .top-nav .btn { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.cab-page .top-nav .btn:hover { border-color: var(--text); transform: none; }
.cab-section .card, .cab-tile { border-color: rgba(255, 255, 255, 0.05); }
.cab-head { margin-bottom: 24px; }
.cab-row { gap: 24px; margin-bottom: 24px; }
.cab-section > .card, .cab-section > .alert, .cab-tiles { margin-bottom: 24px; }

/* ---------- «Сегодня» (шаг 8c): большая карточка — тренировка дня слева, готовность справа (телефон — одна под
   другой); ниже ряд из трёх карточек; настройка — тихой строкой. Данные — today_screen.py. */
.td-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .td-hero:not(.solo) { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); } }
.td-main { min-width: 0; }
.td-kicker { margin: 0 0 6px; font-size: 13px; color: var(--hint); }
.cab-work .td-title { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: 0.02em; }
.td-meta { margin: 0 0 16px; color: var(--text-dim); }
.td-shape { margin: 0 0 16px; }
.td-shape svg { display: block; width: 100%; max-width: 560px; height: 56px; }
.td-why { margin: 0 0 16px; max-width: 62ch; font-size: 16px; line-height: 1.55; }
.td-careful { margin: -6px 0 16px; color: #FFB020; font-size: 14px; }
.td-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.td-move > summary { list-style: none; cursor: pointer; }
.td-move > summary::-webkit-details-marker { display: none; }
.td-move > summary::after { display: none; }
.td-move-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
.td-move-form label { display: grid; gap: 4px; font-size: 13px; color: var(--hint); }
.td-move-form input[type="date"] { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--field);
  color: var(--text); font: inherit; }
.td-ready { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.td-ready > * { margin: 0; }
@media (min-width: 900px) { .td-ready { border-left: 1px solid var(--line); padding-left: 24px; } }
@media (max-width: 899px) { .td-ready { border-top: 1px solid var(--line); padding-top: 20px; } }
.td-light { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; }
.td-light::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; background: var(--hint); }
.td-light.t-ok::before { background: var(--brand); }
.td-light.t-warn::before { background: #FFB020; }
.td-light.t-bad::before { background: var(--warn); }
.td-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.td-num b { display: block; font-size: 20px; line-height: 1.2; }
.td-num small { color: var(--hint); font-size: 12px; }
.td-phrase { line-height: 1.5; }
.td-big { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1; }
.td-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 76px; }
.td-week span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0;
  font-size: 11px; color: var(--hint); }
.td-week span.now { color: var(--text); font-weight: 600; }
.td-week i { display: block; width: 100%; max-width: 22px; max-height: 52px; border-radius: 3px; }
.td-week i.s-done { background: var(--st-done); }
.td-week i.s-missed { background: var(--st-missed); }
.td-week i.s-plan { border: 1px dashed rgba(255, 255, 255, 0.35); }
.td-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03); color: var(--text-dim); font-size: 14px; }
.td-setup a { color: var(--text); }
.td-trial { margin-left: auto; color: var(--hint); }
.td-dots { display: inline-flex; gap: 4px; }
.td-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.td-dots i.on { background: var(--brand); }

/* ---------- Меню кабинета: «Выйти» и кто вошёл (14.11.2026) */
.cab-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 4px; font-size: 13px; line-height: 1.35;
  color: var(--text-dim); overflow-wrap: anywhere; }
.cab-who b { color: var(--text); font-weight: 600; }
.cab-more-list .cab-who { padding: 6px 12px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.cab-more-list .cab-logout { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 12px; }


/* ---------- Плашка «это новый аккаунт» (14.11.2026) */
.new-acc { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.new-acc b { color: var(--text); }

/* ---------- Нижнее меню на телефоне — плавающая «таблетка» (вариант А, 14.11.2026): одни значки, активный — в лаймовом
   кружке. Подписи остаются для программ чтения с экрана. */
.cab-bar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }
.cab-bar-link { padding: 0; gap: 0; }
.cab-bar-link > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cab-bar-link .ic { box-sizing: content-box; width: 22px; height: 22px; padding: 10px; border-radius: 50%; }
.cab-bar-link.on .ic { background: var(--brand); color: var(--brand-ink); }
.cab-more-list { right: 0; bottom: calc(100% + 16px); }

/* Аватар (шаг 10a, _avatar.html): фото или кружок с буквой в фирменном цвете; 24 / 32 / 48 / 96 px */
.ava { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%;
  object-fit: cover; background: var(--ava-bg, var(--field)); color: var(--ava-ink, var(--text));
  font-family: var(--font-display); font-weight: 700; line-height: 1; overflow: hidden; vertical-align: middle;
  user-select: none; }
.ava-24 { width: 24px; height: 24px; font-size: 12px; }
.ava-32 { width: 32px; height: 32px; font-size: 15px; }
.ava-48 { width: 48px; height: 48px; font-size: 22px; }
.ava-96 { width: 96px; height: 96px; font-size: 42px; }
img.ava { background: var(--field); }
.ava-letter { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.cab-who { flex-direction: row; align-items: center; gap: 10px; text-decoration: none; }
.cab-who:hover b { color: var(--brand); }
.cab-who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cab-head .who .ava { margin-right: 2px; }
.ch-card-top b { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ath-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ath-head h1 { min-width: 0; overflow-wrap: anywhere; }
/* «Фото профиля» в настройках */
.cab-band.photo-card > .cab-body { flex-direction: row; gap: 18px; align-items: center; }
.photo-card .photo-text { min-width: 0; }
.photo-card input[type=file] { max-width: 100%; }
/* Логотип клуба и организатора */
.club-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--field); flex: none;
  vertical-align: middle; margin-right: 8px; }
.club-logo-lg { width: 72px; height: 72px; }
.logo-form { margin-top: 8px; }
.logo-form .upload-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.logo-form input[type=file] { max-width: 100%; }
.invite-club { display: flex; align-items: center; gap: 10px; }
.org-logo-now { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
@media (max-width: 600px) {
  .cab-band.photo-card > .cab-body { flex-direction: column; align-items: flex-start; }
}
