/* [profile-preview] Preview page layout and chips */
.profile-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.profile-preview-layout {
  display: grid;
  grid-template-columns: clamp(180px, 18vw, 260px) minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.profile-preview-layout.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.profile-preview-layout.has-history-sidebar {
  grid-template-columns: clamp(180px, 18vw, 260px) minmax(0, 1fr) clamp(180px, 18vw, 260px);
}

.profile-preview-layout.no-sidebar.has-history-sidebar {
  grid-template-columns: minmax(0, 1fr) clamp(180px, 18vw, 260px);
}

.profile-preview-sidebar {
  min-width: 0;
  min-height: 100%;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--surface-strong);
  /* box-shadow: var(--main-shadow-sm); */
  padding: 8px;
}

.profile-preview-history-sidebar {
  align-self: stretch;
  min-width: 0;
}

.profile-preview-history-column {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.profile-preview-history-sidebar > .events-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.profile-preview-history-sidebar .profile-history-sidebar-title {
  text-align: center;
  color: rgb(80 80 80 / 78%);
}

.profile-history-sidebar-title-separator {
  position: relative;
  overflow: visible;
  height: 1px;
  border: 0;
  margin: 6px 0 10px;
  background:
    linear-gradient(
      to right,
      rgba(122, 75, 52, 0.22) 0,
      rgba(122, 75, 52, 0.22) calc(50% - 8px),
      transparent calc(50% - 8px),
      transparent calc(50% + 8px),
      rgba(122, 75, 52, 0.22) calc(50% + 8px),
      rgba(122, 75, 52, 0.22) 100%
    );
}

.profile-history-sidebar-title-separator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(122, 75, 52, 0.22);
  transform: translate(-50%, -50%);
}

.profile-preview-history-sidebar .messages-thread::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 2px;
  background: rgba(122, 75, 52, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
}

.profile-preview-history-sidebar .messages-thread > * {
  position: relative;
  z-index: 1;
}

.profile-preview-history-sidebar .messages-thread-row {
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 6px;
}

.profile-preview-history-sidebar .messages-thread-side.left,
.profile-preview-history-sidebar .messages-thread-side.right {
  min-width: 0;
}

.profile-preview-history-sidebar .events-profile-bubble {
  width: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.profile-preview-history-sidebar .messages-bubble {
  max-width: 100%;
  padding: 7px 8px;
}

.profile-preview-history-sidebar .events-profile-bubble-name,
.profile-preview-history-sidebar .events-profile-bubble-event-label,
.profile-preview-history-sidebar .messages-thread-time,
.profile-preview-history-sidebar .messages-thread-date {
  font-size: clamp(0.58rem, 0.92vw, 0.72rem);
}

.profile-preview-history-sidebar .messages-thread-date {
  position: relative;
  text-align: center;
}

.profile-preview-history-sidebar .messages-thread-date::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  background: #7a4b34;
  border-top: 1px solid rgba(122, 75, 52, 0.45);
  border-left: 1px solid rgba(122, 75, 52, 0.45);
  transform: translateX(-50%) rotate(45deg);
}

.profile-preview-history-sidebar .events-profile-bubble-name-row {
  gap: 3px;
  line-height: 1.1;
}

.profile-preview-history-sidebar .events-profile-bubble-name,
.profile-preview-history-sidebar .events-profile-bubble-event-label {
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-preview-history-sidebar .events-thread-time-text,
.profile-preview-history-sidebar .events-thread-time-day-note,
.profile-preview-history-sidebar .events-thread-time-note {
  font-size: clamp(0.58rem, 0.92vw, 0.72rem);
}

.profile-preview-history-sidebar .messages-bubble-left::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 12px;
  z-index: 2;
  width: 10px;
  height: 10px;
  background: rgba(241, 236, 228, 0.92);
  border-top: 1px solid rgba(122, 75, 52, 0.26);
  border-right: 1px solid rgba(122, 75, 52, 0.26);
  transform: rotate(45deg);
}

.profile-preview-history-sidebar .messages-bubble-right::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  z-index: 2;
  width: 10px;
  height: 10px;
  background: rgba(248, 243, 233, 0.92);
  border-bottom: 1px solid rgba(122, 75, 52, 0.26);
  border-left: 1px solid rgba(122, 75, 52, 0.26);
  transform: rotate(45deg);
}

.profile-preview-history-sidebar .events-profile-bubble-body {
  min-width: 0;
}

.profile-preview-history-sidebar .events-profile-bubble .events-thread-thumb {
  width: clamp(42px, 4.4vw, 62px);
  height: clamp(56px, 5.8vw, 82px);
  max-width: 100%;
}

.profile-preview-sidebar-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
}

.profile-preview-sidebar-photos.is-single-photo {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
}

.profile-preview-sidebar-photo-card {
  width: min(230px, 100%);
  aspect-ratio: 3 / 4;
  max-width: 230px;
  justify-self: center;
}

.profile-preview-sidebar-gallery {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.profile-preview-sidebar-empty {
  min-height: 120px;
}

.profile-preview-content {
  --profile-preview-label-font-size: clamp(0.72rem, 1.15vw, 0.8rem);
  --profile-preview-data-font-size: clamp(0.9rem, 1.45vw, 1rem);
  --profile-preview-lead-font-size: clamp(0.98rem, 1.65vw, 1.12rem);
  --profile-preview-bio-font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profile-preview-content > *,
.profile-preview-content .profile-preview-card {
  min-width: 0;
}

.profile-preview-content .profile-preview-card,
.profile-preview-content .profile-preview-list,
.profile-preview-content .profile-preview-bio,
.profile-preview-content .profile-preview-tagline,
.profile-preview-content .profile-preview-hero-details,
.profile-preview-content .profile-preview-chip {
  font-size: var(--profile-preview-data-font-size);
  overflow-wrap: anywhere;
}

.profile-preview-content .eyebrow {
  font-size: var(--profile-preview-label-font-size);
}

.profile-preview-content .profile-preview-intro-summary-text li:first-child,
.profile-preview-content .profile-preview-intro-summary-text li:first-child strong {
  font-size: var(--profile-preview-lead-font-size);
}

.profile-preview-content .profile-preview-list strong {
  font-size: inherit;
}

.profile-preview-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.profile-preview-card {
  margin-top: 0px;
}

.profile-details-membership-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(140px, 22vw, 220px);
}

.profile-preview-intro-summary-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.profile-preview-intro-summary-text {
  min-width: 0;
}

.profile-preview-zodiac-slot {
  display: block;
  width: 32px;
  min-width: 32px;
}

.profile-preview-zodiac-icon {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  justify-self: start;
  opacity: 0.55;
  flex: 0 0 32px;
}

.profile-preview-match-scores {
  align-self: stretch;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  gap: 7px;
  min-width: 0;
}

.profile-preview-match-score {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 84px;
  height: 100%;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--accent-dark);
  line-height: 1.1;
}

.profile-preview-match-score-label {
  font-size: clamp(0.66rem, 1.25vw, 0.74rem);
  font-weight: 400;
}

.profile-preview-match-score-value {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(24px, 3vw, 30px);
  font-size: clamp(0.86rem, 1.7vw, 1rem);
  font-weight: 400;
  margin-top: 10px;
}

.profile-preview-match-score-rebuild-icon {
  width: clamp(22px, 3vw, 28px);
  height: clamp(22px, 3vw, 28px);
  object-fit: contain;
  filter: none !important;
  animation: lookingfor-rebuild-spin 3.2s linear infinite reverse;
}

.profile-preview-match-score-unlock-icon {
  width: clamp(22px, 3vw, 28px);
  height: clamp(22px, 3vw, 28px);
  object-fit: contain;
  filter: none !important;
}

.profile-preview-match-score:not(.is-active) .profile-preview-match-score-rebuild-icon {
  filter: none !important;
}

.profile-preview-match-score:not(.is-active) .profile-preview-match-score-unlock-icon {
  filter: none !important;
}

.profile-distance-map-action {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.profile-distance-road-pending-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  width: clamp(30px, 4vw, 32px);
  height: clamp(30px, 4vw, 32px);
}

.profile-distance-road-pending-icon img {
  display: block;
  width: clamp(22px, 3.2vw, 28px);
  height: clamp(22px, 3.2vw, 28px);
  object-fit: contain;
  filter: none !important;
  animation: admin-notice-profile-approval-spin 3.2s linear infinite reverse;
}

.profile-distance-map-button {
  min-width: 0;
  padding: clamp(0.26rem, 1vw, 0.34rem);
}

.profile-distance-map-button img,
.profile-distance-map-button:not(.is-active) img {
  display: block;
  width: clamp(20px, 3.2vw, 26px);
  height: clamp(20px, 3.2vw, 26px);
  object-fit: contain;
  filter: opacity(50%) invert(0) saturate(0%) !important;
}

.profile-osm-map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.profile-osm-map-modal.is-hidden {
  display: none;
}

.profile-osm-map-backdrop {
  display: none;
}

.profile-osm-map-card {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  max-height: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  pointer-events: auto;
  border-radius: 0;
}

.profile-osm-map-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-osm-map-header-row .eyebrow {
  margin: 0;
}

.profile-osm-map-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.profile-osm-map-close-button {
  width: auto;
  min-width: 0;
  min-height: 28px;
  padding: 0.14rem 0.72rem;
  border: 1px solid rgba(121, 77, 57, 0.22);
  border-radius: 11px;
  background: var(--surface-strong);
  color: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(60, 36, 25, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  line-height: 1;
}

.profile-osm-map-close-button:hover,
.profile-osm-map-close-button:focus-visible {
  background: #f9e9df;
}

.profile-osm-map {
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(121, 77, 57, 0.22);
  border-radius: 16px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1s ease;
}

.profile-osm-map-modal.is-map-fading-in .profile-osm-map {
  opacity: 0;
}

@media (min-width: 769px) {
  .profile-osm-map-card {
    inset: auto;
    width: min(880px, 96vw);
    height: min(608px, calc(100dvh - clamp(24px, 6vw, 56px)));
    max-height: calc(100dvh - clamp(24px, 6vw, 56px));
    min-width: 420px;
    min-height: 360px;
    resize: both;
    border-radius: var(--radius-lg);
  }

  .profile-osm-map-header-row {
    cursor: move;
    user-select: none;
  }
}

.profile-preview-tagline {
  margin: 0 0 10px;
  max-width: 56ch;
  font-size: var(--profile-preview-data-font-size);
}

.profile-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-preview-hero-details {
  display: grid;
  gap: 6px;
}

.profile-preview-hero-details p {
  margin: 0;
  color: var(--muted);
  font-size: var(--profile-preview-data-font-size);
  line-height: 1.6;
}

/* [profile-preview-photo] Header profile photo sizing */
.profile-preview-photo-panel {
  display: grid;
  place-items: center;
}

.profile-preview-hero-card-panel {
  display: grid;
  justify-items: end;
  align-content: start;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-preview-hero-card-shell {
  width: min(180px, 100%);
  padding: 2px;
  border-radius: 16px;
}

.profile-preview-sidebar-member-card-shell {
  width: min(230px, 100%);
  max-width: 230px;
  min-width: 0;
  justify-self: center;
}

.profile-sidebar-stats-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-sidebar-stats-row {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.profile-sidebar-stats-row dt,
.profile-sidebar-stats-row dd {
  margin: 0;
  font-size: clamp(0.72rem, 1.45vw, 0.86rem);
  line-height: 1.2;
}

.profile-sidebar-stats-row dt {
  color: var(--accent-dark);
  text-align: center;
  white-space: nowrap;
}

.profile-sidebar-stats-row dd {
  color: var(--text);
  text-align: center;
  font-weight: 600;
}

.profile-preview-hero-member-card {
  width: 100%;
}

.profile-preview-hero-member-card .members-profile-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.profile-preview-hero-member-card .members-card-footer {
  margin-top: 4px;
}

.members-card-footer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  margin-top: 5px;
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 6px;
  box-sizing: border-box;
  border-top: 1px solid rgba(60, 36, 31, 0.12);
  background: linear-gradient(180deg, rgba(120, 76, 56, 0.1), rgba(255, 249, 242, 0.22));
  box-shadow: inset 0 1px 1px rgba(60, 36, 31, 0.14),
    inset 0 0px 0 rgba(255, 255, 255, 0.8),
    inset 0 1px 2px rgba(60, 36, 31, 0.05);
  cursor: default;
  transition: none;
  pointer-events: none;
}

.members-card-footer:hover,
.members-card-footer:focus,
.members-card-footer:active {
  transform: none;
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(120, 76, 56, 0.1), rgba(255, 249, 242, 0.22));
  box-shadow: inset 0 1px 1px rgba(60, 36, 31, 0.14),
    inset 0 0px 0 rgba(255, 255, 255, 0.8),
    inset 0 1px 2px rgba(60, 36, 31, 0.05);
  transition: none;
}

.members-card-footer > * {
  pointer-events: auto;
}

.members-footer-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 4px;
}

.members-footer-action-button {
  border-radius: 8px;
}

.members-card-footer-pair {
  display: flex;
  gap: 8px;
  width: 100%;
  flex: 1 1 100%;
  min-width: 100%;
}

.members-card-footer-pair > * {
  flex: 1 1 calc(50% - 4px);
  width: calc(50% - 4px);
}

.members-card-footer .profile-action-button[data-action-type="ban"],
.members-card-footer .members-footer-photo-like {
  flex: 1 1 auto;
  width: auto;
}

.members-card-footer > .members-footer-favorite,
.members-card-footer > .profile-action-button {
  flex: 1 1 calc(33.333% - 6px);
  width: calc(33.333% - 6px);
}

.profile-action-button.is-hidden-by-ignore {
  display: none !important;
}

.members-card-footer .members-footer-favorite > img,
.members-card-footer .members-footer-favorite img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.members-card-footer .members-footer-favorite:not(.is-active) img {
  filter: opacity(50%) invert(0) saturate(0%);
}

.members-card-footer .members-footer-favorite.is-active img {
  filter: none;
}

.members-card-footer .profile-action-button[data-action-type="ban"] img,
.members-card-footer .profile-action-button[data-action-type="ban"]:not(.is-active) img {
  filter: none !important;
}

.profile-preview-hero-member-card .members-overlay-name,
.profile-preview-hero-member-card .members-overlay-age {
  font-size: 0.68rem;
  padding: 3px 7px;
  border-radius: 7px;
}

.profile-preview-photo-panel .members-profile-photo-wrap.profile-photo-box {
  width: min(220px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.profile-preview-photo-panel .profile-photo-current-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* [profile-preview-local-nav] Contact submenu in preview pages */
.contact-local-nav {
  margin-top: auto;
  padding-top: 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.contact-local-nav-eyebrow {
  margin: 0;
}

.contact-heading-row {
  margin-top: 12px;
}

.submenu-panel {
  position: relative;
  z-index: 0;
  margin-top: -1px;
  border-radius: 15px;
  padding: 14px 8px;
  background: rgb(255, 249, 242);
  box-shadow: var(--main-shadow-sm);
}

.contact-local-nav-back {
  /* margin-right: 18px; */
  padding-right: 6px !important;
  padding-left: 4px !important;
}

.contact-local-nav .contact-local-nav-back img,
.contact-local-nav .contact-local-nav-back:not(.is-active) img {
  filter: none !important;
}

.contact-local-nav .header-submenu-button {
  padding: 5px 4px;
  border-radius: 10px;
  font-size: var(--ui-font-submenu);
  min-width: 0;
}

.contact-local-nav .contact-local-nav-icon-button.has-text {
  padding-right: 8px;
  padding-left: 7px;
}

.contact-local-nav-button-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.contact-local-nav-button-text {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: clamp(0.78rem, 1.35vw, 0.86rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.contact-local-nav .header-submenu-button.is-active {
  color: var(--accent-dark);
  cursor: pointer;
}

.contact-local-nav-message-button {
  position: relative;
}

.contact-local-nav-message-badge {
  top: -8px;
  right: -8px;
}

.contact-local-nav .icon-button {
  margin-left: auto;
}

.contact-local-nav [data-contact-ignore-sensitive='true'].is-hidden-by-ignore {
  display: none !important;
}

@media (max-width: 680px) {
  .contact-local-nav {
    width: 100%;
  }

  .contact-local-nav .header-submenu-button {
    flex: 0 0 auto;
    min-width: 0;
    padding-right: 3px;
    padding-left: 3px;
  }

  .contact-local-nav .contact-local-nav-icon-button.has-text {
    flex: 1 1 0;
  }

  .contact-local-nav .contact-local-nav-back {
    flex: 0 0 auto;
  }

  .contact-local-nav .contact-local-nav-icon-button.has-text {
    padding-right: 3px;
    padding-left: 3px;
  }

  .contact-local-nav .contact-local-nav-message-button.has-text {
    padding-right: 3px;
  }

  .contact-local-nav-button-main {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .contact-local-nav-button-text {
    display: none;
  }

  .contact-local-nav .contact-local-nav-icon-button.has-text {
    padding-right: 4px;
    padding-left: 4px;
  }
}

[data-ignore-hide-extra-photo='true'].is-hidden-by-ignore {
  display: none !important;
}

.profile-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 245, 0.72);
  color: var(--accent-dark);
  font-size: var(--profile-preview-data-font-size);
}

.profile-preview-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: var(--profile-preview-data-font-size);
  line-height: 1.8;
}

.profile-preview-list li::marker {
  color: var(--accent-dark);
}

.profile-preview-list .profile-group-title {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

.profile-preview-text-values {
  margin: 0;
  color: var(--muted);
  font-size: var(--profile-preview-data-font-size);
  line-height: 1.8;
}

.profile-preview-text-list {
  margin: 0 0 0 22px;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--profile-preview-data-font-size);
  line-height: 1.8;
}

.profile-preview-text-list li {
  position: relative;
  padding-left: 14px;
}

.profile-preview-text-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 500;
}

.profile-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow {
  margin: 9px 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--ui-font-xs);
  color: var(--accent-dark);
}

@media (max-width: 1024px) {
  .profile-preview-layout.has-history-sidebar {
    grid-template-columns: clamp(150px, 22vw, 220px) minmax(0, 1fr);
  }

  .profile-preview-layout.no-sidebar.has-history-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-preview-history-column {
    grid-column: 1 / -1;
  }

  .profile-preview-sidebar-photo-card,
  .profile-preview-sidebar-member-card-shell {
    width: min(230px, 100%);
    max-width: 230px;
  }

  .members-card-footer .members-footer-favorite:not(.is-active) img {
    filter: opacity(50%) invert(0) saturate(0%) !important;
  }

  .members-card-footer .members-footer-favorite.is-active img {
    filter: none !important;
  }

  .profile-preview-content,
  .profile-preview-card {
    width: 100%;
    max-width: 100%;
  }

  .profile-preview-history-column {
    gap: 14px;
  }

  .profile-preview-history-sidebar {
    --history-panel-padding: 12px;
    --history-thread-gap: 14px;
    --history-axis-width: clamp(58px, 7vw, 72px);
    --history-row-gap: 12px;
    --history-time-min: clamp(54px, 6.5vw, 68px);
    --history-time-padding: 7px 9px;
    --history-time-font: clamp(0.72rem, 1.35vw, 0.9rem);
    --history-note-font: clamp(0.68rem, 1.2vw, 0.82rem);
    --history-axis-icon-size: clamp(24px, 3vw, 30px);
    --history-dirty-icon-size: clamp(22px, 2.6vw, 28px);
    --history-bubble-padding: 8px 10px;
    --history-label-font: clamp(0.74rem, 1.35vw, 0.92rem);
    --history-name-row-gap: 5px;
    --history-name-row-line: 1.2;
    --history-thumb-width: clamp(64px, 8vw, 96px);
    --history-thumb-height: clamp(84px, 10.7vw, 128px);
    --history-title-font: clamp(0.82rem, 1.45vw, 1rem);
    --history-stats-columns: repeat(4, minmax(0, 1fr));
    --history-stats-gap: 12px;
    --history-stats-row-gap: 4px;
    --history-stats-font: clamp(0.78rem, 1.35vw, 0.94rem);
    padding: var(--history-panel-padding);
  }

  .profile-preview-history-sidebar .messages-thread {
    gap: var(--history-thread-gap);
  }

  .profile-preview-history-sidebar .messages-thread-row {
    grid-template-columns: minmax(0, 1fr) var(--history-axis-width) minmax(0, 1fr);
    gap: var(--history-row-gap);
  }

  .profile-preview-history-sidebar .messages-thread-time,
  .profile-preview-history-sidebar .messages-thread-date {
    min-width: var(--history-time-min);
    padding: var(--history-time-padding);
    font-size: var(--history-time-font);
  }

  .profile-preview-history-sidebar .events-thread-time-text,
  .profile-preview-history-sidebar .events-thread-time-day-note,
  .profile-preview-history-sidebar .events-thread-time-note {
    font-size: var(--history-note-font);
  }

  .profile-preview-history-sidebar .events-thread-axis-icon {
    width: var(--history-axis-icon-size);
    height: var(--history-axis-icon-size);
  }

  .profile-preview-history-sidebar .events-thread-time-dirty-icon {
    width: var(--history-dirty-icon-size);
    height: var(--history-dirty-icon-size);
  }

  .profile-preview-history-sidebar .messages-bubble {
    padding: var(--history-bubble-padding);
  }

  .profile-preview-history-sidebar .events-profile-bubble-name,
  .profile-preview-history-sidebar .events-profile-bubble-event-label {
    font-size: var(--history-label-font);
  }

  .profile-preview-history-sidebar .events-profile-bubble-name-row {
    gap: var(--history-name-row-gap);
    line-height: var(--history-name-row-line);
  }

  .profile-preview-history-sidebar .events-profile-bubble .events-thread-thumb {
    width: var(--history-thumb-width);
    height: var(--history-thumb-height);
  }

  .profile-preview-history-sidebar .profile-history-sidebar-title {
    font-size: var(--history-title-font);
  }

  .profile-preview-history-sidebar .profile-sidebar-stats-list {
    grid-template-columns: var(--history-stats-columns);
    align-items: start;
    gap: var(--history-stats-gap);
  }

  .profile-preview-history-sidebar .profile-sidebar-stats-row {
    gap: var(--history-stats-row-gap);
  }

  .profile-preview-history-sidebar .profile-sidebar-stats-row dt,
  .profile-preview-history-sidebar .profile-sidebar-stats-row dd {
    font-size: var(--history-stats-font);
  }
}

@media (max-width: 768px) {
  .profile-preview-layout {
    grid-template-columns: clamp(140px, 28vw, 200px) minmax(0, 1fr);
    gap: 16px;
  }

  .profile-preview-layout.has-history-sidebar {
    grid-template-columns: clamp(140px, 28vw, 200px) minmax(0, 1fr);
  }

  .profile-preview-sidebar-photo-card,
  .profile-preview-sidebar-member-card-shell {
    width: min(200px, 100%);
    max-width: 200px;
  }

  .profile-preview-intro-summary-card {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .profile-preview-zodiac-slot,
  .profile-preview-zodiac-icon {
    width: 60px;
    height: 60px;
    min-width: 32px;
  }

  .profile-preview-match-score {
    min-width: 72px;
    padding: 4px 6px;
  }
}

@media (max-width: 680px) {
  .profile-preview-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-preview-layout.has-history-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-preview-sidebar-photos:not(.is-single-photo) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .profile-preview-sidebar-photo-card,
  .profile-preview-sidebar-member-card-shell {
    width: min(200px, 100%);
    max-width: 200px;
  }

  .members-card-footer {
    gap: 3px;
  }

  .profile-preview-intro-summary-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .profile-preview-match-scores {
    grid-column: 1 / -1;
    justify-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-preview-zodiac-slot,
  .profile-preview-zodiac-icon {
    width: 60px;
    height: 60px;
    min-width: 32px;
  }

  .profile-preview-history-sidebar {
    --history-panel-padding: 10px;
    --history-axis-width: 48px;
    --history-row-gap: 8px;
    --history-time-min: 44px;
    --history-time-padding: 6px 7px;
    --history-time-font: clamp(0.64rem, 2.5vw, 0.78rem);
    --history-date-font: clamp(0.7rem, 3vw, 0.86rem);
    --history-note-font: clamp(0.62rem, 2.4vw, 0.74rem);
    --history-axis-icon-size: clamp(22px, 6vw, 26px);
    --history-label-font: clamp(0.66rem, 2.5vw, 0.82rem);
    --history-thumb-width: clamp(54px, 16vw, 76px);
    --history-thumb-height: clamp(72px, 21vw, 102px);
    --history-stats-columns: repeat(2, minmax(0, 1fr));
    --history-stats-gap: 10px;
    --history-stats-font: clamp(0.68rem, 2.6vw, 0.82rem);
  }

  .profile-preview-history-sidebar .messages-thread-date {
    font-size: var(--history-date-font);
    min-width: 88px;
    padding: 7px 10px;
  }
}

@media (max-width: 480px) {
  .profile-preview-sidebar-photos:not(.is-single-photo) {
    grid-template-columns: 1fr;
  }

  .profile-preview-history-sidebar .profile-sidebar-stats-list {
    --history-stats-columns: 1fr;
  }
}

#profile-osm-map {
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #ddd;
}

/* Leaflet tile alapvédelem */
#profile-osm-map .leaflet-tile {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  max-height: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Globális img CSS-ek elleni védelem */
#profile-osm-map img,
#profile-osm-map .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

/* Stabilabb renderelés */
#profile-osm-map .leaflet-tile-pane,
#profile-osm-map .leaflet-tile-container {
  transform-style: flat !important;
  backface-visibility: hidden !important;
}

/*
  Csak akkor hagyd bent, ha nem rontja el a popup pozícióját.
  Ha a popup elcsúszik, ezt töröld.
*/
#profile-osm-map-modal {
  transform: none !important;
}
