.f7-participants-wrap {
  max-width: 100%;
}

.f7-participants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .f7-participants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.f7-p-card {
  display: block;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.f7-p-card:hover {
  border-color: #bbb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Гостевая заявка без привязки к пользователю (вкладка этапа) */
.f7-p-card--guest {
  cursor: default;
}

.f7-p-card--guest:hover {
  border-color: #e0e0e0;
  box-shadow: none;
}

.f7-p-card-photo {
  position: relative;
  display: block;
  width: 100%;
}

.f7-p-card-photo img,
.f7-p-card-photo .f7-p-ph {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  display: block;
  object-position: top;
}

.f7-p-title-badge {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  z-index: 2;
  pointer-events: none;
}

.f7-p-name {
  margin-top: 0.5rem;
  font-weight: 600;
}

.f7-p-city {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #555;
}

.f7-participants-filters {
  margin-bottom: 1rem;
}

.f7-p-filters-toggle,
.f7-p-filters-overlay,
.f7-p-filters-head {
  display: none;
}

.f7-p-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.25rem;
}

.f7-p-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 12rem;
}

.f7-p-filter-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.f7-p-filters select {
  margin-left: 0;
  max-width: 100%;
}

@media (max-width: 767px) {
  .f7-p-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
  }

  .f7-p-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
  }

  .f7-p-filters-overlay.is-open {
    display: block;
  }

  .f7-participants-filters {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    margin: 0;
    padding: 1rem 0.9rem;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 9999;
    overflow-y: auto;
  }

  .f7-participants-filters.is-open {
    transform: translateX(0);
  }

  .f7-p-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }

  .f7-p-filters-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .f7-p-filters-close {
    border: 0;
    background: transparent;
    padding: 0.25rem 0.4rem;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
  }

  .f7-p-filters {
    flex-direction: column;
    gap: 0.75rem;
  }

  .f7-p-filters label {
    min-width: 0;
    width: 100%;
  }
}

/* Публичный профиль участника */
.f7-p-public-profile {
  max-width: 960px;
}

.f7-p-back {
  margin: 0 0 0.5rem;
}

.f7-p-back a {
  text-decoration: none;
}

.f7-p-back a:hover {
  text-decoration: underline;
}

.f7-p-profile-title {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
}

.f7-p-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .f7-p-profile-grid {
    grid-template-columns: 1fr;
  }
}

.f7-p-profile-photo-box {
  position: relative;
  max-width: 420px;
}

.f7-p-profile-photo-box .f7-p-profile-photo,
.f7-p-profile-photo-box .f7-p-profile-photo-ph {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  display: block;
}

.f7-p-profile-photo-box .f7-p-profile-photo-ph {
  aspect-ratio: 4/3;
  background: #eee;
}

.f7-p-profile-photo-box .f7-p-title-badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.65rem;
}

.f7-p-admin-bar {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #f0f6fc;
  border: 1px solid #c3d9ed;
  border-radius: 8px;
}

.f7-p-admin-titled-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.f7-p-admin-label {
  margin-right: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.f7-p-place-cell .f7-place-emoji {
  font-size: 1.75rem;
  line-height: 1;
  display: inline-block;
}

.f7-p-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}

.f7-p-dl dt {
  margin: 0;
  font-weight: 600;
  color: #333;
}

.f7-p-dl dd {
  margin: 0;
}

.f7-p-history-section {
  margin-top: 0.5rem;
}

.f7-p-history-heading {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.f7-p-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.f7-p-history-table th,
.f7-p-history-table td {
  padding: 0.45rem 0.6rem;
  border: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}

.f7-p-history-table thead th {
  background: #f6f7f7;
  font-weight: 600;
}

.f7-p-place-cell-head {
  min-width: 3.5rem;
}

.f7-p-place-headless {
  width: 3.25rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
