/* Фестиваль: Качалы vs Атакеры - светлая заявка, постеры без кропа */

.ka-page {
  --ka-ink: #15181a;
  --ka-sec: #6b7370;
  --ka-border: #e7e9e5;
  --ka-soft: #f4f5f4;
}

.ka-eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ka-sec);
  line-height: 1.2;
}

.ka-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 0 0 12px;
}

.ka-title {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}

.ka-head__meta {
  margin: 0;
  flex: 0 1 auto;
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ka-sec);
  font-weight: 600;
}

.ka-head__meta .msk-minsk-dates {
  font-weight: 800;
  color: var(--ka-ink);
}

@media (max-width: 640px) {
  .ka-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 10px;
  }

  .ka-head__meta {
    text-align: left;
    font-size: 12px;
  }
}

.ka-ux-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #e6c35c;
  font-size: 13px;
  font-weight: 700;
}

.ka-ux-compare__label {
  color: #6b5a20;
}

.ka-ux-compare__link {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8c48a;
  color: #15181a;
  text-decoration: none;
}

.ka-ux-compare__link.is-active {
  background: #15181a;
  border-color: #15181a;
  color: #fff;
}

.ka-duel__fee {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-duel__flavor--quiet .ka-duel__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
}

.ka-duel__assign-hint {
  margin: -2px 0 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ka-sec);
}

.ka-howto--compact {
  padding-top: 12px;
  padding-bottom: 12px;
}

.ka-howto--compact .ka-howto__lead {
  margin-bottom: 10px;
}

.ka-howto--compact .ka-howto__more {
  margin: 0;
}

.ka-duel__flavor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 0 0 8px;
  text-align: center;
}

.ka-duel__count--pool {
  margin: 0 0 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ka-ink);
}

.ka-duel__actions--single {
  display: flex;
  justify-content: center;
}

.ka-duel__actions--single .ka-duel__action,
.ka-duel__actions--single .ka-btn {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 640px) {
  .ka-duel__flavor {
    grid-template-columns: 1fr;
  }
}

.ka-tabs {
  margin-bottom: 14px;
}

.ka-flash {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.ka-flash--success {
  background: #eef8e4;
  color: var(--ka-ink);
}

.ka-flash--error {
  background: #fceee9;
  color: #7a2d1c;
}

/* ----- Постеры сверху ----- */

.ka-duel {
  margin: 8px 0 16px;
}

.ka-duel__posters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center; /* VS по вертикали между афишами */
  margin-bottom: 12px;
}

.ka-duel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 48px;
  align-items: stretch; /* колонки одной высоты → кнопки на одной линии */
}

@media (max-width: 760px) {
  .ka-duel__posters {
    gap: 6px;
    margin-bottom: 8px;
  }

  .ka-duel__actions {
    gap: 8px 10px;
  }

  .ka-vs span {
    min-width: 36px;
    height: 36px;
    font-size: 11px;
  }

  /* Постеры на мобилке: полная афиша по ширине колонки — без cover/max-height */
  .ka-poster {
    border-radius: 10px;
    max-height: none;
    background: #111;
  }

  .ka-poster__img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: unset;
    object-position: unset;
  }
}

.ka-duel__poster-col {
  min-width: 0;
  text-align: center;
}

.ka-duel__info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
  cursor: pointer;
  line-height: 1.2;
}

.ka-duel__info-btn:hover,
.ka-duel__info-btn:focus {
  color: var(--ka-ink);
  outline: none;
}

.ka-boards-note {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ka-sec);
}

.ka-pool__you {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef8d8;
  border: 1px solid #c5e085;
  color: #2a3a0f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* 2. Cookie — компактная полоска внизу, не по центру контента */
body.ka-hub-page .cookieBox {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border-radius: 0 !important;
  padding: 10px 14px !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 12px !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

body.ka-hub-page .cookieBox__title {
  font-size: 13px !important;
  margin: 0 !important;
}

body.ka-hub-page .cookieBox__desc {
  font-size: 12px !important;
  margin: 0 !important;
  flex: 1 1 180px;
  line-height: 1.35 !important;
}

body.ka-hub-page .cookieBox__btn {
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto;
  padding: 8px 14px !important;
}

@media (max-width: 990px) {
  body.ka-hub-page.v2-page:not(.v2-page--guest) .cookieBox {
    bottom: 72px !important;
  }
}

.ka-duel__poster-col.is-mine .ka-poster {
  box-shadow: 0 0 0 2px #15181a;
}

.ka-duel__side {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.ka-poster {
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 0.5px solid var(--ka-border);
  line-height: 0;
}

.ka-poster__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: top;
}

.ka-duel__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ka-sec);
}

.ka-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--ka-sec);
  cursor: pointer;
  flex: 0 0 auto;
}

.ka-tip i {
  font-size: 16px;
  line-height: 1;
}

.ka-tip:hover,
.ka-tip:focus {
  color: var(--ka-ink);
}

.ka-duel__count {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-duel__name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.ka-duel__action,
.ka-duel__side > .ka-btn {
  margin-top: auto; /* кнопки «За …» на одной высоте */
  align-self: stretch;
  width: 100%;
}

.ka-duel__action {
  margin-bottom: 0;
}

.ka-duel__mine {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-ink);
}

.ka-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0;
}

.ka-vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 0.5px solid var(--ka-border);
  color: var(--ka-sec);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ka-side__name--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Что дальше ----- */

.ka-howto {
  margin-bottom: 16px;
}

.ka-howto__lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ka-ink);
}

.ka-howto__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ka-howto__steps li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ka-soft);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ka-sec);
}

.ka-howto__steps strong {
  color: var(--ka-ink);
}

.ka-howto__more {
  margin: 14px 0 0;
}

@media (min-width: 761px) {
  .ka-howto__steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ka-format {
  padding: 20px 18px 22px;
}

.ka-format__hero {
  margin-bottom: 16px;
}

.ka-format__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-format__lead {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ka-ink);
}

.ka-format__p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ka-sec);
}

.ka-format__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.ka-format__chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ka-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-format__chip span {
  color: var(--ka-ink);
  font-weight: 800;
  margin-right: 4px;
}

.ka-format__block {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: var(--ka-soft);
}

.ka-format__block--accent {
  background: #eef8e4;
}

.ka-format__h {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-format__list,
.ka-format__cats {
  margin: 0 0 10px;
  padding: 0 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ka-ink);
}

.ka-format__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.ka-format__cats li {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 0.5px solid var(--ka-border);
  font-size: 12px;
  font-weight: 700;
}

.ka-format__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ka-sec);
}

.ka-format__cta {
  margin: 8px 0 0;
}

.ka-soon {
  text-align: center;
  padding: 36px 20px;
}

.ka-soon__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-soon__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ka-sec);
  font-weight: 600;
}


/* ----- Кнопки ----- */

.ka-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0.5px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ka-btn--block {
  width: 100%;
}

.ka-btn--pick {
  background: #eef8e4;
  border-color: rgba(183, 224, 0, 0.55);
  color: #1f1f1f;
  box-shadow: 0 1px 0 rgba(31, 31, 31, 0.04);
}

.ka-btn--pick:hover,
.ka-btn--pick:focus {
  background: #b7e000;
  border-color: #a3cc00;
  color: #1f1f1f;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(183, 224, 0, 0.28);
}

.ka-btn--pick:active {
  background: #a3cc00;
  border-color: #92b800;
  color: #fff;
  box-shadow: none;
}

.ka-btn--soft {
  background: #fff;
  border-color: var(--ka-border);
  color: var(--ka-sec);
}

.ka-btn--soft:hover {
  background: var(--ka-soft);
  color: var(--ka-ink);
}

/* ----- Общий пул заявок ----- */

.ka-pool {
  margin: 0 0 14px;
  padding: 14px 16px 12px;
}

.ka-pool__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin: 0 0 8px;
}

.ka-pool__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ka-ink);
  line-height: 1.2;
}

.ka-pool__meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-pool__note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef6ff;
  border: 1px solid #d4e6f8;
  color: #1e3a5f;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.ka-pool__faces {
  margin-bottom: 10px;
}

.ka-pool__faces .is-me a,
.ka-pool__faces .is-me .ka-wall__fallback {
  box-shadow: 0 0 0 2px #15181a;
}

.ka-pool__names .is-me a {
  font-weight: 800;
  text-decoration: underline;
}

.ka-list-ab {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 2px solid #15181a;
  border-radius: 10px;
  background: #fff8e8;
  box-shadow: 0 4px 14px rgba(21, 24, 26, 0.08);
}

.ka-list-ab__label {
  font-size: 12px;
  font-weight: 800;
  color: #15181a;
  margin-right: 2px;
}

.ka-list-ab__btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid #15181a;
  background: #fff;
  color: #15181a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.ka-list-ab__btn.is-active {
  background: #15181a;
  color: #fff;
}

.ka-vote-panel {
  margin: 0 0 14px;
  padding: 14px 16px 12px;
  border: 2px solid #15181a;
}

.ka-vote-panel__head {
  margin: 0 0 6px;
}

.ka-vote-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ka-ink);
  line-height: 1.2;
}

.ka-vote-note {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ka-sec);
}

.ka-vote-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}

.ka-vote-search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.ka-vote-search__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ka-sec);
}

.ka-vote-search__input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1.5px solid #15181a;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ka-ink);
  box-sizing: border-box;
}

.ka-vote-search__input:focus {
  outline: 2px solid rgba(45, 90, 26, 0.35);
  outline-offset: 1px;
}

.ka-vote-toolbar__hint {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ka-ink);
}

.ka-vote-toolbar__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-vote-more {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(21, 24, 26, 0.35);
  background: #f7f7f6;
}

.ka-vote-more__banner {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ka-sec);
}

.ka-vote-more__banner strong {
  font-weight: 800;
  color: #15181a;
}

.ka-vote-more__link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #15181a;
  font: inherit;
  font-size: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.ka-vote-empty-search {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
  text-align: center;
}

.ka-vote-empty-search[hidden],
.ka-vote-more[hidden] {
  display: none !important;
}

.ka-vote-row.is-me {
  background: #f5f8f3;
  border-radius: 10px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
}

.ka-vote-row--moved {
  animation: ka-row-moved 0.45s ease;
}

@keyframes ka-row-moved {
  from { background-color: #eef6d8; }
  to { background-color: transparent; }
}

/* «В составе»: только лайм-кольцо + ✓ на аватаре (без второй подписи у имени) */
.ka-vote-row.is-in-roster {
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.ka-vote-row.is-me.is-in-roster {
  background: #f5f8f3;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.ka-vote-row__av-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  border-radius: 50%;
  line-height: 0;
}

.ka-vote-row.is-in-roster .ka-vote-row__av-wrap {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #c6e05a;
}

/* Галочка на аватаре + тихая подпись у имени (не pill lean-бейджа) */
.ka-roster-tick {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #3d4a12;
  background: #c6e05a;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.ka-vote-sep {
  list-style: none;
  margin: 10px 0 2px;
  padding: 8px 0 0;
  border-top: 1px dashed var(--ka-border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ka-sec);
}

.ka-vote-sep[hidden],
.ka-vote-sep.is-folded:not(.is-search-hit) {
  display: none !important;
}

.ka-vote-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.ka-roster-form {
  margin: 0;
}

.ka-roster-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c6e05a;
  background: #f7fbea;
  color: #5a6b1c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.ka-roster-btn.is-on {
  background: #c6e05a;
  border-color: #b5d048;
  color: #3d4a12;
}

.ka-roster-btn:hover {
  filter: brightness(0.97);
}

.ka-duel__roster,
.ka-pool__roster-meta {
  color: #5a6b1c;
  font-weight: 800;
}

.ka-pool__roster-meta {
  margin: 0;
  font-size: 13px;
}

.ka-vote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Desktop: Качалы | Атакеры */
.ka-vote-board {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ka-vote-col {
  min-width: 0;
}

@media (min-width: 760px) {
  .ka-vote-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "kachaly atakers";
    column-gap: 20px;
    row-gap: 14px;
    align-items: start;
  }

  .ka-vote-col--kachaly {
    grid-area: kachaly;
  }

  .ka-vote-col--atakers {
    grid-area: atakers;
  }

  /* Фильтр одной зоны — колонка на всю ширину */
  .ka-vote-board:has(.ka-vote-col--kachaly.is-col-hidden) {
    grid-template-areas: "atakers atakers";
    grid-template-columns: 1fr;
  }

  .ka-vote-board:has(.ka-vote-col--atakers.is-col-hidden) {
    grid-template-areas: "kachaly kachaly";
    grid-template-columns: 1fr;
  }
}

/* Mobile: Качалы → Атакеры */
@media (max-width: 759px) {
  .ka-vote-col--kachaly { order: 1; }
  .ka-vote-col--atakers { order: 2; }
}

.ka-vote-col .ka-vote-zone {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
}

.ka-vote-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ka-vote-col__empty {
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
  padding: 8px 0;
}

.ka-vote-col.is-col-hidden {
  display: none !important;
}

.ka-vote-list--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 700px) {
  .ka-vote-list--grid {
    grid-template-columns: 1fr 1fr;
  }

  .ka-vote-list--grid .ka-vote-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--ka-border);
    border-radius: 10px;
    border-top: 1px solid var(--ka-border);
  }

  .ka-vote-list--grid .ka-vote-row:first-child {
    padding-top: 10px;
  }

  .ka-vote-list--grid .ka-vote.ka-reactions {
    width: 100%;
    align-items: flex-start;
  }
}

.ka-face-vote {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
}

@media (min-width: 520px) {
  .ka-face-vote {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .ka-face-vote {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.ka-face-vote__item {
  margin: 0;
  min-width: 0;
}

.ka-face-vote__open {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ka-face-vote__av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ka-soft);
  display: block;
}

.ka-face-vote__av--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-face-vote__item.is-me .ka-face-vote__av {
  box-shadow: 0 0 0 2px #15181a;
}

.ka-face-vote__item.is-voted .ka-face-vote__av {
  box-shadow: 0 0 0 2px rgba(45, 90, 26, 0.55);
}

.ka-face-vote__item.is-me.is-voted .ka-face-vote__av {
  box-shadow: 0 0 0 2px #15181a, 0 0 0 4px rgba(45, 90, 26, 0.35);
}

.ka-face-vote__name {
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ka-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.ka-face-vote__tally {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 16px;
  font-size: 11px;
  font-weight: 800;
  color: #6b726e;
  font-variant-numeric: tabular-nums;
}

.ka-face-vote__tally.is-empty {
  opacity: 0.35;
}

.ka-face-vote__tally i {
  font-style: normal;
  opacity: 0.55;
}

.ka-face-vote__home {
  display: none;
}

.ka-vote-sheet {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ka-vote-sheet[hidden] {
  display: none !important;
}

.ka-vote-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(21, 24, 26, 0.42);
  cursor: pointer;
}

.ka-vote-sheet__card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(78vh, 560px);
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  border: 2px solid #15181a;
  border-bottom: 0;
  padding: 16px 16px 22px;
  box-shadow: 0 -10px 30px rgba(21, 24, 26, 0.18);
}

@media (min-width: 700px) {
  .ka-vote-sheet {
    align-items: center;
    padding: 24px;
  }

  .ka-vote-sheet__card {
    border-radius: 14px;
    border-bottom: 2px solid #15181a;
  }
}

.ka-vote-sheet__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b726e;
  cursor: pointer;
  padding: 4px 8px;
}

.ka-vote-sheet__title {
  margin: 0 36px 4px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ka-ink);
  line-height: 1.2;
}

.ka-vote-sheet__profile {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-vote-sheet__slot .ka-vote.ka-reactions {
  width: 100%;
  align-items: stretch;
}

.ka-vote-sheet__slot .ka-react-units {
  width: 100%;
  max-width: none;
}

.ka-vote-sheet__slot .ka-react-unit {
  width: 100%;
}

body.ka-sheet-open {
  overflow: hidden;
}

.ka-lean {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ka-lean__score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "k mid a"
    "sub sub sub";
  align-items: center;
  gap: 4px 10px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 2px solid #15181a;
  background: linear-gradient(90deg, #f3f7f1 0%, #fff 48%, #f7f3f1 100%);
}

.ka-lean__score-side {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ka-lean__score-side--kachaly {
  grid-area: k;
  justify-content: flex-start;
}

.ka-lean__score-side--atakers {
  grid-area: a;
  justify-content: flex-end;
}

.ka-lean__score-mid {
  grid-area: mid;
  font-size: 18px;
  font-weight: 800;
  color: #9aa19c;
}

.ka-lean__score-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-lean__score-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #15181a;
}

.ka-lean__score-sub {
  grid-area: sub;
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-lean__duel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ka-lean__zone {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--ka-border);
  background: #fff;
  min-width: 0;
}

.ka-lean__zone--kachaly {
  background: #f5f8f3;
  border-color: rgba(45, 90, 26, 0.22);
}

.ka-lean__zone--atakers {
  background: #faf5f2;
  border-color: rgba(120, 60, 30, 0.18);
}

.ka-lean__zone--undecided {
  background: #f7f7f6;
}

.ka-lean__zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.ka-lean__zone-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-lean__zone-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #15181a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.ka-lean__zone-hint {
  margin: -2px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
  line-height: 1.3;
}

.ka-lean__empty {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #9aa19c;
  text-align: center;
}

.ka-lean__empty[hidden] {
  display: none !important;
}

/* Плотная стена: 3–4 лица в ряду (зоны на всю ширину) */
.ka-face-vote--lean {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 6px;
}

.ka-lean .ka-face-vote__av {
  width: 48px;
  height: 48px;
}

.ka-lean .ka-face-vote__name {
  font-size: 10px;
}

.ka-lean .ka-face-vote__tally {
  font-size: 10px;
}

@media (min-width: 420px) {
  .ka-face-vote--lean {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .ka-face-vote--lean {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ka-lean .ka-face-vote__av {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 960px) {
  .ka-face-vote--lean {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.ka-face-vote__item--moved .ka-face-vote__av {
  animation: ka-face-pop 0.45s ease;
}

@keyframes ka-face-pop {
  0% { transform: scale(0.92); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (max-width: 419px) {
  .ka-lean__score-num {
    font-size: 22px;
  }

  .ka-lean__score-name {
    font-size: 12px;
  }
}

.ka-lean-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.ka-lean-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 6px;
}

/* Desktop: кнопка рядом с зонами Качалы / Универсалы / Атакеры */
.ka-us-matchups-btn {
  display: none;
}

@media (min-width: 760px) {
  .ka-us-matchups-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #c6e05a;
    background: #f7fbea;
    color: #3d4a12;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
    align-self: center;
  }

  .ka-us-matchups-btn:hover {
    background: #eef6d0;
  }

  .ka-us-matchups-btn.is-open {
    background: #e8f2c4;
    border-color: #a8c43a;
  }
}

.ka-us-matchups[hidden] {
  display: none !important;
}

/* Мини-команды внутри вкладки «Команды» */
.ka-us-matchups {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.ka-us-matchups.is-open,
.ka-us-matchups.is-primary {
  display: block;
}

.ka-pool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 12px;
  background: #f2f4ef;
  box-sizing: border-box;
}

.ka-pool-nav__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ka-sec);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ka-pool-nav__btn.is-active {
  background: #fff;
  color: var(--ka-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.ka-pool-nav__hint,
.ka-pool-nav__n {
  font-size: 11px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-pool-nav__btn.is-active .ka-pool-nav__hint,
.ka-pool-nav__btn.is-active .ka-pool-nav__n {
  color: #1a7a4c;
}

.ka-pool-panel[hidden] {
  display: none !important;
}

.ka-applicants-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: stretch;
  margin: 0 0 12px;
}

.ka-roster-scope {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #eef1ea;
}

.ka-roster-scope__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ka-sec);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ka-roster-scope__btn.is-active {
  background: #fff;
  color: var(--ka-ink);
}

.ka-roster-scope__n {
  font-size: 11px;
  font-weight: 700;
  color: #1a7a4c;
}

.ka-applicants-bar .ka-lean-summary {
  flex: 1 1 220px;
  margin: 0;
}

.ka-squads__toolbar {
  justify-content: flex-end;
}

.ka-us-matchups__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ka-us-matchups__title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-us-matchups__sub {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
  line-height: 1.35;
}

.ka-us-matchups__stats {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #3d4a12;
}

.ka-us-matchups__close {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--ka-border);
  background: #fff;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
  cursor: pointer;
  padding: 6px 10px;
  flex-shrink: 0;
}

.ka-us-matchups__block {
  margin-top: 10px;
}

.ka-us-matchups__block-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ka-ink);
}

.ka-us-matchups__block-note {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ka-sec);
}

.ka-us-matchups__cols {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  gap: 8px;
  padding: 0 10px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ka-sec);
}

.ka-us-matchups__cols-mid {
  text-align: center;
}

.ka-us-matchups__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ka-us-matchups__row {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ka-border);
}

.ka-us-matchups__row.is-leaders {
  background: #f3f8e4;
  border-color: #c6e05a;
}

.ka-us-matchups__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  min-width: 0;
}

.ka-us-matchups__vs {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8aea9;
  line-height: 1;
}

.ka-us-matchups__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d4a12;
}

.ka-us-matchups__h2h {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
}

.ka-us-matchups__h2h.is-loading:empty::before {
  content: '···';
  color: #a8aea9;
  font-weight: 700;
}

.ka-us-matchups__h2h-link {
  display: inline-block;
  color: #5a6b1c;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.ka-us-matchups__h2h-link:hover {
  color: #15181a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ka-us-matchups__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.ka-us-matchups__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ka-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ka-us-matchups__us {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
  font-variant-numeric: tabular-nums;
}

.ka-us-matchups__us--miss {
  color: #a8aea9;
}

.ka-us-matchups__block--gap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e0c8c4;
}

.ka-us-matchups__gap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.ka-us-matchups__gap-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ka-sec);
}

.ka-us-matchups__gap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ka-us-matchups__gap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fff8f7;
  border: 1px solid #f0d4cf;
}

.ka-us-matchups__gap-item .ka-us-matchups__who {
  flex: 1 1 auto;
  min-width: 0;
}

.ka-us-matchups__none {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: #c0392b;
  white-space: nowrap;
}

.ka-us-matchups__gap-empty {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-us-matchups__empty {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-us-matchups__block--uni {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--ka-border);
}

.ka-us-matchups__uni-hint {
  margin: -4px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
}

.ka-us-matchups__uni-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ka-us-matchups__uni-list .ka-us-matchups__who {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ka-border);
}

.ka-lean-summary__item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--ka-border);
  background: var(--ka-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
  cursor: pointer;
  line-height: 1.2;
  opacity: 0.45;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  min-width: 7.5rem;
  text-align: left;
}

.ka-lean-summary__name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
}

.ka-lean-summary__stats {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.ka-lean-summary__us {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-lean-summary__us b {
  font-weight: 800;
  color: var(--ka-ink);
  font-variant-numeric: tabular-nums;
}

.ka-lean-summary__item.is-active {
  opacity: 1;
}

.ka-lean-summary__item.is-selected {
  opacity: 1;
  border-color: #9aa3a0;
  box-shadow: inset 0 0 0 1px rgba(21, 24, 26, 0.06);
}

.ka-lean-summary__item strong {
  color: var(--ka-ink);
  font-weight: 800;
}

.ka-lean-summary__item--kachaly.is-active strong,
.ka-lean-summary__item--kachaly.is-selected strong {
  color: #1f6b4a;
}

.ka-lean-summary__item--atakers.is-active strong,
.ka-lean-summary__item--atakers.is-selected strong {
  color: #8a3a2a;
}

.ka-lean-summary__hint {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
  line-height: 1.35;
}

.ka-vote-zone {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ka-border);
}

.ka-vote-zone[hidden],
.ka-vote-zone.is-folded:not(.is-search-hit) {
  display: none !important;
}

.ka-vote-zone:first-child {
  margin-top: 0;
}

.ka-vote-zone__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ka-vote-zone--kachaly .ka-vote-zone__title {
  color: #1f6b4a;
}

.ka-vote-zone--atakers .ka-vote-zone__title {
  color: #8a3a2a;
}

.ka-vote-zone__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-vote-zone__count {
  font-weight: 800;
  color: var(--ka-sec);
}

.ka-vote-zone__us b {
  font-weight: 800;
  color: var(--ka-ink);
  font-variant-numeric: tabular-nums;
}

.ka-vote-row__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.ka-vote-row__us {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-vote-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--ka-border);
}

/* display:flex выше перебивает нативный [hidden] — прячем явно */
.ka-vote-row[hidden],
.ka-vote-row.is-folded:not(.is-search-hit) {
  display: none !important;
}

.ka-vote-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.ka-vote-row__who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ka-vote-row__av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--ka-soft);
}

.ka-vote-row__av--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-vote-row__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ka-vote-row__meta a {
  color: var(--ka-ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.ka-vote-row__meta .ka-vote-row__us {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-reaction-who-popup__title {
  margin: 0 28px 8px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b726e;
}

.ka-vote.ka-reactions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.ka-vote__self {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-react-units {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 8px;
  width: 220px;
  max-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ka-react-unit {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 36px;
  border-radius: 10px;
  background: #f0f1f0;
  border: 1px solid rgba(31, 31, 31, 0.06);
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.ka-react-unit__icon {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #6b726e;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 1;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  line-height: 1;
  white-space: nowrap;
}

.ka-react-unit__icon.is-static {
  cursor: default;
  opacity: 0.75;
}

.ka-react-unit__icon.is-pending {
  opacity: 0.55;
  pointer-events: none;
}

.ka-react-unit__icon.is-active,
.ka-react-unit.is-active .ka-react-unit__icon {
  color: #15181a;
  background: rgba(45, 90, 26, 0.08);
}

.ka-react-unit__icon:active:not(.is-static) {
  box-shadow: inset 0 0 0 999px rgba(45, 90, 26, 0.08);
}

.ka-react-unit__who {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  border-left: 1px solid rgba(31, 31, 31, 0.12);
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #6b726e;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  box-sizing: border-box;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* точки под числом — как «кто лайкнул» на матче */
.ka-react-unit__who::after {
  content: '';
  display: block;
  width: 12px;
  height: 0;
  border-bottom: 2px dotted currentColor;
  opacity: 0.55;
  margin-top: 1px;
}

.ka-react-unit__who:active:not([disabled]) {
  box-shadow: inset 0 0 0 999px rgba(45, 90, 26, 0.1);
}

.ka-react-unit__who.is-empty,
.ka-react-unit__who[disabled] {
  color: #a8aea9;
  cursor: default;
  opacity: 0.7;
}

.ka-react-unit__who.is-empty::after {
  opacity: 0.25;
}

.ka-react-who-pane {
  display: none !important;
}

.ka-reaction-who-popup {
  position: absolute;
  z-index: 1200;
  width: 260px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid rgba(31, 31, 31, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(21, 24, 26, 0.16);
  padding: 10px 10px 8px;
  box-sizing: border-box;
}

.ka-reaction-who-popup[hidden] {
  display: none !important;
}

.ka-reaction-who-popup__close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #6b726e;
  cursor: pointer;
  padding: 4px;
}

.ka-reaction-who-popup__items {
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.ka-react-who-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ka-react-who-item__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: #15181a;
}

.ka-react-who-item__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #eef0ee;
}

.ka-react-who-item__av--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.ka-react-who-item__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ka-react-who-item__date {
  font-size: 11px;
  font-weight: 600;
  color: #6b726e;
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .ka-vote-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
  }

  .ka-vote.ka-reactions {
    width: 220px;
    max-width: 100%;
    align-items: stretch;
    flex-shrink: 0;
  }

  .ka-vote-list {
    gap: 2px;
  }
}

.ka-pool__names-wrap {
  margin-top: 4px;
}

.ka-pool__names-wrap > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-sec);
  user-select: none;
}

.ka-pool__names-wrap[open] > summary {
  margin-bottom: 8px;
  color: var(--ka-ink);
}

/* ----- Штаб + заявки ----- */

.ka-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 760px) {
  .ka-boards {
    grid-template-columns: 1fr;
  }
}

.ka-board.is-mine {
  border-color: var(--ka-ink);
  border-width: 2px;
}

.ka-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 14px;
}

.ka-board__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ka-ink);
}

.ka-board__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-staff {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--ka-soft);
}

.ka-staff__label,
.ka-wall__label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ka-sec);
}

.ka-staff__equal {
  margin: -4px 0 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
}

.ka-staff__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ka-staff__slot {
  text-align: center;
  min-width: 0;
}

.ka-staff__avatar {
  display: block;
  margin: 0 auto 6px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: #e7e9e5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ka-border);
  text-decoration: none;
}

.ka-staff__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ka-staff__avatar--empty,
.ka-staff__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    #f7f7f6,
    #f7f7f6 6px,
    #eceeed 6px,
    #eceeed 12px
  );
  border-style: dashed;
  border-width: 2px;
  border-color: #cfd3cf;
  box-shadow: none;
  color: var(--ka-sec);
  font-size: 16px;
  font-weight: 800;
}

.ka-staff__role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ka-ink);
}

.ka-staff__name {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-ink);
  text-decoration: none;
}

.ka-staff__name:hover {
  text-decoration: underline;
}

.ka-staff__blurb {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ka-sec);
}

/* Визитка лидера: одна цифра + 1–2 строки, без коробок */
.ka-staff__resume {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ka-border);
}

.ka-staff__stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0 0 6px;
}

.ka-staff__stat-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ka-ink);
}

.ka-staff__stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-staff__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ka-staff__lines li {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ka-sec);
}

.ka-staff__soon {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-wall__empty {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ka-sec);
}

.ka-wall__faces {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
  justify-items: center;
}

.ka-wall__faces a,
.ka-wall__fallback,
.ka-wall__more {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #e7e9e5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ka-border);
  box-sizing: border-box;
}

.ka-wall__faces img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ka-wall__fallback,
.ka-wall__more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ka-sec);
}

.ka-wall__more {
  background: var(--ka-soft);
  box-shadow: none;
  list-style: none;
}

.ka-wall__names {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--ka-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.ka-wall__names li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.ka-wall__names a {
  color: var(--ka-ink);
  text-decoration: none;
  font-weight: 600;
}

.ka-wall__names a:hover {
  text-decoration: underline;
}

.ka-wall__names span {
  flex: 0 0 auto;
  color: var(--ka-sec);
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Страница формы сбора /tournament/{id}: постер команды */
.ka-show-poster {
  margin: 0 0 16px;
  padding: 14px 16px 12px;
  text-align: center;
}

.ka-show-poster__link {
  display: inline-block;
  max-width: 280px;
  width: 100%;
  line-height: 0;
}

.ka-show-poster__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(21, 24, 26, 0.12);
}

.ka-show-poster__cta {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.ka-show-poster__cta a {
  color: #15181a;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .ka-show-poster__link {
    max-width: 220px;
  }
}

/* --- Составы по УС: вкладки + мини-команды ×4 --- */
.ka-us-matchups__tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.ka-us-matchups__tab {
  border: 1px solid var(--ka-border);
  background: #fff;
  color: var(--ka-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.ka-us-matchups__tab.is-active {
  background: var(--ka-lime, #c8f000);
  border-color: transparent;
}
.ka-us-matchups__pane-sub {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
}
.ka-us-matchups__pane[hidden] {
  display: none !important;
}

.ka-squads__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ka-squads__hint {
  margin: 0;
  flex: 1 1 220px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ka-sec);
  line-height: 1.35;
}
.ka-squads__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ka-squads__matchups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ka-squads__empty-side {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}
.ka-squads__new-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 720px) {
  .ka-squads__new-row {
    grid-template-columns: 1fr;
  }
}
.ka-squads__new {
  width: 100%;
  border: 1px dashed var(--ka-border);
  background: transparent;
  color: var(--ka-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.ka-squads__new.is-drop-over,
.ka-squad-slot.is-drop-over,
.ka-squads__bench.is-drop-over {
  outline: 2px solid var(--ka-lime, #c8f000);
  background: rgba(200, 240, 0, 0.12);
}

.ka-squad-matchup {
  border: 1px solid var(--ka-border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px 12px;
  overflow: hidden;
  min-width: 0;
}
.ka-squad-matchup.is-locked-k .ka-squad-matchup__side-meta--k.is-approved,
.ka-squad-matchup.is-locked-a .ka-squad-matchup__side-meta--a.is-approved {
  background: #eef8e8;
  border-radius: 8px;
  padding: 4px 6px;
}
.ka-squad-matchup__cell.is-approved {
  background: #f2f9ed;
  border-color: #c5e0b4;
}
.ka-squad-approve-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #2f6b2f;
  background: #d9efd0;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.3;
}
.ka-squad-card__lock.is-on {
  background: #d9efd0;
  color: #2f6b2f;
}
.ka-squad-matchup__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}
.ka-squad-matchup__side-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}
.ka-squad-matchup__side-meta--a {
  justify-content: flex-end;
  text-align: right;
}
.ka-squad-matchup__label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
.ka-squad-matchup__side-meta--k .ka-squad-matchup__label { color: #1a5c2e; }
.ka-squad-matchup__side-meta--a .ka-squad-matchup__label { color: #6b2a1a; }
.ka-squad-matchup__label--miss {
  color: var(--ka-sec) !important;
  font-weight: 700;
}
.ka-squad-matchup__filled {
  font-size: 11px;
  font-weight: 700;
  color: var(--ka-sec);
}
.ka-squad-matchup__vs {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ka-sec);
  padding-top: 2px;
}
.ka-squad-matchup__cols {
  display: none;
}
.ka-squad-matchup__cols > span:last-child {
  text-align: left;
}
.ka-squad-matchup__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ka-squad-matchup__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.ka-squad-matchup__mid {
  display: none;
}
.ka-squad-matchup__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
}
.ka-squad-matchup__cell {
  min-height: 40px;
  min-width: 0;
  overflow: hidden;
}

.ka-squad-card__lock,
.ka-squad-card__lock-badge {
  border: 0;
  background: #f3f3f3;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ka-ink);
}
.ka-squad-slot {
  min-height: 40px;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid #ececec;
  background: #fafafa;
  padding: 4px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  box-sizing: border-box;
}
.ka-squad-slot.is-empty {
  border-style: dashed;
}
.ka-squad-slot__placeholder {
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  padding: 0 6px;
}

.ka-squads__chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 4px 4px 5px;
  border-radius: 8px;
  box-sizing: border-box;
}
.ka-squads__chip-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.ka-squads__chip.is-draggable .ka-squads__chip-main {
  cursor: grab;
}
.ka-squads__chip.is-draggable .ka-squads__chip-main:hover {
  outline: 1px dashed rgba(0, 0, 0, 0.22);
  outline-offset: 1px;
  border-radius: 6px;
}
.ka-squads__chip.is-draggable {
  cursor: default;
}
.ka-squads__chip.is-draggable:hover {
  outline: none;
}
.ka-squads__chip.is-selected {
  outline: 2px solid #1a7a4c;
  background: rgba(26, 122, 76, 0.12);
  box-shadow: 0 0 0 1px rgba(26, 122, 76, 0.25);
}
.ka-squads__chip.is-dragging {
  opacity: 0.45;
}
.ka-squads.is-dragging-active .ka-squad-slot.is-drop,
.ka-squads.is-dragging-active .ka-squads__bench,
.ka-squads.is-dragging-active .ka-squads__new,
.ka-squads.has-player-selection .ka-squad-slot.is-drop,
.ka-squads.has-player-selection .ka-squad-slot.is-create,
.ka-squads.has-player-selection .ka-squads__new {
  outline: 1px dashed rgba(26, 122, 76, 0.45);
}
.ka-squad-slot.is-create {
  cursor: pointer;
  border-style: dashed;
}
.ka-squads.has-player-selection .ka-squad-slot.is-create {
  background: rgba(26, 122, 76, 0.08);
}
.ka-squad-slot.is-create .ka-squad-slot__placeholder {
  color: #1a7a4c;
  font-weight: 700;
}
.ka-squads__chip-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.ka-squads__chip-ini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
}
.ka-squads__chip-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ka-squads__chip-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.ka-squads__chip-vote {
  width: 100%;
  min-width: 0;
}
.ka-squads__chip-vote .ka-vote.ka-reactions {
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}
.ka-squads__chip-vote .ka-vote__self {
  font-size: 10px;
  line-height: 1.2;
}
.ka-squads__chip-vote .ka-react-units {
  width: 100%;
  max-width: 100%;
  gap: 4px;
}
.ka-squads__chip-vote .ka-react-unit {
  height: 26px;
  border-radius: 8px;
}
.ka-squads__chip-vote .ka-react-unit__icon,
.ka-squads__chip-vote .ka-react-unit__who {
  font-size: 11px;
  padding: 0 5px;
}
/* Чипы: на десктопе полные «Качалы/Атакеры», на узком — «К/А» */
.ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit__face--short {
  display: none;
}
.ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit__icon {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit__who {
  flex: 0 0 auto;
  min-width: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit[data-reaction-unit="kachaly"] .ka-react-unit__icon {
  color: #3d6b1a;
}
.ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit[data-reaction-unit="atakers"] .ka-react-unit__icon {
  color: #9a4a22;
}
.ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit.is-active[data-reaction-unit="kachaly"] .ka-react-unit__icon,
.ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit[data-reaction-unit="kachaly"] .ka-react-unit__icon.is-active {
  background: rgba(143, 184, 46, 0.28);
  color: #2a4f0f;
}
.ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit.is-active[data-reaction-unit="atakers"] .ka-react-unit__icon,
.ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit[data-reaction-unit="atakers"] .ka-react-unit__icon.is-active {
  background: rgba(196, 122, 74, 0.28);
  color: #7a3514;
}
@media (max-width: 720px) {
  .ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit__face--full {
    display: none;
  }
  .ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit__face--short {
    display: inline;
  }
  .ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit__icon {
    flex: 0 0 auto;
    min-width: 22px;
    max-width: 28px;
    padding: 0 4px;
    font-size: 12px;
    text-overflow: clip;
  }
  .ka-squads__chip-vote .ka-vote.is-compact .ka-react-unit__who {
    flex: 1 1 auto;
    min-width: 16px;
  }
}
/* устаревший инфо-счётчик (если остался в кеше) */
.ka-squads__chip-likes {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--ka-sec);
  user-select: none;
  pointer-events: none;
}
.ka-squads__chip-likes.is-empty {
  opacity: 0.3;
}
.ka-squads__chip-likes-sep {
  margin: 0 2px;
  opacity: 0.55;
  font-weight: 600;
}
.ka-squads__chip-likes-k {
  color: #1a5c2e;
}
.ka-squads__chip-likes-a {
  color: #6b2a1a;
}
.ka-squads__chip-us {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--ka-sec);
}
.ka-squads__bench-item,
.ka-squads__pending-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ka-squads__bench-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .ka-squads__bench-row {
    grid-template-columns: 1fr;
  }
}
.ka-squads__bench {
  padding: 8px;
  border-radius: 10px;
  border: 1px dashed var(--ka-border);
  background: #fcfcfc;
  min-height: 48px;
}
.ka-squads__bench-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ka-sec);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ka-squads__bench-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ka-squads__bench-empty {
  font-size: 12px;
  font-weight: 600;
  color: #bbb;
}
.ka-squads__status {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}
.ka-squads__status.is-error {
  color: #c0392b;
}

.ka-squads__pending {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #d5d5d5;
  background: #f7f7f7;
}
.ka-squads__pending-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ka-squads__pending-sum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8e8e8;
  font-size: 12px;
  font-weight: 800;
}
.ka-squads__pending-hint {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ka-sec);
  line-height: 1.35;
}
.ka-squads__pending-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 720px) {
  .ka-squads__pending-row {
    grid-template-columns: 1fr;
  }
}
.ka-squads__pending-col-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
}
.ka-squads__pending-col--kachaly .ka-squads__pending-col-title { color: #1a5c2e; }
.ka-squads__pending-col--atakers .ka-squads__pending-col-title { color: #6b2a1a; }
.ka-squads__pending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
}
.ka-squads__chip--pending {
  opacity: 0.88;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 4px 6px;
}

.ka-squads__team-avg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
@media (max-width: 720px) {
  .ka-squads__team-avg { grid-template-columns: 1fr; }
}
.ka-squads__team-avg-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ka-border);
  background: #fff;
}
.ka-squads__team-avg-item--kachaly { border-color: #c5dfcb; background: #f4faf5; }
.ka-squads__team-avg-item--atakers { border-color: #e5cfc6; background: #faf5f3; }
.ka-squads__team-avg-name {
  font-size: 14px;
  font-weight: 800;
}
.ka-squads__team-avg-item--kachaly .ka-squads__team-avg-name { color: #1a5c2e; }
.ka-squads__team-avg-item--atakers .ka-squads__team-avg-name { color: #6b2a1a; }
.ka-squads__team-avg-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-ink);
}
.ka-squads__team-avg-val b { font-weight: 800; }
.ka-squads__team-avg-n {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ka-sec);
}

.ka-squad-matchup.is-unpaired {
  border-style: dashed;
  background: #fbfbfb;
}
.ka-squad-matchup__vs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 2px;
  min-width: 4.5rem;
  text-align: center;
}
.ka-squad-matchup__no {
  display: inline-block;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  line-height: 1.1;
}
.ka-squad-matchup__delta {
  font-size: 10px;
  font-weight: 800;
  color: var(--ka-sec);
}
.ka-squad-matchup__delta--gap {
  color: #b07a2a;
}

/* ----- Штаб над составами (вместо нижних карточек) ----- */
.ka-staff-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
@media (max-width: 640px) {
  .ka-staff-bar {
    grid-template-columns: 1fr;
  }
}
.ka-staff-bar__team {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e6df;
  background: #f7f8f4;
  box-sizing: border-box;
}
.ka-staff-bar__team--kachaly {
  border-color: #cfe0a8;
  background: #fbfdf5;
}
.ka-staff-bar__team--atakers {
  border-color: #e5d0c4;
  background: #fdf8f5;
}
.ka-staff-bar__team-name {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
}
.ka-staff-bar__people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ka-staff-bar__person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ka-staff-bar__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
}
.ka-staff-bar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ka-staff-bar__avatar--empty,
.ka-staff-bar__ini {
  font-size: 11px;
  font-weight: 800;
  color: #666;
}
.ka-staff-bar__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ka-staff-bar__role {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ka-sec);
}
.ka-staff-bar__name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ka-staff-bar__name:hover {
  text-decoration: underline;
}
.ka-staff-bar__name.is-soon {
  font-weight: 700;
  color: var(--ka-sec);
}
.ka-staff-bar__stat {
  font-size: 11px;
  font-weight: 700;
  color: var(--ka-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Компактная шапка без постеров ----- */
.ka-join {
  margin: 0 0 16px;
  padding: 16px 18px;
  box-sizing: border-box;
}
.ka-join__top {
  margin: 0 0 12px;
}
.ka-join__fee {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ka-ink);
}
.ka-join__hint {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ka-sec);
  line-height: 1.35;
}
.ka-join__hint a {
  color: var(--ka-ink);
  font-weight: 800;
}
.ka-join__meta {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}
.ka-join__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ka-join__mine {
  font-size: 13px;
  font-weight: 700;
  color: var(--ka-ink);
  margin-bottom: 6px;
}
.ka-join__action {
  margin: 0;
}

.ka-roster-cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .ka-roster-cap {
    grid-template-columns: 1fr;
  }
}
.ka-roster-cap__side {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e6df;
  box-sizing: border-box;
  min-width: 0;
}
.ka-roster-cap__side--kachaly {
  border-color: #cfe0a8;
  background: #fbfdf5;
}
.ka-roster-cap__side--atakers {
  border-color: #e5d0c4;
  background: #fdf8f5;
}
.ka-roster-cap__name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
}
.ka-roster-cap__frac {
  justify-self: end;
  font-size: 15px;
  font-weight: 800;
  color: var(--ka-ink);
}
.ka-roster-cap__frac b {
  font-size: 18px;
}
.ka-roster-cap__left {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
}
.ka-roster-cap__bar {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-top: 4px;
}
.ka-roster-cap__fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #8fb82e;
  max-width: 100%;
}
.ka-roster-cap__side--atakers .ka-roster-cap__fill {
  background: #c47a4a;
}
.ka-roster-cap__open {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-ink);
  line-height: 1.35;
  word-break: break-word;
}
.ka-roster-cap__open b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ka-roster-cap__open--soft {
  color: var(--ka-sec);
  font-weight: 600;
}
.ka-roster-cap__more {
  font-weight: 600;
  color: var(--ka-sec);
}
@media (max-width: 640px) {
  .ka-staff-bar__people {
    grid-template-columns: 1fr;
  }
}

.ka-squads__team-avg-frac {
  font-size: 13px;
  font-weight: 800;
  color: var(--ka-ink);
}
.ka-squads__team-avg-frac b {
  font-size: 16px;
}

/* Номер места в середине ряда */
.ka-squad-matchup__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}
.ka-squad-matchup__seat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #ececec;
  font-size: 11px;
  font-weight: 800;
  color: var(--ka-sec);
  line-height: 1;
}
.ka-squad-matchup__us-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ka-ink);
}
.ka-squad-matchup__us-k {
  color: var(--ka-sec);
  font-weight: 700;
  font-size: 10px;
}
.ka-squad-matchup__us-delta {
  font-variant-numeric: tabular-nums;
  color: var(--ka-sec);
}
.ka-squad-matchup__us-delta.is-k {
  color: #1a7a4c;
}
.ka-squad-matchup__us-delta.is-a {
  color: #9a3d1a;
}

.ka-squad-slot__need {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 4px 6px;
  min-height: 36px;
  box-sizing: border-box;
}
.ka-squad-slot__need-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ka-sec);
  line-height: 1.1;
}
.ka-squad-slot__need-us {
  font-size: 14px;
  font-weight: 800;
  color: #1a7a4c;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ka-squad-matchup__cell.is-empty .ka-squad-slot__need-us {
  color: #6b726e;
}
.ka-squads__open-us {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ka-sec);
  line-height: 1.35;
}
.ka-squads__open-us b {
  font-weight: 800;
  color: var(--ka-ink);
  font-variant-numeric: tabular-nums;
}
.ka-squads__team-avg-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ——— Расписание по кортам (как Aug1 schedule grid) ——— */
.ka-schedule__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.ka-schedule__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #15181a;
}
.ka-schedule__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 auto;
}
.ka-schedule__legend-item--green .ka-schedule__swatch { background: #7cb342; }
.ka-schedule__legend-item--blue .ka-schedule__swatch { background: #64b5f6; }
.ka-schedule__legend-item--orange .ka-schedule__swatch { background: #ff9800; }
.ka-schedule__legend-item--purple .ka-schedule__swatch { background: #ab47bc; }
.ka-schedule__legend-item--red .ka-schedule__swatch { background: #e57373; }
.ka-schedule__legend-item--violet .ka-schedule__swatch { background: #7e57c2; }

.ka-schedule__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e7e9e5;
  border-radius: 10px;
  background: #fff;
}
.ka-schedule__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 13px;
}
.ka-schedule__table th,
.ka-schedule__table td {
  border: 1px solid #e7e9e5;
  padding: 8px 10px;
  vertical-align: top;
}
.ka-schedule__table thead th {
  background: #263238;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.ka-schedule__table tbody th {
  background: #f4f5f4;
  text-align: center;
  width: 88px;
  white-space: nowrap;
}
.ka-schedule__time {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: #15181a;
}
.ka-schedule__slot {
  display: block;
  font-size: 11px;
  color: #6b7370;
  font-weight: 600;
}
.ka-schedule__cell--empty { background: #fafafa; }
.ka-schedule__cell--green { background: #e8f5d8; }
.ka-schedule__cell--blue { background: #e3f2fd; }
.ka-schedule__cell--orange { background: #fff3e0; }
.ka-schedule__cell--purple { background: #f3e5f5; }
.ka-schedule__cell--red { background: #fde0e0; }
.ka-schedule__cell--violet { background: #ede7f6; }

.ka-schedule__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
a.ka-schedule__link {
  cursor: pointer;
}
a.ka-schedule__link:hover {
  text-decoration: none;
  color: inherit;
}
a.ka-schedule__link:hover .ka-schedule__kicker,
a.ka-schedule__link:hover .ka-schedule__vs {
  color: #0d47a1;
}
.ka-schedule__cell.is-done {
  opacity: 0.72;
}
.ka-schedule__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #455a64;
}
.ka-schedule__vs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 650;
  line-height: 1.35;
  color: #15181a;
}
.ka-schedule__dash {
  display: none;
}
