.rank-demo {
  --rank-ink: #235b4b;
  --rank-rule: #cedbd2;
  box-sizing: border-box;
  width: 100%;
  max-width: 34rem;
  padding: clamp(14px, 1.45vw, 22px);
  border: 1px solid var(--rank-rule);
  background: #f4f7f3;
  color: #1f3229;
  font-variant-numeric: tabular-nums;
}
.rank-demo-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rank-demo-control > span,
.rank-demo-history figcaption,
.rank-demo-edit > span {
  font:
    500 0.875rem/1.25 "DM Sans",
    sans-serif;
  color: #475d50;
}
.rank-demo-control strong,
.rank-demo-control select {
  color: #213c30;
  font:
    620 1rem/1.3 "DM Sans",
    sans-serif;
}
.rank-demo-control select {
  width: auto;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 7px 31px 7px 9px;
  border: 1px solid #a8bbae;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
}
.rank-demo-control select:focus-visible {
  outline: 2px solid #155341;
  outline-offset: 2px;
}
.rank-demo .rank-demo-history {
  margin: 17px 0 0;
}
.rank-demo-history figcaption {
  margin: 0;
}
.rank-demo-history svg {
  display: block;
  width: 100%;
  max-height: 135px;
  margin: 1px 0 9px;
}
.rank-demo-guides {
  fill: none;
  stroke: var(--rank-rule);
  stroke-dasharray: 3 4;
  stroke-width: 0.8;
}
.rank-demo-fill {
  fill: #d9e8d9;
}
.rank-demo-line {
  fill: none;
  stroke: var(--rank-ink);
  stroke-width: 2.3;
  stroke-linejoin: round;
}
.rank-demo-point circle {
  fill: #fff;
  stroke: var(--rank-ink);
  stroke-width: 2.1;
}
.rank-demo-point text,
.rank-demo-weeks text {
  font-family: "DM Sans", sans-serif;
  text-anchor: middle;
}
.rank-demo-point text {
  fill: #1d3c30;
  font-size: 14.5px;
  font-weight: 660;
}
.rank-demo-weeks text {
  fill: #4b5f53;
  font-size: 13.5px;
}
.rank-demo-edit {
  padding-top: 10px;
  border-top: 1px solid var(--rank-rule);
}
.rank-demo-edit > span {
  display: block;
}
.rank-demo-edit p {
  margin: 4px 0 0;
  color: #1c352c;
  font:
    560 clamp(1.14rem, 1.5vw, 1.4rem)/1.18 "Bricolage Grotesque",
    "DM Sans",
    sans-serif;
  letter-spacing: -0.02em;
}
.rank-demo-edit mark {
  background: #dcead2;
  color: inherit;
  box-shadow: inset 0 -1px #829e79;
}
