/* Копия design/karera/components/bundle.css — правки делаются в дизайн-системе. */
/* Вспортивке · Карьера: классы компонентов. Цвета, размеры и время берём только из tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
/* Картинка блока (imgVar) не наследуется: аватар без фото внутри блока с картинкой не возьмёт её себе. */
@property --vs-img { syntax: "*"; inherits: false; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 22px; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }

.vs-arena { background: var(--bg); }
.vs-display { font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.9; }
.vs-display--xl { font-size: 64px; }
.vs-display--lg { font-size: 48px; }
.vs-display--md { font-size: 32px; }
/* Название или имя из данных (FitName): кегль — по самому длинному слову, слово — неделимый блок.
   --name-em — оценка сверху ширины этого слова: при кегле выше --fit-min оно встаёт в колонку целиком. */
.vs-fitbox { align-self: stretch; container-type: inline-size; }
.vs-fitname { font-size: clamp(var(--fit-min, 24px), calc(100cqi / var(--name-em, 2.5)), var(--fit-max, 64px)); overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.vs-fitname__word { display: inline-block; }
.vs-fitname__glue { white-space: nowrap; }
.vs-label { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.vs-kicker { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--action-ink); }
.vs-muted { color: var(--ink-muted); }
.vs-soft { color: var(--ink-soft); }
/* Ссылка во фразе (Login.dc.html): подчёркнута — видна не только цветом. */
.vs-link { color: var(--action-hi); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.vs-wordmark { font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }

/* Иконки Phosphor: viewBox 0 0 256 256, fill currentColor. */
.vs-ico { width: 24px; height: 24px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.vs-ico--sm { width: 18px; height: 18px; }
.vs-ico--lg { width: 32px; height: 32px; }

/* Панель */
.vs-panel { position: relative; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 0; box-shadow: none; overflow: hidden; }
.vs-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 38px; padding: 0 14px; background: var(--panel-header); border-bottom: 1px solid var(--line); }
.vs-panel__title { margin: 0; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.vs-panel__meta { font-size: 13px; color: var(--ink-soft); }
.vs-panel__meta--action { color: var(--action-ink); }
.vs-panel__count { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 18px; line-height: 1; color: var(--ink-muted); }
.vs-panel__body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
/* Панель по центру — приглашение и системные экраны (Invite.dc.html). */
.vs-panel--center .vs-panel__head { justify-content: center; }
.vs-panel--center .vs-panel__title { color: var(--ink-soft); }
.vs-panel--center .vs-panel__body { align-items: center; gap: 12px; padding: 24px 16px 26px; text-align: center; }
/* Примечание под телом: комментарий капитана в «Собрались» (Matchup.dc.html). */
.vs-panel__note { margin: 0; padding: 12px 14px 14px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); white-space: pre-line; overflow-wrap: break-word; }
/* Строка панели над линией: «Минуты» со степпером (TrainingNew.dc.html); следующий блок отделён line-soft. */
.vs-panel__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.vs-panel__row + * { border-top: 1px solid var(--line-soft); }
/* Действие внизу панели: «+ Упражнение». */
.vs-panel__actions { padding: 12px 8px 14px; border-top: 1px solid var(--line-soft); }
/* «Упражнения — по желанию» (TrainingNew.dc.html): примечание мельче и тише. */
.vs-panel__note--hint { padding: 10px 14px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* Подсказка под телом панели (ProgressEmpty.dc.html). */
.vs-panel__caption { margin: 0; padding: 4px 14px 12px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* Ведущая панель — «Ближайшее» на главной: подпись и срок важнее, чем у прочих панелей (основатель 23.10). */
.vs-panel--lead .vs-panel__head { height: 44px; }
.vs-panel--lead .vs-panel__title { font-size: 16px; line-height: 20px; letter-spacing: 0.12em; }
.vs-panel--lead .vs-tag { height: 30px; padding: 0 10px; font-size: 14px; letter-spacing: 0.08em; }
/* «Ближайшее» и «через 12 дней» в одну полосу на 320 px: уже 375 — плотнее разрядка. */
@media (max-width: 374px) {
  .vs-panel--lead .vs-panel__title { letter-spacing: 0.06em; }
  .vs-panel--lead .vs-tag { padding: 0 8px; letter-spacing: 0.04em; }
}
/* Группы ответов (Answers.dc.html). */
.vs-panel__head--chip { height: 44px; }
.vs-panel__head--chip .vs-chip { padding: 0 12px; font-size: 12px; }
.vs-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--size-touch); padding: 0 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action-hi); text-decoration: none; }
/* Панель обрезает всё, что выступает: кольцо фокуса подвала — внутри. */
.vs-panel__foot:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.vs-list { margin: 0; padding: 0; list-style: none; }
.vs-list__item { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; }
.vs-list__item + .vs-list__item { border-top: 1px solid var(--line-soft); }
.vs-list--sm .vs-list__item { min-height: 40px; padding: 4px 14px; }
/* На широком экране строка во всю ширину уводит номер и действия далеко от имени. */
@media (min-width: 768px) {
  /* Разделитель колонок — фоном списка: у нечётного числа строк он доходит до низа, а не обрывается. */
  .vs-list--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: linear-gradient(var(--line-soft), var(--line-soft)) center / 1px 100% no-repeat; }
  .vs-list--cols > .vs-list__item { border-top: 0; border-bottom: 1px solid var(--line-soft); }
  .vs-list--cols > .vs-list__item:last-child, .vs-list--cols > .vs-list__item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* Строка списка */
.vs-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 12px; border-radius: 0; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: none; color: inherit; text-decoration: none; }
/* Строка-ссылка: видно, что нажимается — подсветка рамки, фон при наведении, стрелка справа */
.vs-row--link { cursor: pointer; text-decoration: none; color: inherit; transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.vs-row--link:hover { background: var(--raised); border-color: color-mix(in srgb, var(--action) 45%, var(--line)); }
.vs-row--link:active { transform: scale(0.99); }
.vs-row--link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-row__chevron { flex-shrink: 0; width: 18px; height: 18px; color: var(--ink-muted); }
.vs-row--link:hover .vs-row__chevron { color: var(--action-ink); }
.vs-row__date { width: 40px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; margin-block: -5px; }
.vs-row__dow { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.vs-row__day { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 32px; line-height: 0.9; }
/* Месяц строчными под числом; поля даты -5 px возвращают строке прежние 66 px. */
.vs-row__mon { font-size: 11px; line-height: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-muted); }
.vs-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vs-row__title { font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.vs-row__value { flex: 0 1 auto; min-width: 0; max-width: 45%; margin-left: auto; font-size: 15px; line-height: 20px; color: var(--ink-soft); text-align: right; overflow-wrap: break-word; }
/* Со значением справа переносится оно, а не название. */
.vs-row--value > .vs-row__main { flex: 1 0 auto; max-width: 60%; }
.vs-row__meta { font-size: 13px; line-height: 20px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-row__meta--wrap { white-space: normal; overflow-wrap: break-word; }
/* Минуты тренировки в строке (Progress.dc.html). */
.vs-row__total { flex-shrink: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 1; white-space: nowrap; }
/* Название команды (Teams.dc.html) — вместе с vs-row__title: от него перенос до двух строк. */
.vs-row__name { font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 24px; line-height: 1; text-transform: uppercase; }
.vs-row--video { gap: 14px; min-height: 76px; padding: 12px 14px; }
.vs-row--video > .vs-ico { flex-shrink: 0; width: 40px; height: 40px; color: var(--action-ink); }
.vs-row--video .vs-row__main { gap: 4px; }
.vs-row__video { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 22px; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--action); text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* Панель обрезает выступающее — кольцо фокуса строки внутри. */
.vs-list > li + li { border-top: 1px solid var(--line-soft); }
.vs-list .vs-row { min-height: 76px; padding: 10px 14px; border: 0; }
.vs-list .vs-row--link:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
/* Ссылки панели без полосы (Settings.dc.html). */
.vs-list--sm .vs-row { min-height: 46px; padding: 6px 14px; }
/* Упражнения в панели вида (TrainingNew.dc.html). */
.vs-list--md .vs-row { min-height: 56px; padding: 8px 14px; }
.vs-list--drills .vs-row { min-height: 64px; padding: 8px 14px; gap: 10px; }
/* Способы входа (Settings.dc.html). */
.vs-list--md .vs-list__item { flex-wrap: wrap; row-gap: 4px; min-height: 56px; padding: 6px 14px; }
.vs-list--md .vs-list__end { display: flex; flex-shrink: 0; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
/* На 320 px рядом со статусом и кнопкой подписи осталось бы ≈70 px; у всех строк разом, чтобы ряд не скакал. */
@media (max-width: 374px) {
  .vs-list--md .vs-list__end { flex-basis: 100%; }
}
/* Шаги инструкции: номер — как в Login.dc.html. */
.vs-howto { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; list-style: decimal; color: var(--ink-soft); }
.vs-howto > li::marker { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 20px; color: var(--action); }
/* Шаги строками панели, когда в шаге поле (Login.dc.html): номер в своей колонке. */
.vs-howto--rows { padding: 0; gap: 0; list-style: none; counter-reset: vs-step; color: var(--ink); }
.vs-howto--rows > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; padding: 14px; counter-increment: vs-step; }
.vs-howto--rows > li + li { border-top: 1px solid var(--line-soft); }
.vs-howto--rows > li::before { content: counter(vs-step); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 28px; line-height: 22px; color: var(--action); }
/* Шаг с полем: подпись — в ряд с номером, ячейки и подсказки — во всю строку, как в Login.dc.html. */
.vs-howto--rows > .vs-howto__field { row-gap: 8px; }
.vs-howto__field > .vs-field { display: contents; }
.vs-howto__field > *, .vs-howto__field > .vs-field > * { grid-column: 1 / -1; }
.vs-howto__field > :first-child, .vs-howto__field > .vs-field > .vs-field__label { grid-column: 2; align-self: center; }
.vs-howto--steps { padding: 4px 14px 6px; }
.vs-howto--steps > li { grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding: 10px 0; }
.vs-howto--steps > li::before { font-size: 26px; line-height: 20px; }
.vs-howto--play > li { color: var(--ink-soft); }
.vs-howto--play > li::before { color: var(--ink-muted); }
.vs-howto--play > li[aria-current="step"] { color: var(--ink); font-weight: 700; }
.vs-howto--play > li[aria-current="step"]::before { color: var(--action); }
/* Уже 360 px рядом с меткой и стрелкой названию остаётся ≈70 px: «Тренировка» обрезалась бы до «Тренир…». */
@media (max-width: 359px) {
  .vs-row--link:has(> .vs-chip) { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; row-gap: 6px; }
  .vs-row--link:has(> .vs-chip) > .vs-row__date { grid-row: 1 / span 2; }
  .vs-row--link:has(> .vs-chip) > .vs-row__chevron { grid-column: 3; grid-row: 1 / span 2; }
  .vs-row--link:has(> .vs-chip) > .vs-chip { grid-column: 2; grid-row: 2; justify-self: start; }
}

/* Кнопки. Полоса — слой фона, а не тень: теней в системе нет. Длинная подпись переносится — обрезанное действие не прочесть. */
.vs-btn { --btn-fill: linear-gradient(var(--raised), var(--raised)); --btn-stripe: currentColor; position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 0; max-width: 100%; min-height: var(--size-control); padding: 0 24px calc(var(--stripe) + var(--stripe-gap)); margin: 0; border: 0; border-radius: 0; transform: skewX(var(--skew)); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 24px; line-height: 1; text-transform: uppercase; text-align: center; white-space: normal; overflow-wrap: break-word; text-wrap: balance; color: var(--ink); background: linear-gradient(var(--btn-stripe), var(--btn-stripe)) left bottom / 100% var(--stripe) no-repeat, var(--btn-fill) left top / 100% calc(100% - var(--stripe) - var(--stripe-gap)) no-repeat; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast); }
.vs-btn > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; transform: skewX(calc(var(--skew) * -1)); }
.vs-btn:hover { filter: brightness(1.08); }
.vs-btn:active:not(:disabled, [aria-disabled="true"], :has(> input:disabled)) { transform: skewX(var(--skew)) scale(0.98); }
.vs-btn:focus-visible, .vs-btn:has(> input:focus-visible) { outline: none; box-shadow: var(--focus-ring); }
.vs-btn--primary { --btn-fill: var(--gradient-action); --btn-stripe: var(--action); color: var(--on-action); box-shadow: none; }
.vs-btn--danger { color: var(--danger-ink); }
/* Кнопка входа VK ID: цвета, логотип и его место заданы правилами VK, токены темы не применяются. */
.vs-btn--vk { --btn-fill: linear-gradient(#0077ff, #0077ff); --btn-stripe: #0077ff; color: #ffffff; }
.vs-btn--vk:hover { filter: none; }
.vs-btn--vk:hover:not(:disabled) { --btn-fill: linear-gradient(#0071f2, #0071f2); --btn-stripe: #0071f2; }
.vs-btn--vk:active:not(:disabled) { --btn-fill: linear-gradient(#0069e1, #0069e1); --btn-stripe: #0069e1; }
.vs-btn--vk > span { white-space: nowrap; }
.vs-btn__vk { flex: none; width: 28px; height: 28px; }
.vs-btn__vk-bg { fill: #ffffff; }
.vs-btn__vk-mark { fill: #0077ff; }
/* Кнопки входа Яндекс ID и Telegram: цвета и знак — провайдеров (SDK Яндекс ID, Telegram Login), форма — системы. */
.vs-btn--yandex { --btn-fill: linear-gradient(var(--yandex), var(--yandex)); --btn-stripe: var(--yandex); --btn-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%2244 16 24 24%22%3E%3Crect x=%2244%22 y=%2216%22 width=%2224%22 height=%2224%22 rx=%2212%22 fill=%22%23FC3F1D%22/%3E%3Cpath d=%22M57.6912 35.212H60.1982V20.812H56.5516C52.8843 20.812 50.9574 22.6975 50.9574 25.4739C50.9574 27.6909 52.0141 28.9962 53.8995 30.3429L50.6259 35.212H53.3401L56.9867 29.7628L55.7228 28.9133C54.1896 27.8773 53.4437 27.0693 53.4437 25.3288C53.4437 23.7956 54.5211 22.7596 56.5723 22.7596H57.6912V35.212Z%22 fill=%22white%22/%3E%3C/svg%3E"); color: var(--on-yandex); }
.vs-btn--yandex:hover:not(:disabled), .vs-btn--yandex:active:not(:disabled) { --btn-fill: linear-gradient(var(--yandex-hover), var(--yandex-hover)); --btn-stripe: var(--yandex-hover); }
.vs-btn--telegram { --btn-fill: linear-gradient(var(--telegram), var(--telegram)); --btn-stripe: var(--telegram); --btn-mark: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 22 22%22%3E%3Cpath d=%22M2.81376 10.5943C7.36914 8.61002 10.406 7.30175 11.9245 6.66971C16.265 4.86489 17.1658 4.55143 17.7542 4.54094C17.8836 4.53874 18.1716 4.57072 18.3596 4.72281C18.5158 4.85097 18.5598 5.0243 18.5818 5.14588C18.6013 5.26745 18.6282 5.54454 18.6062 5.76083C18.3719 8.23138 17.3539 14.2266 16.8363 16.9938C16.619 18.1647 16.1869 18.5572 15.7695 18.5955C14.8613 18.679 14.1728 17.996 13.294 17.42C11.9196 16.5185 11.1433 15.9575 9.80793 15.0779C8.26505 14.0613 9.26594 13.5025 10.1448 12.5895C10.3743 12.3505 14.373 8.71426 14.4487 8.38445C14.4585 8.34319 14.4683 8.18939 14.3755 8.10834C14.2852 8.02705 14.1508 8.05488 14.0532 8.07685C13.914 8.1081 11.7193 9.56015 7.4618 12.4328C6.83928 12.861 6.27536 13.0697 5.76758 13.0587C5.21097 13.0468 4.13689 12.7433 3.3386 12.484C2.3621 12.166 1.5833 11.9977 1.65166 11.4575C1.68583 11.1763 2.07406 10.8884 2.81376 10.5943Z%22 fill=%22white%22/%3E%3C/svg%3E"); color: var(--on-telegram); }
.vs-btn--telegram:hover:not(:disabled), .vs-btn--telegram:active:not(:disabled) { --btn-fill: linear-gradient(var(--telegram-hover), var(--telegram-hover)); --btn-stripe: var(--telegram-hover); }
.vs-btn--yandex:hover, .vs-btn--telegram:hover { filter: none; }
.vs-btn__mark { flex: none; width: 24px; height: 24px; background: var(--btn-mark) center / contain no-repeat; }
.vs-btn--sm { min-height: var(--size-touch); padding: 0 16px calc(var(--stripe) + var(--stripe-gap)); font-size: 18px; }
/* Правила VK: при высоте меньше 40 px логотип 24 px — у малой заливка 39 px. */
.vs-btn--sm .vs-btn__vk { width: 24px; height: 24px; }
.vs-btn--md { min-height: calc(var(--size-touch) + var(--stripe) + var(--stripe-gap)); padding: 0 18px calc(var(--stripe) + var(--stripe-gap)); font-size: 20px; }
.vs-btn--md .vs-ico { width: 20px; height: 20px; }
.vs-btn--icon { width: var(--size-control); padding-inline: 0; }
.vs-btn--sm.vs-btn--icon { width: var(--size-touch); }
.vs-btn--block { display: flex; width: calc(100% - 2 * var(--skew-inset)); margin-inline: var(--skew-inset); }
/* Отдельные кнопки по ширине подписи: поля на вынос наклона, как у блочной, — угол не выходит за край содержимого. */
.vs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-inline: var(--skew-inset); }
.vs-btn:disabled, .vs-btn[aria-disabled="true"], .vs-btn:has(> input:disabled) { opacity: 0.4; box-shadow: none; filter: none; cursor: not-allowed; }
.vs-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: var(--size-touch); height: var(--size-touch); border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink); cursor: pointer; }
.vs-iconbtn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: vs-spin 0.8s linear infinite; }

/* Ответ на событие: поля ряда — вынос наклона крайних кнопок. */
.vs-rsvp { display: flex; gap: 10px; padding-inline: var(--skew-inset); }
.vs-rsvp .vs-btn { flex: 1.2 1 0; min-width: 0; padding-inline: 8px; font-size: 26px; }
.vs-rsvp .vs-btn--primary { flex: 1.4 1 0; }
.vs-rsvp .vs-btn--icon { flex: 0 0 var(--size-control); padding-inline: 0; }
/* Порог подобран так, чтобы «Не приду» в билете главной шла в одну строку. */
@media (max-width: 389px) {
  .vs-rsvp .vs-btn { font-size: 22px; }
}
.vs-rsvp-done { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: var(--size-control); padding: 0 4px; }
.vs-rsvp-done > .vs-chip { flex: 1; min-width: 0; justify-content: center; height: var(--size-touch); padding: 0 8px; margin: 0; font-size: 16px; letter-spacing: 0; }
.vs-rsvp-done > .vs-btn { flex: none; }
/* Иначе «Под вопросом» 16 px с «Изменить» на 320 px не помещается в строку. */
@media (max-width: 359px) {
  .vs-rsvp-done { gap: 6px 8px; }
  .vs-rsvp-done > .vs-chip { padding: 0 6px; }
  .vs-rsvp-done > .vs-btn { padding-inline: 10px; }
}
.vs-rsvp-done__label { flex-basis: 100%; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.vs-rsvp-done__note { flex-basis: 100%; font-size: 14px; line-height: 18px; color: var(--ink-muted); }
/* Только строка после ответа: ряд кнопок макет рисует без рамки (Matchup.dc.html). */
.vs-rsvp-box > .vs-rsvp-done { min-height: 68px; padding: 10px 12px 10px 18px; border: 1px solid var(--line); background: var(--panel-solid); }
.vs-rsvp-box:empty { display: none; }
/* Уже 375 px размеры макета не помещаются в одну строку. */
@media (max-width: 374px) {
  .vs-rsvp-box > .vs-rsvp-done { padding-left: 12px; }
}

/* Вкладки: наклон без полосы. Поля ряда — вынос наклона и место для кольца фокуса. */
.vs-tabs { display: flex; gap: 8px; padding: 5px var(--skew-inset); margin-block: -5px; overflow-x: auto; scrollbar-width: none; }
.vs-tab { position: relative; flex-shrink: 0; height: var(--size-tab); padding: 0 14px; border: 1px solid var(--line); border-radius: 0; transform: skewX(var(--skew)); background: var(--panel-solid); color: var(--ink-soft); font-family: var(--font-text); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base); }
.vs-tab > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
/* Зона касания 44 px: отступ ::after считается внутри рамки 1 px. */
.vs-tab::after { content: ""; position: absolute; inset: -3px 0; }
.vs-tab[aria-selected="true"] { border-color: transparent; background: var(--tab-selected); color: var(--on-tab-selected); }
.vs-tab[aria-pressed="true"] { border-color: transparent; background: var(--tab-selected); color: var(--on-tab-selected); }
.vs-tab[aria-current="page"] { border-color: transparent; background: var(--tab-selected); color: var(--on-tab-selected); }
.vs-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Выбор одного в форме (зона броска, что записать): тот же ряд на нативных радио — стрелки и пробел даёт браузер. */
label.vs-tab { display: inline-flex; align-items: center; }
a.vs-tab { display: inline-flex; align-items: center; text-decoration: none; }
.vs-tab:has(> input:checked) { border-color: transparent; background: var(--tab-selected); color: var(--on-tab-selected); }
.vs-tab:has(> input:focus-visible) { box-shadow: var(--focus-ring); }
/* Подписи не сокращаем: «Тренировка · Состав · Ответы 14/14» иначе не помещается в ряд уже 440 px. */
@media (max-width: 439px) {
  .vs-tabs { gap: 6px; }
  .vs-tab { padding: 0 8px; letter-spacing: 0.06em; }
}
@media (max-width: 374px) {
  .vs-tabs { gap: 4px; }
  .vs-tab { padding: 0 6px; font-size: 11px; letter-spacing: 0.02em; }
}
/* «Зона броска» (Progress.dc.html): четыре вкладки с «Трёхочковыми» на 320 px в ряд не помещаются. */
.vs-tabs--wrap { flex-wrap: wrap; row-gap: 8px; overflow: visible; }
.vs-tabs--wrap .vs-tab { padding: 0 8px; font-size: 11px; letter-spacing: 0.04em; }
/* Пять разделов не листаются, а переносятся: раздел за краем ряда не найти. */
.vs-tabs--dense { flex-wrap: wrap; gap: 8px 4px; padding-inline: 4px 0; overflow: visible; }
.vs-tabs--dense .vs-tab { padding: 0 6px; font-size: 11px; letter-spacing: 0.02em; }
@media (max-width: 389px) {
  .vs-tabs--dense .vs-tab { padding: 0 5px; letter-spacing: 0; }
}
.vs-tabpanel:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Поля — вынос наклона крайних дней. Зона касания добирает половины зазоров: семь дней на 320 px дают только 40 px. */
.vs-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding-inline: var(--skew-inset); }
.vs-days .vs-tab { padding: 0; }
.vs-days .vs-tab::after { inset: -3px -4px; }

/* Нижнее меню — капсула. Подложка одна на меню. */
.vs-tabbar { --tabbar-item: 48px; --tabbar-gap: 16px; --tabbar-pad: calc((var(--size-nav) - 2px - var(--tabbar-item)) / 2); --tabbar-step: calc(var(--tabbar-item) + var(--tabbar-gap)); position: relative; display: flex; align-items: center; gap: var(--tabbar-gap); width: max-content; height: var(--size-nav); padding: 0 var(--tabbar-pad); border: 1px solid var(--glass-line); border-radius: var(--radius-full); background: var(--panel-header); }
/* Стекло — после сплошного фона: иначе тот перекрыл бы его. brightness() держит контраст значков над светлым содержимым. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .vs-tabbar { background: var(--glass-nav); -webkit-backdrop-filter: blur(var(--blur-nav)) saturate(150%) brightness(0.7); backdrop-filter: blur(var(--blur-nav)) saturate(150%) brightness(0.7); }
}
@media (prefers-reduced-transparency: reduce) {
  .vs-tabbar { background: var(--panel-header); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Края подложки — от номера пункта (--vs-before и --vs-after ставит TabBar): каждый край едет своей кривой.
   Капсула подложку не обрезает: у крайнего пункта пружина выносит её за край. */
.vs-tabbar__pill { position: absolute; top: 0; bottom: 0; left: calc(var(--tabbar-pad) + var(--vs-before, 0) * var(--tabbar-step)); right: calc(var(--tabbar-pad) + var(--vs-after, 0) * var(--tabbar-step)); height: var(--tabbar-item); margin: auto 0; border-radius: var(--radius-full); background: var(--action); }
.vs-tabbar__item { position: relative; display: grid; flex-shrink: 0; place-items: center; width: var(--tabbar-item); height: var(--tabbar-item); border: 0; border-radius: var(--radius-full); background: transparent; color: var(--on-glass); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Зона касания добирает половины зазоров: промах между значками — тоже нажатие. */
.vs-tabbar__item::after { content: ""; position: absolute; inset: calc(-1 * var(--tabbar-pad)) calc(var(--tabbar-gap) / -2); }
.vs-tabbar__item .vs-ico { width: 26px; height: 26px; }
.vs-tabbar__item[aria-current="page"] { color: var(--on-action); }
.vs-tabbar__item[aria-current="page"] .vs-ico { transform: scale(1.12); }
.vs-tabbar__item:focus-visible { outline: none; box-shadow: inset var(--focus-ring); }

/* Шапка экрана */
.vs-topbar { display: grid; grid-template-columns: var(--size-touch) 1fr var(--size-touch); align-items: center; min-height: 48px; }
.vs-topbar__title { text-align: center; font-size: 14px; line-height: 18px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.vs-topbar__sub { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.vs-topbar--action { grid-template-columns: var(--size-touch) minmax(0, 1fr) auto; column-gap: 8px; }

/* Колокольчик главной (Bell): слева от аватара, 44×44; число новых — метка в углу, ноль — без метки. */
.vs-bell { position: relative; display: grid; place-items: center; width: var(--size-touch); height: var(--size-touch); border-radius: var(--radius-full); color: var(--ink); text-decoration: none; }
.vs-bell:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Обводка цвета фона отделяет метку от значка: теней в системе нет. */
.vs-bell__count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border: 2px solid var(--bg); border-radius: var(--radius-full); background: var(--action); color: var(--on-action); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 14px; line-height: 16px; text-align: center; white-space: nowrap; }

/* Список уведомлений (Inbox): строки панели — значок вида, текст, команда и время; новые — подложка, точка и жирный текст. */
.vs-inbox .vs-row { align-items: flex-start; gap: 12px; min-height: 0; padding: 12px 14px; }
.vs-inbox__ico { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; color: var(--ink-muted); }
.vs-inbox__text { font-size: 15px; line-height: 20px; overflow-wrap: break-word; }
.vs-inbox__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: break-word; }
.vs-inbox__dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 6px; border-radius: var(--radius-full); background: var(--action); }
.vs-row--new { background: var(--panel-header); }
.vs-row--new .vs-inbox__ico { color: var(--action-ink); }
.vs-row--new .vs-inbox__text { font-weight: 700; }

/* Чат с ИИ-помощником (Chat): одна колонка по центру; ответы слева, сообщения человека справа на подложке «я».
   Низ — как в привычных чатах (основатель 04.11): подсказки-«пилюли» и поле-«пилюля» с круглой кнопкой, без наклона. */
.vs-chat { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: var(--size-chat); margin: 0 auto; padding: 0; list-style: none; }
.vs-chat__msg { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: min(88%, 560px); }
.vs-chat__msg--mine { align-self: flex-end; align-items: flex-end; }
.vs-chat__text { margin: 0; padding: 10px 14px; border: 1px solid var(--line); background: var(--panel-solid); font-size: 15px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vs-chat__msg--mine .vs-chat__text { background: var(--panel-header); }
.vs-chat__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-chat__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--size-touch); padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--raised); color: var(--ink); font: 700 15px/20px var(--font-text); text-align: center; text-decoration: none; cursor: pointer; }
.vs-chat__btn--primary { border-color: var(--action); background: var(--action); color: var(--on-action); }
.vs-chat__btn:hover:not(:disabled) { filter: brightness(1.08); }
.vs-chat__btn:disabled { opacity: 0.5; cursor: default; }
.vs-chat__btn:focus-visible, .vs-chat__prompt:focus-visible, .vs-chat__send:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-chat__composer { position: sticky; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: var(--size-chat); margin-inline: auto; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: var(--bg); }
/* Подсказки — в одну строку с прокруткой до краёв экрана (поля экрана 16 px); на широком переносятся: мышью ряд не пролистать. */
.vs-chat__prompts { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; list-style: none; scroll-padding-inline: 16px; scrollbar-width: none; }
.vs-chat__prompts::-webkit-scrollbar { display: none; }
.vs-chat__prompt { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: var(--size-touch); padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-full); background: var(--panel-solid); color: var(--ink); font: 600 15px/20px var(--font-text); white-space: nowrap; cursor: pointer; }
.vs-chat__prompt .vs-ico { width: 20px; height: 20px; color: var(--action-ink); }
.vs-chat__prompt:hover:not([aria-disabled="true"]) { border-color: var(--action); }
/* Пока ответ готовится — недоступна, но в фокусе: aria-disabled, а не disabled. */
.vs-chat__prompt[aria-disabled="true"] { opacity: 0.5; cursor: default; }
@media (min-width: 600px) { .vs-chat__prompts { flex-wrap: wrap; margin-inline: 0; padding-inline: 2px; overflow-x: visible; } }
.vs-chat__field { display: flex; align-items: flex-end; gap: 8px; min-height: 48px; padding: 3px 3px 3px 18px; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--panel-solid); transition: border-color var(--dur-fast); }
.vs-chat__field:focus-within { border-color: var(--action); }
/* До пяти строк: 5 × 22 px и поля; дальше поле листается. */
.vs-chat__input { flex: 1; min-width: 0; height: 40px; max-height: 128px; margin: 0; padding: 9px 0; border: 0; background: transparent; color: var(--ink); font: 400 16px/22px var(--font-text); resize: none; outline: none; overflow-y: auto; }
.vs-chat__input::placeholder { color: var(--ink-muted); opacity: 1; }
.vs-chat__send { display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-full); background: var(--action); color: var(--on-action); cursor: pointer; }
.vs-chat__send .vs-ico { width: 22px; height: 22px; }
.vs-chat__send:disabled { background: var(--raised); color: var(--ink-muted); cursor: default; }

/* QR-код (QrCode): модули qr-ink на qr-paper в любой теме, тихая зона в 4 модуля — внутри рисунка; под кодом — название и подсказка. */
.vs-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; text-align: center; }
.vs-qr__code { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--qr-paper); color: var(--qr-ink); shape-rendering: crispEdges; }
.vs-qr__name { margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 32px; line-height: 0.9; text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.vs-qr__hint { margin: 0; max-width: 34em; font-size: 15px; line-height: 21px; color: var(--ink-soft); }

/* Справка (/faq): вопрос — строка-кнопка, ответ раскрывается под ней. */
.vs-faq__toggle[aria-expanded="true"] .vs-row__chevron { transform: rotate(90deg); }
.vs-faq__answer { margin: 0; padding: var(--space-1) 14px 14px; color: var(--ink-soft); font-size: 15px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Цифры */
.vs-stats { display: grid; grid-template-columns: repeat(var(--vs-cols, 3), minmax(0, 1fr)); gap: 8px; }
.vs-stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--radius-xs); background: var(--tile); }
.vs-stat__value { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 36px; line-height: 1; color: var(--ink); }
.vs-stat__value--positive { color: var(--positive); }
.vs-stat__value--streak { color: var(--streak); }
.vs-stat__value--maybe { color: var(--maybe-ink); }
.vs-stat__value--action { color: var(--action-ink); }
.vs-stat__label { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.vs-statrow { display: grid; grid-template-columns: repeat(var(--vs-cols, 4), minmax(0, 1fr)); }
.vs-statrow > div { display: flex; flex-direction: column; align-items: center; padding: 10px 0; }
.vs-statrow > div + div { border-left: 1px solid var(--line); }
.vs-statrow .vs-stat__value { font-size: 32px; }

/* Метки ответа и типа события */
.vs-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; margin: 0 3px; border-radius: 0; transform: skewX(var(--skew)); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; background: var(--raised); color: var(--ink-soft); }
.vs-chip > span { display: inline-flex; align-items: center; gap: 6px; transform: skewX(calc(var(--skew) * -1)); }
.vs-chip .vs-ico { width: 14px; height: 14px; }
/* «Иду» и «Идёт» у матча лиги с живым счётом: вид один, смысл разный. */
.vs-chip--going, .vs-chip--action { background: var(--gradient-action); color: var(--on-action); }
.vs-chip--late { background: transparent; border: 1px solid var(--action); color: var(--action-hi); }
.vs-chip--maybe { background: var(--maybe-bg); color: var(--maybe-ink); }
.vs-chip--notgoing { background: var(--indigo); color: var(--ink); }
.vs-chip--noanswer { background: transparent; border: 1px dashed var(--ink-muted); color: var(--ink-soft); }
.vs-chip--waitlist { background: var(--waitlist-bg); color: var(--waitlist-ink); }
.vs-chip--kind { padding: 0 12px; font-size: 12px; background: var(--action); color: var(--on-action); }
.vs-chip--cancelled { background: var(--indigo); color: var(--ink); }
/* Вид тренировки в строке (Progress.dc.html). */
.vs-chip--workout { height: 26px; padding: 0 9px; letter-spacing: 0.1em; background: var(--indigo); color: var(--ink); }
/* «Нужно ещё N» — прямой пунктир: это подсказка, а не метка. */
.vs-need { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px dashed var(--action); color: var(--action-hi); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

/* Кольцо явки, расшифровка, сегменты */
.vs-ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; container-type: inline-size; }
.vs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.vs-ring__track { fill: none; stroke: var(--raised); stroke-width: 8; }
.vs-ring__value { fill: none; stroke: var(--action); stroke-width: 8; transition: stroke-dasharray var(--dur-slow) var(--ease-out); }
/* Цифра ≈0,44 em: подпись длиной --ring-chars не шире 64 % кольца, иначе «98/120» ложится на дугу. */
.vs-ring__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: min(31.25cqi, calc(64cqi / (var(--ring-chars, 4) * 0.44))); }
.vs-attend { display: flex; align-items: center; gap: 18px; }
.vs-tally { flex-grow: 1; display: grid; grid-template-columns: 1fr auto; row-gap: 8px; margin: 0; max-width: 260px; line-height: 20px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.vs-tally__value { margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 24px; line-height: 18px; letter-spacing: 0; color: var(--ink); }
.vs-tally__value--going { color: var(--action-ink); }
.vs-tally__value--maybe { color: var(--paper); }
.vs-tally__label--none, .vs-tally__value--none { color: var(--ink-muted); }
.vs-segments { display: grid; grid-template-columns: repeat(var(--vs-segs, 10), minmax(0, 1fr)); gap: 3px; }
.vs-segments > i { height: 8px; background: var(--raised); }
.vs-segments > i.is-on { background: var(--gradient-action); }

/* Аватары */
.vs-avatar { --vs-img: initial; width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-sm); background-color: var(--indigo); background-image: var(--vs-img, none); background-size: cover; background-position: center; color: var(--ink); font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 17px; line-height: 1; }
.vs-avatar--sm { width: 32px; height: 32px; font-size: 14px; }
.vs-avatar--lg { width: 64px; height: 64px; font-size: 26px; }
.vs-avatar--me { width: 42px; height: 42px; border: 2px solid var(--action); background-color: var(--panel-header); font-size: 18px; }

/* Карточка игрока: щит с рамкой редкости */
.vs-pcard { --frame: var(--gradient-gold); --accent: var(--rarity-gold); position: relative; width: 236px; height: 332px; flex-shrink: 0; }
.vs-pcard--bronze { --frame: var(--gradient-bronze); --accent: var(--rarity-bronze); }
.vs-pcard--silver { --frame: var(--gradient-silver); --accent: var(--rarity-silver); }
.vs-pcard--diamond { --frame: var(--gradient-diamond); --accent: var(--rarity-diamond-a); }
.vs-pcard__frame { position: absolute; inset: 0; padding: 4px; background: var(--frame); clip-path: polygon(50% 0, 100% 7%, 100% 86%, 50% 100%, 0 86%, 0 7%); }
.vs-pcard__inner { position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; padding: 26px 18px 0; background: var(--gradient-card); color: var(--card-ink); clip-path: polygon(50% 0, 100% 7%, 100% 86%, 50% 100%, 0 86%, 0 7%); }
.vs-pcard__inner::after { content: ""; position: absolute; inset: 0; background: var(--gradient-sheen); transform: translateX(-90%); animation: vs-sheen 5s var(--ease-out) infinite; pointer-events: none; }
.vs-pcard__top { display: flex; justify-content: space-between; height: 128px; }
.vs-pcard__ovr { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 4px; }
.vs-pcard__ovr b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 58px; line-height: 0.85; }
.vs-pcard__pos { font-size: 15px; font-weight: 800; letter-spacing: 0.06em; }
.vs-pcard__num { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 20px; color: var(--accent); }
.vs-pcard__photo { width: 128px; height: 128px; object-fit: cover; }
.vs-pcard__name { margin-top: 6px; text-align: center; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 32px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.vs-pcard__rule { height: 1px; margin: 6px 0 8px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.vs-pcard__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 2px; padding: 0 8px; }
.vs-pcard__stats span { display: flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 700; color: var(--card-ink-muted); }
.vs-pcard__stats b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 21px; color: var(--card-ink); }

/* Мини-карточка в составе */
.vs-mcard { --frame: var(--gradient-gold); --accent: var(--rarity-gold); height: 92px; padding: 2px; background: var(--frame); clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%); }
.vs-mcard--bronze { --frame: var(--gradient-bronze); --accent: var(--rarity-bronze); }
.vs-mcard--silver { --frame: var(--gradient-silver); --accent: var(--rarity-silver); }
.vs-mcard--diamond { --frame: var(--gradient-diamond); --accent: var(--rarity-diamond-a); }
.vs-mcard__inner { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 5px; background: var(--gradient-card); color: var(--card-ink); clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%); }
.vs-mcard__ovr { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 20px; line-height: 1; }
.vs-mcard__pos { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--accent); }
.vs-mcard .vs-avatar { width: 28px; height: 28px; font-size: 11px; border: 0; color: var(--card-ink); }
.vs-slot { height: 84px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-xs); background: transparent; color: var(--ink-muted); cursor: pointer; }
.vs-lineup { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }

/* Награда-шестиугольник (Achievements.dc.html). Знак — вложенный svg: размер шестиугольника — классом, не по тегу. */
.vs-award { --c: var(--rarity-gold); display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); text-align: center; }
.vs-award__badge { width: 56px; height: 56px; flex-shrink: 0; overflow: visible; }
.vs-award__hex { fill: color-mix(in srgb, var(--c) 20%, var(--card-ground)); stroke: var(--c); stroke-width: 2.5; stroke-linejoin: round; }
.vs-award__glyph { color: var(--c); stroke-width: 1.5; }
.vs-award__name { font-size: 13px; line-height: 16px; font-weight: 700; }
.vs-award__tier { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); }
.vs-award__bar { position: relative; align-self: stretch; height: 4px; margin: 6px 4px 0; background: var(--raised); }
.vs-award__bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--award-progress, 0%); background: var(--paper); }
.vs-award--bronze { --c: var(--rarity-bronze); }
.vs-award--silver { --c: var(--rarity-silver); }
.vs-award--diamond { --c: var(--rarity-diamond-b); }
.vs-award--locked { --c: var(--line-strong); }
.vs-award--locked .vs-award__name { color: var(--ink-soft); }
.vs-award--locked .vs-award__tier { color: var(--ink-muted); }
.vs-award__gold { fill: var(--rarity-gold); }
.vs-award--locked .vs-award__gold { fill: var(--c); }
/* Размеры по артбордам: 64 — сетка Achievements, 112 — лист, 200 — момент; на 112 и 200 только шестиугольник. */
.vs-award--md .vs-award__badge { width: 64px; height: 64px; }
.vs-award--md .vs-award__name { margin-top: 2px; font-size: 14px; line-height: 18px; }
.vs-award--lg .vs-award__badge { width: 112px; height: 112px; }
.vs-award--lg .vs-award__hex { stroke-width: 2; }
.vs-award--lg .vs-award__glyph { stroke-width: 1.3; }
.vs-award--xl .vs-award__badge { width: 200px; height: 200px; }
.vs-award--xl .vs-award__hex { stroke-width: 1.6; }
.vs-award--xl .vs-award__glyph { stroke-width: 1.1; }
/* Ряд значков в панели (Progress.dc.html, ProgressEmpty.dc.html). */
.vs-awards { display: grid; grid-template-columns: repeat(var(--vs-cols, 4), minmax(0, 1fr)); gap: 6px; margin: 0; padding: 14px 8px; list-style: none; }
.vs-awards:has(+ .vs-panel__caption) { padding-bottom: 8px; }
/* Цвет уровня для текста и знаков рядом со значком; у закрытого текст светлее линии. */
.vs-tier--bronze { --c: var(--rarity-bronze); }
.vs-tier--silver { --c: var(--rarity-silver); }
.vs-tier--gold { --c: var(--rarity-gold); }
.vs-tier--legend { --c: var(--rarity-diamond-b); }
.vs-tier--locked { --c: var(--line-strong); --c-ink: var(--ink-muted); }
/* Все достижения (Achievements.dc.html). */
.vs-awardsum { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.vs-awardsum__count { display: flex; align-items: flex-end; gap: 12px; margin: 0; }
.vs-awardsum__n { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 76px; line-height: 0.8; color: var(--action-ink); }
.vs-awardsum__label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.vs-awardsum__of { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 0.9; letter-spacing: 0; color: var(--ink); }
.vs-awardsum__tiers { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.vs-awardsum__tiers > div { display: flex; gap: 6px; }
.vs-awardsum__tiers dt { color: var(--c); }
.vs-awardsum__tiers dd { margin: 0; }
.vs-awards--grid { --vs-cols: 3; gap: 8px; padding: 12px; }
.vs-awards__card { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; padding: 12px 6px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--tile); color: var(--ink); font: inherit; text-align: center; cursor: pointer; }
.vs-awards__card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-awards__prog { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
/* Лист достижения (AchievementSheet.dc.html). */
.vs-sheet--award .vs-sheet__handle { margin-bottom: 10px; }
.vs-sheet--award .vs-sheet__title { margin: 10px 0 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 48px; line-height: 0.85; text-transform: uppercase; text-align: center; }
.vs-awardsheet__tier { margin: 6px 0 0; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; color: var(--c-ink, var(--c)); }
.vs-awardsheet__cond { margin: 8px 0 0; font-size: 15px; line-height: 20px; text-align: center; color: var(--ink-soft); }
.vs-awardsheet__idea { margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-levels { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.vs-level { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 52px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.vs-level:last-child { border-bottom: 0; }
.vs-level--next { padding: 10px 2px 12px; }
.vs-level__hex { width: 24px; height: 24px; flex-shrink: 0; }
.vs-level__hex path { fill: color-mix(in srgb, var(--c) 20%, var(--card-ground)); stroke: var(--c); stroke-width: 5; stroke-linejoin: round; }
.vs-level__text { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.vs-level__name { font-weight: 700; color: var(--c-ink, var(--c)); }
.vs-level__note { font-size: 13px; line-height: 17px; color: var(--ink-soft); }
.vs-level__goal { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 1; color: var(--ink); }
.vs-level--ahead .vs-level__goal { color: var(--ink-muted); }
.vs-level__mark { width: 22px; height: 22px; flex-shrink: 0; color: var(--paper); }
.vs-level__bar { position: relative; flex-basis: 100%; height: 6px; background: var(--raised); }
.vs-level__bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--level-progress, 0%); background: var(--paper); }

/* Схема розыгрыша (Play.dc.html). */
.vs-play { display: block; width: 100%; }
.vs-play__svg { display: block; width: 100%; height: auto; overflow: visible; }
.vs-play__court { fill: none; stroke: color-mix(in srgb, var(--paper) 42%, transparent); stroke-width: 1.5; }
.vs-play__dash { stroke-dasharray: 5 5; }
.vs-play__board { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-linecap: round; }
.vs-play__rim { fill: none; stroke: var(--action); stroke-width: 2.2; }
.vs-play__move { fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vs-play__move--pass .vs-play__path { stroke-dasharray: 6 5; }
.vs-play__moves--past { opacity: 0.45; }
.vs-play__player circle { fill: var(--panel-header); stroke: var(--ink); stroke-width: 2; }
.vs-play__player text { font-family: var(--font-display); font-size: 16px; font-weight: 900; text-anchor: middle; fill: var(--ink); }
.vs-play__ball { fill: var(--action); stroke: var(--tile); stroke-width: 1.5; }
.vs-play__field { padding: 12px 13px 0; background: var(--tile); }
/* На широком экране площадка не крупнее полутора артборда: ряд шагов и текст остаются в окне. */
.vs-play__field > .vs-play { max-width: 495px; margin-inline: auto; }
.vs-play__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 6px; }
.vs-play__count { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 1; text-transform: uppercase; }
.vs-play__count > span { color: var(--ink-muted); }
.vs-play__text { margin: 0; padding: 6px 14px 14px; color: var(--ink-soft); text-align: center; }
.vs-play__legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 0; padding: 12px 14px 14px; list-style: none; font-size: 14px; font-weight: 700; }
.vs-play__legend > li { display: flex; align-items: center; gap: 10px; }
.vs-play__glyph { flex-shrink: 0; width: 40px; height: 22px; overflow: visible; }

/* График точности (Progress.dc.html): x — в долях ширины, y — в пикселях, чтобы подписи не мельчали на 320 px. */
.vs-chart { display: block; width: 100%; }
.vs-chart__svg { display: block; width: 100%; height: 168px; overflow: visible; }
.vs-chart__grid { stroke: var(--line-soft); stroke-width: 1; }
.vs-chart__base { stroke: var(--line); stroke-width: 1.5; }
.vs-chart__axis { font-size: 11px; font-weight: 700; fill: var(--ink-muted); }
.vs-chart__area { fill: color-mix(in srgb, var(--action) 14%, transparent); }
.vs-chart__line { stroke: var(--action); stroke-width: 2.5; stroke-linecap: round; }
.vs-chart__dot { fill: var(--panel-solid); stroke: var(--action); stroke-width: 2; }
.vs-chart__dot--now { fill: var(--action); stroke: none; }
.vs-chart__value { font-size: 12px; font-weight: 800; text-anchor: middle; fill: var(--ink-soft); }
.vs-chart__value--now { font-size: 13px; fill: var(--ink); }
.vs-chart__value--empty { fill: var(--ink-muted); }
.vs-chart__month { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-anchor: middle; fill: var(--ink-muted); }
.vs-chart__month--now { fill: var(--ink); }
/* Число над графиком (Progress.dc.html). */
.vs-figure { display: flex; align-items: flex-end; gap: 12px; }
.vs-figure__value { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 52px; line-height: 0.82; color: var(--action-ink); }
.vs-figure__text { display: flex; flex-direction: column; font-size: 13px; line-height: 17px; color: var(--ink-soft); }
.vs-figure__delta { font-weight: 700; color: var(--positive); }

/* Минуты по видам (Progress.dc.html). */
.vs-bars { display: flex; flex-direction: column; margin: 0; padding: 8px 14px; list-style: none; }
.vs-bars__item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 70px; align-items: center; gap: 10px; min-height: 40px; }
.vs-bars__label { font-size: 15px; line-height: 20px; font-weight: 700; overflow-wrap: anywhere; }
.vs-bars__track { position: relative; height: 8px; background: var(--raised); }
.vs-bars__track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--bars-share, 0%); background: var(--paper); }
.vs-bars__value { font-family: var(--font-display); font-size: 24px; line-height: 1; font-weight: 900; font-style: italic; text-align: right; white-space: nowrap; }
.vs-bars__unit { font-family: var(--font-text); font-size: 12px; font-weight: 700; font-style: normal; color: var(--ink-muted); }

/* Степпер (TrainingNew.dc.html, ExerciseNumbers.dc.html): кнопки — малые иконки системы, поля — вынос их наклона. */
.vs-counter { display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding-inline: var(--skew-inset); }
.vs-counter__value { min-width: 56px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 34px; line-height: 1; text-align: center; }
/* Число можно набрать: сотню бросков кнопкой не нащёлкать. */
input.vs-counter__value { width: 64px; height: var(--size-touch); outline: none; }
input.vs-counter__value:focus-visible { box-shadow: var(--focus-ring); }
.vs-counter__value[aria-invalid="true"] { color: var(--danger-ink); }
/* Строки цифр листа (ExerciseNumbers.dc.html). */
.vs-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.vs-count__text { display: flex; flex-direction: column; min-width: 0; }
.vs-count__name { font-weight: 700; }
.vs-count__hint { font-size: 13px; line-height: 17px; color: var(--ink-muted); }
.vs-count__hint--error { color: var(--danger-ink); }
/* Цифры игры в панели (TrainingGameStats.dc.html). */
.vs-counter--compact { gap: 6px; }
.vs-counter--compact .vs-counter__value { min-width: 40px; }
.vs-count--panel { min-height: 68px; padding-inline: 14px; border-bottom-color: var(--line-soft); }
.vs-count--panel .vs-counter__value { min-width: 48px; }
.vs-count--panel input.vs-counter__value { width: 48px; }
.vs-count-pair { min-width: 0; margin: 0; padding: 12px 14px 14px; border: 0; container-type: inline-size; }
.vs-count-pair__head { float: left; display: flex; align-items: baseline; justify-content: space-between; width: 100%; margin: 0 0 10px; padding: 0; font-weight: 700; }
.vs-count-pair__sum { font-size: 13px; line-height: 17px; font-weight: 400; color: var(--ink-muted); }
.vs-count-pair__cells { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vs-count-pair__cell { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vs-count-pair__label { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 374px) {
  .vs-panel--figures .vs-panel__title { letter-spacing: 0.1em; }
}
@media (max-width: 389px) {
  .vs-count--panel .vs-counter { gap: 6px; }
}
/* Пороги — ширина пары под два степпера: без поля — как на экране 390 px (328), с полем — 2 × 176 + 12. */
@container (max-width: 327.98px) {
  .vs-count-pair__cells { grid-template-columns: minmax(0, 1fr); }
  .vs-count-pair__cell { flex-direction: row; justify-content: space-between; }
}
@container (max-width: 363.98px) {
  .vs-count-pair__cells:has(input) { grid-template-columns: minmax(0, 1fr); }
  .vs-count-pair__cells:has(input) .vs-count-pair__cell { flex-direction: row; justify-content: space-between; }
}
.vs-chip--past { background: var(--indigo); color: var(--ink); }
.vs-attended { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.vs-attended > .vs-ico { width: 20px; height: 20px; color: var(--paper); }
.vs-reserve { min-height: 400px; }
.vs-chip--win { background: var(--paper); color: var(--on-paper); }
/* Протокол игры (ProtocolReview/Manual/Confirmed/MyLine.dc.html). */
.vs-callout { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel-header); }
.vs-callout > .vs-ico { width: 22px; height: 22px; color: var(--paper); }
.vs-callout__text { display: flex; flex-direction: column; min-width: 0; }
.vs-callout__title { font-weight: 800; }
.vs-callout__sub { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.vs-callout__swatch { flex-shrink: 0; width: 22px; height: 22px; border: 2px solid var(--streak); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--streak) 14%, var(--tile)); }
.vs-scoreline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 14px 14px 4px; }
.vs-scoreline__team { min-width: 0; font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 1; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; }
.vs-scoreline__total { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 56px; line-height: 0.9; white-space: nowrap; }
.vs-scoreline__total--empty { color: var(--ink-muted); }
.vs-quarters { display: grid; grid-template-columns: minmax(56px, 1fr) repeat(var(--quarters, 4), minmax(44px, 52px)); align-items: center; gap: 6px; padding: 10px 14px 14px; overflow-x: auto; }
.vs-quarters__head { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.vs-quarters__no { font-size: 12px; line-height: 16px; font-weight: 800; text-align: center; color: var(--ink-soft); }
@media (max-width: 359px) {
  .vs-quarters__head { font-size: 11px; letter-spacing: 0.02em; }
}
.vs-quarters__team { font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1; text-transform: uppercase; }
/* Овертаймы листаются вбок: подписи строк держатся на месте и закрывают уехавшие клетки и поле слева. */
.vs-quarters__head, .vs-quarters__team { position: sticky; left: -14px; z-index: 1; align-self: stretch; display: flex; align-items: center; min-width: 0; margin-left: -14px; padding-left: 14px; background: var(--panel-solid); }
.vs-quarters__team > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vs-cell { display: block; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--tile); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 24px; line-height: 1; text-align: center; outline: none; }
.vs-cell::placeholder { color: var(--ink-muted); opacity: 1; }
.vs-cell--doubt { border: 2px solid var(--streak); background: color-mix(in srgb, var(--streak) 14%, var(--tile)); }
.vs-cell[aria-invalid="true"] { border-color: var(--danger); color: var(--danger-ink); }
.vs-cell:focus { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.vs-cell--doubt:focus { box-shadow: var(--focus-ring); }
.vs-pcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.vs-pcols--head { padding: 8px 14px; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.vs-pcols--head small { font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.vs-pline { padding: 8px 14px 10px; border-top: 1px solid var(--line-soft); }
.vs-pline__head { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.vs-pline__head--missing { min-height: 44px; color: var(--streak); }
.vs-pline__num { min-width: 28px; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; line-height: 1; color: var(--ink-soft); }
.vs-pline__head--missing .vs-pline__num { color: var(--streak); }
.vs-pline__name { flex-grow: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.vs-pline__head--missing .vs-pline__name { white-space: normal; }
.vs-pline__pick { display: flex; flex-grow: 1; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.vs-pline__pick:focus-visible { outline: none; border-radius: var(--radius-sm); box-shadow: var(--focus-ring); }
.vs-pline__pick > .vs-ico { flex-shrink: 0; color: var(--ink-soft); }
.vs-pline__hint { margin: -4px 0 0 38px; font-size: 13px; line-height: 18px; color: var(--streak); }
.vs-pline__cells { margin-top: 6px; }
.vs-pline__free { display: flex; align-items: center; gap: 4px; min-width: 0; }
.vs-pline__free > .vs-cell { flex: 1; }
.vs-pline__slash { flex-shrink: 0; font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--ink-muted); }
.vs-pline__error { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--danger-ink); }
.vs-sumline { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--panel-header); color: var(--ink-soft); }
.vs-sumline > .vs-ico { width: 22px; height: 22px; color: var(--ink-muted); }
.vs-sumline--ok { font-weight: 700; color: var(--ink); }
.vs-sumline--ok > .vs-ico { color: var(--paper); }
.vs-sumline--bad { font-weight: 700; color: var(--danger-ink); }
.vs-sumline--bad > .vs-ico { color: var(--danger-ink); }
.vs-keynote { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.vs-fineprint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-panel__note.vs-keynote { padding: 10px 14px; }
.vs-qtable { width: 100%; border-collapse: collapse; }
.vs-qtable thead th { width: 38px; height: 34px; padding: 0; font-size: 12px; line-height: 16px; font-weight: 800; color: var(--ink-soft); }
.vs-qtable thead th:first-child { width: auto; padding-left: 14px; text-align: left; letter-spacing: 0.14em; text-transform: uppercase; }
.vs-qtable thead th:last-child { width: 60px; padding-right: 14px; text-align: right; letter-spacing: 0.14em; text-transform: uppercase; }
.vs-qtable tbody th { height: 42px; padding: 0 0 0 14px; text-align: left; font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1; text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; border-top: 1px solid var(--line-soft); }
.vs-qtable td { padding: 0; text-align: center; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 20px; border-top: 1px solid var(--line-soft); }
.vs-qtable td:last-child { padding-right: 14px; text-align: right; font-size: 28px; }
.vs-qtable__ours { color: var(--action-ink); }
.vs-ptable { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: 1px solid var(--line); }
.vs-ptable :is(th, td) { padding: 0; text-align: center; }
.vs-ptable :is(th, td):first-child { width: 44px; padding-left: 14px; text-align: left; }
.vs-ptable :is(th, td):nth-child(2) { padding-right: 6px; text-align: left; }
.vs-ptable :is(th, td):nth-child(3) { width: 40px; }
.vs-ptable :is(th, td):nth-child(4) { width: 34px; }
.vs-ptable :is(th, td):nth-child(5) { width: 52px; white-space: nowrap; }
.vs-ptable :is(th, td):last-child { width: 44px; padding-right: 14px; }
.vs-ptable thead th { height: 34px; background: var(--panel-header); font-size: 12px; line-height: 16px; font-weight: 800; color: var(--ink-soft); }
.vs-ptable thead th { text-transform: uppercase; letter-spacing: 0.04em; }
.vs-ptable thead th:nth-child(-n+2) { letter-spacing: 0.14em; }
.vs-ptable abbr { text-decoration: none; }
.vs-ptable tbody :is(th, td) { height: 44px; border-top: 1px solid var(--line-soft); }
.vs-ptable tbody th { font-size: 15px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vs-ptable tbody td { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; }
.vs-ptable tbody td:first-child { font-size: 20px; color: var(--ink-soft); }
.vs-panel__split { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 14px; border-top: 1px solid var(--line-soft); }
.vs-panel__split-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.vs-panel__split-text small { font-size: 13px; color: var(--ink-muted); }
.vs-panel__split-text .vs-panel__warn { color: var(--warning); }
.vs-panel__note--icon { display: flex; align-items: center; gap: 8px; }
.vs-panel__note--icon > .vs-ico { width: 18px; height: 18px; }
.vs-reading { position: relative; height: min(440px, 55dvh); overflow: hidden; border: 1px solid var(--line); background: var(--tile); }
.vs-reading__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vs-reading::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 66%, transparent); }
.vs-reading__body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 28px; text-align: center; }
.vs-reading__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 44px; line-height: 0.9; text-transform: uppercase; }
.vs-reading__status { margin: 0; font-size: 17px; line-height: 22px; color: var(--paper); }
.vs-reading__bar { position: relative; width: 100%; height: 6px; margin-top: 6px; overflow: hidden; background: var(--raised); }
.vs-reading__bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 26%; width: 36%; background: var(--action); animation: vs-reading 1.6s var(--ease-out) infinite; }
@keyframes vs-reading { from { left: -36%; } to { left: 100%; } }
.vs-pick { margin: 0 -16px; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.vs-pick__opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--ink); font: 400 15px/20px var(--font-text); text-align: left; cursor: pointer; }
.vs-pick__opt:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.vs-pick__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.vs-pick__name { font-weight: 700; }
.vs-pick__note { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.vs-pick__empty { margin: 0; padding: 14px 0; color: var(--ink-soft); }
/* Итог формы: «Всего 65 мин» (TrainingNew.dc.html). */
.vs-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 14px; border: 1px solid var(--line); background: var(--panel-header); }
.vs-total__label { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.vs-total__value { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 44px; line-height: 0.9; color: var(--action-ink); white-space: nowrap; }
.vs-total__value .vs-unit { font-size: 14px; color: var(--ink-soft); }
/* Крупное число листа цифр: точность, раунды, «3 × 10» (ExerciseNumbers.dc.html). */
.vs-readout { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 16px; }
.vs-readout__value { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 80px; line-height: 0.82; color: var(--action-ink); }
.vs-readout__label { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
/* Таймер упражнения: фаза, отсчёт, раунд и полоса фазы; тон фазы — --timer-tone и --timer-fill. */
.vs-timer { --timer-tone: var(--ink); --timer-fill: var(--ink-muted); container-type: inline-size; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.vs-timer--work { --timer-tone: var(--action-ink); --timer-fill: var(--action); }
.vs-timer--rest { --timer-tone: var(--paper); --timer-fill: var(--paper); }
.vs-timer__phase { margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 44px; line-height: 0.9; text-transform: uppercase; color: var(--timer-tone); }
/* «10:00» — около двух кеглей в ширину: 46cqi вписывает его в колонку 288 px. */
.vs-timer__clock { margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: min(184px, 46cqi); line-height: 0.82; white-space: nowrap; color: var(--timer-tone); }
.vs-timer__round { margin: 0; font-size: 14px; line-height: 18px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.vs-timer__bar { position: relative; width: 100%; height: 8px; overflow: hidden; background: var(--raised); }
.vs-timer__bar::before { content: ""; position: absolute; inset: 0; background: var(--timer-fill); transform: scaleX(var(--timer-progress, 0)); transform-origin: left; transition: transform var(--dur-base) linear; }
/* Пометка под формой: «Видно только вам» (TrainingNew.dc.html). */
.vs-privacy { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.vs-privacy > .vs-ico { width: 18px; height: 18px; }

/* Поля ввода: одна коробка для input, textarea и select. Рамка line-strong — ≥3:1 к tile и panel-solid. */
.vs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vs-field__label { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.vs-input { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--tile); color: var(--ink); font: 400 16px/22px var(--font-text); outline: none; transition: border-color var(--dur-fast); }
.vs-input::placeholder { color: var(--ink-muted); opacity: 1; }
/* Фокус — рамка 1 px и тень 1 px внутри: вместе 2 px (≥3:1), размеры и отступы не меняются. Кольца нет. */
.vs-input:focus { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
/* Закрытое поле: значение читается (iOS без своей бледности), коробка и значок приглушены. */
.vs-input:disabled { background: transparent; color: var(--ink-soft); -webkit-text-fill-color: var(--ink-soft); opacity: 1; cursor: not-allowed; }
.vs-picker:has(> .vs-input:disabled) .vs-picker__ico, .vs-combo__box:has(> .vs-input:disabled) .vs-combo__caret { color: var(--ink-muted); }
textarea.vs-input { height: auto; min-height: 96px; padding-block: 12px; resize: vertical; }
.vs-field__hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* Пояснение справа от подписи: «можно несколько» (TrainingNew.dc.html). */
.vs-field__aside { font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
/* Дата и время: без appearance: none и min-width: 0 Safari iOS даёт полю свою ширину — шире колонки. */
.vs-picker { position: relative; min-width: 0; container-type: inline-size; }
.vs-input--picker { min-width: 0; padding: 12px 48px 12px 14px; -webkit-appearance: none; appearance: none; text-align: left; cursor: pointer; }
.vs-input--picker::-webkit-date-and-time-value { margin: 0; text-align: left; }
.vs-input--picker::-webkit-datetime-edit, .vs-input--picker::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.vs-input--picker::-webkit-calendar-picker-indicator { display: none; }
.vs-input--picker[data-empty]:not(:focus) { color: transparent; }
.vs-picker__ico { position: absolute; top: 12px; right: 16px; width: 24px; height: 24px; color: var(--action); pointer-events: none; }
.vs-picker__hint { position: absolute; top: 13px; right: 44px; left: 15px; overflow: hidden; color: var(--ink-muted); font: 400 16px/22px var(--font-text); white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.vs-input--picker:focus + .vs-picker__hint { display: none; }
.vs-picker__short { display: none; }
/* «Выберите время» не помещается в колонку уже 180 px. */
@container (max-width: 179px) { .vs-picker__long { display: none; } .vs-picker__short { display: inline; } }
/* Поиск (ExercisePick.dc.html): подпись скрыта, значок внутри поля. */
.vs-search { position: relative; }
.vs-search__ico { position: absolute; top: 14px; left: 14px; width: 20px; height: 20px; color: var(--ink-soft); pointer-events: none; }
.vs-search .vs-input { padding-left: 44px; }
/* Пара полей в ряд (Settings.dc.html): подпись забирает лишнюю высоту — поля ровно, даже когда переносится одна подпись. */
.vs-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vs-fields > .vs-field > .vs-field__label { flex-grow: 1; }
.vs-field--error .vs-input { border-color: var(--danger); }
.vs-field--error .vs-input:focus { box-shadow: inset 0 0 0 1px var(--danger); }
.vs-field--error .vs-field__hint { color: var(--danger); }

/* Код из бота: шесть ячеек поверх одного поля one-time-code */
.vs-code { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.vs-code__cell { height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--tile); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 28px; color: var(--ink); }
.vs-code__cell.is-active { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.vs-code__cell.is-active > span::after { content: ""; display: inline-block; width: 2px; height: 24px; vertical-align: middle; background: var(--action); animation: vs-blink 1s steps(2) infinite; }
.vs-code--error .vs-code__cell { border-color: var(--danger); }
.vs-code--error .vs-code__cell.is-active { box-shadow: inset 0 0 0 1px var(--danger); }
.vs-code__input { position: absolute; inset: 0; opacity: 0; font-size: 16px; }

/* Галочка согласия */
.vs-check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: center; min-height: var(--size-touch); font-size: 15px; line-height: 21px; color: var(--ink-soft); cursor: pointer; }
.vs-check input, .vs-option__check { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid var(--ink-muted); border-radius: var(--radius-sm); background: var(--panel-solid); cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.vs-check input::after, .vs-option__check::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--on-action); border-bottom: 2px solid var(--on-action); transform: rotate(-45deg) translate(1px, -1px) scale(0.4); opacity: 0; transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-fast); }
.vs-check input:checked, .vs-option__check:checked { background: var(--action); border-color: var(--action); }
.vs-check input:checked::after, .vs-option__check:checked::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.vs-check input:focus-visible, .vs-option__check:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-check:has(> input:disabled) { opacity: 0.4; cursor: not-allowed; }
.vs-check input:disabled { cursor: not-allowed; }
.vs-check a { color: var(--action-hi); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Радио — нативные input: стрелки, фокус и выбор пробелом даёт браузер. */
.vs-choice { margin: 0; padding: 0; min-width: 0; border: 0; }
/* Подпись группы плавает: иначе legend не встаёт в поток и не берёт отступ. */
.vs-choice > legend { float: left; width: 100%; margin: 0 0 6px; padding: 0; }
.vs-choice > legend + * { clear: both; }
.vs-radio { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: center; min-height: var(--size-touch); cursor: pointer; }
.vs-radio input, .vs-option__radio { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid var(--ink-muted); border-radius: var(--radius-full); background: transparent; cursor: pointer; transition: border-color var(--dur-fast); }
.vs-radio input::after, .vs-option__radio::after { content: ""; width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--action); transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); }
.vs-radio input:checked, .vs-option__radio:checked { border-color: var(--action); }
.vs-radio input:checked::after, .vs-option__radio:checked::after { transform: scale(1); }
.vs-radio input:focus-visible, .vs-option__radio:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-radio:has(> input:disabled), .vs-option:has(> input:disabled) { opacity: 0.4; cursor: not-allowed; }
.vs-options { display: grid; grid-template-columns: repeat(var(--vs-cols, 2), minmax(0, 1fr)); gap: 8px; }
.vs-option { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: var(--size-touch); padding: 12px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-solid); cursor: pointer; }
.vs-option:has(:checked) { border-color: var(--action); }
.vs-option__radio { position: absolute; top: 8px; right: 8px; }
.vs-option__label { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.vs-option:has(:checked) .vs-option__label { color: var(--ink); }
/* Поле справа — под радио в углу: подпись под него не заходит. */
.vs-option--kind { justify-content: center; min-height: 52px; padding: 8px 36px 8px 12px; }
.vs-option--kind > .vs-option__radio { top: 50%; right: 12px; translate: 0 -50%; }
.vs-option--kind .vs-option__label { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; line-height: 1; letter-spacing: 0; }
/* «Тренировка» 22 px не помещается слева от радио уже 360 px. */
@media (max-width: 359px) {
  .vs-option--kind .vs-option__label { font-size: 20px; }
}
/* На 320 px карточка цвета 66 px: радио ближе к углу, иначе между ним и гербом 2 px. */
.vs-option--swatch { align-items: center; justify-content: center; min-height: 56px; padding: 6px 24px 6px 0; background: var(--tile); }
.vs-option--swatch > .vs-option__radio { top: 4px; right: 4px; }
.vs-options--picture { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(168px, calc(50% - 5px)), 1fr)); }
.vs-option--picture { justify-content: center; gap: 0; min-height: 140px; padding: 90px 10px 6px; overflow: hidden; background: var(--tile); }
.vs-option__img { position: absolute; inset: 0 0 auto; height: 84px; background: var(--vs-img, none) center / cover no-repeat, var(--panel-solid); display: flex; align-items: center; justify-content: center; color: var(--ink-muted); }
.vs-option--picture .vs-option__label { font-size: 14px; line-height: 18px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.vs-option__note { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
/* Радио лежит на картинке: без своего фона кольцо теряется на светлом снимке. */
.vs-option--picture > .vs-option__radio { background: var(--tile); }
/* Вид тренировки (TrainingNew.dc.html): видов бывает несколько — в углу галочка, а не радио. */
.vs-option--workout { flex-direction: row; align-items: center; gap: 10px; min-height: 56px; padding: 8px 36px 8px 12px; }
.vs-option--workout .vs-ico { color: var(--ink-soft); }
.vs-option--workout:has(:checked) .vs-ico { color: var(--ink); }
.vs-option--workout .vs-option__label { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; line-height: 1; letter-spacing: 0; }
.vs-option__check { position: absolute; top: 8px; right: 8px; }
.vs-option--workout > .vs-option__check { top: 50%; right: 12px; translate: 0 -50%; }
/* «Комбинации» 22 px (104 px) рядом со значком и под галочкой не помещается уже 440 px: кегль меньше, как у типа события. */
@media (max-width: 439px) {
  .vs-option--workout .vs-option__label { font-size: 18px; }
}
/* Уже 375 px не помещается и 18 px: значок встаёт над подписью. */
@media (max-width: 374px) {
  .vs-option--workout { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; }
  .vs-option--workout > .vs-option__check { top: 8px; right: 8px; translate: none; }
}

/* Переключатель — нативный checkbox с role=switch: состояние читает диктор. */
.vs-toggle { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: var(--size-touch); cursor: pointer; }
.vs-toggle input { appearance: none; -webkit-appearance: none; position: relative; margin: 0; width: 44px; height: 26px; border-radius: var(--radius-full); background: var(--raised); cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.vs-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: var(--radius-full); background: var(--ink-muted); transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.vs-toggle > input:only-child { grid-column: 2; }
.vs-toggle:has(> input:only-child) { gap: 0; }
.vs-toggle input:checked { background: var(--action); }
.vs-toggle input:checked::after { background: var(--on-action); transform: translateX(18px); }
.vs-toggle input:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-toggle:has(> input:disabled) { opacity: 0.4; cursor: not-allowed; }
.vs-toggle input:disabled { cursor: not-allowed; }
/* Строка формы (NewEvent.dc.html, TeamSettings.dc.html). */
.vs-toggle--box { min-height: 56px; padding: 8px 14px; gap: 14px; border: 1px solid var(--line); background: var(--panel-solid); font-weight: 700; line-height: 20px; }
/* Настройка недоступна на устройстве: подпись с пояснением, без переключателя. */
.vs-toggle--static { cursor: auto; }
/* Список настроек в панели (Settings.dc.html). */
.vs-toggles > .vs-toggle { gap: 14px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-weight: 700; }
.vs-toggle__hint { display: block; font-size: 13px; line-height: 17px; font-weight: 400; color: var(--ink-muted); }

/* Тост и плашка. У тоста свой фон: на panel-solid он сливался с карточками под ним. */
.vs-toast { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--toast); border: 1px solid var(--toast-line); box-shadow: none; color: var(--ink); }
.vs-toast > .vs-ico { color: var(--action-ink); }
.vs-toast--warning { border-color: var(--warning); }
.vs-toast--warning > .vs-ico { color: var(--warning); }
.vs-toast--offline > .vs-ico { color: var(--ink-muted); }
.vs-toast--error { border-color: var(--danger); }
.vs-toast--error > .vs-ico { color: var(--danger); }
.vs-toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vs-toast__title { font-weight: 700; }
.vs-toast__text { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
/* Плашка в потоке экрана (Facts.dc.html), не всплывающий тост. */
.vs-toast--plaque { border-radius: 0; border-color: var(--line); background: var(--panel-header); }
.vs-toast--plaque > .vs-ico { color: var(--paper); }

/* Нижний лист */
.vs-sheet { position: relative; min-height: 30dvh; padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: var(--radius-md) var(--radius-md) 0 0; background: var(--panel-solid); border: 1px solid var(--line); border-bottom: 0; box-shadow: none; }
/* Верх листа — зона перетаскивания: поля -8/-16 растягивают её до краёв листа поверх его отступов. */
.vs-sheet__head { margin: -8px -16px 0; padding: 8px 16px 0; min-height: 44px; touch-action: none; -webkit-user-select: none; user-select: none; }
.vs-sheet__handle { width: 48px; height: 5px; margin: 0 auto 13px; border-radius: 3px; background: var(--line-strong); }
.vs-sheet__title { margin: 0 0 6px; font-size: 20px; line-height: 26px; font-weight: 800; }
/* Подзаголовок листа (ExerciseNumbers.dc.html): 2 px под заголовком. */
.vs-sheet__sub { margin: -4px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-sheet__opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 17px/22px var(--font-text); text-align: left; cursor: pointer; }
.vs-sheet__opt:last-child { border-bottom: 0; }
.vs-sheet__opt .vs-ico { width: 28px; height: 28px; }
.vs-sheet__opt small { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.vs-sheet__opt:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Стекло — после сплошного фона: иначе тот перекрыл бы его. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .vs-sheet { background: var(--panel); -webkit-backdrop-filter: blur(var(--blur-sheet)) saturate(150%); backdrop-filter: blur(var(--blur-sheet)) saturate(150%); }
}
@media (prefers-reduced-transparency: reduce) {
  .vs-sheet { background: var(--panel-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Шаги мастера */
.vs-steps { display: grid; grid-template-columns: repeat(var(--vs-steps, 3), minmax(0, 1fr)); gap: 6px; }
.vs-step { display: flex; flex-direction: column; gap: 6px; }
.vs-step__bar { height: 6px; background: var(--raised); }
.vs-step__label { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.vs-step--done .vs-step__bar { background: var(--positive); }
.vs-step--done .vs-step__label { color: var(--positive); }
.vs-step--current .vs-step__bar { background: var(--gradient-action); }
.vs-step--current .vs-step__label { color: var(--ink); }
/* «Приглашение» с разрядкой 0.08em шире своего шага уже 360 px. */
@media (max-width: 359px) {
  .vs-step__label { letter-spacing: 0.04em; }
}

/* Матч события. Корт — из --vs-img; затемнение не слабее 80%: текст читается и на белом пикселе снимка. */
.vs-matchup { border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 80%, transparent), color-mix(in srgb, var(--panel-solid) 94%, transparent)), var(--vs-img, none) center 40% / cover no-repeat, var(--panel-solid); }
.vs-matchup__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; max-width: 480px; margin-inline: auto; padding: 22px 12px 12px; }
.vs-matchup--solo .vs-matchup__grid { grid-template-columns: 1fr auto; }
.vs-matchup__team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.vs-matchup__name { max-width: 100%; font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 20px; line-height: 1; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.vs-matchup__time { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vs-matchup__time b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 60px; line-height: 0.85; font-variant-numeric: normal; }
.vs-matchup__date { font-size: 12px; line-height: 20px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.vs-matchup__venue { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px 18px; }
.vs-matchup__address { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-soft); text-align: center; overflow-wrap: anywhere; }
.vs-matchup__venue .vs-venue { font-size: 18px; text-align: center; overflow-wrap: anywhere; }
.vs-matchup__venue .vs-venue .vs-ico { width: 18px; height: 18px; }
.vs-matchup--search { position: relative; overflow: hidden; isolation: isolate; }
.vs-matchup--search .vs-matchup__grid { position: relative; z-index: 1; }
/* Поиск соперника: пять кадров по 2,6 с, полоса идёт по краю открывающегося кадра. */
.vs-scan { position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; width: 58%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.vs-scan::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 48%, transparent), color-mix(in srgb, var(--panel-solid) 84%, transparent)); }
.vs-scan__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: vs-scan-img 13s linear infinite; animation-delay: calc(var(--i) * 2.6s - 13s); }
.vs-scan__line { position: absolute; inset: 0; z-index: 4; opacity: 0; animation: vs-scan-line 2.6s linear infinite; }
.vs-scan__line::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--action) 26%, transparent)); }
.vs-scan__line::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; background: var(--action); }
@keyframes vs-scan-img {
  0% { clip-path: inset(0 100% 0 0); transform: scale(1.18); z-index: 2; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  6.9% { clip-path: inset(0); transform: scale(1.06); z-index: 2; }
  7% { clip-path: inset(0); z-index: 1; }
  26.9% { clip-path: inset(0); transform: scale(1); z-index: 1; }
  27%, 100% { clip-path: inset(0 100% 0 0); transform: scale(1.18); z-index: 0; }
}
@keyframes vs-scan-line {
  0% { transform: translateX(-100%); opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  34.6% { transform: translateX(0); opacity: 1; }
  45%, 100% { transform: translateX(0); opacity: 0; }
}

/* Таблица явки (Facts.dc.html). Столбцы фиксированы: длинное имя не сдвигает «Ответ» и «Был» от строки к строке. */
.vs-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; line-height: 20px; }
.vs-table th { height: 38px; padding: 0; text-align: left; vertical-align: middle; background: var(--panel-header); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.vs-table td { height: 48px; padding: 0; vertical-align: middle; }
.vs-table tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.vs-table th:first-child { padding: 0 8px 0 14px; }
.vs-table td:first-child { padding: 4px 8px 4px 14px; }
/* Столбцы — сильнее «.vs-table td/th»: иначе те отнимают у них поля и выравнивание. */
.vs-table__answer { width: 104px; }
.vs-table td.vs-table__answer { padding-right: 6px; font-size: 13px; line-height: 16px; color: var(--ink-soft); }
.vs-table .vs-table__mark { width: 74px; padding-right: 14px; text-align: right; }
.vs-table__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vs-table__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 700; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.vs-table__note { display: block; font-size: 12px; line-height: 15px; color: var(--ink-muted); }
/* Уже 360 px имени осталось бы ≈70 px — «Краснов / А.»: ответ уже, «Под вопросом» переносится. */
@media (max-width: 359px) {
  .vs-table__answer { width: 76px; }
  .vs-table .vs-table__mark { width: 60px; }
}

@keyframes vs-spin { to { transform: rotate(360deg); } }
@keyframes vs-blink { 50% { opacity: 0; } }
@keyframes vs-sheen { 0%, 55% { transform: translateX(-90%); } 100% { transform: translateX(90%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ===== Карьера 2.0: картинки, цвета команд, постер, матч, моменты ===== */

/* Цвет команды задаётся на контейнере классом vs-team--<цвет>. Без класса — синий. */
:root { --team: var(--team-blue); --team-deep: var(--team-blue-deep); --on-team: var(--on-team-blue); }
.vs-team--red { --team: var(--team-red); --team-deep: var(--team-red-deep); --on-team: var(--on-team-red); }
.vs-team--teal { --team: var(--team-teal); --team-deep: var(--team-teal-deep); --on-team: var(--on-team-teal); }
.vs-team--yellow { --team: var(--team-yellow); --team-deep: var(--team-yellow-deep); --on-team: var(--on-team-yellow); }
.vs-team--lime { --team: var(--team-lime); --team-deep: var(--team-lime-deep); --on-team: var(--on-team-lime); }
.vs-team--green { --team: var(--team-green); --team-deep: var(--team-green-deep); --on-team: var(--on-team-green); }
.vs-team--maroon { --team: var(--team-maroon); --team-deep: var(--team-maroon-deep); --on-team: var(--on-team-maroon); }
.vs-team--blue { --team: var(--team-blue); --team-deep: var(--team-blue-deep); --on-team: var(--on-team-blue); }
.vs-team--sky { --team: var(--team-sky); --team-deep: var(--team-sky-deep); --on-team: var(--on-team-sky); }
.vs-team--violet { --team: var(--team-violet); --team-deep: var(--team-violet-deep); --on-team: var(--on-team-violet); }
.vs-team--pink { --team: var(--team-pink); --team-deep: var(--team-pink-deep); --on-team: var(--on-team-pink); }
.vs-team--silver { --team: var(--team-silver); --team-deep: var(--team-silver-deep); --on-team: var(--on-team-silver); }
.vs-team--graphite { --team: var(--team-graphite); --team-deep: var(--team-graphite-deep); --on-team: var(--on-team-graphite); }

/* Герб без цвета команды — индиго: у соперника в данных цвета нет. */
.vs-crest { width: 58px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; clip-path: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%); background: var(--indigo); font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 24px; line-height: 1; color: var(--ink); }
.vs-crest--team { background: linear-gradient(160deg, color-mix(in srgb, var(--team) 80%, #ffffff), color-mix(in srgb, var(--team) 60%, var(--team-deep))); color: var(--on-team); }
.vs-crest--lg { width: 76px; height: 84px; font-size: 32px; }
.vs-crest--xl { width: 86px; height: 96px; font-size: 36px; }
.vs-crest--sm { width: 48px; height: 54px; font-size: 20px; }
.vs-crest--xs { width: 30px; height: 34px; font-size: 13px; }
[data-theme="light"] .vs-crest { filter: drop-shadow(0 0 1px #1d140da6); }

/* Фоновая картинка: слой под содержимым. Экрану с картинкой — vs-has-art. */
.vs-has-art { position: relative; isolation: isolate; }
/* Снимок — из --vs-img; без него (сайт-визитка) — градиент из индиго. Кадр — по артборду экрана.
   Затемнение под текстом рассчитано на белый пиксел: в legend.webp блики, затемнение артборда давало 1,9:1. */
.vs-art { position: absolute; inset: 0 0 auto; z-index: -1; height: 560px; pointer-events: none; background: var(--art-veil, linear-gradient(transparent 50%, var(--bg))), var(--vs-img, linear-gradient(180deg, color-mix(in srgb, var(--indigo) 30%, var(--bg)), var(--bg))) 50% var(--art-pos, 30%) / cover no-repeat, var(--bg); }
.vs-art--login { top: -30px; --art-pos: 30%; --art-veil: linear-gradient(180deg, color-mix(in srgb, var(--bg) 72%, transparent) 0px, color-mix(in srgb, var(--bg) 66%, transparent) 90px, color-mix(in srgb, var(--bg) 30%, transparent) 150px, color-mix(in srgb, var(--bg) 92%, transparent) 215px, var(--bg) 100%); }
.vs-art--invite { height: 460px; --art-pos: 20%; --art-veil: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent) 0px, color-mix(in srgb, var(--bg) 66%, transparent) 64px, color-mix(in srgb, var(--bg) 25%, transparent) 150px, color-mix(in srgb, var(--bg) 80%, transparent) 322px, var(--bg) 100%); }
.vs-art--moment { --art-pos: 18%; --art-veil: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent) 0%, color-mix(in srgb, var(--bg) 8%, transparent) 30%, color-mix(in srgb, var(--bg) 86%, transparent) 72%, var(--bg) 100%); }
.vs-on-art { text-shadow: none; }

/* Заголовок блока — просто текст: без рамки, полосы и палочки */
.vs-sections { display: flex; flex-direction: column; gap: 26px; }
.vs-section { display: flex; flex-direction: column; gap: 10px; }
.vs-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vs-section__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 32px; line-height: 1; text-transform: uppercase; }
.vs-section__meta { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.vs-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.vs-subhead__aside { color: var(--ink-muted); }

/* Плитки KPI в панели: в разметке dt раньше dd, column-reverse ставит подпись под цифрой. */
.vs-tiles { display: grid; grid-template-columns: repeat(var(--vs-cols, 3), minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px; }
.vs-tile { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; container-type: inline-size; padding: 12px 10px; border: 1px solid var(--line); background: var(--tile); }
.vs-tile__label { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.vs-tile__value { display: flex; align-items: center; gap: 2px; margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: min(44px, 50cqi); line-height: 0.9; color: var(--ink); }
.vs-tile__value .vs-ico { width: 26px; height: 26px; }
.vs-tile__value--action { color: var(--action-ink); }
.vs-tile__value--streak { color: var(--streak); }
/* При column-reverse сравнение и дату ставит под подпись только order -1. */
.vs-tile__delta { order: -1; display: flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--positive); }
.vs-tile__delta .vs-ico { width: 14px; height: 14px; }
.vs-tile__delta--muted { color: var(--ink-muted); }
.vs-tile__note { order: -1; margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
/* Единица после числа: «95 мин». */
.vs-unit { font-family: var(--font-text); font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.vs-tile__value .vs-unit { font-size: 13px; }

/* Таблица показателей (StatTable): колонки чисел и изменений выравнивает сама таблица.
   display у строк и ячеек не трогаем: Safari снимает с такой таблицы роли. */
.vs-stattable { width: 100%; margin: 0; border-collapse: collapse; }
.vs-stattable tr + tr > * { border-top: 1px solid var(--line-soft); }
.vs-stattable__label { width: 100%; height: 56px; padding: 6px 12px 6px 14px; vertical-align: middle; text-align: left; font-size: 16px; line-height: 20px; font-weight: 700; color: var(--ink); }
.vs-stattable__value { padding: 6px 0; vertical-align: middle; text-align: right; white-space: nowrap; }
.vs-stattable td:last-child { padding-right: 14px; }
.vs-stattable__num { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 32px; line-height: 0.9; color: var(--ink); }
.vs-stattable__num .vs-ico { width: 22px; height: 22px; }
.vs-stattable__num .vs-unit { font-size: 13px; }
.vs-stattable__num--action { color: var(--action-ink); }
.vs-stattable__num--streak { color: var(--streak); }
.vs-stattable__note { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.vs-stattable__delta { padding: 6px 0 6px 10px; vertical-align: middle; white-space: nowrap; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--positive); }
.vs-stattable__delta .vs-ico { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.vs-stattable__delta--muted { color: var(--ink-muted); }

/* Постер игрока (Profile.dc.html). Затемнение низа привязано к колонке текста, а не к высоте постера:
   своё фото бывает любым, и текст на нём держит 4,5:1 даже на белом пикселе. */
.vs-hero { position: relative; flex-shrink: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; padding: calc(112px + env(safe-area-inset-top, 0px)) 16px 18px; overflow: hidden; isolation: isolate; color: var(--ink); background: var(--panel-solid); border-bottom: 1px solid var(--line); }
.vs-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.vs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 62%, transparent), transparent 24%); pointer-events: none; }
.vs-hero__top { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; }
.vs-hero__info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.vs-hero__info::before { content: ""; position: absolute; z-index: -1; inset: -136px -16px -18px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 91%, transparent) 120px, var(--bg)); pointer-events: none; }
.vs-hero__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
/* Кегль — от ширины колонки и оценки сверху ширины самого длинного слова (--first-em, --last-em): слово встаёт целиком.
   Имя делится на большую из оценок: длинная фамилия не выходит мельче имени. */
.vs-hero__name { flex: 1 1 0; min-width: 0; container-type: inline-size; margin: 0; display: flex; flex-direction: column; }
.vs-hero__first { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(16px, calc(100cqi / max(var(--first-em, 3.5), var(--last-em, 3.5))), 30px); line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; color: var(--ink-soft); }
.vs-hero__last { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(20px, calc(100cqi / var(--last-em, 3.5)), 66px); line-height: 0.85; text-transform: uppercase; overflow-wrap: anywhere; color: var(--ink); }
.vs-hero__num { flex: none; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 92px; line-height: 0.8; color: var(--action-ink); }
/* Поля метки (3 px на вынос наклона) входят в зазоры макета: 8 px между метками и 4 px слева. */
.vs-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 2px; padding-left: 1px; }
.vs-hero__upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding-left: var(--skew-inset); }
.vs-hero__upload:empty { display: none; }
.vs-hero__hint { flex: 1 1 120px; margin: 0; font-size: 13px; line-height: 17px; color: var(--ink-soft); }
.vs-tag { display: inline-flex; align-items: center; max-width: calc(100% - 6px); height: 28px; padding: 0 12px; margin: 0 3px; transform: skewX(var(--skew)); background: #ffffff1f; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.vs-tag > span { transform: skewX(calc(var(--skew) * -1)); display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vs-tag--team { background: var(--team); color: var(--on-team); }
.vs-tag--paper { background: var(--paper); color: var(--on-paper); }
.vs-tag--action { background: var(--action); color: var(--on-action); }
.vs-tag--sm { height: 22px; padding: 0 7px; font-size: 10px; letter-spacing: 0.12em; }
/* Уровень упражнения (ExercisePick.dc.html, Catalog.dc.html): три столбика, невзятые — тем же цветом на 30 %. */
.vs-tag--level { height: auto; padding: 1px 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--positive); font-size: 11px; line-height: 16px; letter-spacing: 0.08em; }
.vs-tag--level > span { display: inline-flex; align-items: center; gap: 5px; }
.vs-tag__bars { width: 11px; height: 11px; fill: currentColor; }
.vs-tag__bars .is-off { opacity: 0.3; }
.vs-tag--indigo { background: var(--indigo); color: var(--ink); }
.vs-tag--raised { background: var(--raised); color: var(--ink); }
.vs-tag--raised > span { display: inline-flex; align-items: center; gap: 6px; }
/* После базовой .vs-tag: при равной специфичности фон берётся из последнего правила. */
.vs-tag--streak { background: var(--streak); color: var(--on-paper); }
.vs-tag .vs-ico { width: 14px; height: 14px; }
/* Инвентарь — строчными и переносится: «Партнёр на подборе — желательно» не обрезаем. */
.vs-tag--plain { height: auto; min-height: 28px; padding: 4px 12px; font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: normal; }
.vs-tag--plain > span { display: block; overflow: visible; }
.vs-drill__tags { display: flex; flex-wrap: wrap; gap: 8px 2px; margin: 0; padding: 0 0 0 1px; list-style: none; }
.vs-drill__tags .vs-tag--level { padding: 3px 11px; font-size: 12px; line-height: 20px; letter-spacing: 0.12em; }
.vs-drill__tags .vs-tag--level > span { gap: 6px; }
.vs-drill__part { padding: 12px 14px; }
.vs-drill__part + .vs-drill__part { border-top: 1px solid var(--line-soft); }
.vs-drill__part:last-child { padding-bottom: 14px; }
.vs-drill__label { margin: 0 0 4px; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.vs-drill__label + .vs-drill__tags { margin-top: 8px; }

/* Метка-ссылка: 32 px, зона касания 44 px — выступом сверху и снизу. */
.vs-tag--link { position: relative; height: 32px; text-decoration: none; transition: background var(--dur-fast); }
.vs-tag--link::after { content: ""; position: absolute; inset: -6px 0; }
.vs-tag--link:hover { background: color-mix(in srgb, var(--action) 24%, var(--raised)); }
.vs-tag--link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Карточка каталога на «Прогрессе» (CatalogCard): картинка — своей колонкой, текст на неё не ложится.
   Ссылка заголовка растянута на всю карточку, разделы — над ней. */
.vs-catalog { display: grid; grid-template-columns: minmax(0, 1fr) min(34%, 320px); grid-template-areas: "title art" "meta art" "sections sections"; align-content: start; gap: 10px 12px; padding: 16px 14px 14px; transition: border-color var(--dur-fast); }
.vs-catalog:has(.vs-catalog__link:hover) { border-color: color-mix(in srgb, var(--action) 45%, var(--line)); }
.vs-catalog__art { grid-area: art; margin: -16px -14px 0 0; background: linear-gradient(90deg, var(--panel-solid), transparent 60%), linear-gradient(0deg, var(--panel-solid), transparent 50%), var(--vs-img, none) 50% 35% / cover no-repeat; }
.vs-catalog__title { grid-area: title; margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 36px; line-height: 0.9; text-transform: uppercase; }
.vs-catalog__link { outline: none; color: var(--ink); text-decoration: none; }
.vs-catalog__link::after { content: ""; position: absolute; inset: 0; }
.vs-catalog__link:focus-visible::after { box-shadow: inset 0 0 0 2px var(--focus); }
.vs-catalog__chevron { display: inline-block; width: 24px; height: 24px; margin-left: 4px; vertical-align: -2px; color: var(--action-ink); }
.vs-catalog__meta { grid-area: meta; margin: 0; font-size: 14px; line-height: 19px; color: var(--ink-soft); }
.vs-catalog__sections { grid-area: sections; position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px 2px; margin: 4px 0 0; padding: 0 0 0 1px; list-style: none; }
/* «УПРАЖНЕНИЙ» со стрелкой на 320 px не помещается в колонку текста при 36 px. */
@media (max-width: 359px) {
  .vs-catalog__title { font-size: 30px; }
}
.vs-ovr { position: relative; width: 80px; height: 80px; }
.vs-ovr svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.vs-ovr__track { fill: color-mix(in srgb, var(--bg) 72%, transparent); stroke: var(--raised); stroke-width: 8; }
.vs-ovr__value { fill: none; stroke: var(--action); stroke-width: 8; }
.vs-ovr__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vs-ovr__label b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 0.8; }
/* Своя высота строки: от body подпись получила бы 22 px и отъехала от числа. */
.vs-ovr__label span { font-size: 9px; line-height: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink-soft); }

/* Атрибуты: полоса, число и буквенная оценка */
.vs-attrs { display: flex; flex-direction: column; gap: 10px; }
.vs-attr { display: grid; grid-template-columns: 112px 1fr 30px 34px; align-items: center; gap: 10px; }
.vs-attr__name { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.vs-attr__bar { height: 8px; background: var(--raised); overflow: hidden; }
.vs-attr__bar > i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--gradient-action); }
.vs-attr__value { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 24px; line-height: 1; text-align: right; }
.vs-grade { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 18px; line-height: 1; background: var(--raised); color: var(--ink); }
.vs-grade--a { background: var(--gradient-gold); color: #1a1204; }
.vs-grade--b { background: var(--gradient-silver); color: #12161c; }

/* Значок-эмблема с уровнем */
.vs-emblem { --frame: var(--gradient-gold); --c: var(--rarity-gold); position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 80px; text-align: center; }
.vs-emblem--bronze { --frame: var(--gradient-bronze); --c: var(--rarity-bronze); }
.vs-emblem--silver { --frame: var(--gradient-silver); --c: var(--rarity-silver); }
.vs-emblem--diamond { --frame: var(--gradient-diamond); --c: var(--rarity-diamond-b); }
.vs-emblem__frame { width: 72px; height: 80px; padding: 3px; background: var(--frame); clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%); }
.vs-emblem__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; clip-path: inherit; background: radial-gradient(60% 50% at 50% 38%, color-mix(in srgb, var(--c) 34%, var(--card-ground)), var(--card-ground) 80%); color: var(--c); }
.vs-emblem__inner::before { content: ""; position: absolute; inset: 9px; clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%); border: 0; background: linear-gradient(180deg, #ffffff1f, transparent 50%); }
.vs-emblem__inner .vs-ico { width: 34px; height: 34px; }
.vs-emblem__pips { display: flex; gap: 3px; margin-top: -2px; }
.vs-emblem__pips > i { width: 12px; height: 5px; background: var(--raised); }
.vs-emblem__pips > i.is-on { background: var(--c); }
.vs-emblem__name { font-size: 12px; line-height: 15px; font-weight: 800; }
.vs-emblem__next { width: 64px; height: 3px; background: var(--raised); }
.vs-emblem__next > i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--c); }
.vs-emblem--locked { --frame: linear-gradient(var(--line-strong), var(--line-strong)); --c: var(--line-strong); color: var(--ink-muted); }
.vs-emblem--xl { width: 180px; }
.vs-emblem--xl .vs-emblem__frame { width: 156px; height: 174px; padding: 5px; }
.vs-emblem--xl .vs-emblem__inner .vs-ico { width: 76px; height: 76px; }
.vs-emblem--xl .vs-emblem__pips > i { width: 22px; height: 8px; }

/* Матч-ап: экран делится по диагонали в цветах двух команд */
.vs-versus { position: relative; height: 300px; overflow: hidden; isolation: isolate; }
.vs-versus__side { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-bottom: 34px; background: radial-gradient(60% 55% at var(--gx) 42%, color-mix(in srgb, var(--team) 70%, transparent), transparent 75%), linear-gradient(180deg, var(--team-deep), color-mix(in srgb, var(--team-deep) 40%, var(--bg))); }
.vs-versus__side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(105deg, #ffffff0f 0 2px, transparent 2px 14px); }
.vs-versus__side--home { --gx: 22%; clip-path: polygon(0 0, 59% 0, 41% 100%, 0 100%); align-items: flex-start; padding-left: 20px; }
.vs-versus__side--away { --gx: 78%; clip-path: polygon(59% 0, 100% 0, 100% 100%, 41% 100%); align-items: flex-end; padding-right: 20px; text-align: right; }
.vs-versus__seam { position: absolute; inset: 0; z-index: 1; background: #ffffffd9; clip-path: polygon(58.4% 0, 59.6% 0, 41.6% 100%, 40.4% 100%); pointer-events: none; }
.vs-versus__vs { position: absolute; left: 50%; top: 44%; z-index: 2; transform: translate(-50%, -50%); padding: 6px 12px; background: var(--bg); box-shadow: 0 0 0 2px #ffffffd9; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 34px; line-height: 1; }
.vs-versus::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.vs-versus__name { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 34px; line-height: 0.9; text-transform: uppercase; }
.vs-versus__rec { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-soft); }

/* Карточка стартовой пятёрки: выход на площадку */
.vs-lineup--start { gap: 6px; }
/* Пять в ряд на телефоне — 51–65 px: фамилия не помещается (основатель 04.11). */
@media (max-width: 479px) {
  .vs-lineup--start { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vs-lcard { --frame: var(--gradient-gold); --accent: var(--rarity-gold); position: relative; height: 206px; padding: 2px; background: var(--frame); clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%); }
.vs-lcard--bronze { --frame: var(--gradient-bronze); --accent: var(--rarity-bronze); }
.vs-lcard--silver { --frame: var(--gradient-silver); --accent: var(--rarity-silver); }
.vs-lcard--diamond { --frame: var(--gradient-diamond); --accent: var(--rarity-diamond-a); }
.vs-lcard__inner { position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column; align-items: center; clip-path: inherit; container-type: inline-size; background: linear-gradient(180deg, color-mix(in srgb, var(--team) 50%, var(--card-ground)), var(--card-ground) 72%); color: var(--card-ink); }
/* Позиция словом над фото читается на любом снимке; шрифт от ширины карточки — чтобы слово влезало целиком. */
.vs-lcard__pos { position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: 18px; padding-inline: 2px; overflow: hidden; text-align: center; white-space: nowrap; font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 11px; font-size: clamp(8px, 18cqi, 13px); line-height: 18px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--card-ink); }
/* Номер на подложке: под ним всегда картинка, а теней в системе нет. */
.vs-lcard__ovr { position: absolute; top: 22px; left: 4px; z-index: 1; padding: 2px 4px; border-radius: var(--radius-xs); background: var(--card-ground); }
.vs-lcard__ovr b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 20px; line-height: 0.9; }
.vs-lcard__photo { position: absolute; left: 0; bottom: 34px; width: 100%; height: 150px; object-fit: cover; }
.vs-lcard__photo--default { object-position: 42% 30%; }
/* Фамилия — над началом уголка, иначе сужение срежет крайние буквы; кегль — по самому длинному слову (--name-em). */
/* Слово, которому мало и 11 px, переносится по слогам; многоточие — только после двух строк, полное имя в aria-label карточки. */
.vs-lcard__name { position: absolute; left: 0; right: 0; bottom: calc(12% + 2px); z-index: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding: 16px 2px 0; text-align: center; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 14px; font-size: clamp(11px, calc((100cqi - 4px) / var(--name-em, 3.5)), 14px); line-height: 1; text-transform: uppercase; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; background: linear-gradient(180deg, transparent, var(--card-ground) 60%); }
.vs-lcard--me { box-shadow: none; }
.vs-lcard--me .vs-lcard__name { color: var(--action-hi); }

/* Сравнение двух команд: полосы растут от центра */
.vs-compare { display: grid; grid-template-columns: 52px 1fr 52px; align-items: end; gap: 10px; }
.vs-compare__v { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 0.9; }
.vs-compare__v:last-child { text-align: right; }
.vs-compare__v.is-lead { color: var(--ink); }
.vs-compare__v:not(.is-lead) { color: var(--ink-muted); }
.vs-compare__mid { display: flex; flex-direction: column; gap: 6px; padding-bottom: 3px; }
.vs-compare__label { text-align: center; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.vs-compare__bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.vs-compare__bars > i { height: 6px; width: calc(var(--v) * 1%); background: var(--team); }
.vs-compare__bars > i:first-child { justify-self: end; }

/* Форма за последние игры */
.vs-form { display: inline-flex; gap: 3px; }
.vs-form > b { width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.vs-form > b.is-w { background: var(--positive); color: var(--bg); }
.vs-form > b.is-l { background: var(--raised); color: var(--ink-soft); }

/* Табло итога */
.vs-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.vs-score__team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.vs-score__pts { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 96px; line-height: 0.8; }
.vs-score__pts--lose { color: var(--ink-muted); }
.vs-score__bar { width: 80%; height: 6px; background: var(--team); }
.vs-score__mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vs-result { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 26px; text-transform: uppercase; background: var(--positive); color: var(--bg); }
.vs-result--lose { background: var(--raised); color: var(--ink); }

/* Бокс-скор: моя строка подсвечена */
.vs-box { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 18px; }
.vs-box th { padding: 6px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); text-align: right; border-bottom: 1px solid var(--line); }
.vs-box th:first-child, .vs-box td:first-child { text-align: left; }
.vs-box td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.vs-box td b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 20px; }
.vs-box tr.is-me td { background: color-mix(in srgb, var(--action) 16%, transparent); font-weight: 800; }
.vs-box tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--action-ink); }
/* Своя строка списка (лидеры лиги) — как своя строка таблицы. */
.vs-row.is-me { background: color-mix(in srgb, var(--action) 16%, transparent); box-shadow: inset 3px 0 0 var(--action-ink); }
/* Название команды — кнопка-ссылка в ячейке: начертание строки (у is-me — 800), зона касания 44 px при строке 1lh. */
.vs-box td .vs-link { position: relative; padding: 0; border: 0; background: transparent; font-weight: inherit; text-align: left; cursor: pointer; }
.vs-box td .vs-link::after { content: ""; position: absolute; inset: calc((1lh - var(--size-touch)) / 2) -6px; }
.vs-box td .vs-link:focus-visible { outline: none; border-radius: var(--radius-xs); box-shadow: var(--focus-ring); }
.vs-box tr.is-mvp td:first-child::after { content: "MVP"; margin-left: 6px; padding: 1px 5px; font-size: 10px; font-weight: 900; letter-spacing: 0.06em; background: var(--gradient-gold); color: #1a1204; }

/* Изменение рейтинга */
.vs-delta { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 1; color: var(--positive); }
.vs-delta--down { color: var(--danger); }

/* Момент: короткий полноэкранный показ события (Moment.dc.html) */
.vs-moment { --c: var(--action); position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; overflow: hidden; isolation: isolate; background: var(--bg); }
.vs-moment--gold { --c: var(--rarity-gold); }
.vs-moment--win { --c: var(--positive); }
/* Текст прижат к низу экрана: затемнение от низа держит его на любой высоте. */
.vs-moment::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 92%, transparent) 440px, transparent 620px); pointer-events: none; }
.vs-moment__kicker { height: 30px; padding: 0 14px; font-size: 13px; letter-spacing: 0.2em; }
.vs-moment__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: min(104px, 28vw); line-height: 0.8; text-transform: uppercase; }
.vs-moment__accent { color: var(--c); }
.vs-moment__sub { margin: 0; max-width: 300px; font-size: 17px; line-height: 22px; color: var(--ink-soft); }
.vs-moment__pop { animation: vs-pop var(--dur-slow) var(--ease-spring) both; }
.vs-moment__actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 82px; }
/* «Новое достижение» (AchievementMoment.dc.html). */
.vs-moment--award::after { content: none; }
.vs-moment--award .vs-moment__pop { position: relative; }
/* Значок с кольцами анимируется своим слоем: надписи поднимаем над ним, чтобы линии шли под ними. */
.vs-moment--award :is(.vs-moment__kicker, .vs-moment__title, .vs-moment__lead, .vs-moment__sub) { position: relative; z-index: 1; }
.vs-moment--award .vs-moment__title { font-size: min(96px, calc((100vw - 32px) / var(--name-em, 4))); }
.vs-moment--award .vs-moment__sub { font-size: 15px; line-height: 20px; }
.vs-moment--award .vs-moment__actions { gap: 10px; margin-top: 42px; }
/* Кольца гаснут ниже значка: по названию и строкам под ним линии не идут. */
.vs-moment__hexes { position: absolute; top: 50%; left: 50%; z-index: -1; width: min(390px, 100vw); height: auto; aspect-ratio: 390 / 448; translate: -50% -50%; overflow: visible; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, var(--ink) 58%, transparent 70%); mask-image: linear-gradient(to bottom, var(--ink) 58%, transparent 70%); }
.vs-moment__hex { fill: none; stroke: var(--panel-header); stroke-width: 2; stroke-linejoin: round; }
.vs-moment__hex--inner { stroke: var(--line-soft); }
.vs-moment__lead { margin: 0; font-size: 19px; line-height: 24px; font-weight: 700; }

/* Ролик внутри приложения (VideoPlayer): слой на весь экран, плеер 16:9 по центру. */
.vs-player { display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: var(--bg); }
.vs-player__bar { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 6px 4px 16px; }
.vs-player__title { flex: 1; min-width: 0; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 22px; text-transform: uppercase; overflow-wrap: break-word; }
.vs-player__stage { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 12px; min-height: 0; }
/* Шапка и подпись остаются в окне и на телефоне боком: высота плеера — от высоты окна. */
.vs-player__frame { width: min(100%, calc((100dvh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; margin-inline: auto; background: var(--tile); }
.vs-player__frame > iframe { display: block; width: 100%; height: 100%; border: 0; }
.vs-player__foot { display: flex; flex-direction: column; align-items: center; padding: 0 16px; text-align: center; }
.vs-player__author { margin: 0; font-size: 15px; line-height: 20px; color: var(--ink-soft); }
.vs-player__out { margin: 0; font-size: 15px; line-height: 20px; }
.vs-player__out > .vs-link { display: inline-flex; align-items: center; min-height: var(--size-touch); }

/* Силуэт игрока в форме команды (заглушка до фото) */
.vs-fig { display: block; overflow: visible; }
.vs-fig__team { stop-color: var(--team); }
.vs-fig__team-deep { stop-color: var(--team-deep); }
.vs-fig__trim { fill: none; stroke: #ffffffcc; }
.vs-fig__num { font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 78px; fill: #ffffff; stroke: var(--team-deep); stroke-width: 4px; paint-order: stroke; }
.vs-fig__rim-a { flood-color: color-mix(in srgb, var(--team) 55%, #ffffff); }
.vs-fig__rim-b { flood-color: var(--action-hi); }

/* Подписи мессенджеров: буквы вместо логотипов */
.vs-mono { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--raised); color: var(--ink); font-family: var(--font-display); font-size: 15px; font-weight: 900; letter-spacing: 0.04em; }

@keyframes vs-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Надпись-логотип: «VS» цветом мяча — как «против» в матче. */
.vs-wordmark__vs { color: var(--action); }
[data-theme="light"] .vs-wordmark__vs { color: var(--action-lo); }

/* Мяч: фото крутится с постоянной скоростью внутри круга, блик и тень стоят на месте — читается как шар под лампой */
.vs-ball { display: block; width: var(--ball, 160px); height: var(--ball, 160px); }
.vs-ball--spin { animation: vs-ball-spin 4s linear infinite; will-change: transform; }
.vs-ball3d { position: relative; display: block; flex: none; width: var(--ball, 160px); height: var(--ball, 160px); border-radius: 50%; isolation: isolate; }
.vs-ball3d > .vs-ball { position: absolute; inset: -6%; width: 112%; height: 112%; clip-path: circle(44.6% at 50% 50%); }
.vs-ball3d::before, .vs-ball3d::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%; pointer-events: none; }
.vs-ball3d::before { background: radial-gradient(circle at 34% 28%, #ffecd6cc 0, #ffecd640 16%, transparent 40%); mix-blend-mode: soft-light; }
.vs-ball3d::after { z-index: 2; background: radial-gradient(circle at 38% 34%, transparent 38%, #100b0859 70%, #100b08d9 100%); mix-blend-mode: multiply; }
.vs-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.vs-loader__shadow { width: 120px; height: 16px; margin-top: -8px; border-radius: 50%; background: radial-gradient(closest-side, #000000b3, transparent); }
.vs-loader__text { font-size: 13px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }

/* Тёмная карточка внутри светлой темы: правила светлой темы цепляют любого предка — возвращаем тёмные значения */
[data-theme="light"] [data-theme="dark"] .vs-wordmark__vs { color: var(--action); }
[data-theme="light"] [data-theme="dark"] .vs-crest { filter: none; }

/* Достижение: постер, уровень — лентой поверх */
.vs-ach { --tier: var(--gradient-gold); display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.vs-ach--bronze { --tier: var(--gradient-bronze); }
.vs-ach--silver { --tier: var(--gradient-silver); }
.vs-ach--legend { --tier: var(--gradient-diamond); }
.vs-ach__card { position: relative; width: 100%; aspect-ratio: 3 / 4; padding: 4px; border-radius: 8px; background: var(--paper); }
.vs-ach__card > img { display: block; width: 100%; height: 100%; border-radius: 5px; object-fit: cover; }
.vs-ach__tier { position: absolute; top: 9%; right: -12%; height: 18px; padding: 0 12px; transform: rotate(32deg); background: var(--tier); color: #1a0d04; font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 12px; line-height: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.vs-ach__name { font-size: 13px; line-height: 16px; font-weight: 800; }
.vs-ach__bar { width: 76%; height: 4px; background: var(--raised); }
.vs-ach__bar > i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--action); }
.vs-ach--locked .vs-ach__card > img { filter: grayscale(1) brightness(0.42) contrast(0.9); }
.vs-ach--locked .vs-ach__card::after { content: ""; position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; background: var(--ink-soft); -webkit-mask: var(--lock) center / contain no-repeat; mask: var(--lock) center / contain no-repeat; }
.vs-ach--locked { color: var(--ink-muted); }
.vs-ach--xl { width: 236px; }
.vs-ach--xl .vs-ach__card { padding: 6px; border-radius: 12px; }
.vs-ach--xl .vs-ach__tier { height: 26px; font-size: 16px; line-height: 26px; padding: 0 18px; }
.vs-achs { display: grid; grid-template-columns: repeat(var(--vs-cols, 3), minmax(0, 1fr)); gap: 18px 14px; }

@keyframes vs-ball-spin { to { transform: rotate(360deg); } }

.vs-ach { --lock: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22%23000%22%3E%3Cpath d=%22M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96Z%22/%3E%3C/svg%3E"); }

/* Площадка — ссылка на карту: значок-пин и подчёркнутое название. Цвет берёт от блока. */
.vs-venue { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; color: inherit; font-family: var(--font-display); font-weight: 800; font-style: normal; font-size: 19px; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.vs-venue .vs-ico { width: 20px; height: 20px; }
.vs-venue--link { position: relative; text-decoration: underline; text-decoration-color: var(--action); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Зона касания 44 px — выступом за строку: она не раздвигает блок, а поля вокруг площадки в 2–3 строки не съёживаются. */
.vs-venue--link::after { content: ""; position: absolute; inset: calc((1.1em - var(--size-touch)) / 2) 0; }
.vs-venue--link:focus-visible { outline: none; border-radius: var(--radius-xs); box-shadow: var(--focus-ring); }

/* Билет «Ближайшее». Картинка — из --vs-img: сайт-визитка копирует CSS без картинок.
   К 146 px она гаснет: ниже ряд кольца, его цифры на снимке не читались. */
.vs-ticket { display: flex; flex-direction: column; padding: 16px 14px 18px; background: linear-gradient(180deg, transparent 40px, var(--panel-solid) 146px), linear-gradient(90deg, var(--panel-solid), color-mix(in srgb, var(--panel-solid) 72%, transparent) 38.7%, color-mix(in srgb, var(--panel-solid) 25%, transparent)) 100% 0 / min(62%, 300px) 100% no-repeat, var(--vs-img, none) 100% 0 / min(62%, 300px) auto no-repeat, var(--panel-solid); }
.vs-ticket__kind { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink-soft); }
.vs-ticket__when { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.vs-ticket__time { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 92px; line-height: 0.82; letter-spacing: -0.01em; font-variant-numeric: normal; }
.vs-ticket__date { display: flex; flex-direction: column; padding-bottom: 4px; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 24px; line-height: 0.95; text-transform: uppercase; color: var(--ink-soft); }
.vs-ticket > .vs-venue { align-self: flex-start; margin-top: 14px; }
.vs-ticket > .vs-attend { margin-top: 18px; }
.vs-ticket > .vs-need { align-self: flex-start; margin-top: 12px; }
.vs-ticket__rsvp { margin-top: 18px; }
.vs-ticket__rsvp:empty { display: none; }
/* Метки ответа в билете — бумагой: решение после ревью задачи 2. */
.vs-ticket .vs-chip--late, .vs-ticket .vs-chip--notgoing, .vs-ticket .vs-chip--cancelled { background: transparent; border: 1px solid var(--paper); color: var(--paper); }

/* Шапка команды. Пятно за числом — центр тела: у правого края затемнение 45 %, оранжевому числу на белом пикселе нужно ≥92,4 %. */
.vs-teamhead { position: relative; border: 1px solid var(--line); background: radial-gradient(ellipse 130px 90px at calc(100% - 50px) calc(50% + 21px), color-mix(in srgb, var(--panel-solid) 87%, transparent) 60%, transparent), linear-gradient(90deg, color-mix(in srgb, var(--panel-solid) 96%, transparent) 34%, color-mix(in srgb, var(--panel-solid) 70%, transparent) 70%, color-mix(in srgb, var(--panel-solid) 45%, transparent) 100%), var(--vs-img, none) center / cover no-repeat, var(--panel-solid); }
/* Своя картинка может быть любой, хоть белой: от верха глифов названия — ровные 76 %, текст ≥4,5:1 и на белом пикселе. */
.vs-teamhead--custom { background: radial-gradient(ellipse 130px 90px at calc(100% - 50px) calc(50% + 21px), color-mix(in srgb, var(--panel-solid) 92%, transparent) 60%, transparent), linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 28%, transparent) 36px, color-mix(in srgb, var(--panel-solid) 76%, transparent) 52px), var(--vs-img, none) center / cover no-repeat, var(--panel-solid); }
.vs-teamhead__pick { position: absolute; top: 8px; right: 8px; }
.vs-teamhead__body { display: flex; align-items: center; gap: 16px; padding: 64px 16px 22px; }
.vs-teamhead__text { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vs-teamhead__name { --fit-min: 20px; --fit-max: 56px; margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; line-height: 0.85; text-transform: uppercase; }
.vs-teamhead__city { font-size: 15px; line-height: 20px; color: var(--ink-soft); overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.vs-teamhead__count { flex-shrink: 0; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.vs-teamhead__count b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 48px; line-height: 0.85; color: var(--action-ink); }
.vs-teamhead__count span { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* Строки команды: состав и ссылки */
.vs-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.vs-row__num { flex-shrink: 0; min-width: 44px; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 1; text-align: center; color: var(--ink-soft); }
.vs-row__headline { font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 22px; line-height: 1; text-transform: uppercase; }

/* Карточки лиг на экране «Лиги» (LeagueCard/README.md): постер лиги, своё место, матч и верх таблицы. Ссылка названия растянута на карточку. */
.vs-leagues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.vs-leagues > li { min-width: 0; container-type: inline-size; }
.vs-league { position: relative; isolation: isolate; height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); color: var(--ink); transition: border-color var(--dur-fast); }
.vs-league:has(.vs-league__link:hover) { border-color: color-mix(in srgb, var(--action) 45%, var(--line)); }
/* Снимок — из --vs-img, без него — градиент из индиго. Текст на снимок не ложится: под ним затемнение заголовка. */
.vs-league__poster { display: flex; flex-direction: column; min-height: 248px; background: linear-gradient(180deg, color-mix(in srgb, var(--panel-solid) 40%, transparent), transparent 80px), var(--vs-img, linear-gradient(160deg, color-mix(in srgb, var(--indigo) 60%, var(--panel-solid)), var(--panel-solid))) 50% 40% / cover no-repeat, var(--panel-solid); }
.vs-league__top { display: flex; justify-content: flex-end; min-height: 36px; padding: 14px 13px 0 16px; }
/* С верха подписи сезона — не меньше 90 %: action-hi и ink читаются ≥4,5:1 и на белом пикселе снимка. */
.vs-league__title { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 72px 16px 2px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--panel-solid) 90%, transparent) 72px, var(--panel-solid)); }
.vs-league__season { margin: 0; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--action-hi); }
.vs-league__link { display: block; color: inherit; text-decoration: none; outline: none; }
.vs-league__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.vs-league__link:focus-visible::after { box-shadow: inset 0 0 0 2px var(--focus); }
.vs-league__name { --fit-min: 28px; --fit-max: 60px; margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; line-height: 0.86; text-transform: uppercase; }
.vs-league__me { display: flex; align-items: center; gap: 12px; padding: 14px 16px 18px; }
.vs-league__who { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vs-league__teamname { font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 24px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.vs-league__record { font-size: 14px; line-height: 18px; color: var(--ink-soft); }
.vs-league__place { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vs-league__place b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 64px; line-height: 0.8; color: var(--action-ink); }
.vs-league__place > span, .vs-league__stat > span { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--ink-soft); }
/* У организатора без своей команды в лиге — числа лиги вместо места. */
.vs-league__stats { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 14px 16px 18px; }
.vs-league__stat { display: flex; flex-direction: column; gap: 4px; }
.vs-league__stat b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 48px; line-height: 0.8; }
.vs-league__empty { margin: 0; padding: 14px 16px 18px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.vs-league__info { display: flex; flex-direction: column; }
.vs-league__match, .vs-league__table { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.vs-league__label { margin: 0 0 12px; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
/* Матч — как матч-ап события: гербы по краям (свой в цвете команды, прочие на индиго), между ними время или счёт. */
.vs-league__vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; }
.vs-league__side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.vs-league__sidename { max-width: 100%; font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 18px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.vs-league__when { display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 2px; }
/* Итог своей команды — меткой под датой, как у матча события: «Победа» бумагой, «Поражение» и «Неявка» индиго. */
.vs-league__when > .vs-chip { margin-top: 4px; }
.vs-league__when b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 38px; line-height: 0.85; font-variant-numeric: normal; }
.vs-league__date { font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: var(--ink-soft); }
/* Тройка — плитками в ряд; полоса и номер места — золото, серебро и бронза редкости. Очкам тесно рядом с местом — уходят строкой ниже. */
.vs-league__podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.vs-league__step { --place: var(--rarity-gold); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; padding: 9px 8px 10px; border-top: 3px solid var(--place); background: var(--tile); }
.vs-league__step:nth-child(2) { --place: var(--rarity-silver); }
.vs-league__step:nth-child(3) { --place: var(--rarity-bronze); }
.vs-league__step.is-me { background: color-mix(in srgb, var(--action) 16%, var(--tile)); }
.vs-league__pos { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 32px; line-height: 0.8; color: var(--place); }
.vs-league__club { order: 2; flex-basis: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 16px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.vs-league__step.is-me .vs-league__club { color: var(--action-hi); }
.vs-league__pts { order: 1; display: flex; align-items: baseline; gap: 3px; }
.vs-league__pts b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; line-height: 0.8; }
.vs-league__pts span { font-size: 10px; line-height: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
/* Одна лига на широком экране: постер слева, матч и таблица справа. */
@container (min-width: 640px) {
  .vs-league { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .vs-league__poster { grid-area: 1 / 1; min-height: 300px; }
  .vs-league__me, .vs-league__stats, .vs-league__empty { grid-area: 2 / 1; }
  .vs-league__info { grid-area: 1 / 2 / 3 / 3; justify-content: center; border-left: 1px solid var(--line); }
  .vs-league__match { border-top: 0; }
  .vs-league__name { --fit-max: 80px; }
}

/* Турнир — Tournament/README.md */
.vs-fixture { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; text-align: left; }
.vs-fixture__head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 16px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.vs-fixture__where { font-weight: 800; color: var(--ink-soft); }
.vs-fixture__head > .vs-chip { height: 22px; margin-left: 3px; font-size: 10px; }
.vs-fixture__side { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; font-size: 15px; line-height: 20px; }
.vs-fixture__name { min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
/* Сторона ещё не определилась: «1-е место группы А», «Победитель А1–Б2». */
.vs-fixture__side--wait .vs-fixture__name { color: var(--ink-muted); }
.vs-fixture__side.is-me .vs-fixture__name { font-weight: 800; color: var(--action-hi); }
.vs-fixture__score { flex-shrink: 0; font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 22px; line-height: 20px; color: var(--ink-muted); }
b.vs-fixture__score { font-weight: 900; color: var(--ink); }
.vs-fixture--live .vs-fixture__score { font-weight: 900; color: var(--action-ink); }
/* Игры пары плей-офф лиги: «Игра 2 · …» и счёт матча глазами пары; у организатора строка — кнопка. */
.vs-fixture__games { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.vs-fixture__game { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.vs-fixture__game > :first-child { min-width: 0; overflow-wrap: break-word; }
.vs-fixture__game > :not(:first-child) { flex-shrink: 0; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.vs-fixture__game > b:not(:first-child) { font-weight: 900; color: var(--action-ink); }
button.vs-fixture__game { width: 100%; min-height: 32px; margin: 0; padding: 4px 0; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background var(--dur-fast); }
button.vs-fixture__game:hover { background: var(--raised); }
button.vs-fixture__game:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.vs-court-grid { container-type: inline-size; }
.vs-court-grid__wide { display: none; overflow-x: auto; overflow-y: hidden; }
.vs-court-grid__item { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 76px; padding: 10px 14px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; }
.vs-court-grid__time { flex-shrink: 0; min-width: 48px; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 24px; line-height: 1; color: var(--ink-soft); }
.vs-court-grid__table { width: 100%; border-collapse: collapse; }
.vs-court-grid__table th { padding: 8px 10px; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; white-space: nowrap; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
.vs-court-grid__table tbody th { width: 64px; padding: 12px 10px; vertical-align: top; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--ink-soft); border-bottom-color: var(--line-soft); }
.vs-court-grid__table td { padding: 0; vertical-align: top; border-bottom: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.vs-court-grid__cell { display: flex; width: 100%; min-width: 148px; min-height: 76px; padding: 10px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; }
.vs-court-grid__cell > .vs-fixture { max-width: 280px; }
button.vs-court-grid__item, button.vs-court-grid__cell { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background var(--dur-fast); }
button.vs-court-grid__item:hover, button.vs-court-grid__cell:hover { background: var(--raised); }
button.vs-court-grid__item:focus-visible, button.vs-court-grid__cell:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
@container (min-width: 640px) {
  .vs-court-grid__list { display: none; }
  .vs-court-grid__wide { display: block; }
}
.vs-bracket { container-type: inline-size; }
.vs-bracket__rounds { display: flex; flex-direction: column; }
.vs-bracket__round { display: flex; flex-direction: column; min-width: 0; }
.vs-bracket__round + .vs-bracket__round { border-top: 1px solid var(--line); }
.vs-bracket__title { margin: 0; padding: 12px 14px 0; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.vs-bracket__pairs { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.vs-bracket__pair { display: flex; padding: 10px 14px 12px; }
.vs-bracket__pair + .vs-bracket__pair { border-top: 1px solid var(--line-soft); }
@container (min-width: 640px) {
  .vs-bracket__rounds { flex-direction: row; overflow-x: auto; }
  .vs-bracket__round { flex: 1 0 184px; }
  .vs-bracket__round + .vs-bracket__round { border-top: 0; border-left: 1px solid var(--line); }
  .vs-bracket__pairs { flex: 1; justify-content: space-around; padding: 4px 0 8px; }
  .vs-bracket__pair { margin: 6px 10px; padding: 8px 10px 10px; border: 1px solid var(--line-soft); background: var(--tile); }
  .vs-bracket__pair + .vs-bracket__pair { border-top: 1px solid var(--line-soft); }
}

/* Подбор площадки: лист добавления (VenueCreate) и варианты поля площадки */
.vs-venues { margin: 0; padding: 0; list-style: none; }
.vs-venues > li { border-bottom: 1px solid var(--line); }
.vs-venues__opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 4px; border: 0; background: transparent; color: var(--ink); font: 400 15px/20px var(--font-text); text-align: left; cursor: pointer; }
.vs-venues__opt:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.vs-venues__opt--addr { min-height: 56px; }
.vs-venues__lead { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--raised); color: var(--paper); }
.vs-venues__lead > .vs-ico { width: 22px; height: 22px; }
.vs-venues__lead--plain { background: transparent; color: var(--ink-muted); }
.vs-venues__lead--plain > .vs-ico { width: 20px; height: 20px; }
.vs-venues__text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.vs-venues__name { font-size: 17px; line-height: 22px; font-weight: 700; }
.vs-venues__addr { font-size: 16px; line-height: 21px; }
.vs-venues__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-venues__text > .vs-tag { margin-top: 3px; }
.vs-venues__warn { display: flex; flex-shrink: 0; align-items: flex-start; gap: 10px; margin: 10px 0 0; font-size: 14px; line-height: 19px; }
.vs-venues__warn > .vs-ico { flex-shrink: 0; width: 20px; height: 20px; color: var(--streak); }
.vs-venues__manual { display: flex; flex-shrink: 0; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 8px; padding: 8px 4px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 15px/20px var(--font-text); text-align: left; cursor: pointer; }
.vs-venues__manual > span { flex: 1; min-width: 0; }
.vs-venues__manual > .vs-ico { flex-shrink: 0; width: 20px; height: 20px; margin-inline: 10px; color: var(--ink-soft); }
.vs-venues__manual > .vs-ico:last-child { width: 18px; height: 18px; margin-inline: 0; color: var(--ink-muted); }
.vs-venues__manual:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
/* Поле площадки (VenueField); отступ прокрутки — зазор, когда телефон поднимает поле над клавиатурой. */
.vs-combo { scroll-margin-top: 12px; }
.vs-combo__box { position: relative; }
.vs-combo__box > .vs-input { padding-right: 48px; text-overflow: ellipsis; }
.vs-combo__caret { position: absolute; top: 12px; right: 16px; color: var(--action); pointer-events: none; }
/* Копирует нажатие по всему блоку, а не только по значку. */
.vs-copy { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--tile); color: var(--ink); font: 700 16px/22px var(--font-text); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color var(--dur-fast); }
.vs-copy:hover { border-color: var(--action); }
.vs-copy:focus-visible { outline: none; border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.vs-copy__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vs-copy > .vs-ico { flex-shrink: 0; width: 20px; height: 20px; color: var(--action); }
.vs-combo__clear { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: var(--size-touch); height: var(--size-touch); padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-soft); cursor: pointer; }
.vs-combo__clear > .vs-ico { width: 20px; height: 20px; }
.vs-combo__clear:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-combo__popup { box-sizing: border-box; width: var(--anchor-width); max-width: var(--available-width); max-height: min(var(--available-height), 336px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel-solid); outline: none; }
.vs-combo__note { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 19px; color: var(--ink-muted); }
.vs-combo__note:empty { padding: 0; border: 0; }
.vs-combo__note--error { color: var(--danger-ink); }
.vs-combo__opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink); font: 400 15px/20px var(--font-text); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.vs-combo__opt:last-child { border-bottom: 0; }
.vs-combo__opt[data-highlighted] { background: var(--raised); }
.vs-combo__opt[data-selected] .vs-venues__name { color: var(--action-hi); }
.vs-combo__create { flex: 1; min-width: 0; font-size: 16px; line-height: 21px; overflow-wrap: anywhere; }
.vs-combo__create > b { font-weight: 800; }
/* Адрес новой площадки */
.vs-addrbox { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 4px 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-solid); }
.vs-addrbox > .vs-ico { flex-shrink: 0; width: 20px; height: 20px; color: var(--ink-soft); }
.vs-addrbox__text { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 16px; line-height: 21px; overflow-wrap: anywhere; }
.vs-addrbox__note { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.vs-addrbox__action { display: inline-flex; flex-shrink: 0; align-items: center; min-height: var(--size-touch); padding: 0 10px; border: 0; background: transparent; color: var(--action-hi); font: 700 15px/20px var(--font-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.vs-addrbox__action:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-addrbox__action:disabled { opacity: 0.4; cursor: not-allowed; }
/* Карта Tiles API: логотип Яндекса в углу со ссылкой — условие Tiles API */
.vs-map { position: absolute; inset: 0; isolation: isolate; }
.vs-map__logo { position: absolute; bottom: 0; left: 0; z-index: 1; display: block; line-height: 0; }
.vs-map__logo > img { display: block; width: 88px; height: 48px; }
.vs-map__logo:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.vs-map__blank { background: linear-gradient(var(--line-soft) 2px, transparent 2px) 0 0 / 64px 64px, linear-gradient(90deg, var(--line-soft) 2px, transparent 2px) 0 0 / 64px 64px, var(--panel-solid); }
.vs-mappin { color: var(--action); }
.vs-mappin--other { color: var(--paper); }
.vs-mappin > svg { display: block; width: 100%; height: 100%; }
.vs-minimap { position: relative; overflow: hidden; height: 150px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-solid); }
.vs-minimap--card { height: 110px; border: 0; border-radius: 0; }
.vs-minimap--card .vs-map__logo > img { width: 66px; height: 36px; }
.vs-minimap__line { color: var(--ink-soft); }
.vs-minimap__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--size-touch); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-minimap__row > .vs-addrbox__action { padding-inline: 4px; }
/* Точка на карте (VenueMapPoint.dc.html) */
.vs-mappoint { display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: var(--bg); color: var(--ink); }
.vs-mappoint__bar { display: grid; grid-template-columns: var(--size-touch) 1fr var(--size-touch); align-items: center; min-height: 74px; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); background: var(--bg); }
.vs-mappoint__head { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.vs-mappoint__title { margin: 0; font-size: 17px; line-height: 22px; font-weight: 800; }
.vs-mappoint__sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.vs-mappoint__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.vs-mappoint__hint { position: absolute; top: calc(50% - 112px); left: 50%; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; transform: translateX(-50%); border: 1px solid var(--line); background: var(--panel-header); font-size: 14px; line-height: 18px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.vs-mappoint__hint > .vs-ico { width: 18px; height: 18px; color: var(--paper); }
.vs-mappoint__shadow { position: absolute; top: 50%; left: 50%; z-index: 1; width: 24px; height: 8px; margin: -4px 0 0 -12px; border-radius: var(--radius-full); background: var(--scrim); pointer-events: none; }
.vs-mappoint__pin { position: absolute; top: 50%; left: 50%; z-index: 1; width: 48px; height: 48px; margin: -44px 0 0 -24px; pointer-events: none; }
.vs-mappoint__zoom { position: absolute; top: calc(50% + 96px); right: 12px; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.vs-mappoint__zoombtn { display: flex; align-items: center; justify-content: center; width: var(--size-touch); height: var(--size-touch); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-solid); color: var(--ink); cursor: pointer; }
.vs-mappoint__zoombtn > .vs-ico { width: 18px; height: 18px; }
.vs-mappoint__zoombtn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-mappoint__foot { padding: 14px 16px 20px; border-top: 1px solid var(--line); background: var(--bg); }
/* Лист «тот же дом / рядом / уже есть» */
.vs-venuecard { display: block; border: 1px solid var(--line); background: var(--panel-solid); }
.vs-venuecard__body { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 14px; }
.vs-venuecard__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.vs-venuecard__name { font-size: 17px; line-height: 22px; font-weight: 700; }
.vs-venuecard__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-venuecard__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 14px 0; font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.vs-venuecard__dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: var(--radius-full); background: var(--action); vertical-align: -1px; }
.vs-venuecard__dot--other { background: var(--paper); }
.vs-venuecard--pick { position: relative; padding-right: 36px; cursor: pointer; }
.vs-venuecard--pick:has(> input:checked) { border-color: var(--action); }
.vs-venuecards { display: flex; flex-direction: column; gap: 8px; }
/* Список площадок команды */
.vs-tag--icon > span { display: inline-flex; align-items: center; gap: 5px; }
.vs-venue--sm { font-size: 17px; }
/* Модерация площадок (VenuesModeration.dc.html): карточки на проверке и лист «Объединить с…». */
.vs-modcards { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vs-modcard { border: 1px solid var(--line); background: var(--panel-solid); }
.vs-modcard__head { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 0; }
.vs-modcard__name { margin: 0; font-size: 17px; line-height: 22px; font-weight: 800; overflow-wrap: anywhere; }
.vs-modcard__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow-wrap: anywhere; }
.vs-modcard__by { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.vs-modcard__similar { display: flex; align-items: flex-start; gap: 8px; margin: 8px 14px 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); overflow-wrap: anywhere; }
.vs-modcard__dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 4px; border-radius: var(--radius-full); background: var(--paper); }
/* Высота — у контейнера: карта появляется только у видимой карточки, и текст не должен прыгать. */
.vs-modcard__map { height: 96px; margin: 10px 14px 0; }
.vs-modcard__map .vs-minimap { height: 96px; }
.vs-modcard__map .vs-map__logo > img { width: 66px; height: 36px; }
.vs-modcard__actions { padding: 12px 14px 14px 20px; }
.vs-mergerow { display: flex; gap: 12px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vs-mergerow__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.vs-mergerow__name { font-size: 16px; line-height: 21px; font-weight: 700; }
.vs-mergerow__addr { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-mergerow__dist { flex-shrink: 0; max-width: 40%; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-soft); text-align: right; }
/* Скинуться — Money/README.md. */
.vs-option--mode { gap: 2px; min-height: 64px; padding: 10px 44px 10px 14px; }
.vs-option--mode > .vs-option__radio { top: 12px; right: 12px; }
.vs-option--mode .vs-option__label { font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.vs-option--mode .vs-option__note { font-size: 13px; line-height: 18px; }
.vs-share { padding: 14px 14px 16px; }
.vs-share__sum { display: flex; align-items: baseline; gap: 8px; margin: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 76px; line-height: 0.85; font-variant-numeric: tabular-nums; }
.vs-share__sum small { font-size: 40px; color: var(--ink-soft); }
.vs-share__how { margin: 10px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.vs-share__how + .vs-share__how { margin-top: 2px; }
.vs-payee { border-top: 1px solid var(--line-soft); }
.vs-payee__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vs-payee__text > dt { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.vs-payee__text > dd { margin: 0; font-size: 17px; line-height: 22px; font-weight: 700; overflow-wrap: anywhere; }
/* Номер копируют в банк: не переносится и выделяется целиком. */
.vs-payee__phone { font-variant-numeric: tabular-nums; white-space: nowrap; -webkit-user-select: all; user-select: all; }
.vs-paystate { min-height: 72px; border-top: 1px solid var(--line-soft); }
.vs-paystate > .vs-ico { flex-shrink: 0; width: 24px; height: 24px; color: var(--paper); }
.vs-paystate__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vs-paystate__title { font-weight: 700; }
.vs-paystate--ok .vs-paystate__title { color: var(--positive); }
.vs-paystate__sub { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
/* Аренда до отметки «был»: доли ещё нет, строка — единственное тело панели. */
.vs-paystate--wait { align-items: flex-start; padding: 16px 14px 18px; border-top: 0; }
.vs-paystate--wait > .vs-ico { width: 28px; height: 28px; }
.vs-paystate--wait .vs-paystate__title { font-size: 17px; line-height: 22px; }
/* Плашка в потоке, а не тост: должна остаться над реквизитами, пока перевод не отмечен. */
.vs-toast--plaque.vs-toast--warning { border-color: var(--warning); background: var(--panel-solid); }
.vs-toast--plaque.vs-toast--warning > .vs-ico { color: var(--warning); }
.vs-paytally { padding: 14px 14px 16px; }
.vs-paysum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.vs-paysum__big { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 40px; line-height: 0.9; text-transform: uppercase; }
.vs-paysum__ok { font-size: 15px; font-weight: 700; color: var(--positive); }
.vs-paybar { display: flex; height: 8px; margin-top: 14px; background: var(--raised); }
.vs-paybar > i { width: var(--vs-part, 0%); }
.vs-paybar__ok { background: var(--paper); }
.vs-paybar__wait { background: var(--action); }
.vs-paylegend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.vs-paylegend > li { display: flex; align-items: center; gap: 6px; }
.vs-paylegend > li::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; box-sizing: border-box; border: 1px solid var(--line-strong); background: var(--raised); }
.vs-paylegend > .vs-paylegend__ok::before { border: 0; background: var(--paper); }
.vs-paylegend > .vs-paylegend__wait::before { border: 0; background: var(--action); }
.vs-paydone { display: flex; align-items: center; gap: 12px; margin: 0; }
.vs-paydone > .vs-ico { flex-shrink: 0; width: 36px; height: 36px; color: var(--paper); }
.vs-paydone__title { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 34px; line-height: 0.95; text-transform: uppercase; }
.vs-paystatus--claimed { color: var(--action-hi); }
.vs-paystatus--confirmed { color: var(--positive); }
.vs-payrow__check { flex-shrink: 0; width: 20px; height: 20px; color: var(--paper); }
/* Гость — под пригласившим во всю ширину строки списка (vs-list--md переносит). */
.vs-payguest { display: flex; flex-basis: 100%; align-items: center; gap: 8px; min-height: 32px; padding-left: 44px; }
.vs-payguest__name { min-width: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.vs-tag--line { border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); }
/* Гости «+1»: RsvpGuests.dc.html, RosterGuests.dc.html. */
.vs-rsvp-guests { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; padding-left: 6px; }
.vs-tag--guest { height: var(--size-touch); padding: 0 0 0 12px; box-sizing: border-box; border: 1px solid var(--line); background: var(--panel-header); font-size: 13px; letter-spacing: 0.04em; }
.vs-tag--guest > span { display: inline-flex; align-items: center; gap: 8px; }
.vs-tag--guest > span > .vs-ico { width: 16px; height: 16px; color: var(--ink-soft); }
.vs-tag--guest > button { display: flex; align-items: center; justify-content: center; width: 40px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.vs-tag--guest > button > .vs-ico { width: 16px; height: 16px; transform: skewX(calc(var(--skew) * -1)); }
.vs-tag--guest > button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-tag--guest > button:disabled { opacity: 0.4; cursor: not-allowed; }
/* Значок гостя — маской: иконка из JS попала бы в первую загрузку. */
.vs-list--sm .vs-list__item--guest { gap: 10px; padding-left: 34px; }
.vs-guestava { --person: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 256 256%22 fill=%22%23000%22%3E%3Cpath d=%22M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z%22/%3E%3C/svg%3E"); flex-shrink: 0; width: 32px; height: 32px; box-sizing: border-box; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.vs-guestava::before { content: ""; display: block; width: 18px; height: 18px; margin: 6px; background: var(--ink-soft); -webkit-mask: var(--person) center / contain no-repeat; mask: var(--person) center / contain no-repeat; }
.vs-guestava--sm { width: 24px; height: 24px; }
.vs-guestava--sm::before { width: 14px; height: 14px; margin: 4px; }
/* Составы (LineupTeams.dc.html, LineupPlayer.dc.html); сторона — vs-panel с vs-team--<цвет>. */
.vs-side::before { content: ""; display: block; height: 6px; background: var(--team); }
.vs-side__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 4px 14px 4px 10px; background: var(--panel-header); border-bottom: 1px solid var(--line-soft); }
.vs-side__name { margin: 0; min-width: 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.vs-side__rename { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: var(--size-touch); padding: 0 4px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.vs-side__rename > .vs-ico { flex-shrink: 0; width: 16px; height: 16px; color: var(--ink-muted); }
.vs-side__rename:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-side__meta { flex-shrink: 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.vs-side__pos { flex-shrink: 0; width: 20px; font-size: 13px; font-weight: 800; text-align: center; color: var(--ink-muted); }
.vs-side__lvl { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 900; font-style: normal; font-size: 18px; line-height: 1; }
.vs-side__lvl--none { color: var(--ink-muted); }
.vs-side__you { margin: 0; padding: 14px 16px; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.vs-side__swatch { flex-shrink: 0; width: 28px; height: 20px; margin-left: 4px; box-sizing: border-box; border: 1px solid var(--line-strong); background: var(--team); }
/* Ответ изменился после сохранения состава (LineupStale.dc.html). */
.vs-row--gone > .vs-avatar, .vs-row--gone > .vs-side__lvl { opacity: 0.45; }
.vs-row--gone .vs-row__title { color: var(--ink-muted); }
.vs-tag--warning { border: 1px solid var(--warning); background: transparent; color: var(--warning); }
.vs-avatar--sm.vs-avatar--me { width: 32px; height: 32px; font-size: 14px; }
/* «Сохранено · видит вся команда» (LineupSaved.dc.html). */
.vs-attended--sm { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--paper); }
.vs-attended--sm > .vs-ico { width: 16px; height: 16px; }
/* Игры вечера (EveningGames.dc.html, GameDisputed.dc.html, EveningGamesPlayer.dc.html). */
.vs-games__sum { padding: 14px; }
.vs-games__bar { display: flex; gap: 2px; height: 8px; }
.vs-games__part { flex: var(--vs-n, 1) 1 0; background: var(--team); }
.vs-games__part--draw { background: var(--indigo); }
.vs-games__wins { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 12px 0 0; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 28px; text-transform: uppercase; overflow-wrap: anywhere; }
.vs-games__win { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.vs-games__mark { flex-shrink: 0; width: 6px; height: 20px; background: var(--team); }
.vs-games__draws { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.vs-games__list { margin: 0; padding: 0; list-style: none; }
.vs-games__list > li { border-top: 1px solid var(--line-soft); }
.vs-games__row { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 6px 6px 14px; }
.vs-games__head { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; padding: 5px 0; }
.vs-games__line { margin: 0; font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.vs-games__lead, .vs-games__lost { color: var(--ink-muted); }
.vs-games__won { font-weight: 800; color: var(--ink); }
.vs-games__acts { gap: 10px 12px; padding: 0 14px 14px 20px; }
.vs-games__mine { display: flex; align-items: center; gap: 8px; min-height: 28px; margin: 0; padding: 0 14px 12px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.vs-games__mine > .vs-ico { flex-shrink: 0; width: 18px; height: 18px; }
.vs-games__add { padding: 14px 20px 16px; }
.vs-games__list + .vs-games__add { border-top: 1px solid var(--line-soft); }
.vs-games__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 14px 16px; color: var(--ink-soft); }
.vs-games__side { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
/* Лист «Новая игра» (GameAddSheet.dc.html). */
.vs-gameside { position: relative; display: block; min-width: 0; box-sizing: border-box; border: 1px solid var(--line); background: var(--panel-header); color: var(--ink); text-align: left; }
.vs-gameside::before { content: ""; display: block; height: 6px; background: var(--team); }
.vs-gameside__name { display: block; padding: 12px 12px 14px; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 24px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
button.vs-gameside { width: 100%; min-height: 64px; margin: 0; padding: 0; border-width: 2px; font: inherit; cursor: pointer; }
button.vs-gameside .vs-gameside__name { padding: 10px 26px 12px 10px; font-size: 20px; }
.vs-gameside[aria-pressed="true"] { border-color: var(--action); }
.vs-gameside:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-gameside__check { position: absolute; right: 6px; bottom: 8px; width: 18px; height: 18px; color: var(--action); }
.vs-gamesides__vs { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
/* План тренировок (Plan/README.md). */
.vs-focuses { display: flex; flex-wrap: wrap; gap: 10px 2px; margin: 0; padding: 0 0 0 1px; }
.vs-tag--focus { position: relative; height: auto; min-height: var(--size-touch); box-sizing: border-box; border: 1px solid var(--line); background: var(--panel-solid); color: var(--ink-soft); font-size: 13px; line-height: 16px; letter-spacing: 0.06em; white-space: normal; cursor: pointer; }
.vs-tag--focus > span { display: inline-flex; align-items: center; gap: 6px; overflow: visible; }
.vs-tag--focus > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vs-tag--focus .vs-ico { width: 14px; height: 14px; }
.vs-tag--focus:has(> input:checked) { border-color: var(--paper); background: var(--paper); color: var(--on-paper); }
.vs-tag--focus:has(> input:focus-visible) { box-shadow: var(--focus-ring); }
.vs-tag--focus:has(> input:disabled) { opacity: 0.4; cursor: not-allowed; }
.vs-tag--focus > input:disabled { cursor: not-allowed; }
.vs-step__note { font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.vs-step--current .vs-step__note { color: var(--action-ink); }
.vs-step--missed .vs-step__bar { box-sizing: border-box; border: 1px dashed var(--line-strong); background: transparent; }
.vs-quote { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel-solid); }
.vs-quote__mark { width: 18px; height: 18px; color: var(--action); }
.vs-quote__text { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); }
.vs-quote__by { font-size: 13px; line-height: 17px; font-weight: 700; color: var(--ink-soft); }
.vs-moment .vs-quote { align-items: center; max-width: 320px; padding: 0; border: 0; background: transparent; }
.vs-moment .vs-quote__text { font-size: 16px; line-height: 22px; }
.vs-planmark { flex-shrink: 0; width: 28px; height: 28px; color: var(--ink-muted); }
.vs-planmark--done { color: var(--positive); }
.vs-planmark--part { color: var(--action-ink); }
.vs-planitem { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; }
.vs-planitem > .vs-check { flex: 1; min-width: 0; min-height: 68px; padding: 10px 0; }
.vs-planitem__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vs-planitem__name { font-size: 16px; line-height: 20px; font-weight: 700; color: var(--ink); overflow-wrap: break-word; }
.vs-planitem__how { flex-shrink: 0; }
.vs-planitem__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; line-height: 17px; color: var(--ink-soft); }
.vs-planitem__meta > span { white-space: nowrap; }
.vs-planline { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.vs-gain { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 8px 14px; }
.vs-gain__text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.vs-gain__name { font-size: 16px; line-height: 20px; font-weight: 700; }
.vs-gain__pct { font-size: 13px; line-height: 17px; color: var(--ink-muted); }
.vs-gain__nums { display: flex; flex-shrink: 0; align-items: center; gap: 8px; white-space: nowrap; }
.vs-gain__nums > .vs-ico { width: 16px; height: 16px; color: var(--ink-soft); }
.vs-gain__before { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 1; color: var(--ink-muted); }
.vs-gain__after { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 36px; line-height: 1; color: var(--action-ink); }
.vs-weektiles { display: flex; gap: 8px; padding: 6px 12px; }
.vs-tag--week { justify-content: center; width: 56px; height: 96px; padding: 0; box-sizing: border-box; border: 2px solid var(--line); background: transparent; color: var(--ink-muted); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 44px; line-height: 1; letter-spacing: 0; }
.vs-tag--week.vs-tag--paper { border-color: var(--paper); background: var(--paper); color: var(--on-paper); }
.vs-tag--week .vs-ico { width: 36px; height: 36px; }

/* ===== Дорожная карта: /roadmap на сайте и /ideas в приложении (Roadmap/README.md) ===== */

/* Этапы — ol, пункты — li. До 900 px путь идёт сверху вниз, шире — ряды видов спорта под трассой. */
.vs-roadmap { --rm-node: 28px; --rm-track: 6px; --rm-gap: 12px; --rm-dash: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px); container-type: inline-size; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* Внутри графика: легенда переключателя у vs-choice иначе растянута на всю ширину. */
.vs-roadmap .vs-roadmap__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vs-roadmap__lanes { display: none; }
.vs-roadmap__stages { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; min-width: 0; }
.vs-roadmap__stage { position: relative; display: flex; flex-direction: column; gap: var(--rm-gap); min-width: 0; padding: 0 0 32px calc(var(--rm-node) + 14px); }
/* Отрезок трассы — от узла этапа до узла следующего. */
.vs-roadmap__stage::before { content: ""; position: absolute; top: calc(var(--rm-node) / 2); bottom: calc(var(--rm-node) / -2); left: calc((var(--rm-node) - var(--rm-track)) / 2); width: var(--rm-track); background: var(--rm-dash); }
.vs-roadmap__stage--done::before { background: var(--action); }
.vs-roadmap__stage--now::before { background: linear-gradient(var(--action), var(--action)) left top / 100% 50% no-repeat, var(--rm-dash); }
/* Идеи открыты: трасса за последним узлом тает, а не обрывается. */
.vs-roadmap__stage:last-child::before { bottom: 0; mask-image: linear-gradient(to bottom, black, transparent); }
.vs-roadmap__head { margin: 0; display: flex; flex-direction: column; gap: 4px; min-height: var(--rm-node); }
.vs-roadmap__node { position: absolute; z-index: 1; top: 0; left: 0; width: var(--rm-node); height: var(--rm-node); box-sizing: border-box; border: 3px solid var(--line-strong); border-radius: var(--radius-full); background: var(--bg); }
.vs-roadmap__stage--done .vs-roadmap__node { border: 0; background: var(--gradient-action); }
.vs-roadmap__stage--done .vs-roadmap__node::after { content: ""; position: absolute; top: 46%; left: 50%; width: 8px; height: 14px; box-sizing: border-box; border: solid var(--on-action); border-width: 0 3px 3px 0; translate: -50% -50%; rotate: 45deg; }
.vs-roadmap__stage--now .vs-roadmap__node { border-color: var(--action); }
.vs-roadmap__stage--now .vs-roadmap__node::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; background: var(--action); }
.vs-roadmap__stage--now .vs-roadmap__node::before { content: ""; position: absolute; inset: -3px; border: 2px solid var(--action); border-radius: inherit; animation: vs-roadmap-pulse 1.8s var(--ease-out) infinite; }
.vs-roadmap__stage--idea .vs-roadmap__node { border-style: dashed; }
@keyframes vs-roadmap-pulse { from { opacity: 0.9; scale: 1; } to { opacity: 0; scale: 1.9; } }
.vs-roadmap__name { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 28px; line-height: 1; letter-spacing: -0.005em; text-transform: uppercase; color: var(--ink); }
.vs-roadmap__stage--now .vs-roadmap__name { color: var(--action-ink); }
.vs-roadmap__stage--idea .vs-roadmap__name { color: var(--ink-soft); }
.vs-roadmap__total, .vs-roadmap__count { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
/* Число пунктов вида спорта — на телефоне, где виден один вид; у диктора итог этапа в заголовке. */
.vs-roadmap__count { margin-top: -8px; }
.vs-roadmap__cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vs-roadmap__cell--empty { min-height: var(--size-touch); box-sizing: border-box; align-items: center; justify-content: center; border: 1px dashed var(--line); }
.vs-roadmap__none { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-roadmap__items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vs-roadmap__item { min-width: 0; border: 1px solid var(--line); background: var(--panel-solid); }
.vs-roadmap__stage--done .vs-roadmap__item { border-left: 3px solid var(--action); }
.vs-roadmap__stage--now .vs-roadmap__item { border-color: var(--action); }
.vs-roadmap__stage--idea .vs-roadmap__item { border-style: dashed; border-color: var(--line-strong); background: transparent; }
/* Описание раскрывается под названием: на графике — только названия. */
.vs-roadmap__summary { position: relative; display: block; padding: 11px 32px 11px 12px; list-style: none; cursor: pointer; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); overflow-wrap: break-word; transition: background var(--dur-fast); }
.vs-roadmap__summary::-webkit-details-marker { display: none; }
.vs-roadmap__summary::after { content: ""; position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; box-sizing: border-box; border: solid var(--ink-muted); border-width: 0 2px 2px 0; rotate: 45deg; transition: rotate var(--dur-fast) var(--ease-out); }
.vs-roadmap__card[open] > .vs-roadmap__summary::after { top: 19px; rotate: 225deg; }
.vs-roadmap__summary:hover { background: var(--panel-header); }
.vs-roadmap__summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-roadmap__summary .vs-ico { width: 18px; height: 18px; margin: -3px 6px 0 0; color: var(--ink-muted); }
.vs-roadmap__text { margin: 0; padding: var(--space-1) 12px 12px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.vs-roadmap__vote { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: var(--space-1) 12px 12px; }
.vs-roadmap__vote[hidden] { display: none; }
.vs-roadmap__votes { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); }
.vs-roadmap__votes .vs-ico { width: 18px; height: 18px; color: var(--action-ink); }
.vs-roadmap__all { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: var(--size-touch); margin: 0; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: 0; background: transparent; color: var(--ink-soft); font-family: var(--font-text); font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background var(--dur-fast); }
.vs-roadmap__all:hover { background: var(--panel-header); }
.vs-roadmap__all:focus-visible, .vs-roadmap__all:has(> input:focus-visible) { outline: none; box-shadow: var(--focus-ring); }
.vs-roadmap__all-hide { display: none; }
.vs-roadmap__all:has(> input:checked) > .vs-roadmap__all-show { display: none; }
.vs-roadmap__all:has(> input:checked) > .vs-roadmap__all-hide { display: inline; }
.vs-roadmap__votes b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; line-height: 1; color: var(--ink); }
/* Переключатель без скрипта: N-я вкладка показывает N-ю клетку каждого этапа — порядок видов спорта у них общий. */
@media (max-width: 899.98px) {
  .vs-roadmap__total { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .vs-roadmap:has(.vs-tab:nth-child(1) > input:checked) .vs-roadmap__cell:not(:nth-of-type(1)),
  .vs-roadmap:has(.vs-tab:nth-child(2) > input:checked) .vs-roadmap__cell:not(:nth-of-type(2)),
  .vs-roadmap:has(.vs-tab:nth-child(3) > input:checked) .vs-roadmap__cell:not(:nth-of-type(3)) { display: none; }
  /* Длинная клетка свёрнута до первых четырёх карточек: на сайте — галочкой без скрипта, в приложении — кнопкой. */
  .vs-roadmap__cell:has(> .vs-roadmap__all > input:not(:checked)) > .vs-roadmap__items > .vs-roadmap__item:nth-child(n+5),
  .vs-roadmap__cell:has(> .vs-roadmap__all[aria-expanded="false"]) > .vs-roadmap__items > .vs-roadmap__item:nth-child(n+5) { display: none; }
}
/* Ряды видов спорта — подсетка: высота ряда общая у подписи и у всех этапов. */
@media (min-width: 900px) {
  .vs-roadmap { --rm-node: 32px; --rm-dash: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); display: grid; grid-template-columns: 36px repeat(var(--rm-stages, 5), minmax(0, 1fr)); gap: 16px var(--rm-gap); }
  /* Этап без пунктов не выводится — колонок по числу этапов; style="" на сайте запрещает CSP. */
  .vs-roadmap:has(.vs-roadmap__stage:nth-child(4):last-child) { --rm-stages: 4; }
  .vs-roadmap:has(.vs-roadmap__stage:nth-child(3):last-child) { --rm-stages: 3; }
  .vs-roadmap:has(.vs-roadmap__stage:nth-child(2):last-child) { --rm-stages: 2; }
  .vs-roadmap__switch { display: none; }
  .vs-roadmap__lanes { grid-column: 1; grid-row: 2 / span 3; display: grid; grid-template-rows: subgrid; margin: 0; padding: 0; list-style: none; }
  .vs-roadmap__lane { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; color: var(--ink-soft); }
  .vs-roadmap__lane > span { writing-mode: vertical-rl; rotate: 180deg; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
  /* 100cqi — ширина всего графика: граница ряда идёт под всеми этапами. */
  .vs-roadmap__lane::before { content: ""; position: absolute; top: -8px; left: 0; width: 100cqi; border-top: 1px solid var(--line-soft); }
  .vs-roadmap__stages { grid-column: 2 / -1; grid-row: 1 / span 4; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
  .vs-roadmap__stage { grid-row: span 4; display: grid; grid-template-rows: subgrid; gap: normal; padding: 0; }
  .vs-roadmap__stage::before { top: calc((var(--rm-node) - var(--rm-track)) / 2); bottom: auto; left: calc(var(--rm-node) / 2); width: calc(100% + var(--rm-gap)); height: var(--rm-track); }
  .vs-roadmap__stage--now::before { background: linear-gradient(var(--action), var(--action)) left top / 50% 100% no-repeat, var(--rm-dash); }
  .vs-roadmap__stage:last-child::before { bottom: auto; width: calc(100% - var(--rm-node) / 2); mask-image: linear-gradient(to right, black, transparent); }
  .vs-roadmap__head { padding-top: calc(var(--rm-node) + 12px); }
  .vs-roadmap__name { font-size: 26px; }
  /* Пустая клетка не тянется на высоту ряда: ряд по самой высокой клетке с пунктами. */
  .vs-roadmap__cell--empty { align-self: start; height: var(--size-touch); }
  .vs-roadmap__all { display: none; }
  .vs-roadmap__none { display: none; }
  .vs-roadmap__count { display: none; }
  .vs-roadmap__summary { padding: 10px 26px 10px 10px; font-size: 14px; line-height: 18px; }
  .vs-roadmap__summary::after { top: 14px; right: 11px; }
  .vs-roadmap__card[open] > .vs-roadmap__summary::after { top: 17px; }
  .vs-roadmap__text { padding: var(--space-1) 10px 10px; font-size: 13px; line-height: 18px; }
  .vs-roadmap__vote { gap: 6px 10px; padding: var(--space-1) 10px 10px; }
}
/* Ввод матча (LiveScoring): табло, колонки игроков, действия игрока, лента событий, итог. */
.vs-live__period { margin: 0; padding: 0 14px 6px; text-align: center; font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--action-ink); }
.vs-live__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 8px 14px; border-top: 1px solid var(--line-soft); }
.vs-live-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.vs-live-side { display: flex; flex-direction: column; min-width: 0; }
.vs-live-side__list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 8px; list-style: none; }
.vs-live-side__fouls { margin-top: auto; padding: 8px 10px; font-size: 13px; line-height: 18px; font-weight: 700; }
.vs-live-side__fouls.is-warn { color: var(--warning); }
.vs-live-player { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no fouls" "name name"; align-content: center; align-items: baseline; column-gap: 6px; row-gap: 2px; width: 100%; min-height: var(--size-control); padding: 6px 10px 8px; margin: 0; border: 1px solid var(--line); border-radius: 0; background: var(--raised); color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vs-live-player:active:not(:disabled) { background: var(--line-strong); }
.vs-live-player:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-live-player:disabled { opacity: 0.4; cursor: not-allowed; }
.vs-live-player__no { grid-area: no; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 1; white-space: nowrap; }
.vs-live-player__name { grid-area: name; min-width: 0; font-size: 14px; line-height: 18px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vs-live-player__fouls { grid-area: fouls; font-size: 12px; line-height: 16px; font-weight: 800; color: var(--ink-muted); white-space: nowrap; }
.vs-live-player.is-warn { border-color: var(--warning); }
.vs-live-player.is-warn .vs-live-player__fouls { color: var(--warning); }
/* Семь действий — сетка 3 в ряд; узкие кнопки: поля меньше, чтобы «Промах 2» не рвался по буквам. */
.vs-live-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 4px 0 8px; }
.vs-live-actions .vs-btn { padding-inline: 6px; }
.vs-live-actions__wide { grid-column: 1 / -1; }
.vs-live-feed__event { flex: 1; min-width: 0; min-height: var(--size-touch); padding: 8px 0; margin: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; line-height: 20px; text-align: left; cursor: pointer; }
.vs-live-feed__event:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-live-feed__event:disabled { color: var(--ink-muted); cursor: default; }
/* Строки итога — семь колонок протокола: 2-х, 3-х и ШТ «попал/бросал». */
.vs-live-lines :is(th, td):first-child { width: 28px; padding-left: 6px; }
.vs-live-lines tbody td:first-child { font-size: 18px; }
.vs-live-lines :is(th, td):nth-child(3) { width: 30px; }
.vs-live-lines :is(th, td):nth-child(n+4):not(:last-child) { width: 36px; white-space: nowrap; }
.vs-live-lines :is(th, td):last-child { width: 30px; padding-right: 6px; }
.vs-live-lines tbody th { padding-block: 6px; font-size: 14px; line-height: 18px; white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.vs-live-lines tbody td:nth-child(n+4):not(:last-child) { font-size: 15px; }
/* Табло в зале (Scoreboard). */
.vs-board { display: flex; flex-direction: column; min-height: 100dvh; padding: max(8px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); color: var(--ink); }
.vs-board__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--size-touch); }
.vs-board__league { display: inline-flex; align-items: center; gap: 4px; min-width: 0; min-height: var(--size-touch); font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink-muted); text-decoration: none; }
.vs-board__league > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vs-board__league:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.vs-board__main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 4vh, 48px); padding-block: clamp(8px, 3vh, 32px); }
.vs-board__period { margin: 0; text-align: center; font-size: clamp(15px, min(5vw, 6vh), 56px); line-height: 1.1; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--action-ink); }
.vs-board__when { margin: 0; text-align: center; white-space: nowrap; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(32px, min(12vw, 16vh), 160px); line-height: 1; color: var(--ink); }
.vs-board__sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(12px, 4vw, 64px); }
.vs-board__side { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 2vh, 20px); min-width: 0; text-align: center; }
.vs-board__team { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, min(7vw, 8vh), 96px); line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.vs-board__score { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(64px, min(28vw, 44vh), 420px); line-height: 0.85; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.vs-board__fouls { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 0.4em; margin: 0; font-size: clamp(14px, min(4vw, 5vh), 44px); line-height: 1.2; font-weight: 700; color: var(--ink-soft); }
.vs-board__fouls-n { font-family: var(--font-display); font-weight: 900; font-size: 1.5em; line-height: 1; color: var(--ink); }
.vs-board__bonus { font-size: 0.8em; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.vs-board__fouls.is-bonus, .vs-board__fouls.is-bonus .vs-board__fouls-n { color: var(--warning); }
.vs-board__lost { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 24px; margin: 0; font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink-muted); }
