/* Perfil social: identidade visual N.A., humana e acolhedora. */
#profile {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 0 96px;
  overflow-y: auto;
  background: #fff;
}

#profile > :not(.ig-profile-shell):not(.app-shared-home-header) {
  display: none !important;
}

.ig-profile-shell {
  width: 100%;
  max-width: 560px;
  min-height: 100%;
  margin: 0 auto;
  background: #fff;
  color: var(--gray-900);
}

.ig-profile-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid #edf0f5;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.ig-profile-icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f5fa;
  color: #15233b;
  cursor: pointer;
  font: 700 18px var(--font);
  transition: transform .18s ease, background .18s ease;
}

.ig-profile-icon-btn:active {
  transform: scale(.92);
  background: #e5ebf5;
}

.ig-profile-nav-title {
  min-width: 0;
  text-align: center;
}

.ig-profile-nav-title span {
  display: block;
  color: #7c8799;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ig-profile-nav-title strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #111827;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-profile-summary {
  position: relative;
  margin: 0;
  padding: 6px 16px 20px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.ig-profile-overview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.ig-avatar-ring {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: #aeb9c9;
  box-shadow: none;
}
.ig-avatar-ring[data-story-state="unseen"]{background:linear-gradient(145deg,#8f35d3 0%,#1d5fd0 48%,#32c7dd 100%)}
.ig-avatar-ring[data-story-state="seen"],.ig-avatar-ring[data-story-state="none"]{background:#aeb9c9}
.ig-avatar-ring[data-story-user-id]:not([data-story-user-id=""]){cursor:pointer}
.ig-avatar-ring[data-story-user-id]:not([data-story-user-id=""]):focus-visible{outline:3px solid #1d5fd0;outline-offset:3px}

.ig-profile-avatar {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #0a3d91, #1d5fd0);
  color: #fff;
  font-size: 29px;
  font-weight: 850;
}

.ig-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.ig-profile-stats div {
  min-width: 0;
  padding: 6px 2px;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.ig-profile-stats strong {
  display: block;
  color: #101828;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.ig-profile-stats span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #667085;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-profile-name {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: #101828;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.3;
}

.ig-profile-handle {
  position: relative;
  z-index: 1;
  margin: 3px 0 0;
  color: #71809a;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}

.ig-recovery-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #0a3d91;
  font-size: 10px;
  font-weight: 750;
}

.ig-recovery-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25a56a;
  box-shadow: 0 0 0 3px rgba(37, 165, 106, .12);
}

.ig-profile-bio {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}

.ig-profile-bio.is-empty {
  color: #98a2b3;
  font-style: italic;
}

.ig-edit-profile {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 38px;
  margin-top: 16px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #f2f3f5;
  color: #111827;
  cursor: pointer;
  font: 750 13px var(--font);
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ig-edit-profile:active {
  transform: scale(.98);
  background: #e8eaed;
  box-shadow: none;
}

.ig-profile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid #e1e5ea;
  border-bottom: 1px solid #e1e5ea;
  border-radius: 0;
  background: #fff;
}

.ig-profile-tabs button {
  position: relative;
  display: grid;
  min-height: 52px;
  place-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #98a2b3;
  cursor: pointer;
  font: 650 9px var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ig-profile-tabs button::after {
  content: "";
  position: absolute;
  right: 24%;
  bottom: -1px;
  left: 24%;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}

.ig-profile-tabs button.active {
  color: #0a3d91;
}

.ig-profile-tabs button.active::after {
  background: linear-gradient(90deg, #7b1fa2, #1d5fd0);
}

.ig-tab-icon {
  color: currentColor;
  font-size: 21px;
  line-height: 1;
}

.ig-profile-content {
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.ig-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.ig-profile-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border: 0;
  background: #e9edf3;
  cursor: pointer;
}

.ig-profile-tile img,
.ig-profile-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-profile-tile video {
  background: #111827;
}

.ig-profile-tile .ig-tile-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 10px;
}

.ig-profile-tile .ig-reel-mark {
  position: absolute;
  top: 7px;
  right: 8px;
  z-index: 2;
  color: #fff;
  font-size: 17px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65));
}

.ig-profile-empty {
  display: grid;
  min-height: 310px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 36px 26px;
  color: #667085;
  text-align: center;
}

.ig-profile-empty[hidden] {
  display: none;
}

.ig-profile-empty-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #d8e0eb;
  border-radius: 50%;
  background: #fff;
  color: #1d5fd0;
  font-size: 26px;
}

.ig-profile-empty strong {
  color: #172033;
  font-size: 16px;
}

.ig-profile-empty span {
  max-width: 290px;
  font-size: 12px;
  line-height: 1.55;
}

.ig-profile-empty button {
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: #1d5fd0;
  cursor: pointer;
  font: 750 12px var(--font);
}

/* O seletor de arquivo da nova publicacao fica reduzido ao unico botao +. */
.comm-media-simple {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comm-media-plus {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid #cddaf0;
  border-radius: 50%;
  background: #eff5ff;
  color: #0a3d91;
  cursor: pointer;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  transition: transform .18s ease, background .18s ease;
}

.comm-media-plus:active {
  transform: scale(.92);
  background: #e1ecff;
}

.comm-media-simple-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.comm-media-simple-copy strong {
  overflow: hidden;
  color: #25324a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comm-media-simple-copy span {
  color: #8b95a6;
  font-size: 10px;
}

#set_bio {
  max-width: 52%;
}

@media (min-width: 760px) {
  .ig-profile-shell {
    margin-top: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 370px) {
  .ig-profile-summary {
    padding-right: 14px;
    padding-left: 14px;
  }

  .ig-profile-overview {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .ig-avatar-ring {
    width: 76px;
    height: 76px;
  }

  .ig-profile-avatar {
    width: 69px;
    height: 69px;
    font-size: 24px;
  }

  .ig-profile-stats strong {
    font-size: 17px;
  }

  .ig-profile-stats span {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ig-profile-icon-btn,
  .ig-edit-profile,
  .comm-media-plus {
    transition: none;
  }
}
.ig-profile-achievements{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 4px}
.ig-profile-achievements[hidden]{display:none!important}
.ig-achievement-medal{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 8px;border:1px solid #e6d6a8;border-radius:7px;background:#fffaf0;color:#735519;font-size:10px;font-weight:700;line-height:1.2}
.ig-achievement-medal span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ig-achievements-empty{color:#65758a;font-size:11px}
.ig-achievements-toggle{display:block;margin:4px 0 10px;padding:5px 0;border:0;background:transparent;color:#486487;font:600 11px var(--font);cursor:pointer}
