.analytics-consent[hidden], .analytics-settings[hidden] { display: none; }
.analytics-consent {
    position: fixed;
    z-index: 2000;
    inset-inline: max(0.75rem, env(safe-area-inset-left), env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    max-width: 28rem;
    max-height: 70svh;
    margin-inline: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    display: grid;
    gap: 0.375rem;
    padding: 0.75rem 1rem 1rem;
    border: 1px solid #56614c;
    border-radius: 0.75rem;
    background: #171b13;
    color: #f5f5ea;
    box-shadow: 0 0.5rem 2rem #0009;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.45;
    text-align: start;
}
.analytics-summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    list-style: none;
    cursor: pointer;
}
.analytics-summary::-webkit-details-marker { display: none; }
.analytics-consent .analytics-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    overflow-wrap: anywhere;
}
.analytics-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 44%;
    flex-shrink: 0;
    color: #cbd3be;
    font-size: 0.8125rem;
    font-weight: 400;
}
.analytics-more svg { flex-shrink: 0; }
.analytics-summary:hover .analytics-more { text-decoration: underline; text-underline-offset: 3px; }
.analytics-details[open] .analytics-more svg { transform: rotate(180deg); }
.analytics-copy {
    display: grid;
    gap: 0.75rem;
    padding-block: 0.5rem 0.75rem;
    color: #cbd3be;
    font-size: 0.8125rem;
    line-height: 1.5;
}
.analytics-consent .analytics-copy p { margin: 0; color: inherit; }
.analytics-consent .analytics-copy a { color: #ccff00; text-decoration: underline; text-underline-offset: 3px; }
.analytics-preferences {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 0.75rem;
}
.analytics-basic { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; cursor: pointer; }
.analytics-basic input { width: 1.125rem; height: 1.125rem; flex-shrink: 0; margin: 0; accent-color: #ccff00; }
.analytics-consent .analytics-status { margin: 0; color: #cbd3be; font-size: 0.75rem; }
.analytics-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.analytics-consent .analytics-actions button {
    border: 1px solid #707a66;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: #262d21;
    color: #f5f5ea;
    font: inherit;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
    min-height: 44px;
    min-width: 0;
}
.analytics-actions button:hover:not(:disabled) { background: #333d2c; }
.analytics-actions button:disabled { opacity: 0.5; cursor: default; }
.analytics-settings {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}
.analytics-settings:hover { text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent :focus-visible, .analytics-settings:focus-visible {
    outline: 3px solid #ccff00;
    outline-offset: 3px;
}
@media print { .analytics-consent, .analytics-settings { display: none; } }
