/* Milota product UX layer. Loaded last so the active domain can evolve without
   rewriting the legacy styles shared by the other domains. */

body.nf2 {
  --milota-green: #0f4c48;
  --milota-green-strong: #0a3936;
  --milota-coral: #ef5a35;
  --milota-coral-strong: #d94624;
  --milota-blue: #316b8c;
  --milota-amber: #a76600;
  --milota-ink: #17211f;
  --milota-muted: #66736f;
  --milota-line: #dbe3e0;
  --milota-paper: #f3f6f4;
  --milota-surface: #ffffff;
  --milota-danger: #b42318;
  --milota-dock-height: 72px;
  color: var(--milota-ink);
  letter-spacing: 0;
}

body.nf2 *,
body.nf2 *::before,
body.nf2 *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

body.nf2 img {
  max-width: 100%;
}

body.nf2 a,
body.nf2 button,
body.nf2 input,
body.nf2 select,
body.nf2 textarea,
body.nf2 [tabindex] {
  -webkit-tap-highlight-color: transparent;
}

body.nf2 button,
body.nf2 [role="button"] {
  touch-action: manipulation;
}

body.nf2 button.nf2-chip {
  border: 1px solid transparent;
  cursor: pointer;
}

/* Quiet, utility-first product header. */
body.nf2 .nf2-top {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--milota-line) !important;
  backdrop-filter: blur(10px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.05) !important;
}

body.nf2 .nf2-top__inner {
  gap: 14px;
}

body.nf2 .nf2-brand {
  color: var(--milota-green) !important;
}

body.nf2 .nf2-brand span {
  font-size: 25px;
  line-height: 1;
}

body.nf2 .nf2-tools {
  gap: 6px;
}

body.nf2 .nf2-chip {
  min-width: 48px;
  height: 38px;
  justify-content: center;
  padding-inline: 10px;
  border-radius: 8px;
  box-shadow: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

body.nf2 .nf2-chip:hover {
  transform: none;
}

body.nf2 .nf2-chip--coin {
  color: #865600;
  background: #fff7e8;
  border-color: #ead6aa;
}

body.nf2 .nf2-chip--prem {
  color: var(--milota-green);
  background: #eef4f2;
  border-color: #d5e1dd;
}

body.nf2 .nf2-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  background: #eef4f2;
  border: 1px solid #d5e1dd;
  box-shadow: none;
}

body.nf2 .nf2-avatar[title="Добавить фотографию"] img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

body.nf2 :focus-visible {
  outline: 3px solid rgba(49, 107, 140, 0.42) !important;
  outline-offset: 2px;
}

body.nf2 .nf2-page__main,
body.nf2 .nf2-panel,
body.nf2 .newsetform_card,
body.nf2 .notific-guests__box {
  border-radius: 8px !important;
}

body.nf2 .nf2-page__head h1,
body.nf2 .nf2-page__head > strong,
body.nf2 .nf2-settings__hero h1 {
  overflow-wrap: anywhere;
}

body.nf2--guest .nf2-hero {
  min-height: calc(100dvh - 72px) !important;
}

body.nf2--guest .nf2-hero__media {
  transform: none !important;
  animation: none !important;
}

body.nf2--guest .nf2-hero__veil {
  background: rgba(8, 28, 26, 0.62) !important;
}

body.nf2--guest .nf2-hero__brandline {
  font-size: 36px !important;
}

body.nf2--guest .nf2-hero__copy h1 {
  font-size: 56px !important;
  line-height: 1.05 !important;
}

body.nf2 .nf2-btn,
body.nf2 .btn-blue,
body.nf2 .btn-pink,
body.nf2 .select-coins__btn {
  border-radius: 8px !important;
}

@media (max-width: 700px) {
  body.nf2--guest .nf2-hero__brandline {
    font-size: 27px !important;
  }

  body.nf2--guest .nf2-hero__copy h1 {
    font-size: 38px !important;
    line-height: 1.08 !important;
  }
}

/* Stable mobile shell */
@media (max-width: 900px) {
  body.nf2--auth {
    --nf2-top-h: 56px;
  }

  body.nf2--auth:not(.nf2-chat-open) {
    --nf2-dock-h: var(--milota-dock-height);
    padding-bottom: calc(var(--milota-dock-height) + env(safe-area-inset-bottom, 0px) + 16px) !important;
  }

  body.nf2 .nf2-top__inner {
    min-height: 0;
    height: 100%;
    padding-inline: 14px !important;
    gap: 10px;
  }

  body.nf2 .nf2-brand span {
    font-size: 23px !important;
  }

  body.nf2 .nf2-chip,
  body.nf2 .nf2-avatar {
    height: 36px;
  }

  body.nf2 .nf2-chip {
    min-width: 46px;
    padding-inline: 9px;
  }

  body.nf2 .nf2-avatar {
    width: 36px;
    flex-basis: 36px;
  }

  body.nf2 .nf2-avatar[title="Добавить фотографию"] img {
    width: 24px;
    height: 24px;
  }

  body.nf2 .nf2-dock,
  body.nf2 .mob-menu-fixed {
    left: 50% !important;
    right: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    width: min(560px, calc(100% - 20px)) !important;
    height: var(--milota-dock-height) !important;
    padding: 6px 8px !important;
    overflow: hidden !important;
    transform: translateX(-50%) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid var(--milota-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 -2px 14px rgba(16, 38, 33, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  body.nf2 .nf2-dock > ul {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 2px !important;
  }

  body.nf2 .nf2-dock > ul > li a {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 3px !important;
    padding: 5px 4px 4px !important;
    overflow: visible !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #6f7c78 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.nf2 .nf2-dock__icon {
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
  }

  body.nf2 .nf2-dock__svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  body.nf2 .nf2-dock > ul > li a small {
    display: block !important;
    max-width: 100%;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 13px;
    white-space: nowrap;
  }

  body.nf2 .nf2-dock > ul > li a.is-active,
  body.nf2 .nf2-dock > ul > li a.menu-fixed__act {
    color: var(--milota-green) !important;
    background: #edf5f2 !important;
    border-color: #dce9e5 !important;
    box-shadow: none !important;
  }

  body.nf2 .nf2-dock > ul > li a .count-lik {
    top: -5px !important;
    right: -9px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border: 2px solid #fff !important;
    font-size: 10px !important;
    line-height: 14px !important;
    box-shadow: none !important;
  }

  body.nf2 .nf2-discover .nf2-discover__card,
  body.nf2 .nf2-discover .watch-profile {
    width: calc(100% + 16px) !important;
    max-width: calc(100% + 16px) !important;
    margin-right: -8px !important;
    margin-left: -8px !important;
  }

  body.nf2 .nf2-discover .watch-profile__slider,
  body.nf2 .nf2-discover .watch-profile__slider .swiper-slide,
  body.nf2 .nf2-discover .watch-profile__photo img {
    border-radius: 12px !important;
  }

  body.nf2 .nf2-discover .watch-profile__photo img {
    height: min(
      680px,
      calc(100dvh - 168px - env(safe-area-inset-bottom, 0px))
    ) !important;
  }
}

/* Discovery */
body.nf2 .nf2-discover .watch-profile__moblie {
  padding: 22px 18px 16px !important;
  background: linear-gradient(
    180deg,
    rgba(8, 28, 26, 0) 0%,
    rgba(8, 28, 26, 0.18) 38%,
    rgba(8, 28, 26, 0.76) 100%
  ) !important;
  backdrop-filter: none !important;
}

body.nf2 .nf2-discover .watch-profile__moblie h2 {
  margin-bottom: 6px !important;
}

body.nf2 .nf2-discover .milota-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

body.nf2 .nf2-discover .milota-card-meta span,
body.nf2 .milota-profile-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}

body.nf2 .milota-online-dot {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #43b581;
  box-shadow: 0 0 0 2px rgba(67, 181, 129, 0.18);
}

body.nf2 .milota-online-dot.is-away {
  background: #9aa6a2;
  box-shadow: none;
}

body.nf2 .nf2-discover .milota-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
}

body.nf2 .nf2-discover .milota-card-heading h2 {
  min-width: 0;
  margin: 0 !important;
  font-size: clamp(19px, 5.6vw, 22px) !important;
  overflow-wrap: anywhere;
}

body.nf2 .nf2-discover .milota-card-heading .milota-card-meta {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-self: end;
  gap: 0;
  margin: 0;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 28, 26, 0.38);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

body.nf2 .nf2-discover .milota-card-heading .milota-card-meta span {
  min-height: 22px;
  padding: 3px 5px;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

body.nf2 .nf2-discover .milota-card-heading .milota-card-meta span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

body.nf2 .nf2-discover .milota-card-heading .milota-online-dot {
  width: 7px;
  height: 7px;
  margin-right: 5px;
}

body.nf2 .nf2-discover .watch-profile__moblie > p:not(:empty) {
  margin-top: 8px !important;
}

body.nf2 .nf2-discover .milota-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--milota-green);
  border-radius: 8px;
  color: var(--milota-green);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

body.nf2 .nf2-discover .watch-profile__fave button {
  min-height: 48px !important;
}

/* Keep profile navigation visually separate from the two discovery decisions. */
body.nf2 .nf2-discover .watch-profile__fave,
body.nf2 .nf2-discover .watch-profile__fave.nf2-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) !important;
  grid-template-areas: "skip like" !important;
}

body.nf2 .nf2-discover .watch-profile__fave .btn-close-user {
  grid-area: skip;
  border: 1px solid #d7dfdc !important;
  background: #f5f7f6 !important;
  color: #344540 !important;
  box-shadow: none !important;
}

body.nf2 .nf2-discover .watch-profile__fave .btn-favorite-user {
  grid-area: like;
}

body.nf2 .nf2-discover .watch-profile__fave .nf2-action-label {
  display: inline !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px !important;
  line-height: 1;
}

body.nf2 .nf2-discover .watch-profile__rel > .nf2-profile-peek {
  display: none !important;
}

@media (max-width: 760px) {
  body.nf2 .nf2-discover .watch-profile__moblie {
    padding: 14px 16px 16px !important;
  }

  body.nf2 .nf2-discover .watch-profile__moblie p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  body.nf2 .nf2-discover .nf2-actions {
    gap: 8px !important;
  }

  body.nf2 .nf2-discover .nf2-actions button {
    min-width: 0 !important;
  }
}

@media (max-width: 1020px) {
  body.nf2 .nf2-discover .watch-profile__fave,
  body.nf2 .nf2-discover .watch-profile__fave.nf2-actions {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) !important;
    grid-template-areas: "skip like" !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px !important;
    overflow: hidden;
    border: 0 !important;
    border-top: 1px solid rgba(219, 227, 224, 0.9) !important;
    border-radius: 0 0 12px 12px !important;
    background: rgba(247, 250, 248, 0.94) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
    backdrop-filter: blur(16px) saturate(1.08) !important;
  }

  body.nf2 .nf2-discover .watch-profile__rel > .nf2-profile-peek {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 12 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.84) !important;
    border-radius: 50% !important;
    background: rgba(247, 250, 248, 0.9) !important;
    color: var(--milota-green) !important;
    box-shadow: 0 4px 14px rgba(8, 48, 43, 0.14) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
    backdrop-filter: blur(12px) saturate(1.08) !important;
    cursor: pointer;
  }

  body.nf2 .nf2-discover .watch-profile__rel > .nf2-profile-peek .icon-profile {
    font-size: 19px !important;
  }

  body.nf2 .nf2-discover .watch-profile__moblie {
    bottom: 69px !important;
  }

  body.nf2 .nf2-discover .watch-profile__fave button:not(.open-this-profile) {
    height: 48px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.nf2 .nf2-discover .watch-profile__fave .btn-close-user {
    background: rgba(255, 255, 255, 0.56) !important;
    border-color: #d4ddda !important;
  }

  body.nf2 .nf2-discover .watch-profile__rel > .nf2-profile-peek:active,
  body.nf2 .nf2-discover .watch-profile__fave button:not(.open-this-profile):active {
    transform: scale(0.985) !important;
  }

  body.nf2 .nf2-discover .watch-profile__rel > .nf2-profile-peek:focus-visible {
    outline: 3px solid rgba(226, 96, 56, 0.55) !important;
    outline-offset: 2px !important;
  }
}

@media (max-width: 360px) {
  body.nf2 .nf2-discover .watch-profile__fave .nf2-action-label {
    font-size: 12px !important;
  }
}

/* Chat list */
body.nf2 .nf2-messages #chats > li {
  margin: 0 !important;
  border: 0 !important;
}

body.nf2 .nf2-messages .milota-chat-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--milota-line);
  color: inherit;
  text-decoration: none;
}

body.nf2 .nf2-messages .milota-chat-link:hover,
body.nf2 .nf2-messages .milota-chat-link.is-active {
  background: #edf5f2;
}

body.nf2 .nf2-messages .comment-place__photo {
  position: relative;
  width: 52px !important;
  height: 52px !important;
  flex: 0 0 52px !important;
}

body.nf2 .nf2-messages .comment-place__photo img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  object-fit: cover;
}

body.nf2 .nf2-messages .comment-place__photo .milota-online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  margin: 0;
  border: 2px solid #fff;
}

body.nf2 .nf2-messages .comment-place__photo .milota-online-dot.is-away {
  display: none;
}

body.nf2 .nf2-messages .comment-place__user {
  min-width: 0;
}

body.nf2 .nf2-messages .milota-chat-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

body.nf2 .nf2-messages .milota-chat-name-row h3 {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 .nf2-messages .milota-chat-time {
  flex: 0 0 auto;
  color: var(--milota-muted);
  font-size: 11px;
  font-weight: 500;
}

body.nf2 .nf2-messages .incoming-message__flex {
  display: flex !important;
  min-width: 0;
  gap: 4px;
  margin-top: 4px;
}

body.nf2 .nf2-messages .form-you-message {
  display: inline !important;
  flex: 0 0 auto;
  color: var(--milota-green);
  font-weight: 600;
}

body.nf2 .nf2-messages .incoming-message {
  min-width: 0;
  overflow: hidden;
  color: var(--milota-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 .nf2-messages .incoming-message__number {
  position: static !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--milota-coral) !important;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

body.nf2 .nf2-messages #chat .conversation-message,
body.nf2 .nf2-messages #chat .chat-msg {
  border-radius: 8px !important;
  min-width: 72px !important;
  padding: 9px 50px 9px 13px !important;
}

body.nf2 .nf2-messages #chat .message-date,
body.nf2 .nf2-messages #chat .time-messages,
body.nf2 .nf2-messages #chat .conversation-message.sent .message-date,
body.nf2 .nf2-messages #chat .conversation-message.received .message-date {
  display: block !important;
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: rgba(23, 33, 31, 0.56) !important;
  font-size: 10px !important;
  line-height: 1;
}

body.nf2 .nf2-messages #chat .conversation-message.sent .message-date,
body.nf2 .nf2-messages #chat .chat-msg--to .message-date {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.nf2 .nf2-messages #chat .mobile-header-profile .return {
  width: 44px !important;
  height: 44px !important;
  border: 0;
}

body.nf2 .nf2-messages #chat .send-message-box {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  min-height: 96px !important;
  padding: 0 !important;
  gap: 0;
}

body.nf2 .nf2-messages #chat .conversation-tools {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px 2px;
  gap: 4px;
  border-bottom: 1px solid var(--milota-line);
  background: #fff;
}

body.nf2 .nf2-messages #chat .conversation-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--milota-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

body.nf2 .nf2-messages #chat .conversation-tool:hover,
body.nf2 .nf2-messages #chat .conversation-tool:focus-visible {
  background: rgba(15, 76, 72, 0.08);
  color: var(--milota-green);
}

body.nf2 .nf2-messages #chat .conversation-compose-main {
  display: flex;
  align-items: flex-end;
  width: 100%;
  padding: 8px 10px 10px;
  gap: 8px;
  box-sizing: border-box;
}

body.nf2 .nf2-messages #chat .send-message-box .message-input,
body.nf2 .nf2-messages #chat .send-message-box .emoji-wysiwyg-editor {
  flex: 1 1 auto !important;
  width: auto !important;
  min-height: 44px !important;
  max-height: 120px !important;
  padding: 11px 9px !important;
  border: 1px solid var(--milota-line) !important;
  border-radius: 8px !important;
  background: var(--milota-paper) !important;
  font-size: 16px !important;
}

body.nf2 .nf2-messages #chat .emoji-wysiwyg-editor:empty::before {
  content: attr(data-placeholder);
  color: #87918e;
  pointer-events: none;
}

body.nf2 .nf2-messages #chat .conversation-send-button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--milota-coral) !important;
  overflow: hidden;
  text-transform: none !important;
}

body.nf2 .nf2-messages #chat .conversation-send-button i {
  display: block !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

body.nf2 .nf2-messages #chat .emoticon-menu,
body.nf2 .nf2-messages #chat .emoji-list {
  top: auto !important;
  bottom: calc(100% + 6px) !important;
  left: 0 !important;
}

body.nf2 .nf2-messages #chat [data-msg="error"] {
  display: none;
  margin: 8px 10px 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff1ef;
  color: var(--milota-danger);
  font-size: 13px;
}

body.nf2 .nf2-messages #chat [data-msg="error"].is-visible {
  display: block;
}

body.nf2 .nf2-messages #chat .milota-photo-nudge {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 52px;
  margin: 0;
  padding: 7px 10px;
  border-top: 1px solid #efd8d1;
  background: #fff8f5;
  color: var(--milota-ink);
  box-sizing: border-box;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

body.nf2 .nf2-messages #chat .milota-photo-nudge.is-reminding {
  background: #fff0ea;
  box-shadow: inset 3px 0 0 var(--milota-coral);
}

body.nf2 .milota-photo-nudge__icon,
body.nf2 .milota-photo-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(220, 92, 54, 0.12);
  color: var(--milota-coral);
  font-size: 15px;
}

body.nf2 .milota-photo-nudge__copy,
body.nf2 .milota-photo-toast__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

body.nf2 .milota-photo-nudge__copy strong,
body.nf2 .milota-photo-toast__copy strong {
  color: var(--milota-ink);
  font-size: 13px;
  font-weight: 750;
}

body.nf2 .milota-photo-nudge__copy > span,
body.nf2 .milota-photo-toast__copy > span {
  overflow: hidden;
  color: var(--milota-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 .milota-photo-nudge__action,
body.nf2 .milota-photo-toast__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  gap: 6px;
  border-radius: 8px;
  background: var(--milota-green);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}

body.nf2 .milota-photo-nudge__action:active,
body.nf2 .milota-photo-toast__action:active {
  transform: scale(0.98);
}

body.nf2 .milota-photo-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 850;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 32px;
  align-items: center;
  width: min(460px, calc(100vw - 32px));
  min-height: 64px;
  padding: 9px 10px;
  gap: 9px;
  border: 1px solid #efd8d1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 33, 31, 0.16);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.nf2 .milota-photo-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.nf2 .milota-photo-toast.is-reminding {
  box-shadow: 0 12px 32px rgba(220, 92, 54, 0.22);
}

body.nf2 .milota-photo-toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--milota-muted);
  cursor: pointer;
}

@media (max-width: 900px) {
  body.nf2 .milota-photo-toast {
    right: 16px;
    bottom: calc(var(--milota-dock-height) + env(safe-area-inset-bottom, 0px) + 14px);
  }
}

@media (max-width: 420px) {
  body.nf2 .nf2-messages #chat .milota-photo-nudge {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-height: 48px;
    padding: 6px 8px;
    gap: 7px;
  }

  body.nf2 .milota-photo-nudge__icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  body.nf2 .milota-photo-nudge__action,
  body.nf2 .milota-photo-toast__action {
    min-height: 32px;
    padding: 0 9px;
  }

  body.nf2 .milota-photo-nudge__action i {
    display: none;
  }

  body.nf2 .milota-photo-toast {
    right: 10px;
    bottom: calc(var(--milota-dock-height) + env(safe-area-inset-bottom, 0px) + 16px);
    grid-template-columns: 34px minmax(0, 1fr) auto 28px;
    width: calc(100vw - 20px);
    min-height: 60px;
    padding: 8px;
    gap: 7px;
  }
}

/* Compact mobile chat chrome: preserve 44px controls and give space back to messages. */
@media (max-width: 480px) {
  body.nf2 .nf2-messages #chat .conversation-messages.messages,
  body.nf2 .nf2-messages #chat .conversation-messages {
    padding: 8px 6px 10px !important;
  }

  body.nf2 .nf2-messages #chat .conversation-message,
  body.nf2 .nf2-messages #chat .chat-msg {
    max-width: min(92%, 560px) !important;
  }

  body.nf2 .nf2-messages #chat .send-message-box {
    min-height: 88px !important;
  }

  body.nf2 .nf2-messages #chat .conversation-tools {
    min-height: 36px;
    padding: 1px 4px 0;
    gap: 2px;
  }

  body.nf2 .nf2-messages #chat .conversation-tool {
    width: 40px;
    height: 36px;
  }

  body.nf2 .nf2-messages #chat .conversation-compose-main {
    padding: 5px 6px 6px;
    gap: 6px;
  }
}

/* Events */
body.nf2 .nf2-events .nf2-page__head {
  margin: 0 0 14px !important;
  padding: 2px 0 6px;
}

body.nf2 .nf2-events .nf2-page__head h1 {
  margin: 0 !important;
  color: var(--milota-ink) !important;
  font-family: var(--nf2-font) !important;
  font-size: 32px !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

body.nf2 .nf2-events__list {
  display: block !important;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 12px !important;
}

body.nf2 .nf2-events__group {
  display: block;
  margin: 0;
  padding: 0;
}

body.nf2 .nf2-events__group + .nf2-events__group {
  margin-top: 18px;
}

body.nf2 .nf2-events__day {
  margin: 0 0 7px !important;
  padding: 0 2px;
  color: var(--milota-muted);
  font-family: var(--nf2-font);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

body.nf2 .nf2-events__rows {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: var(--milota-surface);
}

body.nf2 .nf2-events__item {
  position: relative;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.nf2 .nf2-events__item + .nf2-events__item {
  border-top: 1px solid var(--milota-line) !important;
}

body.nf2 .nf2-events__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 10px 12px;
  gap: 12px;
  color: var(--milota-ink);
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 150ms ease-out;
}

body.nf2 .nf2-events__row:hover,
body.nf2 .nf2-events__row:focus-visible {
  background: #f4f7f6;
  color: var(--milota-ink);
  outline: none;
}

body.nf2 .nf2-events__avatar {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
}

body.nf2 .nf2-events__avatar img {
  display: block;
  width: 56px !important;
  height: 56px !important;
  border-radius: 8px !important;
  object-fit: cover;
}

body.nf2 .nf2-events__new {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--milota-coral);
  box-sizing: border-box;
}

body.nf2 .nf2-events__copy {
  display: block;
  min-width: 0;
}

body.nf2 .nf2-events__headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
}

body.nf2 .nf2-events__headline strong {
  min-width: 0;
  overflow: hidden;
  color: var(--milota-ink);
  font-family: var(--nf2-font);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 .nf2-events__when {
  flex: 0 0 auto;
  margin: 0;
  color: var(--milota-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

body.nf2 .nf2-events__description {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 4px;
  gap: 7px;
  color: var(--milota-muted);
}

body.nf2 .nf2-events__description i {
  flex: 0 0 16px;
  width: 16px;
  color: var(--milota-teal);
  font-size: 12px;
  text-align: center;
}

body.nf2 .nf2-events__description--like i,
body.nf2 .nf2-events__description--match i {
  color: var(--milota-coral);
}

body.nf2 .nf2-events__description small {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 .nf2-events__chevron {
  justify-self: end;
  color: #a4afac;
  font-size: 13px;
}

@media (max-width: 760px) {
  body.nf2 .nf2-events .nf2-page__head {
    height: 44px;
    margin: 0 !important;
    padding: 4px 0 6px;
    box-sizing: border-box;
  }

  body.nf2 .nf2-events .nf2-page__head h1 {
    font-size: 30px !important;
  }

  body.nf2 .nf2-events__list {
    position: relative;
    width: 100vw;
    max-width: 100vw !important;
    margin: 0 0 0 calc(50% - 50vw) !important;
    padding: 0 0 12px !important;
  }

  body.nf2 .nf2-events__day {
    margin-bottom: 7px !important;
    padding: 0 16px;
  }

  body.nf2 .nf2-events__rows {
    border: 0;
    border-radius: 0;
  }

  body.nf2 .nf2-events__item + .nf2-events__item {
    border-top: 0 !important;
  }

  body.nf2 .nf2-events__item + .nf2-events__item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 16px;
    left: 80px;
    z-index: 1;
    height: 1px;
    background: var(--milota-line);
    pointer-events: none;
  }

  body.nf2 .nf2-events__group + .nf2-events__group {
    margin-top: 14px;
  }

  body.nf2 .nf2-events__row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    height: 74px;
    min-height: 74px;
    max-height: 74px;
    padding: 11px 16px;
    overflow: hidden;
  }

  body.nf2 .nf2-events__avatar,
  body.nf2 .nf2-events__avatar img {
    width: 52px !important;
    height: 52px !important;
  }

  body.nf2 .nf2-events__avatar img {
    border-radius: 50% !important;
  }

  body.nf2 .nf2-events__headline strong {
    font-size: 16px;
  }

  body.nf2 .nf2-events__description small {
    font-size: 14px;
    line-height: 1.25;
  }

  body.nf2 .nf2-events__chevron {
    display: none;
  }
}

/* Public profile */
body.nf2 .nf2-profile-view .milota-profile-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 18px;
}

body.nf2 .nf2-profile-view .milota-profile-summary .milota-profile-status {
  background: #edf5f2;
  color: var(--milota-green);
}

body.nf2 .nf2-profile-view .nf2-profile-summary--overlay {
  display: none;
}

body.nf2 .nf2-profile-view .milota-profile-empty {
  margin: 10px 0 0;
  padding: 12px;
  border-left: 3px solid var(--milota-coral);
  background: #fff5f1;
  color: #59443d;
  font-size: 14px;
  line-height: 1.45;
}

body.nf2 .nf2-profile-view .nf2-profile-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 14px 0 18px;
}

body.nf2 .nf2-profile-view .nf2-profile-actions .select-coins__btn,
body.nf2 .nf2-profile-view .nf2-profile-actions button {
  min-height: 48px;
  margin: 0 !important;
  border-radius: 8px !important;
}

body.nf2 .nf2-profile-view .nf2-profile-like {
  width: 48px;
  border: 1px solid var(--milota-line);
  background: #fff;
  color: var(--milota-coral);
  cursor: pointer;
}

body.nf2 .nf2-profile-view .nf2-profile-like.is-liked {
  border-color: var(--milota-coral);
  background: #fff1ed;
}

body.nf2 .nf2-profile-view .profile-private__title small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
}

body.nf2 .nf2-profile-view .view-profiles__box {
  position: relative;
  overflow: hidden;
  border-radius: 8px !important;
}

body.nf2 .nf2-profile-view .view-profiles__box > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 8px 7px;
  background: rgba(8, 28, 26, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1020px) {
  body.nf2 .nf2-profile-view__stage,
  body.nf2 .nf2-profile-view .question__flex {
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid var(--milota-line);
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 46, 42, 0.12);
  }

  body.nf2 .nf2-profile-view .profile-glob__content,
  body.nf2 .nf2-profile-view .profile-glob__slider,
  body.nf2 .nf2-profile-view .use-profile-glob__pic,
  body.nf2 .nf2-profile-view .use-profile-glob__pic img,
  body.nf2 .nf2-profile-view .watch-profile__moblie {
    border-radius: 0 !important;
  }

  body.nf2 .nf2-profile-view .nf2-profile-view__bio,
  body.nf2 .nf2-profile-view .use-prof-question__cnt {
    padding: 16px !important;
    border: 0 !important;
    border-top: 1px solid var(--milota-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.nf2 .nf2-profile-view .nf2-profile-summary--bio {
    display: none;
  }

  body.nf2 .nf2-profile-view .watch-profile__moblie {
    padding: 62px 12px 14px !important;
  }

  body.nf2 .nf2-profile-view .nf2-profile-identity {
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.nf2 .nf2-profile-view .nf2-profile-identity h2 {
    flex: 0 1 auto;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    font-size: clamp(19px, 5vw, 24px) !important;
    line-height: 1.1 !important;
    white-space: nowrap;
  }

  body.nf2 .nf2-profile-view .nf2-profile-summary--overlay {
    display: flex;
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 5px;
    margin: 0 0 2px auto;
    white-space: nowrap;
  }

  body.nf2 .nf2-profile-view .nf2-profile-summary--overlay .milota-profile-status {
    min-height: 22px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }

  body.nf2 .nf2-profile-view .nf2-profile-summary--overlay .icon-location {
    display: none;
  }

body.nf2 .nf2-profile-view .nf2-profile-summary--overlay .milota-online-dot {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  }

  body.nf2 .nf2-profile-view .nf2-profile-actions {
    margin-top: 0;
  }
}

/* Discovery profile details: one native fullscreen surface on mobile */
body.nf2.milota-details-open {
  overflow: hidden !important;
}

@media (max-width: 1020px) {
  body.nf2 .nf2-discover .question__cnt.question-cnt__opened,
  body.nf2 .nf2-discover__bio.question-cnt__opened {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 0 calc(24px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f7faf9 !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  body.nf2 .nf2-discover .question__cnt.question-cnt__opened::-webkit-scrollbar,
  body.nf2 .nf2-discover__bio.question-cnt__opened::-webkit-scrollbar {
    display: none;
  }

  body.nf2 .nf2-discover .question-cnt__opened .mobile-user-block {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    width: 100% !important;
    min-height: calc(64px + env(safe-area-inset-top));
    margin: 0 !important;
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--nf2-line) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    box-sizing: border-box;
  }

  body.nf2 .nf2-discover .go-back-profile {
    display: inline-flex !important;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--nf2-teal) !important;
    cursor: pointer;
  }

  body.nf2 .nf2-discover .go-back-profile span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--nf2-paper-2) !important;
  }

  body.nf2 .nf2-discover .go-back-profile span i {
    color: var(--nf2-teal) !important;
    font-size: 18px !important;
  }

  body.nf2 .nf2-discover .go-back-profile small {
    display: none !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .user-name-photo {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0;
  }

  body.nf2 .nf2-discover .question-cnt__opened .user-name-photo img {
    display: block !important;
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid var(--nf2-line);
    border-radius: 12px !important;
    background-position: center !important;
    background-size: cover !important;
    object-fit: cover;
  }

  body.nf2 .nf2-discover .question-cnt__opened .nf2-bio-name {
    min-width: 0;
    overflow: hidden;
    color: var(--nf2-ink) !important;
    font-family: var(--nf2-font) !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.nf2 .nf2-discover .question-cnt__opened .nf2-bio-meta {
    display: none !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-me__block,
  body.nf2 .nf2-discover .question-cnt__opened .heightlikeimg,
  body.nf2 .nf2-discover .question-cnt__opened .padd-photos {
    flex: 0 0 auto;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 18px 16px 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  body.nf2 .nf2-discover .question-cnt__opened .milota-profile-summary {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .milota-profile-status {
    display: inline-flex !important;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #dce9e5;
    border-radius: 8px;
    background: #edf5f2 !important;
    color: var(--nf2-teal) !important;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-me__text,
  body.nf2 .nf2-discover .question-cnt__opened .about-user__mob,
  body.nf2 .nf2-discover .question-cnt__opened .about-me__skil {
    margin: 0 0 20px !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-me__text strong,
  body.nf2 .nf2-discover .question-cnt__opened .about-me__mobile strong {
    margin: 0 0 9px !important;
    color: var(--nf2-teal) !important;
    font-family: var(--nf2-font) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-me__text p {
    color: var(--nf2-ink-soft) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-user__mob ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 8px !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-user__mob ul li {
    display: grid !important;
    align-content: center;
    gap: 3px !important;
    min-height: 60px;
    padding: 10px 12px !important;
    border: 1px solid var(--nf2-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-user__mob ul li p {
    color: var(--nf2-muted) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-user__mob ul li span {
    color: var(--nf2-ink) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-me__skil ul {
    gap: 6px !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .about-me__skil ul li {
    padding: 7px 10px !important;
    border: 1px solid #e0e9e6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--nf2-teal) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
  }

  body.nf2 .nf2-discover .question-cnt__opened .milota-profile-link {
    min-height: 46px;
    margin-top: 4px;
    border-radius: 8px;
    background: var(--nf2-teal);
    color: #fff;
  }
}

/* Profile editor */
body.nf2 .nf2-settings__todo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

body.nf2 .nf2-settings__todo span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff5e7;
  color: #7d4d00;
  font-size: 12px;
  font-weight: 600;
}

body.nf2 .nf2-settings__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--milota-line);
  border-radius: 0;
  background: transparent;
}

body.nf2 .nf2-settings__tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--milota-muted);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body.nf2 .nf2-settings__tabs a.is-active {
  background: transparent;
  color: var(--milota-green);
  border-bottom-color: var(--milota-green);
  box-shadow: none;
}

body.nf2 .nf2-settings .profile-textarea {
  position: relative;
}

body.nf2 .nf2-settings .nf2-char-count {
  display: block;
  margin-top: 5px;
  color: var(--milota-muted);
  font-size: 12px;
  text-align: right;
}

body.nf2 .nf2-settings__save-state {
  color: var(--milota-muted);
  font-size: 13px;
}

body.nf2 .nf2-settings__actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #edf1ef;
  background: #fff;
}

body.nf2 .nf2-table td.is-positive {
  color: var(--milota-green);
  font-weight: 700;
}

body.nf2 .nf2-table td.is-negative {
  color: var(--milota-danger);
  font-weight: 700;
}

@media (max-width: 760px) {
  body.nf2 .nf2-profile-view .use-profile-glob__pic,
  body.nf2 .nf2-profile-view .use-profile-glob__pic img {
    height: 520px !important;
  }

  @supports (height: 100dvh) {
    body.nf2 .nf2-profile-view .use-profile-glob__pic,
    body.nf2 .nf2-profile-view .use-profile-glob__pic img {
      height: clamp(220px, calc(100dvh - 324px), 520px) !important;
    }
  }

  body.nf2 .editor-form.is-dirty .nf2-settings__actions {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: calc(var(--milota-dock-height) + env(safe-area-inset-bottom, 0px) + 6px);
    z-index: 30;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--milota-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
  }

  body.nf2 .nf2-settings__save-state {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.nf2 .nf2-settings__actions .btn-pink {
    flex: 0 0 auto;
    width: auto;
    min-width: 112px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 1;
  }
}

/* Coin dialogs */
body.nf2 .popup.cpm-overlay {
  overscroll-behavior: contain;
}

body.nf2 .popup.cpm-overlay.active {
  padding: 12px !important;
}

body.nf2 .popup.cpm-overlay .cpm-modal {
  width: min(560px, 100%) !important;
  max-height: min(92dvh, 820px) !important;
  margin: auto !important;
  padding: 50px 20px 20px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 8px !important;
  background: #fff !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.nf2 .popup.cpm-overlay .cpm-header {
  margin-bottom: 16px !important;
  text-align: left !important;
}

body.nf2 .popup.cpm-overlay .cpm-header h2 {
  margin: 0 0 6px !important;
  color: var(--milota-ink) !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
}

body.nf2 .popup.cpm-overlay .cpm-header p,
body.nf2 .popup.cpm-overlay .cpm-balance-note {
  margin: 0 !important;
  color: var(--milota-muted) !important;
  font-size: 14px !important;
  line-height: 1.45;
}

body.nf2 .popup.cpm-overlay .cpm-section-title {
  margin-bottom: 8px !important;
  color: var(--milota-ink) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

body.nf2 .popup.cpm-overlay .cpm-card {
  box-sizing: border-box;
  position: relative;
  margin-bottom: 7px !important;
  padding: 11px 12px !important;
  border: 1px solid var(--milota-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}

body.nf2 .popup.cpm-overlay .cpm-card:hover {
  border-color: #9ab7b0 !important;
  background: #f8fbfa !important;
}

body.nf2 .popup.cpm-overlay .cpm-card.cpm-selected {
  border-color: var(--milota-green) !important;
  background: #edf5f2 !important;
  box-shadow: inset 0 0 0 1px var(--milota-green) !important;
}

body.nf2 .popup.cpm-overlay .cpm-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body.nf2 .popup.cpm-overlay .cpm-card-copy {
  min-width: 0;
}

body.nf2 .popup.cpm-overlay .cpm-coins-amount {
  color: var(--milota-ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
}

body.nf2 .popup.cpm-overlay .cpm-per-coin {
  margin-top: 2px;
  color: var(--milota-muted);
  font-size: 12px;
  line-height: 1.25;
}

body.nf2 .popup.cpm-overlay .cpm-card-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body.nf2 .popup.cpm-overlay .cpm-prices {
  min-width: 64px;
  text-align: right;
}

body.nf2 .popup.cpm-overlay .cpm-new-price {
  color: #16162e;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

body.nf2 .popup.cpm-overlay .cpm-discount-badge {
  display: inline-flex;
  min-width: 42px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid #f1c7bb;
  border-radius: 7px;
  background: #fff1ec;
  color: #c94d2b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

body.nf2 .popup.cpm-overlay .cpm-action-capacity {
  margin-top: 4px;
  color: var(--milota-green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

body.nf2 .popup.cpm-overlay .cpm-action-capacity[hidden] {
  display: none !important;
}

body.nf2 .popup.cpm-overlay .cpm-radio {
  box-sizing: border-box;
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 2px solid #9fb3ae !important;
  border-radius: 50%;
}

body.nf2 .popup.cpm-overlay .cpm-selected .cpm-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--milota-green) !important;
}

body.nf2 .popup.cpm-overlay .cpm-selected .cpm-radio {
  border-color: var(--milota-green) !important;
}

body.nf2 .popup.cpm-overlay .cpm-payment-methods {
  margin-top: 14px;
}

body.nf2 .popup.cpm-overlay .cpm-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.nf2 .popup.cpm-overlay .cpm-method {
  box-sizing: border-box;
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: #fff;
  color: var(--milota-ink);
  text-align: left;
  cursor: pointer;
}

body.nf2 .popup.cpm-overlay .cpm-method:hover {
  border-color: #9ab7b0;
  background: #f8fbfa;
}

body.nf2 .popup.cpm-overlay .cpm-method.cpm-method-selected {
  border-color: var(--milota-green);
  background: #edf5f2;
  box-shadow: inset 0 0 0 1px var(--milota-green);
}

body.nf2 .popup.cpm-overlay .cpm-method:focus-visible {
  outline: 3px solid rgba(15, 76, 72, 0.2);
  outline-offset: 2px;
}

body.nf2 .popup.cpm-overlay .cpm-method-icon {
  display: grid;
  width: 26px;
  height: 30px;
  place-items: center;
  color: var(--milota-green);
}

body.nf2 .popup.cpm-overlay .cpm-method-icon svg {
  width: 24px;
  height: 24px;
}

body.nf2 .popup.cpm-overlay .cpm-method-icon img {
  display: block;
  width: auto;
  max-width: 24px;
  height: auto;
  max-height: 28px;
}

body.nf2 .popup.cpm-overlay .cpm-method-copy {
  display: block;
  min-width: 0;
}

body.nf2 .popup.cpm-overlay .cpm-method-copy strong,
body.nf2 .popup.cpm-overlay .cpm-method-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 .popup.cpm-overlay .cpm-method-copy strong {
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

body.nf2 .popup.cpm-overlay .cpm-method-copy small {
  margin-top: 2px;
  color: var(--milota-muted);
  font-size: 11px;
  line-height: 1.2;
}

body.nf2 .popup.cpm-overlay .cpm-method-check {
  box-sizing: border-box;
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #9fb3ae;
  border-radius: 50%;
}

body.nf2 .popup.cpm-overlay .cpm-method-selected .cpm-method-check {
  border: 5px solid var(--milota-green);
  background: #fff;
}

body.nf2 .popup.cpm-overlay .cpm-qr-view[hidden] {
  display: none !important;
}

body.nf2 .popup.cpm-overlay .cpm-modal.cpm-qr-active > *:not(.cpm-close):not(.cpm-qr-view) {
  display: none !important;
}

body.nf2 .popup.cpm-overlay .cpm-qr-view {
  box-sizing: border-box;
  display: flex;
  min-height: 510px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0 0;
  text-align: center;
}

body.nf2 .popup.cpm-overlay .cpm-qr-back {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 4px;
  border: 0;
  border-radius: 7px;
  background: #eef3f1;
  color: var(--milota-green);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

body.nf2 .popup.cpm-overlay .cpm-qr-back svg {
  width: 22px;
  height: 22px;
}

body.nf2 .popup.cpm-overlay .cpm-qr-heading h3 {
  margin: 0;
  color: var(--milota-ink);
  font-size: 22px;
  line-height: 1.2;
}

body.nf2 .popup.cpm-overlay .cpm-qr-heading p {
  margin: 5px 0 14px;
  color: var(--milota-muted);
  font-size: 13px;
  line-height: 1.35;
}

body.nf2 .popup.cpm-overlay .cpm-qr-code {
  display: grid;
  width: 236px;
  height: 236px;
  place-items: center;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: #fff;
}

body.nf2 .popup.cpm-overlay .cpm-qr-code img,
body.nf2 .popup.cpm-overlay .cpm-qr-code canvas {
  display: block;
  width: 224px !important;
  height: 224px !important;
}

body.nf2 .popup.cpm-overlay .cpm-qr-loader {
  width: 32px;
  height: 32px;
  border: 3px solid #dfe8e5;
  border-top-color: var(--milota-green);
  border-radius: 50%;
  animation: cpm-qr-spin 700ms linear infinite;
}

@keyframes cpm-qr-spin {
  to { transform: rotate(360deg); }
}

body.nf2 .popup.cpm-overlay .cpm-qr-amount {
  display: flex;
  min-width: 236px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--milota-muted);
  font-size: 13px;
}

body.nf2 .popup.cpm-overlay .cpm-qr-amount strong {
  color: var(--milota-ink);
  font-size: 18px;
}

body.nf2 .popup.cpm-overlay .cpm-qr-status {
  min-height: 20px;
  margin-top: 8px;
  color: var(--milota-muted);
  font-size: 13px;
  font-weight: 700;
}

body.nf2 .popup.cpm-overlay .cpm-qr-status-success {
  color: #16804d;
}

body.nf2 .popup.cpm-overlay .cpm-qr-status-error,
body.nf2 .popup.cpm-overlay .cpm-qr-status-expired {
  color: #b43c2c;
}

body.nf2 .popup.cpm-overlay .cpm-qr-open,
body.nf2 .popup.cpm-overlay .cpm-qr-retry {
  box-sizing: border-box;
  display: inline-flex;
  min-width: 236px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--milota-green);
  color: #fff !important;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none !important;
  cursor: pointer;
}

body.nf2 .popup.cpm-overlay .cpm-qr-retry {
  background: #eef3f1;
  color: var(--milota-green) !important;
}

body.nf2 .popup.cpm-overlay .cpm-qr-open.cpm-disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.nf2 .popup.cpm-overlay .cpm-qr-open[hidden] {
  display: none !important;
}

body.nf2 .popup.cpm-overlay .cpm-qr-retry[hidden] {
  display: none !important;
}

body.nf2 .popup.cpm-overlay .cpm-guarantee,
body.nf2 .popup.cpm-overlay .cpm-trust {
  border-radius: 6px !important;
}

body.nf2 .popup.cpm-overlay .cpm-pay-icons {
  display: flex !important;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

body.nf2 .popup.cpm-overlay .cpm-pay-brand {
  display: inline-flex;
  box-sizing: border-box;
  width: 70px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--milota-line);
  border-radius: 7px;
  background: #fff;
}

body.nf2 .popup.cpm-overlay .cpm-pay-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 60px;
  max-height: 26px;
  object-fit: contain;
}

body.nf2 .popup.cpm-overlay .cpm-pay-brand--mastercard img {
  max-width: 42px;
  max-height: 26px;
}

body.nf2 .popup.cpm-overlay .cpm-pay-brand--mir img {
  max-width: 60px;
  max-height: 18px;
}

body.nf2 .popup.cpm-overlay .cpm-pay-brand--sbp img {
  max-width: 25px;
  max-height: 31px;
}

body.nf2 .popup.cpm-overlay .cpm-sticky-cta {
  position: sticky !important;
  bottom: -20px !important;
  z-index: 8;
  margin: 12px -20px 0 !important;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid var(--milota-line);
  background: rgba(255, 255, 255, 0.98) !important;
}

body.nf2 .popup.cpm-overlay .cpm-cta-btn {
  min-height: 50px;
  border-radius: 8px !important;
  background: var(--milota-green) !important;
  box-shadow: 0 10px 22px rgba(15, 76, 72, 0.2) !important;
  font-size: 16px !important;
}

body.nf2 .popup.cpm-overlay .cpm-cta-btn:hover {
  background: var(--milota-green-strong) !important;
}

body.nf2 .popup.cpm-overlay .cpm-cta-btn:focus-visible {
  outline: 3px solid rgba(15, 76, 72, 0.25);
  outline-offset: 2px;
}

body.nf2 .popup.cpm-overlay .cpm-legal {
  margin: 10px 0 0 !important;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.nf2 .popup.cpm-overlay .cpm-legal p {
  margin: 0 !important;
  color: var(--milota-muted) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

body.nf2 .popup.cpm-overlay .cpm-legal a {
  color: var(--milota-green) !important;
  text-decoration: underline;
}

@media (max-width: 480px) {
  body.nf2 .popup.cpm-overlay .cpm-card-top {
    gap: 8px;
  }

  body.nf2 .popup.cpm-overlay .cpm-card-side {
    gap: 7px;
  }

  body.nf2 .popup.cpm-overlay .cpm-coins-amount,
  body.nf2 .popup.cpm-overlay .cpm-new-price {
    font-size: 16px;
  }

  body.nf2 .popup.cpm-overlay .cpm-method {
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    gap: 6px;
    padding-inline: 8px;
  }

  body.nf2 .popup.cpm-overlay .cpm-method-check {
    width: 16px;
    height: 16px;
  }

  body.nf2 .popup.cpm-overlay .cpm-method-selected .cpm-method-check {
    border-width: 4px;
  }

  body.nf2 .popup.cpm-overlay .cpm-pay-icons {
    flex-wrap: nowrap;
    gap: 6px;
  }

  body.nf2 .popup.cpm-overlay .cpm-pay-brand {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 38px;
  }

  body.nf2 .popup.cpm-overlay .cpm-pay-brand img {
    max-width: 50px;
    max-height: 24px;
  }

  body.nf2 .popup.cpm-overlay .cpm-pay-brand--mastercard img {
    max-width: 38px;
    max-height: 24px;
  }

  body.nf2 .popup.cpm-overlay .cpm-pay-brand--mir img {
    max-width: 50px;
    max-height: 16px;
  }

  body.nf2 .popup.cpm-overlay .cpm-pay-brand--sbp img {
    max-width: 22px;
    max-height: 27px;
  }

  body.nf2 .popup.cpm-overlay.active {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  body.nf2 .popup.cpm-overlay .cpm-modal {
    width: 100% !important;
    max-height: 94dvh !important;
    margin: auto 0 0 !important;
    padding: calc(48px + env(safe-area-inset-top, 0px)) 14px 14px !important;
    border-radius: 8px 8px 0 0 !important;
  }

  body.nf2 .popup.cpm-overlay .cpm-header h2 {
    font-size: 21px !important;
  }

  body.nf2 .popup.cpm-overlay .cpm-sticky-cta {
    bottom: -14px !important;
    margin-inline: -14px !important;
    padding-inline: 14px !important;
  }

  body.nf2 .popup.cpm-overlay .cpm-qr-view {
    min-height: min(520px, calc(94dvh - 64px));
  }
}

@media (max-width: 350px) {
  body.nf2 .popup.cpm-overlay .cpm-discount-badge {
    display: none;
  }

  body.nf2 .popup.cpm-overlay .cpm-method-copy small {
    display: none;
  }
}

/* Gift picker: compact bottom sheet with explicit confirmation. */
body.nf2 #gift.gift-sheet-overlay {
  overflow: hidden !important;
  background: rgba(13, 31, 28, 0.52) !important;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease-out;
}

body.nf2 #gift.gift-sheet-overlay.gift-sheet-open,
body.nf2 #gift.gift-sheet-overlay.gift-sheet-closing {
  display: block !important;
  visibility: visible;
}

body.nf2 #gift.gift-sheet-overlay.gift-sheet-open {
  opacity: 1;
  pointer-events: auto;
}

body.nf2 #gift.gift-sheet-overlay.gift-sheet-closing {
  opacity: 0;
}

body.nf2 #gift .popup-content-wrapper {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  min-height: 100% !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  animation: none !important;
  -webkit-animation: none !important;
  transform: none !important;
  -webkit-transform: none !important;
}

body.nf2 #gift .gift-sheet {
  display: flex !important;
  flex-direction: column;
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  height: min(62dvh, 560px) !important;
  max-height: calc(100dvh - 12px) !important;
  margin: 0 auto !important;
  padding: 0 0 env(safe-area-inset-bottom, 0px) !important;
  overflow: hidden !important;
  border: 1px solid var(--milota-line) !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  background: #fff !important;
  box-shadow: 0 -18px 52px rgba(13, 31, 28, 0.2) !important;
  transform: translate3d(0, calc(100% + 16px), 0);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
}

body.nf2 #gift.gift-sheet-overlay.gift-sheet-open .gift-sheet {
  transform: translate3d(0, 0, 0);
}

/* Profile: compact private-album entry instead of a promotional tile. */
body.nf2 .nf2-profile-view .profile-private__fl {
  display: block !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
}

body.nf2 .nf2-profile-view .profile-private__box.profile-private__eye {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100% !important;
  max-width: none !important;
  min-height: 92px;
  height: auto !important;
  padding: 9px !important;
  overflow: hidden;
  border: 1px solid var(--milota-line);
  border-radius: 8px !important;
  background: #f7f9f8 !important;
  color: var(--milota-ink);
  text-decoration: none;
}

body.nf2 .nf2-profile-view .profile-private__box.profile-private__eye::before {
  content: none !important;
  display: none !important;
}

body.nf2 .nf2-profile-view .profile-private__thumb {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 7px;
  background: #dfe6e3;
}

body.nf2 .nf2-profile-view .profile-private__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.08);
}

body.nf2 .nf2-profile-view .profile-private__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 32, 29, 0.34);
  color: #fff;
  font-size: 22px;
}

body.nf2 .nf2-profile-view .profile-private__title {
  position: static !important;
  z-index: auto !important;
  display: grid !important;
  justify-content: stretch !important;
  gap: 3px;
  min-width: 0;
}

body.nf2 .nf2-profile-view .profile-private__title strong {
  overflow: hidden;
  color: var(--milota-ink) !important;
  font-size: 15px !important;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 .nf2-profile-view .profile-private__title small {
  overflow: hidden;
  color: var(--milota-muted) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 .nf2-profile-view .profile-private__request {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 7px;
  background: #e8f1ee;
  color: var(--milota-green);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body.nf2 .nf2-profile-view .profile-private__request .icon-arrow-right {
  font-size: 10px;
}

/* Chat list: clear heading hierarchy and coral unread state. */
body.nf2 .nf2-messages .milota-chat-link.has-unread {
  background: #fff8f5 !important;
  box-shadow: inset 3px 0 0 var(--milota-coral) !important;
}

body.nf2 .nf2-messages .milota-chat-link.has-unread:hover,
body.nf2 .nf2-messages .milota-chat-link.has-unread:active {
  background: #fff3ee !important;
}

body.nf2 .nf2-messages .incoming-message__number {
  box-shadow: 0 4px 12px rgba(239, 90, 53, 0.34) !important;
}

@media (max-width: 760px) {
  body.nf2 .nf2-messages .nf2-page__head,
  body.nf2 .nf2-messages .nf2-page__head.chats-tit__mobile {
    display: flex !important;
    align-items: baseline;
    gap: 8px;
    margin: 0 !important;
    padding: 9px 16px 11px !important;
  }

  body.nf2 .nf2-messages .nf2-page__head > strong {
    margin: 0;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  body.nf2 .nf2-messages .nf2-page__head .nf2-page__kicker {
    margin: 0 !important;
    color: var(--milota-muted);
    font-size: 12px !important;
    line-height: 1;
    text-transform: none;
  }
}

/* Account settings: compact native controls and a single visual hierarchy. */
body.nf2 .nf2-settings--account .profile__main,
body.nf2 .nf2-settings--wallet .profile__main {
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 auto !important;
}

body.nf2 .nf2-settings--account .nf2-settings__hero,
body.nf2 .nf2-settings--wallet .nf2-settings__hero {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 8px 14px !important;
  border-bottom: 0;
  background: transparent;
}

body.nf2 .nf2-settings--account .nf2-settings__hero-main,
body.nf2 .nf2-settings--wallet .nf2-settings__hero-main {
  gap: 10px;
}

body.nf2 .nf2-settings--account .nf2-settings__hero .profile-info__photo,
body.nf2 .nf2-settings--wallet .nf2-settings__hero .profile-info__photo {
  flex: 0 0 46px !important;
  width: 46px !important;
  max-width: 46px !important;
  height: 46px;
  margin: 0 !important;
}

body.nf2 .nf2-settings--account .nf2-settings__hero .profile-info__photo img,
body.nf2 .nf2-settings--wallet .nf2-settings__hero .profile-info__photo img {
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
}

body.nf2 .nf2-settings--account .nf2-settings__hero .profile-info__name,
body.nf2 .nf2-settings--wallet .nf2-settings__hero .profile-info__name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  margin: 0 !important;
}

body.nf2 .nf2-settings--account .nf2-settings__hero .nf2-page__kicker,
body.nf2 .nf2-settings--wallet .nf2-settings__hero .nf2-page__kicker {
  margin: 0 0 2px;
  color: var(--milota-muted);
  font-size: 11px;
  text-transform: none;
}

body.nf2 .nf2-settings--account .nf2-settings__hero h1,
body.nf2 .nf2-settings--wallet .nf2-settings__hero h1 {
  margin: 0;
  font-family: var(--nf2-font) !important;
  font-size: 20px !important;
  font-weight: 750;
  line-height: 1.15 !important;
}

body.nf2 .nf2-settings--account .nf2-settings__tabs,
body.nf2 .nf2-settings--wallet .nf2-settings__tabs {
  gap: 3px;
  margin: 2px 12px 10px;
  padding: 2px;
  border: 0;
  border-radius: 8px;
  background: #e9efec;
}

body.nf2 .nf2-settings--account .nf2-settings__tabs a,
body.nf2 .nf2-settings--wallet .nf2-settings__tabs a {
  min-height: 36px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
}

body.nf2 .nf2-settings--account .nf2-settings__tabs a.is-active,
body.nf2 .nf2-settings--wallet .nf2-settings__tabs a.is-active {
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 33, 31, 0.1);
}

body.nf2 .nf2-settings--account .newsetform_grid {
  gap: 12px;
  margin: 0 12px 24px;
}

body.nf2 .nf2-settings--account .newsetform_card {
  padding: 14px !important;
  border: 1px solid var(--milota-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.nf2 .nf2-settings--account .newsetform_card-header {
  margin-bottom: 14px;
  font-size: 15px;
}

body.nf2 .nf2-settings--account .newsetform_form-group {
  gap: 12px;
}

body.nf2 .nf2-settings--account .newsetform_field {
  display: grid;
  gap: 6px;
  color: var(--milota-muted);
  font-size: 12px;
  font-weight: 650;
}

body.nf2 .nf2-settings--account .newsetform_input-wrapper {
  display: block;
}

body.nf2 .nf2-settings--account .newsetform_input-wrapper input {
  min-height: 44px;
  padding: 9px 42px 9px 11px;
  border-radius: 7px !important;
  background: #fff !important;
  font-size: 14px;
}

body.nf2 .nf2-settings--account .newsetform_btn {
  min-height: 40px;
  border-radius: 7px;
}

body.nf2 .nf2-settings--account .newsetform_card-row {
  min-height: 44px;
}

body.nf2 .nf2-settings--account .newsetform_card-row--top {
  align-items: flex-start;
  gap: 12px;
}

body.nf2 .nf2-settings--account .newsetform_card-left {
  gap: 11px;
}

body.nf2 .nf2-settings--account .newsetform_card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.nf2 .nf2-settings--account .newsetform_card-copy strong {
  color: var(--milota-ink);
  font-size: 14px;
  line-height: 1.25;
}

body.nf2 .nf2-settings--account .newsetform_card-copy small {
  color: var(--milota-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

body.nf2 .nf2-settings--account .nf2-settings__legal-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--milota-line);
}

body.nf2 .nf2-settings--account .nf2-settings__legal-details summary {
  color: var(--milota-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

body.nf2 .nf2-settings--account .nf2-settings__legal {
  margin-top: 8px;
  color: var(--milota-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.nf2 .nf2-settings--account .nf2-settings__legal p {
  margin: 0 0 8px;
}

body.nf2 .nf2-settings--account .nf2-settings__legal p:last-child {
  margin-bottom: 0;
}

body.nf2 .nf2-settings--account .newsetform_card--danger {
  border-color: #f2d2ca !important;
  background: #fffafa !important;
}

body.nf2 .nf2-settings--account .newsetform_card--danger .newsetform_btn-destructive {
  background: transparent !important;
  color: var(--milota-danger) !important;
}

body.nf2 .nf2-settings--wallet .nf2-settings__section--table {
  margin: 0 12px 24px;
  padding: 14px !important;
  border: 1px solid var(--milota-line) !important;
  border-radius: 8px !important;
}

body.nf2 .nf2-settings--wallet .nf2-balance-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 7px;
  background: #edf5f2;
}

body.nf2 .nf2-settings--wallet .nf2-balance-summary span {
  color: var(--milota-muted);
  font-size: 13px;
  font-weight: 600;
}

body.nf2 .nf2-settings--wallet .nf2-balance-summary strong {
  color: var(--milota-green);
  font-size: 22px;
  line-height: 1;
}

body.nf2 .nf2-settings--wallet .nf2-balance-summary small {
  color: var(--milota-green);
  font-size: 12px;
  font-weight: 700;
}

body.nf2 .nf2-settings--wallet .nf2-settings__section-heading {
  margin-top: 16px;
}

body.nf2 .nf2-settings--wallet .nf2-settings__title {
  margin: 0 0 3px;
  font-family: var(--nf2-font);
  font-size: 17px;
}

body.nf2 .nf2-settings--wallet .nf2-settings__hint {
  margin: 0 0 10px;
  font-size: 12px;
}

body.nf2 .nf2-settings--wallet .nf2-empty {
  min-height: 0 !important;
  padding: 24px 16px !important;
  border: 1px dashed var(--milota-line);
  border-radius: 7px;
  background: #f8faf9;
}

body.nf2 .nf2-settings--wallet .nf2-empty strong {
  font-size: 16px;
}

body.nf2 .nf2-settings--wallet .nf2-empty p {
  max-width: 360px;
  margin: 5px auto 0;
  color: var(--milota-muted);
  font-size: 13px;
  line-height: 1.4;
}

body.nf2 .nf2-settings--wallet .nf2-wallet-empty__topup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 220px);
  min-height: 42px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  appearance: none;
  background: var(--milota-green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 76, 72, 0.18);
  font-family: var(--nf2-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

body.nf2 .nf2-settings--wallet .nf2-wallet-empty__topup .icons {
  font-size: 16px;
}

@media (hover: hover) {
  body.nf2 .nf2-settings--wallet .nf2-wallet-empty__topup:hover {
    background: var(--milota-green-strong);
    box-shadow: 0 10px 22px rgba(15, 76, 72, 0.22);
    transform: translateY(-1px);
  }
}

body.nf2 .nf2-settings--wallet .nf2-wallet-empty__topup:active {
  box-shadow: 0 5px 12px rgba(15, 76, 72, 0.16);
  transform: scale(0.985);
}

body.nf2 .nf2-settings--wallet .nf2-wallet-empty__topup:focus-visible {
  outline: 3px solid rgba(15, 76, 72, 0.2);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  body.nf2 .nf2-settings--account .nf2-settings__hero,
  body.nf2 .nf2-settings--wallet .nf2-settings__hero {
    min-height: 56px;
    padding: 7px 12px !important;
  }

  body.nf2 .nf2-settings--account .nf2-settings__hero .profile-info__photo,
  body.nf2 .nf2-settings--wallet .nf2-settings__hero .profile-info__photo {
    flex-basis: 42px !important;
    width: 42px !important;
    max-width: 42px !important;
    height: 42px;
  }

  body.nf2 .nf2-settings--account .nf2-settings__hero .profile-info__photo img,
  body.nf2 .nf2-settings--wallet .nf2-settings__hero .profile-info__photo img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
  }

  body.nf2 .nf2-settings--account .nf2-settings__hero h1,
  body.nf2 .nf2-settings--wallet .nf2-settings__hero h1 {
    font-size: 18px !important;
  }

  body.nf2 .nf2-settings--account .newsetform_grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.nf2 .nf2-settings--account .newsetform_right-column {
    gap: 8px;
  }

  body.nf2 .nf2-settings--wallet .nf2-table-wrap {
    overflow: visible;
  }

  body.nf2 .nf2-settings--wallet .nf2-table,
  body.nf2 .nf2-settings--wallet .nf2-table tbody {
    display: block;
    width: 100%;
  }

  body.nf2 .nf2-settings--wallet .nf2-table thead {
    display: none;
  }

  body.nf2 .nf2-settings--wallet .nf2-table tbody {
    display: grid;
    gap: 8px;
  }

  body.nf2 .nf2-settings--wallet .nf2-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 11px 12px;
    border: 1px solid var(--milota-line);
    border-radius: 7px;
  }

  body.nf2 .nf2-settings--wallet .nf2-table td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 12px;
  }

  body.nf2 .nf2-settings--wallet .nf2-table td:nth-child(1) {
    color: var(--milota-muted);
  }

  body.nf2 .nf2-settings--wallet .nf2-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  body.nf2 .nf2-settings--wallet .nf2-table td:nth-child(3) {
    grid-column: 1 / -1;
    color: var(--milota-ink);
    font-size: 13px;
    font-weight: 650;
  }
}

@media (max-width: 370px) {
  body.nf2 .nf2-profile-view .profile-private__box.profile-private__eye {
    grid-template-columns: 64px minmax(0, 1fr) 34px;
  }

  body.nf2 .nf2-profile-view .profile-private__thumb {
    width: 64px;
    height: 64px;
  }

  body.nf2 .nf2-profile-view .profile-private__request {
    width: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
}

/* Registration: compact, labelled and conversion-focused */
body.nf2--guest .nf2-registration {
  padding: 0;
  overscroll-behavior: contain;
  background: rgba(7, 25, 23, 0.72);
}

body.nf2--guest.nf2-registration-open {
  overflow: hidden;
}

body.nf2--guest .nf2-registration .modal-content {
  min-height: 100%;
  padding: 24px;
  align-items: center;
  animation: none !important;
}

body.nf2--guest .nf2-registration .modal-ragistor {
  width: min(940px, 100%) !important;
  max-width: 940px;
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(219, 227, 224, 0.9);
  border-radius: 16px !important;
  background: var(--milota-surface);
  box-shadow: 0 24px 64px rgba(4, 25, 22, 0.26);
}

body.nf2--guest .nf2-registration .modal-rag__info {
  display: block;
  width: 58% !important;
  max-height: calc(100dvh - 48px);
  padding: 30px 34px 24px !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px 0 0 16px !important;
  background: #fff;
  scrollbar-gutter: stable;
}

body.nf2--guest .nf2-registration .modal-rag__photo {
  display: flex !important;
  width: 42%;
  min-height: 100%;
  background: #dfe8e4;
}

body.nf2--guest .nf2-registration .modal-rag__photo img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 16px 16px 0;
}

body.nf2--guest .nf2-registration .close {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: none;
  border: 1px solid var(--milota-line);
  border-radius: 50%;
  background: #f2f5f3;
  box-shadow: none;
}

body.nf2--guest .nf2-registration .close:hover {
  background: #e8eeeb;
}

body.nf2--guest .nf2-registration .close::before,
body.nf2--guest .nf2-registration .close::after {
  width: 15px;
  height: 2px;
  background: #43514d;
}

body.nf2--guest .nf2-registration .close::before {
  transform: translateY(-50%) rotate(45deg);
}

body.nf2--guest .nf2-registration .close::after {
  transform: translateY(-50%) rotate(-45deg);
}

body.nf2--guest .nf2-registration .modal-rag__tit {
  width: 100%;
  padding-right: 44px;
}

body.nf2--guest .nf2-registration .modal-rag__tit small,
body.nf2--guest .nf2-registration .modal-rag__tit h2,
body.nf2--guest .nf2-registration .modal-rag__tit p {
  text-align: left;
}

body.nf2--guest .nf2-registration .modal-rag__tit small {
  color: var(--milota-coral);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

body.nf2--guest .nf2-registration .modal-rag__tit h2 {
  margin: 5px 0 0;
  color: var(--milota-ink);
  font-family: "Sora", sans-serif !important;
  font-size: 30px !important;
  font-weight: 700;
  line-height: 1.15 !important;
}

body.nf2--guest .nf2-registration .modal-rag__tit p {
  margin: 5px 0 0;
  color: var(--milota-muted);
  font-size: 14px;
  line-height: 1.4;
}

body.nf2--guest .nf2-registration .nf2-registration__server-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #f5c2bd;
  border-radius: 8px;
  background: #fff1ef;
  color: var(--milota-danger);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

body.nf2--guest .nf2-registration .modal__form {
  margin-top: 18px;
}

body.nf2--guest .nf2-registration .nf2-registration__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 12px;
}

body.nf2--guest .nf2-registration .modal-inp,
body.nf2--guest .nf2-registration .nf2-registration__gender {
  min-width: 0;
  margin: 0;
}

body.nf2--guest .nf2-registration .modal-inp > label,
body.nf2--guest .nf2-registration .nf2-registration__gender legend {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  color: #35423f;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body.nf2--guest .nf2-registration .modal-inp > input,
body.nf2--guest .nf2-registration .nf2-registration__password > input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: #fff;
  color: var(--milota-ink);
  font-family: "Sora", sans-serif;
  font-size: 15px;
  line-height: 1;
  appearance: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.nf2--guest .nf2-registration .modal-inp > input::placeholder,
body.nf2--guest .nf2-registration .nf2-registration__password > input::placeholder {
  color: #929d99;
  opacity: 1;
}

body.nf2--guest .nf2-registration .modal-inp > input:hover,
body.nf2--guest .nf2-registration .nf2-registration__password > input:hover {
  border-color: #9caeaa;
}

body.nf2--guest .nf2-registration .modal-inp > input:focus,
body.nf2--guest .nf2-registration .nf2-registration__password > input:focus {
  border-color: var(--milota-blue);
  box-shadow: 0 0 0 3px rgba(49, 107, 140, 0.13);
  outline: 0 !important;
}

body.nf2--guest .nf2-registration [aria-invalid="true"] {
  border-color: #d65045 !important;
  background: #fffafa !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08) !important;
}

body.nf2--guest .nf2-registration .nf2-registration__gender {
  border: 0;
}

body.nf2--guest .nf2-registration .nf2-registration__segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  height: 48px;
  padding: 4px;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: #f2f5f3;
}

body.nf2--guest .nf2-registration .nf2-registration__segments label {
  min-width: 0;
  cursor: pointer;
}

body.nf2--guest .nf2-registration .nf2-registration__segments input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body.nf2--guest .nf2-registration .nf2-registration__segments span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--milota-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body.nf2--guest .nf2-registration .nf2-registration__segments input:checked + span {
  border-color: #dbe3e0;
  background: #fff;
  color: var(--milota-green);
  box-shadow: 0 1px 4px rgba(16, 38, 33, 0.09);
}

body.nf2--guest .nf2-registration .nf2-registration__segments input:focus-visible + span {
  outline: 3px solid rgba(49, 107, 140, 0.34);
  outline-offset: 1px;
}

body.nf2--guest .nf2-registration .nf2-registration__gender.is-invalid .nf2-registration__segments {
  border-color: #d65045;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

body.nf2--guest .nf2-registration .nf2-registration__hint,
body.nf2--guest .nf2-registration .nf2-registration__error {
  display: block;
  min-height: 15px;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
}

body.nf2--guest .nf2-registration .nf2-registration__hint {
  color: #798681;
}

body.nf2--guest .nf2-registration .nf2-registration__error {
  display: none;
  color: var(--milota-danger);
  font-weight: 600;
}

body.nf2--guest .nf2-registration .nf2-registration__error:not(:empty) {
  display: block;
}

body.nf2--guest .nf2-registration .nf2-registration__field-meta {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

body.nf2--guest .nf2-registration .nf2-registration__suggestion {
  min-height: 26px;
  margin: 3px 0 0 auto;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--milota-blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}

body.nf2--guest .nf2-registration .nf2-registration__password {
  position: relative;
}

body.nf2--guest .nf2-registration .nf2-registration__password > input {
  padding-right: 84px;
}

body.nf2--guest .nf2-registration .nf2-registration__password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 68px;
  min-height: 40px;
  padding: 0 7px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--milota-green);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

body.nf2--guest .nf2-registration .nf2-registration__password-toggle:hover {
  background: #edf3f0;
}

body.nf2--guest .nf2-registration .nf2-registration__consents {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

body.nf2--guest .nf2-registration .nf2-registration__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0;
  color: #5e6a66;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

body.nf2--guest .nf2-registration .nf2-registration__consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 5px;
  accent-color: var(--milota-green);
  cursor: pointer;
}

body.nf2--guest .nf2-registration .nf2-registration__consent a {
  color: var(--milota-green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

body.nf2--guest .nf2-registration .nf2-registration__consent.is-invalid {
  color: var(--milota-danger);
}

body.nf2--guest .nf2-registration .nf2-registration__submit {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px !important;
  background: var(--milota-green) !important;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 76, 72, 0.18) !important;
  cursor: pointer;
}

body.nf2--guest .nf2-registration .nf2-registration__submit:hover {
  background: var(--milota-green-strong) !important;
}

body.nf2--guest .nf2-registration .nf2-registration__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.nf2--guest .nf2-registration .nf2-registration__reassurance {
  margin: 7px 0 0;
  color: #798681;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

body.nf2--guest .nf2-registration .nf2-registration__alternative {
  margin-top: 12px;
}

body.nf2--guest .nf2-registration .headingline {
  margin: 8px 0 10px;
}

body.nf2--guest .nf2-registration .headingline::after {
  left: 0;
  width: 100%;
  border-color: var(--milota-line);
}

body.nf2--guest .nf2-registration .headingline span {
  padding: 0 9px;
  color: #89948f;
  font-size: 11px;
  text-transform: lowercase;
}

body.nf2--guest .nf2-registration form.steps .socbutton {
  display: grid;
  gap: 8px;
  margin: 0;
  overflow: visible;
}

body.nf2--guest .nf2-registration form.steps .socbutton .nf2-registration__oauth {
  display: flex !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #cfd9d5 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--milota-ink) !important;
  font-family: "Sora", sans-serif;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none;
}

body.nf2--guest .nf2-registration form.steps .socbutton .nf2-registration__oauth:hover {
  border-color: #9caeaa !important;
  background: #f8faf9 !important;
}

body.nf2--guest .nf2-registration .nf2-registration__oauth-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

body.nf2--guest .nf2-registration .nf2-registration__login {
  display: block;
  min-height: 34px;
  margin: 10px auto 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--milota-muted);
  font-size: 12px;
  cursor: pointer;
}

body.nf2--guest .nf2-registration .nf2-registration__login strong {
  color: var(--milota-green);
}

@media (max-width: 700px) {
  body.nf2--guest .nf2-registration {
    overflow: hidden;
  }

  body.nf2--guest .nf2-registration .modal-content {
    min-height: 100%;
    padding: 0;
    align-items: flex-end;
  }

  body.nf2--guest .nf2-registration .modal-ragistor {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    max-height: min(96dvh, var(--milota-viewport-height, 100dvh));
    overflow: hidden !important;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0 !important;
    animation: nf2RegistrationSheetIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  body.nf2--guest .nf2-registration .modal-rag__info {
    width: 100% !important;
    max-height: min(96dvh, var(--milota-viewport-height, 100dvh));
    padding: 22px 18px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 20px 20px 0 0 !important;
    scrollbar-gutter: auto;
  }

  body.nf2--guest .nf2-registration .modal-rag__photo {
    display: none !important;
  }

  body.nf2--guest .nf2-registration .close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  body.nf2--guest .nf2-registration .modal-rag__tit {
    padding-right: 42px;
  }

  body.nf2--guest .nf2-registration .modal-rag__tit small {
    font-size: 12px;
  }

  body.nf2--guest .nf2-registration .modal-rag__tit h2 {
    font-size: 25px !important;
  }

  body.nf2--guest .nf2-registration .modal__form {
    margin-top: 15px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__fields {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body.nf2--guest .nf2-registration .modal-inp > input,
  body.nf2--guest .nf2-registration .nf2-registration__password > input,
  body.nf2--guest .nf2-registration .nf2-registration__segments {
    height: 50px;
  }

  body.nf2--guest .nf2-registration .modal-inp > input,
  body.nf2--guest .nf2-registration .nf2-registration__password > input {
    font-size: 16px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__consents {
    margin-top: 12px;
  }
}

@media (max-width: 360px) {
  body.nf2--guest .nf2-registration .modal-rag__info {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body.nf2--guest .nf2-registration .nf2-registration__field-meta {
    display: block;
  }

  body.nf2--guest .nf2-registration .nf2-registration__suggestion {
    margin-left: 0;
  }
}

@keyframes nf2RegistrationSheetIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.nf2 #gift.gift-sheet-overlay,
  body.nf2 #gift .gift-sheet {
    transition-duration: 1ms !important;
  }
}

/* Android PWA install, notification permission and update surfaces. */
body.pwa-sheet-open {
  overflow: hidden !important;
  touch-action: none;
}

.pwa-sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 120000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(15, 29, 25, 0);
  pointer-events: none;
  transition: background-color 180ms ease;
}

.pwa-sheet-layer.is-open {
  background: rgba(15, 29, 25, 0.48);
  pointer-events: auto;
}

.pwa-sheet {
  position: relative;
  width: min(100%, 480px);
  padding: 20px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  border: 1px solid #d8e1dd;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  color: #17231f;
  box-shadow: 0 -10px 32px rgba(18, 41, 34, 0.16);
  transform: translateY(104%);
  transition: transform 180ms ease;
}

.pwa-sheet-layer.is-open .pwa-sheet {
  transform: translateY(0);
}

.pwa-sheet__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef3f1;
  color: #43534d;
  font: 400 30px/40px system-ui, sans-serif;
  cursor: pointer;
}

.pwa-sheet__heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding-right: 42px;
}

.pwa-sheet__icon {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.pwa-sheet__heading h2 {
  margin: 0;
  color: #17231f;
  font: 700 21px/1.2 Sora, system-ui, sans-serif;
  letter-spacing: 0;
}

.pwa-sheet__heading p {
  margin: 5px 0 0;
  color: #6d7a75;
  font: 500 14px/1.35 Sora, system-ui, sans-serif;
}

.pwa-sheet__primary,
.pwa-sheet__secondary {
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
  font: 700 15px/1.2 Sora, system-ui, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.pwa-sheet__primary {
  margin-top: 18px;
  border: 1px solid #0f4c48;
  background: #0f4c48;
  color: #fff;
}

.pwa-sheet__primary:disabled {
  border-color: #78938d;
  background: #78938d;
  cursor: wait;
}

.pwa-sheet__secondary {
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: #52635d;
}

.pwa-sheet__check {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  margin-top: 8px;
  color: #5f6f69;
  font: 500 14px/1.3 Sora, system-ui, sans-serif;
  cursor: pointer;
}

.pwa-sheet__check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0f4c48;
}

.pwa-sheet__status {
  min-height: 0;
  margin: 10px 0 -8px;
  color: #b33f27;
  font: 500 13px/1.35 Sora, system-ui, sans-serif;
}

.pwa-sheet__status:empty {
  display: none;
}

.pwa-update {
  position: fixed;
  z-index: 110000;
  right: 12px;
  bottom: calc(var(--milota-dock-height, 76px) + env(safe-area-inset-bottom, 0px) + 14px);
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 8px 8px 14px;
  border: 1px solid #d8e1dd;
  border-radius: 8px;
  background: #fff;
  color: #283832;
  box-shadow: 0 8px 24px rgba(18, 41, 34, 0.16);
  font: 600 14px/1.2 Sora, system-ui, sans-serif;
}

.pwa-update button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #0f4c48;
  color: #fff;
  font: 700 13px/1 Sora, system-ui, sans-serif;
  cursor: pointer;
}

@media (min-width: 600px) {
  .pwa-sheet-layer {
    padding: 12px;
  }

  .pwa-sheet {
    border-bottom: 1px solid #d8e1dd;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-sheet-layer,
  .pwa-sheet {
    transition: none;
  }
}

/* Actionable in-page notifications share the existing global counter poll. */
body.nf2--auth .notifications-popup {
  position: fixed !important;
  z-index: 1400 !important;
  top: calc(84px + env(safe-area-inset-top)) !important;
  right: 16px !important;
  bottom: auto !important;
  display: flex;
  width: min(410px, calc(100vw - 32px));
  height: auto !important;
  max-height: calc(100dvh - 112px);
  flex-direction: column;
  gap: 8px;
  overflow: visible !important;
  border-radius: 0 !important;
  pointer-events: none;
  cursor: default;
}

body.nf2--auth .nf2-inpage-notice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  overflow: hidden;
  width: 100%;
  min-height: 82px;
  background: #fff;
  border: 1px solid rgba(12, 77, 71, 0.16);
  border-left: 4px solid var(--nf2-teal, #0c5b54);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(20, 42, 39, 0.15);
  opacity: 0;
  transform: translate3d(18px, 0, 0);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
}

body.nf2--auth .nf2-inpage-notice--like {
  border-left-color: var(--nf2-coral, #e45f3c);
}

body.nf2--auth .nf2-inpage-notice.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body.nf2--auth .nf2-inpage-notice.is-leaving {
  opacity: 0;
  transform: translate3d(12px, 0, 0);
}

body.nf2--auth .nf2-inpage-notice__main {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 12px 4px 12px 12px;
  color: #172522;
  text-decoration: none !important;
}

body.nf2--auth .nf2-inpage-notice__avatar {
  width: 50px !important;
  height: 50px !important;
  object-fit: cover;
  border: 1px solid rgba(12, 77, 71, 0.12);
  border-radius: 50% !important;
  background: #edf3f1;
}

body.nf2--auth .nf2-inpage-notice__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

body.nf2--auth .nf2-inpage-notice__kind {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #667470;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

body.nf2--auth .nf2-inpage-notice__kind .icons {
  color: var(--nf2-teal, #0c5b54);
  font-size: 14px;
}

body.nf2--auth .nf2-inpage-notice--like .nf2-inpage-notice__kind .icons {
  color: var(--nf2-coral, #e45f3c);
}

body.nf2--auth .nf2-inpage-notice__name {
  overflow: hidden;
  color: #172522;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2--auth .nf2-inpage-notice__text {
  overflow: hidden;
  color: #667470;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2--auth .nf2-inpage-notice__action {
  color: var(--nf2-teal, #0c5b54);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

body.nf2--auth .nf2-inpage-notice__action::after {
  content: "›";
  margin-left: 4px;
  font-size: 18px;
  line-height: 0;
  vertical-align: -1px;
}

body.nf2--auth .nf2-inpage-notice__close {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  margin-top: 5px;
  padding: 0;
  place-items: center;
  color: #76827f;
  font: 400 25px/1 Arial, sans-serif;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

body.nf2--auth .nf2-inpage-notice__main:hover,
body.nf2--auth .nf2-inpage-notice__main:focus-visible {
  background: #f7faf9;
}

body.nf2--auth .nf2-inpage-notice__close:hover,
body.nf2--auth .nf2-inpage-notice__close:focus-visible {
  color: #172522;
  background: #edf3f1;
  outline: none;
}

@media (max-width: 640px) {
  body.nf2--auth .notifications-popup {
    top: calc(72px + env(safe-area-inset-top)) !important;
    right: 10px !important;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 154px);
  }

  body.nf2--auth .nf2-inpage-notice {
    min-height: 76px;
    transform: translate3d(0, -12px, 0);
  }

  body.nf2--auth .nf2-inpage-notice.is-visible {
    transform: translate3d(0, 0, 0);
  }

  body.nf2--auth .nf2-inpage-notice.is-leaving {
    transform: translate3d(0, -8px, 0);
  }

  body.nf2--auth .nf2-inpage-notice__main {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 10px 2px 10px 10px;
  }

  body.nf2--auth .nf2-inpage-notice__avatar {
    width: 46px !important;
    height: 46px !important;
  }

  body.nf2--auth .nf2-inpage-notice__action {
    grid-column: 2;
    margin-top: 2px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nf2--auth .nf2-inpage-notice {
    transition: none;
  }
}

body.nf2 #gift .gift-sheet__handle {
  flex: 0 0 auto;
  width: 38px;
  height: 4px;
  margin: 7px auto 2px;
  border-radius: 999px;
  background: #c7cfcd;
}

body.nf2 #gift .gift-sheet__header {
  position: relative;
  flex: 0 0 auto;
  min-height: 74px;
  padding: 10px 66px 10px 18px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--milota-line);
  background: #fff;
}

body.nf2 #gift .gift-sheet__header h3 {
  margin: 0 0 4px !important;
  color: var(--milota-ink) !important;
  font-family: var(--nf2-display) !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

body.nf2 #gift .gift-sheet__header p {
  max-width: 520px;
  margin: 0 !important;
  color: var(--milota-muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body.nf2 #gift .gift-sheet > .modal-close {
  top: 15px !important;
  right: 15px !important;
  width: 40px !important;
  height: 40px !important;
  background: #eef2f1 !important;
}

body.nf2 #gift .gift-sheet > .modal-close::before,
body.nf2 #gift .gift-sheet > .modal-close::after {
  background-color: var(--milota-ink) !important;
}

body.nf2 #gift .gift-sheet__body.communicate__block {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 12px 16px 8px !important;
  overflow: hidden;
  border-radius: 0 !important;
  background: #fff !important;
}

body.nf2 #gift .gift-sheet__price {
  flex: 0 0 auto;
  margin: 0 0 10px !important;
  color: var(--milota-muted) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

body.nf2 #gift .gift-sheet__price strong {
  color: var(--milota-ink) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

body.nf2 #gift .giftslist {
  display: grid !important;
  flex: 1 1 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  justify-content: stretch !important;
  min-height: 0;
  margin: 0 !important;
  padding: 2px 2px 10px !important;
  gap: 8px !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.nf2 #gift .gift-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  aspect-ratio: 1;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: var(--milota-paper);
  cursor: pointer;
}

body.nf2 #gift .gift-option:hover,
body.nf2 #gift .gift-option:focus-visible {
  border-color: #8ba9a2;
  background: #f5f9f7;
}

body.nf2 #gift .gift-option.is-selected {
  border-color: var(--milota-green);
  background: #edf5f2;
  box-shadow: inset 0 0 0 2px var(--milota-green);
}

body.nf2 #gift .gift-option .emoji,
body.nf2 #gift .gift-option img {
  display: block;
  width: 56px !important;
  max-width: 100%;
  height: 56px !important;
  max-height: 100%;
  margin: 0 !important;
  object-fit: contain;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

body.nf2 #gift .paymentformtext {
  flex: 0 0 auto;
  margin-top: 6px;
  color: var(--milota-muted);
  font-size: 11px;
  line-height: 1.35;
}

body.nf2 #gift .gift-sheet__footer {
  flex: 0 0 auto;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--milota-line);
  background: #fff;
}

body.nf2 #gift .gift-sheet__error {
  margin: 0 0 7px !important;
  color: var(--milota-danger) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.nf2 #gift .gift-sheet__error:empty {
  display: none;
}

body.nf2 #gift .gift-sheet__send {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--milota-coral);
  color: #fff;
  font-family: var(--nf2-font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

body.nf2 #gift .gift-sheet__send:disabled {
  background: #d8dedc;
  color: #7d8784;
  cursor: default;
}

@media (min-width: 560px) {
  body.nf2 #gift .giftslist {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Guest/login: keep the form above the fold on phones */
@media (max-width: 700px) {
  body.nf2--guest .modal-ragistor {
    display: block !important;
    width: min(100%, 430px) !important;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: 8px !important;
  }

  body.nf2--guest .modal-rag__info {
    width: 100% !important;
    padding: 48px 18px 20px !important;
  }

  body.nf2--guest .modal-rag__photo {
    display: none !important;
  }

  body.nf2--guest .modal-rag__tit h2 {
    font-size: 25px !important;
  }
}

body.nf2--guest .nf2-foot__links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

/* Legal documents inside the authenticated application shell. */
body.nf2 .nf2-legal {
  overflow-x: clip;
  padding-bottom: calc(var(--milota-dock-height) + env(safe-area-inset-bottom, 0px) + 24px);
}

body.nf2 .nf2-legal .nf2-page__layout {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

body.nf2 .nf2-legal .settings-form__fix,
body.nf2 .nf2-legal .settings__form {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body.nf2 .nf2-legal .settings__form {
  margin: 0 !important;
  padding: 32px !important;
  color: var(--nf2-ink) !important;
  overflow: hidden;
}

body.nf2 .nf2-legal .settings__form h1,
body.nf2 .nf2-legal .settings__form h2,
body.nf2 .nf2-legal .settings__form h3,
body.nf2 .nf2-legal .settings__form h4 {
  position: static !important;
  width: auto !important;
  max-width: 100%;
  margin: 30px 0 12px !important;
  padding: 0 !important;
  color: var(--nf2-teal) !important;
  font-family: var(--nf2-display) !important;
  font-weight: 700 !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  opacity: 1 !important;
  transform: none !important;
  overflow-wrap: anywhere;
}

body.nf2 .nf2-legal .settings__form h1,
body.nf2 .nf2-legal .settings__form h2 {
  font-size: 34px !important;
}

body.nf2 .nf2-legal .settings__form h3 {
  font-size: 24px !important;
}

body.nf2 .nf2-legal .settings__form h4 {
  font-size: 19px !important;
}

body.nf2 .nf2-legal .settings__form > h1:first-child,
body.nf2 .nf2-legal .settings__form > h2:first-child {
  margin-top: 0 !important;
}

body.nf2 .nf2-legal .settings__form p,
body.nf2 .nf2-legal .settings__form li {
  margin: 0 0 12px;
  color: var(--nf2-ink) !important;
  font-size: 16px !important;
  line-height: 1.58 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}

body.nf2 .nf2-legal .settings__form ul,
body.nf2 .nf2-legal .settings__form ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

body.nf2 .nf2-legal .settings__form a {
  color: var(--nf2-teal) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.nf2 .nf2-legal .settings__form figure {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--nf2-line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

body.nf2 .nf2-legal .settings__form table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--nf2-surface);
  color: var(--nf2-ink);
  font-size: 14px;
  line-height: 1.45;
}

body.nf2 .nf2-legal .settings__form th,
body.nf2 .nf2-legal .settings__form td {
  padding: 11px 12px;
  border: 1px solid var(--nf2-line);
  text-align: left;
  vertical-align: top;
}

body.nf2 .nf2-legal .settings__form th {
  background: rgba(15, 76, 72, 0.08);
  color: var(--nf2-teal);
  font-weight: 700;
}

@media (max-width: 640px) {
  body.nf2 .nf2-legal {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body.nf2 .nf2-legal .nf2-page__head {
    margin-bottom: 10px;
  }

  body.nf2 .nf2-legal .settings__form {
    padding: 18px !important;
  }

  body.nf2 .nf2-legal .settings__form h1,
  body.nf2 .nf2-legal .settings__form h2 {
    font-size: 25px !important;
  }

  body.nf2 .nf2-legal .settings__form h3 {
    font-size: 21px !important;
  }

  body.nf2 .nf2-legal .settings__form p,
  body.nf2 .nf2-legal .settings__form li {
    font-size: 15px !important;
    line-height: 1.52 !important;
  }
}

/* Yandex injects this control only while its counter checker is active. */
body.nf2 .__ymDebuggerOpener {
  display: none !important;
}

@media (max-width: 760px) {
  body.nf2 .nf2-messages .messages__main {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.nf2 .nf2-messages .nf2-page__head {
    margin: 0 !important;
    padding: 4px 0 14px;
  }

  body.nf2 .nf2-messages .nf2-page__head .nf2-page__kicker {
    margin-bottom: 2px;
    font-size: 11px;
  }

  body.nf2 .nf2-messages .nf2-page__head > strong {
    font-size: 30px;
    line-height: 1.05;
  }

  body.nf2 .nf2-messages .place-comment__flex,
  body.nf2 .nf2-messages .nf2-messages__split {
    gap: 0 !important;
    min-height: 0 !important;
  }

  body.nf2 .nf2-messages .chats-comment-hrefs {
    flex: 1 1 auto;
    align-self: center;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--milota-surface) !important;
  }

  body.nf2 .nf2-messages .place-comment__flex:not(:has(.comment-min-info)) .chats-comment-hrefs {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  body.nf2 .nf2-messages .comment-hrefs,
  body.nf2 .nf2-messages #chats {
    width: 100%;
    max-height: none !important;
    overflow: visible !important;
  }

  body.nf2 .nf2-messages #chats > li,
  body.nf2 .nf2-messages #chats .click-comment,
  body.nf2 .nf2-messages .comment-hrefs ul li {
    position: relative;
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.nf2 .nf2-messages #chats > li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 80px;
    height: 1px;
    background: var(--milota-line);
    pointer-events: none;
  }

  body.nf2 .nf2-messages .milota-chat-link {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 74px;
    padding: 11px 16px;
    border: 0;
  }

  body.nf2 .nf2-messages .milota-chat-link:hover,
  body.nf2 .nf2-messages .milota-chat-link:active,
  body.nf2 .nf2-messages .milota-chat-link.is-active,
  body.nf2 .nf2-messages .milota-chat-link.active-comment {
    background: #edf5f2;
  }

  body.nf2 .nf2-messages .comment-place__user {
    min-width: 0;
    padding-right: 0 !important;
  }

  body.nf2 .nf2-messages .milota-chat-name-row h3 {
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  body.nf2 .nf2-messages .milota-chat-time {
    font-size: 12px;
  }

  body.nf2 .nf2-messages .incoming-message,
  body.nf2 .nf2-messages .form-you-message {
    font-size: 14px !important;
    line-height: 1.25;
  }

  body.nf2 .nf2-messages #chats > li.nf2-empty {
    padding: 24px 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nf2 *,
  body.nf2 *::before,
  body.nf2 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Guest authentication: compact sheets that stay above the iOS keyboard */
body.nf2--guest.nf2-login-open,
body.nf2--guest.nf2-registration-open,
body.nf2--guest.nf2-recovery-open {
  overflow: hidden;
}

body.nf2--guest .nf2-registration__mobile-progress,
body.nf2--guest .nf2-registration__step-next {
  display: none;
}

body.nf2--guest .nf2-login {
  padding: 0;
  overscroll-behavior: contain;
  background: rgba(7, 25, 23, 0.72);
}

body.nf2--guest .nf2-login .modal-content {
  min-height: 100%;
  padding: 24px;
  align-items: center;
  animation: none !important;
}

body.nf2--guest .nf2-login .modal-ragistor {
  display: flex !important;
  width: min(840px, 100%) !important;
  max-width: 840px;
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(219, 227, 224, 0.9);
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 24px 64px rgba(4, 25, 22, 0.26);
}

body.nf2--guest .nf2-login .modal-rag__info {
  display: block;
  width: 56% !important;
  max-height: calc(100dvh - 48px);
  padding: 34px 36px 28px !important;
  overflow-y: auto;
  border-radius: 16px 0 0 16px !important;
  background: #fff;
}

body.nf2--guest .nf2-login .modal-rag__photo {
  display: flex !important;
  width: 44%;
  min-height: 100%;
  background: #dfe8e4;
}

body.nf2--guest .nf2-login .modal-rag__photo img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 16px 16px 0;
}

body.nf2--guest .nf2-login .close {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: none;
  border: 1px solid var(--milota-line);
  border-radius: 50%;
  background: #f2f5f3;
  box-shadow: none;
}

body.nf2--guest .nf2-login .close::before,
body.nf2--guest .nf2-login .close::after {
  width: 15px;
  height: 2px;
  background: #43514d;
}

body.nf2--guest .nf2-login .close::before {
  transform: translateY(-50%) rotate(45deg);
}

body.nf2--guest .nf2-login .close::after {
  transform: translateY(-50%) rotate(-45deg);
}

body.nf2--guest .nf2-login .modal-rag__tit {
  width: 100%;
  padding-right: 44px;
}

body.nf2--guest .nf2-login .modal-rag__tit small,
body.nf2--guest .nf2-login .modal-rag__tit h2,
body.nf2--guest .nf2-login .modal-rag__tit p {
  text-align: left;
}

body.nf2--guest .nf2-login .modal-rag__tit small {
  color: var(--milota-coral);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

body.nf2--guest .nf2-login .modal-rag__tit h2 {
  margin: 5px 0 0;
  color: var(--milota-ink);
  font-family: "Sora", sans-serif !important;
  font-size: 30px !important;
  font-weight: 700;
  line-height: 1.15 !important;
}

body.nf2--guest .nf2-login .modal-rag__tit p {
  margin: 5px 0 0;
  color: var(--milota-muted);
  font-size: 14px;
  line-height: 1.4;
}

body.nf2--guest .nf2-login .nf2-login__server-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #f5c2bd;
  border-radius: 8px;
  background: #fff1ef;
  color: var(--milota-danger);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

body.nf2--guest .nf2-login .modal__form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

body.nf2--guest .nf2-login .modal-inp {
  min-width: 0;
  margin: 0;
}

body.nf2--guest .nf2-login .modal-inp > label {
  display: block;
  margin: 0 0 6px;
  color: #35423f;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body.nf2--guest .nf2-login .modal-inp > input,
body.nf2--guest .nf2-login .nf2-login__password > input {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  border: 1px solid #cfd9d5;
  border-radius: 8px;
  background: #fff;
  color: var(--milota-ink);
  font-family: "Sora", sans-serif;
  font-size: 15px;
  line-height: 1;
  appearance: none;
}

body.nf2--guest .nf2-login .modal-inp > input:focus,
body.nf2--guest .nf2-login .nf2-login__password > input:focus {
  border-color: var(--milota-blue);
  box-shadow: 0 0 0 3px rgba(49, 107, 140, 0.13);
  outline: 0 !important;
}

body.nf2--guest .nf2-login [aria-invalid="true"] {
  border-color: #d65045 !important;
  background: #fffafa !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08) !important;
}

body.nf2--guest .nf2-login .nf2-login__password {
  position: relative;
}

body.nf2--guest .nf2-login .nf2-login__password > input {
  padding-right: 84px;
}

body.nf2--guest .nf2-login .nf2-login__password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 68px;
  min-height: 40px;
  padding: 0 7px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--milota-green);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

body.nf2--guest .nf2-login .nf2-login__error {
  display: none;
  min-height: 15px;
  margin-top: 4px;
  color: var(--milota-danger);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

body.nf2--guest .nf2-login .nf2-login__error:not(:empty) {
  display: block;
}

body.nf2--guest .nf2-login .nf2-login__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

body.nf2--guest .nf2-login .nf2-login__actions a {
  min-height: 30px;
  padding: 5px 0;
  color: var(--milota-green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

body.nf2--guest .nf2-login .nf2-login__submit {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 8px !important;
  background: var(--milota-green) !important;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 76, 72, 0.18) !important;
}

body.nf2--guest .nf2-login .nf2-login__submit:disabled {
  opacity: 0.72;
}

body.nf2--guest .nf2-login .nf2-login__alternative {
  margin-top: 12px;
}

body.nf2--guest .nf2-login .headingline {
  margin: 8px 0 10px;
}

body.nf2--guest .nf2-login .headingline::after {
  left: 0;
  width: 100%;
  border-color: var(--milota-line);
}

body.nf2--guest .nf2-login .headingline span {
  padding: 0 9px;
  color: #89948f;
  font-size: 11px;
  text-transform: lowercase;
}

body.nf2--guest .nf2-login form.steps .socbutton {
  display: grid;
  gap: 8px;
  margin: 0;
  overflow: visible;
}

body.nf2--guest .nf2-login form.steps .socbutton .nf2-login__oauth {
  display: flex !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #cfd9d5 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--milota-ink) !important;
  font-family: "Sora", sans-serif;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

body.nf2--guest .nf2-login .nf2-login__oauth-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

body.nf2--guest .nf2-login .nf2-login__register {
  display: block;
  min-height: 34px;
  margin: 10px auto 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--milota-muted);
  font-size: 12px;
  cursor: pointer;
}

body.nf2--guest .nf2-login .nf2-login__register strong {
  color: var(--milota-green);
}

body.nf2--guest .nf2-recovery .nf2-recovery__success {
  display: grid;
  margin: 22px 0 0;
  padding: 20px 18px;
  justify-items: center;
  gap: 6px;
  border: 1px solid #d6e5df;
  border-radius: 8px;
  background: #f2f7f5;
  color: var(--milota-ink);
  text-align: center;
}

body.nf2--guest .nf2-recovery .nf2-recovery__success-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin-bottom: 3px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--milota-green);
  color: #fff;
}

body.nf2--guest .nf2-recovery .nf2-recovery__success-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.nf2--guest .nf2-recovery .nf2-recovery__success strong {
  font-family: "Sora", sans-serif;
  font-size: 17px;
  line-height: 1.25;
}

body.nf2--guest .nf2-recovery .nf2-recovery__success p {
  margin: 0;
  color: var(--milota-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.nf2--guest .nf2-recovery .nf2-recovery__success p span {
  color: var(--milota-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.nf2--guest .nf2-recovery .nf2-recovery__success + .nf2-recovery__submit {
  margin-top: 14px;
}

body.nf2--guest .nf2-registration .nf2-registration__password > input,
body.nf2--guest .nf2-login .nf2-login__password > input {
  padding-right: 52px;
}

body.nf2--guest .nf2-registration .nf2-registration__password-toggle,
body.nf2--guest .nf2-login .nf2-login__password-toggle {
  width: 40px;
  min-width: 40px;
  padding: 0;
  color: #52615d;
  font-size: 18px;
}

body.nf2--guest .nf2-registration .nf2-registration__password-toggle::after,
body.nf2--guest .nf2-login .nf2-login__password-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(-45deg);
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
}

body.nf2--guest .nf2-registration .nf2-registration__password-toggle.is-visible::after,
body.nf2--guest .nf2-login .nf2-login__password-toggle.is-visible::after {
  opacity: 1;
}

@media (min-width: 701px) {
  body.nf2--guest .nf2-registration .modal-content,
  body.nf2--guest .nf2-login .modal-content {
    min-height: 100dvh !important;
    padding: 0 !important;
    align-items: stretch !important;
  }

  body.nf2--guest .nf2-registration .modal-ragistor,
  body.nf2--guest .nf2-login .modal-ragistor {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
  }

  body.nf2--guest .nf2-registration .modal-rag__info,
  body.nf2--guest .nf2-login .modal-rag__info {
    display: flex;
    height: 100dvh;
    max-height: none;
    flex-direction: column;
    justify-content: safe center;
    align-items: stretch;
    overflow-y: auto;
    border-radius: 0 !important;
  }

  body.nf2--guest .nf2-registration .modal-rag__photo,
  body.nf2--guest .nf2-login .modal-rag__photo {
    height: 100dvh;
  }

  body.nf2--guest .nf2-registration .modal-rag__photo img,
  body.nf2--guest .nf2-login .modal-rag__photo img {
    height: 100%;
    border-radius: 0;
  }

  body.nf2--guest .nf2-registration .modal-rag__info > *,
  body.nf2--guest .nf2-login .modal-rag__info > * {
    width: min(620px, 100%);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  body.nf2--guest .nf2-registration,
  body.nf2--guest .nf2-login {
    position: fixed !important;
    inset: var(--milota-viewport-top, 0px) 0 auto !important;
    width: 100% !important;
    height: var(--milota-viewport-height, 100dvh) !important;
    max-height: var(--milota-viewport-height, 100dvh) !important;
    overflow: hidden !important;
  }

  body.nf2--guest .nf2-registration .modal-content,
  body.nf2--guest .nf2-login .modal-content {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: center !important;
  }

  body.nf2--guest .nf2-registration .modal-ragistor,
  body.nf2--guest .nf2-login .modal-ragistor {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: 100% !important;
    overflow: hidden !important;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    animation: nf2RegistrationSheetIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  body.nf2--guest .nf2-registration .modal-rag__info,
  body.nf2--guest .nf2-login .modal-rag__info {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #fff;
    scrollbar-gutter: auto;
  }

  body.nf2--guest .nf2-registration .modal-rag__photo,
  body.nf2--guest .nf2-login .modal-rag__photo {
    display: none !important;
  }

  body.nf2--guest .nf2-registration .close,
  body.nf2--guest .nf2-login .close {
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: 12px;
    width: 38px;
    height: 38px;
  }

  body.nf2--guest .nf2-registration .modal-rag__tit,
  body.nf2--guest .nf2-login .modal-rag__tit {
    padding-right: 42px;
  }

  body.nf2--guest .nf2-registration .modal-rag__tit h2,
  body.nf2--guest .nf2-login .modal-rag__tit h2 {
    font-size: 24px !important;
  }

  body.nf2--guest .nf2-registration .modal-rag__tit p,
  body.nf2--guest .nf2-login .modal-rag__tit p {
    font-size: 13px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__mobile-progress {
    position: relative;
    display: block;
    height: 26px;
    margin-top: 10px;
    padding-top: 1px;
    text-align: center;
  }

  body.nf2--guest .nf2-registration .nf2-registration__step-label {
    color: var(--milota-muted);
    font-size: 11px;
    font-weight: 700;
  }

  body.nf2--guest .nf2-registration .nf2-registration__step-back {
    position: absolute;
    top: -5px;
    left: 0;
    min-height: 28px;
    padding: 3px 6px 3px 0;
    border: 0;
    background: transparent;
    color: var(--milota-green);
    font-size: 11px;
    font-weight: 700;
  }

  body.nf2--guest .nf2-registration .nf2-registration__step-back[hidden] {
    display: none !important;
  }

  body.nf2--guest .nf2-registration .nf2-registration__progress-track {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: #e4ebe8;
  }

  body.nf2--guest .nf2-registration .nf2-registration__progress-track i {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: var(--milota-green);
    transition: width 0.18s ease;
  }

  body.nf2--guest .nf2-registration .modal__form {
    margin-top: 10px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__form[data-registration-step="1"] [data-registration-step-field="2"],
  body.nf2--guest .nf2-registration .nf2-registration__form[data-registration-step="2"] [data-registration-step-field="1"] {
    display: none !important;
  }

  body.nf2--guest .nf2-registration .nf2-registration__step-next {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px !important;
    background: var(--milota-green) !important;
    color: #fff;
    font-family: "Sora", sans-serif;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 76, 72, 0.16) !important;
  }

  body.nf2--guest .nf2-registration.is-step-two .nf2-registration__alternative,
  body.nf2--guest .nf2-registration.is-step-two .nf2-registration__login {
    display: none !important;
  }

  body.nf2--guest .nf2-registration .modal-inp > input,
  body.nf2--guest .nf2-registration .nf2-registration__password > input,
  body.nf2--guest .nf2-registration .nf2-registration__segments,
  body.nf2--guest .nf2-login .modal-inp > input,
  body.nf2--guest .nf2-login .nf2-login__password > input {
    height: 48px;
    font-size: 16px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__consents {
    gap: 6px;
    margin-top: 10px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__consent {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 7px;
    font-size: 11px;
    line-height: 1.3;
  }

  body.nf2--guest .nf2-registration .nf2-registration__consent input {
    width: 18px;
    height: 18px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__submit {
    min-height: 48px;
    margin-top: 10px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__alternative,
  body.nf2--guest .nf2-login .nf2-login__alternative {
    margin-top: 8px;
  }

  body.nf2--guest .nf2-registration .headingline,
  body.nf2--guest .nf2-login .headingline {
    margin: 5px 0 7px;
  }

  body.nf2--guest .nf2-registration form.steps .socbutton .nf2-registration__oauth,
  body.nf2--guest .nf2-login form.steps .socbutton .nf2-login__oauth {
    min-height: 44px !important;
  }

  body.nf2--guest .nf2-registration .nf2-registration__login,
  body.nf2--guest .nf2-login .nf2-login__register {
    min-height: 30px;
    margin-top: 5px;
  }

  body.nf2--guest .nf2-login .modal__form {
    gap: 9px;
    margin-top: 14px;
  }

  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .modal-rag__tit,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-login .modal-rag__tit,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .nf2-registration__mobile-progress,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .nf2-registration__consents,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .nf2-registration__submit,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .nf2-registration__reassurance,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .nf2-registration__alternative,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .nf2-registration__login,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-login .nf2-login__alternative,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-login .nf2-login__register {
    display: none !important;
  }

  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .modal-rag__info,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-login .modal-rag__info {
    padding: 10px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .modal__form,
  body.nf2--guest.nf2-auth-keyboard-open .nf2-login .modal__form {
    margin-top: 0;
  }

  body.nf2--guest.nf2-auth-keyboard-open .nf2-registration .nf2-registration__hint {
    display: none;
  }
}

@media (max-width: 700px) and (max-height: 640px) {
  body.nf2--guest .nf2-registration .modal-rag__info,
  body.nf2--guest .nf2-login .modal-rag__info {
    padding-top: 12px !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.nf2--guest .nf2-registration .modal-rag__tit small,
  body.nf2--guest .nf2-login .modal-rag__tit small,
  body.nf2--guest .nf2-registration .modal-rag__tit p,
  body.nf2--guest .nf2-login .modal-rag__tit p,
  body.nf2--guest .nf2-registration .nf2-registration__hint {
    display: none;
  }

  body.nf2--guest .nf2-registration .modal-rag__tit h2,
  body.nf2--guest .nf2-login .modal-rag__tit h2 {
    margin-top: 0;
    font-size: 21px !important;
  }

  body.nf2--guest .nf2-registration .nf2-registration__mobile-progress {
    height: 22px;
    margin-top: 5px;
  }

  body.nf2--guest .nf2-registration .modal-inp > label,
  body.nf2--guest .nf2-registration .nf2-registration__gender legend,
  body.nf2--guest .nf2-login .modal-inp > label {
    margin-bottom: 3px;
    font-size: 11px;
  }

  body.nf2--guest .nf2-registration .modal-inp > input,
  body.nf2--guest .nf2-registration .nf2-registration__password > input,
  body.nf2--guest .nf2-registration .nf2-registration__segments,
  body.nf2--guest .nf2-login .modal-inp > input,
  body.nf2--guest .nf2-login .nf2-login__password > input {
    height: 44px;
  }

  body.nf2--guest .nf2-registration .nf2-registration__consent {
    font-size: 10px;
    line-height: 1.2;
  }

  body.nf2--guest .nf2-registration .nf2-registration__step-next,
  body.nf2--guest .nf2-registration .nf2-registration__submit,
  body.nf2--guest .nf2-login .nf2-login__submit,
  body.nf2--guest .nf2-registration form.steps .socbutton .nf2-registration__oauth,
  body.nf2--guest .nf2-login form.steps .socbutton .nf2-login__oauth {
    min-height: 44px !important;
  }
}

/* Fast onboarding: city and age */
body.nf2--auth:has(.nf2-onboard) {
  padding-bottom: 20px !important;
}

body.nf2 .nf2-onboard {
  width: min(100% - 24px, 620px);
  max-width: none;
  margin: 18px auto 24px;
  padding: 0;
}

body.nf2 .nf2-onboard__card {
  overflow: hidden;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: var(--milota-surface);
  box-shadow: 0 12px 34px rgba(23, 33, 31, 0.1);
}

body.nf2 .nf2-onboard__head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--milota-line);
  background: var(--milota-surface);
}

body.nf2 .nf2-onboard__kicker {
  margin-bottom: 4px;
  color: var(--milota-coral);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

body.nf2 .nf2-onboard__head h1 {
  margin: 0 0 14px;
  color: var(--milota-ink) !important;
  font-family: "Sora", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

body.nf2 .nf2-onboard__meter {
  height: 4px;
  border-radius: 4px;
  background: #e6ece9;
}

body.nf2 .nf2-onboard__meter i {
  background: var(--milota-green);
}

body.nf2 .nf2-onboard__body {
  padding: 22px;
}

body.nf2 .nf2-onboard .nf2-step {
  gap: 16px;
}

body.nf2 .nf2-onboard .nf2-step__lead {
  margin: 0;
  color: var(--milota-muted);
  font-size: 15px;
  line-height: 1.45;
}

body.nf2 .nf2-field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--milota-ink);
  font-size: 13px;
  font-weight: 700;
}

body.nf2 .nf2-select-control,
body.nf2 .nf2-city-search {
  position: relative;
}

body.nf2 .nf2-select-control > i,
body.nf2 .nf2-city-search > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  color: var(--milota-green);
  font-size: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}

body.nf2 .nf2-onboard__body .nf2-select-control select,
body.nf2 .nf2-onboard__body .nf2-city-search input {
  min-height: 52px;
  margin: 0;
  border: 1px solid var(--milota-line) !important;
  border-radius: 8px !important;
  background: var(--milota-paper) !important;
  color: var(--milota-ink);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  box-shadow: none !important;
}

body.nf2 .nf2-onboard__body .nf2-select-control select {
  padding: 0 40px 0 44px;
}

body.nf2 .nf2-onboard__body .nf2-city-search input {
  padding: 0 48px 0 44px;
  -webkit-appearance: none;
  appearance: none;
}

body.nf2 .nf2-onboard__body .nf2-city-search input::-webkit-search-cancel-button {
  display: none;
}

body.nf2 .nf2-onboard__body .nf2-city-search input:focus,
body.nf2 .nf2-onboard__body .nf2-select-control select:focus {
  border-color: var(--milota-green) !important;
  background: var(--milota-surface) !important;
  box-shadow: 0 0 0 3px rgba(15, 76, 72, 0.12) !important;
}

body.nf2 .nf2-city-search__clear {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--milota-muted);
  cursor: pointer;
}

body.nf2 .nf2-city-help,
body.nf2 .nf2-age-help {
  display: block;
  margin-top: 7px;
  color: var(--milota-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.nf2 .nf2-city-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

body.nf2 .nf2-city-popular button,
body.nf2 .nf2-age-presets button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: var(--milota-surface);
  color: var(--milota-green);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.nf2 .nf2-city-popular button:hover,
body.nf2 .nf2-age-presets button:hover,
body.nf2 .nf2-age-presets button.is-active {
  border-color: var(--milota-green);
  background: #edf4f1;
}

body.nf2 .nf2-city-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 12px;
  color: var(--milota-muted);
  font-size: 13px;
}

body.nf2 .nf2-city-status[hidden] {
  display: none;
}

body.nf2 .nf2-city-status > i {
  width: 18px;
  height: 18px;
  border: 2px solid #ccd7d3;
  border-top-color: var(--milota-green);
  border-radius: 50%;
}

body.nf2 .nf2-city-status.is-loading > i {
  animation: nf2-city-spin 0.75s linear infinite;
}

body.nf2 .nf2-city-status button {
  min-height: 36px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: var(--milota-surface);
  color: var(--milota-green);
  font-weight: 700;
}

@keyframes nf2-city-spin {
  to { transform: rotate(360deg); }
}

body.nf2 .nf2-onboard__body .nf2-city-results {
  max-height: 320px;
  margin: 12px 0 0;
  overflow-y: auto;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: var(--milota-surface);
  color: var(--milota-ink);
  text-align: left;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.nf2 .nf2-onboard__body .nf2-city-results[hidden] {
  display: none;
}

body.nf2 .nf2-city-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 9px 13px;
  border: 0;
  border-bottom: 1px solid var(--milota-line);
  border-radius: 0;
  background: transparent;
  color: var(--milota-ink);
  text-align: left;
  cursor: pointer;
}

body.nf2 .nf2-city-result:last-child {
  border-bottom: 0;
}

body.nf2 .nf2-city-result:hover,
body.nf2 .nf2-city-result:focus-visible {
  background: #f3f7f5;
}

body.nf2 .nf2-city-result > .fa-map-marker-alt {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #edf4f1;
  color: var(--milota-green);
}

body.nf2 .nf2-city-result__text {
  min-width: 0;
}

body.nf2 .nf2-city-result__text strong,
body.nf2 .nf2-city-result__text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 .nf2-city-result__text strong {
  font-size: 14px;
  line-height: 1.35;
}

body.nf2 .nf2-city-result__text small {
  margin-top: 2px;
  color: var(--milota-muted);
  font-size: 12px;
}

body.nf2 .nf2-city-result__arrow {
  color: #9ba8a4;
  font-size: 12px;
}

body.nf2 .nf2-city-results__empty {
  margin: 0;
  padding: 18px;
  color: var(--milota-muted);
  font-size: 13px;
  text-align: center;
}

body.nf2 .nf2-city-form.is-submitting {
  pointer-events: none;
}

body.nf2 .nf2-age-error {
  padding: 10px 12px;
  border-left: 3px solid var(--milota-danger);
  border-radius: 4px;
  background: #fff2f0;
  color: var(--milota-danger);
  font-size: 13px;
}

body.nf2 .nf2-age-control {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: stretch;
  gap: 8px;
}

body.nf2 .nf2-age-control__adjust {
  min-height: 92px;
  padding: 0;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: var(--milota-paper);
  color: var(--milota-green);
  font-size: 30px;
  font-weight: 500;
  cursor: pointer;
}

body.nf2 .nf2-age-control__adjust:disabled {
  opacity: 0.35;
  cursor: default;
}

body.nf2 .nf2-age-control__value {
  display: grid;
  grid-template-columns: minmax(76px, auto) auto;
  align-items: baseline;
  justify-content: center;
  min-height: 92px;
  padding: 8px 18px;
  border: 1px solid var(--milota-line);
  border-radius: 8px;
  background: var(--milota-surface);
}

body.nf2 .nf2-onboard__body .nf2-age-control__value input {
  width: 92px;
  min-height: 74px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--milota-ink);
  font-family: "Sora", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  box-shadow: none !important;
  -moz-appearance: textfield;
}

body.nf2 .nf2-age-control__value input::-webkit-inner-spin-button,
body.nf2 .nf2-age-control__value input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body.nf2 .nf2-age-control__value small {
  margin-left: 8px;
  color: var(--milota-muted);
  font-size: 14px;
  font-weight: 600;
}

body.nf2 .nf2-age-presets {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

body.nf2 .nf2-age-presets::-webkit-scrollbar {
  display: none;
}

body.nf2 .nf2-age-presets button {
  flex: 0 0 44px;
  min-width: 44px;
  padding-inline: 8px;
}

body.nf2 .nf2-age-help {
  margin: 0;
}

body.nf2 .nf2-age-help i {
  margin-right: 5px;
  color: var(--milota-green);
}

body.nf2 .nf2-onboard__body .nf2-age-submit {
  min-height: 52px;
  margin-top: 0;
  border-radius: 8px !important;
  box-shadow: 0 8px 18px rgba(15, 76, 72, 0.16) !important;
}

body.nf2 .nf2-onboard__body .nf2-age-submit:disabled {
  background: #dce3e0 !important;
  color: #87928e !important;
  box-shadow: none !important;
  cursor: default;
}

body.nf2 .nf2-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  body.nf2--auth:has(.nf2-onboard) {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.nf2 .nf2-onboard {
    width: 100%;
    margin: 0;
  }

  body.nf2 .nf2-onboard__card {
    border-inline: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.nf2 .nf2-onboard__head {
    padding: 15px 16px 13px;
  }

  body.nf2 .nf2-onboard__head h1 {
    margin-bottom: 11px;
    font-size: 26px;
  }

  body.nf2 .nf2-onboard__body {
    padding: 17px 16px 18px;
  }

  body.nf2 .nf2-onboard .nf2-step {
    gap: 13px;
  }

  body.nf2 .nf2-city-popular {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  body.nf2 .nf2-city-popular::-webkit-scrollbar {
    display: none;
  }

  body.nf2 .nf2-city-popular button {
    flex: 0 0 auto;
  }

  body.nf2 .nf2-onboard__body .nf2-city-results {
    max-height: 240px;
    max-height: clamp(160px, 38dvh, 320px);
  }

  body.nf2 .nf2-age-control {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  body.nf2 .nf2-age-control__adjust,
  body.nf2 .nf2-age-control__value {
    min-height: 84px;
  }

  body.nf2 .nf2-onboard__body .nf2-age-control__value input {
    min-height: 66px;
    font-size: 38px;
  }
}

@media (max-width: 370px), (max-height: 650px) {
  body.nf2 .nf2-onboard__head {
    padding-top: 11px;
    padding-bottom: 10px;
  }

  body.nf2 .nf2-onboard__kicker,
  body.nf2 .nf2-city-help {
    display: none;
  }

  body.nf2 .nf2-onboard__head h1 {
    margin-bottom: 9px;
    font-size: 23px;
  }

  body.nf2 .nf2-onboard__body {
    padding-top: 13px;
    padding-bottom: 14px;
  }

  body.nf2 .nf2-age-control__adjust,
  body.nf2 .nf2-age-control__value {
    min-height: 74px;
  }

  body.nf2 .nf2-onboard__body .nf2-age-control__value input {
    min-height: 58px;
    font-size: 34px;
  }
}

/* Match moment */
body.nf2 #match.nf2-match {
  overflow: hidden !important;
  overscroll-behavior: contain;
  background: rgba(7, 31, 29, 0.72) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.nf2 #match.nf2-match > .nf2-match__stage {
  width: 100% !important;
  min-height: 100% !important;
  min-height: 100dvh !important;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: none !important;
  box-sizing: border-box !important;
}

body.nf2 #match.nf2-match .nf2-match__card {
  position: relative !important;
  width: min(420px, 100%) !important;
  max-width: 420px !important;
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  margin: 0 !important;
  padding: 30px 26px 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 22px !important;
  background: #fffdfb !important;
  box-shadow: 0 24px 64px rgba(4, 24, 22, 0.3) !important;
  color: var(--nf2-ink) !important;
  font-family: var(--nf2-font) !important;
  text-align: center;
  isolation: isolate;
  box-sizing: border-box !important;
  animation: nf2-match-card-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.nf2 #match.nf2-match .nf2-match__card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, #ef5b45 0 25%, #f2b84b 25% 50%, #0f5c55 50% 75%, #6658d3 75% 100%);
}

body.nf2 #match.nf2-match .nf2-match__close,
body.nf2 #match.nf2-match .modal-questionnaires > .nf2-match__close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff0bd !important;
  color: #343a38 !important;
  transform: none !important;
  cursor: pointer;
  z-index: 10 !important;
}

body.nf2 #match.nf2-match .nf2-match__close::before,
body.nf2 #match.nf2-match .nf2-match__close::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 16px !important;
  height: 2px !important;
  margin: 0 !important;
  border-radius: 2px !important;
  background: currentColor !important;
  transform-origin: center !important;
}

body.nf2 #match.nf2-match .nf2-match__close::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

body.nf2 #match.nf2-match .nf2-match__close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

body.nf2 #match.nf2-match .nf2-match__close:hover,
body.nf2 #match.nf2-match .nf2-match__close:focus-visible {
  background: #ffe58f !important;
  outline: 3px solid rgba(242, 184, 75, 0.28);
  outline-offset: 2px;
}

body.nf2 #match.nf2-match .nf2-match__header {
  position: relative;
  z-index: 2;
  padding: 4px 42px 0;
}

body.nf2 #match.nf2-match .nf2-match__eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--nf2-coral);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.nf2 #match.nf2-match h1,
body.nf2 #match.nf2-match #nf2-match-title {
  margin: 0 !important;
  color: var(--nf2-ink) !important;
  font-family: var(--nf2-font) !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

body.nf2 #match.nf2-match .nf2-match__header p {
  margin: 7px auto 0;
  max-width: 330px;
  color: #64716e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

body.nf2 #match.nf2-match .nf2-match__header .name {
  color: #e84f3a;
  font-weight: 700;
}

body.nf2 #match.nf2-match .nf2-match__portraits {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin: 24px auto 0;
}

body.nf2 #match.nf2-match .nf2-match__portrait {
  position: relative;
  width: 136px;
  height: 136px;
  flex: 0 0 136px;
  overflow: hidden;
  border: 5px solid #6658d3;
  border-radius: 50%;
  background: #e8efec;
  box-shadow: 0 14px 30px rgba(31, 40, 38, 0.16);
}

body.nf2 #match.nf2-match .nf2-match__portrait--self {
  margin-right: -16px;
  animation: nf2-match-left-in 500ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.nf2 #match.nf2-match .nf2-match__portrait--person {
  margin-left: -16px;
  border-color: #ef5b45;
  animation: nf2-match-right-in 500ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.nf2 #match.nf2-match .nf2-match__portrait img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  border-radius: 0 !important;
}

body.nf2 #match.nf2-match .nf2-match__initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6658d3;
  color: #fff;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
}

body.nf2 #match.nf2-match .nf2-match__portrait-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  min-width: 0;
  padding: 6px 9px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(64, 52, 151, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nf2 #match.nf2-match .nf2-match__portrait--person .nf2-match__portrait-label {
  background: rgba(214, 66, 47, 0.9);
}

body.nf2 #match.nf2-match .nf2-match__heart {
  position: relative;
  z-index: 4;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #f2b84b;
  color: #d94536;
  box-shadow: 0 10px 24px rgba(210, 145, 28, 0.28);
  animation: nf2-match-heart-in 560ms 180ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

body.nf2 #match.nf2-match .nf2-match__heart .icons {
  font-size: 29px;
  line-height: 1;
}

body.nf2 #match.nf2-match .nf2-match__prompt {
  margin: 18px 0 16px;
  color: var(--nf2-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

body.nf2 #match.nf2-match .nf2-match__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 10px;
  margin-top: 22px;
}

body.nf2 #match.nf2-match .nf2-match__primary,
body.nf2 #match.nf2-match .nf2-match__secondary {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-family: var(--nf2-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.nf2 #match.nf2-match .nf2-match__primary {
  background: var(--nf2-teal) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(15, 76, 72, 0.2);
}

body.nf2 #match.nf2-match .nf2-match__primary .icons {
  font-size: 20px;
}

body.nf2 #match.nf2-match .nf2-match__secondary {
  position: relative;
  width: 56px;
  min-height: 54px;
  padding: 0;
  background: #6658d3 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(102, 88, 211, 0.2);
}

body.nf2 #match.nf2-match .nf2-match__secondary > .icons:first-child {
  font-size: 21px;
}

body.nf2 #match.nf2-match .nf2-match__secondary-arrow {
  position: absolute;
  right: 16px;
  font-size: 14px;
  color: #84928e;
}

body.nf2 #match.nf2-match .nf2-match__primary:hover,
body.nf2 #match.nf2-match .nf2-match__primary:focus-visible {
  background: var(--nf2-teal-2) !important;
  transform: translateY(-1px);
}

body.nf2 #match.nf2-match .nf2-match__secondary:hover,
body.nf2 #match.nf2-match .nf2-match__secondary:focus-visible {
  background: #5547c0 !important;
  transform: translateY(-1px);
}

body.nf2 #match.nf2-match .nf2-match__primary:focus-visible,
body.nf2 #match.nf2-match .nf2-match__secondary:focus-visible {
  outline: 3px solid rgba(228, 87, 46, 0.24);
  outline-offset: 2px;
}

body.nf2 #match.nf2-match .nf2-match__spark {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  background: #ef5b45;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: nf2-match-spark-in 500ms 260ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

body.nf2 #match.nf2-match .nf2-match__spark--one {
  top: 88px;
  left: 28px;
  width: 18px;
  height: 18px;
}

body.nf2 #match.nf2-match .nf2-match__spark--two {
  top: 150px;
  right: 34px;
  width: 11px;
  height: 11px;
  background: #f2b84b;
  animation-delay: 340ms;
}

body.nf2 #match.nf2-match .nf2-match__spark--three {
  top: 244px;
  left: 32px;
  width: 10px;
  height: 10px;
  background: #6658d3;
  animation-delay: 400ms;
}

body.nf2 #match.nf2-match .nf2-match__spark--four {
  top: 294px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: #0f8b7c;
  animation-delay: 460ms;
}

@keyframes nf2-match-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nf2-match-left-in {
  from { opacity: 0; transform: translateX(-24px) rotate(-5deg); }
  to { opacity: 1; transform: translateX(0) rotate(-2deg); }
}

@keyframes nf2-match-right-in {
  from { opacity: 0; transform: translateX(24px) rotate(5deg); }
  to { opacity: 1; transform: translateX(0) rotate(2deg); }
}

@keyframes nf2-match-heart-in {
  from { opacity: 0; transform: scale(0.45); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes nf2-match-spark-in {
  from { opacity: 0; transform: scale(0.4) rotate(0); }
  to { opacity: 1; transform: scale(1) rotate(90deg); }
}

@media (max-width: 520px) {
  body.nf2 #match.nf2-match > .nf2-match__stage {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  body.nf2 #match.nf2-match .nf2-match__card {
    width: 100% !important;
    padding: 26px 18px 18px !important;
    border-radius: 20px !important;
  }

  body.nf2 #match.nf2-match .nf2-match__header {
    padding-right: 32px;
    padding-left: 32px;
  }

  body.nf2 #match.nf2-match h1,
  body.nf2 #match.nf2-match #nf2-match-title {
    font-size: 30px !important;
  }

  body.nf2 #match.nf2-match .nf2-match__header p {
    font-size: 14px;
  }

  body.nf2 #match.nf2-match .nf2-match__portraits {
    min-height: 124px;
    margin-top: 20px;
  }

  body.nf2 #match.nf2-match .nf2-match__portrait {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
    border-width: 4px;
  }

  body.nf2 #match.nf2-match .nf2-match__heart {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-width: 4px;
  }

  body.nf2 #match.nf2-match .nf2-match__heart .icons {
    font-size: 25px;
  }
}

@media (max-width: 360px), (max-height: 620px) {
  body.nf2 #match.nf2-match .nf2-match__card {
    padding-top: 20px !important;
  }

  body.nf2 #match.nf2-match .nf2-match__eyebrow {
    margin-bottom: 5px;
    font-size: 11px;
  }

  body.nf2 #match.nf2-match h1,
  body.nf2 #match.nf2-match #nf2-match-title {
    font-size: 26px !important;
  }

  body.nf2 #match.nf2-match .nf2-match__header p {
    margin-top: 7px;
  }

  body.nf2 #match.nf2-match .nf2-match__portraits {
    min-height: 108px;
    margin-top: 12px;
  }

  body.nf2 #match.nf2-match .nf2-match__portrait {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }

  body.nf2 #match.nf2-match .nf2-match__heart {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  body.nf2 #match.nf2-match .nf2-match__prompt {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  body.nf2 #match.nf2-match .nf2-match__primary {
    min-height: 50px;
  }

  body.nf2 #match.nf2-match .nf2-match__secondary {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nf2 #match.nf2-match .nf2-match__card,
  body.nf2 #match.nf2-match .nf2-match__portrait,
  body.nf2 #match.nf2-match .nf2-match__heart,
  body.nf2 #match.nf2-match .nf2-match__spark {
    animation: none !important;
  }
}

/* Unified tactile response for static and dynamically injected controls. */
body.nf2 .milota-pressable {
  cursor: pointer;
  touch-action: manipulation;
  transform-origin: center;
  transition:
    transform 150ms cubic-bezier(0.2, 0.9, 0.25, 1.35),
    filter 120ms ease,
    opacity 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease !important;
}

body.nf2 .milota-pressable--control,
body.nf2 .milota-pressable--surface {
  -webkit-user-select: none;
  user-select: none;
}

body.nf2 .milota-pressable--control.milota-is-pressed {
  transform: translateY(1px) scale(0.965) !important;
  filter: brightness(0.92) saturate(0.96) !important;
}

body.nf2 .milota-pressable--surface.milota-is-pressed {
  transform: translateY(1px) scale(0.992) !important;
  filter: brightness(0.96) saturate(0.98) !important;
}

body.nf2 .milota-pressable--text.milota-is-pressed {
  opacity: 0.58 !important;
}

body.nf2 .milota-pressable--filter-only.milota-is-pressed {
  filter: brightness(0.9) saturate(0.96) !important;
  opacity: 0.88 !important;
}

body.nf2 .milota-pressable.milota-was-activated:not(.milota-is-pressed) {
  filter: brightness(0.98) saturate(1.04);
}

body.nf2 .milota-pressable:focus-visible {
  outline: 3px solid rgba(239, 90, 53, 0.42) !important;
  outline-offset: 2px !important;
}

body.nf2 .milota-pressable:disabled,
body.nf2 .milota-pressable.disabled,
body.nf2 .milota-pressable.is-disabled,
body.nf2 .milota-pressable[aria-disabled="true"] {
  cursor: default;
}

#milota-navigation-feedback {
  position: fixed;
  z-index: 2147483646;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--milota-coral, #ef5a35);
  box-shadow: 0 1px 8px rgba(239, 90, 53, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
}

body.milota-navigation-pending #milota-navigation-feedback {
  opacity: 1;
  animation: milota-navigation-progress 2.1s cubic-bezier(0.1, 0.65, 0.2, 1) both;
}

@keyframes milota-navigation-progress {
  0% { transform: scaleX(0.04); }
  38% { transform: scaleX(0.56); }
  72% { transform: scaleX(0.78); }
  100% { transform: scaleX(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  body.nf2 .milota-pressable {
    transition: filter 1ms linear, opacity 1ms linear, background-color 1ms linear !important;
  }

  body.nf2 .milota-pressable.milota-is-pressed {
    transform: none !important;
    filter: brightness(0.9) !important;
  }

  body.milota-navigation-pending #milota-navigation-feedback {
    animation: none;
    transform: scaleX(0.82);
  }
}
