.series-graph-layout {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  padding: 4rem 1.5rem 4rem;
}

@media (max-width: 768px) {
  .series-graph-layout {
    padding-top: 4.5rem;
  }
}

@media (max-width: 640px) {
  .series-graph-layout {
    padding-top: 4.75rem;
  }
}

@media (max-width: 480px) {
  .series-graph-layout {
    padding-top: 5rem;
  }
}

.series-graph-panel {
  width: min(360px, 100%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.series-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  display: inline-block;
}

.series-hero__title {
  font-size: 1.75rem;
  margin: 0;
  color: var(--color-text);
}

.series-hero__subtitle {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.series-graph-panel a {
  color: var(--color-accent);
  text-decoration: none;
}

.series-legend {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.series-legend__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--color-surface-muted);
}

.series-legend__icon {
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.series-legend__icon .icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.series-legend__title {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

.series-legend__summary {
  margin: 0.25rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.series-legend__hint {
  border-top: 1px dashed var(--color-border);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.series-legend__hint ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.series-graph-canvas {
  flex: 1;
  min-height: 620px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  position: relative;
  background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.14), transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(16, 185, 129, 0.1), transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(99, 102, 241, 0.08), transparent 60%),
    var(--color-bg);
  overflow: hidden;
}

.series-graph-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(125deg, rgba(59, 130, 246, 0.15), transparent 60%),
    linear-gradient(-135deg, rgba(16, 185, 129, 0.08), transparent 55%);
  opacity: 0.45;
  filter: blur(50px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.series-graph-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.2) 1px, transparent 1px);
  background-size: 55px 55px;
  opacity: 0.12;
  pointer-events: none;
}

.series-graph-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .series-graph-layout {
    flex-direction: column;
  }

  .series-graph-panel {
    width: 100%;
  }

  .series-graph-canvas {
    min-height: 520px;
  }
}

@media (max-width: 600px) {
  .series-graph-layout {
    padding: 4.75rem 1rem 3rem;
  }

  .series-graph-panel {
    padding: 1.25rem;
  }
}

@keyframes drift {
  from {
    transform: translate3d(-10px, -15px, 0);
  }
  to {
    transform: translate3d(15px, 10px, 0);
  }
}

