html[data-i18n-state="pending"] body[data-i18n-pending] {
  opacity: 0;
}

body[data-i18n-pending] {
  transition: opacity 0.12s linear;
}

body {
  background-color: #020202;
  color: white;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.1) 3px,
      rgba(0, 0, 0, 0.1) 4px);
  pointer-events: none;
  z-index: 9998;
}

body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: -120px;
  height: 120px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(5, 182, 212, 0.02) 50%,
      transparent);
  animation: scanline-sweep 12s linear infinite;
  pointer-events: none;
  z-index: 9997;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(5, 182, 212, 0.25);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(5, 182, 212, 0.5);
}

.text-glow-lg {
  text-shadow: 0 0 10px rgba(103, 232, 249, 0.45);
}

.crt-border {
  border: 1px solid rgba(5, 182, 212, 0.45);
  box-shadow: 0 0 10px rgba(5, 182, 212, 0.25), inset 0 0 8px rgba(5, 182, 212, 0.04);
}

.crt-border:focus-within {
  border-color: rgba(5, 182, 212, 0.85);
  box-shadow: 0 0 14px rgba(5, 182, 212, 0.45), inset 0 0 8px rgba(5, 182, 212, 0.06);
}

.nav-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(5, 182, 212, 0.18);
  background: rgba(5, 182, 212, 0.025);
  color: rgba(165, 243, 252, 0.72);
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.nav-link-secondary:hover,
.nav-link-secondary:focus-visible {
  border-color: rgba(103, 232, 249, 0.4);
  background: rgba(5, 182, 212, 0.06);
  color: rgba(236, 254, 255, 0.96);
  outline: none;
}

.eyebrow-label {
  color: rgba(165, 243, 252, 0.8);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.micro-copy {
  color: rgba(186, 230, 253, 0.72);
}

.stats-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
}

.range-control {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(3.1rem, 1fr));
  border: 1px solid rgba(5, 182, 212, 0.22);
  background: rgba(2, 8, 10, 0.7);
}

.range-button {
  min-height: 2.5rem;
  border: 0;
  border-right: 1px solid rgba(5, 182, 212, 0.16);
  background: transparent;
  color: rgba(165, 243, 252, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: background 0.2s ease, color 0.2s ease;
}

.range-button:last-child {
  border-right: 0;
}

.range-button:hover,
.range-button:focus-visible,
.range-button.is-active {
  background: rgba(5, 182, 212, 0.14);
  color: white;
  outline: none;
}

.node-filter {
  min-height: 2.5rem;
  min-width: min(100%, 13rem);
  border: 1px solid rgba(5, 182, 212, 0.28);
  background: rgba(2, 8, 10, 0.82);
  color: rgba(207, 250, 254, 0.92);
  padding: 0 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
}

.node-filter:focus-visible {
  border-color: rgba(103, 232, 249, 0.78);
}

.stat-card {
  min-height: 7rem;
  border: 1px solid rgba(5, 182, 212, 0.34);
  background: rgba(2, 8, 10, 0.74);
  box-shadow: 0 0 10px rgba(5, 182, 212, 0.16), inset 0 0 8px rgba(5, 182, 212, 0.03);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.stat-value {
  font-size: 1.6rem;
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.chart-panel {
  border: 1px solid rgba(5, 182, 212, 0.36);
  background: rgba(2, 8, 10, 0.72);
  box-shadow: 0 0 12px rgba(5, 182, 212, 0.18), inset 0 0 8px rgba(5, 182, 212, 0.03);
  padding: 1.25rem;
  min-height: 24rem;
  position: relative;
  overflow: hidden;
}

.chart-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(103, 232, 249, 0.5);
}

.chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-heading h3 {
  color: white;
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}

.stats-chart {
  display: block;
  width: 100%;
  height: 18rem;
  border: 1px solid rgba(5, 182, 212, 0.18);
  background: rgba(2, 8, 10, 0.78);
}

.stats-interpreter-panel {
  margin-top: 1.5rem;
  border: 1px solid rgba(5, 182, 212, 0.36);
  background: rgba(2, 8, 10, 0.72);
  box-shadow: 0 0 12px rgba(5, 182, 212, 0.18), inset 0 0 8px rgba(5, 182, 212, 0.03);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.stats-interpreter-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(103, 232, 249, 0.5);
}

.stats-interpreter-head h3 {
  color: white;
  font-size: 1rem;
  font-weight: 800;
  margin: 0.45rem 0 0.4rem;
}

.stats-interpreter-head p:last-child {
  color: rgba(207, 250, 254, 0.7);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.interpreter-refresh {
  cursor: pointer;
}

.report-table-wrap {
  grid-column: 1 / -1;
  overflow-x: auto;
  width: 100%;
  border: 1px solid rgba(5, 182, 212, 0.2);
  background: rgba(2, 8, 10, 0.72);
}

.report-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(5, 182, 212, 0.13);
  text-align: left;
  vertical-align: middle;
  font-size: 0.76rem;
}

.report-table th {
  color: rgba(165, 243, 252, 0.78);
  background: rgba(5, 182, 212, 0.05);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-row {
  cursor: pointer;
}

.report-row:hover,
.report-row.is-open {
  background: rgba(5, 182, 212, 0.08);
}

.report-empty {
  color: rgba(207, 250, 254, 0.6);
  font-family: "IBM Plex Sans", sans-serif;
  padding: 1rem;
}

.report-empty.error,
.report-note.error {
  color: rgb(251, 113, 133);
}

.report-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.88);
  padding: 0 0.48rem;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-badge.good,
.node-score.good,
.report-node > strong.good {
  color: rgb(74, 222, 128);
  border-color: rgba(74, 222, 128, 0.42);
  background: rgba(74, 222, 128, 0.1);
}

.report-badge.warn,
.node-score.warn,
.report-node > strong.warn {
  color: rgb(250, 204, 21);
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(250, 204, 21, 0.1);
}

.report-badge.fail,
.node-score.fail,
.report-node > strong.fail {
  color: rgb(251, 113, 133);
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(251, 113, 133, 0.1);
}

.node-score {
  display: inline-flex;
  min-width: 3rem;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 0.18rem 0.4rem;
  font-weight: 900;
}

.report-detail {
  grid-column: 1 / -1;
  border: 1px solid rgba(5, 182, 212, 0.24);
  background: rgba(2, 8, 10, 0.62);
  padding: 1rem;
}

.report-detail-head,
.report-badges,
.report-test-line {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.report-detail-head {
  justify-content: space-between;
  border-bottom: 1px solid rgba(5, 182, 212, 0.16);
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
}

.report-detail-head h4,
.report-detail-grid h4,
.report-node h4 {
  margin: 0;
  color: white;
  font-weight: 800;
}

.report-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.report-detail-grid > section {
  border: 1px solid rgba(5, 182, 212, 0.16);
  background: rgba(3, 12, 15, 0.7);
  padding: 1rem;
}

.report-detail-grid > section.wide {
  grid-column: 1 / -1;
}

.report-metric {
  margin-top: 0.8rem;
}

.report-metric-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  color: rgba(207, 250, 254, 0.82);
  font-size: 0.72rem;
}

.report-bar {
  height: 0.55rem;
  border: 1px solid rgba(5, 182, 212, 0.2);
  background: rgba(5, 182, 212, 0.05);
  overflow: hidden;
}

.report-bar span {
  display: block;
  height: 100%;
  background: rgb(103, 232, 249);
  animation: grow-width 0.4s ease-out both;
}

.report-bar span.warn {
  background: rgb(250, 204, 21);
}

.report-note {
  margin: 0.65rem 0 0;
  color: rgba(207, 250, 254, 0.64);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
}

.dieharder-mini,
.report-hash-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dieharder-mini span {
  color: rgba(207, 250, 254, 0.72);
  font-size: 0.72rem;
}

.report-node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.report-node {
  border: 1px solid rgba(5, 182, 212, 0.18);
  background: rgba(2, 8, 10, 0.72);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.report-node p {
  margin: 0.28rem 0 0.55rem;
  color: rgba(207, 250, 254, 0.56);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.report-node > strong {
  align-self: start;
  min-width: 3.2rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 0.3rem 0.45rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
}

.report-node .report-metric {
  grid-column: 1 / -1;
}

.report-hash {
  border: 1px solid rgba(5, 182, 212, 0.16);
  background: rgba(5, 182, 212, 0.04);
  padding: 0.65rem;
}

.report-hash summary {
  cursor: pointer;
  color: rgba(165, 243, 252, 0.86);
  font-size: 0.72rem;
}

.report-hash code {
  display: block;
  margin-top: 0.5rem;
  color: white;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.68rem;
}

@keyframes grow-width {
  from {
    width: 0;
  }
}

@keyframes scanline-sweep {
  0% {
    top: -120px;
  }

  100% {
    top: 100vh;
  }
}

@media (max-width: 640px) {
  .stats-controls,
  .range-control,
  .node-filter {
    width: 100%;
  }

  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-heading h3 {
    text-align: left;
  }

  .stats-chart {
    height: 16rem;
  }

  .stats-interpreter-panel {
    grid-template-columns: 1fr;
  }

  .stats-interpreter-panel .nav-link-secondary {
    justify-content: center;
  }

  .report-detail-grid {
    grid-template-columns: 1fr;
  }
}
