/* Кабинет тренера — команды (прототип Лига Славы) */
.trainer-cabinet {
  max-width: 1200px;
  padding-bottom: 2.5rem;
}

.trainer-profile-card {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
}

.trainer-profile-card__main {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.trainer-profile-card__photo {
  flex-shrink: 0;
}

.trainer-profile-card__photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.trainer-profile-card__photo-placeholder {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: #1a2840 url("/static/images/placeholders/man.svg") center/68% no-repeat;
  border: 1px solid #2b3f5f;
}

.trainer-profile-card__info {
  flex: 1;
  min-width: 200px;
}

.trainer-profile-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.trainer-profile-card__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
}

.trainer-profile-card__verified {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2b8fda;
  color: #fff;
  font-size: 0.75rem;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.trainer-profile-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-profile-meta);
  margin-bottom: 1rem;
}

.trainer-profile-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trainer-stat-pill {
  background: #e6f4ff;
  color: var(--color-navy);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.trainer-stat-pill em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
  margin-right: 0.35rem;
}

/* Шапка спортсмена: метаданные в две строки, серые контурные иконки */
.athlete-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-profile-meta);
  line-height: 1.5;
}

.athlete-profile-meta--row1 {
  margin-top: 0.5rem;
}

.athlete-profile-meta--row2 {
  margin-top: 0.4rem;
  padding-top: 0.55rem;
  border-top: 1px solid #eef2f7;
}

.athlete-profile-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.athlete-profile-meta__icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--color-profile-meta);
}

.athlete-profile-pride {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-profile-meta);
  flex-shrink: 0;
}

.athlete-profile-meta--row2 + .trainer-profile-card__stats {
  margin-top: 1rem;
}

/* Верификация профиля (иконка из Figma, 24×24) */
.profile-verification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.profile-verification-badge__path {
  fill: #e4eaef;
  transition: fill 0.15s ease;
}

.profile-verification-badge--verified .profile-verification-badge__path {
  fill: #037cbd;
}

.trainer-profile-card__edit {
  margin-left: auto;
  color: #2b8fda;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.trainer-profile-card__edit:hover {
  text-decoration: underline;
}

.trainer-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .trainer-layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.trainer-sidebar {
  padding: 0.35rem 0;
}

.trainer-sidebar__nav {
  display: flex;
  flex-direction: column;
}

.trainer-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  color: #252a2f;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  border-left: 2px solid transparent;
}

.trainer-sidebar__link:hover {
  background: #f7f8fa;
}

.trainer-sidebar__link.is-active {
  background: #e9f5fa;
  border-left-color: #037cbd;
  color: #037cbd;
  font-weight: 500;
}

.trainer-sidebar__group {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e8ecf0;
}

.trainer-sidebar__group .sidebar-group__label {
  display: block;
  padding: 0.35rem 1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.trainer-sidebar__link--school-tab {
  padding-left: 1.35rem;
  font-size: 0.9375rem;
}

.trainer-main {
  min-width: 0;
}

.trainer-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.trainer-section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
  font-family: inherit;
}

.trainer-section-head__actions {
  display: flex;
  gap: 0.5rem;
}

.btn-create-team {
  background: #ff9900;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.35);
}

.btn-create-team:hover {
  filter: brightness(0.95);
}

.btn-edit-team {
  display: inline-block;
  background: #fff;
  color: #037cbd;
  border: 2px solid #037cbd;
  border-radius: 8px;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-edit-team:hover {
  background: #f0f9ff;
}

.btn-disband-team {
  display: inline-block;
  background: #c41e3a;
  color: #fff;
  border: 1px solid #9b1b30;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-disband-team:hover {
  background: #a91731;
  border-color: #7f1528;
}

.btn-disband-team:focus-visible {
  outline: 2px solid #c41e3a;
  outline-offset: 2px;
}

.team-disband-shell__body {
  padding: 0 1.25rem 1.25rem;
}

.team-disband-shell__text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
}

.team-disband-shell__form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.btn-disband-cancel {
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
}

.btn-disband-cancel:hover {
  background: #e5e7eb;
}

.btn-disband-confirm {
  background: #c41e3a;
  color: #fff;
  border: 1px solid #9b1b30;
  border-radius: 8px;
  padding: 0.5rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
}

.btn-disband-confirm:hover {
  background: #a91731;
  border-color: #7f1528;
}

.alert-unassigned {
  background: #fdeef0;
  border: 1px solid #f9c6ce;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #7f1d1d;
  font-weight: 600;
}

.trainer-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.trainer-roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #fff;
}

.trainer-roster-table th {
  text-align: left;
  padding: 0.65rem 0.5rem;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e5e7eb;
}

.trainer-roster-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.trainer-roster-table tbody tr:hover {
  background: #fafafa;
}

.trainer-user-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trainer-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  flex-shrink: 0;
  object-fit: cover;
}

.trainer-avatar-sm.placeholder {
  background: #1a2840 url("/static/images/placeholders/man.svg") center/72% no-repeat;
}

.btn-table-action {
  background: #ff9900;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.team-expanded-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 43, 73, 0.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.trainer-teams-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trainer-teams-accordion .team-expanded-card {
  overflow: hidden;
}

.trainer-team-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0;
  transition: margin-bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.trainer-team-block.is-open .trainer-team-block__head {
  margin-bottom: 1rem;
}

.trainer-team-block__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.trainer-team-block.is-open .trainer-team-block__body {
  grid-template-rows: 1fr;
}

.trainer-team-block__body-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.trainer-team-block.is-open .trainer-team-block__body-inner {
  opacity: 1;
  transition: opacity 0.25s ease 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .trainer-team-block__body,
  .trainer-team-block__head,
  .trainer-team-block__body-inner,
  .formation-showcase__drawer {
    transition-duration: 0.01ms;
  }
}

.trainer-team-block__toggle {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.trainer-team-block__toggle:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
  border-radius: 8px;
}

.trainer-team-block__toggle .team-expanded-head__row {
  width: 100%;
}

.trainer-team-block__edit {
  flex-shrink: 0;
}

.trainer-team-block__name {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

.team-expanded-head__logo:not(img) {
  display: inline-block;
  vertical-align: middle;
}

.team-expanded-head {
  margin-bottom: 1rem;
}

.team-expanded-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}

.team-expanded-head__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.team-expanded-head__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
}

.team-expanded-head__title {
  min-width: 0;
}

.team-expanded-head__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.team-expanded-head__title h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

.team-expanded-head__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.team-squad-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  background: #f1f5f9;
  border-radius: 999px;
  color: #64748b;
  font-weight: 700;
  font-size: 0.88rem;
}

.team-squad-chip__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.team-expanded-head__chevron {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid #94a3b8;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.trainer-team-block.is-open .team-expanded-head__chevron {
  transform: rotate(180deg);
}

.team-tag {
  display: inline-block;
  background: #e0f0ff;
  color: #0b4a6e;
  font-size: 0.78rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
}

.team-tag--age {
  background: #f1f5f9;
  color: #475569;
}

.team-count-badge {
  display: inline-block;
  background: #e6f4ff;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

/* Блок поля + построение (как в референсе) */
.formation-showcase {
  margin-bottom: 1.35rem;
}

.formation-showcase__details {
  margin-bottom: 0.85rem;
}

.formation-showcase__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  user-select: none;
  width: 100%;
  margin: 0;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.formation-showcase__summary:focus {
  outline: none;
}

.formation-showcase__summary:focus-visible {
  outline: 2px solid #037cbd;
  outline-offset: 2px;
}

.formation-showcase__details--open .formation-showcase__summary {
  border-radius: 10px 10px 0 0;
  border-bottom-color: #e2e8f0;
  background: #f1f5f9;
}

.formation-showcase__drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.formation-showcase__details--open .formation-showcase__drawer {
  grid-template-rows: 1fr;
}

.formation-showcase__drawer-inner {
  min-height: 0;
  overflow: hidden;
}

.formation-showcase__summary-text {
  min-width: 0;
}

.formation-showcase__summary-meta {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #037cbd;
}

.formation-showcase__summary-hint--open {
  display: none;
}

.formation-showcase__details--open .formation-showcase__summary-hint--closed {
  display: none;
}

.formation-showcase__details--open .formation-showcase__summary-hint--open {
  display: inline;
}

.formation-showcase__pitch-hint {
  margin: 0 0 0.5rem;
  padding: 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
}

.formation-showcase__details--open .formation-showcase__pitch-hint {
  margin-top: -1px;
  margin-bottom: 0;
  padding: 0.45rem 0.9rem 0.5rem;
  background: #f1f5f9;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.formation-showcase__frame {
  background: #f1f5f9;
  border-radius: 0 0 12px 12px;
  padding: 0.65rem 0.75rem 0.75rem;
  margin-top: -1px;
  border: 1px solid #e2e8f0;
  border-top: none;
}

.pitch-board {
  position: relative;
}

.pitch-board--stadium {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  /* широкое низкое поле (растянуто по ширине карточки, низкая высота) */
  aspect-ratio: 47 / 20;
  border-radius: 10px;
  background: #e6f6ec;
  border: 1px solid #b5d9c2;
  box-shadow: none;
}

.pitch-board--stadium::before {
  display: none;
}

.pitch-board__markings {
  position: absolute;
  inset: 4.5%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(34, 84, 61, 0.12);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.pitch-board__half-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(34, 84, 61, 0.1);
  transform: translateY(-50%);
}

.pitch-board__center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12%;
  height: 42%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(34, 84, 61, 0.1);
  transform: translate(-50%, -50%);
}

.pitch-board__box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 36%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(34, 84, 61, 0.1);
  background: transparent;
}

.pitch-board__box--top {
  top: 8%;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.pitch-board__box--bottom {
  bottom: 8%;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

/* Волейбольная площадка (половина корта, сетка сверху) */
.pitch-board--volleyball {
  aspect-ratio: 18 / 22;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, #f8e4c8 0%, #e8c99a 42%, #ddb882 100%);
  border: 2px solid #c49a5c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.pitch-board--volleyball .pitch-board__markings {
  inset: 5%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  border-top: none;
}

.pitch-board--volleyball .pitch-board__net {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 0;
  height: 4px;
  background: #f8fafc;
  box-shadow:
    0 1px 0 rgba(30, 41, 59, 0.25),
    0 3px 6px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.pitch-board--volleyball .pitch-board__attack-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 33%;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(120, 72, 32, 0.12);
}

.pitch-board--volleyball .pitch-board__court-line--left,
.pitch-board--volleyball .pitch-board__court-line--right {
  position: absolute;
  top: 33%;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.88);
}

.pitch-board--volleyball .pitch-board__court-line--left {
  left: 0;
}

.pitch-board--volleyball .pitch-board__court-line--right {
  right: 0;
}

.pitch-board--volleyball .pitch-board__court-line--baseline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
}

.pitch-board--volleyball .pitch-player {
  width: 48px;
}

.pitch-board--volleyball .pitch-player--assigned {
  width: 52px;
}

.pitch-player__pos-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0 auto 0.15rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #c49a5c;
  color: #7c4a12;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 52px;
  z-index: 3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.pitch-player:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
  border-radius: 10px;
}

.pitch-player--assigned {
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pitch-player__human-icon {
  display: flex;
  justify-content: center;
  line-height: 0;
}

.pitch-player__human-icon svg {
  width: 28px;
  height: 20px;
}

.pitch-player__chip {
  margin: 0 auto;
  width: fit-content;
  min-width: 44px;
  max-width: 54px;
  padding: 3px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 2px solid #166534;
  border-radius: 8px;
  box-shadow: none;
}

.pitch-player__chip--empty {
  padding: 6px 7px 7px;
  min-width: 44px;
  border: 2px solid #3d6b4f;
  background: #f4fbf6;
  box-shadow: none;
}

.pitch-player__chip--empty .pitch-player__human-icon svg {
  width: 28px;
  height: 19px;
}

.pitch-player__photo {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  border: 2px solid #166534;
  box-shadow: none;
}

.pitch-player__captain {
  position: absolute;
  right: -5px;
  top: -5px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #422006;
  background: #facc15;
  border: 1px solid #a16207;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  pointer-events: none;
}

.pitch-player__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pitch-player__img--placeholder {
  background: #eef6f1;
  border: 1px solid #b9d4c4;
  box-sizing: border-box;
  position: relative;
}

.pitch-player__img--placeholder::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 36%;
  width: 42%;
  height: 20%;
  border-radius: 999px;
  background: #e2ebe6;
  border: 1px solid #3d6b4f;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

.pitch-player__img--placeholder::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 62%;
  width: 50%;
  height: 24%;
  border-radius: 40% 40% 35% 35%;
  background: #e8f2ec;
  border: 1px solid #3d6b4f;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

.pitch-player__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  background: #14532d;
  border-radius: 4px;
  border: 1px solid #052e16;
  text-shadow: none;
}

.pitch-player__name {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 0.1rem;
  line-height: 1.1;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-assign-shell .training-modal-shell__panel {
  max-width: 400px;
  max-height: min(88vh, 540px);
}

.pitch-assign-shell__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}

.pitch-assign-shell__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.pitch-assign-shell__body {
  padding: 0.85rem 1.25rem 1.2rem;
  overflow: auto;
}

.pitch-assign-menu {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.pitch-assign-menu__title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.pitch-assign-menu__current {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: #64748b;
}

.pitch-assign-menu__clear-form {
  margin: 0 0 0.85rem;
}

.pitch-assign-menu__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.pitch-assign-menu__clear:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.pitch-assign-menu__clear:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

.pitch-assign-menu__bench-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.pitch-assign-menu__empty {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.pitch-assign-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
}

.pitch-assign-menu__list li {
  width: 100%;
  max-width: 100%;
}

.pitch-assign-menu__list form {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.pitch-assign-menu__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.pitch-assign-menu__row:hover {
  background: #f8fafc;
  border-color: #166534;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.12);
}

.pitch-assign-menu__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #166534;
}

.pitch-assign-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pitch-assign-menu__avatar-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: #1a2840 url("/static/images/placeholders/man.svg") center/72% no-repeat;
}

.pitch-assign-menu__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pitch-assign-menu__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-assign-menu__sub {
  font-size: 0.78rem;
  color: #64748b;
}

.formation-showcase__controls {
  padding: 0 0.15rem;
}

.formation-showcase__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.formation-showcase__form {
  display: block;
}

.formation-showcase__form--captain {
  margin-top: 1rem;
}

.formation-showcase__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 360px;
}

.formation-showcase__apply-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.formation-showcase__field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.formation-showcase__select {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 280px;
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.formation-showcase__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: #ff9900;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.35);
}

.formation-showcase__submit:hover {
  filter: brightness(0.96);
}

.formation-showcase__submit:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

.trainer-roster-section-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.team-stats-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.team-stats-tabs button {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: #4b5563;
}

.team-stats-tabs button.is-active {
  background: #e6f4ff;
  border-color: #93c5fd;
  color: var(--color-navy);
  font-weight: 600;
}

.team-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.team-stats-grid dt {
  margin: 0;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.75rem;
}

.team-stats-grid dd {
  margin: 0.15rem 0 0;
  color: #111827;
}

.team-collapsed-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 43, 73, 0.06);
  margin-bottom: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.team-collapsed-row:hover {
  box-shadow: 0 4px 14px rgba(0, 43, 73, 0.1);
}

.team-collapsed-row img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.team-collapsed-row__meta {
  flex: 1;
}

.team-collapsed-row__meta strong {
  color: var(--color-navy);
}

/* Создание команды */
.team-create-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.team-create-page .card {
  padding: 1.75rem 2rem;
}

.team-create-page h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  color: var(--color-navy);
}

.team-create-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.team-create-section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--color-navy);
}

.team-create-basic {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .team-create-basic {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}

.crest-upload {
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  background: #f0f9ff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.crest-upload:hover {
  border-color: #ff9900;
  background: #fffbeb;
}

.crest-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.crest-upload__preview {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 6px;
}

.crest-upload__placeholder {
  color: #2b8fda;
  font-size: 0.9rem;
}

.crest-upload__placeholder span {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.team-create-fields {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .team-create-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.team-create-fields > div.full {
  grid-column: 1 / -1;
}

.team-create-fields select,
.team-create-fields .team-create-fields__select {
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
}

@media (min-width: 600px) {
  .team-create-fields.team-create-fields--volleyball {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.team-create-fields label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 0.35rem;
}

.team-create-school-readonly {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  color: #374151;
  font-size: 1rem;
  line-height: 1.4;
}

.team-create-fields input,
.team-create-fields select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.kit-designer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .kit-designer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.kit-block {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  background: #fafafa;
}

.kit-block h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-navy);
}

.kit-block-inner {
  display: grid;
  gap: 1rem;
}

@media (min-width: 520px) {
  .kit-block-inner {
    grid-template-columns: 160px 1fr;
    align-items: start;
  }
}

/* Макет Figma: фигура слева, палитра справа (создание / редактирование команды) */
.kit-block-inner.kit-block-inner--proto {
  --kit-frame-pad-x: 1rem;
  --kit-frame-pad-y1: 0.75rem;
  --kit-frame-pad-y2: 1rem;
  /* высота блока с куклой: внутренняя ширина под SVG + пропорции viewBox + отступы рамки */
  --kit-preview-max-h: calc(
    (265px - 2 * var(--kit-frame-pad-x)) * 428 / 265 + var(--kit-frame-pad-y1) + var(--kit-frame-pad-y2) + 2px
  );
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  grid-template-columns: none;
}

.kit-figure-frame {
  flex: 0 0 auto;
  width: 265px;
  max-width: 100%;
  padding: var(--kit-frame-pad-y1) var(--kit-frame-pad-x) var(--kit-frame-pad-y2);
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f3f4f6;
  box-sizing: border-box;
}

.kit-figure-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 18, 36, 0.1));
}

.kit-palette-rows.kit-palette-rows--proto {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 21rem;
  max-height: var(--kit-preview-max-h);
  overflow-y: auto;
  overflow-x: hidden;
  gap: 0.75rem;
  scrollbar-gutter: stable;
}

.kit-palette-row--proto {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem 0.75rem;
  font-family: var(--font);
}

.kit-palette-row__label {
  flex: 0 0 auto;
  min-width: 4.25rem;
  max-width: 5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #001224;
  padding-top: 0.15rem;
}

.kit-palette-row__swatches {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.35rem;
}

.kit-swatch-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.kit-palette-rows--proto .kit-swatch {
  width: 18px;
  height: 18px;
}

.kit-palette-rows--proto .kit-swatch.is-picked {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px #bfbfbf;
}

@media (max-width: 520px) {
  .kit-palette-rows.kit-palette-rows--proto {
    max-width: none;
    max-height: none;
  }
}

.mannequin-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.mannequin-svg {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

.kit-palette-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kit-palette-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.35rem;
}

.kit-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.kit-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.kit-swatch--light {
  box-shadow: 0 0 0 1px #d9d9d9;
}

.kit-swatch:hover {
  transform: scale(1.06);
}

.kit-swatch.is-picked {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #bfbfbf;
}

.team-create-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.team-create-actions__save-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}

.btn-cancel-outline {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-cancel-outline:hover {
  background: #f9fafb;
}

.form-required {
  color: #dc2626;
  font-weight: 700;
}

.form-errors {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Календарь тренировок */
.training-calendar-card {
  margin-bottom: 1.25rem;
}

.training-cal-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.training-cal-toolbar__side {
  min-width: 0;
}

.training-cal-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-self: end;
  justify-content: flex-end;
}

.training-cal-mode__btn {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.training-cal-mode__btn:hover {
  background: #f3f4f6;
}

.training-cal-mode__btn.is-active {
  background: #e6f4ff;
  border-color: #93c5fd;
  color: var(--color-navy);
}

.training-cal-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}

.training-cal-nav__title {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1rem;
}

.training-cal-nav__arrow {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--color-navy);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.training-cal-nav__arrow:hover {
  background: #e5e7eb;
}

.training-cal {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.training-cal:has(.training-cal__item:hover),
.training-cal:has(.training-cal__item:focus-within) {
  overflow: visible;
  z-index: 15;
  position: relative;
}

.training-calendar-card:has(.training-cal__item:hover),
.spd-calendar-wrap:has(.training-cal__item:hover) {
  overflow: visible;
  z-index: 14;
  position: relative;
}

.training-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--color-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0.45rem 0;
}

.training-cal__weekdays > span {
  min-width: 0;
}

.training-cal__row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #e5e7eb;
}

.training-cal__row:last-child {
  border-bottom: none;
}

.training-cal__cell {
  min-width: 0;
  min-height: 88px;
  padding: 0.35rem;
  border-right: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.78rem;
  overflow: hidden;
}

.training-cal__cell:has(.training-cal__item:hover),
.training-cal__cell:has(.training-cal__item:focus-within) {
  overflow: visible;
  z-index: 3;
}

.training-cal__cell:last-child {
  border-right: none;
}

.training-cal__cell--muted {
  background: #fafafa;
  color: #9ca3af;
}

.training-cal__daynum {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.training-cal__cell--muted .training-cal__daynum {
  color: #9ca3af;
}

.training-cal__items {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.training-cal__item {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #e6f4ff;
  color: var(--color-navy);
  text-decoration: none;
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  line-height: 1.25;
  border: 1px solid #bfdbfe;
  overflow: hidden;
}

.training-cal__item:hover,
.training-cal__item:focus-within {
  background: #dbeafe;
  overflow: visible;
  z-index: 5;
}

.training-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  justify-self: start;
  min-width: 0;
}

.training-cal-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.2;
}

.training-cal-legend__item::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.training-cal-legend__item--mine::before {
  background: #dbeafe;
  border-color: #60a5fa;
}

.training-cal-legend__item--school::before {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.training-cal__item--mine {
  background: #dbeafe;
  border-color: #60a5fa;
  box-shadow: inset 3px 0 0 #2563eb;
}

.training-cal__item--mine:hover,
.training-cal__item--mine:focus-within {
  background: #bfdbfe;
}

.training-cal__item--school-other {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #4b5563;
  box-shadow: none;
}

.training-cal__item--school-other:hover,
.training-cal__item--school-other:focus-within {
  background: #e5e7eb;
}

.training-modal-form__readonly-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
}

.training-cal__item-label {
  display: block;
  min-width: 0;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.training-cal__item-time {
  font-weight: 700;
  white-space: nowrap;
}

.training-cal__item-time::after {
  content: "\00a0";
}

.training-cal__item-team {
  display: inline;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.training-cal__item-tip {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 0.35rem);
  top: auto;
  transform: none;
  z-index: 40;
  padding-bottom: 0.35rem;
  width: max-content;
  max-width: min(16rem, calc(100vw - 2rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.training-cal__cell:nth-child(7n + 5) .training-cal__item-tip,
.training-cal__cell:nth-child(7n + 6) .training-cal__item-tip,
.training-cal__cell:nth-child(7n) .training-cal__item-tip {
  left: auto;
  right: 0;
}

.training-cal__item-tip.is-tip-placed {
  position: fixed;
  padding: 0;
  z-index: 2500;
  max-width: min(16rem, calc(100vw - 1.5rem));
}

.training-cal__item:hover .training-cal__item-tip.is-tip-placed,
.training-cal__item:focus-within .training-cal__item-tip.is-tip-placed {
  opacity: 1;
  visibility: visible;
}

.training-cal__item:hover .training-cal__item-tip,
.training-cal__item:focus-within .training-cal__item-tip {
  opacity: 1;
  visibility: visible;
}

.training-cal__item-tip__panel {
  position: relative;
  display: block;
  padding: 0.45rem 0.55rem;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
  text-align: left;
  white-space: normal;
}

.training-cal__item-tip__panel::before {
  content: "";
  position: absolute;
  left: var(--tip-arrow-left, 1.25rem);
  top: 100%;
  bottom: auto;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

.training-cal__item-tip__panel.is-tip-below::before {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1e293b;
}

.training-cal__item-tip__line {
  display: block;
}

.training-cal__item-tip__line + .training-cal__item-tip__line {
  margin-top: 0.22rem;
}

.training-cal__item-tip__k {
  font-weight: 600;
  color: #94a3b8;
  margin-right: 0.35rem;
}

.training-cal__item-tip__line--desc {
  color: #e2e8f0;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.training-cal--week .training-cal__cell {
  min-height: 200px;
}

@media (max-width: 720px) {
  .training-cal__cell {
    min-height: 72px;
    font-size: 0.68rem;
  }
  .training-cal--week .training-cal__cell {
    min-height: 140px;
  }
}

/* Модальное окно тренировки */
.training-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.training-modal-shell.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.training-modal-shell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 73, 0.45);
  cursor: pointer;
}

.training-modal-shell__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 43, 73, 0.2);
  border: 1px solid #e5e7eb;
}

.training-modal-form {
  padding: 1.25rem 1.5rem 1.5rem;
}

.training-modal-form__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.training-modal-form__title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-navy);
}

.training-modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.training-modal-close:hover {
  background: #e5e7eb;
}

.training-modal-form__grid {
  max-width: none;
}

.training-modal-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: 0.75rem 1rem;
  align-items: start;
}

@media (max-width: 520px) {
  .training-modal-form__row {
    grid-template-columns: 1fr;
  }
}

.training-modal-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.training-modal-form__field--full {
  grid-column: 1 / -1;
}

.training-modal-form__grid label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.training-modal-input,
.training-modal-form__grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.training-modal-form__grid select,
.training-modal-form__grid textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #111827;
  background: #fff;
}

.training-modal-input:focus,
.training-modal-form__grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):focus,
.training-modal-form__grid select:focus,
.training-modal-form__grid textarea:focus {
  outline: none;
  border-color: #037cbd;
  box-shadow: 0 0 0 2px rgba(3, 124, 189, 0.15);
}

.training-modal-input--datetime,
.training-modal-input--duration {
  padding-right: 2.25rem;
}

.training-modal-input--datetime::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
}

.training-modal-input--duration {
  -moz-appearance: textfield;
}

.training-modal-input--duration::-webkit-outer-spin-button,
.training-modal-input--duration::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.training-modal-spinfield {
  position: relative;
  display: block;
}

.training-modal-spinfield > .training-modal-input {
  width: 100%;
  padding-right: 2.25rem;
}

.training-modal-spinfield__controls {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 1.5rem;
  border-left: 1px solid #e5e7eb;
  border-radius: 0 7px 7px 0;
  overflow: hidden;
  background: #f9fafb;
  pointer-events: none;
}

.training-modal-spinfield__btn {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  pointer-events: auto;
}

.training-modal-spinfield__btn + .training-modal-spinfield__btn {
  border-top: 1px solid #e5e7eb;
}

.training-modal-spinfield__btn:hover {
  background: #eef2f6;
  color: #374151;
}

.training-modal-spinfield__btn:active {
  background: #e5e7eb;
}

.training-modal-spinfield__btn svg {
  display: block;
  width: 8px;
  height: 5px;
}

.training-modal-textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.45;
}

.training-modal-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.training-modal-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
  width: 100%;
}

.training-modal-form__actions-end {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-training-delete {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-training-delete:hover {
  background: #fef2f2;
  border-color: #f87171;
}

/* Таблица «Спортсмены» */
.trainer-athletes-table__row {
  cursor: pointer;
  transition: background 0.12s;
}
.trainer-athletes-table__row:hover,
.trainer-athletes-table__row:focus {
  background: #f0f7fc;
  outline: none;
}
.trainer-athletes-table__name {
  font-weight: 600;
  color: var(--color-navy);
}

.trainer-roster-table th.trainer-athletes-th {
  text-transform: none;
  vertical-align: middle;
  letter-spacing: normal;
}

.trainer-athletes-th--num {
  width: 2.75rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
}

.trainer-athletes-table__idx {
  width: 2.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  vertical-align: middle;
}

.trainer-athletes-th__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
}
.trainer-athletes-th__title {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  line-height: 1.25;
}
.trainer-athletes-sort {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.trainer-athletes-sort:hover {
  color: #037cbd;
  background: #f0f9ff;
  border-color: #bae6fd;
}
.trainer-athletes-sort:focus {
  outline: none;
}
.trainer-athletes-sort:focus-visible {
  outline: 2px solid #037cbd;
  outline-offset: 2px;
}
.trainer-athletes-sort.is-active {
  color: #037cbd;
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.trainer-athletes-sort__icon {
  display: block;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}
.trainer-athletes-sort.is-down .trainer-athletes-sort__icon {
  transform: rotate(180deg);
}
.trainer-athletes-empty {
  padding: 2rem 1.5rem;
  margin: 0;
  color: #64748b;
  text-align: center;
}

.trainer-roster-table td.trainer-athletes-empty {
  margin: 0;
}

/* Карточка спортсмена (HTMX-попап) */
.athlete-modal-card {
  padding: 0 1.5rem 1.5rem;
}
.athlete-modal-card .training-modal-form__head {
  padding-top: 1.25rem;
}
.athlete-modal-card__hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.athlete-modal-card__hero-text {
  min-width: 0;
}
.athlete-modal-card__badge {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 4px;
}
.athlete-modal-sports-saved {
  margin: 0 1.5rem 0.75rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #86efac;
  border-radius: 6px;
}
.athlete-modal-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.athlete-modal-card__photo--placeholder {
  background: #1a2840 url("/static/images/placeholders/man.svg") center/68% no-repeat;
  border: 1px dashed #2b6ea2;
}
.athlete-modal-card__fio {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}
.athlete-modal-card__email {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}
.athlete-modal-section {
  margin-bottom: 1.25rem;
}
.athlete-modal-section:last-of-type {
  margin-bottom: 0;
}
.athlete-modal-section__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: #252a2f;
}
.athlete-modal-dl {
  margin: 0;
}
.athlete-modal-dl__row {
  display: grid;
  grid-template-columns: minmax(8rem, 38%) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 0.92rem;
}
.athlete-modal-dl__row:last-child {
  border-bottom: none;
}
.athlete-modal-dl__row dt {
  margin: 0;
  color: #64748b;
  font-weight: 500;
}
.athlete-modal-dl__row dd {
  margin: 0;
  color: var(--color-navy);
}

.athlete-modal-section--sports .athlete-sports-form {
  margin: 0;
}
.athlete-sports-form__row {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) 1fr;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}
.athlete-sports-form__row label,
.athlete-sports-form__label {
  margin: 0;
  color: #64748b;
  font-weight: 500;
}
.athlete-sports-form__row--checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem;
}
.athlete-sports-form__row--checkbox label {
  color: var(--color-navy);
  font-weight: 500;
}
.athlete-sports-form__control {
  width: 100%;
  max-width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 0.92rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: var(--color-navy);
}
.athlete-modal-readonly {
  width: 100%;
  max-width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 0.92rem;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  cursor: default;
}
.athlete-sports-form__cb {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #037cbd;
}
.athlete-sports-form__actions {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eef2f6;
}

.training-participant-inner {
  min-height: 2rem;
}

.training-participant-list__label {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.training-participant-list__hint {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.training-participant-list__grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.training-participant-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.training-participant-list__empty {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Модальное окно настройки профиля тренера */
.profile-modal-shell {
  z-index: 1260;
}

.profile-modal-shell .training-modal-shell__panel,
.profile-modal-shell__panel {
  max-width: 720px;
  max-height: min(92vh, 900px);
}

.trainer-profile-modal-inner {
  padding: 1.25rem 1.5rem 1.5rem;
}

.trainer-profile-modal__head {
  margin-bottom: 0.5rem;
}

.trainer-profile-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.trainer-profile-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.trainer-profile-block__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--color-navy);
}

.trainer-profile-block__grid {
  max-width: none;
}

.trainer-profile-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.trainer-profile-file-status {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #374151;
}

.trainer-profile-email-ro {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
}

.trainer-profile-avatar-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.trainer-profile-avatar-label {
  font-weight: 600;
  color: #374151;
}

.trainer-profile-avatar-controls input[type="file"] {
  max-width: 100%;
}

.trainer-gender-field {
  grid-column: 1 / -1;
  border: none;
  padding: 0;
  margin: 0;
}

.trainer-gender-legend {
  font-weight: 600;
  color: #374151;
  padding: 0;
  margin-bottom: 0.35rem;
}

.trainer-req-star {
  color: #dc2626;
}

.trainer-gender-field ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.trainer-gender-field li label {
  font-weight: 500;
  cursor: pointer;
}

.trainer-profile-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.trainer-profile-settings-form .trainer-profile-phone {
  max-width: 16rem;
}

/* Полностраничная форма профиля тренера */
.trainer-profile-page__title {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.trainer-profile-page__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.trainer-profile-page__avatar {
  flex-shrink: 0;
  width: 220px;
}

.trainer-profile-page__avatar img {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.trainer-profile-page__avatar-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  background: #e9f5fa;
  border: 1px solid #037cbd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #037cbd;
  font-weight: 500;
  text-align: center;
}

.trainer-profile-page__avatar-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 2px solid #037cbd;
  position: relative;
}

.trainer-profile-page__avatar-upload input[type="file"] {
  margin-top: 0.75rem;
}

.trainer-profile-block--wide {
  flex: 1 1 0;
}

@media (max-width: 768px) {
  .trainer-profile-page__avatar,
  .trainer-profile-page__avatar img,
  .trainer-profile-page__avatar-placeholder {
    width: 180px;
    height: 180px;
  }
}

/* =============================================
   ЛЕЙАУТ СТРАНИЦЫ НАСТРОЙКИ ПРОФИЛЯ
   ============================================= */

.pf-shell {
  background: #F7F8FA;
  min-height: calc(100vh - 112px);
}

/* Левая навигация */
.pf-nav {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding: 2rem 0;
}

.pf-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
}

.pf-nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  transition: background 0.12s, color 0.12s;
}

.pf-nav__item:hover {
  background: #f3f4f6;
  color: var(--color-navy);
}

.pf-nav__item--active {
  background: #E9F5FA;
  color: var(--color-navy);
  font-weight: 600;
}

.pf-nav__item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.pf-nav__item--active svg {
  opacity: 1;
}

/* Основная область */
.pf-main {
  flex: 1;
  padding: 2.5rem 3rem;
  overflow-x: hidden;
}

.pf-main--full {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Алерты об успехе/ошибке */
.pf-alert {
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.pf-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.pf-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* =============================================
   СТРАНИЦА НАСТРОЙКИ ПРОФИЛЯ (pf-*)
   ============================================= */

/* CSS-переменные для полей */
:root {
  --pf-blue: #037CBD;
  --pf-dark: #252A2F;
  --pf-gray-border: #E4EAEF;
  --pf-bg: #F7F8FA;
  --pf-bg-field: #F4FAFD;
  --pf-placeholder: #ACB9C1;
  --pf-req: #005D96;
  --pf-section-title: #252A2F;
  --pf-page-title: var(--color-navy);
}

.pf-page {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem 3rem;
  max-width: 1100px;
}

.pf-page__title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--pf-page-title);
  margin: 0 0 2rem;
  line-height: 1.2;
}

.pf-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ——— Верхний блок: аватар + личные данные ——— */
.pf-top {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Аватар */
.pf-avatar {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 8px;
  border: 1px solid var(--pf-blue);
  background: #E9F5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.pf-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-avatar__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pf-avatar__upload-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pf-blue);
}

.pf-avatar__input-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
}

.pf-avatar__input-wrap input[type="file"] {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Секции */
.pf-section {
  border-top: 1px solid var(--pf-gray-border);
  padding-top: 1.5rem;
}

.pf-section--grow {
  flex: 1 1 0;
  border-top: none;
  padding-top: 0;
}

.pf-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pf-section-title);
  margin: 0 0 1.25rem;
}

/* Сетка полей */
.pf-grid {
  display: grid;
  gap: 1.25rem 1.75rem;
}

.pf-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pf-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-field--gender {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Подписи полей */
.pf-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--pf-dark);
  line-height: 1.4;
}

.pf-req {
  color: var(--pf-req);
}

/* Поля ввода */
.pf-form input[type="text"],
.pf-form input[type="number"],
.pf-form input[type="date"],
.pf-form input[type="email"],
.pf-form input[type="tel"],
.pf-form select,
.pf-form textarea,
.pf-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--pf-blue);
  background: #fff;
  font-size: 1rem;
  color: var(--pf-dark);
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pf-form input[type="text"]:focus,
.pf-form input[type="number"]:focus,
.pf-form input[type="date"]:focus,
.pf-form input[type="tel"]:focus,
.pf-form select:focus,
.pf-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(3, 124, 189, 0.18);
}

.pf-form input::placeholder,
.pf-form textarea::placeholder {
  color: var(--pf-placeholder);
}

/* Отключённое поле (email) */
.pf-input--disabled,
.pf-form input:disabled {
  border: none !important;
  background: var(--pf-bg) !important;
  color: var(--pf-placeholder) !important;
  cursor: not-allowed;
}

/* Радиокнопки пола */
.pf-radios {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.pf-radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--pf-dark);
  cursor: pointer;
}

.pf-radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pf-blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* Чекбокс «Нет отчества» */
.pf-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--pf-dark);
  cursor: pointer;
  margin-top: 0.35rem;
}

.pf-checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--pf-gray-border);
  accent-color: var(--pf-blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* Подсказки и ошибки */
.pf-hint {
  font-size: 0.8rem;
  color: var(--pf-placeholder);
  margin: 0.25rem 0 0;
}

.pf-err {
  font-size: 0.8rem;
  color: #dc2626;
  margin: 0.2rem 0 0;
}

/* Оверлей-кнопка поверх аватара */
.pf-avatar__overlay {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
}

/* Скрытый input аватара */
.pf-avatar__file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Блок «файл выбран» */
.pf-file-chosen {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--pf-blue);
  background: var(--pf-bg-field);
}

.pf-file-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pf-file-list--uploaded {
  margin-top: 0.25rem;
}

.pf-file-chosen--static {
  margin-bottom: 0;
}

.pf-file-chosen__label {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--pf-placeholder);
}

.pf-file-chosen__name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--pf-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-hint--status {
  margin-top: 0.5rem;
}

.profile-password-new-block {
  margin-top: 0.25rem;
}

.profile-password-rules-hint {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--pf-placeholder);
  margin: 0 0 0.85rem;
}

.profile-password-rules-hint ul {
  margin: 0.2rem 0 0;
  padding-left: 1rem;
}

.profile-password-rules-hint li {
  margin-bottom: 0.15rem;
}

.profile-password-modal .profile-password-form__actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-outline-orange {
  background: #fff;
  color: var(--color-orange, #ff8c2a);
  border: 2px solid var(--color-orange, #ff8c2a);
}

.btn-outline-orange:hover {
  background: #fff8f0;
  filter: none;
}

.pf-docs-verified {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.95rem;
  font-weight: 600;
}

.pf-file-chosen__remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #dc2626;
  padding: 0.2rem;
  border-radius: 4px;
}

.pf-file-chosen__remove:hover {
  background: #fef2f2;
}

[x-cloak] { display: none !important; }

/* Зона загрузки файла */
.pf-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--pf-blue);
  background: var(--pf-bg-field);
  cursor: pointer;
  text-align: center;
  font-size: 1rem;
  color: var(--pf-dark);
  position: relative;
  transition: background 0.15s;
}

.pf-dropzone:hover {
  background: #ddeffa;
}

.pf-dropzone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
}

.pf-dropzone__input input[type="file"] {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.pf-link {
  color: var(--pf-blue);
}

/* Инфо-баннер верификации */
.pf-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: #E9F5FA;
  margin-top: 1rem;
}

.pf-info-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--pf-page-title);
  line-height: 1.5;
}

/* Кнопки формы */
.pf-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pf-gray-border);
}

.pf-actions .btn,
.profile-password-form__actions .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.25;
  box-sizing: border-box;
  border: 2px solid transparent;
}

.pf-actions .btn-primary,
.profile-password-form__actions .btn-primary {
  border-color: var(--color-orange, #ff8c2a);
}

.pf-actions .btn-outline-orange,
.profile-password-form__actions .btn-outline-orange {
  border-color: var(--color-orange, #ff8c2a);
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
}

.pf-btn--primary {
  background: #FFA629;
  color: #fff;
}

.pf-btn--primary:hover {
  background: #e6931a;
}

.pf-btn--outline {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}

.pf-btn--outline:hover {
  background: #f0f6fb;
}

/* Адаптивность */
@media (max-width: 960px) {
  .pf-nav {
    width: 180px;
  }
  .pf-main {
    padding: 1.5rem;
  }
  .pf-page {
    padding: 1.5rem;
  }
  .pf-top {
    flex-direction: column;
    align-items: center;
  }
  .pf-section--grow {
    width: 100%;
  }
  .pf-grid--3,
  .pf-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pf-shell {
    flex-direction: column;
  }
  .pf-nav {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
  }
  .pf-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .pf-main {
    padding: 1rem;
  }
  .pf-grid--3,
  .pf-grid--2 {
    grid-template-columns: 1fr;
  }
  .pf-page__title {
    font-size: 1.4rem;
  }
  .pf-page {
    padding: 1rem;
  }
}

/* Приглашение в команду (тренер + спортсмен) */
.trainer-section-head--with-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.trainer-invite-modal {
  padding: 1.25rem 1.25rem 1.25rem;
}
.trainer-invite-modal__empty {
  margin: 0;
  padding: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}
.trainer-invite-modal__field {
  margin-bottom: 1rem;
}
.trainer-invite-modal__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-navy);
}
.trainer-invite-select {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.5rem;
  font-size: 0.92rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: var(--color-navy);
}
.trainer-invite-modal__actions {
  margin-top: 0.5rem;
}
.trainer-invite-modal__hr {
  margin: 1.25rem 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}
.trainer-invite-modal__sub {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #64748b;
}
.trainer-invite-modal__radio-group {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.25rem;
}
.trainer-invite-modal__radio-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.trainer-invite-modal__field--consent {
  margin-top: 0.75rem;
}
.trainer-invite-modal__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}
.trainer-invite-modal__consent-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.trainer-invite-link-result {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.trainer-invite-link-result__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}
.trainer-invite-link-result__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.trainer-invite-link-result__input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.trainer-invite-link-result__hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.team-invite-shell .training-modal-shell__panel.team-invite-panel {
  max-width: 420px;
  padding: 1.5rem;
}
.team-invite-panel__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.team-invite-panel__crest {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: var(--color-card-elevated, #fff);
  flex-shrink: 0;
}
.team-invite-panel__crest--placeholder {
  background: linear-gradient(135deg, #e9f5fa, #cce8f4);
  border: 1px dashed #037cbd;
}
.team-invite-panel__coach-name {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}
.team-invite-panel__coach-role {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted, #64748b);
}
.team-invite-panel__text {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-text, #1e293b);
}

.team-invite-panel .muted {
  color: var(--color-muted, #64748b);
}
.team-invite-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Соревнования — стили из макета (Inter, палитра Figma) */
.trainer-comp-page {
  font-family: var(--font);
}

.trainer-comp-card {
  padding: 1.5rem;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.trainer-comp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trainer-comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #f9fafd;
  color: #252a2f;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.trainer-comp-pill:hover {
  background: #f0f3f5;
}

.trainer-comp-pill.is-active {
  background: #e9f5fa;
  color: #037cbd;
}

.trainer-comp-pill__label {
  display: inline-block;
}

.trainer-comp-pill__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: #e9f5fa;
  color: #037cbd;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  text-transform: uppercase;
}

.trainer-comp-pill.is-active .trainer-comp-pill__badge {
  background: #e9f5fa;
  color: #037cbd;
}

.trainer-comp-pill__badge--sub {
  min-width: 1.25rem;
  padding: 0.2rem 0.45rem;
}

.trainer-comp-pill__badge--muted {
  background: #f7f8fa;
  color: #acb9c1;
}

.trainer-comp-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0;
  border-bottom: 1px solid #e4eaef;
}

.trainer-comp-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: #252a2f;
}

.trainer-comp-subtab:hover {
  color: #037cbd;
}

.trainer-comp-subtab.is-active {
  color: #037cbd;
  border-bottom-color: #037cbd;
}

.trainer-comp-tournament-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.trainer-comp-tournament-name__text {
  font-weight: 500;
  color: #252a2f;
}

.trainer-comp-tournament-name__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trainer-comp-leagues-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trainer-comp-league-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
}

.trainer-comp-leagues-apply {
  vertical-align: top;
  min-width: 11rem;
}

.trainer-comp-leagues-apply__forms {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.trainer-comp-leagues-apply__form {
  margin: 0;
}

.trainer-comp-leagues-apply__btn {
  width: 100%;
  font-size: 0.75rem !important;
  padding: 0.4rem 0.55rem !important;
  white-space: normal;
  line-height: 1.25;
}

.trainer-comp-row--focus {
  outline: 2px solid #ff8c00;
  outline-offset: -2px;
  transition: outline-color 0.3s ease;
}

.trainer-comp-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trainer-comp-filter__label {
  font-size: 0.875rem;
  color: #acb9c1;
  font-weight: 500;
}

.trainer-comp-filter__select {
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  font-size: 0.875rem;
  color: #252a2f;
  border: 1px solid #e4eaef;
  border-radius: 8px;
  background: #fff;
  min-width: 11rem;
}

.trainer-comp-status {
  font-weight: 400;
}

.trainer-comp-status--warn {
  color: #ffa629;
}

.trainer-comp-status--ok {
  color: #1cb08b;
}

.trainer-comp-status--err {
  color: #e9424c;
}

.trainer-comp-status--muted {
  color: #64748b;
}

/* Награды тренера — витрина */
.trainer-awards-page {
  font-family: var(--font);
}

.trainer-awards-lead {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
  max-width: 40rem;
}

.trainer-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .trainer-awards-grid {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  }
}

.trainer-award-frame {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid #e4eaef;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 65, 112, 0.06);
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.trainer-award-frame:hover {
  box-shadow: 0 4px 14px rgba(0, 65, 112, 0.1);
  transform: translateY(-2px);
}

.trainer-award-frame__visual {
  aspect-ratio: 1;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trainer-award-frame__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trainer-award-frame__placeholder {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f0f3f5 0%, #e9f5fa 100%);
  color: #94a3b8;
}

.trainer-award-frame__placeholder-svg {
  width: 42%;
  height: auto;
  max-height: 55%;
}

.trainer-award-frame__caption {
  padding: 0.65rem 0.75rem 0.85rem;
  text-align: center;
  border-top: 1px solid #f0f3f5;
}

.trainer-award-frame__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #252a2f;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trainer-award-frame__team {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trainer-award-frame__date {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}

.trainer-awards-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px dashed #e2e8f0;
}

/* Сводка тренера (дашборд) */
.trainer-overview {
  min-width: 0;
}

.trainer-overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.trainer-overview__span-full {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (min-width: 960px) {
  .trainer-overview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trainer-dash-tile {
  padding: 1.25rem 1.35rem;
  margin-bottom: 0;
}

.trainer-dash-tile--hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #e9f5fa 0%, #fff 55%, #f7f8fa 100%);
  border: 1px solid #e4eaef;
}

.trainer-dash-tile__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
}

.trainer-dash-hero__date {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #252a2f;
}

.trainer-dash-hero__summary {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.trainer-dash-hero__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #037cbd;
  text-decoration: none;
}

.trainer-dash-hero__link:hover {
  text-decoration: underline;
}

.trainer-dash-tile__heading {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.trainer-dash-tile__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.trainer-dash-tile__heading--row {
  margin: 0;
}

.trainer-dash-tile__head-link {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #037cbd;
  text-decoration: none;
  line-height: 1.35;
}

.trainer-dash-tile__head-link:hover {
  text-decoration: underline;
}

.athlete-overview-competitions {
  padding: 1.25rem;
}

.athlete-comp-invite-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.athlete-comp-invite-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafbfc;
}

.athlete-comp-invite-card__media {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 6px;
  overflow: hidden;
  background: #e8eaef;
}

.athlete-comp-invite-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-comp-invite-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e4e7ec 0%, #f0f2f5 50%, #dde1e8 100%);
}

.athlete-comp-invite-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.athlete-comp-invite-card__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

.athlete-comp-invite-card__dates {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

.athlete-comp-invite-card__app-status {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0a7d62;
}

.athlete-comp-invite-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.athlete-comp-invite-card__form {
  margin: 0;
  display: inline-block;
}

.athlete-comp-invite-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  border: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}

.athlete-comp-invite-card__btn--ok {
  background: #ff9900;
  color: #fff;
}

.athlete-comp-invite-card__btn--ok:hover {
  filter: brightness(0.96);
}

.athlete-comp-invite-card__btn--no {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.athlete-comp-invite-card__btn--no:hover {
  background: #f8fafc;
  color: #475569;
}

.trainer-dash-tile__hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

.trainer-dash-tile__footer-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #037cbd;
  text-decoration: none;
}

.trainer-dash-tile__footer-link:hover {
  text-decoration: underline;
}

.trainer-dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.trainer-dash-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  font-size: 0.875rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.trainer-dash-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trainer-dash-list__item--block {
  grid-template-columns: 1fr;
}

.trainer-dash-list__item--athlete-btn {
  display: block;
}

.trainer-dash-list--plain .trainer-dash-list__item {
  grid-template-columns: 1fr;
}

.trainer-dash-list__time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #037cbd;
}

.trainer-dash-list__main {
  font-weight: 600;
  color: #1e293b;
}

.trainer-dash-list__team {
  font-weight: 500;
  color: #64748b;
}

.trainer-dash-list__meta {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

.trainer-dash-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
}

.trainer-dash-bday-row__cell {
  width: 100%;
  align-items: flex-start;
}

.trainer-dash-bday-row__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  text-align: left;
}

.trainer-dash-bday-row__text .trainer-dash-list__main,
.trainer-dash-bday-row__text .trainer-dash-list__meta {
  display: block;
}

/* Кабинет спортсмена — открытие тренировки из сводки */
.athlete-training-open-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  row-gap: 0.15rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  align-items: start;
}

.athlete-training-open-btn:hover {
  background: #f8fafc;
}

.athlete-training-open-btn .trainer-dash-list__time {
  grid-row: 1 / span 2;
  align-self: center;
}

.athlete-training-open-btn .trainer-dash-list__main {
  grid-column: 2;
}

.athlete-training-open-btn .trainer-dash-list__meta {
  grid-column: 2;
}

.athlete-training-detail {
  padding: 0 1.5rem 1.5rem;
}

.athlete-training-detail__list {
  margin: 0;
}

.athlete-training-detail__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
}

.athlete-training-detail__row--block {
  grid-template-columns: 1fr;
}

.athlete-training-detail__row--block dt {
  margin-bottom: 0.25rem;
}

.athlete-training-detail__row dt {
  margin: 0;
  font-weight: 600;
  color: #64748b;
  font-size: 0.82rem;
}

.athlete-training-detail__row dd {
  margin: 0;
  color: #0f172a;
  line-height: 1.45;
}

.athlete-training-detail__participants {
  margin: 0;
  padding-left: 1.1rem;
}

.athlete-training-detail__description {
  white-space: pre-wrap;
}

@media (max-width: 520px) {
  .athlete-training-detail__row {
    grid-template-columns: 1fr;
  }
}

/* Спортсмен — страница «Моя команда» */
.athlete-team-card {
  border: 1px solid #e5e7eb;
}

.athlete-team-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 55%);
}

.athlete-team-banner__crest {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e4eaef;
  background: #fff;
}

.athlete-team-banner__crest--placeholder {
  display: inline-block;
  background: linear-gradient(135deg, #e6f2ff, #cfe4ff);
  border: 1px solid #dbeafe;
}

.athlete-team-banner__text {
  min-width: 0;
}

.athlete-team-banner__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}

.athlete-team-banner__meta {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
}

.trainer-athletes-table__row--self {
  background: #f0f9ff;
}

.trainer-athletes-table__row--self:hover {
  background: #e0f2fe;
}

.athlete-team-you-label {
  font-weight: 500;
  font-size: 0.82rem;
  color: #037cbd;
  margin-left: 0.25rem;
}

.athlete-team-card .trainer-athletes-table__row {
  cursor: default;
}

.athlete-team-card .trainer-athletes-table__row:hover,
.athlete-team-card .trainer-athletes-table__row:focus {
  background: #f8fafc;
}

.athlete-team-card .trainer-athletes-table__row--self:hover,
.athlete-team-card .trainer-athletes-table__row--self:focus {
  background: #e0f2fe;
}

/* Спортсмен — история соревнований (карточки) */
.athlete-comp-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.athlete-comp-history-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
}

.athlete-comp-history-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e4eaef;
  border-radius: 10px;
}

.athlete-comp-history-card__visual {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e6f2ff 0%, #b8d9f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.athlete-comp-history-card__letter {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy);
  opacity: 0.85;
  line-height: 1;
}

.athlete-comp-history-card__body {
  padding: 1rem 1.15rem 1.2rem;
}

.athlete-comp-history-card__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.35;
}

.athlete-comp-history-card__meta {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.athlete-comp-history-card__meta div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.8125rem;
}

.athlete-comp-history-card__meta dt {
  margin: 0;
  color: #94a3b8;
  font-weight: 500;
}

.athlete-comp-history-card__meta dd {
  margin: 0;
  color: #252a2f;
  font-weight: 500;
}

@media (max-width: 480px) {
  .athlete-comp-history-card__meta div {
    grid-template-columns: 1fr;
  }
}

/* Кабинет организатора — список турниров */
.organizer-home-head.trainer-section-head {
  font-family: var(--font);
}

.organizer-tournaments-card {
  gap: 1rem;
  font-family: var(--font);
}

.organizer-tournament-title-link {
  color: #037cbd;
  font-weight: 500;
  text-decoration: none;
}

.organizer-tournament-title-link:hover {
  text-decoration: underline;
}

.organizer-tournaments-table .organizer-tournaments-table__th-status,
.organizer-tournaments-table .organizer-tournaments-table__status {
  width: 11.5rem;
  min-width: 11.5rem;
  white-space: nowrap;
}

.organizer-tournaments-table .organizer-tournaments-table__status {
  text-align: left;
}

.organizer-tournament-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.organizer-tournament-status--draft {
  background: #f1f5f9;
  color: #475569;
}

.organizer-tournament-status--open {
  background: #e6f7f2;
  color: #0a7d62;
}

.organizer-tournament-status--closed {
  background: #fff4e5;
  color: #b45309;
}

.organizer-tournament-status--finished {
  background: #eef1f5;
  color: #5c6773;
}

.organizer-create-card .organizer-create-wizard,
.organizer-schedule-card {
  font-family: var(--font);
}

/* Мастер создания турнира (организатор) */
.organizer-wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font);
}

.organizer-wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.organizer-wizard-step:hover:not(.is-disabled) {
  background: #e5e7eb;
}

.organizer-wizard-step.is-active {
  background: #e9f5fa;
  color: #037cbd;
  border-color: #bae6fd;
}

.organizer-wizard-step.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.organizer-wizard-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
}

.organizer-wizard-step.is-active .organizer-wizard-step__num {
  background: #037cbd;
  color: #fff;
}

.organizer-wizard-card {
  font-family: var(--font);
  margin-bottom: 1rem;
}

.organizer-wizard-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--color-navy);
}

.organizer-wizard-card__lead {
  margin: 0 0 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.organizer-wizard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.organizer-wizard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

@media (max-width: 720px) {
  .organizer-wizard-grid {
    grid-template-columns: 1fr;
  }
}

.organizer-wizard-block__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.organizer-wizard-cover-preview img {
  display: block;
  max-width: 220px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.5rem;
  border: 1px solid #e4eaef;
}

.organizer-wizard-cover-placeholder {
  margin-top: 0.5rem;
  max-width: 220px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  background: #f8fafc;
}

.organizer-wizard-field {
  margin-bottom: 1rem;
}

.organizer-wizard-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  color: #252a2f;
  font-weight: 500;
}

.organizer-wizard-field .req {
  color: #005d96;
}

.organizer-wizard-input,
.organizer-wizard-select {
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e4eaef;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.organizer-wizard-error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #b91c1c;
}

.organizer-wizard-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 0.5rem;
}

.organizer-wizard-footer__right {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.organizer-wizard-td-actions {
  white-space: nowrap;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  text-align: right;
  vertical-align: middle;
}

.organizer-wizard-td-actions .organizer-table-icon-btn,
.organizer-wizard-td-actions .organizer-wizard-inline-form {
  flex-shrink: 0;
}

.organizer-event-table .organizer-event-table-actions-col,
.organizer-event-table .organizer-wizard-td-actions {
  text-align: right;
}

.organizer-event-table .organizer-event-table-actions-col {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.organizer-wizard-inline-form {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  vertical-align: middle;
}

.organizer-table-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: 1px solid #e4eaef;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  line-height: 0;
  font: inherit;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

a.organizer-table-icon-btn {
  text-decoration: none;
  box-sizing: border-box;
}

.organizer-table-icon-btn:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  color: #037cbd;
}

.organizer-table-icon-btn:focus-visible {
  outline: 2px solid #037cbd;
  outline-offset: 2px;
}

.organizer-table-icon-btn--danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.organizer-table-icon-btn--danger:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #991b1b;
}

.organizer-wizard-btn-sm {
  padding: 0.25rem 0.55rem !important;
  font-size: 0.75rem !important;
}

.organizer-modal-shell__panel {
  max-width: 520px;
}

.organizer-modal-form {
  padding: 0 1.25rem 1.25rem;
}

.organizer-modal-form__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Новое мероприятие — одна страница «Подготовка» (макет Figma) */
.organizer-event-card {
  font-family: var(--font);
  padding: 2rem 2.5rem;
  margin-bottom: 0;
}

.organizer-event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e4eaef;
}

.organizer-event-tab {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: #acb9c1;
}

.organizer-event-tab.is-active {
  color: #037cbd;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 0 currentColor;
}

.organizer-event-tab.is-disabled {
  cursor: default;
  opacity: 0.7;
}

a.organizer-event-tab {
  text-decoration: none;
  cursor: pointer;
}

a.organizer-event-tab:hover:not(.is-active) {
  color: #037cbd;
}

.organizer-event-applications {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Атрибут hidden не должен перебиваться display:flex у блока */
.organizer-event-preparation[hidden],
.organizer-event-applications[hidden] {
  display: none !important;
}

/* Расписание (макет Figma: фон #F7F8FA, карточка, сетка полей) */
.figma-schedule-page {
  margin: 0 -0.5rem;
  padding: 0 0.5rem 1rem;
  background: #f7f8fa;
  border-radius: 8px;
}

.figma-schedule-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.figma-schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e4eaef;
}

.figma-schedule-toolbar--with-action {
  align-items: center;
}

.figma-schedule-create-btn {
  border: none;
  flex-shrink: 0;
}

.figma-schedule-toolbar__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: #252a2f;
  font-family: inherit;
}

.figma-schedule-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #fff6e1;
  color: #ff8b00;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  font-family: inherit;
}

.figma-schedule-cta:hover {
  filter: brightness(0.97);
}

.figma-schedule-cta__icon {
  display: flex;
  color: #ff8b00;
}

.figma-schedule-toolbar__hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6c757b;
}

.figma-schedule-day-tabs {
  margin: 1.25rem 0 0.5rem;
}

.figma-schedule-day-tabs .figma-schedule-day-tab {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

.figma-schedule-day-panel.is-hidden {
  display: none;
}

.figma-schedule-fields-head {
  padding-top: 0.5rem;
}

.figma-schedule-fields-head__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #252a2f;
}

.figma-schedule-grid-wrap {
  overflow-x: auto;
  border: 1px solid #e4eaef;
  border-radius: 8px;
  background: #fff;
}

.figma-schedule-grid {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.75rem;
  font-family: inherit;
}

.figma-schedule-grid thead th {
  font-weight: 500;
  color: #252a2f;
  text-align: center;
  vertical-align: middle;
}

.figma-schedule-grid__corner {
  width: 5.5rem;
  min-width: 5.5rem;
  background: #f7f8fa;
  border-bottom: 1px solid #e4eaef;
}

.figma-schedule-grid__pitch-head {
  padding: 0.35rem 0.5rem;
  background: #f7f8fa;
  border-bottom: 1px solid #e4eaef;
  border-left: 1px solid #e4eaef;
  font-size: 0.875rem;
  vertical-align: middle;
}

.figma-schedule-pitch-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
}

.figma-schedule-pitch-head__label {
  font-weight: 500;
  color: #252a2f;
}

.figma-schedule-remove-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.figma-schedule-remove-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #6c757b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.figma-schedule-remove-x:hover {
  background: #ffecec;
  color: #dc2626;
}

.figma-schedule-grid__add-head {
  width: 7.5rem;
  min-width: 7.5rem;
  padding: 0.35rem;
  background: #f7f8fa;
  border-bottom: 1px solid #e4eaef;
  border-left: 1px solid #e4eaef;
  vertical-align: middle;
}

.figma-schedule-add-form {
  margin: 0;
  display: flex;
  justify-content: center;
}

.figma-schedule-add-field {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.35rem 0.5rem;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4eaef;
  color: #acb9c1;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.figma-schedule-add-field:hover {
  background: #e9f5fa;
  color: #037cbd;
}

.figma-schedule-add-field__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #e9f5fa;
  color: #037cbd;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
}

.figma-schedule-grid__ref-row th {
  background: #f0f3f5;
  border-bottom: 1px solid #e4eaef;
  border-left: 1px solid #e4eaef;
  padding: 0.25rem;
}

.figma-schedule-grid__ref-row .figma-schedule-grid__ref-label {
  text-align: center;
  color: #6c757b;
  font-size: 0.75rem;
  font-weight: 500;
  border-left: none;
}

.figma-schedule-grid__ref-pad {
  border-left: 1px solid #e4eaef;
}

.figma-schedule-add-field--slot {
  min-height: 4.5rem;
  background: #fff;
}

.figma-schedule-add-field--slot:hover .figma-schedule-slot__placeholder {
  color: #037cbd;
}

.figma-schedule-add-field--slot-filled {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  padding: 0.45rem 0.6rem;
  gap: 0.5rem;
  color: #252a2f;
}

.figma-schedule-add-field--slot-filled:hover {
  color: #252a2f;
}

.figma-schedule-slot__avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.figma-schedule-slot__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #e9f5fa;
  color: #037cbd;
  font-size: 0.75rem;
  font-weight: 600;
}

.figma-schedule-slot__name {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #252a2f;
  line-height: 1.25;
  text-align: left;
}

.figma-schedule-slot__placeholder {
  font-size: 0.75rem;
  font-weight: 500;
  color: #acb9c1;
}

.figma-schedule-grid tbody th,
.figma-schedule-grid tbody td {
  border-bottom: 1px solid #e4eaef;
  border-left: 1px solid #e4eaef;
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
}

.figma-schedule-grid tbody th {
  background: #f7f8fa;
  font-weight: 500;
  color: #6c757b;
  text-align: center;
  font-size: 0.75rem;
  border-left: none;
}

.figma-schedule-grid__cell {
  min-width: 8.5rem;
  max-width: 14rem;
}

.figma-schedule-grid__cell--pad {
  background: #fafafa;
}

.figma-schedule-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
}

.figma-schedule-empty {
  color: #acb9c1;
  display: block;
  text-align: center;
}

.figma-schedule-match {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #252a2f;
  line-height: 1.3;
}

.figma-schedule-match[style*="--match-hue"] {
  background-color: hsl(var(--match-hue), 62%, 92%);
  border-color: hsl(var(--match-hue), 42%, 72%);
}

.figma-schedule-match[draggable="true"] {
  cursor: grab;
}

.figma-schedule-match[draggable="true"]:active,
.figma-schedule-match.is-dragging {
  cursor: grabbing;
  opacity: 0.88;
}

.figma-schedule-grid__cell--drop {
  min-height: 3.5rem;
}

.figma-schedule-match__teams {
  display: block;
}

.figma-schedule-match__round {
  font-size: 0.625rem;
  color: #6c757b;
  font-weight: 500;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
}

.figma-schedule-match__time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: #475569;
  font-weight: 600;
}

.figma-schedule-match__time--empty {
  min-width: 0.5em;
}

.figma-schedule-match__tour {
  flex-shrink: 0;
  text-align: right;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.figma-schedule-match__tour-label {
  white-space: nowrap;
}

.figma-schedule-match__status {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.figma-schedule-match__status--finished {
  background: #e8f5e9;
  color: #1b5e20;
}

.figma-schedule-match__status--live {
  background: #e3f2fd;
  color: #037cbd;
}

.figma-schedule-match__score {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.1rem 0;
}

.figma-schedule-match__pen {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #6c757b;
  line-height: 1.2;
  padding: 0;
}

.figma-schedule-results {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e4eaef;
}

.figma-schedule-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.figma-schedule-results__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #252a2f;
}

.figma-schedule-results__total {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6c757b;
}

.figma-schedule-results__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.6875rem;
  color: #475569;
}

.figma-schedule-results__stat strong {
  font-weight: 700;
  color: #252a2f;
}

.figma-schedule-results__stat--live strong {
  color: #037cbd;
}

.figma-schedule-results__stat--done strong {
  color: #1b5e20;
}

.figma-schedule-match__sides {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  width: 100%;
}

.figma-schedule-match__vs {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
}

.figma-schedule-team-chip {
  flex: 1;
  min-width: 0;
  padding: 0.28rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(3, 124, 189, 0.35);
  cursor: grab;
  word-break: break-word;
  text-align: center;
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1.25;
}

.figma-schedule-team-chip:active {
  cursor: grabbing;
}

.figma-schedule-team-chip.is-dragging {
  opacity: 0.55;
}

.figma-schedule-team-chip--locked {
  cursor: not-allowed;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(248, 250, 252, 0.9);
  color: #64748b;
}

.figma-schedule-toolbar__hint--drag {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #475569;
}

.figma-schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.figma-schedule-legend__item {
  font-size: 0.875rem;
  color: #0369a1;
}

.figma-schedule-groups {
  margin: 1.25rem 0 1.5rem;
}

.figma-schedule-groups__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.figma-schedule-groups__hint {
  margin-bottom: 0.75rem;
}

.figma-schedule-groups__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

.figma-schedule-group-col {
  flex: 0 0 11rem;
  width: 11rem;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  min-height: 8rem;
  display: flex;
  flex-direction: column;
}

.figma-schedule-group-col--colored {
  border-color: hsl(var(--group-hue), 42%, 72%);
  background: hsl(var(--group-hue), 62%, 97%);
}

.figma-schedule-group-col--colored .figma-schedule-group-col__head {
  background: hsl(var(--group-hue), 58%, 92%);
  border-bottom-color: hsl(var(--group-hue), 38%, 78%);
}

.figma-schedule-group-col--colored .figma-schedule-group-col__label {
  color: hsl(var(--group-hue), 45%, 32%);
}

.figma-schedule-group-col--colored .figma-schedule-group-team {
  border-color: hsl(var(--group-hue), 35%, 82%);
  background: #fff;
}

.figma-schedule-group-add-form {
  flex: 0 0 11rem;
  width: 11rem;
  max-width: 100%;
  margin: 0;
  min-height: 8rem;
}

.figma-schedule-group-col--add {
  border: 2px dashed #cbd5e1;
  background: #fafbfc;
  padding: 0;
  overflow: hidden;
}

.figma-schedule-group-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 8rem;
  padding: 0.65rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  transition: color 0.15s, background 0.15s;
}

.figma-schedule-group-add-btn:hover {
  color: #ff9900;
  background: rgba(255, 153, 0, 0.08);
}

.figma-schedule-group-add-btn__plus {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  color: #94a3b8;
}

.figma-schedule-group-add-btn:hover .figma-schedule-group-add-btn__plus {
  color: #ff9900;
}

.figma-schedule-group-add-btn__label {
  line-height: 1.3;
  max-width: 7rem;
}

.figma-schedule-group-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.figma-schedule-group-col__label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.figma-schedule-group-col__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  min-height: 5rem;
}

.figma-schedule-group-team {
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.35rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.875rem;
  cursor: grab;
}

.figma-schedule-group-team:active {
  cursor: grabbing;
}

.figma-schedule-group-col__empty {
  font-size: 0.8125rem;
  color: #94a3b8;
  padding: 0.35rem;
}

.organizer-wizard-footer--schedule-save {
  justify-content: flex-end;
}

.figma-schedule-save-form {
  margin: 0;
}

.figma-schedule-save-btn {
  min-width: 12rem;
}

.organizer-modal-shell__panel--schedule {
  max-width: 22rem;
}

.organizer-modal-shell__panel--referee {
  max-width: 20rem;
}

.organizer-event-applications__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #252a2f;
}

.organizer-event-applications__subtitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #252a2f;
}

.organizer-event-applications__toggle-cell {
  vertical-align: middle;
  text-align: left;
  min-width: 8.5rem;
  white-space: nowrap;
}

.organizer-event-applications__toggle-form {
  margin: 0;
}

.organizer-event-applications__toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  white-space: nowrap;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  padding: 0.3rem 0.55rem !important;
  line-height: 1.25;
  border-radius: 6px !important;
  box-shadow: 0 1px 4px rgba(255, 153, 0, 0.28) !important;
  cursor: pointer;
  font-family: inherit;
}

.organizer-event-applications__toggle-btn--close {
  background: #dc2626 !important;
  color: #fff !important;
  box-shadow: 0 1px 6px rgba(220, 38, 38, 0.4) !important;
}

.organizer-event-applications__toggle-btn--close:hover {
  filter: brightness(0.93);
}

.organizer-event-applications__toggle-btn--close:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
}

.organizer-event-applications__toggle-muted {
  font-size: 0.875rem;
  color: #6b7280;
}

.organizer-application-detail {
  max-width: 40rem;
}

.organizer-application-detail__meta {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  color: #252a2f;
}

.organizer-application-detail__list-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #252a2f;
}

.organizer-application-detail__list {
  margin: 0;
  padding-left: 1.25rem;
  color: #374151;
  font-size: 0.9rem;
}

.organizer-event-preparation {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.organizer-event-form-errors {
  margin-bottom: 0.5rem;
}

.organizer-event-top {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .organizer-event-top {
    grid-template-columns: 1fr;
  }
}

.organizer-event-photo-col {
  min-width: 0;
}

.organizer-event-crest {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

@media (min-width: 901px) {
  .organizer-event-photo-col .organizer-event-crest {
    margin: 0;
  }
}

.organizer-event-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

.organizer-event-name-field-wrap .organizer-event-name-field,
.organizer-event-name-field-wrap input.organizer-event-name-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.organizer-event-secondary-frame {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.organizer-event-secondary-frame .organizer-wizard-field {
  margin-bottom: 0;
}

.organizer-event-secondary-frame .organizer-wizard-input,
.organizer-event-secondary-frame .organizer-wizard-select {
  max-width: none;
}

@media (max-width: 900px) {
  .organizer-event-secondary-frame {
    grid-template-columns: 1fr;
  }
}

.organizer-event-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.organizer-event-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.organizer-event-section__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
  color: #252a2f;
}

.organizer-event-link-add {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  color: #ff8b00;
  text-decoration: none;
}

.organizer-event-link-add:hover:not(.is-disabled) {
  text-decoration: underline;
}

.organizer-event-link-add.is-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.organizer-event-table-wrap {
  padding: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e4eaef;
  border-radius: 8px;
  box-shadow: none;
}

.organizer-event-table thead th {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #252a2f;
}

.organizer-event-footer {
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: none;
  justify-content: flex-end;
  gap: 1rem;
}

.organizer-event-footer--preparation {
  justify-content: space-between;
  align-items: center;
}

.organizer-event-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.organizer-event-delete-form {
  margin: 0;
}

.organizer-event-btn-delete {
  min-width: 8rem;
  text-align: center;
  background: #fff !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
  font-weight: 600 !important;
}

.organizer-event-btn-delete:hover {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
}

.organizer-event-btn-cancel {
  min-width: 8rem;
  text-align: center;
  background: #fff6e1 !important;
  color: #ffa629 !important;
  border: none !important;
  font-weight: 600 !important;
}

.organizer-event-btn-cancel:hover {
  filter: brightness(0.97);
}

.organizer-event-btn-save {
  min-width: 10rem;
  background: #ffa629 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(255, 166, 41, 0.35);
}

.organizer-event-btn-save:hover {
  filter: brightness(0.96);
}

/* Заявка команды на турнир — этап подготовки */
.trainer-comp-leagues-apply__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.tournament-application-page__h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--color-navy, #003b6f);
}

.tournament-application-page__lead {
  margin: 0 0 1rem;
  color: #64748b;
}

.tournament-application-page__hint {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 40rem;
}

/* Выбор команды: отдельные белые блоки на фоне страницы */
.tournament-application-page--pick-team {
  padding-bottom: 2rem;
}

.tapp-pick-intro.card {
  margin-bottom: 1rem;
}

.tapp-pick-intro .tournament-application-page__h1 {
  margin-bottom: 0.35rem;
}

.tapp-pick-intro__lead,
.tapp-pick-intro .tournament-application-page__lead:last-child {
  margin-bottom: 0;
}

.tapp-pick-empty.card .tournament-application-page__lead {
  margin-bottom: 0.65rem;
}

.tapp-pick-empty.card .tournament-application-page__hint:last-child {
  margin-bottom: 0;
}

.tapp-pick-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .tapp-pick-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tapp-pick-stack__item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.tapp-pick-team-card.card {
  margin-bottom: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: box-shadow 0.15s ease;
}

.tapp-pick-team-card:has(.tapp-pick-card:hover) {
  box-shadow: 0 6px 22px rgba(3, 124, 189, 0.12);
}

.tapp-pick-team-card:has(.tapp-pick-card:focus-visible) {
  box-shadow: 0 6px 22px rgba(3, 124, 189, 0.12);
  outline: 2px solid #037cbd;
  outline-offset: 2px;
}

/* Строка команды внутри белой карточки (как превью в списке тренера) */
.tapp-pick-card {
  display: block;
  border: none;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  padding: 0;
}

.tapp-pick-card:focus-visible {
  outline: none;
}

.tapp-pick-card__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.tapp-pick-card .team-expanded-head__logo {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
}

.tapp-pick-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
  flex: 1;
}

.tapp-pick-card__name.trainer-team-block__name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.22;
}

.tapp-pick-card__tags.team-expanded-head__tags {
  margin: 0;
  gap: 0.34rem;
}

.tapp-pick-team-card .team-tag {
  padding: 0.14rem 0.48rem;
}

.tapp-pick-meta-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.07rem;
  text-align: left;
  line-height: 1.2;
}

.tapp-pick-meta-tag__k {
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.tapp-pick-meta-tag__v {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.18;
}

.tournament-application-head__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: var(--color-navy, #003b6f);
}

.tournament-application-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tournament-application-tag {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: #e8f1ff;
  color: #1d4ed8;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Этапы заявки — макет Figma (Blue River, шевроны, финал) */
.tournament-application-steps {
  --tapp-step-blue: #037cbd;
  --tapp-step-bg-pending: #f7f8fa;
  --tapp-step-text-pending: #acb9c1;
  --tapp-step-text-label: #252a2f;
  --tapp-step-chev: #e4eaef;
  --tapp-step-ok: #1cb08b;
  --tapp-step-no: #e9424c;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.25rem;
  gap: 0;
}

.tournament-application-steps__step {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.tournament-application-steps__seg {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.tournament-application-steps__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tapp-step-chev);
}

.tournament-application-steps__chev svg {
  display: block;
}

.tournament-application-steps__label {
  font-weight: 500;
  color: var(--tapp-step-text-label);
}

.tournament-application-steps__badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border-radius: 100px;
  background: var(--tapp-step-bg-pending);
  color: var(--tapp-step-text-pending);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  flex-shrink: 0;
}

.tournament-application-steps__step.is-done .tournament-application-steps__badge,
.tournament-application-steps__step.is-current .tournament-application-steps__badge {
  background: var(--tapp-step-blue);
  color: #fff;
}

.tournament-application-steps__badge--icon {
  padding: 0.5rem;
}

.tournament-application-steps__badge--icon svg {
  display: block;
}

.tournament-application-steps__final--ok .tournament-application-steps__badge {
  background: var(--tapp-step-ok);
  color: #fff;
}

.tournament-application-steps__final--no .tournament-application-steps__badge {
  background: var(--tapp-step-no);
  color: #fff;
}

.tournament-application-head__sub {
  margin: 0 0 1.25rem;
  color: #64748b;
}

.tournament-application-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.tournament-application-crest img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.tournament-application-crest__ph {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e6f2ff, #cfe4ff);
  border: 1px solid #dbeafe;
}

.tournament-application-fields {
  flex: 1;
  min-width: 220px;
}

.tournament-application-roster-error {
  margin: 1rem 0 0;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 500;
}

.tournament-application-block {
  margin-top: 1.5rem;
}

.tournament-application-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tournament-application-block__title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-navy, #003b6f);
}

.tournament-application-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tournament-application-grid {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.tournament-application-field span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.tournament-application-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.tournament-application-static {
  padding: 0.5rem 0;
  font-weight: 600;
  color: #1f2937;
}

.tournament-application-select {
  min-width: 220px;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #e2e5ea;
}

.tournament-application-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
}

.tournament-application-btn--primary {
  background: #ff8c00;
  color: #fff;
}

.tournament-application-btn--secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.tournament-application-btn--ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.tournament-application-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
}

.tournament-application-footer--split {
  justify-content: space-between;
  align-items: center;
}

.tournament-application-footer__right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tournament-application-inline-form {
  display: inline-block;
  margin: 0;
}

.tournament-application-btn--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.tapp-status-dotwrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tapp-status-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
}

.tapp-status-dot--pending {
  background: #eab308;
  box-shadow: 0 0 0 2px #fef9c3;
}

.tapp-status-dot--ok {
  background: #22c55e;
  box-shadow: 0 0 0 2px #dcfce7;
}

.tapp-status-dot--no {
  background: #ef4444;
  box-shadow: 0 0 0 2px #fee2e2;
}

.trainer-comp-roster-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.trainer-comp-roster-btn--ok {
  background: #dcfce7;
  color: #166534;
}

.trainer-comp-roster-btn--no {
  background: #fee2e2;
  color: #b91c1c;
}

.trainer-comp-roster-btn--muted {
  opacity: 0.45;
  cursor: not-allowed;
}

.trainer-comp-row-link {
  cursor: pointer;
}

.trainer-comp-row-link:hover {
  background: #f8fafc;
}

.trainer-comp-row-link:focus {
  outline: 2px solid #94a3b8;
  outline-offset: -2px;
}

.tournament-application-fio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tournament-application-avatar img {
  border-radius: 6px;
  object-fit: cover;
}

.tournament-application-avatar--ph {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e5e7eb;
}

.tournament-application-iconbtn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
}

.tournament-application-table {
  min-width: 640px;
}

/* ——— Организатор: вкладка «Награды» ——— */
.organizer-awards-page {
  max-width: 1200px;
  padding: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.organizer-awards-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.organizer-awards-block__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
  color: #004170;
}

.organizer-awards-add-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 4px;
  padding: 8px 16px 8px 12px;
  background: #fff6e1;
  color: #ff8b00;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.organizer-awards-add-btn:hover {
  filter: brightness(0.97);
}

.organizer-awards-rows {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.organizer-awards-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.organizer-award-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 1136px;
}

.organizer-award-medal {
  width: 184px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #e4eaef;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding-bottom: 0.625rem;
}

.organizer-award-medal__grade {
  align-self: stretch;
  text-align: center;
  padding: 6px 8px;
  background: #f7f8fa;
  font-size: 0.75rem;
  font-weight: 500;
  color: #252a2f;
}

.organizer-award-medal__grade--title {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  font-size: 0.7rem;
}

.organizer-award-medal__img-wrap {
  width: 102px;
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.organizer-award-medal__img-wrap img {
  width: 102px;
  height: 102px;
  object-fit: contain;
}

.organizer-award-medal__ph {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #e4eaef;
}

.organizer-award-medal__stats {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.organizer-award-medal__stats--single {
  justify-content: center;
}

.organizer-award-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e9f5fa;
  font-size: 0.75rem;
  line-height: 1rem;
}

.organizer-award-pill__k {
  color: #037cbd;
  opacity: 0.5;
  font-weight: 500;
}

.organizer-award-pill__v {
  color: #037cbd;
  font-weight: 700;
}

.organizer-award-main {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e4eaef;
  background: #fff;
}

.organizer-awards-page .organizer-award-card--team .organizer-award-main--gold {
  background: linear-gradient(to left, rgba(255, 210, 90, 0.28) 0%, rgba(255, 255, 255, 0) 52%), #fff;
}

.organizer-awards-page .organizer-award-card--team .organizer-award-main--silver {
  background: linear-gradient(to left, rgba(186, 198, 214, 0.32) 0%, rgba(255, 255, 255, 0) 52%), #fff;
}

.organizer-awards-page .organizer-award-card--team .organizer-award-main--bronze {
  background: linear-gradient(to left, rgba(210, 155, 110, 0.26) 0%, rgba(255, 255, 255, 0) 52%), #fff;
}

.organizer-awards-page .organizer-award-card--team .organizer-award-main--special {
  background: linear-gradient(to left, rgba(120, 180, 220, 0.2) 0%, rgba(255, 255, 255, 0) 52%), #fff;
}

.organizer-award-main__logo-wrap {
  flex-shrink: 0;
  width: 136px;
  height: 136px;
  border-radius: 8px;
  background: #f7f8fa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.organizer-award-main__logo {
  width: 136px;
  height: 136px;
  object-fit: cover;
  border-radius: 8px;
}

.organizer-award-main__logo--ph {
  background: #e4eaef;
}

.organizer-award-main__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.organizer-award-main__row1 {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.organizer-award-main__name {
  flex: 1;
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
  color: #001224;
}

.organizer-award-assign-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: #ffa629;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.organizer-award-assign-btn:hover {
  filter: brightness(1.03);
}

.organizer-award-main__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.35;
}

.organizer-modal-shell__panel--awards {
  max-width: 607px;
  width: calc(100vw - 2rem);
}

.organizer-awards-modal-form .pitch-assign-shell__head {
  margin-bottom: 0.5rem;
}

.organizer-awards-modal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 0.5rem;
}

.organizer-awards-modal-visual {
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  border-radius: 8px;
  border: 1px solid #acb9c1;
  background: #e9f5fa;
  overflow: hidden;
  position: relative;
}

.organizer-awards-modal-visual__img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.organizer-awards-modal-visual__ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #dbeafe 0%, #e9f5fa 100%);
}

.organizer-awards-modal-fields {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.organizer-awards-ro-field {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid #e4eaef;
  background: #fff;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #252a2f;
  display: flex;
  align-items: center;
}

.organizer-awards-ro-field--muted {
  color: #acb9c1;
}

.organizer-awards-modal-split {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.organizer-awards-modal-split .organizer-wizard-field {
  flex: 1;
  min-width: 120px;
}

.organizer-awards-modal-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.organizer-awards-btn {
  flex: 1;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  cursor: pointer;
  font-family: inherit;
}

.organizer-awards-btn--primary {
  background: #ffa629;
  color: #fff;
}

.organizer-awards-btn--secondary {
  background: #fff6e1;
  color: #ffa629;
}

.organizer-event-footer--finish {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e4eaef;
  justify-content: center;
}

.organizer-event-finish-form {
  margin: 0;
}

.organizer-event-btn-finish {
  border: none;
  border-radius: 4px;
  padding: 10px 28px;
  background: #16a34a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  cursor: pointer;
  font-family: inherit;
}

.organizer-event-btn-finish:hover {
  background: #15803d;
}

.organizer-event-finished-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #16a34a;
}

.organizer-awards-btn--primary:hover,
.organizer-awards-btn--secondary:hover {
  filter: brightness(0.98);
}

/* Бронирование секторов поля (2×4) */
.training-pitch-host {
  width: 100%;
}

.training-pitch-picker__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.training-pitch-picker__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #252a2f;
}

.training-pitch-picker__legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.training-pitch-picker__swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: middle;
  margin-right: 0.2rem;
}

.training-pitch-picker__swatch--free {
  background: #e8f5e9;
}

.training-pitch-picker__swatch--busy {
  background: #fee2e2;
}

.training-pitch-picker__swatch--pick {
  background: #dbeafe;
  border-color: #037cbd;
}

.training-pitch-picker__field {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      #2f8f50 0%,
      #2f8f50 12.5%,
      #287a44 12.5%,
      #287a44 25%
    ),
    linear-gradient(180deg, #2d8a4e 0%, #256f3f 100%);
  border: 3px solid #fff;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    0 4px 14px rgba(0, 43, 73, 0.12);
}

.training-pitch-picker__field::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  pointer-events: none;
}

.training-pitch-picker__midline {
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 0;
}

.training-pitch-picker__center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.training-pitch-picker__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.training-pitch-picker__row + .training-pitch-picker__row {
  margin-top: 0.45rem;
}

.training-pitch-picker__sector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.35rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.training-pitch-picker__sector:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.training-pitch-picker__sector.is-selected {
  background: #037cbd;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(3, 124, 189, 0.45);
}

.training-pitch-picker__sector.is-occupied {
  background: rgba(185, 28, 28, 0.55);
  border-color: rgba(254, 202, 202, 0.8);
  cursor: not-allowed;
  opacity: 0.92;
}

.training-pitch-picker__sector-num {
  font-size: 1.1rem;
  line-height: 1;
}

.training-pitch-picker__sector-busy {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.training-pitch-picker__hint {
  margin-top: 0.65rem;
}

.training-pitch-picker--readonly .training-pitch-picker__sector--readonly {
  pointer-events: none;
  cursor: default;
}

.training-pitch-picker--readonly .training-pitch-picker__sector--readonly:not(.is-selected) {
  opacity: 0.55;
}

.training-view-modal__sectors-row dd {
  min-width: 0;
}

.training-view-pitch {
  width: 100%;
  max-width: 28rem;
}

.training-view-pitch .venue-booking-sectors-preview {
  max-width: none;
  width: 100%;
}

.training-view-pitch__labels {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #374151;
}

.training-modal-form .training-pitch-picker__field {
  min-height: 7.5rem;
}

.training-view-modal__sectors-empty {
  margin: 0.5rem 0 0;
}

.training-recurrence {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.training-recurrence__hint {
  margin: 0.35rem 0 0.5rem;
}

.training-recurrence__panel[hidden],
.training-recurrence__until[hidden] {
  display: none !important;
}

.training-recurrence__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.training-recurrence__chips--monthdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  max-width: 22rem;
}

.training-recurrence__chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.training-recurrence__chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.training-recurrence__chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.training-recurrence__chip--day span {
  min-width: 2rem;
  padding: 0.2rem;
}

.training-recurrence__chip input:checked + span {
  background: #dbeafe;
  border-color: #60a5fa;
  color: var(--color-navy);
}

.training-recurrence__chip input:focus-visible + span {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.training-recurrence__until {
  max-width: 14rem;
}

.training-cal__item-sectors {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
}

/* ——— Кабинет судьи: единое превью профиля (как на «Текущей игре») ——— */

.trainer-cabinet .referee-profile-card-page {
  margin-bottom: 1.25rem;
}

.trainer-cabinet .referee-profile-card {
  padding: 20px 10px;
  background: #fff;
  border-radius: 5px;
  box-sizing: border-box;
}

.referee-profile-card__main {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
}

.referee-profile-card__photo {
  flex-shrink: 0;
}

.referee-profile-card__photo img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.referee-profile-card__photo-ph {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e6f2ff, #cfe4ff);
  border: 1px solid #dbeafe;
}

.referee-profile-card__info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.referee-profile-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.referee-profile-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #001224;
  text-align: left;
}

.referee-profile-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.3rem 0.35rem;
  width: 100%;
  max-width: 100%;
}

.referee-stat-pill {
  background: #e6f4ff;
  color: #001224;
  padding: 3px 5px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.referee-stat-pill em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
  margin-right: 0.2rem;
}

.referee-stat-pill strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
