.analytics-panel[hidden], .analytics-settings[hidden] { display: none !important; }
.analytics-panel {
    position: fixed; z-index: 100; bottom: 18px; left: 18px;
    width: min(600px, calc(100% - 36px)); max-height: calc(100dvh - 36px);
    overflow-y: auto; box-sizing: border-box; padding: 24px;
    background: #fbfaf7; color: #20212a; border: 1px solid #c8c0f7;
    border-radius: 14px; box-shadow: 0 8px 35px #20212a26;
    font: 14px/1.6 "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
.analytics-panel h2 { margin: 0 0 12px; padding: 0; border: 0; color: #20212a; font: 600 21px/1.2 "Segoe UI", Arial, sans-serif; letter-spacing: -.02em; }
.analytics-panel p { margin: 10px 0; color: #50515b; font-size: 14px; line-height: 1.6; }
.analytics-panel a { color: #493bc9; text-decoration: underline; text-underline-offset: 3px; }
.analytics-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.analytics-buttons button, .analytics-settings {
    box-sizing: border-box; cursor: pointer; background: white; color: #493bc9;
    border: 1px solid #5145e5; border-radius: 7px; padding: 12px 16px;
    font: 600 14px/1.4 "Segoe UI", Arial, sans-serif; min-height: 44px;
}
.analytics-buttons button:hover, .analytics-settings:hover { background: #eeecff; }
.analytics-panel :focus-visible, .analytics-settings:focus-visible { outline: 3px solid #5145e5; outline-offset: 3px; }
.analytics-panel .analytics-status { font-size: 12px; margin-bottom: 0; }
.analytics-settings { position: fixed; z-index: 99; bottom: 16px; left: 16px; box-shadow: 0 3px 12px #20212a14; font-size: 12px; }
.analytics-no-js { padding: 12px 24px; text-align: center; color: #50515b; font-size: 12px; }
@media (max-width: 480px) {
    .analytics-panel { padding: 20px; }
    .analytics-buttons { gap: 10px; }
    .analytics-buttons button { padding: 12px 8px; }
}
