                                                                      
.profile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.stat-grid > div { min-width: 0; }
.stat-grid strong { max-width: 100%; overflow-wrap: anywhere; }
#stat-places[aria-busy="true"] { font-size: 14px; }
.social-profile {
  --profile-gutter: 16px;
  --profile-border: #e8e0ed;
  --profile-soft: #f1e9f9;
  padding-top: 16px;
}
.social-profile :is(button, a) { touch-action: manipulation; }
.profile-social-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.profile-social-heading h1 {
  min-width: 0;
  margin: 0;
  font-size: clamp(20px, 5.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -.045em;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.profile-settings-icon,
.profile-add-post {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
}
.profile-settings-icon:hover,
.profile-add-post:hover { background: var(--profile-soft); }
.profile-settings-icon svg,
.profile-add-post svg { width: 24px; height: 24px; }
.profile-social-overview {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 15px;
}
.social-profile .profile-social-avatar {
  width: 84px;
  height: 84px;
  padding: 3px;
  overflow: hidden;
  border: 2px solid var(--purple);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 3px #ede1f8;
}
.social-profile .profile-social-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--lime);
  object-fit: cover;
}
.profile-social-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  align-items: center;
}
.profile-social-counts button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  gap: 4px;
  padding: 7px 1px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  line-height: 1.2;
}
.profile-social-counts button:hover { background: #ece2f5; }
.profile-social-counts strong {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.profile-social-counts span { font-size: 12px; font-weight: 500; }
.profile-identity-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}
#profile-display-name {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.profile-identity-line .level-badge {
  padding: 4px 7px;
  border: 0;
  border-radius: 7px;
  background: var(--profile-soft);
  color: var(--purple);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  box-shadow: none;
}
.social-profile .profile-bio {
  margin: 0 0 17px;
  color: #665c70;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.profile-social-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 23px;
}
.profile-social-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid #ded1e9;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  box-shadow: none;
}
.profile-social-buttons .profile-compose-button {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
}
.profile-social-buttons .profile-compose-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.profile-social-buttons button:active { transform: translateY(1px); }
.profile-social-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: calc(-1 * var(--profile-gutter));
  border-top: 1px solid var(--profile-border);
  border-bottom: 1px solid var(--profile-border);
}
.profile-social-tabs button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  gap: 5px;
  padding: 11px 3px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #81718e;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 600;
}
.profile-social-tabs button svg { width: 22px; height: 22px; }
.profile-social-tabs button::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}
.profile-social-tabs button[aria-selected=true] { color: var(--purple); background: #6d16d705; }
.profile-social-tabs button[aria-selected=true]::after { background: var(--purple); }
.profile-social-panel { min-width: 0; }
.profile-social-panel:focus { outline: none; }
.profile-social-panel:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.profile-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 78px;
  padding: 16px 0;
}
.profile-gallery-heading > div { min-width: 0; }
.profile-gallery-heading h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.profile-gallery-heading p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.profile-gallery-heading .profile-add-post {
  color: var(--purple);
  background: #eee3f8;
  border-radius: 13px;
}
.profile-private-icon { width: 22px; height: 22px; margin: 0 10px; color: #897393; flex-shrink: 0; }
#profile-post-grid,
#profile-saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-inline: calc(-1 * var(--profile-gutter));
  padding: 0;
}
.profile-post-tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  background: #e4d8ed;
  color: white;
  text-align: left;
  box-shadow: none;
}
.profile-post-tile > img,
.profile-post-tile .profile-tile-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .22s ease;
}
.profile-post-tile:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; z-index: 1; }
.profile-tile-meta {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 34px;
  padding: 12px 4px 6px;
  background: linear-gradient(transparent, #171021b8);
  color: white;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 650;
  text-shadow: 0 1px 3px #0006;
}
.profile-tile-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.profile-tile-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.profile-tile-status {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 5px;
  left: 5px;
  width: fit-content;
  max-width: calc(100% - 10px);
  margin-left: auto;
  padding: 4px 6px;
  border-radius: 6px;
  background: #fffef3f2;
  color: #654b12;
  font-size: 9px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 8px #24182c1a;
}
.profile-tile-status.rejected,
.profile-tile-status.removed { background: #fff0f4f2; color: #9a3657; }
.profile-tile-status svg { width: 11px; height: 11px; vertical-align: -2px; margin-right: 2px; }
.profile-progress-panel { padding-top: 20px; }
.profile-empty {
  grid-column: 1 / -1;
  padding: 36px 26px 42px;
  text-align: center;
  color: var(--muted);
}
.profile-empty > svg,
.profile-empty > .profile-empty-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 16px;
  margin: 0 auto 16px;
  border: 1px solid #d9c7e9;
  border-radius: 20px;
  color: var(--purple);
  background: var(--profile-soft, #f1e9f9);
}
.profile-empty .profile-empty-icon svg { width: 26px; height: 26px; }
.profile-empty :is(h3, strong) { display: block; margin: 0 0 9px; color: var(--ink); font-size: 19px; line-height: 1.3; font-weight: 750; }
.profile-empty p { max-width: 270px; margin: 0 auto 17px; font-size: 14px; line-height: 1.6; }
.profile-empty button { min-height: 44px; }

                                                                          
.social-post-view { min-width: 0; color: var(--ink); }
.social-post-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}
.social-post-topbar :is(h2, h3, strong) { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 750; letter-spacing: -.025em; }
.social-post-topbar > span { flex-shrink: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.social-post-topbar > button,
.social-post-actions > button,
.social-post-author > button,
.social-post-pager > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  gap: 6px;
  padding: 10px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.3;
}
.social-post-view svg { width: 23px; height: 23px; flex-shrink: 0; }
.social-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 3px 0 13px;
}
.social-post-author .tiny-avatar { width: 40px; height: 40px; flex: 0 0 40px; }
.social-post-author > div { min-width: 0; flex: 1; }
.social-post-author strong { display: block; font-size: 14px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
.social-post-author :is(small, time) { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.social-post-author > button:last-child { flex-shrink: 0; margin-left: auto; }
.social-post-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(var(--visual-height,100vh) * 0.52);
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 13px;
  overflow: hidden;
  background: #f1e9f9;
  object-fit: contain;
}
.social-post-photo > img { display: block; width: 100%; height: auto; max-height: calc(var(--visual-height,100vh) * 0.52); object-fit: contain; }
.social-post-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 6px 0 2px;
}
.social-post-actions > button { gap: 6px; font-size: 13px; font-weight: 650; }
.social-post-actions > button[aria-pressed=true],
.social-post-actions > button.is-active { color: var(--purple); background: #f3eafa; }
.social-post-actions > button[aria-label*=Salva],
.social-post-actions > button[aria-label*=salvati],
.social-post-actions > button[data-save-post] { margin-left: auto; }
.social-post-caption {
  margin: 9px 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #61556c;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.social-post-caption strong { color: var(--ink); font-weight: 750; }
.social-post-state {
  display: grid;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 13px;
  margin: 13px 0;
  border: 1px solid #eee0b9;
  border-radius: 13px;
  background: #fff9e8;
  color: #775b1c;
  font-size: 13px;
  line-height: 1.55;
}
.social-post-state svg { width: 19px; height: 19px; margin-top: 1px; }
.social-post-state p { margin: 0; }
.social-post-state.rejected,
.social-post-state.removed { border-color: #f0d9e0; background: #fff2f5; color: #92415c; }
.social-post-comments {
  padding: 15px 0 2px;
  border-top: 1px solid #eee7f3;
  font-size: 13px;
  line-height: 1.55;
}
.social-post-comments h3 { margin: 0 0 12px; color: var(--ink); font-size: 15px; line-height: 1.4; font-weight: 750; }
.social-post-comments > p { margin: 8px 0 13px; color: #786b82; }
.social-post-comments .social-comment { padding: 11px 12px; margin-bottom: 8px; background: #f8f4fc; border: 0; border-radius: 12px; }
.social-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding-top: 10px;
  margin-top: 0;
}
.social-comment-form label { min-width: 0; font-size: 12px; line-height: 1.4; font-weight: 600; }
.social-comment-form :is(input, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  max-height: 130px;
  margin-top: 5px;
  padding: 11px 12px;
  border: 1px solid #d9cce5;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  resize: vertical;
}
.social-comment-form button {
  min-width: 44px;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--purple);
  color: white;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.social-comment-form button svg { width: 20px; height: 20px; }
.social-post-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #ece4f2; }
.social-post-pager > button { background: #f3ecf9; color: var(--purple); font-size: 12px; font-weight: 650; }
.social-post-pager > span { font-size: 12px; color: #88758f; font-variant-numeric: tabular-nums; }
.social-post-pager > button:disabled { opacity: .35; cursor: default; }
.profile-connection-list { display: grid; gap: 10px; margin-top: 16px; }
.profile-connection-list > :is(article, div, li) { display: flex; gap: 11px; align-items: center; min-width: 0; padding: 9px 0; }
.profile-connection-list .tiny-avatar { width: 43px; height: 43px; flex: 0 0 43px; }
.profile-connection-list .profile-connection-copy { min-width: 0; flex: 1; }
.profile-connection-list .profile-connection-copy strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
.profile-connection-list .profile-connection-copy small { display: block; color: #7d6d88; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.profile-connection-list button { min-height: 44px; min-width: 44px; }
.profile-connection-list .tiny-avatar { display: block; overflow: hidden; border-radius: 50%; }
.profile-connection-list .tiny-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-connection-copy > button { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.profile-connection-list article > .button-lime { flex-shrink: 0; min-width: 65px; padding: 10px 12px; border: 0; border-radius: 10px; background: #eee2fa; color: var(--purple); font-size: 12px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .profile-post-tile:hover > img { transform: scale(1.045); }
}
@media (min-width: 520px) {
  .social-profile { --profile-gutter: 24px; padding-top: 22px; }
  .profile-social-overview { grid-template-columns: 104px minmax(0, 1fr); gap: 30px; margin-bottom: 20px; }
  .social-profile .profile-social-avatar { width: 104px; height: 104px; }
  .profile-social-counts strong { font-size: 28px; }
  .profile-social-counts span { font-size: 14px; }
  .profile-social-buttons button { font-size: 14px; }
  .profile-social-tabs button { flex-direction: row; gap: 9px; min-height: 62px; font-size: 14px; }
  .profile-tile-meta { min-height: 42px; padding-bottom: 10px; font-size: 13px; gap: 15px; }
  .profile-tile-meta svg { width: 15px; height: 15px; }
  .profile-tile-status { top: 9px; right: 8px; font-size: 11px; padding: 5px 8px; }
  .profile-gallery-heading { min-height: 88px; }
  .profile-gallery-heading h2 { font-size: 19px; }
  .profile-gallery-heading p { font-size: 13px; }
  .social-post-photo { max-height: calc(var(--visual-height,100vh) * 0.55); }
}
@media (max-width: 359px) {
  .social-profile { --profile-gutter: 14px; }
  .profile-social-heading { margin-bottom: 12px; gap: 7px; }
  .profile-social-heading h1 { font-size: 20px; }
  .profile-social-overview { grid-template-columns: 72px minmax(0, 1fr); gap: 13px; }
  .social-profile .profile-social-avatar { width: 72px; height: 72px; }
  .profile-social-counts strong { font-size: 21px; }
  .profile-social-counts span { font-size: 11px; }
  .profile-social-buttons { gap: 7px; }
  .profile-social-buttons button { padding-inline: 5px; font-size: 12px; }
  .profile-social-tabs button { font-size: 11px; }
  .profile-tile-meta { gap: 7px; font-size: 10px; }
  .profile-tile-meta svg { width: 12px; height: 12px; }
  .profile-tile-status { font-size: 8px; }
  .social-post-actions > button { gap: 4px; padding-inline: 8px; font-size: 12px; }
}
.social-post-topbar > div { min-width: 0; }
.social-post-topbar > div > span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.social-post-author > button:first-child {
  display: flex;
  flex: 1;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 0;
  text-align: left;
}
.social-post-author > button:first-child > span:not(.tiny-avatar) { display: block; min-width: 0; }
.social-post-author > button:first-child small { display: block; }
.social-like-count { margin: 5px 0 10px; font-size: 13px; line-height: 1.4; font-weight: 750; }
.social-post-caption { white-space: normal; }
.social-post-caption > p { margin: 5px 0 8px; white-space: pre-wrap; }
.social-post-caption > small { display: block; color: #8b7d94; font-size: 11px; line-height: 1.4; }
.profile-connection-list .profile-connection > button:first-child {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.profile-connection-list .profile-connection > button:first-child > span:not(.tiny-avatar) { min-width: 0; }
.profile-connection-list .profile-connection > button:first-child strong { display: block; font-size: 14px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
.profile-connection-list .profile-connection > button:first-child small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; color: #85768f; overflow-wrap: anywhere; }
.profile-connection-list .profile-connection > button:last-child:not(:first-child) { flex-shrink: 0; min-width: 65px; padding: 10px 12px; border: 0; border-radius: 10px; color: var(--purple); background: #eee2fa; font-size: 12px; line-height: 1.4; font-weight: 700; }
@media (max-width: 359px) { .profile-tile-status { font-size: 9px; } }

.profile-gallery-pagination{padding:20px 0;text-align:center}
.profile-gallery-pagination button,.profile-gallery-status button{min-height:46px;padding:11px 16px;border:1px solid #ddcdeb;border-radius:12px;background:#fff;color:var(--purple);font-family:inherit;font-size:14px;line-height:1.4;font-weight:700}
.profile-gallery-status{grid-column:1/-1;min-width:0;padding:22px 16px;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}
.profile-gallery-status p{margin:0 0 12px}
.profile-gallery-status[data-error=true]{color:#9c2845}
.profile-post-tile img[data-private-media]{object-fit:cover}
.social-post-state.verified{background:#eef8e2;border-color:#d8eaca;color:#3a631a}
.social-post-topbar>span{font-size:12px;color:var(--muted)}
.social-post-comments .social-comment strong{font-size:13px}
.social-post-comments .social-comment p{margin:4px 0 0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.social-post-actions button[aria-pressed=true] svg{fill:currentColor}
.profile-empty .button-lime{font-size:14px}
.profile-progress-panel .points-card{margin-top:0}
