.ac-stat-panel {
    z-index: 80;
    position: fixed;
    left: 16px;
    bottom: 18px;
    box-sizing: border-box;
    width: min(430px, calc(100% - 32px));
    padding: 16px;
    background: #fff;
    color: #163c31;
    border: 1px solid #b5cfc4;
    border-radius: 14px;
    box-shadow: 0 12px 28px #153f3826;
    font: 15px/1.45 system-ui, sans-serif;
}
.ac-stat-panel[hidden] { display: none; }
.ac-stat-panel p { margin: 5px 0 11px; }
.ac-stat-panel > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-stat-panel button, .ac-stat-settings {
    border: 1px solid #699788;
    border-radius: 7px;
    background: #f1f9f5;
    color: #153e32;
    padding: 7px 11px;
    font: 650 .86rem/1.3 system-ui, sans-serif;
    cursor: pointer;
}
.ac-stat-panel a { color: #104837; text-underline-offset: 2px; font-size: .84rem; }
.ac-stat-panel :focus-visible, .ac-stat-settings:focus-visible { outline: 3px solid #267b62; outline-offset: 2px; }
.ac-stat-settings { display: block; width: max-content; margin: 12px auto; }
.ac-stat-settings--floating { position: fixed; bottom: 12px; left: 16px; z-index: 76; }
@media (max-width: 820px) {
    .ac-stat-panel { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
    .ac-stat-settings--floating { bottom: calc(65px + env(safe-area-inset-bottom, 0px)); }
}
