body {
  color: #171717;
  font: 15px/1.45 system-ui, sans-serif;
  margin: 0;
}

main {
  margin: 40px auto;
  max-width: 960px;
  padding: 0 18px;
}

h1,
h2 {
  font-weight: 600;
}

h1 {
  margin-bottom: 0;
}

h2 {
  margin-top: 40px;
}

#details,
.muted {
  color: #666;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.effort {
  color: #287a44;
}

.assisted,
.goal {
  color: #bc3f32;
}

.trend {
  color: #333;
}

.forecast {
  color: #777;
}

#chart {
  position: relative;
}

svg {
  display: block;
  height: auto;
  overflow: visible;
  width: 100%;
}

.chart-label {
  fill: #666;
  font-size: 11px;
}

.grid {
  stroke: #ddd;
  stroke-width: 1;
}

.trend-line,
.forecast-line,
.band-line,
.goal-line,
.data-point,
.hover-guide {
  pointer-events: none;
}

.chart-hit {
  cursor: crosshair;
  fill: transparent;
  outline: none;
}

.hover-guide {
  stroke: #888;
  stroke-dasharray: 3 3;
  stroke-width: 1;
  visibility: hidden;
}

.hover-guide.visible {
  visibility: visible;
}

.chart-tooltip {
  background: #171717;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  padding: 7px 9px;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
  z-index: 1;
}

.chart-tooltip[hidden] {
  display: none;
}

.tooltip-date,
.tooltip-value {
  display: block;
}

.tooltip-date {
  color: #bbb;
  font-size: 11px;
}

.tooltip-value.effort {
  color: #74cf91;
}

.tooltip-value.assisted {
  color: #ff8c80;
}

.tooltip-value.estimate {
  color: #fff;
}

.summary {
  border-top: 1px solid #ddd;
  margin: 0;
  padding: 14px 0;
}

@media (max-width: 600px) {
  main {
    margin-top: 24px;
  }

  .legend {
    gap: 6px 14px;
  }
}
