/* v523 · conserva el logo original y hace más discreto el control del tema. */
html body header.topbar .brand#brandTap .brand-logo {
  transform-origin: 50% 22% !important;
  animation: tv-v523-mark-sway 15.2s ease-in-out 1.7s infinite !important;
}

/* El PNG de ojos cerrados solo se ve dentro de la zona de los ojos. */
html body header.topbar .brand#brandTap .brand-logo > img#brandLogoBlinkV519 {
  clip-path: inset(40% 43% 50% 32%) !important;
  filter: none !important;
}

html body header.topbar .brand#brandTap .brand-logo.tv-v519-logo-blinking > img#brandLogoBlinkV519 {
  opacity: 1 !important;
}

@keyframes tv-v523-mark-sway {
  0%, 77%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  80% { transform: translate3d(-.5px,-.2px,0) rotate(-.55deg); }
  83% { transform: translate3d(.5px,.2px,0) rotate(.65deg); }
  86% { transform: translate3d(0,0,0) rotate(0deg); }
}

/* El botón conserva el modo día/noche y su nombre accesible; visualmente queda en un icono. */
html body #themeBtn {
  display: flex !important;
  flex: 0 0 78px !important;
  width: 78px !important;
  min-width: 78px !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 !important;
  gap: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
}

html body #themeBtn .tv-theme-label-v425,
html body #themeBtn .theme-switch-label,
html body #themeBtn .theme-label {
  display: none !important;
}

html body #themeBtn .tv-theme-track-v425,
html body #themeBtn .theme-switch-track,
html body #themeBtn .theme-orb {
  flex: 0 0 auto !important;
  margin: 0 auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html body header.topbar .brand#brandTap .brand-logo {
    animation: none !important;
  }
}
