/* Logo de a063: el nudo de synthos animado (_knot.html + brand.js). La bola con anillos queda para Cloud y Halo. */
/* .knot: el <video> o, en Safari/iPhone, el <img> con knot.avif que pone brand.js */
.knot { display: block; flex: none; object-fit: contain; pointer-events: none; background: transparent; }
.knot-top { width: 50px; height: 50px; margin: -6px; }
.knot-xl { width: 210px; height: 210px; margin: -10px auto 8px; }
.knot-login { width: 150px; height: 150px; margin: 0 auto 6px; }
@media (max-width: 520px) { .knot-xl { width: 170px; height: 170px; } }
/* Tema claro: el nudo es de cristal blanco; sobre fondo claro se ve en oscuro (como en synthos.es) */
[data-theme="light"] .knot { filter: invert(1) contrast(1.05); }
/* al cambiar de tema en Ajustes, los colores se funden (theme.js pone la clase un momento) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease, fill .5s ease, stroke .5s ease !important; }

/* ---------- Barra de desplazamiento Noir (la misma en toda a063; docs/guias/diseno.md, «Barra de desplazamiento») ----------
   Fina (6 px), sin flechas, fondo transparente y pulgar de cristal que se aclara al pasar el ratón; el claro lo pone tema_claro.py.
   Chrome, Edge y la app de escritorio: ::-webkit-scrollbar. Firefox: scrollbar-width/scrollbar-color, SOLO ahí (@supports):
   en Chrome 121+ esas dos propiedades anulan ::-webkit-scrollbar y vuelve la barra gris de Windows con flechas.
   Por eso NUNCA poner scrollbar-width: thin ni scrollbar-color en una caja. Para ocultar una barra:
   scrollbar-width: none + .x::-webkit-scrollbar { display: none }. En móviles (pointer: coarse) queda la del sistema,
   que ya es fina y se esconde sola. */
:root { --sb-thumb: rgba(255, 255, 255, .16); --sb-thumb-hover: rgba(255, 255, 255, .34); }
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  ::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--sb-thumb); }
  ::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: var(--sb-thumb-hover); }
}
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
}


/* ===== TEMA CLARO (generado por web/tema_claro.py: no editar a mano) ===== */
:where([data-theme="light"]) .knot { background: transparent; }
:root:where([data-theme="light"]) { --sb-thumb: rgba(12, 12, 12, .16); --sb-thumb-hover: rgba(12, 12, 12, .34); }
@media (pointer: fine) {
  :where([data-theme="light"]) ::-webkit-scrollbar { background: transparent; }
  :where([data-theme="light"]) ::-webkit-scrollbar-track, :where([data-theme="light"]) ::-webkit-scrollbar-corner { background: transparent; }
  :where([data-theme="light"]) ::-webkit-scrollbar-thumb { background: var(--sb-thumb); }
  :where([data-theme="light"]) ::-webkit-scrollbar-thumb:hover, :where([data-theme="light"]) ::-webkit-scrollbar-thumb:active { background: var(--sb-thumb-hover); }
}
@supports not selector(::-webkit-scrollbar) {
  :where([data-theme="light"]) * { scrollbar-color: var(--sb-thumb) transparent; }
}
