.lsf-chart {
  min-height: 430px;
  padding: 10px 12px 8px;
  background:
    linear-gradient(180deg, rgba(234, 244, 255, .54), transparent 35%),
    #fff;
  color: #26364a;
  font-size: 11px;
  line-height: 1.35;
}

.chart-body.lsf-chart {
  line-height: 1.35;
}

.lsf-chart *,
.lsf-chart *::before,
.lsf-chart *::after {
  box-sizing: border-box;
}

.lsf-chart__legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lsf-chart__legend-item {
  min-width: 0;
}

.lsf-chart__legend-button {
  width: 100%;
  min-height: 56px;
  padding: 7px 8px 6px;
  border: 1px solid #d7e1ed;
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
  color: #26364a;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
  text-align: left;
  transition: border-color .15s ease, opacity .15s ease, background .15s ease;
}

.lsf-chart__legend-button:hover {
  border-color: var(--lsf-series-color);
}

.lsf-chart__legend-button[aria-pressed="false"] {
  opacity: .48;
  background: #f4f6f9;
}

.lsf-chart__legend-button:focus-visible,
.lsf-chart__svg:focus-visible,
.lsf-chart__source-link:focus-visible {
  outline: 2px solid #006eff;
  outline-offset: 2px;
}

.lsf-chart__legend-top {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.lsf-chart__legend-swatch {
  display: inline-block;
  width: 18px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--lsf-series-color);
}

.lsf-chart__legend-swatch--column {
  width: 12px;
  height: 10px;
  border-radius: 1px;
}

.lsf-chart__legend-name {
  overflow: hidden;
  color: #35465b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsf-chart__legend-value {
  margin-left: auto;
  color: #0f1f33;
  font-size: 15px;
  font-weight: 790;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.lsf-chart__legend-date {
  display: block;
  margin: 3px 0 0 24px;
  overflow: hidden;
  color: #708094;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsf-chart__status {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 2px 1px;
  color: #708094;
  font-size: 9px;
  font-weight: 640;
  line-height: 1.35;
}

.lsf-chart__range {
  flex: 0 0 auto;
  color: #516178;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lsf-chart__help {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsf-chart__plot {
  position: relative;
  height: 286px;
  overflow: hidden;
}

.lsf-chart__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.lsf-chart__svg.is-scaling-x {
  cursor: ew-resize;
}

.lsf-chart__grid {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.lsf-chart__zero-line {
  stroke: #8799ad;
  stroke-width: 1.35;
}

.lsf-chart__axis-line {
  stroke: #b8c5d4;
  stroke-width: 1;
}

.lsf-chart__axis-label {
  fill: #6b7b8f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.lsf-chart__unit {
  font-size: 9px;
  font-weight: 720;
}

.lsf-chart__line {
  fill: none;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.lsf-chart__point {
  pointer-events: none;
}

.lsf-chart__column {
  fill-opacity: .86;
  stroke: rgba(255, 255, 255, .58);
  stroke-width: .5;
}

.lsf-chart__plot-hit {
  cursor: crosshair;
  pointer-events: all;
}

.lsf-chart__x-axis-hit {
  cursor: ew-resize;
  pointer-events: all;
}

.lsf-chart__guide {
  stroke: #93a4b8;
  stroke-dasharray: 3 3;
  stroke-width: 1;
}

.lsf-chart__tooltip {
  position: absolute;
  z-index: 3;
  min-width: 180px;
  max-width: min(270px, calc(100% - 12px));
  padding: 7px 9px;
  border: 1px solid #c7d4e4;
  border-radius: 5px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 4px 14px rgba(20, 39, 66, .14);
  color: #26364a;
  font-size: 10px;
  line-height: 1.5;
  pointer-events: none;
  transform: translateX(-50%);
}

.lsf-chart__tooltip-date {
  margin-bottom: 3px;
  color: #52657b;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.lsf-chart__tooltip-row {
  display: grid;
  grid-template-columns: 16px minmax(40px, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.lsf-chart__tooltip-swatch {
  width: 16px;
  border-top-width: 2px;
}

.lsf-chart__tooltip-swatch--column {
  width: 10px;
  height: 10px;
  margin-left: 3px;
  border: 0;
  border-radius: 1px;
}

.lsf-chart__tooltip-value {
  color: #0f1f33;
}

.lsf-chart__tooltip-observed {
  color: #718096;
  font-size: 9px;
}

.lsf-chart__notice {
  margin: 4px 0 0;
  padding: 6px 8px;
  border: 1px solid #f1c880;
  border-radius: 4px;
  background: #fff8e8;
  color: #75520a;
  font-size: 10px;
  line-height: 1.5;
}

.lsf-chart__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  min-height: 24px;
  padding-top: 4px;
  color: #718096;
  font-size: 9px;
  line-height: 1.45;
}

.lsf-chart__source-label {
  margin-left: auto;
}

.lsf-chart__source-link {
  color: #446987;
  text-decoration: none;
}

.lsf-chart__source-link:hover {
  text-decoration: underline;
}

.lsf-chart__loading {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 18px;
  color: #6b7b8f;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.lsf-chart__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 820px) {
  .lsf-chart {
    min-height: 400px;
    padding-inline: 8px;
  }

  .lsf-chart__plot {
    height: 255px;
  }

  .lsf-chart__help {
    max-width: 55%;
  }
}

@media (max-width: 540px) {
  .lsf-chart__legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lsf-chart__legend-button {
    min-height: 52px;
  }

  .lsf-chart__status {
    display: grid;
    min-height: 42px;
    gap: 2px;
  }

  .lsf-chart__help {
    max-width: none;
    text-align: left;
    white-space: normal;
  }

  .lsf-chart__plot {
    height: 240px;
  }

  .lsf-chart__source-label {
    width: 100%;
    margin-top: 2px;
    margin-left: 0;
  }

  .lsf-chart__tooltip-row {
    grid-template-columns: 14px minmax(32px, 1fr) auto;
  }

  .lsf-chart__tooltip-observed {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lsf-chart__legend-button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .lsf-chart__legend-swatch {
    border: 1px solid CanvasText;
  }

  .lsf-chart__line {
    stroke: CanvasText !important;
  }

  .lsf-chart__column {
    fill: CanvasText !important;
    stroke: Canvas !important;
  }

  .lsf-chart__point {
    fill: CanvasText !important;
    stroke: Canvas !important;
  }
}
