.centred-card {
  margin-inline: auto;
}

.meta-note {
  margin-top: 1rem;
  font-size: 1rem;
  opacity: 0.9;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
}

.stat-card {
  background: var(--panel-light);
  border-radius: 0.9rem;
  padding: 1rem;
}

html.dark .stat-card {
  background: #2d1e44;
}

.stat-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-value {
  margin: 0.45rem 0 0;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 800;
  color: var(--heading-light);
}

html.dark .stat-value {
  color: #fff;
}

.warning-panel {
  border: 1px solid rgba(197, 92, 92, 0.45);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.analytics-panel h2 {
  margin-top: 0;
}

.heatmap-wrap {
  margin-top: 0.8rem;
  overflow-x: auto;
}

.sparkline-scroll {
  overflow-x: auto;
  padding-bottom: 0.6rem;
}

.sparkline-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 30px;
  gap: 0.35rem;
  min-width: max-content;
  align-items: end;
}

.sparkline-item {
  display: grid;
  justify-items: center;
  gap: 0.24rem;
}

.sparkline-track {
  width: 12px;
  height: 88px;
  border-radius: 999px;
  background: rgba(100, 50, 148, 0.16);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sparkline-bar {
  width: 100%;
  min-height: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9bcd6b, #7a47ad);
}

.sparkline-label {
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.sparkline-label.muted {
  opacity: 0.35;
}

.heatmap-table {
  border-collapse: separate;
  border-spacing: 3px;
  min-width: 760px;
}

.heatmap-table th {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
  text-align: center;
  padding: 0.2rem;
}

.heatmap-table td {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: none;
}

.period-switch {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.period-btn {
  background: transparent;
  border: 1px solid rgba(100, 50, 148, 0.5);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.period-btn.active {
  background: #7a47ad;
  border-color: #7a47ad;
  color: #fff;
}

.top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.top-col h3 {
  margin-top: 0;
}

.top-col ol {
  margin: 0;
  padding-left: 1.1rem;
}

.top-col li {
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.top-col li a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-col li span {
  font-weight: 700;
}

.hidden {
  display: none;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  text-align: left;
  padding: 0.62rem 0.55rem;
  border-bottom: 1px solid rgba(100, 50, 148, 0.26);
}
