.meal-v2-page {
  color: #14233a;
}

.meal-v2 {
  width: min(100%, 1320px);
  margin: 0 auto 32px;
  padding: clamp(18px, 3vw, 32px);
  background: #ffffff;
  border: 1px solid rgba(20, 35, 58, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(20, 35, 58, 0.07);
}

.meal-v2__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 30px);
  color: #ffffff;
  background: #004a6a;
  border-radius: 12px;
}

.meal-v2__header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.12;
}

.meal-v2__header p:last-child {
  max-width: 72ch;
  margin-bottom: 0;
  color: #e6f7fb;
  line-height: 1.6;
}

.meal-v2__eyebrow,
.meal-v2-card__label {
  margin: 0 0 8px;
  color: #b9eef8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meal-v2__date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  color: #004a6a;
  background: #ffffff;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.meal-v2__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.meal-v2__tab {
  min-height: 44px;
  padding: 9px 14px;
  color: #004a6a;
  background: #eef9fc;
  border: 1px solid rgba(0, 146, 191, 0.28);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.meal-v2__tab:hover,
.meal-v2__tab:focus-visible,
.meal-v2__tab.is-active {
  color: #ffffff;
  background: #0092bf;
  border-color: #0092bf;
}

.meal-v2__tab:focus-visible,
.meal-v2-card:focus-within {
  outline: 3px solid rgba(0, 146, 191, 0.35);
  outline-offset: 3px;
}

.meal-v2__status {
  min-height: 24px;
  margin: 0 0 18px;
  color: #526173;
  font-weight: 700;
}

.meal-v2__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.meal-v2-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(20, 35, 58, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(20, 35, 58, 0.06);
}

.meal-v2-card[hidden] {
  display: none;
}

.meal-v2-card__header {
  padding: 18px 20px;
  background: #f2f9fb;
  border-bottom: 1px solid rgba(20, 35, 58, 0.08);
}

.meal-v2-card__label {
  color: #0092bf;
}

.meal-v2-card h3 {
  margin: 0 0 8px;
  color: #073d52;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.2;
}

.meal-v2-card__time {
  display: inline-flex;
  color: #526173;
  font-weight: 800;
}

.meal-v2-card__items {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 18px 20px 10px;
  list-style: none;
}

.meal-v2-card__items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 35, 58, 0.08);
}

.meal-v2-card__items span {
  color: #304d63;
  font-weight: 700;
  line-height: 1.35;
}

.meal-v2-card__items strong,
.meal-v2-card__total strong {
  color: #004a6a;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.meal-v2-card__items strong::after,
.meal-v2-card__total strong::after {
  content: " kcal";
  font-size: 0.72em;
  font-weight: 700;
}

.meal-v2-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 16px 20px;
  color: #ffffff;
  background: #0092bf;
  font-weight: 900;
}

.meal-v2-card__total strong {
  color: #ffffff;
  font-size: 1.18rem;
}

@media (max-width: 900px) {
  .meal-v2__header {
    flex-direction: column;
  }

  .meal-v2__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .meal-v2 {
    padding: 14px;
    border-radius: 12px;
  }

  .meal-v2__header {
    padding: 20px;
  }

  .meal-v2__tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .meal-v2__tab {
    width: 100%;
    border-radius: 10px;
    text-align: left;
  }

  .meal-v2-card__items li,
  .meal-v2-card__total {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meal-v2__tab {
    transition: none;
  }
}
