.side-stats {
  margin-top: 24px;
  color: #4c5860;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.side-stats-section {
  padding: 10px 0 5px;
  border-top: 1px solid #dfe5e8;
}

.side-stats-section + .side-stats-section {
  margin-top: 4px;
}

.side-stats-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  min-height: 22px;
}

.side-stats-heading h2 {
  margin: 0;
  color: #4a565e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.side-stats-heading strong {
  color: #4b6d82;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.side-stats-task-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 4px;
}

.side-stats-baseline {
  stroke: #d8e1e5;
  stroke-width: 1;
}

.side-stats-bar rect {
  fill: #819cac;
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 180ms ease, fill 180ms ease;
}

.side-stats-bar-current rect {
  fill: #557b92;
}

@media (hover: hover) {
  .side-stats-bar:hover rect {
    fill: #466f87;
    transform: scaleY(1.06);
  }
}

.side-stats-task-chart text {
  text-anchor: middle;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  fill: #697882;
}

.side-stats-task-chart .side-stats-bar-value {
  font-size: 10px;
  fill: #5b6e7a;
}

.side-stats-heat {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  grid-template-rows: repeat(7, auto);
  align-content: start;
  gap: 2px;
  margin-top: 8px;
}

.side-stats-heat i {
  min-width: 0;
  height: auto;
  aspect-ratio: 1;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
  .side-stats-heat i:hover {
    z-index: 1;
    transform: scale(1.18);
    box-shadow: 0 0 0 1px rgba(77, 120, 143, .38), 0 2px 5px rgba(77, 120, 143, .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-stats-heat i,
  .side-stats-bar rect {
    transition: none;
  }

  .side-stats-heat i:hover,
  .side-stats-bar:hover rect {
    transform: none;
  }
}

.side-stats-heat i,
.side-stats-heat-legend i {
  display: block;
  background: #edf1f2;
}

.side-stats .side-stats-level-1 { background: #cedde4; }
.side-stats .side-stats-level-2 { background: #a5c1cf; }
.side-stats .side-stats-level-3 { background: #759aad; }
.side-stats .side-stats-level-4 { background: #4d788f; }

.side-stats-heat-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.4;
  color: #7b858c;
}

.side-stats-heat-legend i {
  width: 7px;
  height: 7px;
}

.side-stats-heading .side-stats-visitor-title {
  font-size: 11px;
  letter-spacing: .10em;
}

.side-stats-total {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.side-stats-total > span {
  font-size: 10px;
  color: #78848c;
}

.side-stats-world {
  display: block;
  width: 100%;
  height: 100px;
  margin-top: 5px;
}

.side-stats-land {
  fill: #dfe6e7;
  stroke: #fafcfc;
  stroke-width: .35;
  stroke-linejoin: round;
}

.side-stats-points {
  fill: #527c94;
  fill-opacity: .8;
}

.side-stats-arrivals {
  margin-top: 15px;
}

.side-stats-arrivals h3 {
  margin: 0 0 8px;
  color: #4a565e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .10em;
}

.side-stats-arrivals-window {
  height: 235px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6dfe4 transparent;
  overscroll-behavior-y: contain;
}

.side-stats-arrivals-window:focus-visible {
  outline: 1px solid #b6c9d4;
  outline-offset: 3px;
}

.side-stats-arrivals-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-auto-rows: 1fr;
}

.side-stats-arrivals-list li {
  min-height: 47px;
  padding: 6px 0 7px;
  border-top: 1px solid #eef1f3;
}

.side-stats-arrival-place {
  display: block;
  overflow-wrap: anywhere;
  color: #536570;
  font-size: 12px;
  line-height: 18px;
}

.side-stats-arrivals-list time {
  display: block;
  color: #89949c;
  font-size: 10px;
  line-height: 15px;
  font-variant-numeric: tabular-nums;
}

.side-stats-arrivals-empty {
  color: #89949c;
  font-size: 12px;
}

.side-stats-arrivals[data-paging="true"] .side-stats-arrivals-window {
  overflow: hidden;
}

.side-stats-arrivals:focus-within .side-stats-arrivals-window {
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  .side-stats-arrivals[data-paging="true"] .side-stats-arrivals-window {
    overflow-y: auto;
  }
}
