.statistics-kicker, .statistics-label {
  color: #67e8f9;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.statistics-refresh-btn .iconify-inline {
  width: 1rem;
  height: 1rem;
}

.statistics-refresh-btn.is-loading .iconify-inline {
  animation: statisticsSpin 0.85s linear infinite;
}

.statistics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 1rem;
}

.statistics-summary article {
  min-height: 116px;
}

.statistics-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, auto);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.statistics-search {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
}

.statistics-list {
  display: grid;
  gap: 0.85rem;
}

.statistics-project {
  overflow: hidden;
}

.statistics-project-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.statistics-rank {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.11);
  color: #67e8f9;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.83rem;
  font-weight: 850;
}

.statistics-project-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
}

.statistics-preview {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.85rem;
  background: #090f1c;
  color: #8b5cf6;
}

.statistics-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statistics-project-copy {
  min-width: 0;
}

.statistics-project-copy h3 {
  margin: 0.2rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  ;
}

.statistics-project-copy p {
  margin: 0.25rem 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, auto));
  gap: 0.55rem;
}

.statistics-metric {
  min-width: 76px;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.32);
  text-align: right;
}

.statistics-metric strong {
  display: block;
  color: #e0e7ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.statistics-metric span {
  display: block;
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 750;
  text-transform: uppercase;
}

.statistics-actions {
  display: flex;
  gap: 0.45rem;
}

.statistics-hotspots {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.9rem 1.1rem 1rem 4.5rem;
  background: rgba(2, 6, 23, 0.2);
}

.statistics-hotspots[hidden] {
  display: none;
}

.statistics-hotspots-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.statistics-hotspots-title strong {
  color: #c4b5fd;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statistics-hotspots-title span {
  color: #64748b;
  font-size: 0.65rem;
}

.statistics-hotspot-list {
  display: grid;
  gap: 0.55rem;
}

.statistics-hotspot-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(140px, 1.5fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.statistics-hotspot-name {
  min-width: 0;
}

.statistics-hotspot-name strong, .statistics-hotspot-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-hotspot-name strong {
  color: #dbeafe;
  font-size: 0.7rem;
}

.statistics-hotspot-name span {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.6rem;
}

.statistics-hotspot-track {
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.62);
}

.statistics-hotspot-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6);
}

.statistics-hotspot-value {
  min-width: 3.6rem;
  color: #c4b5fd;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
}

.statistics-no-hotspots {
  color: #64748b;
  font-size: 0.7rem;
}

.statistics-loading, .statistics-empty {
  display: grid;
  min-height: 245px;
  place-items: center;
  align-content: center;
  text-align: center;
  ;
}

.statistics-loading strong, .statistics-empty h3 {
  margin: 0.8rem 0 0;
  color: #dbeafe;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.statistics-loading small, .statistics-empty p {
  max-width: 520px;
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.55;
}

.statistics-empty > .iconify-inline {
  width: 2rem;
  height: 2rem;
  color: #67e8f9;
}

.statistics-spinner {
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-top-color: #67e8f9;
  border-radius: 999px;
  animation: statisticsSpin 0.8s linear infinite;
}

@keyframes statisticsSpin {
  to {
    transform: rotate(360deg);
  }

}

@media (max-width: 960px) {
  .statistics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statistics-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .statistics-search {
    grid-column: 1 / -1;
  }

  .statistics-project-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .statistics-metrics {
    grid-column: 2 / -1;
  }

  .statistics-actions {
    grid-column: 3;
    grid-row: 1;
  }

}

@media (max-width: 640px) {
  .statistics-summary {
    grid-template-columns: 1fr 1fr;
  }

  .statistics-summary article {
    min-height: 100px;
  }

  .statistics-toolbar {
    grid-template-columns: 1fr;
  }

  .statistics-search {
    grid-column: auto;
  }

  .statistics-project-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.85rem;
  }

  .statistics-rank {
    width: 2rem;
    height: 2rem;
  }

  .statistics-preview {
    width: 3rem;
    height: 3rem;
  }

  .statistics-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .statistics-metric {
    min-width: 0;
    text-align: center;
  }

  .statistics-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: flex-end;
  }

  .statistics-hotspots {
    padding: 0.85rem;
  }

  .statistics-hotspot-row {
    grid-template-columns: minmax(100px, 1fr) auto;
  }

  .statistics-hotspot-track {
    display: none;
  }

}

html[data-theme="light"] .statistics-kicker, html[data-theme="light"] .statistics-label {
  color: #0e7490;
}

html[data-theme="light"] .statistics-project-copy p, html[data-theme="light"] .statistics-hotspots-title span, html[data-theme="light"] .statistics-hotspot-name span, html[data-theme="light"] .statistics-no-hotspots, html[data-theme="light"] .statistics-loading small, html[data-theme="light"] .statistics-empty p {
  color: #52637a;
}

html[data-theme="light"] .statistics-project {
  overflow: hidden;
}

html[data-theme="light"] .statistics-summary article:nth-child(2) {
  border-top: 3px solid #0891b2;
}

html[data-theme="light"] .statistics-summary article:nth-child(3) {
  border-top: 3px solid #4f46e5;
}

html[data-theme="light"] .statistics-summary article:nth-child(4) {
  border-top: 3px solid #7e22ce;
}

html[data-theme="light"] .statistics-metric span {
  color: #52637a;
}

html[data-theme="light"] .statistics-rank {
  border-color: #67e8f9;
  background: #ecfeff;
  color: #0e7490;
}

html[data-theme="light"] .statistics-preview {
  border-color: #d7deea;
  background: #f1f5f9;
  color: #6d28d9;
}

html[data-theme="light"] .statistics-metric {
  border-color: #dbe4f0;
  background: #f8fafc;
}

html[data-theme="light"] .statistics-metric strong {
  color: #312e81;
}

html[data-theme="light"] .statistics-hotspots {
  border-color: #dbe4f0;
  background: #f8fafc;
}

html[data-theme="light"] .statistics-hotspots-title strong, html[data-theme="light"] .statistics-hotspot-value {
  color: #6d28d9;
}

html[data-theme="light"] .statistics-hotspot-name strong {
  color: #1e293b;
}

html[data-theme="light"] .statistics-hotspot-track {
  background: #dbe4f0;
}

html[data-theme="light"] .statistics-loading strong, html[data-theme="light"] .statistics-empty h3 {
  color: #0f172a;
}

html[data-theme="light"] .statistics-empty > .iconify-inline {
  color: #0e7490;
}

html[data-theme="light"] .statistics-spinner {
  border-color: #cbd5e1;
  border-top-color: #0e7490;
}

@media (prefers-reduced-motion: reduce) {
  .statistics-spinner, .statistics-refresh-btn.is-loading .iconify-inline {
    animation-duration: 1.5s;
  }

  .statistics-project {
    overflow: hidden;
  }

}
