:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #15344a;
  background: #f0f5f8;
}
body { margin: 0; }
.analytics-shell { width: min(70rem, calc(100% - 2rem)); margin: 2.5rem auto; }
.analytics-preferences { max-width: 42rem; line-height: 1.6; }
.analytics-brand { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; text-decoration: none; }
a { color: #164f71; text-underline-offset: .15em; }
h1 { margin: .75rem 0; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.035em; }
h2 { margin: 1.5rem 0 .75rem; font-size: 1.25rem; }
.analytics-toolbar { display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .65rem; margin: 0; }
.analytics-metric, .analytics-panel { border: 1px solid #cbd9e1; background: #fff; border-radius: .75rem; padding: 1rem; }
.analytics-metric dt { font-size: .875rem; color: #36566a; }
.analytics-metric dd { margin: .35rem 0 0; font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.analytics-note { font-size: .9rem; color: #36566a; }
.analytics-rankings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; margin-top: 1.5rem; align-items: start; }
.analytics-panel h2 { margin-top: 0; }
.analytics-panel table { width: 100%; border-collapse: collapse; }
.analytics-panel :is(th, td) { padding: .65rem 0; border-bottom: 1px solid #e1eaf0; text-align: left; }
.analytics-panel tbody th { font-weight: 500; }
.analytics-panel :is(th, td):last-child { text-align: right; font-variant-numeric: tabular-nums; }
.analytics-button { display: inline-block; padding: .6rem .9rem; border: 1px solid #24516c; border-radius: .5rem; background: #15344a; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.analytics-button:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 3px solid #1774a6; outline-offset: 3px; }
