/* Shared avatar system */
.atlas-avatar{
  position:relative;
  overflow:hidden;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  background:#edf2f6;
  color:#294057;
}
.atlas-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .2s ease;
}
.atlas-avatar.avatar-loaded img{opacity:1}
.atlas-avatar .avatar-fallback{
  position:relative;
  z-index:0;
  font-weight:750;
  line-height:1;
}
.atlas-avatar.avatar-org img{object-fit:cover}

.avatar{
  overflow:hidden!important;
  background:#edf2f6!important;
}
.avatar.atlas-avatar img{border-radius:50%}
.avatar.atlas-avatar .avatar-fallback{font-family:Georgia,serif}

.mini-avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid rgba(37,61,82,.12);
  font-size:8px;
}
.relation-person,.rec-person,.path-card-person{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
}
.relation-person > span:last-child,
.rec-person > div,
.path-card-person > span:last-child{min-width:0}
.rec-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
}
.path-card{
  display:flex!important;
  align-items:center;
  gap:10px;
}
.path-card > span:last-child{
  min-width:0;
  display:block;
}
.path-card b,.path-card span{pointer-events:none}

@media(max-width:780px){
  .avatar{width:74px!important;height:74px!important}
  .mini-avatar{width:34px;height:34px;font-size:9px}
  .relation,.rec{gap:10px}
  .path-card{min-height:64px!important}
}
.node-avatar-image{
  clip-path:circle(50%);
  pointer-events:none;
}
.node-avatar-ring{pointer-events:none}
.matrix-person-head .mini-avatar{
  width:24px;
  height:24px;
  margin:0 auto 4px;
}
.matrix-head-name{
  display:block!important;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  max-height:46px;
  overflow:hidden;
  font-size:8px;
}
.matrix-row-person{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.matrix-row-person .mini-avatar{
  width:25px;
  height:25px;
  flex:0 0 auto;
}
@media(max-width:780px){
  .matrix-person-head .mini-avatar{width:27px;height:27px}
  .matrix-row-person .mini-avatar{width:30px;height:30px}
  .relation-matrix .row-head{min-width:145px!important;max-width:145px!important}
}
