.profile-library {
  margin-top: 1.35rem;
}

.profile-library-tabs {
  --library-indicator-x: .3rem;
  --library-indicator-width: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.profile-library-indicator {
  position: absolute;
  z-index: 0;
  inset: .3rem auto .3rem 0;
  width: var(--library-indicator-width);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 .38rem 1rem color-mix(in srgb, var(--primary) 28%, transparent);
  transform: translateX(var(--library-indicator-x));
  transition: transform .5s cubic-bezier(.18,.9,.2,1), width .42s cubic-bezier(.18,.82,.2,1), filter .25s ease;
  pointer-events: none;
}

.profile-library-indicator.is-moving {
  filter: saturate(1.06) brightness(1.025);
}

.profile-library-tabs button {
  position: relative;
  z-index: 1;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .28s ease, text-shadow .28s ease;
}

.profile-library-tabs button.is-active {
  color: #fff;
  text-shadow: 0 1px 8px rgba(255,255,255,.22);
}

.profile-library-panel {
  gap: 1rem;
}

.profile-heading h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.profile-origin-badge {
  width: 2rem;
  height: 1.55rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: .55rem;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: 0 .32rem .8rem color-mix(in srgb, #10182f 14%, transparent);
  vertical-align: middle;
}

.profile-origin-badge.is-world {
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.profile-origin-badge svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(1.08);
}
