.stats-trend, .stats-trend-canvas {
  background: linear-gradient(110deg, rgba(88, 177, 164, .018), rgba(129, 92, 255, .012));
  border-radius: 10px;
}
.stats-trend { width: 100%; overflow: hidden; }
.stats-trend svg { display: block; width: 100%; height: 160px; }
.stats-trend text { fill: #8992a5; font: 12px Inter, system-ui, sans-serif; }
.stats-trend .trend-grid { stroke: #ffffff; stroke-opacity: .045; stroke-width: 1; vector-effect: non-scaling-stroke; }
.stats-trend .trend-line { fill: none; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.stats-trend .trend-point { fill: #a6e7df; opacity: 0; }
.stats-trend .trend-point:hover, .stats-trend .trend-point:focus, .stats-trend .trend-point:only-of-type { opacity: 1; outline: none; }
.stats-trends { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 20px 0; }
.stats-trends section { min-width: 0; }
.stats-trends h4 { margin: 0 0 10px; }
body[data-dashboard-skin="nebula"] .activity-chart.stats-trend svg { height: 160px; }
@media (max-width: 600px) { .stats-trend svg { height: 160px; } }

.stats-trend .trend-grid-vertical { stroke-opacity: .025; }
.activity-chart.stats-trend,
body[data-dashboard-skin="nebula"] .activity-chart.stats-trend { min-height: 160px; height: 160px; }
.activity-panel { overflow: hidden; }
.activity-panel .overview-panel-heading { margin-bottom: 16px; }
.activity-panel .activity-total { font: 500 13px Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
/* Keep dashboard metrics legible instead of using the wide display typeface. */
#section-stats .stat-val { font-family: Inter, system-ui, sans-serif !important; font-size: 28px !important; font-weight: 600 !important; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }

.activity-period { display: inline-block; margin-left: 12px; color: var(--muted, #8992a5); font: 12px Inter, system-ui, sans-serif; letter-spacing: normal; }
.activity-panel .overview-panel-heading { gap: 12px; flex-wrap: wrap; }
.activity-panel .activity-total { padding: 5px 9px; border-radius: 6px; background: rgba(139,124,246,.06); white-space: nowrap; }
@media (max-width: 480px) { .activity-period { display: block; margin: 6px 0 0; } }
