.charon-ramp {
  margin: 1.5rem 0;
}

.ramp-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ramp-controls label {
  font-weight: 600;
}

.ramp-controls label span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-weight: 400;
  white-space: nowrap;
}

.ramp-controls input {
  width: 6rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 4px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font: inherit;
}

.ramp-chart-container {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
  overflow: hidden;
}

.ramp-chart-container svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--md-default-fg-color);
}

.ramp-grid {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.12;
}

.ramp-axis {
  stroke: currentColor;
  stroke-width: 1.5;
}

.ramp-line {
  fill: none;
  stroke: var(--md-primary-fg-color);
  stroke-width: 3;
  stroke-linejoin: round;
}

.ramp-axis-label {
  fill: currentColor;
  font-size: 12px;
}

.ramp-axis-title {
  fill: currentColor;
  font-size: 14px;
  font-weight: 600;
}

.ramp-summary {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
}

@media screen and (max-width: 700px) {
  .ramp-controls {
    grid-template-columns: 1fr;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.5rem 0;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}