.analytics-privacy-trigger {
    position: fixed;
    z-index: 80;
    inset-inline-start: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 44px;
    border: 1px solid #d5e4dc;
    border-radius: 999px;
    padding: 8px 13px;
    color: #f7fff9;
    background: #14392f;
    box-shadow: 0 6px 24px #102d2733;
    font: 600 12px/1.3 system-ui, sans-serif;
}
.analytics-privacy-trigger:hover { background: #0b4a39; }
.analytics-privacy-trigger:focus-visible,
.analytics-consent-actions button:focus-visible { outline: 3px solid #cfb01a; outline-offset: 3px; }
.analytics-consent-panel {
    position: fixed;
    z-index: 81;
    inset-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 54px);
    box-sizing: border-box;
    max-width: 680px;
    max-height: calc(100dvh - max(16px, env(safe-area-inset-bottom)) - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px;
    border: 1px solid #c9d8d1;
    border-radius: 14px;
    color: #eaf3ef;
    background: #10251f;
    box-shadow: 0 18px 56px #071a15a6;
    font: 14px/1.6 system-ui, sans-serif;
}
.analytics-consent-panel[hidden], .analytics-privacy-trigger[hidden] { display: none; }
.analytics-consent-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: center; }
.analytics-consent-heading h2 { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.analytics-consent-status { color: #9ade64; font: 700 10px/1.4 ui-monospace, monospace; letter-spacing: .12em; }
.analytics-consent-panel > p { margin-top: 10px; color: #c1d2cb; font-size: 12px; }
.analytics-consent-panel .analytics-consent-message { min-height: 20px; color: #d6e5de; }
.analytics-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.analytics-consent-actions button { min-height: 44px; border: 1px solid #69877b; border-radius: 7px; padding: 9px 14px; color: #f7fff9; background: #1b3d32; font-size: 12px; font-weight: 700; }
.analytics-consent-actions .analytics-consent-allow { color: #10251f; background: #b6e77b; border-color: #b6e77b; }
.analytics-consent-actions button:hover { filter: brightness(1.1); }
.analytics-consent-actions button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) {
    .analytics-privacy-trigger { inset-inline-start: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); }
    .analytics-consent-panel {
        inset-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + 54px);
        padding: 16px;
    }
    .analytics-consent-actions button { flex: 1 1 100%; }
}
