/* NekoVault V28.0.3.4 — corrections navigation modale, cadrage LoRA et administration */

/* Administration de la barre latérale : centrage strict des trois niveaux */
.admin-nav-button {
  display: grid !important;
  grid-template-rows: auto auto auto !important;
  place-items: center !important;
  align-content: center !important;
  gap: 3px !important;
  min-height: 76px !important;
  padding: 6px 2px !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

.admin-nav-button > svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 auto !important;
  justify-self: center !important;
}

.admin-nav-label {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.05 !important;
}

.admin-local-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  margin: 0 !important;
  padding: 3px 6px !important;
  line-height: 1 !important;
  transform: none !important;
}

/* Compte administrateur du header : aucune inclinaison ou décalage */
.server-account-button {
  position: relative !important;
  top: 0 !important;
  margin: 0 !important;
  transform: none !important;
  vertical-align: middle !important;
}
.server-account-button:hover,
.server-account-button:focus-visible {
  transform: none !important;
}
.server-account-button #serverAccountLabel {
  display: block !important;
  margin: 0 !important;
  transform: none !important;
  line-height: 1 !important;
}

/* Cartes LoRA de l'accueil : priorité au visage plutôt qu'au buste */
.trend-lora-mini {
  overflow: hidden !important;
}
.trend-lora-mini img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1.6 / 1 !important;
  object-fit: cover !important;
  object-position: center 8% !important;
  transform: none !important;
}
.trend-lora-mini[data-nv-lora-name*="merlin"] img { object-position: center 0% !important; }
.trend-lora-mini[data-nv-lora-name*="meliodas"] img { object-position: center 4% !important; }
.trend-lora-mini[data-nv-lora-name*="noelle"] img { object-position: center 12% !important; }
.trend-lora-mini[data-nv-lora-name*="elizabeth"] img { object-position: center 9% !important; }

/* Cartes LoRA de bibliothèque et listes liées */
.lora-card-preview img,
.v26-work-card img,
.v26-card-media img {
  object-position: center 10% !important;
}

/* Le panneau personnage doit toujours s'ouvrir en haut */
#v26CharacterDetailModal .v26-detail-panel {
  scroll-behavior: auto !important;
  overscroll-behavior: contain !important;
}

/* Évite les deux fenêtres superposées lors de l'ouverture d'une LoRA liée */
#v26CharacterDetailModal.nv-transitioning {
  pointer-events: none !important;
}

@media (max-width: 980px) {
  .admin-nav-button {
    min-height: 64px !important;
  }
}
