/* PRSXA / Pearl AI finish layer (pak-212, pux-) */
.pux-sink{position:fixed;width:0;height:0;overflow:hidden;pointer-events:none;left:-9999px;top:0}
.pux-probe{position:fixed!important;left:-12000px!important;top:0!important;height:820px!important;border:0!important;opacity:0!important;pointer-events:none!important;visibility:visible}

/* progress card while a chart, slides, sheet, quiz or diagram is written */
.pux-make{display:flex;align-items:center;gap:12px;margin:10px 0;padding:12px 14px;border:1px solid rgba(49,97,232,.22);border-radius:14px;background:linear-gradient(180deg,rgba(49,97,232,.06),rgba(49,97,232,.02));position:relative;overflow:hidden;max-width:560px}
.pux-make-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#3161E8;background:rgba(49,97,232,.12)}
.pux-make-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.pux-make-t b{font-size:14px;font-weight:600;color:inherit}
.pux-make-t small{font-size:12.5px;opacity:.72}
.pux-make-bar{position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(49,97,232,.12)}
.pux-make-bar i{position:absolute;top:0;bottom:0;width:30%;background:#3161E8;border-radius:2px;animation:puxbar 1.4s ease-in-out infinite}
@keyframes puxbar{0%{left:-30%}100%{left:100%}}
.pux-make.is-done{border-color:rgba(18,183,106,.3);background:rgba(18,183,106,.06)}
.pux-make.is-done .pux-make-ic{color:#0E9F6E;background:rgba(18,183,106,.14)}
@media (prefers-reduced-motion:reduce){.pux-make-bar i{animation:none;left:0;width:100%;opacity:.4}}

/* finished answer: the code of a chart / slides block stays hidden until its card is drawn */
.md-code[data-pux-wait] pre{display:none!important}
.md-code[data-pux-wait]::after{content:"Preparing\2026";display:block;padding:10px 14px;font-size:12.5px;opacity:.7}

/* website self-check under the answer */
.pux-chk{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0 2px;padding:10px 12px;border-radius:12px;border:1px solid rgba(100,116,139,.25);background:rgba(100,116,139,.05);font-size:13px;max-width:640px}
.pux-chk-ic{flex:none;width:28px;height:28px;border-radius:8px;display:grid;place-items:center}
.pux-chk-t{display:flex;flex-direction:column;gap:1px;flex:1 1 220px;min-width:0}
.pux-chk-t b{font-weight:600}
.pux-chk-t small{opacity:.72;font-size:12px;overflow:hidden;text-overflow:ellipsis}
.pux-chk.is-run .pux-chk-ic{color:#3161E8;background:rgba(49,97,232,.1);animation:puxpulse 1.2s ease-in-out infinite}
@keyframes puxpulse{50%{opacity:.5}}
.pux-chk.is-ok{border-color:rgba(18,183,106,.3);background:rgba(18,183,106,.06)}
.pux-chk.is-ok .pux-chk-ic{color:#0E9F6E;background:rgba(18,183,106,.14)}
.pux-chk.is-warn{border-color:rgba(245,158,11,.4);background:rgba(245,158,11,.07)}
.pux-chk.is-warn .pux-chk-ic{color:#B45309;background:rgba(245,158,11,.16)}
.pux-chk button{font:inherit;font-size:12.5px;font-weight:600;border-radius:999px;padding:6px 12px;cursor:pointer;border:1px solid rgba(100,116,139,.35);background:transparent;color:inherit;display:inline-flex;align-items:center;gap:4px;min-height:32px}
.pux-chk button:focus-visible{outline:2px solid #3161E8;outline-offset:2px}
.pux-chk .pux-chk-fix,.pux-chk .pux-chk-now{background:#3161E8;border-color:#3161E8;color:#fff}
.pux-chk-more[aria-expanded="true"] svg{transform:rotate(180deg)}
.pux-chk-list{flex:1 1 100%;margin:4px 0 0;padding:0 0 0 18px;display:flex;flex-direction:column;gap:4px;font-size:12.5px;line-height:1.45}
.pux-chk-list[hidden]{display:none}
.pux-chk-auto{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:8px;border-top:1px dashed rgba(100,116,139,.3)}
.pux-chk-auto span{flex:1 1 200px}
@media (max-width:520px){.pux-chk{padding:10px}.pux-chk button{flex:1 1 auto;justify-content:center}}
[data-theme="dark"] .pux-make,.dark .pux-make{border-color:rgba(122,154,255,.3);background:rgba(122,154,255,.07)}
[data-theme="dark"] .pux-make-ic,.dark .pux-make-ic{color:#9db4ff}
[data-theme="dark"] .pux-chk,.dark .pux-chk{border-color:rgba(148,163,184,.3)}
