.meal-plan-screen{width:100%;max-width:920px;margin:0 auto;padding-bottom:calc(32px + env(safe-area-inset-bottom))}.meal-plan-settings{display:grid;gap:14px}.meal-plan-group{padding:18px;border:1px solid rgba(113,255,0,.18);border-radius:22px;background:linear-gradient(145deg,rgba(13,48,53,.78),rgba(7,25,32,.88));box-shadow:0 14px 34px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.045);min-width:0}.meal-plan-group h3{margin:0 0 14px;color:#f4f8f8;font-size:15px;font-weight:900;letter-spacing:-.01em}.mp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mp-field{display:flex;flex-direction:column;gap:7px;color:rgba(225,238,239,.7);font-size:12px;font-weight:700;min-width:0}.mp-field .ng-input{width:100%;min-width:0}.mp-wide{margin-top:14px}.mp-field textarea{resize:vertical;min-height:72px;line-height:1.45}.mp-optional{color:#84999b;font-size:10px;font-weight:600}.mp-diet-field{margin:16px 0 0;padding:0;border:0;min-width:0}.mp-diet-field legend{margin-bottom:9px;color:rgba(225,238,239,.7);font-size:12px;font-weight:700}.mp-diet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mp-diet-option{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 11px;border:1px solid rgba(190,231,235,.14);border-radius:14px;background:rgba(255,255,255,.035);color:#cfe0e1;text-align:left;font-size:12px;font-weight:750;line-height:1.28;transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease}.mp-diet-option:hover,.mp-diet-option:focus-visible{border-color:rgba(157,255,0,.5);outline:none}.mp-diet-option:active{transform:scale(.985)}.mp-diet-option.is-selected{border-color:rgba(157,255,0,.8);background:rgba(157,255,0,.13);color:#f5ffe8;box-shadow:0 0 0 1px rgba(157,255,0,.12),0 7px 18px rgba(86,180,0,.08)}.mp-diet-check{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border:1px solid rgba(205,225,225,.3);border-radius:6px;color:#08151a;font-size:10px}.mp-diet-option.is-selected .mp-diet-check{border-color:#9dff00;background:#9dff00}.mp-selection-summary{margin:9px 0 0;color:#9dff00;font-size:11px;line-height:1.45;min-height:16px}.meal-plan-item{border-color:rgba(190,231,235,.14)!important}.meal-plan-type{display:inline-flex;flex:0 0 auto;padding:5px 8px;border-radius:999px;background:rgba(157,255,0,.12);color:#baff58;font-size:10px;font-weight:850;line-height:1.2}.meal-plan-item .ng-btn-secondary{white-space:normal;line-height:1.2;text-align:center}.meal-plan-day{border-color:rgba(190,231,235,.14)!important}@media (max-width:600px){.meal-plan-screen{padding-left:0;padding-right:0}.meal-plan-group{padding:15px;border-radius:19px}.mp-form-grid{grid-template-columns:1fr;gap:12px}.mp-diet-grid{grid-template-columns:1fr}.mp-diet-option{min-height:46px;font-size:12px}.meal-plan-item>div{align-items:flex-start}.meal-plan-item .ng-btn-secondary{max-width:90px;padding:9px 7px!important;font-size:11px}.meal-plan-item .meal-plan-type{max-width:70px;white-space:normal}.meal-plan-day{padding:12px!important}}@media (min-width:760px){.meal-plan-settings{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.meal-plan-group:first-child,.meal-plan-group:last-child{grid-column:1/-1}.meal-plan-group:last-child{max-width:100%}}@media (max-width:360px){.meal-plan-group{padding:13px}.mp-diet-option{padding:8px 9px}.meal-plan-item>div{gap:8px}.meal-plan-item .meal-plan-type{font-size:9px;max-width:58px}.meal-plan-item .ng-btn-secondary{max-width:76px;font-size:10px}}

/* Meal-plan cards: content-first mobile layout. The diary handler and data stay untouched. */
#screenContent .meal-plan-screen {
  padding-bottom: calc(156px + env(safe-area-inset-bottom));
}

#screenContent .meal-plan-item {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 20px;
}

#screenContent .meal-plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  width: 100%;
  min-width: 0;
}

#screenContent .meal-plan-item .meal-plan-type {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 62%;
  padding: 6px 10px;
  border: 1px solid rgba(157, 255, 0, .34);
  border-radius: 999px;
  background: rgba(157, 255, 0, .11);
  color: #dfffaa;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#screenContent .meal-plan-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  max-width: 128px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 173, 50, .34);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(36, 51, 61, .9), rgba(18, 31, 40, .92));
  box-shadow: 0 7px 16px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .08);
  color: #f0f6f5;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: transform .18s ease, filter .18s ease;
}

#screenContent .meal-plan-add-button i {
  flex: 0 0 auto;
  font-size: 11px;
}

#screenContent .meal-plan-add-button:active {
  transform: translateY(1px) scale(.98);
}

#screenContent .meal-plan-add-button:focus-visible {
  outline: 3px solid rgba(255, 190, 91, .42);
  outline-offset: 2px;
}

#screenContent .meal-plan-card-content {
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  text-align: left;
}

#screenContent .meal-plan-name {
  max-width: 100%;
  margin: 0;
  color: #f7fbfb;
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  word-break: normal;
}

#screenContent .meal-plan-meta,
#screenContent .meal-plan-portion,
#screenContent .meal-plan-notes,
#screenContent .meal-plan-ingredients {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

#screenContent .meal-plan-meta {
  margin: 7px 0 0;
  color: rgba(205, 222, 223, .64);
  font-size: 12px;
  line-height: 1.35;
}

#screenContent .meal-plan-portion {
  margin: 8px 0 0;
  color: rgba(225, 238, 239, .72);
  font-size: 13px;
  line-height: 1.35;
}

#screenContent .meal-plan-macros {
  max-width: 100%;
  margin: 10px 0 0;
  color: #cfff71;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}

#screenContent .meal-plan-ingredients {
  display: -webkit-box;
  margin: 9px 0 0;
  color: rgba(190, 210, 211, .62);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

#screenContent .meal-plan-notes {
  margin: 9px 0 0;
  color: rgba(190, 210, 211, .64);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 340px) {
  #screenContent .meal-plan-item { padding-inline: 14px; }
  #screenContent .meal-plan-item .meal-plan-type { max-width: 58%; padding-inline: 8px; }
  #screenContent .meal-plan-add-button { max-width: 116px; padding-inline: 9px; font-size: 10.5px; }
}

@media (min-width: 700px) {
  #screenContent .meal-plan-item { padding: 16px 18px; }
  #screenContent .meal-plan-name { font-size: 20px; }
  #screenContent .meal-plan-card-content { margin-top: 11px; }
}
