.analytics-consent[hidden], .analytics-consent [hidden] { display: none; }
.analytics-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 100;
    background: var(--card);
    border-top: 2px solid var(--ink);
    max-height: 60vh;
    max-height: 60svh;
    overflow-y: auto;
    box-shadow: 0 -4px 16px rgb(0 0 0 / 10%);
}
.analytics-consent-inner { max-width: 960px; margin: 0 auto; padding: 20px; }
.analytics-consent h2 { font-size: 1.25rem; margin-bottom: 8px; }
.analytics-consent p { font-size: 0.9rem; margin-bottom: 10px; color: var(--muted); }
.analytics-consent a { color: var(--accent); }
.analytics-consent-details { font-size: 0.9rem; margin-bottom: 8px; }
.analytics-consent-details summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.analytics-consent-details summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.analytics-consent-details p { margin-top: 8px; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.analytics-consent-actions .btn { min-height: 44px; padding: 10px 20px; }
.analytics-preferences {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.analytics-preferences:hover { color: var(--accent); }
.analytics-consent button:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 600px) {
    .analytics-consent-inner { padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .analytics-consent h2 { font-size: 1.1rem; margin-bottom: 4px; }
    .analytics-consent p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 4px; }
    .analytics-consent-details { font-size: 0.85rem; margin-bottom: 6px; }
    .analytics-consent-actions { gap: 8px; }
    .analytics-consent-actions .btn { flex: 1; min-height: 44px; padding: 10px 12px; font-size: 0.85rem; white-space: nowrap; }
}
