/* «Разбор партий» в кабинете (analysis-cabinet.js, game_analysis.go).
   Палитра и подписи — как у остальных карточек (style.css, .next-label). */
.ga-card { display: grid; gap: 0; --ga-solved: #2f9e67; --ga-solved-soft: rgba(47, 158, 103, .12); }
.ga-eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.ga-card h2 { margin: 0; }
/* «beta» у заголовка (16.10.2026). */
.ga-beta { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: var(--r-pill, 999px); background: var(--accent-soft); color: var(--accent-ink);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; line-height: 1.6; }
.ga-period { margin: 0 0 var(--s4); color: var(--muted); font-size: .9375rem; }
/* Резюме ребёнку текстом (analysis-cabinet.js kidResume, 15.10.2026). */
.ga-resume { margin: var(--s4) 0 0; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); line-height: 1.55; }

/* Период — кнопками; одна партия — на ленте ниже. */
.ga-filter { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: var(--s4) 0 var(--s4); }
.ga-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-2); }
.ga-seg-btn { min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted);
  font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.ga-seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.ga-seg-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ga-empty { margin: var(--s4) 0; color: var(--muted); }

/* Итог: кольцо точности и полоска результатов. */
.ga-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s5); align-items: center;
  padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--surface-2); }
.ga-hero-acc { display: grid; justify-items: center; gap: 4px; }
.ga-ring { position: relative; width: 72px; height: 72px; }
.ga-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.ga-ring-svg { display: block; }
.ga-ring-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.ga-ring-fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; }
.ga-score { margin: 0 0 var(--s2); font-size: .9375rem; color: var(--muted); }
.ga-score b { font-size: 2rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* «Форма»: точка на партию по порядку (вместо полосы во всю ширину). */
.ga-form { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 2px 0 0; }
.ga-dot { width: 12px; height: 12px; border-radius: 50%; }
.ga-dot.is-w { background: var(--ok); }
.ga-dot.is-d { background: var(--line-strong); }
.ga-dot.is-l { background: var(--accent); }
.ga-form-more { font-size: .8125rem; color: var(--muted); }
.ga-cap { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }
.ga-hero-acc .ga-cap { margin: 0; }

/* Разделы и пункты. */
.ga-sec { margin-top: var(--s5); }
.ga-label { margin: 0 0 var(--s2); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ga-good .ga-label { color: var(--ok); }
.ga-work .ga-label { color: var(--accent-ink); }
.ga-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.ga-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ga-good .ga-num { background: var(--ok-soft); color: var(--ok); }
.ga-work .ga-num { background: var(--accent-soft); color: var(--accent-ink); }
.ga-body { min-width: 0; }
.ga-item-title { margin: 3px 0 4px; font-size: 1rem; font-weight: 700; }
.ga-item-text { margin: 0; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }

/* Мини-доски: все примеры; не влезают — листаются вбок (видимая полоса
   прокрутки, затухание у правого края, на компьютере — стрелки), касание —
   позиция на Lichess. */
.ga-pos-wrap { position: relative; min-width: 0; }
.ga-positions { display: flex; gap: var(--s3); margin: var(--s3) -4px 0; padding: 4px 4px 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ga-positions::-webkit-scrollbar { height: 6px; }
.ga-positions::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.ga-pos-wrap.is-more .ga-positions { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.ga-pos-nav { position: absolute; top: 38px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; padding: 0 0 2px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--ink); font: inherit; font-size: 1.375rem; line-height: 1; cursor: pointer; }
.ga-pos-nav.is-prev { left: -8px; }
.ga-pos-nav.is-next { right: -8px; }
.ga-pos-nav[hidden] { display: none; }
.ga-pos-nav:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: none) { .ga-pos-nav { display: none; } }
.ga-pos { flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 6px; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.ga-pos:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button.ga-pos { padding: 0; border: 0; background: none; font: inherit; text-align: start; cursor: pointer; }
.ga-board { display: grid; grid-template-columns: repeat(8, 13px); grid-template-rows: repeat(8, 13px); border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(20, 21, 26, .08); }
.ga-sq { position: relative; }
.ga-sq img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ga-light { background: #f0d9b5; }
.ga-dark { background: #b58863; }
.is-good .ga-sq.is-hot.ga-light { background: #cdd26a; }
.is-good .ga-sq.is-hot.ga-dark { background: #aaa23a; }
.is-work .ga-sq.is-hot.ga-light { background: #f1a99a; }
.is-work .ga-sq.is-hot.ga-dark { background: #d0705e; }
.ga-pos-cap { font-size: .8125rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .ga-pos:hover .ga-pos-cap { color: var(--accent-ink); } }

/* Дебюты — полосками. */
.ga-bars { display: grid; gap: var(--s3); margin-top: var(--s3); }
.ga-bar-top { display: flex; justify-content: space-between; gap: var(--s3); font-size: .875rem; }
.ga-bar-top b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ga-bar-track { height: 8px; margin-top: 6px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.ga-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--ok); }

.ga-task { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s2); font-weight: 600; color: var(--accent-ink); text-decoration: none; }
@media (hover: hover) { .ga-task:hover { text-decoration: underline; } }
.ga-foot { margin: var(--s4) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }

@media (max-width: 420px) {
  .ga-hero { gap: var(--s4); padding: var(--s4); }
  .ga-score b { font-size: 1.75rem; }
}

/* Партии периода — списком (15.10.2026, вместо ленты и групп клеток):
   строка — кнопка во всю ширину, итог словом с цветной точкой. */
.ga-list { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.ga-list li[hidden] { display: none; }
.ga-row { width: 100%; min-height: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto 16px; gap: var(--s3); align-items: center;
  padding: 8px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ga-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
@media (hover: hover) { .ga-row:hover .ga-row-main b { color: var(--accent-ink); } .ga-row:hover .ga-row-go { color: var(--accent-ink); } }
.ga-row-main { display: grid; min-width: 0; }
.ga-row-main b { font-size: .9375rem; }
.ga-row-main span { font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* «партия из кабинета» (duel_games.go, 03.11.2026): маленькая отметка у
   партии с доски кабинета — в списке, в разборе и в простом виде. */
.ga-row-main .ga-cab, .ga-s-game > .ga-cab, .ga-cab { justify-self: start; display: inline-block; width: max-content; max-width: 100%; margin-top: 2px; padding: 0 7px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .6875rem; line-height: 1.5; color: var(--muted); white-space: nowrap; }
.ga-s-game > .ga-cab { justify-self: center; }
.ga-period .ga-cab { margin-left: 6px; vertical-align: 1px; }
.ga-res { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.ga-res::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ga-res.is-w { color: var(--ok); }
.ga-res.is-d { color: var(--muted); }
.ga-res.is-l { color: var(--accent-ink); }
.ga-row-meta { font-size: .8125rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ga-row-go { font-size: 1.25rem; line-height: 1; color: var(--muted); }
@media (max-width: 420px) {
  .ga-row { grid-template-columns: minmax(0, 1fr) auto 12px; row-gap: 2px; }
  .ga-row-meta { grid-column: 1; grid-row: 2; }
  .ga-res { grid-column: 2; grid-row: 1 / span 2; }
  .ga-row-go { grid-column: 3; grid-row: 1 / span 2; }
}
.ga-cmp-say { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.ga-cmp-cap { margin: 4px 0 var(--s3); font-size: .8125rem; color: var(--muted); }
.ga-sub { margin: 0 0 var(--s2); font-size: .8125rem; color: var(--muted); line-height: 1.45; }

/* «Как изменилось» — плитки (свои, не .pp-*): изменившиеся первыми, с
   цветом и пометкой «лучше / хуже»; неизменные — спокойные (15.10.2026). */
.ga-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); } /* 5–6 плиток (15.10.2026) — по три в ряд */
@media (max-width: 700px) { .ga-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ga-kpi { display: grid; align-content: start; gap: 2px; min-width: 0; padding: var(--s3) var(--s4); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); }
.ga-kpi-k { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.ga-kpi-v { font-size: 1.625rem; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ga-kpi-d { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ga-kpi-tag { padding: 1px 8px; border-radius: var(--r-pill); font-weight: 700; font-size: .75rem; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.ga-kpi.is-better { border-color: transparent; background: var(--ok-soft); }
.ga-kpi.is-better .ga-kpi-tag { background: var(--ok); color: #fff; }
.ga-kpi.is-worse { border-color: transparent; background: var(--accent-soft); }
.ga-kpi.is-worse .ga-kpi-tag { background: var(--accent); color: #fff; }
.ga-kpi.is-same .ga-kpi-v { color: var(--muted); }
/* Телефон: плитки — строками (подпись и пометка слева, число справа),
   иначе в трёх узких колонках «как было» ломается на две строки. */
@media (max-width: 480px) {
  .ga-kpis { grid-template-columns: 1fr; }
  .ga-kpi { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s3); padding: var(--s3); }
  .ga-kpi-v { grid-column: 2; grid-row: 1 / span 2; font-size: 1.5rem; }
  .ga-form { gap: 4px; }
  .ga-dot { width: 10px; height: 10px; }
}
.ga-back { font-weight: 600; text-decoration: none; }
.ga-seg-btn small { font-weight: 500; color: var(--muted); }
.ga-cmp-note { margin: calc(-1 * var(--s2)) 0 var(--s4); font-size: .8125rem; color: var(--muted); }

/* Сравнение отрезков — плитки «стало / было» (15.10.2026, вместо таблицы). */
.ga-tag { display: inline-block; justify-self: end; padding: 2px 8px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700;
  white-space: nowrap; vertical-align: 2px; }
.ga-item-title .ga-tag { margin-left: 8px; }
.ga-tag.is-better { background: var(--ok-soft); color: var(--ok); }
.ga-tag.is-worse { background: var(--accent-soft); color: var(--accent-ink); }
.ga-tag.is-same { background: var(--surface-2); color: var(--muted); }

/* Плитки «стало / было» «Прогресса в задачах» (puzzle-progress.js; у
   нейроанализа свои — .ga-kpi). Плашка «было» — куда сдвинулось: к лучшему
   зелёная, к худшему красная (цвет не один — стрелка и текст). Справа у
   плиток прогресса — мини-картинка (.pp-viz): кольцо доли, столбики
   «было/сейчас», наклон «было → стало». Палитра карточки (15.10.2026,
   Артём: «цвета говняные… что-нибудь интереснее»; синий с оранжевым —
   «говнятина»; потом палитра eLuma с Behance; итог — «вот эти
   используй»: цвета линий своего графика рейтинга, rating-chart.js /
   classwork.css). Решил — зелёный #2F9E67 (линия Lichess-блица), ошибся —
   бордовый #A81C24 (линия ФШР, цвет бренда), было — #CFC8BA, подложки —
   фирменные кремовые, «лучше» / «хуже» — светлые зелёная и розовая.
   Валидатор dataviz: пара различима и при дальтонизме (ΔE 14,2 — по
   светлоте), у зелёного контраст 2,95 — рядом подпись и число. */
.pp-card { --pp-w: #2f9e67; --pp-w2: #2f9e67; --pp-w-fill: #2f9e67; --pp-w-ink: #7f1219;
  --pp-l: #a81c24; --pp-l-edge: #a81c24; --pp-was: #cfc8ba; --pp-ink: #14151a;
  --pp-bg: #f3efe7; --pp-up: #e6f4ec; --pp-down: #f9ebe6; --pp-same: #f3efe7; --pp-strong: #e6f4ec; --pp-weak: #f9ebe6; }
/* Плитки: 4 в ряд на широком, 2×2 уже — иначе мини-картинка наезжает на число. */
.pp-tiles { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 980px) { .pp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pp-tile { position: relative; display: grid; align-content: start; gap: 4px; min-width: 0; padding: var(--s4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pp-tile.has-viz { padding-right: calc(var(--s4) + 72px); }
.pp-tile-k { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.pp-tile-v { font-size: 1.75rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--pp-ink); }
.pp-tile-v small { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.pp-tile-was { justify-self: start; padding: 2px 8px; border-radius: var(--r-pill); background: var(--pp-same); color: var(--pp-ink);
  font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-tile.is-up .pp-tile-was { background: var(--pp-up); color: var(--pp-ink); }
.pp-tile.is-down .pp-tile-was { background: var(--pp-down); color: var(--pp-ink); }
.pp-arrow { font-weight: 700; }
/* Телефон: плитки 2×2, мини-картинка — маленькая в правом верхнем углу. */
@media (max-width: 520px) {
  .pp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .pp-tile, .pp-tile.has-viz { padding: var(--s3); }
  .pp-tile.has-viz .pp-tile-k { padding-right: 30px; }
  .pp-tile-v { font-size: 1.5rem; }
  .pp-tile-was { font-size: .75rem; padding: 1px 6px; white-space: normal; }
}

/* Мини-картинки плиток. */
.pp-viz { position: absolute; right: var(--s4); top: 50%; transform: translateY(-50%); }
.pp-ring circle { fill: none; stroke-linecap: round; }
.pp-ring-track { stroke: var(--pp-bg); stroke-width: 6; }
.pp-ring-track.is-in { stroke-width: 3; }
.pp-ring-now { stroke: var(--pp-w); stroke-width: 6; }
.pp-ring-was { stroke: var(--pp-was); stroke-width: 3; }
.pp-pair { display: flex; align-items: flex-end; gap: 4px; height: 44px; width: 36px; }
.pp-pair-bar { flex: 1; border-radius: 4px 4px 0 0; }
.pp-pair-bar.is-was { background: var(--pp-was); }
.pp-pair-bar.is-now { background: var(--pp-w-fill); }
.pp-slope-line { stroke: var(--pp-was); stroke-width: 2; stroke-linecap: round; }
.pp-slope-was { fill: var(--surface); stroke: var(--pp-was); stroke-width: 2; }
.pp-slope-now { fill: var(--muted); stroke: var(--surface); stroke-width: 2; }
.pp-slope.is-up .pp-slope-line { stroke: var(--pp-w2); }
.pp-slope.is-up .pp-slope-now { fill: var(--pp-w2); }
.pp-slope.is-down .pp-slope-line { stroke: var(--pp-l-edge); }
.pp-slope.is-down .pp-slope-now { fill: var(--pp-l-edge); }
@media (max-width: 520px) { .pp-viz { top: var(--s2); right: var(--s2); transform: scale(.62); transform-origin: right top; } }

/* «Прогресс в задачах». */
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.pp-verdict { margin: var(--s3) 0 0; font-size: 1.0625rem; line-height: 1.45; }
.pp-sec { margin-top: var(--s6); }
.pp-note { margin: var(--s2) 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.pp-how { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--pp-bg); }
.pp-cta .ga-task { margin-top: 0; }

/* По дням: столбик — день; снизу решённые (зелёные), сверху ошибки
   (коралловые), между ними зазор; пустой день — точка; сегодня подписан. */
.pp-days-box { position: relative; max-width: calc(var(--n, 30) * 40px); padding: var(--s3) var(--s3) var(--s2); border-radius: var(--r-md);
  background: linear-gradient(to bottom, transparent calc(50% - 1px), var(--line) calc(50% - 1px) 50%, transparent 50%) 0 var(--s3) / 100% 120px no-repeat, var(--pp-bg); }
.pp-days-top { position: absolute; top: 2px; right: var(--s3); font-size: .6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-days { display: grid; grid-template-columns: repeat(var(--n, 30), minmax(0, 1fr)); gap: 4px; height: 120px; align-items: stretch; max-width: 100%; }
.pp-day { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.pp-day-w { background: var(--pp-w-fill); }
.pp-day-l { background: var(--pp-l); }
.pp-day > span:first-child { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.pp-day > span:last-child { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.pp-day.is-empty { justify-content: flex-end; align-items: center; }
.pp-day.is-empty::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.pp-day.is-today .pp-day-w, .pp-day.is-today .pp-day-l { filter: saturate(1.15); }
@media (hover: hover) { .pp-day:hover { background: color-mix(in srgb, var(--pp-w) 8%, transparent); border-radius: 4px; } }
.pp-days-cap { display: flex; justify-content: space-between; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.pp-key { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 3px; vertical-align: -1px; }
.pp-key.is-w { background: var(--pp-w-fill); }
.pp-key.is-l { background: var(--pp-l); }

/* Темы задач: шкала 0–100 %, черта — своя средняя, отрезок от неё до точки
   темы: вправо (лучше своей средней) зелёный, влево — коралловый. */
.pp-sub { margin: var(--s5) 0 var(--s2); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* «Получается / Тренировать» — тёмно-синим с квадратиком цвета данных;
   строки тем — на мятной и кремовой подложке (как на картинке Артёму). */
.pp-sub.is-strong, .pp-sub.is-weak { color: var(--pp-ink); }
.pp-sub::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; vertical-align: 0; }
.pp-sub.is-strong::before { background: var(--pp-w-fill); }
.pp-sub.is-weak::before { background: var(--pp-l); }
.pp-theme-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.pp-theme { display: grid; grid-template-columns: minmax(0, 11em) minmax(60px, 1fr) 4.6em 6em; gap: var(--s3); align-items: center; min-height: 44px;
  padding: 0 var(--s3); border-radius: var(--r-sm); background: var(--pp-bg); }
.pp-theme.is-strong { background: var(--pp-strong); }
.pp-theme.is-weak { background: var(--pp-weak); }
.pp-theme-name { font-size: .9375rem; overflow-wrap: anywhere; }
.pp-theme-bar { position: relative; height: 14px; }
.pp-theme-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: var(--line); }
.pp-theme-seg { position: absolute; top: 4px; height: 6px; border-radius: 3px; }
.pp-theme.is-strong .pp-theme-seg { background: var(--pp-w); }
.pp-theme.is-weak .pp-theme-seg { background: var(--pp-l-edge); }
.pp-theme-avg { position: absolute; top: 0; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: .55; }
.pp-theme-dot { position: absolute; top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--surface); box-sizing: border-box; }
.pp-theme.is-strong .pp-theme-dot { background: var(--pp-w); }
.pp-theme.is-weak .pp-theme-dot { background: var(--pp-l-edge); }
.pp-theme-v { display: grid; justify-items: end; line-height: 1.15; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.pp-theme-d { font-size: .75rem; font-weight: 600; color: var(--muted); }
.pp-theme-go { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 var(--s3); border-radius: var(--r-pill);
  border: 1px solid var(--pp-was); background: var(--surface); color: var(--pp-w-ink); font-size: .8125rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .pp-theme-go:hover { border-color: var(--pp-l); background: var(--pp-weak); } }
.pp-theme-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 520px) {
  .pp-theme { grid-template-columns: minmax(0, 1fr) 3.6em auto; grid-template-areas: "n v g" "b b b"; row-gap: 2px; padding: var(--s2) var(--s3); }
  .pp-theme-name { grid-area: n; } .pp-theme-v { grid-area: v; } .pp-theme-go { grid-area: g; } .pp-theme-bar { grid-area: b; }
  .pp-theme.is-strong { grid-template-areas: "n v v" "b b b"; }
}

/* «Повторяются» в разборе партий: строка — вид ошибки, клетка — партия. */
.ga-rep-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s2); }
.ga-rep-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px var(--s3); align-items: baseline;
  padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface-2); }
.ga-rep-row[hidden] { display: none; }
.ga-rep-name { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.ga-rep-name .ga-tag { margin-left: 6px; }
.ga-rep-k { font-size: .875rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ga-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); gap: 3px; height: 16px; }
.ga-cell { border-radius: 3px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ga-cell.is-hit { background: var(--accent); box-shadow: none; }
.ga-rep-more { margin-top: var(--s2); }
/* Сверка совета с задачами той же темы. */
.ga-pz { margin: var(--s2) 0 0; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--surface-2); font-size: .875rem; line-height: 1.45; }

/* Шапка карточки: подпись движков и кнопка вида с шаром (тема «Нейро»). */
.ga-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); }
/* Солнышко / луна — светлая и тёмная тема «Нейро» (Артём 15.10.2026), в
   правом углу шапки карточки; видна иконка нынешней темы, смена — поворотом. */
.ga-head-r { display: inline-flex; align-items: center; gap: var(--s2); margin-left: auto; }
.ga-theme { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface-2); color: #d97706; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.ga-theme[hidden] { display: none; }
.ga-theme[aria-pressed="true"] { color: #a5f3fc; }
.ga-theme:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .ga-theme:hover { box-shadow: 0 0 0 4px rgba(217, 119, 6, .14); } .ga-theme[aria-pressed="true"]:hover { box-shadow: 0 0 0 4px rgba(34, 211, 238, .18), 0 0 14px rgba(34, 211, 238, .35); } }
.is-neo .ga-theme { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .25); }
.is-neo2 .ga-theme { background: rgba(8, 145, 178, .06); box-shadow: inset 0 0 0 1px rgba(8, 145, 178, .2); color: #d97706; }
.is-neo2 .ga-theme[aria-pressed="true"] { color: #0e7490; }
/* Шар вместо солнышка и луны (Артём 29.10.2026): глянцевая сфера, внутри
   три капли с градиентом крутятся вокруг центра с разной скоростью и
   смешиваются «экраном» (как в образце Артёма), сверху блик.
   В «Подробно» (нажато — тёмный вид) — бирюзовый, иначе розово-фиолетовый. */
.ga-orb { position: relative; display: block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 40% 35%, #7e22ce 0, #4c1d95 45%, #1e0b4b 100%);
  box-shadow: 0 0 10px rgba(217, 70, 239, .55), inset -2px -3px 6px rgba(30, 6, 60, .55); transition: background .4s, box-shadow .4s; }
.ga-orb-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ga-blob { mix-blend-mode: screen; transform-origin: 50px 50px; transform-box: view-box; animation: ga-orb-spin 5s linear infinite; }
.ga-blob-2 { animation-duration: 7s; animation-direction: reverse; }
.ga-blob-3 { animation-duration: 9s; }
.ga-orb-shine { position: absolute; left: 18%; top: 12%; width: 42%; height: 30%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 70%); transform: rotate(-25deg); }
.ga-theme[aria-pressed="true"] .ga-orb { background: radial-gradient(circle at 40% 35%, #0e7490 0, #1e3a8a 50%, #0b1033 100%);
  box-shadow: 0 0 10px rgba(34, 211, 238, .55), inset -2px -3px 6px rgba(8, 20, 60, .55); }
.ga-theme[aria-pressed="true"] .ga-blob { animation-duration: 9s; }
.ga-theme[aria-pressed="true"] .ga-blob-2 { animation-duration: 12s; }
.ga-theme[aria-pressed="true"] .ga-blob-1, .ga-theme[aria-pressed="true"] .ga-blob-3 { filter: hue-rotate(-120deg); }
@keyframes ga-orb-spin { to { transform: rotate(360deg); } }
@media (hover: hover) { .ga-theme:hover .ga-blob { animation-duration: 2s; } .ga-theme:hover .ga-blob-2 { animation-duration: 2.8s; } }
@media (prefers-reduced-motion: reduce) { .ga-blob { animation: none; } }

/* ===== Вид «Нейро» (Артём 15.10.2026: «для сравнения — в таком стиле»):
   тёмный экран с сеткой, бирюзовое свечение, круг-радар у точности,
   сеть узлов на фоне, светящийся график точности по партиям.
   Цвета карточки переопределены токенами — правила выше берут их сами.
   Победа и «лучше» — бирюзовый, ошибки и «хуже» — неоновый розовый. */
.ga-card.is-neo {
  --ga-solved: #2fbf7a; --ga-solved-soft: rgba(47, 191, 122, .16);
  --surface: #0c1d2e; --surface-2: #0a1726; --ink: #e3f6ff; --muted: #7fa3b6;
  --line: rgba(34, 227, 255, .14); --line-strong: rgba(34, 227, 255, .32);
  --accent: #ff4d7d; --accent-ink: #ff8fac; --accent-soft: rgba(255, 77, 125, .14);
  --ok: #22e3ff; --ok-soft: rgba(34, 227, 255, .13); --focus: #7df9ff;
  --shadow-sm: 0 0 0 1px rgba(34, 227, 255, .25);
  position: relative; overflow: hidden; color: var(--ink); border: 1px solid rgba(34, 227, 255, .28);
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(34, 227, 255, .16), transparent 60%),
    radial-gradient(600px 300px at -10% 110%, rgba(125, 90, 255, .12), transparent 60%),
    linear-gradient(rgba(34, 227, 255, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(34, 227, 255, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    #050d18;
  box-shadow: 0 24px 60px rgba(3, 10, 20, .35), inset 0 0 80px rgba(34, 227, 255, .06);
}
.ga-card.is-neo > * { position: relative; z-index: 1; }
.ga-card.is-neo .ga-net { position: absolute; z-index: 0; top: 8px; right: 8px; width: min(46%, 360px); height: auto; opacity: .55; pointer-events: none; }
.ga-net line { stroke: rgba(34, 227, 255, .35); stroke-width: .8; }
.ga-net circle { fill: #7df9ff; filter: drop-shadow(0 0 4px rgba(34, 227, 255, .9)); }
.is-neo .ga-eyebrow { color: #7df9ff; letter-spacing: .14em; text-shadow: 0 0 10px rgba(34, 227, 255, .6); }
.is-neo h2 { color: #f2fbff; text-shadow: 0 0 18px rgba(34, 227, 255, .25); }
.is-neo .ga-seg-btn[aria-pressed="true"] {
  background: rgba(34, 227, 255, .14); color: #aefaff; box-shadow: 0 0 0 1px rgba(34, 227, 255, .5), 0 0 14px rgba(34, 227, 255, .3); }
.is-neo .ga-seg { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
/* Итог: панель «монитора», круг-радар. */
.is-neo .ga-hero { border: 1px solid var(--line); background: rgba(10, 23, 38, .75); backdrop-filter: blur(2px); }
.is-neo .ga-ring { overflow: visible; }
.is-neo .ga-ring::before, .is-neo .ga-ring::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.is-neo .ga-ring::before { inset: -9px; border: 1px dashed rgba(34, 227, 255, .45); animation: ga-spin 18s linear infinite; }
.is-neo .ga-ring::after { inset: -16px; border: 1px solid rgba(34, 227, 255, .14); }
@keyframes ga-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-neo .ga-ring::before { animation: none; } }
.is-neo .ga-ring-bg { stroke: rgba(34, 227, 255, .12); }
.is-neo .ga-ring-fg { stroke: #22e3ff; filter: drop-shadow(0 0 6px rgba(34, 227, 255, .85)); }
.is-neo .ga-ring b, .is-neo .ga-score b, .is-neo .ga-kpi-v, .is-neo .ga-rep-k, .is-neo .ga-row-meta { font-family: var(--font-num); }
.is-neo .ga-ring b { color: #aefaff; text-shadow: 0 0 10px rgba(34, 227, 255, .7); }
.is-neo .ga-dot.is-w { box-shadow: 0 0 8px rgba(34, 227, 255, .8); }
.is-neo .ga-dot.is-l { box-shadow: 0 0 8px rgba(255, 77, 125, .8); }
.is-neo .ga-dot.is-d { background: #4b6475; }
/* График точности по партиям. */
.ga-spark { margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(10, 23, 38, .75); }
.ga-spark-top { display: flex; justify-content: space-between; gap: var(--s3); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ga-spark-svg { display: block; width: 100%; height: 96px; overflow: visible; }
/* Точки партий (15.10.2026): по датам, цвет — результат, подсказка при
   наведении, нажатие — разбор партии. Позиция — проценты от поля графика. */
.ga-spark-plot { position: relative; margin-top: 8px; }
.ga-pt { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ga-pt::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ga-pt, #22d3ee); box-shadow: 0 0 0 2px var(--surface), 0 0 8px var(--ga-pt, #22d3ee); transition: transform .15s; }
.ga-pt.is-w { --ga-pt: #06b6d4; }
.ga-pt.is-d { --ga-pt: #94a3b8; }
.ga-pt.is-l { --ga-pt: #f43f5e; }
.ga-pt-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; padding: 6px 10px; border-radius: var(--r-sm);
  background: #0b1a2b; color: #e6f6ff; font-size: .75rem; line-height: 1.35; width: max-content; max-width: min(320px, 62vw); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.ga-pt.is-left .ga-pt-tip { left: 0; transform: none; }
.ga-pt.is-right .ga-pt-tip { left: auto; right: 0; transform: none; }
.ga-pt:hover::before, .ga-pt:focus-visible::before { transform: scale(1.35); }
.ga-pt:hover .ga-pt-tip, .ga-pt:focus-visible .ga-pt-tip { opacity: 1; visibility: visible; }
.ga-pt:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.ga-spark-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ga-spark-key { margin: 6px 0 0; font-size: .75rem; color: var(--muted); }
.ga-key { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 0; border-radius: 50%; vertical-align: 0; }
.ga-key.is-w { background: #06b6d4; } .ga-key.is-d { background: #94a3b8; } .ga-key.is-l { background: #f43f5e; }
.ga-key.is-d, .ga-key.is-l { margin-left: 8px; }
.ga-spark-grid { stroke: rgba(34, 227, 255, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ga-spark-area { fill: url(#ga-spark-fill); }
.ga-spark-line { fill: none; stroke: #22e3ff; stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px rgba(34, 227, 255, .9)); }
/* Плитки, карточки, списки — стеклянные панели со свечением. */
.is-neo .ga-kpi { background: rgba(12, 29, 46, .8); border-color: var(--line); }
.is-neo .ga-kpi.is-better { background: rgba(34, 227, 255, .1); border-color: rgba(34, 227, 255, .45); box-shadow: 0 0 18px rgba(34, 227, 255, .18); }
.is-neo .ga-kpi.is-worse { background: rgba(255, 77, 125, .1); border-color: rgba(255, 77, 125, .45); box-shadow: 0 0 18px rgba(255, 77, 125, .16); }
.is-neo .ga-kpi.is-better .ga-kpi-tag { color: #03141f; }
.is-neo .ga-kpi.is-worse .ga-kpi-tag { color: #1f0310; }
.is-neo .ga-kpi-v { color: #f2fbff; }
.is-neo .ga-rep-row { background: rgba(12, 29, 46, .8); box-shadow: inset 0 0 0 1px var(--line); }
.is-neo .ga-cell { background: rgba(255, 255, 255, .03); }
.is-neo .ga-cell.is-hit { background: #ff4d7d; box-shadow: 0 0 8px rgba(255, 77, 125, .7); }
.is-neo .ga-label { text-shadow: 0 0 10px currentColor; }
.is-neo .ga-good .ga-num { box-shadow: 0 0 10px rgba(34, 227, 255, .5); }
.is-neo .ga-work .ga-num { box-shadow: 0 0 10px rgba(255, 77, 125, .45); }
.is-neo .ga-board { box-shadow: 0 0 0 1px rgba(34, 227, 255, .45), 0 0 16px rgba(34, 227, 255, .25); }
.is-neo .ga-bar-track { background: rgba(255, 255, 255, .06); }
.is-neo .ga-bar-fill { background: linear-gradient(90deg, #0fb7d4, #22e3ff); box-shadow: 0 0 10px rgba(34, 227, 255, .6); }
.is-neo .ga-pz { background: rgba(34, 227, 255, .07); box-shadow: inset 0 0 0 1px var(--line); }
.is-neo .ga-task, .is-neo .linklike { color: #7df9ff; }
.is-neo .ga-res.is-w { color: #22e3ff; }
.is-neo .ga-res.is-l { color: #ff8fac; }
.is-neo .ga-pos-nav { background: #0c1d2e; color: #aefaff; }
.ga-spark-top span:last-child { white-space: nowrap; }
@media (max-width: 560px) {
  .ga-card.is-neo .ga-net { width: 70%; opacity: .35; }
  .is-neo .ga-eyebrow { letter-spacing: .06em; }
  .ga-spark-top { letter-spacing: .03em; }
}

/* ===== «Нейро 2» (Артём 15.10.2026: «подложку светлее, чтобы
   воспринималось легче»): тот же стиль — сетка, радар, сеть узлов, график
   точности, — но на светлом ледяном фоне; бирюзовый и розовый темнее, чтобы
   текст читался, свечение мягкое. Классы .is-neo.is-neo2. */
.ga-card.is-neo.is-neo2 {
  --ga-solved: #2f9e67; --ga-solved-soft: rgba(47, 158, 103, .12);
  --surface: #ffffff; --surface-2: #eef6fa; --ink: #0f2233; --muted: #557083;
  --line: rgba(8, 145, 178, .16); --line-strong: rgba(8, 145, 178, .34);
  --accent: #e8336d; --accent-ink: #b8164a; --accent-soft: rgba(232, 51, 109, .1);
  --ok: #0891b2; --ok-soft: rgba(8, 145, 178, .1); --focus: #0891b2;
  --shadow-sm: 0 0 0 1px rgba(8, 145, 178, .22);
  border-color: rgba(8, 145, 178, .22);
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(600px 300px at -10% 110%, rgba(139, 92, 246, .08), transparent 60%),
    linear-gradient(rgba(8, 145, 178, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(8, 145, 178, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    #f6fbfd;
  box-shadow: 0 18px 50px rgba(8, 60, 90, .08), inset 0 0 60px rgba(34, 211, 238, .06);
}
.is-neo2 .ga-net line { stroke: rgba(8, 145, 178, .3); }
.is-neo2 .ga-net circle { fill: #22d3ee; filter: drop-shadow(0 0 3px rgba(8, 145, 178, .5)); }
.is-neo2 .ga-eyebrow { color: #0e7490; text-shadow: none; }
.is-neo2 h2 { color: var(--ink); text-shadow: none; }
.is-neo2 .ga-seg { background: rgba(8, 145, 178, .06); }
.is-neo2 .ga-seg-btn[aria-pressed="true"] {
  background: #ffffff; color: #0e7490; box-shadow: 0 0 0 1px rgba(8, 145, 178, .4), 0 4px 14px rgba(34, 211, 238, .25); }
.is-neo2 .ga-hero, .is-neo2 .ga-spark { background: rgba(255, 255, 255, .85); box-shadow: 0 8px 24px rgba(8, 60, 90, .06); }
.is-neo2 .ga-ring::before { border-color: rgba(8, 145, 178, .4); }
.is-neo2 .ga-ring::after { border-color: rgba(8, 145, 178, .12); }
.is-neo2 .ga-ring-bg { stroke: rgba(8, 145, 178, .12); }
.is-neo2 .ga-ring-fg { stroke: #06b6d4; filter: drop-shadow(0 0 5px rgba(34, 211, 238, .55)); }
.is-neo2 .ga-ring b { color: #0e7490; text-shadow: none; }
.is-neo2 .ga-dot.is-w { background: #06b6d4; box-shadow: 0 0 6px rgba(34, 211, 238, .55); }
.is-neo2 .ga-dot.is-l { box-shadow: 0 0 6px rgba(232, 51, 109, .45); }
.is-neo2 .ga-dot.is-d { background: #94a9b8; }
.is-neo2 .ga-spark-line { stroke: #06b6d4; filter: drop-shadow(0 0 4px rgba(34, 211, 238, .6)); }
.is-neo2 .ga-spark-grid { stroke: rgba(8, 145, 178, .12); }
.is-neo2 .ga-kpi { background: rgba(255, 255, 255, .9); }
.is-neo2 .ga-kpi.is-better { background: #ecfbfe; border-color: rgba(8, 145, 178, .4); box-shadow: 0 6px 20px rgba(34, 211, 238, .18); }
.is-neo2 .ga-kpi.is-worse { background: #fff0f4; border-color: rgba(232, 51, 109, .35); box-shadow: 0 6px 20px rgba(232, 51, 109, .12); }
.is-neo2 .ga-kpi.is-better .ga-kpi-tag, .is-neo2 .ga-kpi.is-worse .ga-kpi-tag { color: #fff; }
.is-neo2 .ga-kpi-v { color: var(--ink); }
.is-neo2 .ga-rep-row { background: rgba(255, 255, 255, .85); }
.is-neo2 .ga-cell { background: #eef4f7; }
.is-neo2 .ga-cell.is-hit { background: #e8336d; box-shadow: 0 0 6px rgba(232, 51, 109, .45); }
.is-neo2 .ga-label { text-shadow: none; }
.is-neo2 .ga-good .ga-label { color: #0e7490; }
.is-neo2 .ga-good .ga-num { box-shadow: 0 0 8px rgba(34, 211, 238, .4); }
.is-neo2 .ga-work .ga-num { box-shadow: 0 0 8px rgba(232, 51, 109, .3); }
.is-neo2 .ga-board { box-shadow: 0 0 0 1px rgba(8, 145, 178, .35), 0 6px 16px rgba(34, 211, 238, .2); }
.is-neo2 .ga-bar-track { background: #e6f1f5; }
.is-neo2 .ga-bar-fill { background: linear-gradient(90deg, #0891b2, #22d3ee); box-shadow: 0 0 8px rgba(34, 211, 238, .45); }
.is-neo2 .ga-task, .is-neo2 .linklike { color: #0e7490; }
.is-neo2 .ga-res.is-w { color: #0e7490; }
.is-neo2 .ga-res.is-l { color: #b8164a; }
.is-neo2 .ga-pos-nav { background: #fff; color: #0e7490; }
/* Лампочки пульта (15.10.2026, Артём: «слабое свечение, перелив… как панель
   космического звездолёта из „Звёздных войн“»). Красные и зелёные отметки —
   формы и клеток «Повторяются» — светятся как диоды: блик-сердцевина,
   ореол мерцает вразнобой (темп --gd/--go из JS), раз в 7 с по ряду волной
   проходит «сканер» (ga-scan, номер --gi) — лёгкая вспышка своего цвета.
   15.10 «слишком сильное и цвета не те» — ореол и блик втрое слабее, без голубого. Всё только при ga-glow (карточка на экране); мерцание —
   одной opacity, сканер — короткая вспышка тени. */
.ga-dot.is-w, .ga-dot.is-l, .ga-cell.is-hit { position: relative; }
.ga-dot.is-w { color: var(--ok); }
.ga-dot.is-l, .ga-cell.is-hit { color: var(--accent); }
.ga-glow .ga-dot.is-w::before, .ga-glow .ga-dot.is-l::before, .ga-glow .ga-cell.is-hit::before,
.ga-glow .ga-dot.is-w::after, .ga-glow .ga-dot.is-l::after, .ga-glow .ga-cell.is-hit::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
.ga-glow .ga-dot.is-w::before, .ga-glow .ga-dot.is-l::before, .ga-glow .ga-cell.is-hit::before {
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%);
}
.ga-glow .ga-dot.is-w::after, .ga-glow .ga-dot.is-l::after, .ga-glow .ga-cell.is-hit::after {
  box-shadow: 0 0 3px 0 currentColor, 0 0 6px 1px currentColor; opacity: .1;
  animation: ga-led var(--gd, 3.4s) ease-in-out var(--go, 0s) infinite;
}
@keyframes ga-led {
  0%, 100% { opacity: .05; }
  40% { opacity: .25; }
  46% { opacity: .12; }
  50% { opacity: .35; }
  70% { opacity: .12; }
}
.ga-glow .ga-scan > .ga-dot.is-w, .ga-glow .ga-scan > .ga-dot.is-l, .ga-glow .ga-scan > .ga-cell.is-hit {
  animation: ga-sweep .8s ease-out calc(var(--gi, 0) * 40ms) 1;
}
@keyframes ga-sweep {
  0%, 100% { }
  35% { box-shadow: 0 0 5px 1px currentColor; }
}
@media (prefers-reduced-motion: reduce) {
  .ga-glow .ga-dot::after, .ga-glow .ga-cell::after { animation: none; opacity: .25; }
  .ga-glow .ga-scan > .ga-dot, .ga-glow .ga-scan > .ga-cell { animation: none; }
}
/* Лампочки в видах «Нейро» / «Нейро 2» — ореол цвета самой отметки этого вида. */
.is-neo .ga-dot.is-w { color: #22e3ff; }
.is-neo .ga-dot.is-l, .is-neo .ga-cell.is-hit { color: #ff4d7d; }
.is-neo2 .ga-dot.is-w { color: #06b6d4; }
.is-neo2 .ga-dot.is-l, .is-neo2 .ga-cell.is-hit { color: #e8336d; }

/* «Нейроанализ в процессе» (15.10.2026): разбора ещё нет — ученик в очереди
   ночного разбора. Сеть узлов: сигнал бежит слева направо по рёбрам, узлы
   вспыхивают по очереди — «нейросеть думает». */
.ga-wait { display: grid; gap: var(--s2); }
.ga-wait-anim { margin: var(--s3) 0 var(--s1); width: 120px; height: 64px; }
.ga-wait-anim svg { display: block; overflow: visible; }
.ga-wait-edge { stroke: #22d3ee; stroke-width: 1.6; stroke-linecap: round; opacity: .25; stroke-dasharray: 6 40; animation: ga-wait-flow 1.8s linear infinite; }
.ga-wait-node { fill: #0891b2; opacity: .45; transform-box: fill-box; transform-origin: center; animation: ga-wait-pulse 1.8s ease-in-out infinite; }
@keyframes ga-wait-flow { from { stroke-dashoffset: 46; opacity: .7; } to { stroke-dashoffset: 0; opacity: .25; } }
@keyframes ga-wait-pulse { 0%, 100% { opacity: .35; transform: scale(1); } 30% { opacity: 1; transform: scale(1.35); filter: drop-shadow(0 0 4px rgba(34, 211, 238, .8)); } }
.ga-wait-text { margin: 0; color: var(--muted); line-height: 1.5; max-width: 52ch; }
@media (prefers-reduced-motion: reduce) { .ga-wait-edge, .ga-wait-node { animation: none; opacity: .6; } }

/* Ошибки из своих партий на доске (mypos.go). */
.ga-mypos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); padding: var(--s3) var(--s4);
  border-radius: var(--r-md); background: var(--accent-soft); }
.ga-mypos-text { flex: 1 1 220px; margin: 0; font-size: .9375rem; }
.ga-mypos-btn { min-height: 44px; }
/* «Реши свои ошибки» в неоновой карточке: общая .btn-primary там светлая с белым
   текстом и не читалась (Артём 22.10.2026) — бирюзовая кнопка с тёмным текстом. */
.is-neo .ga-mypos-btn { border: 0; background: #22e3ff; color: #04121f; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(125, 249, 255, .6), 0 0 18px rgba(34, 227, 255, .35); }
.is-neo .ga-mypos-btn:hover { background: #7df9ff; }
.is-neo.is-neo2 .ga-mypos-btn { background: #0891b2; color: #ffffff; box-shadow: 0 4px 14px rgba(8, 145, 178, .3); }
.is-neo.is-neo2 .ga-mypos-btn:hover { background: #0e7490; }
/* Повтор своих позиций (mypos_repeat.go, 12.11.2026): «На сегодня N позиций»
   сверху блока «Реши свои ошибки» — во всю ширину, отделён линией. */
.ga-mypos-due { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.ga-mypos-due[hidden] { display: none; }
.ga-mypos-due-text { flex: 1 1 220px; margin: 0; display: grid; gap: 2px; font-size: .9375rem; }
.ga-mypos-due-title { font-size: 1rem; }
/* Прежний разбор вместо пустого (game_analysis.go getOrKept, 12.11.2026). */
.ga-old { margin: 0 0 var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r-md); background: var(--accent-soft);
  font-size: .9375rem; line-height: 1.45; }
/* «Поделиться в чате» у разобранной партии (game-share.js, 25.10.2026). */
.ga-share { margin: var(--s2, 8px) 0 0; }

/* ------------------------------------------------------------------
   Простой вид (светлая тема) и правки подробного (тёмная) — 26.10.2026,
   Артём: «дневная — для простого видения, тёмная — для подробного анализа». */
/* Шар с подписью, куда переключит: «Подробно» / «Просто». */
.ga-theme { width: auto; height: 36px; padding: 0 12px 0 7px; border-radius: var(--r-pill, 999px);
  grid-template-columns: 22px auto; column-gap: 7px; justify-items: start; cursor: pointer; font: inherit; }
.ga-theme .ga-orb { grid-area: 1 / 1; }
.ga-theme-lbl { grid-area: 1 / 2; font-size: .8125rem; font-weight: 700; color: var(--ink); }
.is-neo:not(.is-neo2) .ga-theme-lbl { color: #cffafe; }
.ga-card.is-simple .ga-head { margin-bottom: 2px; }

/* Партия: стрелки к прежним партиям. */
.ga-s-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: var(--s2); margin: var(--s4) 0 var(--s3); }
.ga-s-arrow { width: 44px; height: 44px; border: 1px solid var(--line-strong, var(--line)); border-radius: 50%; background: var(--surface);
  color: var(--ink); font: 700 1.375rem/1 inherit; cursor: pointer; }
.ga-s-arrow:disabled { opacity: .3; cursor: default; }
.ga-s-arrow:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ga-s-game { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.ga-s-game b { font-size: 1rem; }
.ga-s-game > span { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.ga-s-game .ga-res { font-size: .875rem; }
/* Фраза тренера — облачко. */
.ga-s-say { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s2); align-items: start; margin: 0 0 var(--s3); }
.ga-s-coach { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); }
.ga-s-say p { margin: 0; padding: var(--s3) var(--s4); border-radius: 4px 16px 16px 16px; background: var(--surface);
  border: 1px solid var(--line); font-size: 1rem; line-height: 1.5; font-weight: 500; }
/* Три момента: карточки с доской. */
.ga-s-card { display: grid; gap: var(--s2); margin: 0 0 var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); }
.ga-s-card p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.ga-s-card.is-good { border-color: rgba(47, 158, 103, .45); }
.ga-s-card.is-bad { border-color: rgba(232, 51, 109, .4); }
.ga-s-lab { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ga-s-card.is-good .ga-s-lab { color: #2f9e67; }
.ga-s-card.is-bad .ga-s-lab { color: var(--accent-ink); }
.ga-s-card.is-train .ga-s-lab { color: var(--ok); }
.ga-s-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: center; }
.ga-s-row.is-tap { color: inherit; text-decoration: none; cursor: pointer; border-radius: var(--r-md); margin: -4px; padding: 4px; transition: background-color .15s; }
.ga-s-row.is-tap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .ga-s-row.is-tap:hover { background: rgba(8, 145, 178, .07); } }
.ga-s-row.is-tap:active { background: rgba(8, 145, 178, .12); }
.ga-s-row .ga-board { grid-template-columns: repeat(8, 15px); grid-template-rows: repeat(8, 15px); }
.ga-s-move { font-size: 1rem; }
.ga-s-note { color: var(--muted); font-size: .875rem; }
.ga-s-btn { justify-self: start; min-height: 44px; }
.ga-s-train { background: transparent; color: var(--ok); border: 1px solid var(--line-strong, var(--line)); text-decoration: none; display: inline-flex; align-items: center; }
.ga-card.is-simple .ga-mypos { margin: var(--s2) 0 var(--s3); }
.ga-s-full { display: block; margin: var(--s2) auto 0; min-height: 44px; font-weight: 600; }
/* Телефон: доска сверху и крупнее — её разглядывают, текст под ней во всю ширину. */
@media (max-width: 520px) {
  .ga-s-row { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ga-s-row > div:last-child { justify-self: stretch; }
  .ga-s-row .ga-board { grid-template-columns: repeat(8, 24px); grid-template-rows: repeat(8, 24px); }
}
@media (max-width: 340px) { .ga-s-row .ga-board { grid-template-columns: repeat(8, 20px); grid-template-rows: repeat(8, 20px); } }

/* Подробный вид: «что это» по нажатию на кольцо и плитки. */
.ga-hero-wrap { display: grid; gap: var(--s2); margin-top: var(--s4); }
.ga-hero-wrap .ga-hero { margin: 0; }
button.ga-hero-acc { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ga-qm { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%;
  border: 1px solid currentColor; font-size: .625rem; font-weight: 700; line-height: 1; vertical-align: 1px; opacity: .7; }
.ga-hint { margin: 0; padding: var(--s2) var(--s3); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font-size: .875rem; line-height: 1.5; }
.ga-kpi:has(> .ga-kpi-btn) { padding: 0; }
.ga-kpi-btn { display: grid; align-content: start; gap: 2px; width: 100%; height: 100%; padding: var(--s3) var(--s4); border: 0; border-radius: inherit;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ga-kpi-btn:focus-visible, button.ga-hero-acc:focus-visible, .ga-acc:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ga-kpi-hint { grid-column: 1 / -1; margin-top: 4px; font-size: .8125rem; color: var(--ink); line-height: 1.4; }
@media (max-width: 480px) { .ga-kpi-btn { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s3); padding: var(--s3); } }
/* Раскрывающиеся пункты советов. */
.ga-acc { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: -6px 0 0; padding: 0; border: 0;
  background: none; color: inherit; font: inherit; font-size: 1rem; font-weight: 700; text-align: left; cursor: pointer; }
.ga-acc .ga-tag { margin-left: 0; }
.ga-acc-t { flex: 0 1 auto; min-width: 0; }
.ga-acc-chev { margin-left: auto; font-size: 1.25rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.ga-acc[aria-expanded="true"] .ga-acc-chev { transform: rotate(90deg); }
.ga-fix { margin-top: var(--s2); }
/* Соседние партии в разборе одной партии. */
.ga-gnav { display: flex; justify-content: space-between; gap: var(--s3); margin: calc(-1 * var(--s3)) 0 var(--s3); }
.ga-gnav .linklike { min-height: 44px; }
/* По этапам партии. */
.ga-phases .ga-bar-top small { color: var(--muted); font-weight: 400; }
.ga-bar-fill.is-top { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .ga-acc-chev { transition: none; } }

/* ------------------------------------------------------------------
   «Подробно» картой навыков (27.10.2026): «Главное» и семь навыков. */
.ga-sum { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: var(--s2); }
.ga-sum-lab { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.ga-sum-lab small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ga-sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ga-sum-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; line-height: 1.45; overflow-wrap: anywhere; }
.ga-sum-ic { font-weight: 700; text-align: center; color: var(--muted); }
.ga-sum-ic.is-good { color: #2fbf7a; }
.ga-sum-ic.is-bad { color: var(--accent-ink); }
.ga-sum-note { margin: 0; font-size: .8125rem; color: var(--muted); }
.ga-skills .ga-label { color: var(--ok); }
.ga-skills .ga-sub { margin: 0 0 var(--s2); }
.ga-sk { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-top: 6px; }
.ga-sk.is-weak { border-color: var(--accent); }
.ga-sk-head { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 4px 8px; align-items: center; width: 100%; min-height: 48px;
  padding: 6px var(--s3); border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: inherit; }
.ga-sk-head:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ga-sk-name { font-weight: 700; min-width: 0; }
.ga-sk-badges { display: inline-flex; align-items: center; gap: 6px; }
/* Телефон: уровень под названием — иначе название в узкой колонке ломается. */
@media (max-width: 520px) {
  .ga-sk-head { grid-template-columns: minmax(0, 1fr) 14px; padding-block: 8px; }
  .ga-sk-badges { grid-row: 2; grid-column: 1; }
  .ga-sk-head .ga-acc-chev { grid-row: 1 / span 2; grid-column: 2; }
}
.ga-sk-head .ga-acc-chev { margin: 0; }
.ga-sk-head[aria-expanded="true"] .ga-acc-chev { transform: rotate(90deg); }
.ga-lvl { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--r-pill, 999px); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.ga-lvl b { display: inline-flex; gap: 2px; }
.ga-lvl b span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .25; }
.ga-lvl b span.f { opacity: 1; }
.ga-lvl.is-l4 { color: #1f9d63; background: rgba(47, 191, 122, .14); }
.ga-lvl.is-l3 { color: #0e7490; background: rgba(8, 145, 178, .12); }
.ga-lvl.is-l2 { color: #a16207; background: rgba(234, 179, 8, .16); }
.ga-lvl.is-l1 { color: #be123c; background: rgba(244, 63, 94, .14); }
.is-neo:not(.is-neo2) .ga-lvl.is-l4 { color: #5ee6a0; }
.is-neo:not(.is-neo2) .ga-lvl.is-l3 { color: #22e3ff; }
.is-neo:not(.is-neo2) .ga-lvl.is-l2 { color: #ffc861; }
.is-neo:not(.is-neo2) .ga-lvl.is-l1 { color: #ff8fac; }
.ga-sk-tr { min-width: 14px; font-weight: 700; text-align: center; color: var(--muted); }
.ga-sk-tr.is-up { color: #2fbf7a; }
.ga-sk-tr.is-dn { color: var(--accent-ink); }
.ga-sk-more { padding: 0 var(--s3) var(--s3); display: grid; gap: var(--s2); }
.ga-sk-what { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.ga-sk-scale { display: grid; gap: 4px; }
.ga-sk-track { position: relative; height: 10px; border-radius: 5px; margin: 24px 0 6px;
  background: linear-gradient(90deg, rgba(47, 191, 122, .45), rgba(34, 211, 238, .3) 40%, rgba(234, 179, 8, .35) 70%, rgba(244, 63, 94, .5)); }
.ga-sk-scale.is-up .ga-sk-track { background: linear-gradient(90deg, rgba(244, 63, 94, .5), rgba(234, 179, 8, .35) 30%, rgba(34, 211, 238, .3) 60%, rgba(47, 191, 122, .45)); }
/* 27.10.2026: метки подписаны словами над шкалой — «ты» (круглая точка) и «обычно» (черта). */
.ga-sk-me, .ga-sk-mid { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.ga-sk-me { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--surface); z-index: 1; }
.ga-sk-mid { width: 2px; height: 16px; border-radius: 1px; background: var(--muted); }
.ga-sk-pin-t { position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); white-space: nowrap;
  font-size: .75rem; font-weight: 700; line-height: 1; color: var(--ink); }
.ga-sk-mid .ga-sk-pin-t { font-weight: 600; color: var(--muted); }
.ga-sk-mid.is-below .ga-sk-pin-t { bottom: auto; top: calc(100% + 3px); }
.ga-sk-scale:has(.ga-sk-mid.is-below) .ga-sk-track { margin-bottom: 22px; }
.ga-sk-cap.is-me { color: var(--ink); font-weight: 600; }
.ga-sk-cap { margin: 0; font-size: .8125rem; color: var(--muted); white-space: pre-wrap; }
.ga-sk-key { display: inline-block; width: 8px; height: 12px; margin-right: 4px; border-radius: 2px; vertical-align: -1px; }
.ga-sk-key.is-me { background: var(--ink); }
.ga-sk-key.is-mid { width: 2px; background: var(--muted); }
.ga-sk-key.is-was { width: auto; height: auto; background: none; font-weight: 700; color: var(--ink); margin-right: 6px; }
.ga-sk-cap .ga-sk-key { margin-right: 8px; }
.ga-sk-help { margin: 0 0 var(--s2); padding-left: 1.1em; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.ga-sk-help b { color: var(--ink); }
.ga-sk-tap { color: var(--ink); }
.ga-sk-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ga-sk-acts .ga-fix { margin-top: 0; }
.ga-sk-train { background: transparent; border: 1px solid var(--line-strong, var(--line)); color: var(--ink); }
/* «Найти ход лучше» в неоновой карточке — как «Реши свои ошибки» (на белой
   кнопке белый текст не читался). */
.is-neo .ga-fix { border: 0; background: #22e3ff; color: #04121f; font-weight: 700; }
.is-neo .ga-fix:hover { background: #7df9ff; }
.is-neo.is-neo2 .ga-fix { background: #0891b2; color: #ffffff; }
/* Решённые свои позиции (mypos_solved.go, Артём 02.11.2026: «зелёный
   значок»): зелёный — тот же, что у «Лучший ход» и «стало лучше» в этой
   карточке (--ga-solved). Решённая «Найти ход лучше» — спокойная зелёная
   «✓ Решено · ещё раз», а не яркая кнопка, зовущая решать. */
.ga-solved { display: inline-flex; align-items: center; gap: 2px; justify-self: start; padding: 1px 8px; border-radius: var(--r-pill, 999px);
  background: var(--ga-solved-soft); color: var(--ga-solved); font-size: .75rem; font-weight: 700; white-space: nowrap; vertical-align: 2px; }
.ga-item-title .ga-solved { margin-left: 8px; }
.ga-acc .ga-solved { margin-left: 0; }
.ga-card .ga-fix.is-solved, .ga-card.is-neo .ga-fix.is-solved { border: 1px solid var(--ga-solved); background: var(--ga-solved-soft); color: var(--ga-solved); font-weight: 700; }
.ga-mypos.is-done { background: var(--ga-solved-soft); }
.ga-mypos-done { margin: 0; color: var(--ga-solved); font-weight: 700; }
.ga-sk-more .ga-item-text { font-size: .9375rem; color: var(--ink); }

/* На кого из великих похож ученик (great_style.go, 06.11.2026): фото рядом с
   нейроанализом и фраза; автор и лицензия фото — по нажатию на него. */
.ga-style { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: start;
  margin: var(--s3) 0 var(--s2); padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); }
.ga-style.is-need { display: block; }
.ga-style-photo { display: block; width: 96px; height: 96px; border-radius: var(--r-md); object-fit: cover; background: var(--line); }
.ga-style-main { display: grid; gap: 4px; min-width: 0; }
.ga-style-main p { margin: 0; }
.ga-style-title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.ga-style-about { font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.ga-style-why { font-size: .9375rem; line-height: 1.45; color: var(--ink); }
.ga-style-need { font-size: .9375rem; line-height: 1.45; color: var(--ink); }
.ga-style-btn { justify-self: start; font-size: .875rem; }
.ga-style-more { display: grid; gap: 4px; font-size: .875rem; line-height: 1.45; color: var(--ink); }
.ga-style-more[hidden] { display: none; }
.ga-style-photo-link { display: block; border-radius: var(--r-md); }
.is-neo .ga-style { border: 1px solid var(--line); background: rgba(10, 23, 38, .75); }
.is-neo2 .ga-style { background: rgba(255, 255, 255, .85); box-shadow: 0 8px 24px rgba(8, 60, 90, .06); }
@media (max-width: 420px) {
  .ga-style-photo { width: 72px; height: 72px; }
}

/* «Партии с турнира» (otb-cabinet.js, otb_games.go, 11.11.2026): ссылка на
   студию Lichess → свои партии и цвет → в ночной нейроанализ. */
.otb-card { display: grid; gap: var(--s3); }
.otb-card h2 { margin: 0; }
.otb-lead { margin: 0; color: var(--muted); line-height: 1.5; max-width: 60ch; }
.otb-form { display: grid; gap: 6px; }
.otb-label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.otb-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.otb-row .input { flex: 1 1 240px; min-width: 0; }
.otb-msg { margin: 0; color: var(--ink); line-height: 1.5; }
.otb-msg.is-bad { color: var(--danger, #b42318); }
.otb-preview { display: grid; gap: var(--s2); padding: var(--s3); border-radius: var(--r-md); background: var(--surface-2); }
.otb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.otb-item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); }
.otb-list > .otb-item:first-child { border-top: 0; }
.otb-item > input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.otb-item-main { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.otb-item-main b { overflow-wrap: anywhere; }
.otb-item.is-off, .otb-item.is-old { opacity: .62; }
.otb-meta { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.otb-note { color: var(--accent-ink); font-size: .875rem; line-height: 1.45; }
.otb-item-act { display: flex; align-items: center; gap: var(--s2); }
.otb-link { font-size: .875rem; white-space: nowrap; }
.otb-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface); }
.otb-seg-btn { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted);
  font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.otb-seg-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.otb-seg-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.otb-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.otb-none { margin: 0; color: var(--muted); }
/* Кнопка «Добавить партию с турнира» в шапке нейроанализа (otb-cabinet.js). */
.otb-jump { display: inline-flex; align-items: center; justify-self: start; width: max-content; max-width: 100%; min-height: 36px;
  padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink);
  font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.2; cursor: pointer; }
.otb-jump::before { content: "+"; margin-right: 6px; font-size: 1.1em; font-weight: 700; }
.otb-jump:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ga-wait .otb-jump, .ga-hint .otb-jump { margin: 2px 0 4px; }
@media (hover: hover) { .otb-jump:hover { filter: brightness(.97); box-shadow: 0 0 0 3px var(--accent-soft); } }
.otb-state { font-size: .875rem; line-height: 1.45; }
.otb-state.is-ready { color: var(--ok, #2f9e67); font-weight: 600; }
.otb-state.is-wait { color: var(--accent-ink); }
.otb-msg .btn { margin-left: 6px; vertical-align: baseline; }
