/* Optional analytics controls share the site's colors and work in both themes. */
.analytics-preferences{display:block;border:0;background:none;color:var(--muted);font:inherit;text-align:left;padding:8px 0;min-height:44px;cursor:pointer}
.analytics-preferences:hover{text-decoration:underline;color:var(--blue)}
.analytics-consent[hidden]{display:none}
.analytics-consent{position:fixed;z-index:110;bottom:18px;left:18px;right:18px;max-width:660px;margin-left:auto;padding:20px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 40px #15203930;max-height:80vh;overflow:auto}
.analytics-consent h2{font-size:18px;margin:0 0 8px;letter-spacing:0}
.analytics-consent p{font-size:14px;line-height:1.55;margin:8px 0}
.analytics-consent a{color:var(--blue);text-decoration:underline}
.analytics-consent-status{font-size:12px!important;color:var(--muted)}
.analytics-consent-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.analytics-consent-actions button{flex:1;min-width:150px;min-height:44px;border:1px solid var(--blue);border-radius:8px;background:var(--surface);color:var(--blue);padding:10px 14px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.analytics-consent-actions button:hover{background:var(--tint)}
@media(max-width:600px){.analytics-consent{bottom:10px;left:10px;right:10px;padding:16px}.analytics-consent-actions{gap:8px}.analytics-consent-actions button{min-width:120px}}
