.annual-allocation-chart {
  --allocation-plot-height: 220px;
  margin: 14px 0 0;
  min-width: 0;
}
.annual-allocation-chart .annual-allocation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 15px;
}
.annual-allocation-chart .annual-allocation-key {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.annual-allocation-chart .annual-allocation-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.annual-allocation-chart .annual-allocation-used { background: #187353; }
.annual-allocation-chart .annual-allocation-remaining { background: #b9d4e9; }
.annual-allocation-chart .annual-allocation-historical { background: #d5deea; }
.annual-allocation-chart .annual-allocation-body {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding-top: 17px;
}
.annual-allocation-chart .annual-allocation-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: var(--allocation-plot-height);
  color: #718096;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.annual-allocation-chart .annual-allocation-axis span:first-child { transform: translateY(-50%); }
.annual-allocation-chart .annual-allocation-axis span:last-child { transform: translateY(50%); }
.annual-allocation-chart .annual-allocation-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  isolation: isolate;
}
.annual-allocation-chart .annual-allocation-columns::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: var(--allocation-plot-height);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, var(--plot-guide) 0, var(--plot-guide) 1px, transparent 1px, transparent 25%);
  content: "";
}
.annual-allocation-chart .annual-allocation-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}
.annual-allocation-chart .annual-allocation-slot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--allocation-plot-height);
  width: 100%;
}
.annual-allocation-chart .annual-allocation-bar {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(58px, 64%);
  border-radius: 4px 4px 0 0;
  outline: 1px solid #a6b9ce;
  overflow: hidden;
}
.annual-allocation-chart .annual-allocation-bar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.annual-allocation-chart .annual-allocation-current { outline-color: #7da5c7; }
.annual-allocation-chart .annual-allocation-segment {
  display: block;
  flex: 0 0 auto;
  width: 100%;
}
.annual-allocation-chart .annual-allocation-total {
  position: absolute;
  bottom: calc(100% + 5px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.annual-allocation-chart .annual-allocation-year {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.annual-allocation-chart .annual-allocation-detail {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.annual-allocation-chart .annual-allocation-used-label { color: #187353; font-weight: 600; }
.annual-allocation-chart .annual-allocation-note {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
}
@media (max-width: 700px) {
  .annual-allocation-chart { --allocation-plot-height: 180px; }
  .annual-allocation-chart .annual-allocation-legend { gap: 6px 12px; font-size: 12px; margin-bottom: 12px; }
  .annual-allocation-chart .annual-allocation-body { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
  .annual-allocation-chart .annual-allocation-columns { gap: 5px; }
  .annual-allocation-chart .annual-allocation-bar { width: min(46px, 60%); }
}

.capacity-track .capacity-used { background: #187353; }
.capacity-legend > span:first-child { color: #187353; }
.capacity-legend > span:first-child::before {
  content: ""; display: inline-block; width: 9px; height: 9px;
  margin-right: 6px; border-radius: 2px; background: #187353;
}
