.cookie-consent[hidden] { display: none; }
.cookie-consent { position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); left: max(1rem, env(safe-area-inset-left)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; width: min(900px, calc(100% - 2rem)); margin-inline: auto; padding: 1.25rem 1.4rem; border: 1px solid var(--theme-line, #dce4ed); border-radius: 14px; background: var(--theme-surface, #fff); color: var(--theme-text, #22313f); box-shadow: 0 18px 55px rgba(11, 31, 51, .24); }
.cookie-consent-copy .eyebrow { margin: 0 0 .2rem; color: var(--theme-accent, #0f6e6e); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cookie-consent-copy h2 { margin: 0 0 .35rem; color: var(--theme-ink, #14294b); font-size: 1.15rem; }
.cookie-consent-copy p:not(.eyebrow) { margin: 0 0 .45rem; color: var(--theme-muted, #52677b); font-size: .84rem; line-height: 1.5; }
.cookie-consent-copy > a { color: var(--theme-accent, #0f6e6e); font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.cookie-consent-actions { display: grid; min-width: 205px; gap: .55rem; }
.cookie-consent-actions .btn { min-height: 42px; justify-content: center; white-space: nowrap; }
.footer-cookie-settings { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.footer-cookie-settings:hover, .footer-cookie-settings:focus-visible { color: #fff; text-decoration: underline; }
.privacy-page { max-width: 960px; padding-block: clamp(2rem, 5vw, 4rem); }
.privacy-page h1 { margin: .4rem 0 0; color: var(--theme-ink, #14294b); font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; }
.privacy-page h2 { margin: 2rem 0 .5rem; color: var(--theme-ink, #14294b); font-size: 1.4rem; }
.privacy-page p { max-width: 78ch; line-height: 1.75; }
.privacy-page .privacy-updated { color: var(--theme-muted, #52677b); font-size: .88rem; }
.privacy-page a { color: var(--theme-accent, #0f6e6e); font-weight: 650; }
.site-analytics .admin-heading p:not(.eyebrow) { margin: .35rem 0 0; color: var(--theme-muted, #52677b); }
.analytics-privacy-note { margin: 1rem 0 1.25rem; padding: .8rem 1rem; border-left: 3px solid var(--theme-accent, #0f6e6e); background: var(--theme-soft, #f5f7fa); color: var(--theme-text, #22313f); font-size: .88rem; }
.analytics-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.analytics-kpis article { display: grid; gap: .25rem; padding: 1rem; border: 1px solid var(--theme-line, #dce4ed); border-radius: 8px; background: var(--theme-surface, #fff); }
.analytics-kpis article span { color: var(--theme-muted, #52677b); font-size: .8rem; }
.analytics-kpis article strong { color: var(--theme-ink, #14294b); font-size: 1.6rem; line-height: 1.2; }
.analytics-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.analytics-report-card { min-width: 0; padding: 1rem; border: 1px solid var(--theme-line, #dce4ed); border-radius: 8px; background: var(--theme-surface, #fff); }
.analytics-report-card h2 { margin: 0 0 .9rem; color: var(--theme-ink, #14294b); font-size: 1.05rem; }
.analytics-report-card .admin-table-wrap { margin: 0; }
.analytics-report-card .admin-table { min-width: 0; }
.analytics-report-card .admin-table td:first-child { overflow-wrap: anywhere; }
.analytics-report-card progress { width: 100%; height: .65rem; accent-color: var(--theme-accent, #0f6e6e); }
.analytics-empty { color: var(--theme-muted, #52677b); }
@media (max-width: 680px) {
    .analytics-report-grid { grid-template-columns: 1fr; }
    .cookie-consent { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
    .cookie-consent-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
    .cookie-consent-actions .btn { padding-inline: .55rem; font-size: .78rem; white-space: normal; }
}
@media (max-width: 410px) {
    .cookie-consent-actions { grid-template-columns: 1fr; }
}
