.statistics-choice{max-width:72rem;margin:1.5rem auto 0;padding:0 1.25rem;font-size:.9rem;line-height:1.55;color:var(--muted,#536072)}
.statistics-choice[hidden],.statistics-choice [hidden]{display:none!important}
.statistics-choice summary{cursor:pointer;min-height:44px;display:list-item;width:fit-content;padding:.6rem 0}
.statistics-choice p{max-width:62ch;margin:.6rem 0}
.statistics-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}
.statistics-actions button{font:inherit;color:inherit;background:transparent;border:1px solid currentColor;border-radius:.5rem;padding:.6rem .8rem;min-height:44px;cursor:pointer}
.statistics-choice :focus-visible{outline:3px solid #285da4;outline-offset:3px}
.statistics-prompt{position:fixed;z-index:35;--statistics-bottom:max(calc(1rem + env(safe-area-inset-bottom)),calc(var(--statistics-taskbar-space,0px) + .5rem));inset:auto 1rem var(--statistics-bottom);box-sizing:border-box;width:auto;max-width:48rem;max-height:calc(100dvh - var(--statistics-bottom) - 1rem);overflow:auto;margin:0 auto;padding:.85rem 1rem;border:1px solid var(--line,#d5dce6);border-radius:.75rem;background:var(--surface,#fff);color:var(--ink,#172033);box-shadow:0 4px 24px #0002}
.statistics-prompt h2{margin:0;font-size:1rem;line-height:1.4}
.statistics-prompt p{max-width:85ch}
.statistics-prompt .statistics-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));margin:.75rem 0 0}
.statistics-prompt .statistics-actions button{min-width:0;min-height:44px;overflow-wrap:anywhere}
@media(max-width:959px){body.has-taskbar .statistics-prompt{--statistics-taskbar-space:calc(68px + env(safe-area-inset-bottom))}}
@media(max-width:379px){.statistics-prompt{left:.5rem;right:.5rem;padding:.75rem}.statistics-prompt .statistics-actions button{padding:.6rem .35rem}}
@media print{.statistics-choice{display:none!important}}

/* On phones the compact choice scrolls with the document and never covers a model. First-visit choice: equal 44px controls; the long explanation remains in footer settings. */
@media(max-width:600px){.statistics-prompt{position:static;inset:auto;max-height:none;width:calc(100% - 1rem);margin:.5rem auto;padding:.6rem .75rem}.statistics-prompt h2{font-size:.9rem;line-height:1.3}.statistics-prompt .statistics-summary{font-size:.8125rem;line-height:1.35;margin:.3rem 0}.statistics-prompt .statistics-access{font-size:.75rem;line-height:1.3;margin:.2rem 0}.statistics-prompt .statistics-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.4rem 0 0}.statistics-prompt .statistics-actions button{font-size:.875rem;line-height:1.2;padding:.45rem .25rem}}
/* A short landscape viewport cannot spare a fixed overlay. The choice scrolls with the document. */
@media(max-height:450px){.statistics-prompt{position:static;inset:auto;max-height:none;margin:.75rem auto;width:calc(100% - 2rem)}}

.statistics-prompt.statistics-prompt-inline{position:static;inset:auto;max-height:none;margin:.75rem auto;width:calc(100% - 2rem)}
