.analytics-preferences {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1095;
    width: min(460px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.25rem;
    border: 1px solid #00c9ff;
    border-radius: 14px;
    background: #242424;
    box-shadow: 0 8px 32px #0008;
    color: #fff;
    font-family: inherit;
}
.analytics-preferences[hidden] { display: none; }
.analytics-preferences h2 { margin: 0 0 .75rem; color: #00c9ff; font-size: 1.2rem; }
.analytics-preferences p { margin: 0 0 .75rem; font-size: .95rem; line-height: 1.5; }
.analytics-preferences .analytics-preferences-detail { color: #ccc; font-size: .85rem; }
.analytics-preferences-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.analytics-preferences-actions button { min-height: 44px; padding: .55rem .8rem; border: 1px solid #00c9ff; border-radius: 7px; background: #00c9ff; color: #10212a; font-weight: 600; }
.analytics-preferences-actions button[data-analytics-choice="rejected"] { background: transparent; color: #fff; }
.analytics-preferences-actions button:disabled { cursor: wait; opacity: .6; }
.analytics-preferences-actions a { color: #00c9ff; font-size: .85rem; }
.analytics-preferences-actions :focus-visible, .analytics-preferences-link:focus-visible { outline: 3px solid #ffff00; outline-offset: 3px; }
.analytics-preferences .analytics-preferences-status { margin: .75rem 0 0; font-size: .85rem; }
.analytics-preferences-status:empty { display: none; }
.analytics-preferences-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; }
@media (max-width: 600px) {
    .analytics-preferences { top: 1rem; bottom: auto; }
}
