.sd-chart {
  --sd-ciru: #ff554e;
  --sd-spark: #60d5e8;
  --sd-muted: #a2a5ad;
  --sd-rule: #2c2d31;
  color: #f6f4f0;
  font-family: var(--sans, "Space Grotesk", sans-serif);
  container-type: inline-size;
  min-width: 0;
}
.sd-chart * { box-sizing: border-box; }
.sd-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.1rem; }
.sd-modes {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid #383a40;
  border-radius: 5px;
  padding: 3px;
  background: #101114;
}
.sd-modes button {
  appearance: none;
  font: 600 .8rem/1.25 var(--sans, "Space Grotesk", sans-serif);
  letter-spacing: -.01em;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: .41rem .73rem;
  background: transparent;
  color: #b4b4ba;
}
.sd-modes button:hover { color: #fff; }
.sd-modes button[aria-pressed="true"] { color: #fff; background: #303137; border-color: #45464d; }
.sd-direction, .sd-pick-label, .sd-series, .sd-value small, .sd-stepper strong {
  font-family: var(--mono, "IBM Plex Mono", monospace);
}
.sd-direction {
  color: #adb0b8;
  font-size: .68rem;
  letter-spacing: .025em;
  white-space: nowrap;
}
.sd-chart :where(button, .sd-plot):focus-visible {
  outline: 2px solid #f3f4ef;
  outline-offset: 3px;
}
.sd-plot {
  position: relative;
  margin: 12px 0 2px;
  min-width: 0;
  border-radius: 3px;
  cursor: crosshair;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.sd-plot svg { width: 100%; display: block; max-width: 100%; overflow: visible; user-select: none; }
.sd-grid { stroke: #313136; stroke-width: 1; stroke-dasharray: 2 5; }
.sd-base { stroke: #585960; }
.sd-tick, .sd-x-label {
  fill: #a5a6ad;
  font: 10.5px var(--mono, "IBM Plex Mono", monospace);
  font-variant-numeric: tabular-nums;
}
.sd-x-label { font-size: 11px; }
.sd-x-label.sd-selected { fill: #f5f4f1; font-weight: 700; }
.sd-guide { stroke: transparent; stroke-dasharray: 3 4; }
.sd-guide.sd-selected { stroke: #717278; }
.sd-band { fill: transparent; }
.sd-band.sd-selected { fill: rgba(255,255,255,.045); }
.sd-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sd-line-ciru, .sd-bar-top-ciru { stroke: var(--sd-ciru); }
.sd-line-spark, .sd-bar-top-spark { stroke: var(--sd-spark); }
.sd-line-spark { stroke-width: 2; stroke-dasharray: 5.5 5; }
.sd-point-ciru { color: var(--sd-ciru); }
.sd-point-spark { color: var(--sd-spark); }
.sd-halo { fill: currentColor; opacity: 0; }
.sd-selected .sd-halo { opacity: .24; }
.sd-dot { fill: #111216; stroke: currentColor; stroke-width: 1.8; }
.sd-selected .sd-dot { fill: currentColor; stroke: #151417; stroke-width: 1; }
.sd-bar { opacity: .85; }
.sd-bar.sd-selected { opacity: 1; }
.sd-bar-top { stroke-width: 2; }
.sd-readout {
  display: grid;
  grid-template-columns: minmax(132px,.92fr) minmax(0,1fr) minmax(0,1fr);
  gap: 16px;
  border-top: 1px solid var(--sd-rule);
  padding-top: 17px;
}
.sd-readout > div { min-width: 0; }
.sd-pick-label, .sd-series { display: block; color: #c1c2c8; font-size: .7rem; line-height: 1.4; }
.sd-pick-label { color: var(--sd-muted); }
.sd-stepper { display: flex; align-items: center; gap: 5px; min-height: 2rem; margin-top: .12rem; }
.sd-stepper strong { color: #f6f4f1; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.sd-stepper button {
  appearance: none;
  cursor: pointer;
  background: #191a1e;
  color: #ecedef;
  border: 1px solid #35363c;
  border-radius: 3px;
  font: 500 1.05rem/1 var(--sans, "Space Grotesk", sans-serif);
  width: 24px;
  height: 24px;
  padding: 0 0 2px;
}
.sd-stepper button:disabled { opacity: .36; cursor: default; }
.sd-stepper button:not(:disabled):hover { border-color: #898c95; }
.sd-series { display: flex; align-items: center; gap: 7px; }
.sd-series i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sd-ciru); }
.sd-value-spark .sd-series i { border: 1.5px solid var(--sd-spark); border-radius: 0; background: transparent; transform: rotate(45deg) scale(.85); }
.sd-value > div { padding-top: .16rem; line-height: 1.3; white-space: nowrap; }
.sd-value strong {
  font-family: var(--sans, "Space Grotesk", sans-serif);
  font-size: clamp(1.18rem, 3.7cqi, 1.72rem);
  font-weight: 550; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.sd-value small { color: var(--sd-muted); font-size: .65rem; }
.sd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 460px) {
  .sd-readout { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .sd-pick { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .sd-stepper { margin: 0; min-height: 24px; }
  .sd-stepper strong { min-width: 80px; text-align: center; }
  .sd-value strong { font-size: 1.4rem; }
  .sd-toolbar { gap: 8px; }
  .sd-modes button { font-size: .74rem; padding: .43rem .55rem; }
  .sd-direction { font-size: .62rem; }
}
