.analytics-consent[hidden], .analytics-workspace[hidden], .analytics-login[hidden] { display: none !important; }
.analytics-consent { position: fixed; z-index: 160; inset: auto 0 0; padding: 18px max(20px, calc((100% - 1200px) / 2)); display: flex; align-items: center; gap: 24px; border-top: 2px solid #176438; background: #fff; box-shadow: 0 -6px 24px #102e1714; color: #183d29; }
.analytics-consent strong { font-size: 16px; }
.analytics-consent p { font: 14px/1.5 "Formidabilii Text", sans-serif; margin: 6px 0 0; max-width: 720px; }
.analytics-consent a { color: #176438; text-decoration: underline; }
.analytics-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.analytics-consent button, .analytics-preferences { font: 600 14px Poppins, sans-serif; cursor: pointer; }
.analytics-consent button { min-height: 46px; padding: 10px 14px; color: #176438; border: 1px solid #176438; border-radius: 6px; background: #f4faf5; }
.analytics-consent button:disabled { opacity: .55; cursor: not-allowed; }
.analytics-preferences { border: 0; background: transparent; text-decoration: underline; color: inherit; padding: 10px 0; text-align: left; }
.consent-visible { padding-bottom: 180px !important; }
.analytics-page { background: #f6f8f6; color: #203c2b; }
.analytics-shell { width: min(1280px, calc(100% - 48px)); margin: 32px auto 80px; }
.analytics-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; border-bottom: 1px solid #d6e2d9; padding-bottom: 18px; margin-bottom: 28px; }
.analytics-nav a { color: #176438; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.analytics-nav .brand { margin-right: auto; }
.analytics-heading, .analytics-filters { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.analytics-heading h1 { font-size: 30px; margin: 6px 0; }
.analytics-heading p { margin: 0; color: #56685c; }
.analytics-filters { justify-content: flex-start; padding: 22px 0; }
.analytics-filters label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; flex: 1 1 170px; }
.analytics-filters select { width: 100%; height: 46px; background: #fff; color: #203c2b; border: 1px solid #bccfc2; border-radius: 6px; padding: 0 12px; font: 16px "Formidabilii Text", sans-serif; }
.analytics-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-block: 1px solid #d6e2d9; }
.analytics-kpi { padding: 22px 18px; border-right: 1px solid #d6e2d9; }
.analytics-kpi:last-child { border: 0; }
.analytics-kpi strong { display: block; font: 600 32px Poppins, sans-serif; margin: 8px 0; color: #176438; }
.analytics-kpi span { font-size: 14px; }
.analytics-kpi small { display: block; font-size: 13px; color: #56685c; }
.analytics-row { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 32px; border-bottom: 1px solid #d6e2d9; padding: 30px 0; }
.analytics-row section { min-width: 0; }
.analytics-row h2, .analytics-business h2 { font-size: 19px; margin: 0 0 8px; }
.analytics-note { font-size: 14px; color: #56685c; line-height: 1.5; margin: 8px 0 18px; }
.analytics-warning { background: #fff4ce; border-left: 4px solid #8c6500; padding: 12px 16px; color: #594400; }
.analytics-empty { padding: 25px 0; color: #56685c; }
.analytics-funnel { list-style: none; padding: 0; }
.analytics-funnel li { display: grid; grid-template-columns: minmax(0,1fr) 55px; gap: 8px 20px; padding: 9px 0; }
.analytics-funnel progress { grid-column: 1/-1; width: 100%; height: 12px; accent-color: #197943; }
.analytics-funnel strong { text-align: right; }
.analytics-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 14px; }
.analytics-table th, .analytics-table td { text-align: left; border-bottom: 1px solid #e0e7e2; padding: 12px 8px; overflow-wrap: anywhere; vertical-align: top; }
.analytics-table th:last-child, .analytics-table td:last-child { text-align: right; width: 84px; font-variant-numeric: tabular-nums; }
.analytics-table th { color: #506456; font-weight: 700; }
.analytics-trend { display: flex; gap: 5px; align-items: end; height: 150px; margin: 16px 0; }
.analytics-trend div { flex: 1; background: #23884c; border-radius: 3px 3px 0 0; min-height: 2px; }
.analytics-trend-table { max-height: 220px; overflow: auto; }
.analytics-business { padding: 26px 0; }
.analytics-business dl { display: flex; flex-wrap: wrap; gap: 24px; }
.analytics-business dd { margin: 4px 0 0; font: 600 24px Poppins, sans-serif; }
.analytics-login { max-width: 560px; border: 1px solid #cadbcf; border-radius: 8px; background: #fff; padding: 24px; margin: 28px 0; }
.analytics-login label { display: grid; gap: 8px; margin: 18px 0; }
.analytics-login input { height: 48px; font-size: 20px; width: 100%; }
.analytics-status { min-height: 25px; margin: 15px 0; color: #506456; }
.analytics-status.is-error { color: #ad2538; }
.analytics-insights { border-left: 3px solid #e6ba29; padding: 4px 0 4px 20px; margin: 18px 0; }
.analytics-insights li { margin: 8px 0; line-height: 1.5; }
@media(max-width: 800px) { .analytics-row { grid-template-columns: 1fr; } .analytics-consent { flex-direction: column; align-items: stretch; gap: 12px; } .analytics-consent-actions button { flex: 1; } .consent-visible { padding-bottom: 230px !important; } }
@media(max-width: 540px) { .analytics-shell { width: calc(100% - 32px); margin-top: 16px; } .analytics-heading h1 { font-size: 25px; } .analytics-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .analytics-kpi { padding: 16px 10px; border-bottom: 1px solid #d6e2d9; } .analytics-kpi strong { font-size: 28px; } .analytics-kpi:nth-child(2) { border-right: 0; } .analytics-filters { gap: 12px; } .analytics-filters label { flex-basis: calc(50% - 12px); min-width: 0; } .analytics-nav { gap: 12px; } .analytics-nav .brand { width: 100%; } .analytics-consent { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); } .analytics-consent-actions { gap: 8px; } .analytics-consent button { padding: 8px; font-size: 13px; } }

/* Match the site's readable interface scale. */
.analytics-consent strong { font-size: var(--text-body); }
.analytics-consent p, .analytics-consent button, .analytics-preferences,
.analytics-filters label, .analytics-note, .analytics-table, .analytics-kpi span { font-size: var(--text-ui); line-height: 1.6; }
.analytics-kpi small { font-size: var(--text-meta); }
.analytics-consent button { min-height: 48px; }
.analytics-consent { max-height: 80dvh; overflow-y: auto; }
