.meal-entry {
  display: grid;
  gap: clamp(6px, 1.2vw, 8px);
  margin-top: clamp(6px, 1.2vw, 8px);
}

.shopping-item__contexts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.shopping-context-tag {
  border: 1px solid rgba(191, 208, 232, 0.7);
  background: linear-gradient(180deg, #f9fcff 0%, #edf4ff 100%);
  color: #395170;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.1;
  cursor: pointer;
}

.shopping-context-tag:hover {
  text-decoration: underline;
}

.shopping-context-tag.is-static {
  cursor: default;
  text-decoration: none;
}

.meal-entry:first-child {
  margin-top: 0;
}

.meal-chip {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 1.2vw, 10px);

  border: 0;
  border-radius: clamp(10px, 1.6vw, 14px);
  padding: clamp(6px, 1.2vw, 8px) clamp(8px, 1.4vw, 10px);

  background: rgba(255,255,255,0.84);
  box-shadow: 0 5px 12px rgba(34, 55, 94, 0.05);

  min-width: 0;
}

.meal-chip:hover {
  transform: translateY(-1px);
}

.meal-chip__main {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.meal-chip .muted {
  font-size: clamp(11px, 1.2vw, 12px);
}

.meal-chip__recipe-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.recipe-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 6px);

  border: 1px solid rgba(219, 227, 239, 0.95);
  border-radius: 999px;

  padding: clamp(5px, 1vw, 7px) clamp(8px, 1.3vw, 10px);

  background: linear-gradient(180deg, #fffdf7 0%, #fff7ea 100%);
  color: #5c4324;

  font-size: clamp(11px, 1.2vw, 12px);
  font-weight: 700;

  white-space: nowrap;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(34, 55, 94, 0.05);
}

.recipe-pill-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fffaf0 0%, #fff2de 100%);
}

.recipe-pill-btn__icon {
  width: clamp(10px, 1.4vw, 14px);
  height: clamp(10px, 1.4vw, 14px);

  border-radius: 4px;
  flex: 0 0 auto;

  background: linear-gradient(180deg, #fff 0%, #f8edd7 100%);
  border: 1px solid rgba(92, 67, 36, 0.16);

  position: relative;
}

.recipe-pill-btn__icon::before,
.recipe-pill-btn__icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1px;
  background: rgba(92, 67, 36, 0.35);
}

.recipe-pill-btn__icon::before { top: 4px; }
.recipe-pill-btn__icon::after { top: 8px; }



/* -------------------------
   Menu day styling
------------------------- */

.menu-day {
  position: relative;
}

.menu-day.is-today {
  border: 2px solid #7aa2ff;
  box-shadow:
    0 0 0 4px rgba(122, 162, 255, 0.18),
    0 10px 24px rgba(72, 110, 184, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.75);

  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.menu-day.is-today::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 999px;

  background: linear-gradient(180deg, #7aa2ff 0%, #4f7fe8 100%);
}

.menu-day.is-today h3 {
  color: #2d56a3;
}

/* -------------------------
   Recipe modal card
------------------------- */

.recipe-card {
  display: grid;
  gap: clamp(10px, 1.8vw, 14px);
}

.recipe-card__section {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(219, 227, 239, 0.8);

  border-radius: clamp(12px, 1.8vw, 16px);
  padding: clamp(10px, 1.8vw, 14px);
}

.recipe-card__section label {
  display: block;

  font-size: clamp(12px, 1.3vw, 13px);
  font-weight: 700;

  color: #415267;

  margin-bottom: clamp(6px, 1.2vw, 8px);
}

.recipe-card__text {
  white-space: pre-wrap;
  line-height: 1.45;

  font-size: clamp(12px, 1.3vw, 14px);
}

.recipe-card__title {
  margin: 0;

  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}


@media (min-width: 1000px) {

.meal-entry {
  display: grid;
  gap: clamp(6px, 1.2vw, 8px);
  margin-top: clamp(6px, 1.2vw, 8px);
}

.meal-entry:first-child {
  margin-top: 0;
}

.meal-chip {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;

  border: 0;
  border-radius: clamp(10px, 1.6vw, 14px);
  padding: 0;

  background: rgba(255,255,255,0.84);
  box-shadow: 0 5px 12px rgba(34, 55, 94, 0.05);

  min-width: 0;
}

.meal-chip:hover {
  transform: translateY(-1px);
}

.meal-chip__main {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.meal-chip .muted {
  font-size: clamp(11px, 1.2vw, 12px);
}

.meal-chip__recipe-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.recipe-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 6px);

  border: 1px solid rgba(219, 227, 239, 0.95);
  border-radius: 999px;

  padding: clamp(5px, 1vw, 7px) clamp(8px, 1.3vw, 10px);

  background: linear-gradient(180deg, #fffdf7 0%, #fff7ea 100%);
  color: #5c4324;

  font-size: clamp(11px, 1.2vw, 12px);
  font-weight: 700;

  white-space: nowrap;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(34, 55, 94, 0.05);
}

.recipe-pill-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fffaf0 0%, #fff2de 100%);
}

.recipe-pill-btn__icon {
  width: clamp(10px, 1.4vw, 14px);
  height: clamp(10px, 1.4vw, 14px);

  border-radius: 4px;
  flex: 0 0 auto;

  background: linear-gradient(180deg, #fff 0%, #f8edd7 100%);
  border: 1px solid rgba(92, 67, 36, 0.16);

  position: relative;
}

.recipe-pill-btn__icon::before,
.recipe-pill-btn__icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1px;
  background: rgba(92, 67, 36, 0.35);
}

.recipe-pill-btn__icon::before { top: 4px; }
.recipe-pill-btn__icon::after { top: 8px; }



/* -------------------------
   Menu day styling
------------------------- */

.menu-day {
  position: relative;
}

.menu-day.is-today {
  border: 2px solid #7aa2ff;
  box-shadow:
    0 0 0 4px rgba(122, 162, 255, 0.18),
    0 10px 24px rgba(72, 110, 184, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.75);

  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.menu-day.is-today::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 999px;

  background: linear-gradient(180deg, #7aa2ff 0%, #4f7fe8 100%);
}

.menu-day.is-today h3 {
  color: #2d56a3;
}

/* -------------------------
   Recipe modal card
------------------------- */

.recipe-card {
  display: grid;
  gap: clamp(10px, 1.8vw, 14px);
}

.recipe-card__section {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(219, 227, 239, 0.8);

  border-radius: clamp(12px, 1.8vw, 16px);
  padding: clamp(10px, 1.8vw, 14px);
}

.recipe-card__section label {
  display: block;

  font-size: clamp(12px, 1.3vw, 13px);
  font-weight: 700;

  color: #415267;

  margin-bottom: clamp(6px, 1.2vw, 8px);
}

.recipe-card__text {
  white-space: pre-wrap;
  line-height: 1.45;

  font-size: clamp(12px, 1.3vw, 14px);
}

.recipe-card__title {
  margin: 0;

  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

}

.menu-dashboard-strip {
  height: 100%;
  min-height: 0;
}

.menu-preview {
  height: 100%;
  min-height: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.menu-preview::-webkit-scrollbar {
  height: 8px;
}

.menu-preview::-webkit-scrollbar-thumb {
  background: rgba(170, 184, 207, 0.9);
  border-radius: 999px;
}

.menu-preview::-webkit-scrollbar-track {
  background: rgba(233, 239, 248, 0.7);
  border-radius: 999px;
}

.menu-day {
  position: relative;
  flex: 0 0 calc((100% - 16px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 140px;
}

.menu-day__meals {
  display: grid;
  min-height: 0;
}

/* -------------------------
   Mobile adjustments
------------------------- */

@media (max-width: 640px) {

  .meal-chip {
    gap: 6px;
    padding: 6px 8px;
  }

  .recipe-pill-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  
.menu-day {
    position: relative;
    flex: 0 0 calc((100% - 16px) / 3);
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: fit-content;
}

.meal-chip {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    border: 0;
    border-radius: clamp(10px, 1.6vw, 14px);
    padding: 0;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 5px 12px rgba(34, 55, 94, 0.05);
    min-width: 0;
}

.meal-chip__main {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
	font-size: 12px;
}

}

/* -------------------------
   Shopping list modal
------------------------- */

.shopping-editor {
  display: grid;
  gap: 14px;
}

.shopping-editor__toolbar,
.shopping-editor__actions,
.shopping-editor__add {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.shopping-editor__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shopping-stat {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(240, 245, 255, 0.95);
  color: #4e627d;
  font-size: 12px;
  font-weight: 700;
}

.shopping-editor__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5f79;
  font-size: 13px;
  font-weight: 700;
}

.shopping-editor__add input {
  flex: 1 1 280px;
  min-width: 0;
}

.shopping-editor__list {
  display: grid;
  gap: 10px;
}

.shopping-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(219, 227, 239, 0.85);
  border-radius: 16px;
}

.shopping-item.is-checked .shopping-item__text {
  text-decoration: line-through;
  opacity: 0.65;
}

.shopping-item.is-owned .shopping-item__text {
  opacity: 0.72;
}

.shopping-item__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shopping-item__check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.shopping-item__main {
  min-width: 0;
}

.shopping-item__text {
  font-size: 14px;
  font-weight: 700;
  color: #354965;
  line-height: 1.3;
  word-break: break-word;
}

.shopping-item__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #72829b;
}

.shopping-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.shopping-empty {
  padding: 14px;
  border-radius: 14px;
  background: rgba(245, 249, 255, 0.7);
  border: 1px dashed rgba(194, 208, 230, 0.9);
}

@media (max-width: 640px) {
  .shopping-editor__toolbar,
  .shopping-editor__actions,
  .shopping-editor__add {
    flex-direction: column;
    align-items: stretch;
  }

  .shopping-item {
    grid-template-columns: auto 1fr;
  }

  .shopping-item__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .shopping-item__actions > * {
    flex: 1 1 auto;
  }
}