.analytics-consent {
    position: fixed;
    z-index: 100;
    right: 20px;
    bottom: 20px;
    width: min(460px, calc(100vw - 40px));
    max-height: min(75vh, 600px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--text);
    box-shadow: 0 8px 36px rgba(16, 24, 40, 0.18);
    font-size: 14px;
}
.analytics-consent[hidden] {
    display: none;
}
.analytics-consent h2 {
    font-size: 19px;
    margin: 0 0 8px;
}
.analytics-consent p {
    margin: 0 0 12px;
}
.analytics-consent summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
}
.analytics-consent details p {
    color: var(--text-muted);
}
.analytics-consent a {
    color: var(--accent-strong);
    text-decoration: underline;
}
.analytics-consent [data-analytics-status]:empty {
    display: none;
}
.analytics-consent [data-analytics-status] {
    margin-top: 12px;
    font-size: 13px;
}
.analytics-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.analytics-actions button {
    flex: 1;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-tint);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.analytics-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.analytics-settings {
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent-strong);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.analytics-consent :focus-visible,
.analytics-settings:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
@media (max-width: 480px) {
    .analytics-consent {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        padding: 18px;
    }
}
