.projection-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.projection-select {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.projection-select select {
  max-width: 100%;
  min-height: 36px;
}

.projection-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 12px;
  margin-block: 12px;
}

.projection-metrics > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ded9d0;
  border-radius: 9px;
}

.projection-metrics dt { font-weight: 700; }
.projection-metrics dd { margin-inline: 0; overflow-wrap: anywhere; }
.projection-metrics dd:not(.dashboard-context) { font-size: 24px; font-weight: 750; }

.projection-metrics .negative, .projection-risk { color: #9c2725; }
.projection-notice, .projection-risk {
  padding: 8px 12px;
  margin-block: 10px !important;
  border-left: 3px solid #9a6712;
  background: #fff8e9;
}

.projection-risk { border-color: #9c2725; background: #fff1ee; }
.projection-figure { margin: 14px 0 10px; }
.projection-figure figcaption { font-weight: 700; }
#projectionChart svg { display: block; width: 100%; height: 140px; overflow: visible; }
.projection-dates { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; color: #5d574c; }
.projection-zero { fill: none; stroke: #766e60; stroke-width: 1px; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.projection-step, .projection-step-negative { fill: none; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.projection-step { stroke: #805700; }
.projection-step-negative { stroke: #9c2725; }
.projection-dot { fill: #805700; stroke: #fff; }
.projection-dot.negative { fill: #9c2725; }
#projectionDayValue { margin-block: 8px; overflow-wrap: anywhere; }

.projection-chart-layout { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:8px; margin-top:8px; }
.projection-scale { display:grid; position:relative; min-width:max-content; color:#5d574c; font-size:12px; }
.projection-scale span { position:relative; grid-area:1/1; height:max-content; transform:translateY(-50%); text-align:right; white-space:nowrap; }
.projection-chart-layout .projection-dates { grid-column:2; }
