/* Claudbar · Rendimiento (se carga el último). No cambia cómo se ve nada en pantalla. */

/* Los mensajes que no están a la vista no se dibujan (ni su cristal ni su nube animada). */
#chat-messages > .message, #chat-messages > .agent-card { content-visibility: auto; contain-intrinsic-size: auto 140px; }

/* Capas fijas que se animan: en su propia capa de la tarjeta gráfica, sin repintar el resto. */
html[data-bg="stars"] .app::after, .cb-sky, .live-halo, .lyr-line { will-change: opacity, transform; }
.live-overlay, .lyr { contain: layout paint; }
.live-overlay:not(.show), .lyr:not(.show) { content-visibility: hidden; }

/* Equipos modestos (2-4 núcleos o poca memoria, p. ej. Intel Celeron): las estrellas y el halo dejan de
   titilar/moverse (se ven iguales, quietas). Así el cristal no tiene que volver a desenfocarse 60 veces por segundo. */
html.cb-lite[data-bg="stars"] .app::after, html.cb-lite .cb-sky *, html.cb-lite .live-halo, html.cb-lite .bg-live-aurora::before, html.cb-lite .bg-live-aurora::after,
html.cb-lite .bg-live-clouds::before, html.cb-lite .bg-live-clouds::after, html.cb-lite .bg-live-stars::before { animation: none !important; }
html.cb-lite[data-bg="stars"] .app::after { opacity: .8; }
