html.t868-av:not(#t868) body .profile-btn,
html.t868-av:not(#t868) body .phd-av {
  background-image: var(--t868-ava) !important;
  background-repeat: no-repeat !important;
  background-position: 50% 100% !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: visible;
}
html.t868-av:not(#t868) body .profile-btn {
  background-size: 44px 48px !important;
}
html.t868-av:not(#t868) body .phd-av {
  background-size: 31px 34px !important;
}
html.t868-av:not(#t868) body .profile-btn > svg,
html.t868-av:not(#t868) body .phd-av > svg {
  display: none !important;
}
html.t868-av:not(#t868) body .profile-btn .dot,
html.t868-av:not(#t868) body .phd-av .phd-chev {
  z-index: 1;
}
@media (hover: hover) {
  html.t868-av:not(#t868) body .profile-btn {
    transition: background-size 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  html.t868-av:not(#t868) body .profile-btn:hover {
    background-size: 46px 50px !important;
  }
}
html:not(#t868) body .g-ava {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px !important;
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
html:not(#t868) body .g-ava > img {
  width: 80px !important;
  height: 88px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  margin: 0 !important;
  flex: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html:not(#t868)[data-device="mobile"] body .g-ava > img {
  width: 96px !important;
  height: 105px !important;
}
html:not(#t868) body .g-ava > button {
  margin: 0 !important;
  position: static !important;
  flex: none;
}
@media (hover: hover) {
  html:not(#t868) body .g-ava:hover > img {
    transform: translateY(-2px) scale(1.04);
  }
}
.t868-st {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  height: 64px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.t868-st .t868-ar {
  flex: none;
  width: 25px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #2c3242;
  transition:
    opacity 0.2s,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}
.t868-st .t868-ar svg {
  width: 25px;
  height: 25px;
  display: block;
}
.t868-st .t868-ar svg path {
  fill: currentColor !important;
}
.t868-st .t868-ar:disabled {
  opacity: 0.25;
  cursor: default;
}
.t868-st .t868-ar:not(:disabled):active {
  transform: scale(0.9);
}
.t868-st.dk .t868-ar,
html[data-theme="dark"] .t868-st .t868-ar {
  color: #c8d0dc;
}
.t868-sc {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
  height: 64px;
  padding: 0 8px;
  scroll-padding: 0 8px;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(90deg, var(--l, #000) 0, #000 20px, #000 calc(100% - 20px), var(--r, #000) 100%);
  mask-image: linear-gradient(90deg, var(--l, #000) 0, #000 20px, #000 calc(100% - 20px), var(--r, #000) 100%);
}
.t868-sc::-webkit-scrollbar {
  display: none;
}
.t868-sc.l {
  --l: transparent;
}
.t868-sc.r {
  --r: transparent;
}
.t868-sc.drag {
  cursor: grabbing;
  scroll-snap-type: none;
}
.t868-it {
  flex: 0 0 44px;
  width: 44px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  scroll-snap-align: start;
  cursor: pointer;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.t868-it:last-child {
  scroll-snap-align: end;
}
.t868-it img {
  width: 40px;
  height: 44px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.t868-it span {
  font:
    700 12px/12px Montserrat,
    system-ui,
    sans-serif;
  color: #6eb83f;
  -webkit-text-fill-color: #6eb83f;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.t868-it.on span {
  opacity: 1;
}
@media (hover: hover) {
  .t868-it:hover img {
    transform: translateY(-2px);
  }
}
.t868-sc.drag .t868-it img {
  transform: none !important;
}
html:not(#t868) .ppm .modal__avatar-list.t868-l::before,
html:not(#t868) .ppm .modal__avatar-list.t868-l::after {
  display: none !important;
}
.t971-pb {
  width: 100%;
  margin-top: 20px;
  box-sizing: border-box;
}
.t971-pal {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 36px));
  justify-content: center;
  gap: 8px;
  padding: 0 4px;
  box-sizing: border-box;
}
.t971-sw {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition:
    outline-color 0.2s,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}
.t971-sw img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}
.t971-sw.on {
  outline-color: #268bf3;
}
.t971-sw:focus-visible {
  outline-color: #268bf3;
}
@media (hover: hover) {
  .t971-sw:not(.on):hover {
    transform: translateY(-2px);
  }
}
.t971-sw:active {
  transform: scale(0.92);
}
@media (max-width: 480px) {
  .t971-pal {
    gap: 6px;
    padding: 0;
  }
}
.t868-st .t868-it img {
  background: var(--t971-bg, none);
  background-position: 50% 50%;
  background-size: contain;
  background-repeat: no-repeat;
}
.t868-st {
  height: auto;
  align-items: flex-start;
}
.t868-sc {
  height: auto;
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}
.t868-it {
  flex: 0 0 45px;
  width: 45px;
  height: auto;
  gap: 8px;
}
.t868-st .t868-it img {
  width: 44.4px;
  height: 48.7px;
  object-fit: contain;
}
.t868-st .t868-ar {
  height: 44px;
  margin-top: 4.6px;
}
.t971-sb {
  margin-top: 19.2px;
}
.t971-pal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
}
.t971-sw {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  aspect-ratio: auto;
}
html:not(#t868) .ppm .modal[data-modal="change-avatar"] .modal__avatar-current {
  height: auto !important;
  min-height: 0 !important;
}
html:not(#t868) .ppm .modal[data-modal="change-avatar"] .modal__avatar-current img {
  height: auto !important;
  display: block;
}
html:not(#t868) .ppm .modal[data-modal="change-avatar"] .modal__avatar-list.t868-l {
  margin-top: 19.2px !important;
  padding: 0 !important;
}
.t971-sb.m .t868-it {
  flex: 0 0 41px;
  width: 41px;
}
.t971-sb.m .t868-st .t868-it img {
  width: 40.4px;
  height: 44.3px;
}
.t971-sb.m .t868-st .t868-ar {
  height: 40px;
  margin-top: 4.2px;
}
.t971-pb.m .t971-pal {
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto;
}
.t971-pb.m .t971-sw {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  position: relative;
}
.t971-pb.m .t971-sw::after {
  content: "";
  position: absolute;
  inset: -4px;
}
.t868-sc.pre {
  visibility: hidden;
}
.t971-pb.m .t971-pal {
  gap: 5px;
}
.t971-pb:not(.m) .t971-pal {
  gap: 6px;
}

html:not(#t868) .ppm .modal[data-modal="change-avatar"] .modal__avatar-current.t318-host,
.t318-host {
  height: auto !important;
  min-height: 0 !important;
}
.t318-prev {
  position: relative;
  width: 166px;
  height: 182px;
  flex: none;
  margin: 0 auto;
  overflow: visible;
  box-sizing: border-box;
}
.t318-prev .t318-bg {
  position: absolute;
  /* n7: фон на 1 px меньше картинки. При -1px круг фона выступал из-под нижнего края персонажа тонкой полоской */
  inset: 1px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}
.t318-prev .t318-im,
.t318-prev img.t318-im {
  position: relative;
  z-index: 1;
  width: 166px !important;
  height: 182px !important;
  object-fit: fill !important;
  display: block !important;
  background: none !important;
  margin: 0 !important;
}

/* n7: после нажатия на аватар в ленте у кнопки оставалась рамка фокуса. Лента обрезает ее сверху и снизу,
   и по бокам выбранного аватара были видны две синие полоски. Рамку показываем только при работе с клавиатуры, внутри кнопки */
.t868-it:focus {
  outline: none;
}
.t868-it:focus-visible {
  outline: 2px solid #268bf3;
  outline-offset: -2px;
  border-radius: 10px;
}
