.rolling-form {
  --form-height: clamp(136px, 28vw, 204px);
  --form-active: #ff8a57;
  --form-hold: #cea798;
}
.rolling-form .form-total > strong { color: var(--form-active); }
.rolling-chart {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  margin: 24px 15px 0 0;
  font-variant-numeric: tabular-nums;
}
.rolling-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--form-height);
  color: var(--muted);
  font-size: .75rem;
  line-height: 0;
}
.rolling-plot {
  position: relative;
  height: var(--form-height);
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 25%);
  box-shadow: 0 1px var(--line);
}
.rolling-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rolling-plot path { fill: none; vector-effect: non-scaling-stroke; stroke-width: 2; }
.rolling-active { stroke: var(--form-active); stroke-linecap: round; }
.rolling-hold { stroke: var(--form-hold); stroke-dasharray: 4 4; }
.rolling-marker {
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: var(--form-active);
  border: 1px solid #ffe1d3;
  border-radius: 50%;
}
.rolling-marker-last { box-shadow: 0 0 0 3px #ff8a5740; }
.rolling-months {
  position: relative;
  grid-column: 2;
  height: 23px;
  margin-top: 7px;
  color: var(--muted);
  font-size: .75rem;
}
.rolling-months time { position: absolute; left: var(--month-x); transform: translateX(-50%); }
.rolling-months time:first-child { transform: none; }
.rolling-legend { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--ink); font-size: .8125rem; }
.rolling-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rolling-legend span::before { content: ""; width: 20px; border-top: 2px solid var(--form-active); }
.rolling-legend span + span::before { border-top: 2px dashed var(--form-hold); }
.rolling-form .form-detail p { margin: 8px 0 0; }
.rolling-form .form-detail small { font-size: inherit; }
@media (max-width: 620px) {
  .rolling-chart { grid-template-columns: 38px minmax(0, 1fr); gap: 0 7px; margin-right: 6px; }
  .rolling-months time:nth-child(even) { display: none; }
  .rolling-form .form-head strong { line-height: 1.18; }
  .rolling-form .form-total { gap: 4px; }
}
