.r108-analytics-page {
  width: 100%;
}

.r108-shell {
  display: grid;
  gap: 16px;
  width: 100%;
}

.r108-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.r108-head h1 {
  margin: 4px 0 6px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.035em;
}

.r108-head p {
  max-width: 720px;
  margin: 0;
  opacity: .7;
  line-height: 1.55;
}

.r108-kicker {
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .62;
}

.r108-head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.r108-range,
.r108-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(127, 140, 160, .18);
  border-radius: 12px;
  background: rgba(127, 140, 160, .055);
}

.r108-range button,
.r108-tabs button,
.r108-refresh {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.r108-range button {
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  opacity: .62;
}

.r108-range button.active {
  background: #b7ff2a;
  color: #0b0d08;
  opacity: 1;
}

.r108-refresh {
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(127, 140, 160, .1);
  color: inherit;
  font-weight: 750;
}

.r108-refresh:disabled {
  opacity: .5;
  cursor: default;
}

.r108-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.r108-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(127, 140, 160, .14);
  border-radius: 999px;
  font-size: 11px;
  opacity: .65;
}

.r108-tabs {
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

.r108-tabs button {
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-weight: 750;
  opacity: .58;
}

.r108-tabs button.active {
  background: #b7ff2a;
  color: #0b0d08;
  opacity: 1;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(183, 255, 42, .22);
}

.r108-content {
  display: grid;
  gap: 16px;
}

.r108-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.r108-kpi,
.r108-panel,
.r108-insight,
.r108-definition {
  border: 1px solid rgba(127, 140, 160, .16);
  background: rgba(127, 140, 160, .045);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.r108-kpi {
  min-height: 112px;
  padding: 16px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.r108-kpi span,
.r108-kpi small {
  font-size: 11px;
  opacity: .62;
}

.r108-kpi strong {
  margin-top: 8px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.r108-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.r108-panel {
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
}

.r108-panel > header {
  margin-bottom: 16px;
}

.r108-panel h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.015em;
}

.r108-panel header p {
  margin: 5px 0 0;
  font-size: 12px;
  opacity: .58;
}

.r108-chart-wrap {
  width: 100%;
}

.r108-line-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.r108-axis {
  stroke: currentColor;
  stroke-opacity: .12;
  stroke-width: 1;
}

.r108-line {
  stroke: #b7ff2a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.r108-dot {
  fill: #b7ff2a;
  stroke: rgba(0, 0, 0, .35);
  stroke-width: 1;
}

.r108-hover-hit {
  pointer-events: all;
  cursor: crosshair;
}

.r108-hover-guide,
.r108-hover-focus,
.r108-hover-card {
  opacity: 0;
  transition: opacity .12s ease;
  pointer-events: none;
}

.r108-hover-guide {
  stroke: #0b0d08;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  stroke-opacity: .38;
}

.r108-hover-focus {
  fill: #b7ff2a;
  stroke: #0b0d08;
  stroke-width: 2;
}

.r108-hover-zone:hover .r108-hover-guide,
.r108-hover-zone:hover .r108-hover-focus,
.r108-hover-zone:hover .r108-hover-card,
.r108-hover-zone:focus-within .r108-hover-guide,
.r108-hover-zone:focus-within .r108-hover-focus,
.r108-hover-zone:focus-within .r108-hover-card {
  opacity: 1;
}

.r108-tooltip-box {
  fill: #0b0d08;
  stroke: #b7ff2a;
  stroke-width: 1.5;
}

.r108-tooltip-date {
  fill: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 650;
}

.r108-tooltip-value {
  fill: #b7ff2a;
  font-size: 13px;
  font-weight: 850;
}

.r108-chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  font-size: 10px;
  opacity: .5;
}

.r108-bars {
  display: grid;
  gap: 12px;
}

.r108-bar-row {
  display: grid;
  gap: 6px;
}

.r108-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}

.r108-bar-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .72;
}

.r108-bar-head strong {
  white-space: nowrap;
}

.r108-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(127, 140, 160, .12);
}

.r108-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #b7ff2a;
}

.r108-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.r108-insight {
  padding: 16px;
  border-radius: 14px;
}

.r108-insight span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  padding: 3px 7px;
  border: 1px solid #0b0d08;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #86cf00;
  background: rgba(183, 255, 42, .08);
}

.r108-insight h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.r108-insight p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  opacity: .66;
}

.r108-insight > strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.r108-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.r108-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.r108-table th,
.r108-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(127, 140, 160, .12);
  text-align: left;
}

.r108-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .5;
}

.r108-table td strong {
  display: block;
}

.r108-table td small {
  display: block;
  margin-top: 2px;
  opacity: .5;
}

.r108-definition {
  padding: 16px;
  border-radius: 14px;
}

.r108-definition p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.6;
  opacity: .65;
}

.r108-loading,
.r108-empty,
.r108-error {
  border: 1px solid rgba(127, 140, 160, .16);
  border-radius: 14px;
  padding: 18px;
}

.r108-loading {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.r108-loading i {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(127, 140, 160, .18);
  border-top-color: #b7ff2a;
  border-radius: 50%;
  animation: r108-spin .8s linear infinite;
}

.r108-loading span,
.r108-empty {
  font-size: 12px;
  opacity: .58;
}

.r108-error {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 90, 90, .06);
}

.r108-error span {
  font-size: 12px;
  opacity: .7;
}

@keyframes r108-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .r108-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .r108-head {
    align-items: stretch;
    flex-direction: column;
  }

  .r108-head-actions {
    justify-content: flex-start;
  }

  .r108-grid-2,
  .r108-insight-grid {
    grid-template-columns: 1fr;
  }

  .r108-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .r108-kpis {
    grid-template-columns: 1fr;
  }

  .r108-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .r108-range {
    width: max-content;
  }

  .r108-refresh {
    width: 100%;
  }
}
