/* Отбор заявок оргкомитетом (серия 1000) — референс drag UX Качалы/Атакеры */
.tos {
  --tos-ink: #1a1f16;
  --tos-muted: #5c6554;
  --tos-line: #d8dece;
  --tos-bg: #f4f6ef;
  --tos-roster: #2f6b3a;
  --tos-roster-bg: #e8f5ea;
  --tos-reserve: #3d5a80;
  --tos-reserve-bg: #e8eef6;
  --tos-reject: #8a3b2c;
  --tos-reject-bg: #f8ebe7;
  --tos-accent: #c4e03a;
  margin: 20px 0 28px;
  padding: 16px 16px 12px;
  background: var(--tos-bg);
  border: 1px solid var(--tos-line);
  border-radius: 12px;
}

.tos__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.tos__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 12px;
}

.tos__title-wrap {
  min-width: 0;
}

.tos__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tos-ink);
}

.tos-criteria-edit {
  display: inline-block;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tos-reserve);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.tos-criteria-edit:hover {
  color: var(--tos-ink);
}

.tos__sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--tos-muted);
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35em;
}

.tos__sub-sep {
  color: #a3ab98;
  user-select: none;
}

.tos__sub-item {
  cursor: help;
  border-bottom: 1px dotted transparent;
}

.tos__sub-item:hover {
  color: var(--tos-ink);
  border-bottom-color: #b8c0ad;
}

.tos__sub-item.is-warn {
  color: var(--tos-reject);
  font-weight: 600;
}

.tos__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tos__tools .tos-stages {
  margin: 0;
  padding: 0;
  border: 0;
}

.tos-more {
  position: relative;
}

.tos-more__sum {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--tos-line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--tos-muted);
  user-select: none;
}

.tos-more__sum::-webkit-details-marker {
  display: none;
}

.tos-more[open] > .tos-more__sum {
  background: var(--tos-ink);
  color: #fff;
  border-color: var(--tos-ink);
}

.tos-more__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  max-width: min(360px, 90vw);
  padding: 10px;
  border: 1px solid var(--tos-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 31, 22, 0.12);
  display: grid;
  gap: 8px;
}

.tos__filters--more {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tos-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--tos-line);
  font-size: 0.75rem;
  color: var(--tos-muted);
}

.tos-insights b {
  color: var(--tos-ink);
  font-variant-numeric: tabular-nums;
}

.tos-insights .is-warn,
.tos-insights .is-warn b {
  color: var(--tos-reject);
}

.tos-stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tos-stages__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tos-roster);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}

.tos__filters-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tos-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
  align-self: center;
}

.tos-stages__tail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.tos-chip.is-low-activity {
  opacity: 0.88;
  border-style: dashed;
}

.tos-wc-btn {
  flex: 0 0 auto;
  border: 1px dashed #c4b5fd;
  background: transparent;
  color: #7c6aa8;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
  opacity: 0.75;
}

.tos-wc-btn.is-off:hover {
  opacity: 1;
  background: #f5f3ff;
}

.tos-wc-btn.is-on {
  background: #6b21a8;
  color: #fff;
  border-style: solid;
  border-color: #6b21a8;
  font-weight: 700;
  opacity: 1;
}

.tos-wc-btn.is-static {
  cursor: default;
}

.tos-chip.is-wc {
  border-color: #c4b5fd;
  background: #faf8ff;
}

.tos-chip.is-second1000 {
  box-shadow: inset 3px 0 0 var(--tos-reject);
}

.tos__count--wc {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6b21a8;
}

.tos__count--wc.is-full {
  border-color: #e0b7ad;
  background: var(--tos-reject-bg);
  color: var(--tos-reject);
}

.tos__count--warn {
  border-color: #e0b7ad;
  background: var(--tos-reject-bg);
  color: var(--tos-reject);
}

.tos-chip.is-fail40 {
  border-color: #e0b7ad;
}

.tos-chip.is-fail15 {
  border-color: #c62828;
  box-shadow: inset 3px 0 0 #c62828;
}

.tos-action {
  border: 1px solid #2f6b3a;
  background: #e8f5ea;
  color: #1f4d28;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tos-action:hover {
  background: #d8efdc;
}

.tos-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tos-action.tos-action--stage {
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e8f5ea;
  border: 1px solid #b7d9bc;
  color: #2f6b3a;
}

.tos-action.tos-action--stage:hover:not(:disabled) {
  border-color: #2f6b3a;
  background: #d8efdc;
  color: #1f4d28;
}

.tos-action.tos-action--warn {
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid #e0b7ad !important;
  background: #f8ebe7 !important;
  color: #8a3b2c !important;
}

.tos-action.tos-action--warn:hover {
  background: #f3ddd6 !important;
  border-color: #d4a090 !important;
  color: #6e2e22 !important;
}

.tos-action.tos-action--ghost {
  border-color: #e0b7ad;
  background: transparent;
  color: var(--tos-reject);
}

.tos-action.tos-action--ghost:hover {
  background: var(--tos-reject-bg);
}

.tos-action.tos-action--reset {
  border-color: var(--tos-line);
  background: #fff;
  color: var(--tos-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
}

.tos-action.tos-action--reset:hover {
  border-color: #9aa392;
  color: var(--tos-ink);
  background: #eef1e8;
}

.tos-action--danger {
  border-color: #e0b7ad;
  background: var(--tos-reject-bg);
  color: var(--tos-reject);
}

.tos-action--danger:hover {
  background: #f3ddd6;
}

.tos__slot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 6px;
  padding: 6px 10px;
  border: 1px dashed #c5d0b8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--tos-muted);
  font-size: 0.78rem;
  list-style: none;
}

.tos__slot[data-tos-drop] {
  cursor: copy;
}

.tos__slot.is-drop-over,
.tos__slot.tos__slot--wc.is-drop-over {
  border-color: var(--tos-roster);
  background: var(--tos-roster-bg);
  color: var(--tos-roster);
}

.tos__slot--wc {
  border-color: #c4b5fd;
  background: #f7f4ff;
  color: #6b5b95;
}

.tos__slot--wc .tos__slot-wc {
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid #c4b5fd;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b5b95;
  background: #fff;
}

.tos__slot-num {
  flex: 0 0 auto;
  width: 1.6rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.tos__slot-label {
  opacity: 0.85;
}

/* Компактная полоса волны 1000 (слой C) */
.tos-wave {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--tos-line);
  border-radius: 10px;
  background: #fff;
}

.tos-wave__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.tos-wave__label {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tos-muted);
  white-space: nowrap;
}

.tos-wave__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.tos-wave__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f5ee;
  border: 1px solid transparent;
  color: var(--tos-ink);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
}

a.tos-wave__chip:hover {
  border-color: #c5d0b8;
  background: #eef2e6;
}

.tos-wave__chip.is-current {
  background: var(--tos-roster-bg);
  border-color: #b7d8bd;
  font-weight: 600;
}

.tos-wave__cat {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

.tos-wave__stat {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  color: var(--tos-muted);
  white-space: nowrap;
}

.tos-wave__stat b {
  display: inline;
  font-weight: 700;
  color: var(--tos-roster);
}

.tos-wave__alert {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tos-reject-bg);
  color: var(--tos-reject);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.tos-wave__conflicts {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed var(--tos-line);
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--tos-ink);
}

.tos-wave__conflicts a {
  color: inherit;
}

.tos-wave__c-tour {
  color: var(--tos-muted) !important;
  margin-left: 2px;
}

.tos-chip.is-rt-high .tos-rank--muted,
.tos-rank--muted {
  opacity: 0.55;
  text-decoration: line-through;
}

.tos-rank--top {
  color: #1f4b99;
}

.tos-chip.is-multi-app {
  box-shadow: inset 3px 0 0 #c48a1a;
}

.tos-chip__apps {
  display: block;
  font-size: 0.72rem;
  color: #8a6a1a;
  margin-top: 2px;
}

.tos-chip__apps a {
  color: inherit;
}

.tos__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tos-filter {
  border: 1px solid var(--tos-line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--tos-muted);
}

.tos-filter.is-on {
  background: var(--tos-ink);
  color: #fff;
  border-color: var(--tos-ink);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.tos__filter-hint {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  font-size: 0.75rem;
  color: var(--tos-ink);
  background: #eef6ff;
  border: 1px solid #c5daf5;
  border-radius: 8px;
  padding: 4px 10px;
  line-height: 1.3;
}

.tos.is-filtering .tos__col-title::after {
  content: ' · фильтр';
  font-weight: 500;
  color: var(--tos-muted);
  font-size: 0.8em;
}

.tos__item.is-hidden-filter {
  display: none;
}

.tos__slot--more {
  justify-content: center;
  border-style: dotted;
  opacity: 0.75;
}

.tos__slot--more .tos__slot-label {
  margin: 0;
}

.tos__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tos__count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid var(--tos-line);
  color: var(--tos-muted);
}

.tos__count b {
  color: var(--tos-ink);
  font-variant-numeric: tabular-nums;
}

.tos__count--roster { border-color: #b7d9bc; background: var(--tos-roster-bg); color: var(--tos-roster); }
.tos__count--reserve { border-color: #b8c9df; background: var(--tos-reserve-bg); color: var(--tos-reserve); }
.tos__count--rejected { border-color: #e0b7ad; background: var(--tos-reject-bg); color: var(--tos-reject); }

.tos__search.search-box,
.tos .search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 140px;
  max-width: 220px;
  flex: 0 1 200px;
  margin: 0;
  background: #fff;
  border: 0.5px solid rgba(31, 31, 31, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  height: 34px;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.12s;
}

.tos .search-box:focus-within {
  border-color: rgba(31, 31, 31, 0.3);
  background: #f4f5f6;
}

.tos .search-box > i.ti-search {
  font-size: 14px;
  color: var(--tos-muted);
  flex-shrink: 0;
}

.tos .search-box input[data-tos-search],
.tos .search-box input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  color: var(--tos-ink) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.tos .search-box input::placeholder {
  color: var(--tos-muted);
  font-weight: 500;
  font-size: 12px;
}

.tos .search-box .search-clear {
  font-size: 14px;
  color: var(--tos-muted);
  cursor: pointer;
  display: none;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 50%;
  line-height: 1;
  align-items: center;
}

.tos .search-box .search-clear:hover {
  color: var(--tos-ink);
}

.tos .search-box.has-value .search-clear {
  display: flex;
}

.tos__status {
  font-size: 0.85rem;
  color: var(--tos-muted);
}

.tos__status.is-error {
  color: var(--tos-reject);
  font-weight: 600;
}

.tos__mobile-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

@media (min-width: 900px) {
  .tos__mobile-tabs { display: none; }
}

.tos__tab {
  flex: 1;
  border: 1px solid var(--tos-line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 0.8rem;
  color: var(--tos-muted);
  cursor: pointer;
}

.tos__tab.is-active {
  background: var(--tos-ink);
  color: #fff;
  border-color: var(--tos-ink);
}

.tos__cols {
  display: grid;
  gap: 10px;
}

@media (min-width: 900px) {
  .tos__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.tos__col {
  background: #fff;
  border: 1px solid var(--tos-line);
  border-radius: 10px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.tos__col.is-sort-open {
  z-index: 30;
}

.tos__col--roster { border-top: 3px solid var(--tos-roster); }
.tos__col--reserve { border-top: 3px solid var(--tos-reserve); }
.tos__col--rejected { border-top: 3px solid var(--tos-reject); }

.tos__col.is-drop-over {
  box-shadow: 0 0 0 2px var(--tos-accent);
  border-color: #9bb82a;
}

.tos__col.is-full .tos__col-meta {
  color: var(--tos-reject);
  font-weight: 700;
}

.tos__col-head[data-tos-drop].is-drop-over {
  background: var(--tos-roster-bg);
  box-shadow: inset 0 0 0 2px var(--tos-roster);
}

.tos__col-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #eef1e8;
  position: relative;
  z-index: 4;
}

.tos__col-head-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tos-sort {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  z-index: 5;
}

.tos-sort.is-open {
  z-index: 40;
}

.tos-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 7.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 0.5px solid rgba(26, 31, 22, 0.14);
  background: #fff;
  color: var(--tos-muted);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
}

.tos-sort.is-set .tos-sort__btn {
  color: var(--tos-ink);
  font-weight: 600;
  border-color: rgba(26, 31, 22, 0.22);
}

.tos-sort.is-open .tos-sort__btn {
  background: #eef1e8;
  border-color: rgba(26, 31, 22, 0.22);
}

.tos-sort__btn .ti-arrows-sort {
  font-size: 0.85rem;
  flex-shrink: 0;
  opacity: 0.75;
}

.tos-sort__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.tos-sort__btn .ti-chevron-down {
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.15s;
}

.tos-sort.is-open .tos-sort__btn .ti-chevron-down {
  transform: rotate(180deg);
}

.tos-sort__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(220px, 80vw);
  padding: 4px;
  border-radius: 10px;
  border: 0.5px solid rgba(26, 31, 22, 0.1);
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 31, 22, 0.12);
  z-index: 50;
}

.tos-sort__menu[hidden] {
  display: none !important;
}

.tos-sort__item {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--tos-ink);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.tos-sort__item:hover {
  background: #f0f3ea;
}

.tos-sort__item.is-on {
  background: #e8f5ea;
  color: var(--tos-roster);
  font-weight: 700;
}

.tos__col-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tos-ink);
}

.tos__col-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--tos-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tos__col-meta [data-tos-count] {
  display: inline;
  font-weight: 600;
  color: inherit;
}

.tos__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 62vh;
  overflow: auto;
  min-height: 160px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.tos__empty {
  margin: 24px 8px;
  text-align: center;
  color: var(--tos-muted);
  font-size: 0.88rem;
  list-style: none;
}

.tos__item.is-hidden-search {
  display: none;
}

.tos-chip {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--tos-line);
  border-radius: 8px;
  background: #fbfcf8;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.tos-chip__pick {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  margin: 0 !important;
  padding: 0 2px 0 6px !important;
  float: none !important;
  height: auto !important;
  width: auto !important;
  cursor: pointer;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
}

.tos-chip__pick input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: inline-block !important;
  float: none !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: #3d5a28;
  cursor: pointer;
}

.tos-chip.is-picked {
  border-color: #9bb82a;
  background: #f4f9e4;
}

.tos-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #c5d49a;
  border-radius: 8px;
  background: #f3f8e4;
}

.tos-bulk[hidden] {
  display: none !important;
}

.tos-bulk__all {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  float: none !important;
  height: auto !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--tos-ink) !important;
  cursor: pointer;
}

.tos-bulk__all input {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  accent-color: #3d5a28;
}

.tos-bulk__count {
  font-size: 0.8rem;
  color: var(--tos-muted);
  margin-right: 4px;
}

.tos-bulk__count b {
  color: var(--tos-ink);
  font-weight: 700;
}

.tos-chip.is-draggable .tos-chip__main {
  cursor: grab;
}

.tos-chip.is-selected {
  border-color: #9bb82a;
  box-shadow: 0 0 0 2px rgba(196, 224, 58, 0.55);
  background: #f7fce0;
}

.tos-chip.is-dragging {
  opacity: 0.55;
}

.tos-chip.is-rejected {
  background: #fff8f6;
}

.tos-restore-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 8px 6px 0;
  border: 1px solid var(--tos-reserve);
  background: var(--tos-reserve-bg);
  color: var(--tos-reserve);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}

.tos-restore-btn:hover {
  background: #d9e6f5;
}

.tos-chip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 8px 2px;
}

.tos-dup-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 8px 6px 0;
  border: 1px solid #8a6d3b;
  background: #fff8e8;
  color: #6a4f1d;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}

.tos-dup-btn:hover {
  background: #f5e6c8;
}

.tos-dup-link {
  display: inline-flex;
  align-items: center;
  margin: 0 8px 6px 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tos-muted);
  text-decoration: underline;
  line-height: 1.4;
}

.tos-dup-link:hover {
  color: var(--tos-text);
}

.tos__col-hint {
  margin: 0 10px 6px;
  font-size: 0.7rem;
  color: var(--tos-muted);
  line-height: 1.35;
}

.tos-action--restore {
  margin-left: 4px;
}

.tos-chip__main {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 8px;
  user-select: none;
  flex: 1 1 auto;
  min-width: 0;
}

.tos-chip__photo,
.tos-chip__ini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-top: 1px;
}

.tos-chip__photo {
  object-fit: cover;
  background: #ddd;
}

.tos-chip__ini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2c3326;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.tos-chip__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tos-chip__top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.tos-chip__name {
  color: var(--tos-ink);
  font-weight: 650;
  font-size: 0.84rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.tos-chip__name:hover {
  text-decoration: underline;
}

.tos-chip__metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--tos-muted);
  font-variant-numeric: tabular-nums;
}

.tos-m {
  white-space: nowrap;
}

.tos-m.is-top {
  color: #1f4b99;
  font-weight: 700;
}

.tos-m.is-top4 {
  color: #8a5a00;
  font-weight: 800;
}

.tos-m.is-warn {
  color: var(--tos-reject);
  font-weight: 700;
}

.tos-m.is-muted {
  opacity: 0.55;
  text-decoration: line-through;
}

.tos-criteria-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 4px;
  width: 100%;
}

.tos-criteria-modal__item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  float: none !important;
  height: auto !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--tos-line);
  border-radius: 8px;
  background: #fff !important;
  color: var(--tos-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  line-height: 1.35 !important;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.tos-criteria-modal__item:hover {
  border-color: #9db87a;
  background: #f7faf2 !important;
}

.tos-criteria-modal__check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  cursor: pointer;
}

.tos-criteria-modal__item--plain {
  cursor: default;
}

.tos-criteria-modal__num {
  display: inline-block !important;
  float: none !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 32px !important;
  margin: 0 0 0 auto !important;
  padding: 4px 8px !important;
  border: 1px solid var(--tos-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  text-align: center;
  flex: 0 0 72px;
}

/* Сброс main.css: input { width: 285px !important; margin: 30px } */
.tos-criteria-modal__item input[type="checkbox"],
.tos-modal input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  display: inline-block !important;
  float: none !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 0 0 18px;
  accent-color: #3d5a28;
  cursor: pointer;
  font-size: inherit !important;
  line-height: 1 !important;
}

.tos-criteria-modal__item-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}

.tos-m--cat.is-mismatch {
  color: #c62828;
  font-weight: 700;
}

.tos-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.45;
  background: #eef1e8;
  color: var(--tos-muted);
}

.tos-tag.is-warn {
  background: var(--tos-reject-bg);
  color: var(--tos-reject);
}

.tos-tag.is-soft-warn {
  background: #fcecea;
  color: #b45c4e;
  border: 1px solid #f0d0c8;
  font-weight: 600;
}

.tos-tag.is-severe {
  background: #c62828;
  color: #fff;
  border: 1px solid #b71c1c;
  font-weight: 700;
}

button.tos-tag.is-action {
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #e0b7ad;
}

button.tos-tag.is-action:hover {
  background: #f3ddd6;
  color: var(--tos-reject);
}

.tos-tag.is-new {
  background: #e7f0ff;
  color: #1f4b99;
}

.tos-tag.is-region {
  background: #fdecea;
  color: #a94442;
  border: 1px solid #f5c6cb;
}

.tos-tag.is-wc {
  background: #f3e8ff;
  color: #6b21a8;
}

.tos-admit {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.4;
  background: #e8f5ea;
  color: var(--tos-roster);
  white-space: nowrap;
}

.tos-admit--top4 {
  background: #fff3d6;
  color: #8a5a00;
}

.tos-admit--top20 {
  background: #e7f0ff;
  color: #1f4b99;
}

.tos-admit--wc {
  background: #f3e8ff;
  color: #6b21a8;
}

.tos-admit--manual {
  background: #f0f0ec;
  color: #5c6554;
}

.tos-wc-btn {
  margin-left: 4px;
  padding: 0 6px;
  border: 1px solid #c4b5d8;
  border-radius: 999px;
  background: #faf7ff;
  color: #6b21a8;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.tos-wc-btn:hover {
  background: #f3e8ff;
}

.tos-wc-btn.is-on {
  border-color: #c9a227;
  background: #fff8e6;
  color: #8a5a00;
}

.tos__item.is-regular-overflow .tos-chip {
  box-shadow: inset 3px 0 0 #c9a227;
}

.tos-chip__reason {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 1px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--tos-reject-bg);
  border: 1px solid #e8c7bd;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--tos-reject);
}

.tos-chip__reason.is-empty {
  opacity: 0.65;
  font-style: italic;
}

.tos-chip__reason-label {
  flex: 0 0 auto;
  font-weight: 700;
  opacity: 0.8;
}

.tos-chip__reason-body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tos-chip__reason-text {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tos-chip__reason-link {
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.68rem;
  color: #8b3a2f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tos-chip__reason-link:hover {
  color: #5c241c;
}

.tos-chip__note {
  display: block;
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff8e8;
  color: #7a5a12;
  font-size: 0.7rem;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tos-chip__apps {
  font-size: 0.68rem;
  color: var(--tos-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tos-chip__apps a {
  color: inherit;
}

.tos.is-dragging-active .tos__col[data-tos-drop] {
  background: #fcfdf9;
}

@media (max-width: 899px) {
  .tos__col:not(.is-mobile-active) {
    display: none;
  }
}

.tos-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(18, 22, 14, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tos-modal[hidden] {
  display: none !important;
}

.tos-modal__card {
  width: min(100%, 440px);
  max-height: min(92vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}

/* Сброс legacy main.css внутри модалок: label float/margin, input width 285px */
.tos-modal label {
  float: none !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}

.tos-modal input,
.tos-modal select,
.tos-modal textarea {
  width: auto !important;
  max-width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  float: none !important;
}

.tos-modal__title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  float: none !important;
  height: auto !important;
  color: var(--tos-ink) !important;
}

.tos-modal__who {
  margin: 0 0 8px;
  color: var(--tos-muted);
  font-size: 0.9rem;
}

.tos-modal__hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--tos-muted);
  line-height: 1.35;
}

.tos-modal__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  max-height: 40vh;
  overflow: auto;
}

.tos-modal__preset {
  border: 1px solid var(--tos-line);
  background: var(--tos-bg);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--tos-ink);
  float: none;
  height: auto;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
}

.tos-modal__preset:hover {
  border-color: #9bb82a;
}

.tos-modal__field {
  display: block;
  clear: both;
  margin: 0 0 14px;
  float: none;
  width: 100%;
}

.tos-modal__label {
  display: block !important;
  float: none !important;
  height: auto !important;
  width: auto !important;
  margin: 0 0 6px !important;
  font-size: 0.85rem !important;
  font-family: inherit !important;
  color: var(--tos-muted) !important;
  line-height: 1.3;
}

.tos-modal__req {
  color: var(--tos-reject);
  font-size: 0.75rem;
}

.tos-modal__textarea {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1px solid var(--tos-line) !important;
  background: #fff !important;
  resize: vertical;
  min-height: 72px;
  font: inherit !important;
  font-size: 0.9rem !important;
  color: var(--tos-ink) !important;
  float: none !important;
  clear: both;
  line-height: 1.4 !important;
}

.tos-modal__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  clear: both;
  float: none;
  width: 100%;
  margin: 0;
  padding-top: 2px;
  position: relative;
  z-index: 1;
}

.tos-modal__btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  float: none !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  line-height: 1.3;
  font-family: inherit;
  font-size: 0.9rem;
}

.tos-modal__btn--ghost {
  background: #eef1e8;
  color: var(--tos-ink);
}

.tos-modal__btn--primary {
  background: #3d5a28;
  color: #fff;
}

.tos-modal__btn--primary:hover {
  background: #2f4620;
}

.tos-modal__btn--danger {
  background: var(--tos-reject);
  color: #fff;
}

/* Публичный блок «Как проходил отбор» */
.tos-public {
  margin: 0 0 14px;
  padding: 12px 12px 10px;
  background: #f7f8f3;
  border: 1px solid var(--tos-line, #d8dece);
  border-radius: 10px;
  color: var(--tos-ink, #1a1f16);
  font-family: var(--mv2-font, 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif);
}
.tournament-members-list--org-sel > .tos-public:first-child {
  margin-top: 0;
}

.tos-public__me {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--tos-line, #d8dece);
  background: #fff;
}

.tos-public__me--toggle {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.tos-public__me--toggle:hover {
  filter: brightness(0.98);
}
.tos-public__me--toggle.is-open {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.tos-public__me-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: #2f5a36;
}
.tos-public__me--out .tos-public__me-hint {
  color: #8a4b3d;
}
.tos-public__me-chevron,
.tos-public__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 7px;
  border: 1.5px solid #8fb896;
  background: #e8f3ea;
  color: #1f5a2c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.tos-public__me--toggle.is-open .tos-public__me-chevron,
.tos-public__me--toggle.is-open .tos-public__chevron,
.tos-public__how-toggle.is-open .tos-public__me-chevron,
.tos-public__how-toggle.is-open .tos-public__chevron {
  transform: rotate(180deg);
  background: #d7ebd9;
  border-color: #6f9e78;
}
.tos-public__how-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--tos-line, #d8dece);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: #2a3328;
  cursor: pointer;
  text-align: left;
}
.tos-public__how-toggle:hover {
  background: #f7f8f3;
}
.tos-public__how-toggle:hover .tos-public__chevron {
  background: #d7ebd9;
  border-color: #6f9e78;
}
.tos-public__how-lead {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.tos-public__how-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--tos-ink, #1a1f16);
}
.tos-public__how-sub {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--tos-muted, #5c6554);
}
.tos-public__how-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  max-width: 46%;
}
.tos-public__how-action-text {
  font-size: 13px;
  font-weight: 700;
  color: #2f5a36;
  line-height: 1.25;
  text-align: right;
}
.tos-public__how-toggle .tos-public__me-chevron,
.tos-public__how-toggle .tos-public__chevron {
  margin-left: 0;
}
@media (max-width: 640px) {
  .tos-public__how-toggle {
    align-items: flex-start;
  }
  .tos-public__how-action {
    max-width: 42%;
  }
  .tos-public__how-action-text {
    font-size: 12px;
  }
}
.tos-public__details {
  margin-top: 10px;
  padding-top: 2px;
}
.tos-public__details[hidden] {
  display: none !important;
}
.tos-public__col .tos-public__badges {
  margin-left: auto;
  margin-top: 0;
  width: auto;
  flex: 0 1 auto;
}
.tos-public__col .tos-public__row {
  flex-wrap: wrap;
  align-items: center;
}
.tos-public__col .tos-public__who {
  max-width: 100%;
  width: 100%;
  flex: 1 1 100%;
}
.tos-public__col .tos-public__name {
  max-width: 16rem;
}
.tos-public__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  width: 100%;
}
.tos-public__who .tos-public__pos {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-right: 2px;
  border-radius: 6px;
  background: #e8ebe3;
  color: #3a4034;
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.35rem;
  text-align: center;
  letter-spacing: -0.02em;
}
.tos-public__meta .tos-public__pos {
  display: none; /* номер только у имени, не в строке метрик */
}
.tos-public__reason {
  flex: 1 0 100%;
  margin: 2px 0 0;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(180, 70, 50, 0.06);
  color: #7a3d32;
  font-size: 12px;
  line-height: 1.35;
}

.tos-public__me--in {
  border-color: #9bc49f;
  background: #eef7ef;
}

.tos-public__me--out {
  border-color: #e0b4aa;
  background: #faf0ed;
}

.tos-public__ack {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e0c48a;
  background: #faf6ee;
}
.tos-public__ack-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #5c4a28;
}
.tos-public__ack-btn {
  display: inline-block;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #1F1F1F;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tos-public__ack-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.tos-public__ack-done {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6F6F6F;
}

.tos-public__me--pending {
  border-color: #b8c6d8;
  background: #eef3f9;
}

.tos-public__me--high {
  border-color: #9bc49f;
  background: #eef7ef;
}

.tos-public__me--ok {
  border-color: #b8c6d8;
  background: #eef3f9;
}

.tos-public__me--low {
  border-color: #e0c48a;
  background: #faf6ee;
}

.tos-public__chance {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  border: 1px solid transparent;
}

.tos-public__chance--in,
.tos-public__chance--high {
  color: #1f5a2c;
  background: #d9efdc;
  border-color: #9bc49f;
}

.tos-public__chance--ok {
  color: #2a4a6a;
  background: #dce7f4;
  border-color: #a8bdd4;
}

.tos-public__chance--low {
  color: #6a4a12;
  background: #f3e6c8;
  border-color: #e0c48a;
}

.tos-public__me-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tos-public__me-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.tos-public__me-text,
.tos-public__me-dup {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--tos-muted, #5c6554);
}

.tos-public__me-dup a {
  font-weight: 600;
}

.tos-public__head {
  margin: 0 0 10px;
}

.tos-public__head--compact {
  margin-bottom: 8px;
}

.tos-public__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tos-ink, #1a1f16);
  display: block;
}

.tos-public__title--final {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.tos-public__phase-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 0.88em;
  font-weight: 600;
  color: #2f5a36;
  white-space: nowrap;
}

.tos-public__phase-inline .tos-public__phase-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: #d9efdc;
  color: #1f5a2c;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
}

.tos-public__phase-inline .tos-public__phase-text {
  font-weight: 600;
  color: var(--tos-muted, #5c6554);
}

.tos-public__meta-row {
  display: block !important;
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tos-muted, #5c6554);
  white-space: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.tos-public__meta-row > span,
.tos-public__meta-row .tos-public__sep {
  display: inline !important;
  white-space: nowrap !important;
}

.tos-public__meta-row .tos-public__sep {
  margin: 0 0.35em;
  color: #a3ab98;
  font-weight: 500;
}

.tos-public__count {
  font-weight: 600;
  color: var(--tos-muted, #5c6554);
  font-size: 0.85em;
}

.tos-public__meta {
  font-weight: 600;
  color: var(--tos-muted, #5c6554);
  font-size: 0.78em;
}

.tos-public__meta::before {
  content: none;
  margin: 0;
}

.tos-public__sub {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--tos-muted, #5c6554);
  line-height: 1.35;
}

.tos-public__auto-note {
  margin: 0;
  padding: 6px 8px 6px 10px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #4a5344;
  background: #f3f6ef;
  border-radius: 6px;
  border: 1px solid rgba(90, 100, 80, 0.12);
  border-left: 3px solid #6a8f6a;
}

.tos-public__auto-note--final {
  border-left-color: #2f7a48;
  background: #eef6f0;
}

.tos-public__explain {
  margin: 10px 0 0;
  padding: 10px 12px;
  font-family: var(--mv2-font, 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #6f6f6f;
  background: #fff;
  border: 1px solid var(--tos-line, #d8dece);
  border-radius: 8px;
}

.tos-public__explain-item {
  margin: 0;
  font: inherit;
  color: inherit;
}

.tos-public__explain-item + .tos-public__explain-item {
  margin-top: 8px;
}

.tos-public__explain a {
  font-weight: 600;
  color: #2a3328;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tos-public__explain a:hover {
  color: #1a1f16;
}

.tos-public__capacity {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--tos-ink, #1a1f16);
}

.tos-public__capacity-sep {
  margin: 0 4px;
  color: #a3ab98;
}

.tos-public__funnel {
  display: flex;
  height: 6px;
  margin: 8px 0 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #e4e8de;
  gap: 2px;
}

.tos-public__funnel-seg {
  min-width: 0;
  display: block;
}

.tos-public__funnel-seg--priority { background: #5f9a62; }
.tos-public__funnel-seg--review { background: #6a8fb0; }
.tos-public__funnel-seg--fail { background: #c4a06a; }

.tos-public__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 4px;
}

.tos-public__legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #cfd6c4;
  background: #fff;
  color: var(--tos-ink, #1a1f16);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}

.tos-public__legend-btn b {
  font-weight: 800;
}

.tos-public__legend-btn.is-active {
  border-color: #3d5a28;
  background: #eef5e6;
  box-shadow: inset 0 0 0 1px rgba(61, 90, 40, 0.15);
}

.tos-public__legend-btn--priority.is-active {
  border-color: #3f7a45;
  background: #e8f4ea;
}

.tos-public__legend-btn--fail.is-active {
  border-color: #b07a3a;
  background: #f7f0e4;
}

.tos-public__me-jump-wrap {
  margin: 6px 0 0;
}

.tos-public__me-jump {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #2f5a8a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.tos-public__group-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tos-public__group-toggle-main {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.tos-public__group-toggle-main b {
  font-weight: 800;
}

.tos-public__group-chevron {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7a8470;
  border-bottom: 2px solid #7a8470;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.tos-public__group.is-open .tos-public__group-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.tos-public__faces {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 10px 10px;
}

.tos-public__face {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cfd6c4;
  background: #dfe5d4;
  text-decoration: none;
}

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

.tos-public__face-ph {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #4a5344;
}

.tos-public__face.is-me {
  box-shadow: 0 0 0 2px #c4e03a;
}

.tos-public__face.is-prelim {
  box-shadow: 0 0 0 2px #7bbf82;
}

.tos-public__face.is-me.is-prelim {
  box-shadow: 0 0 0 2px #c4e03a;
}

.tos-public__face-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #5c6554;
  background: #e8ece3;
}

.tos-public__auto {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #5c6554;
  background: #e8ece3;
  border-radius: 4px;
  line-height: 1.4;
}

.tos-public__group--fail .tos-public__auto {
  color: #7a4e22;
  background: #f3e8da;
}

.tos-public__group--priority .tos-public__auto {
  color: #2f6b3a;
  background: #ddeedd;
}

.tos-public__sep {
  color: #a3ab98;
}

.tos-public__cols {
  display: grid;
  gap: 10px;
}

@media (min-width: 860px) {
  .tos-public__cols {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.tos-public__col {
  background: #fff;
  border: 1px solid var(--tos-line, #d8dece);
  border-radius: 8px;
  padding: 8px 10px 10px;
  min-width: 0;
}

.tos-public__col-title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.tos-public__col-title b {
  font-weight: 800;
}

.tos-public__col--roster .tos-public__col-title {
  color: var(--tos-roster, #2f6b3a);
}

.tos-public__col--out .tos-public__col-title {
  color: var(--tos-reject, #8a3b2c);
}

.tos-public__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 360px;
  overflow: auto;
}

.tos-public__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #fff;
}

.tos-public__row--out {
  background: #faf3f1;
  align-items: flex-start;
}

.tos-public__row.is-me {
  outline: 2px solid #c4e03a;
  outline-offset: 0;
}

.tos-public__who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.tos-public__who:hover .tos-public__name {
  text-decoration: underline;
}

.tos-public__ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #dfe5d4;
}

.tos-public__ava--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #4a5340;
}

.tos-public__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

.tos-public__cat.is-mismatch {
  flex: 0 0 auto;
  color: #c62828;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.tos-public__me-main .tos-public__cat.is-mismatch {
  font-size: 0.78rem;
  margin-left: 2px;
}

.tos-public__badge {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  background: #e8f0dc;
  color: #3d5a28;
  line-height: 1.5;
  white-space: nowrap;
}

.tos-public__badge--top4 {
  background: #fff3d6;
  color: #8a5a00;
}

.tos-public__badge--top20 {
  background: #e7f0ff;
  color: #1f4b99;
}

.tos-public__badge--fail,
.tos-public__badge--cat,
.tos-public__badge--warn {
  background: #f4e4e0;
  color: #8a3b2c;
}

.tos-public__badge--severe {
  background: #c62828;
  color: #fff;
}

.tos-public__badge--rt {
  background: #f0f0ec;
  color: #5a5a52;
}

.tos-public__badge--transfer {
  background: #e8f2f7;
  color: #1a5f7a;
}

.tos-public__badge--wc {
  background: #f3e8ff;
  color: #6b21a8;
}

.tos-public__badge--in {
  background: #e8f5ea;
  color: #2f6b3a;
}

.tos-public__badge--region {
  background: #fdecea;
  color: #a94442;
  border: 1px solid #f5c6cb;
}

.tos-public__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  margin-left: auto;
}

.tos-public__list--applicants {
  max-height: none;
  gap: 1px;
  padding: 0;
  overflow: visible;
}

.tos-public__group {
  margin-top: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.tos-public__group:first-of-type {
  margin-top: 6px;
}

.tos-public__group--priority {
  border-color: transparent;
}

.tos-public__group--fail {
  border-color: transparent;
}

.tos-public__group--priority .tos-public__group-toggle-main {
  color: #2f6b3a;
}

.tos-public__group--fail .tos-public__group-toggle-main {
  color: #8a5a22;
}

.tos-public__group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 0 0 4px;
  padding: 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3d4636;
  letter-spacing: 0.01em;
}

.tos-public__group-title b {
  font-weight: 700;
  color: #7a8470;
}

.tos-public__group-hint {
  flex: 1 1 100%;
  font-size: 0.68rem;
  font-weight: 500;
  color: #9aa290;
  letter-spacing: 0;
  padding: 0;
  margin: 0;
}

.tos-public__group.is-open .tos-public__group-hint {
  padding-bottom: 0;
}

.tos-public__group--priority .tos-public__group-title {
  color: #2f6b3a;
}

.tos-public__group--fail .tos-public__group-title {
  color: #8a5a2b;
}

.tos-public__group .tos-public__list--applicants {
  max-height: 420px;
  overflow: auto;
  gap: 4px;
  border: 1px solid rgba(90, 100, 80, 0.12);
  border-radius: 8px;
  background: #fbfcf8;
}

.tos-public__group--priority .tos-public__list--applicants {
  background: #f4faf4;
  border-color: rgba(60, 130, 70, 0.16);
}

.tos-public__group--fail .tos-public__list--applicants {
  background: #fcf8f3;
  border-color: rgba(160, 110, 50, 0.16);
}

.tos-public__list--applicants .tos-public__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 6px;
  padding: 6px 8px;
  min-height: 0;
  height: auto;
  flex-shrink: 0; /* иначе при max-height списка строки сжимаются до 28px и бейджи наезжают */
}

.tos-public__list--applicants .tos-public__who {
  flex: 1 1 100%;
  min-width: 0;
}

.tos-public__list--applicants .tos-public__ava {
  width: 22px;
  height: 22px;
}

.tos-public__list--applicants .tos-public__meta {
  width: 100%;
  padding-left: calc(1.35rem + 6px); /* выровнять под имя после № */
}
.tos-public__list--final .tos-public__meta {
  padding-left: calc(1.35rem + 6px);
}

.tos-public__list--applicants .tos-public__games,
.tos-public__list--final .tos-public__games,
.tos-public__place,
.tos-public__us {
  font-size: 0.68rem;
  font-weight: 600;
  color: #5c6554;
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f0f2eb;
  border: 1px solid #e2e6da;
  line-height: 1.35;
}

.tos-public__metric-k {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #8a9180;
}

.tos-public__metric-v {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #2a2f24;
}

.tos-public__place {
  background: #eef3f9;
  border-color: #c8d4e4;
}

.tos-public__place .tos-public__metric-v {
  color: #3d5a80;
}

.tos-public__place.is-top4 {
  background: #fff3cd;
  border-color: #ffe08a;
}

.tos-public__place.is-top4 .tos-public__metric-k,
.tos-public__place.is-top4 .tos-public__metric-v {
  color: #7a5a00;
}

.tos-public__us {
  background: #eef6d8;
  border-color: #d4e8a0;
}

.tos-public__us .tos-public__metric-v {
  color: #3d5a00;
}

.tos-public__games-extra {
  font-weight: 500;
  color: #8a9180;
  margin-left: 2px;
}

.tos-public__list--applicants .tos-public__badges {
  flex: 1 1 auto;
  margin-left: 0;
  max-width: none;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2px;
}

.tos-public__list--applicants .tos-public__badge {
  font-size: 0.62rem;
  padding: 1px 5px;
  line-height: 1.25;
}

.tos-public__list--applicants .tos-public__row.is-prelim {
  background: #e8f5ea;
}

.tos-public__list--applicants .tos-public__row.is-fail {
  opacity: 0.92;
}

.tos-public__list--applicants .tos-public__row.is-me {
  outline: 2px solid #c4e03a;
  outline-offset: -1px;
}

.tos-public__reason,
.tos-public__dup {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--tos-muted, #5c6554);
}

.tos-public__dup {
  margin-top: -2px;
}

.tos-public__empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--tos-muted, #5c6554);
}

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

/* Этапы: 1 отбор → 2 жеребьёвка по районам */
.tos-steps {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #e2e6da;
  border-radius: 12px;
  background: #fafbf7;
}
.tos-steps__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a9180;
}
.tos-steps__track {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
.tos-steps__arrow {
  display: none;
  align-self: center;
  color: #a8b09a;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0 2px;
}
@media (min-width: 720px) {
  .tos-steps__arrow { display: inline; }
  .tos-steps__track { flex-wrap: nowrap; }
}
.tos-steps__step {
  flex: 1 1 14rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  border: 1px solid #d5d9ce;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: #3a4034;
  min-width: 0;
}
.tos-steps__step:hover {
  border-color: #a8c200;
  background: #f7fbe8;
}
.tos-steps__step.is-on {
  background: #C8E600;
  border-color: #a8c200;
  box-shadow: 0 0 0 1px #a8c200;
}
.tos-steps__step.is-locked {
  opacity: 0.72;
}
.tos-steps__num {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #eef1ea;
  color: #5c6554;
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tos-steps__step.is-on .tos-steps__num {
  background: #1f1f1f;
  color: #C8E600;
}
.tos-steps__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tos-steps__title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}
.tos-steps__hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: #5c6554;
  line-height: 1.3;
}
.tos-steps__step.is-on .tos-steps__hint {
  color: #3a4034;
}
.tos-steps__stat {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: #f3f5ee;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.tos-steps__step.is-on .tos-steps__stat {
  background: rgba(31, 31, 31, 0.12);
}
.tos-steps__stat.is-ok {
  background: #e8f5c8;
  color: #3d4a12;
}
.tos-steps__stat.is-warn {
  background: #fff3cd;
  color: #7a5a00;
}
.tos-steps__stat.is-muted {
  background: #f0f0f0;
  color: #8a9180;
  font-weight: 600;
}
/* совместимость со старым классом, если где-то остался */
.tos-view-switch {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}
.tos-view-switch__btn {
  border: 1px solid #d5d9ce;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: #3a4034;
}
.tos-view-switch__btn.is-on {
  background: #C8E600;
  border-color: #a8c200;
}
.tos-districts {
  margin-top: 4px;
}
.tos-districts__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.tos-districts__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.tos-districts__lead {
  margin: 0;
  font-size: 0.82rem;
  color: #5c6554;
  max-width: 40rem;
}
.tos-districts__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.tos-districts__bal {
  font-size: 0.78rem;
  font-weight: 700;
  background: #f3f5ee;
  border-radius: 999px;
  padding: 4px 10px;
}
.tos-districts__bal.is-warn {
  background: #fff3cd;
  color: #7a5a00;
}
.tos-districts__actions {
  display: flex;
  gap: 8px;
  width: 100%;
}
.tos-districts__pool {
  border: 1px solid #e2e6da;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fafbf7;
}
.tos-districts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 1100px) {
  .tos-districts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tos-districts__flash {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef6d8;
  border: 1px solid #c5e1a5;
  color: #3d4a12;
  font-size: 0.85rem;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 3;
}
.tos-districts__flash.is-error {
  background: #fdecea;
  border-color: #f5c6cb;
  color: #842029;
}
.tos-districts__col {
  border: 1px solid #e2e6da;
  border-radius: 12px;
  background: #fff;
  min-height: 140px;
  position: relative;
}
.tos-districts__col.is-full {
  border-color: #c5e1a5;
}
.tos-districts__col-head {
  padding: 8px 10px 6px;
  border-bottom: 1px solid #eef1ea;
}
.tos-districts__col-title {
  margin: 0;
  font-size: 0.88rem;
}
.tos-districts__col-meta {
  font-size: 0.75rem;
  color: #5c6554;
  font-weight: 600;
}
.tos-districts__list {
  list-style: none;
  margin: 0;
  padding: 6px;
}
.tos-districts__list--pool {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tos-districts__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  min-height: 0;
}
.tos-districts__row:nth-child(odd) { background: #f7f8f4; }
.tos-districts__row.is-missing,
.tos-districts__row.is-missing:nth-child(odd),
.tos-districts__row.is-exception,
.tos-districts__row.is-exception:nth-child(odd) { background: #fff8e6; }
.tos-districts__row.is-conflict,
.tos-districts__row.is-conflict:nth-child(odd) { background: #fdecea; }
.tos-districts__ex {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 800;
  color: #7a5a00;
  background: #fff3cd;
  border: 1px solid #ffe08a;
  border-radius: 999px;
  padding: 1px 6px;
  letter-spacing: 0.02em;
}
.tos-districts__num {
  flex: 0 0 1.1rem;
  width: 1.1rem;
  padding-top: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #8a9180;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tos-districts__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.tos-districts__name {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f1f1f;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}
.tos-districts__name:hover { text-decoration: underline; }
.tos-districts__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}
.tos-districts__us {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: #5a7a00;
  font-variant-numeric: tabular-nums;
}
.tos-districts__refuse {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  color: #a94442;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 600;
}
.tos-districts__refuse.is-warn { color: #a15c00; background: #fff3cd; border-color: #ffe08a; font-weight: 700; }
.tos-districts__go {
  display: none;
  flex-wrap: wrap;
  gap: 3px;
  margin: 2px 0 0;
}
.tos-districts__row:hover .tos-districts__go,
.tos-districts__row:focus-within .tos-districts__go,
.tos-districts__row.is-dragging .tos-districts__go {
  display: flex;
}
@media (hover: none) {
  .tos-districts__go {
    display: flex;
  }
}
.tos-districts__btn {
  border: 1px solid #cfd5c4;
  background: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
}
.tos-districts__btn:hover { background: #C8E600; }
.tos-districts__btn:disabled,
.tos-districts__btn.is-missing {
  cursor: not-allowed;
  opacity: 0.85;
}
.tos-districts__btn.is-veto {
  cursor: pointer;
  background: #fff8e6;
  border-color: #ffe08a;
  color: #7a5a00;
  text-decoration: line-through;
}
.tos-districts__btn.is-veto:hover {
  background: #ffe08a;
  text-decoration: none;
}
.tos-districts__btn.is-missing {
  background: #fdecea;
  border-color: #f5c6cb;
  color: #a94442;
  text-decoration: line-through;
}
.tos-districts__btn.is-missing:hover {
  background: #fdecea;
}
.tos-districts__btn.is-full {
  cursor: pointer;
  background: #eef3f9;
  border-color: #c8d4e4;
  color: #3d5a80;
  text-decoration: none;
}
.tos-districts__btn.is-full:hover {
  background: #dce6f2;
}
.tos-districts__col.is-deny-full::after {
  content: 'полный — с кем поменять?';
}
.tos-districts__row.is-swap-target {
  outline: 2px dashed #3d5a80;
  outline-offset: 1px;
  background: #eef3f9 !important;
}
.tos-districts__swap {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 24, 16, 0.45);
}
.tos-districts__swap[hidden] {
  display: none !important;
}
.tos-districts__swap-card {
  width: min(22rem, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.tos-districts__swap-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}
.tos-districts__swap-lead {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #5c6554;
  line-height: 1.4;
}
.tos-districts__swap-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 16rem;
  overflow: auto;
}
.tos-districts__swap-pick {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #d5d9ce;
  background: #fafbf7;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.tos-districts__swap-pick:hover {
  background: #C8E600;
  border-color: #a8c200;
}
.tos-districts__btn--out {
  color: #842029;
  border-color: #e0b4b8;
}
.tos-districts__row[draggable="true"] {
  cursor: grab;
}
.tos-districts__row[draggable="true"]:active {
  cursor: grabbing;
}
.tos-districts__row.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}
.tos-districts__col.is-drop-target,
.tos-districts__pool.is-drop-target {
  outline: 2px dashed #a8c200;
  outline-offset: 2px;
  background: #f7fbe8;
}
.tos-districts__col.is-drop-denied,
.tos-districts__pool.is-drop-denied {
  outline: 2px dashed #c0392b;
  outline-offset: 2px;
  background: #fdecea;
}
.tos-districts__col.is-drop-denied::after {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  z-index: 2;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #842029;
  background: rgba(253, 236, 234, 0.94);
  border-radius: 6px;
  padding: 6px 8px;
  pointer-events: none;
}
.tos-districts__col.is-deny-veto::after {
  content: 'только исключением';
}
.tos-districts__col.is-deny-full::after {
  content: 'полный — с кем поменять?';
}
.tos-districts__empty {
  margin: 0;
  padding: 8px;
  font-size: 0.78rem;
  color: #8a9180;
}
.tos-districts__bal.is-ex {
  background: #fff3cd;
  color: #7a5a00;
}
.tos-districts__bal.is-ok {
  background: #e8f5c8;
  color: #3d4a12;
}
.tos-districts__prestart,
.tos-districts__approve {
  margin-top: 16px;
  padding: 14px 16px;
  border: 2px solid #d8dcd0;
  border-radius: 14px;
  background: #fafbf7;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.tos-districts__approve.is-ready {
  border-color: #a8c200;
  background: #f7fbe8;
}
.tos-districts__approve.is-done {
  border-color: #8fbf3a;
  background: #eef6d8;
}
.tos-districts__approve-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tos-districts__approve-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f1f1f;
}
.tos-districts__approve-lead {
  margin: 0;
  font-size: 0.82rem;
  color: #5c6554;
  max-width: 40rem;
  line-height: 1.4;
}
.tos-districts__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tos-districts__check {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #f7f8f4;
}
.tos-districts__check.is-ok {
  background: #f3f8e4;
  color: #3d4a12;
}
.tos-districts__check.is-fail {
  background: #fdecea;
  color: #842029;
}
.tos-districts__check.is-warn {
  background: #fff8e6;
  color: #7a5a00;
}
.tos-districts__check-label {
  font-weight: 700;
}
.tos-districts__check-detail {
  font-weight: 500;
  opacity: 0.9;
  flex: 1 1 100%;
}
.tos-districts__tips {
  list-style: disc;
  margin: 4px 0 0 1.4rem;
  padding: 0;
  flex: 1 1 100%;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: #5c4a10;
}
.tos-districts__tips li {
  margin: 2px 0;
}
.tos-districts__approve-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 4px;
}
.tos-districts__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: #1f1f1f;
  color: #C8E600;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}
.tos-districts__cta:hover:not(:disabled) {
  background: #000;
}
.tos-districts__cta:disabled,
.tos-districts__cta[aria-disabled="true"] {
  background: #c5c9bc;
  color: #6a7060;
  cursor: not-allowed;
  box-shadow: none;
}
.tos-districts__cta-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #7a5a00;
  font-weight: 600;
}
.tos-districts__col-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2f5d10;
  text-decoration: underline;
}
.tos-districts__spawned-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tos-districts__spawned-list a {
  font-weight: 700;
  color: #1f1f1f;
  text-decoration: underline;
}
.tos-day {
  margin: 8px 0 24px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7f9f0 0%, #eef2e4 100%);
  border: 1px solid #d5dfc0;
}
.tos-day-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  background: none;
  border: 0;
}
.tos-day-nav__hub {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: #4A6600;
  text-decoration: underline;
}
.tos-day-nav__hub:hover {
  color: #1F1F1F;
}
.tos-day-nav--compact {
  margin: 0 0 10px;
}
.tos-day-nav__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tos-day-nav--compact .tos-day-nav__hub {
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
}
.tos-day-nav__strip {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tos-day-nav__strip::-webkit-scrollbar {
  display: none;
}
.tos-day-nav__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid #cfd9b5;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  color: #3d4a12;
  text-decoration: none;
  box-sizing: border-box;
}
a.tos-day-nav__chip:hover {
  border-color: #b7d04a;
  background: #f8fbe8;
  color: #1f1f1f;
  text-decoration: none;
}
.tos-day-nav__chip.is-on {
  background: #F5FBEA;
  border-color: #B7E000;
  box-shadow: inset 0 3px 0 #B7E000;
  cursor: default;
}
.tos-day__head {
  margin-bottom: 12px;
}
.tos-day__title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
}
.tos-day__lead {
  margin: 0;
  font-size: 0.88rem;
  color: #5c6554;
  line-height: 1.4;
}
.tos-day__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .tos-day__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tos-day__tab b {
    font-size: 1.05rem;
  }
}
.tos-day__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-height: 88px;
  padding: 12px 14px 14px;
  border: 1.5px solid #cfd9b5;
  border-radius: 6px;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
a.tos-day__tab:hover,
button.tos-day__tab:hover {
  border-color: #b7d04a;
  background: #f8fbe8;
  text-decoration: none;
  color: #1f1f1f;
}
.tos-day__tab b {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #3d4a12;
}
.tos-day__tab span {
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.25;
  color: #5c6554;
}
.tos-day__tab em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6a7460;
  margin-top: auto;
}
.tos-day__tab.is-on,
.tos-day__tab.is-me.is-on {
  background: #F5FBEA;
  border-color: #B7E000;
  color: #1f1f1f;
  box-shadow: inset 0 4px 0 #B7E000;
  cursor: default;
}
.tos-day__tab.is-on b {
  color: #3d4a12;
}
.tos-day__tab.is-on em {
  color: #5c6554;
}
.tos-day__tab.is-me:not(.is-on) {
  border-color: #b7d04a;
  background: #f3f8e0;
}
.tos-day__panel {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #d7e0c0;
  padding: 12px 14px 14px;
}
.tos-day__panel.is-me {
  border-color: #b7d04a;
  box-shadow: 0 0 0 1px rgba(183, 208, 74, 0.35);
}
.tos-day__panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.tos-day__panel-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tos-day__you {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #B7E000;
  color: #1F1F1F;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}
.tos-day__panel-meta {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #5c6554;
}
.tos-day__circle {
  margin-top: 6px;
}
.tos-day__circle .gamesBox {
  margin: 0;
}
.tos-day__circle .gamesTableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .tos-public {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .tos-day {
    margin: 0;
    padding: 8px 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .tos-day__head,
  .tos-day__tabs,
  .tos-day__panel-top {
    padding-left: 4px;
    padding-right: 4px;
  }
  .tos-day .tos-day__panel-top {
    display: none;
  }
  .tos-day__panel {
    padding: 8px 0 4px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .tos-day__circle .gamesBox {
    overflow: visible;
    background: transparent;
  }
  .tos-day__circle .gamesTableWrap--desktop {
    display: none !important;
  }
}
.tos-day__cols {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
}
@media (max-width: 640px) {
  .tos-day__cols {
    grid-template-columns: 1fr;
  }
}
.tos-day__col-title {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5c6554;
}
.tos-day__players {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tos-day__players li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
}
.tos-day__players li.is-me {
  background: #eef6c8;
  font-weight: 700;
}
.tos-day__num {
  width: 1.4rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #7a8468;
}
.tos-day__matches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
}
.tos-day__matches a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  background: #f7f8f4;
  font-size: 0.86rem;
}
.tos-day__matches li.is-mine a {
  background: #eef6c8;
  font-weight: 700;
}
.tos-day__matches li.is-done a {
  opacity: 0.92;
}
.tos-day__score {
  color: #5c6554;
  white-space: nowrap;
  font-weight: 600;
}
.tos-day__empty {
  margin: 0;
  color: #7a8468;
  font-size: 0.85rem;
}
.tos-public__me-play {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.tos-public__play-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2f5d10;
  text-decoration: underline;
}
.tos-public__play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 0.5px solid rgba(107, 142, 0, 0.28);
  background: #B7E000;
  color: #1F1F1F;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(31, 31, 31, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tos-public__play-btn:hover {
  background: #a3cc00;
  border-color: rgba(107, 142, 0, 0.4);
  color: #1F1F1F;
  text-decoration: none;
}
.tos-districts__approve-done {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #3d4a12;
  line-height: 1.4;
}
.tos-districts.is-approved .tos-districts__col,
.tos-districts.is-approved .tos-districts__pool {
  opacity: 0.96;
}
.tos-districts__ready {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #3d4a12;
}

.tos-criteria-modal__select {
  flex: 1 1 auto;
  min-width: 12rem;
  max-width: 100%;
  border: 1px solid #cfd5c4;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #fff;
}
.tos-criteria-modal__item--format {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
