/* The baking plan: summary, timeline and plan actions. */
.plan {
  position: sticky;
  top: 20px;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--sand-line-soft);
}
.plan-top h2 {
  font: 650 var(--text-3xl)/1.15 var(--font);
  letter-spacing: -1px;
}
.plan-top > p:last-child {
  font-size: var(--text-sm);
  margin-top: 10px;
}
.plan-stats {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin: 24px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sand-line);
}
.plan-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stat-value {
  font-size: var(--text-2xl);
  font-weight: 550;
  letter-spacing: -0.5px;
}
.ingredients-summary {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}
.ingredients-summary li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: var(--text-sm);
}
.ingredients-summary strong {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--sand-line);
  padding-top: 21px;
  margin-bottom: 12px;
}
#plan-status {
  color: var(--ink);
  margin-bottom: 18px;
}
.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  padding: 0 0 24px 24px;
  border-left: 1px solid var(--timeline-line);
  margin-left: 5px;
}
.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  background: var(--action);
  border: 2px solid var(--sand);
  outline: 1px solid var(--action);
  border-radius: 50%;
}
.timeline li.cold:before {
  background: var(--cold);
  outline-color: var(--cold);
}
.timeline .phase-time {
  font-size: var(--text-xl);
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 7px 0 2px;
}
/* Steps without a planned duration (mixing, shaping, baking) are quieter than timed ones. */
.timeline .phase-time.untimed {
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.timeline .phase-clock {
  font-size: var(--text-md);
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.timeline .phase-name {
  font-size: var(--text-md);
  font-weight: 650;
}
.timeline .phase-info,
.timeline .clock {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}
.timeline .shape-step {
  padding-top: 0;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.timeline .shape-step:before {
  background: var(--sand);
}
.schedule-total {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--sand-line);
  padding-top: 18px;
  margin-top: 22px;
  font-size: var(--text-sm);
}
.schedule-total strong {
  font-size: var(--text-xl);
}
.reliability {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--muted);
  margin-top: 14px;
}
.plan-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--sand-line);
  margin-top: 20px;
  padding-top: 10px;
}
.error {
  background: var(--error-soft);
  color: var(--error);
  border: 1px solid var(--error-line);
  padding: 14px 16px;
  border-radius: var(--radius-inner);
  font-size: var(--text-md);
  margin-bottom: 16px;
}
/* The grams of each flour of a mix, under the flour total. */
.ingredients-summary li.ingredient-part {
  padding: 3px 0 3px 14px;
  font-size: var(--text-md);
  color: var(--muted);
}
.ingredients-summary li.ingredient-part strong {
  font-weight: 500;
}
/* When to bake: an optional ready-by time and the start time it gives. */
.plan-when {
  border-top: 1px solid var(--sand-line);
  margin-top: 20px;
  padding-top: 16px;
}
.plan-when label {
  font-size: var(--text-md);
  font-weight: 650;
}
.ready-by-wrap {
  max-width: 180px;
}
.plan-start {
  margin-bottom: 4px;
  margin-top: 10px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
}
