.chart-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: var(--space-controls);
  min-width: 0;
}

.chart-title-row h2 {
  margin: 0;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .chart-title-row h2 {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.chart-title-value {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  font-size: 1rem;
}

.chart-title-daily {
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--muted);
}

.chart-title-daily.tone-up {
  color: var(--ok);
}

.chart-title-daily.tone-down {
  color: var(--err);
}

.chart-title-daily.is-empty {
  color: var(--muted);
}

@media (min-width: 768px) {
  .chart-title-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .chart-title-value,
  .chart-title-daily {
    white-space: normal;
  }

  .chart-title-value {
    font-size: 1.05rem;
  }

  .chart-title-daily {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .chart-title-value,
  .chart-title-daily {
    white-space: nowrap;
  }
}

.chart-canvas {
  width: 100%;
  min-height: 230px;
  height: 230px;
  overflow: hidden;
}

@media (max-width: 412px) {
  .chart-canvas {
    min-height: 218px;
    height: 218px;
  }
}

@media (max-width: 390px) {
  .chart-title-value {
    font-size: 0.88rem;
  }

  .chart-title-daily {
    font-size: 0.7rem;
  }

  .chart-canvas {
    min-height: 206px;
    height: 206px;
  }
}

@media (max-width: 360px) {
  .chart-canvas {
    min-height: 198px;
    height: 198px;
  }
}

@media (min-width: 600px) {
  .chart-canvas {
    min-height: 280px;
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .chart-canvas {
    min-height: 360px;
    height: 360px;
  }
}

.chart-line {
  fill: none;
  stroke: var(--line-color, var(--accent));
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-grid-line {
  stroke: rgba(23, 48, 66, 0.11);
  stroke-dasharray: 4 6;
}

.chart-grid-label,
.chart-axis-label {
  fill: #70869a;
  font-size: 12px;
  font-family: 'Avenir Next', 'Trebuchet MS', sans-serif;
}

