/* Both page shells keep the footer after the content, including empty reports. */
body.app-shell, body.public-site { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.app-shell > main, .public-site > main { flex: 1 0 auto; min-width: 0; width: 100%; }
.app-shell > .nav, .public-site > .nav, .site-footer { flex-shrink: 0; }
.site-footer { margin-top: auto; border-top: 1px solid var(--border, #dce6e0); }
.app-shell > .site-footer { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--workspace-gutter, 1rem); }
.site-footer .public-footer { border-top: 0; }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; padding-block: .75rem; font-size: .875rem; color: var(--muted); }
.legal-links > a, .legal-links > button { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem 0; color: inherit; overflow-wrap: anywhere; }
.legal-links button { font: inherit; cursor: pointer; background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; }
.legal-links > a:hover, .legal-links > button:hover { color: var(--accent); }
.public-site .legal-links { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

.consent-panel { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 720px; margin: auto; padding: 1.25rem; background: var(--surface, #fff); color: var(--text, #17212b); border: 1px solid var(--border, #cbd5e1); border-radius: 16px; box-shadow: 0 12px 50px #0003; z-index: 10000; }
.consent-panel[hidden] { display: none; }
.consent-panel h2, .public-site .consent-panel h2 { margin: 0 0 .6rem; font-size: 1.2rem; }
.consent-panel p { margin: .5rem 0; }
.consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.consent-actions .btn { flex: 1; min-width: 140px; }
.consent-panel label { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; }
.consent-panel input[type=checkbox] { width: 18px; height: 18px; }
@media (max-width: 600px) { .public-site .legal-links { width: calc(100% - 32px); } }
@media (max-width: 500px) {
  .consent-panel { max-height: 85vh; overflow: auto; bottom: .5rem; left: .5rem; right: .5rem; }
  .consent-actions { gap: .4rem; }
  .consent-actions .btn { min-width: 120px; }
}
