:root{--shell-max:1240px;--shell-pad:64px}
@media(min-width:1600px){:root{--shell-max:1380px}}
@media(max-width:850px){:root{--shell-pad:32px}}
@media(max-width:600px){:root{--shell-pad:24px}}
body{padding-bottom:var(--analytics-space,0)}
/* Footer control: matches the adjacent footer links. */
.analytics-preferences{font:inherit;color:inherit;background:none;border:0;padding:0;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;cursor:pointer}
.analytics-preferences:hover{color:var(--brass)}
/* Consent bar: one compact row aligned to the .shell content edges. */
.analytics-panel{position:fixed;bottom:0;left:0;right:0;z-index:10;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px 32px;background:var(--paper);color:var(--muted);border-top:1px solid var(--rule);padding:14px max(var(--shell-pad),calc((100% - var(--shell-max))/2 + var(--shell-pad)));max-height:50vh;overflow:auto;font-size:15px;line-height:1.5;transition:background-color .28s cubic-bezier(.22,1,.36,1),color .28s cubic-bezier(.22,1,.36,1)}
.analytics-panel[hidden],.analytics-preferences[hidden]{display:none}
.analytics-panel h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.analytics-panel p{margin:0;max-width:none}
.analytics-panel p a{color:var(--ink)}
.analytics-panel p a:hover{color:var(--brass)}
/* Decline and Allow share one style, borrowed from the theme toggle, so neither choice is favored. */
.analytics-actions{display:flex;gap:12px}
.analytics-actions button{font:inherit;font-size:16px;color:var(--ink);background:transparent;border:1px solid var(--rule);border-radius:10px;min-width:104px;min-height:48px;padding:8px 22px;cursor:pointer;transition:background-color .2s cubic-bezier(.22,1,.36,1),border-color .2s cubic-bezier(.22,1,.36,1),color .2s cubic-bezier(.22,1,.36,1)}
.analytics-actions button:hover{background:var(--surface-hover);border-color:var(--brass);color:var(--brass)}
.analytics-actions button:focus-visible,.analytics-preferences:focus-visible{outline:3px solid var(--brass);outline-offset:6px}
.footer-links{flex-wrap:wrap}
@media(max-width:600px){
  .analytics-panel{grid-template-columns:minmax(0,1fr);gap:12px;padding-block:14px 16px;font-size:14px}
  .analytics-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .analytics-actions button{min-width:0}
  .footer-links{gap:10px 20px}
}

.analytics-actions button:disabled { opacity: .65; cursor: not-allowed; }
