/* Универсальный блок «Кто идёт» — превью + sheet */

.people-going-wrap {
  margin: 0 0 12px;
}

.people-going-block {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px 12px;
  border: 0;
  border-radius: 28px;
  background: var(--yaqin-surface-raised);
  box-shadow: 0 0 0 1px var(--yaqin-bg-subtle);
  color: var(--yaqin-text);
  text-align: left;
  font: inherit;
  box-sizing: border-box;
  cursor: pointer;
}
.people-going-block.is-empty {
  cursor: default;
  pointer-events: none;
}

.people-going-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.people-going-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.people-going-head span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yaqin-text-tertiary);
}
.people-going-head .ti {
  font-size: 16px;
}

.people-going-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.people-going-rail::-webkit-scrollbar {
  display: none;
}

.people-going-tile {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
}
.people-going-tile img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 6px;
  background: var(--yaqin-bg);
}
.people-going-tile span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--yaqin-text);
}

.people-going-more {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--yaqin-bg);
  color: var(--yaqin-text-secondary);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  align-self: flex-start;
}

.people-going-empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--yaqin-text-tertiary);
}

/* Full sheet */
.people-going-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.48);
  padding: 0;
}
.people-going-sheet {
  width: min(100%, 442px);
  max-height: min(78dvh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--yaqin-bg);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.people-going-sheet-handle {
  width: 36px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: var(--yaqin-sep);
  flex: 0 0 auto;
}
.people-going-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 8px;
  flex: 0 0 auto;
}
.people-going-sheet-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.people-going-sheet-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--yaqin-bg-subtle);
  color: var(--yaqin-text);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.people-going-sheet-list {
  overflow-y: auto;
  padding: 4px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 4px;
}
.people-going-row {
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: var(--yaqin-surface-raised);
  color: var(--yaqin-text);
  text-align: left;
  font: inherit;
  padding: 10px 12px;
}
.people-going-row.me {
  grid-template-columns: 48px 1fr;
}
.people-going-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.people-going-row-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.people-going-row-copy strong {
  font-size: 15px;
  font-weight: 700;
}
.people-going-row-copy small {
  font-size: 13px;
  color: var(--yaqin-text-tertiary);
  line-height: 1.35;
}
.people-going-row > i {
  color: var(--yaqin-text-tertiary);
}
