/* Public layout only; all colours resolve to the existing site's palette. */
.consent-panel {
  --consent-bg: var(--paper);
  --consent-text: var(--ink);
  --consent-primary: var(--color-primary, var(--primary));
  --consent-border: var(--color-muted, var(--input-border));
  box-sizing: border-box; color: var(--consent-text); background: var(--consent-bg);
  border: 1px solid var(--consent-border); border-radius: 4px; padding: 24px;
  font: 400 16px/1.55 sans-serif; text-align: left;
}
.consent-panel[hidden], .consent-controls [hidden] { display: none; }
#consent-banner { position: fixed; z-index: 1100; bottom: 20px; right: 20px; width: min(620px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 6px 28px #0002; }
.consent-panel h2 { color: inherit; font: 600 24px/1.25 sans-serif; letter-spacing: normal; margin: 0 0 12px; }
.consent-panel p { color: inherit; font-size: 16px; line-height: 1.55; margin: 0 0 18px; }
.consent-panel a { color: var(--consent-primary); text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--consent-primary); color: var(--consent-primary); background: var(--consent-bg); font: 600 15px/1.4 sans-serif; cursor: pointer; }
.consent-actions button:hover { color: var(--consent-bg); background: var(--consent-primary); }
.consent-panel :focus-visible { outline: 3px solid var(--consent-primary); outline-offset: 3px; }
#consent-dialog { position: fixed; inset: 0; margin: auto; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
#consent-dialog::backdrop { background: #0008; }
.consent-option { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--consent-border); font-size: 16px; line-height: 1.55; }
.consent-option input { appearance: auto; flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--consent-primary); }
.consent-option strong { display: block; }
.consent-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.consent-controls button { font: inherit; font-size: 14px; color: inherit; background: transparent; border: 0; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.consent-controls button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 650px) {
  #consent-banner { bottom: max(12px, env(safe-area-inset-bottom)); right: 12px; width: calc(100% - 24px); padding: 18px; }
  .consent-actions button { flex: 1 1 180px; }
}
