/* Ajustes de accesibilidad sin imponer tipografia ni colores corporativos. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #2058b5 !important;
    outline-offset: 3px !important;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { scroll-behavior: auto !important; }
}
#acella-a11y-debug-panel { position: fixed; z-index: 2147483646; bottom: 16px; right: 16px; width: min(410px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: #fff; color: #111; border: 2px solid #222; border-radius: 10px; padding: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.24); font: 14px/1.45 system-ui, sans-serif; }
#acella-a11y-debug-panel h2 { font: 700 18px/1.3 system-ui,sans-serif; color: #111; margin: 0 0 10px; }
#acella-a11y-debug-panel p { color: #111; margin: 8px 0; }
#acella-a11y-debug-panel button { padding: 8px 10px; background:#173a75; color:#fff; font: 600 13px system-ui,sans-serif; border: 0; border-radius: 4px; margin: 3px; cursor: pointer; }
#acella-a11y-debug-panel button:focus-visible {outline:3px solid #f3b200 !important;}
#acella-a11y-debug-panel pre {white-space:pre-wrap; font: 12px/1.4 monospace; max-height:25vh; overflow:auto;color:#111;}

/* Aislar el panel interno de los estilos de botones del tema y del constructor. */
#acella-a11y-debug-panel button,
#acella-a11y-debug-panel button:hover,
#acella-a11y-debug-panel button:focus {
    background: #173a75 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: 2px solid #173a75 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
#acella-a11y-debug-panel button:focus-visible {
    outline: 3px solid #f3b200 !important;
    outline-offset: 2px !important;
}
@media (max-width: 560px) {
    #acella-a11y-debug-panel {left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 76vh;}
    #acella-a11y-debug-panel button {display: block; width: 100%; margin: 6px 0;}
}
