.date-controls,
.diary-plan-dates202 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.date-controls .date-switch,
.date-controls .day-goals {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border-radius: 12px;
}

.date-controls .date-switch {
  justify-self: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0 4px;
}

.date-controls .date-switch > .icon-button {
  flex: none;
  width: 32px;
  min-width: 32px;
  height: 44px;
}

.date-controls .date-label {
  justify-content: center;
  min-width: 0;
  gap: 5px;
  padding: 0;
  font-size: 13px;
  white-space: nowrap;
}

.date-controls .date-label svg {
  flex: none;
  width: 14px;
}

.date-controls .day-goals {
  justify-self: stretch;
  justify-content: center;
}

.diary-plan-dates202 {
  grid-column: 1 / -1;
  display: grid;
}

.diary-plan-dates202 button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 6px 4px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 17px;
  text-align: center;
}

.diary-plan-dates202 button[aria-pressed="true"] {
  border-color: currentColor;
}

.diary-plan-dates202 time {
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .date-controls .date-switch {
    padding: 0 2px;
  }

  .date-controls .date-switch > .icon-button {
    width: 28px;
    min-width: 28px;
  }

  .date-controls .date-label {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .date-controls .date-label svg {
    display: none;
  }
}
