/* PATCH 017 - Perfil, GPS, notificaciones y header */

#authButton.profile-login-btn{
  display:grid;
  place-items:center;
}

#authButton.profile-login-btn .profile-login-avatar.is-authenticated{
  overflow:hidden;
  background:linear-gradient(135deg,#201f1f,#111);
}

#authButton.profile-login-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.profile-login-initials{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.08em;
}

.gps-focus-toggle-svg{
  padding:0;
}

.gps-focus-toggle-svg svg{
  width:18px;
  height:18px;
  stroke:#fff;
  display:block;
}

.gps-people-notice{
  margin-top:8px;
  padding:10px 12px;
  border-radius:14px;
  background:#121212;
  border:1px solid rgba(255,255,255,.08);
  color:#d7d7d7;
  font-size:.76rem;
  line-height:1.35;
}

.gps-people-notice.is-empty{
  color:#a7a7a7;
}

.live-person-icon{
  position:relative;
  width:48px;
  height:48px;
  border-radius:50%;
  background:#171717;
  border:2px solid rgba(255,255,255,.92);
  overflow:hidden;
  box-shadow:0 14px 28px rgba(0,0,0,.28);
}

.live-person-icon img,
.live-person-icon span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  object-fit:cover;
  background:linear-gradient(135deg,#272727,#111);
  color:#fff;
  font-size:.82rem;
  font-weight:900;
}

.live-person-icon b{
  position:absolute;
  right:-2px;
  bottom:-2px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,.14);
  display:grid;
  place-items:center;
  font-size:.65rem;
}

.live-popup-card{
  min-width:190px;
  display:grid;
  gap:7px;
}

.live-popup-card p{
  margin:0;
  color:#555;
  font-size:.78rem;
  line-height:1.35;
}

.live-popup-head{
  display:flex;
  align-items:center;
  gap:10px;
}

.live-popup-head strong{
  display:block;
  font-size:.92rem;
}

.live-popup-head small{
  color:#666;
  font-size:.72rem;
  font-weight:700;
}

.live-popup-avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  overflow:hidden;
  background:#191919;
  display:grid;
  place-items:center;
}

.live-popup-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.live-popup-avatar.fallback{
  color:#fff;
  font-weight:900;
  font-size:.82rem;
}

.profile-hero-card{
  display:grid;
  grid-template-columns:68px minmax(0,1fr);
  gap:12px;
  margin-bottom:14px;
  padding:14px;
  border-radius:18px;
  background:#131313;
  border:1px solid rgba(255,255,255,.08);
}

.profile-hero-avatar{
  width:68px;
  height:68px;
  border-radius:50%;
  overflow:hidden;
  background:linear-gradient(135deg,#282828,#111);
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
}

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

.profile-hero-copy strong{
  display:block;
  margin-bottom:4px;
}

.profile-hero-copy p,
.profile-hero-copy small{
  margin:0;
  color:#b5b5b5;
}

.profile-avatar-editor{
  display:grid;
  gap:12px;
  margin-bottom:6px;
  padding:14px;
  border-radius:18px;
  background:#131313;
  border:1px solid rgba(255,255,255,.08);
}

.profile-avatar-preview{
  width:88px;
  height:88px;
  border-radius:50%;
  overflow:hidden;
  background:linear-gradient(135deg,#282828,#111);
  display:grid;
  place-items:center;
  color:#fff;
  font-size:1rem;
  font-weight:900;
}

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

.profile-avatar-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.profile-avatar-picker{
  position:relative;
  overflow:hidden;
}

.notification-prefs-shell{
  margin-top:14px;
}

.notification-preferences-form{
  display:grid;
  gap:10px;
  margin-top:10px;
  padding:14px;
  border-radius:18px;
  background:#131313;
  border:1px solid rgba(255,255,255,.08);
}

.notification-preferences-form label{
  display:flex;
  align-items:center;
  gap:10px;
  color:#ddd;
  font-size:.9rem;
}

.live-toast-actor{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.live-toast-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  overflow:hidden;
  background:#161616;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
}

.live-toast-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.live-toast-copy{
  display:grid;
  gap:2px;
}

.live-toast-copy strong{
  font-size:.9rem;
}

.live-toast-copy small{
  color:#c8c8c8;
  font-size:.74rem;
  font-weight:700;
}

@media (max-width: 640px){
  .profile-avatar-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .profile-avatar-actions .ghost{
    width:100%;
  }
}
