/* Scoped optional Analytics controls; no existing footer or page styles replaced. */
.analytics-settings{appearance:none;background:none;border:0;color:inherit;font:inherit;font-size:12px;min-height:44px;display:inline-flex;align-items:center;padding:0;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:3px}
.analytics-settings:focus-visible,.analytics-consent a:focus-visible,.analytics-consent button:focus-visible{outline:2px solid #2455ee;outline-offset:4px}
.analytics-legacy-preferences{max-width:1200px;margin:0 auto;padding:0 24px;text-align:left}
.analytics-consent[hidden]{display:none!important}
.analytics-consent{position:fixed;inset:auto 20px 20px auto;z-index:90;box-sizing:border-box;width:min(470px,calc(100vw - 40px));padding:22px;background:#fff;color:#132429;border:1px solid #cbd4d8;border-radius:12px;box-shadow:0 8px 35px #13242924;font-family:inherit;font-size:14px;line-height:1.55;max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain}
.analytics-consent h2{font-family:inherit;font-weight:600;font-size:19px;line-height:1.3;letter-spacing:-.01em;margin:0 0 8px}
.analytics-consent p{margin:0 0 12px;max-width:none}
.analytics-consent .analytics-choice-status:empty{display:none}
.analytics-consent .analytics-choice-status{font-weight:600;font-size:13px}
.analytics-consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 10px}
.analytics-consent-actions button{appearance:none;min-height:44px;border:1px solid #2455ee;border-radius:6px;padding:10px 12px;color:#2455ee;background:#fff;font-family:inherit;font-weight:600;font-size:14px;line-height:1.3;cursor:pointer;transition:background-color .15s}
.analytics-consent-actions button:hover{background:#edf1ff}
.analytics-consent .analytics-consent-note{margin-bottom:0;font-size:12px;color:#41515b}
.analytics-consent a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.analytics-privacy{scroll-margin-top:100px}
html:has(#analytics-consent:not([hidden])){scroll-padding-bottom:400px}
body:has(#analytics-consent:not([hidden])){padding-bottom:380px}
body:has(#analytics-consent:not([hidden])) #back-top{visibility:hidden}
@media(max-width:600px){.analytics-consent{inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px;width:auto;padding:17px;max-height:calc(100dvh - 24px)}.analytics-consent h2{font-size:18px}.analytics-consent-actions{gap:8px}.analytics-consent-actions button{padding:10px 8px}.analytics-legacy-preferences{padding:0 20px}}
@media(prefers-reduced-motion:reduce){.analytics-consent-actions button{transition:none}}
