.vben-chart-wrap {
  overflow: hidden;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}

.vben-chart-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid #eef2f7;
}

.vben-chart-legends,
.vben-chart-peaks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.vben-chart-legend,
.vben-chart-peaks span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.vben-chart-peaks b {
  color: #1e293b;
  font-weight: 600;
}

.vben-chart-legend-dot,
.vben-chart-tooltip-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.vben-chart-legend-dot.is-online,
.vben-chart-tooltip-dot.is-online {
  background: #5b7cfa;
  box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.12);
}

.vben-chart-legend-dot.is-cpu,
.vben-chart-tooltip-dot.is-cpu {
  background: #ff7a59;
  box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.11);
}

.vben-chart-stage {
  position: relative;
  min-width: 0;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, #fbfcff 0%, #fff 100%);
}

.vben-chart-canvas {
  display: block;
  width: 100%;
  height: 320px;
  overflow: visible;
}

.vben-chart-grid {
  opacity: 1;
  stroke: #e7ecf3;
  stroke-width: 1;
  stroke-dasharray: 3 6;
  shape-rendering: geometricPrecision;
}

.vben-chart-axis text {
  fill: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.vben-chart-area {
  transform-origin: bottom;
  animation: .7s cubic-bezier(.22, 1, .36, 1) both vistaAreaRise;
}

.vben-chart-area-cpu {
  animation-delay: .08s;
}

.vben-chart-line {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  animation: .72s cubic-bezier(.22, 1, .36, 1) both vistaLineDraw;
}

.vben-chart-line-blue {
  stroke: #5b7cfa;
  filter: drop-shadow(0 5px 7px rgba(91, 124, 250, 0.18));
}

.vben-chart-line-cpu {
  stroke: #ff7a59;
  stroke-width: 2.35;
  filter: drop-shadow(0 4px 6px rgba(255, 122, 89, 0.13));
  animation-delay: .08s;
}

.vben-chart-cursor {
  opacity: 0;
  stroke: #94a3b8;
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  transition: opacity .14s ease;
}

.vben-chart-hover-dot {
  opacity: 0;
  stroke: #fff;
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 4px 7px rgba(15, 23, 42, 0.2));
  transition: opacity .14s ease;
}

.vben-chart-hover-dot.is-online {
  fill: #5b7cfa;
}

.vben-chart-hover-dot.is-cpu {
  fill: #ff7a59;
}

.vben-chart-cursor.is-visible,
.vben-chart-hover-dot.is-visible {
  opacity: 1;
}

.vben-chart-hit rect {
  fill: transparent;
  cursor: crosshair;
  outline: none;
}

.vben-chart-tooltip {
  position: absolute;
  z-index: 4;
  top: 18px;
  width: 214px;
  padding: 13px 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 10px;
  opacity: 0;
  color: #334155;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .14s ease, transform .14s ease;
}

.vben-chart-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vben-chart-tooltip-time {
  margin-bottom: 9px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}

.vben-chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 25px;
  font-size: 12px;
}

.vben-chart-tooltip-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}

.vben-chart-tooltip-row b {
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .vben-chart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 13px 15px;
  }

  .vben-chart-legends,
  .vben-chart-peaks {
    gap: 12px;
  }

  .vben-chart-canvas {
    height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vben-chart-area,
  .vben-chart-line {
    animation: none;
  }
}
