/* Bake plan choice cards and the dough filters. */
/* Keep the original filter pills, with a second compact row for schedule. */
.recipe-filters {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.recipe-filters .filters {
  flex-wrap: wrap;
}
.plan-choices {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  min-width: 0;
}
.plan-choices legend {
  font-size: var(--text-base);
  font-weight: 650;
  margin-bottom: 10px;
  padding: 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.plan-card {
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.plan-card:hover {
  border-color: var(--action);
  background: var(--hover);
}
.plan-card[aria-pressed='true'] {
  border: 2px solid var(--action);
  padding: 16px;
  background: var(--soft);
}
.plan-card strong {
  font-size: var(--text-base);
}
.plan-time {
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--ink);
}
.plan-text {
  font-size: var(--text-sm);
  color: var(--muted);
}
#plan-help {
  margin-top: 8px;
}
.yeast-suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--sand);
  padding: 10px 14px;
  margin: 12px 0;
}
@media (max-width: 760px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}
.grid-note {
  grid-column: 1/-1;
}
/* Flour guide: protein from the label, and whether the water and time suit it. */
.flour-guide {
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  padding: 12px 14px;
  margin: 0 0 14px;
}
.flour-guide .fields {
  margin-bottom: 8px;
}
#flour-advice {
  margin: 0 0 12px;
  color: var(--muted);
}
#flour-advice[data-status='typical'] {
  color: var(--positive);
}
#flour-advice[data-status='upper'] {
  color: var(--caution);
}
#flour-advice[data-status='over'],
#flour-advice[data-status='low'] {
  color: var(--error);
}
.recipe-card-flour {
  font-size: var(--text-sm);
  color: var(--positive);
}
@media (max-width: 600px) {
  .flour-guide .fields {
    grid-template-columns: 1fr;
  }
}
/* Flour step: checkbox row and a single column of fields on phones. */
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 14px 0 10px;
  font-weight: 600;
}
.check-row input {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  accent-color: var(--action);
}
#flour-summary,
#mix-advice {
  margin: 8px 0 14px;
}
#flour-summary {
  color: var(--ink);
}
#mix-advice[data-status='upper'] {
  color: var(--caution);
}
@media (max-width: 600px) {
  .flour-fields {
    grid-template-columns: 1fr;
  }
}
/* Water step: compact cards coloured by what the flour can hold. */
.water-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.water-card {
  min-height: 0;
  padding: 12px;
}
.water-card .recipe-hydration {
  font-size: var(--text-3xl);
}
.water-card[data-status='typical'] .recipe-card-flour {
  color: var(--positive);
}
.water-card[data-status='upper'] .recipe-card-flour {
  color: var(--caution);
}
.water-card[data-status='over'] .recipe-card-flour,
.water-card[data-status='low'] .recipe-card-flour {
  color: var(--error);
}
.water-card[data-status='over'] {
  border-style: dashed;
}
@media (min-width: 901px) {
  .water-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
/* Pizza or focaccia: two cards side by side, before the water cards. */
.family-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.family-choices {
  margin-bottom: 14px;
}
/* The default plan of a new bake, until the baker picks one. */
.plan-suggested {
  align-self: flex-start;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--action);
  border: 1px solid var(--step-chip-line);
  border-radius: 999px;
  padding: 1px 8px;
}
/* Flour step: one row per added flour. */
.mix-row {
  margin-bottom: 12px;
}
#add-flour {
  margin-bottom: 8px;
}
/* Under- or over-fermented: the warning and the changes that fix it. */
.readiness-fix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.readiness-fix[hidden] {
  display: none;
}
.readiness-fix p {
  flex-basis: 100%;
  margin: 0;
  color: var(--caution);
}

/* Pre-ferment: how the dough starts (all at once, poolish, biga), its card and the two mixes. */
.preferment-choices {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  min-width: 0;
}
.preferment-choices legend {
  font-size: var(--text-base);
  font-weight: 650;
  margin-bottom: 10px;
  padding: 0;
}
.preferment-modes {
  margin-bottom: 8px;
}
.preferment-editor {
  margin-bottom: 18px;
}
.preferment-editor .preferment-guide {
  margin: 0 0 14px;
}
.preferment-editor .preferment-advice {
  margin: -6px 0 14px;
  font-weight: 600;
}
.preferment-editor .fields {
  margin-bottom: 4px;
}
.preferment-order {
  grid-column: 1 / -1;
}
.preferment-status {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 600;
}
.preferment-editor > .button {
  margin-top: 10px;
}
.preferment-adjust {
  margin-top: 12px;
}
.preferment-adjust .fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}
.preferment-split {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-inner);
  background: var(--panel-alt);
  border: 1px solid var(--line);
}
.preferment-split h3 {
  font-size: var(--text-base);
  margin: 0 0 4px;
}
.preferment-split .ingredients-summary {
  margin-bottom: 0;
}
.preferment-split .ingredients-summary li {
  padding: 5px 0;
}
.mix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}
.ingredients-summary .ingredient-group {
  display: block;
  font-weight: 650;
  color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
}
@media (max-width: 560px) {
  .mix-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .preferment-adjust .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
