.analytics-settings { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: .65rem 0; }
.analytics-panel { position: fixed; z-index: 1000; inset: auto 1rem 1rem auto; width: min(38rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; box-sizing: border-box; padding: clamp(1.1rem, 3vw, 1.7rem); border: 1px solid #173b32; border-radius: 1rem; background: #fffdf7; color: #173b32; box-shadow: 0 .5rem 2rem #0003; font-family: Arial, sans-serif; }
.analytics-panel[hidden], .analytics-settings[hidden] { display: none; }
.analytics-panel h2 { margin: 0 0 .8rem; font-size: clamp(1.15rem, 3vw, 1.5rem); line-height: 1.25; }
.analytics-panel p { margin: .7rem 0; font-size: .95rem; line-height: 1.55; }
.analytics-panel a { color: inherit; text-decoration: underline; }
.analytics-actions { display: flex; gap: .75rem; margin-top: 1.1rem; }
.analytics-actions button { flex: 1; min-height: 48px; padding: .8rem; border: 1px solid #d2aa56; border-radius: 0; background: #d2aa56; color: #173b32; font: 600 .95rem/1.3 Arial, sans-serif; cursor: pointer; }
.analytics-actions button:hover { background: #e2c891; }
.analytics-panel :focus-visible, .analytics-settings:focus-visible { outline: 3px solid #b95b28; outline-offset: 4px; }
@media (max-width: 420px) { .analytics-actions { flex-direction: column; } }
