/* Profile surfaces follow the compact X header and the Instagram media grid. */
.account-page {
  min-height:100%;
  overflow-x:clip;
}
.profile-empty { display:grid; justify-items:center; gap:10px; padding:42px 18px 56px; color:var(--muted); text-align:center; }
.profile-photo-count { color:var(--muted); font-weight:500; }
.profile-empty .empty { margin:0; }
.profile-guest-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.account-page .profile-cover,
.account-page .profile-summary,
.account-page .profile-tabs,
.account-page .profile-posts,
.account-page .account-empty,
.account-page .profile-guest,
.account-page .profile-form {
  width:min(100%, 640px);
  margin-inline:auto;
}
.account-page .profile-tabs {
  position:sticky;
  top:54px;
  z-index:1;
  background:var(--paper);
}
.profile-tabs .profile-tab {
  position:relative;
  min-height:48px;
  flex:1;
  color:var(--muted);
  border:0;
  border-radius:0;
  background:transparent;
  font-weight:650;
}
.profile-tabs .profile-tab[aria-selected="true"] {
  color:var(--ink);
  font-weight:800;
}
.profile-tabs .profile-tab[aria-selected="true"]::after {
  content:"";
  position:absolute;
  right:24%;
  bottom:-1px;
  left:24%;
  height:3px;
  border-radius:3px 3px 0 0;
  background:var(--blue);
}
.profile-media {
  grid-template-columns:repeat(3,minmax(0,1fr));
  background:var(--paper);
}
.profile-media .profile-tile-link {
  background:var(--paper);
}
.profile-media .profile-tile-link:focus-visible {
  position:relative;
  z-index:1;
  outline-offset:-3px;
}
.profile-photo-origin .profile-cover {
  display:none;
}
.profile-photo-origin .profile-summary {
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  column-gap:14px;
  align-items:start;
  padding-block:18px 10px;
}
.profile-photo-origin .profile-topline { display:contents; }
.profile-photo-origin .profile-topline > .avatar {
  grid-column:1;
  grid-row:1 / 4;
  width:64px;
  margin:0;
  border-width:1px;
}
.profile-photo-origin .profile-summary > :not(.profile-topline) { grid-column:2; }
.profile-photo-origin .profile-actions { grid-column:1 / -1; grid-row:6; margin-top:2px; }
.profile-photo-origin .profile-identity {
  grid-row:1;
  margin:0;
}
.profile-photo-origin .profile-identity h2 {
  font-size:1.1rem;
}
.profile-photo-origin .profile-bio,
.profile-photo-origin .profile-count,
.profile-photo-origin .profile-kind {
  font-size:.82rem;
}
@media (min-width:701px) {
  .account-page .profile-cover { border-radius:0; }
  .account-page .profile-summary { padding-inline:22px; }
  .account-page .profile-posts { border-inline:1px solid var(--edge); }
  .account-page .profile-tabs { border-inline:1px solid var(--edge); }
}
@media (max-width:700px) {
  .profile-empty { padding-block:34px 46px; }
  .account-page .profile-tabs { top:calc(54px + env(safe-area-inset-top)); }
  .profile-tabs .profile-tab[aria-selected="true"]::after { right:18%; left:18%; }
}
