#gf-statistics-choice[hidden], #gf-statistics-settings[hidden] { display: none; }
#gf-statistics-choice {
    position: fixed;
    inset: auto auto 1rem 1rem;
    z-index: 100000;
    width: min(30rem, calc(100% - 2rem));
    box-sizing: border-box;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1.15rem 1.35rem;
    background: #fff;
    color: #222;
    border: 1px solid #555;
    border-radius: .3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.24);
    font: 1rem/1.45 system-ui, sans-serif;
}
#gf-statistics-choice h2 { margin: 0 0 .5rem; font: bold 1.25rem/1.25 system-ui, sans-serif; color: #222; }
#gf-statistics-choice p { margin: 0 0 .7rem; font: inherit; color: inherit; }
#gf-statistics-choice a { color: #701c27; text-decoration: underline; }
.gf-statistics-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.gf-statistics-actions button {
    flex: 1 1 7rem;
    min-height: 44px;
    border-radius: .2rem;
    border: 1px solid #444;
    background: #fff;
    color: #222;
    font: 600 1rem/1.3 system-ui, sans-serif;
    cursor: pointer;
}
.gf-statistics-actions button:hover, .gf-statistics-actions button:focus-visible { background: #eee; }
.gf-statistics-actions button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
#gf-statistics-settings { font: inherit; color: inherit; background: transparent; border: none; cursor: pointer; text-decoration: underline; padding: .2rem; }
#gf-statistics-choice :focus-visible, #gf-statistics-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
